Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipse.profile/.settings/org.eclipse.jdt.core.prefs284
-rw-r--r--extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipse.profile/.settings/org.eclipse.jdt.ui.prefs68
-rw-r--r--extraplugins/adl4eclipse/org.eclipse.papyrus.osgi.profile/.settings/org.eclipse.jdt.core.prefs284
-rw-r--r--extraplugins/adl4eclipse/org.eclipse.papyrus.osgi.profile/.settings/org.eclipse.jdt.ui.prefs68
-rw-r--r--extraplugins/cdo/org.eclipse.papyrus.cdo.uml.search.ui/src/org/eclipse/papyrus/cdo/uml/search/internal/ui/query/CDOSearchQueryProvider.java2
-rw-r--r--extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-GCM.Palette.xml28
-rw-r--r--extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-GQAM.Palette.xml138
-rw-r--r--extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-HLAM.Palette.xml48
-rw-r--r--extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-PAM.Palette.xml108
-rw-r--r--extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-SAM.Palette.xml79
-rw-r--r--extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-Time.Palette.xml28
-rw-r--r--extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/StateMachineDiag-CoreElements.Palette.xml2
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/transformation/BasicRequirementMerger.java425
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/transformation/I_RI.java34
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/transformation/ReqIFImporter.java8
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/util/BasicRequirementMerger.java391
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/util/CopierWithoutContainment.java473
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/util/EqualityHelperWithoutContainment.java341
-rw-r--r--extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/util/IRequirementMerger.java33
-rw-r--r--extraplugins/robotml/org.eclipse.papyrus.robotml/palettes/Palette_SM_RobotML.xml8
-rw-r--r--extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/blockDiagram.paletteconfiguration4
-rw-r--r--extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/configuration/RequirementDiagram.configuration2
-rw-r--r--extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/palette/requirementDiagram.paletteconfiguration128
-rw-r--r--extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/style/requirementdiagram.css66
-rw-r--r--extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/palettes/UML-RT.CapsuleDiagram.paletteconfiguration18
-rw-r--r--extraplugins/umlrt/org.eclipse.papyrus.umlrt/elementtypes/uml-rt.elementtypesconfigurations9
-rw-r--r--extraplugins/umlrt/org.eclipse.papyrus.umlrt/src/org/eclipse/papyrus/umlrt/custom/advice/CapsuleEditHelperAdvice.java69
-rw-r--r--features/papyrus-dev-features/org.eclipse.papyrus.dev.feature/feature.xml35
-rw-r--r--features/papyrus-extra-features/org.eclipse.papyrus.extra.feature/feature.xml228
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/CompartmentEditPart.xtend17
-rw-r--r--plugins/developer/org.eclipse.papyrus.releng.tools/META-INF/MANIFEST.MF6
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/META-INF/MANIFEST.MF6
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/resource/developermodel.uml138
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/LinkUtil.java162
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/command/CreateDocumentModelCommand.java353
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/GetHTMLTextHandler.java30
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/GetWikiTextHandler.java22
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/IDMAbstractHandler.java38
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/HTMLTranscription.java87
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/ITranscription.java79
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/TranscriptionEngine.java71
-rw-r--r--plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/WikiTranscription.java72
-rw-r--r--plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/utils/TransactionPrecommitExecutor.java13
-rw-r--r--plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/databinding/ModelStyleSheetObservableList.java81
-rw-r--r--plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/modelelement/CSSModelElement.java29
-rw-r--r--plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src/org/eclipse/papyrus/infra/gmfdiag/css/dom/GMFElementAdapter.java24
-rw-r--r--plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src/org/eclipse/papyrus/infra/gmfdiag/css/engine/ModelCSSEngine.java15
-rw-r--r--plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext/.launch/Generate Language Infrastructure (org.eclipse.papyrus.infra.gmfdiag.css3.xtext).launch4
-rw-r--r--plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext/.launch/Launch Runtime Eclipse.launch64
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/DeveloperDoc.html1
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/DeveloperDoc.html92
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/default.css (renamed from plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/default.css)118
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/design.di2
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/design.notation1603
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/design.uml (renamed from plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/resource/model.uml)1546
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/imgDOC/ArchitectureOverview.pngbin0 -> 19974 bytes
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/imgDOC/Structure.pngbin0 -> 62810 bytes
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/imgDOC/UseCaseDiagram.pngbin0 -> 27505 bytes
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/docs/out.html1
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/imgDOC/ArchitectureOverview.pngbin14434 -> 0 bytes
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/imgDOC/Structure.pngbin34647 -> 0 bytes
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/imgDOC/UseCaseDiagram.pngbin18524 -> 0 bytes
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/resource/model.notation724
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/META-INF/MANIFEST.MF1
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/hourglass.svg9
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/plugin.xml14
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/Activator.java1
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/CreateInducedRepresentationViewCommand.java4
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/DiagramExpansionsRegistry.java6
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/ExpandEditPartProvider.java20
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/ExpandViewProvider.java18
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/SVGNodePlateFigure.java4
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/internal/sync/UISyncServiceInitializer.java120
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/AbstractNestedDiagramViewsSyncFeature.java16
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/NodePositionSyncFeature.java11
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/NodeSizeSyncFeature.java11
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/UISyncUtils.java13
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.dnd/src/org/eclipse/papyrus/infra/gmfdiag/dnd/Activator.java2
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.dnd/src/org/eclipse/papyrus/infra/gmfdiag/dnd/strategy/ExpansionElementDropStrategy.java10
-rw-r--r--plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common/plugin.xml31
-rw-r--r--plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common/src/org/eclipse/papyrus/infra/nattable/common/editor/AbstractEMFNattableEditor.java22
-rwxr-xr-xplugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common/src/org/eclipse/papyrus/infra/nattable/common/handlers/ReloadNattableWidgetInEditorHandler.java91
-rw-r--r--plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.model/src/org/eclipse/papyrus/infra/nattable/model/factory/IAxisFactory.java2
-rw-r--r--plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/axis/CompositeTreeAxisManagerForEventList.java28
-rwxr-xr-xplugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/AbstractNattableWidgetManager.java3380
-rwxr-xr-xplugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/TreeNattableModelManager.java43
-rw-r--r--plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/utils/FillingConfigurationUtils.java2
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.hyperlink/src/org/eclipse/papyrus/infra/hyperlink/object/HyperLinkDocument.java197
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.newchild/src/org/eclipse/papyrus/infra/newchild/ui/DynamicNewChild.java5
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.onefile/src/org/eclipse/papyrus/infra/onefile/providers/PapyrusContentProvider.java5
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/DeveloperDoc.html291
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/default.css59
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/design.di2
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/design.notation4042
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/design.uml1139
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Exclude_Views_from_Synchronization.pngbin0 -> 35368 bytes
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Notation_Sync_Classes.pngbin0 -> 26118 bytes
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Notation_Synchronization.pngbin0 -> 22278 bytes
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Plug-ins.pngbin0 -> 26780 bytes
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Sync_Framework_Core_Classes.pngbin0 -> 27505 bytes
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Sync_Policy_Classes.pngbin0 -> 27137 bytes
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Sync_Service_Classes.pngbin0 -> 25558 bytes
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization.pngbin0 -> 19252 bytes
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization_Exclusions.pngbin0 -> 28097 bytes
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization_Overrides.pngbin0 -> 25348 bytes
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization_Overrides_1.pngbin0 -> 38299 bytes
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronize_Model_Elements.pngbin0 -> 24752 bytes
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronize_Model_Elements_1.pngbin0 -> 27386 bytes
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Test_Classes.pngbin0 -> 10267 bytes
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Test_Plug-ins.pngbin0 -> 7136 bytes
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Use_Cases.pngbin0 -> 58171 bytes
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/EStructuralFeatureSyncFeature.java32
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/ISyncObject.java14
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/SyncObject.java9
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/internal/SyncService.java41
-rw-r--r--plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/service/ISyncService.java24
-rwxr-xr-xplugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/META-INF/MANIFEST.MF6
-rwxr-xr-xplugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/model/style.ecore5
-rwxr-xr-xplugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/model/style.genmodel2
-rwxr-xr-xplugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/PapyrusViewStyle.java4
-rwxr-xr-xplugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/impl/PapyrusViewStyleImpl.java2
-rwxr-xr-xplugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/impl/StylePackageImpl.java15
-rwxr-xr-xplugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/util/StyleAdapterFactory.java29
-rwxr-xr-xplugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/util/StyleSwitch.java3
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf.common/.launch/Generate Language Infrastructure (org.eclipse.papyrus.uml.alf.common).launch4
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf.common/.launch/Launch Runtime Eclipse.launch4
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/.launch/Generate Language Infrastructure (org.eclipse.papyrus.alf.integration).launch4
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/ActivityGroup/CustomLoopNodeStructuredActivityNodeContentCompartmentEditPart.java20
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/ActivityGroup/CustomSequenceNodeStructuredActivityNodeContentCompartmentEditPart.java20
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/ActivityGroup/CustomStructuredActivityNodeStructuredActivityNodeContentCompartmentEditPart.java20
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/ShapeCompartmentWithoutScrollbarsEditPart.java35
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/policies/CustomDiagramDragDropEditPolicy.java11
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/figures/ActivityFigure.java47
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/figures/ActivityFigureCN.java27
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/model/activityDiagram.gmfgen7
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/ActivityEditPartCN.java8
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/ActivityPartitionActivityPartitionContentCompartmentEditPart.java20
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/InterruptibleActivityRegionInterruptibleActivityRegionContentCompartmentEditPart.java19
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/LoopNodeStructuredActivityNodeContentCompartmentEditPart.java19
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/SequenceNodeStructuredActivityNodeContentCompartmentEditPart.java19
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/StructuredActivityNodeStructuredActivityNodeContentCompartmentEditPart.java19
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/edit/part/AbstractAssociationEditPart.java347
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/policies/ClassDiagramDragDropEditPolicy.java37
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/model/UMLRepresentationKind.xmi8
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/Activator.java2
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/ContainerNodeEditPart.java160
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/EditableLabelForNodeEditPart.java737
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/UMLNodeEditPart.java3
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/CommonDiagramDragDropEditPolicy.java58
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationBranchEndEditPolicy.java12
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndEditPolicy.java10
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndSourceEditPolicy.java12
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndSourceMultiplicityEditPolicy.java14
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndTargetEditPolicy.java12
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndTargetMultiplicityEditPolicy.java14
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/AssociationEndSourceLabelHelper.java171
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/AssociationEndSourceMultiplicityLabelHelper.java20
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/AssociationEndTargetLabelHelper.java181
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/AssociationEndTargetMultiplicityLabelHelper.java20
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/PropertyLabelHelper.java4
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/custom-src/org/eclipse/papyrus/uml/diagram/communication/custom/commands/CustomLifelineCreateCommandCN.java51
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/custom-src/org/eclipse/papyrus/uml/diagram/communication/custom/edit/policies/CustomDiagramDragDropEditPolicy.java42
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/custom-src/org/eclipse/papyrus/uml/diagram/communication/custom/helper/CommunicationRequestConstant.java14
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/custom-src/org/eclipse/papyrus/uml/diagram/communication/custom/policies/itemsemantic/CustomInteractionCompartmentSemanticEditPolicy.java15
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/src/org/eclipse/papyrus/uml/diagram/css/dom/GMFUMLElementAdapter.java61
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/theme/umlBase.css45
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/.options14
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/META-INF/MANIFEST.MF155
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/build.properties9
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/command/BranchDependenctReorientCommand.java80
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/itemsemantic/CustomDefaultNamedElementItemSemanticEditPolicy.java24
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/itemsemantic/CustomDependencyBranchSemanticEditPolicy.java19
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram-notation.elementtypesconfigurations6
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.elementtypesconfigurations374
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.gmfgen6316
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/plugin.xml535
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ArtifactCreateCommand.java127
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ArtifactCreateCommandACN.java126
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ArtifactCreateCommandCN.java127
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/CommentAnnotatedElementCreateCommand.java108
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/CommentAnnotatedElementReorientCommand.java165
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/CommentCreateCommand.java127
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/CommentCreateCommandCN.java127
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ConstraintConstrainedElementCreateCommand.java108
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ConstraintConstrainedElementReorientCommand.java165
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ConstraintCreateCommand.java131
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ConstraintCreateCommandCN.java127
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DefaultNamedElementCreateCommand.java98
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyBranchCreateCommand.java171
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyBranchReorientCommand.java187
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyCreateCommand.java171
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyNodeCreateCommand.java125
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyReorientCommand.java187
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DeploymentCreateCommand.java171
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DeploymentReorientCommand.java187
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DeviceCreateCommand.java127
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DeviceCreateCommandCN.java127
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ExecutionEnvironmentCreateCommand.java127
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ExecutionEnvironmentCreateCommandCN.java127
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/GeneralizationCreateCommand.java170
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/GeneralizationReorientCommand.java174
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ManifestationCreateCommand.java171
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ManifestationReorientCommand.java187
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ModelCreateCommand.java127
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ModelCreateCommandCN.java127
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NestedArtifactNodeCreateCommandCN.java127
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NestedDeviceCreateCommandCN.java127
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NestedExecutionEnvironmentCreateCommandCN.java127
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NestedNodeCreateCommandCN.java127
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NodeCreateCommand.java127
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NodeCreateCommandCN.java126
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/PackageCreateCommand.java126
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/PackageCreateCommandCN.java126
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ArtifactEditHelper.java20
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/CommentEditHelper.java20
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ConstraintEditHelper.java20
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/DefaultNamedElementEditHelper.java20
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/DependencyEditHelper.java20
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/DeploymentEditHelper.java20
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/DeviceEditHelper.java20
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ExecutionEnvironmentEditHelper.java20
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/GeneralizationEditHelper.java20
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ManifestationEditHelper.java20
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ModelEditHelper.java20
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/NodeEditHelper.java20
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/UMLBaseEditHelper.java40
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPart.java12
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartACN.java12
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartCN.java12
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPart.java726
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartACN.java726
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartCN.java726
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPart.java1706
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartACN.java1706
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartCN.java1706
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPart.java1727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartACN.java1727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartCN.java1727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentAnnotatedElementEditPart.java136
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPart.java1727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPartCN.java1727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPart.java568
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPartCN.java568
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintConstrainedElementEditPart.java136
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPart.java578
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPartCN.java578
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPart.java1727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPartCN.java1727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPart.java1727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPartCN.java1727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementEditPart.java574
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementNameEditPart.java1761
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyAppliedStereotypeEditPart.java1646
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyBranchEditPart.java142
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyEditPart.java253
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNameEditPart.java1646
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNodeEditPart.java490
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentAppliedStereotypeEditPart.java1646
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentDiagramEditPart.java12
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentEditPart.java247
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentNameEditPart.java1646
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPart.java12
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPartCN.java12
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPart.java614
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPartCN.java584
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPart.java1727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPartCN.java1727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPart.java12
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPartCN.java12
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPart.java614
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPartCN.java584
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPart.java1727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPartCN.java1727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationAppliedStereotypeEditPart.java1630
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationEditPart.java233
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/LinkDescriptorEditPart.java140
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationAppliedStereotypeEditPart.java1646
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationEditPart.java247
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationNameEditPart.java1646
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPart.java602
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPartCN.java602
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPart.java1761
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPartCN.java1761
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPart.java12
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPartCN.java12
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/MultiDependencyLabelEditPart.java1690
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNameEditPart.java1727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNodeEditPartCN.java556
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceEditPartCN.java590
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceNameEditPartCN.java1727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentEditPartCN.java590
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentNameEditPartCN.java1727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeEditPartCN.java588
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeNameEditPart.java1727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPart.java12
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPartCN.java12
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPart.java612
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPartCN.java582
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPart.java1727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPartCN.java1727
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPart.java600
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPartCN.java602
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPart.java1761
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPartCN.java1761
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPart.java12
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPartCN.java12
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/UMLEditPartFactory.java717
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentCanonicalEditPolicy.java176
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentCanonicalEditPolicyACN.java176
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentCanonicalEditPolicyCN.java176
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentItemSemanticEditPolicy.java51
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentItemSemanticEditPolicyACN.java51
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentItemSemanticEditPolicyCN.java51
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactItemSemanticEditPolicy.java266
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactItemSemanticEditPolicyACN.java339
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactItemSemanticEditPolicyCN.java339
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/CommentAnnotatedElementItemSemanticEditPolicy.java38
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/CommentItemSemanticEditPolicy.java161
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/CommentItemSemanticEditPolicyCN.java169
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ConstraintConstrainedElementItemSemanticEditPolicy.java38
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ConstraintItemSemanticEditPolicy.java253
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ConstraintItemSemanticEditPolicyCN.java265
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DefaultNamedElementItemSemanticEditPolicy.java261
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DependencyBranchItemSemanticEditPolicy.java249
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DependencyItemSemanticEditPolicy.java249
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DependencyNodeItemSemanticEditPolicy.java249
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeploymentDiagramItemSemanticEditPolicy.java131
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeploymentItemSemanticEditPolicy.java249
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceCompositeCompartmentCanonicalEditPolicy.java179
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceCompositeCompartmentCanonicalEditPolicyCN.java179
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceCompositeCompartmentItemSemanticEditPolicy.java63
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceCompositeCompartmentItemSemanticEditPolicyCN.java63
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceItemSemanticEditPolicy.java266
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceItemSemanticEditPolicyCN.java278
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicy.java190
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicyCN.java190
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy.java57
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicyCN.java57
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentItemSemanticEditPolicy.java266
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentItemSemanticEditPolicyCN.java278
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/GeneralizationItemSemanticEditPolicy.java154
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ManifestationItemSemanticEditPolicy.java249
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelCanonicalEditPolicy.java639
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelItemSemanticEditPolicy.java535
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelItemSemanticEditPolicyCN.java535
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelPackageableElementCompartmentCanonicalEditPolicy.java208
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelPackageableElementCompartmentCanonicalEditPolicyCN.java208
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelPackageableElementCompartmentItemSemanticEditPolicy.java93
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelPackageableElementCompartmentItemSemanticEditPolicyCN.java93
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NestedArtifactNodeItemSemanticEditPolicyCN.java278
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NestedDeviceItemSemanticEditPolicyCN.java403
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NestedExecutionEnvironmentItemSemanticEditPolicyCN.java371
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NestedNodeItemSemanticEditPolicyCN.java435
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeCompositeCompartmentCanonicalEditPolicy.java199
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeCompositeCompartmentCanonicalEditPolicyCN.java199
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeCompositeCompartmentItemSemanticEditPolicy.java69
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeCompositeCompartmentItemSemanticEditPolicyCN.java69
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeItemSemanticEditPolicy.java266
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeItemSemanticEditPolicyCN.java278
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackageItemSemanticEditPolicy.java249
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackageItemSemanticEditPolicyCN.java249
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackagePackageableElementCompartmentCanonicalEditPolicy.java208
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackagePackageableElementCompartmentCanonicalEditPolicyCN.java206
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackagePackageableElementCompartmentItemSemanticEditPolicy.java93
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackagePackageableElementCompartmentItemSemanticEditPolicyCN.java87
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLBaseItemSemanticEditPolicy.java1088
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextNonResizableEditPolicy.java487
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextSelectionEditPolicy.java452
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/expressions/UMLAbstractExpression.java340
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/expressions/UMLOCLFactory.java367
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/parsers/AbstractParser.java2
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/parsers/MessageFormatParser.java424
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/DiagramEditorContextMenuProvider.java124
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/LoadResourceAction.java60
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/Messages.java998
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/ModelElementSelectionPage.java78
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLCreationWizard.java359
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLCreationWizardPage.java196
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramActionBarContributor.java122
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditor.java1099
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditorPlugin.java603
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditorUtil.java722
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramUpdater.java5532
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDocumentProvider.java2066
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLInitDiagramFileAction.java212
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLLinkDescriptor.java72
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLMatchingStrategy.java90
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLNewDiagramFileWizard.java387
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLNodeDescriptor.java56
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLPaletteFactory.java646
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLVisualIDRegistry.java1994
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/ValidateAction.java594
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramAppearancePreferencePage.java56
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramConnectionsPreferencePage.java56
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramGeneralPreferencePage.java60
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramPreferenceInitializer.java96
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramPrintingPreferencePage.java56
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramRulersAndGridPreferencePage.java56
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/ElementInitializers.java1339
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLEditPartProvider.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLElementTypes.java1086
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLIconProvider.java56
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLMarkerNavigationProvider.java192
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLParserProvider.java1747
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLValidationDecoratorProvider.java146
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLValidationProvider.java152
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLViewProvider.java2540
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLPropertySection.java64
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLSheetLabelProvider.java174
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/custom-src/org/eclipse/papyrus/uml/diagram/profile/custom/commands/CustomSemanticCreateCommand.java37
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/custom-src/org/eclipse/papyrus/uml/diagram/profile/custom/helper/MetaclassHelper.java32
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols/plugin.xml12
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols/src/org/eclipse/papyrus/uml/diagram/symbols/provider/AcceptEventActionShapeProvider.java224
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/command/PapyrusModelFromExistingDomainModelCommand.java22
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/messages/Messages.java4
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/messages/messages.properties2
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/NewModelFilePage.java65
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/PapyrusProjectCreationPage.java43
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/SelectDiagramCategoryPage.java13
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/wizards/CreateModelWizard.java16
-rw-r--r--plugins/uml/modelexplorer/org.eclipse.papyrus.uml.modelexplorer/resource/UMLEdges.creationmenumodel2
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config/configs/classTreeTable.configuration5
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/build.properties3
-rwxr-xr-xplugins/uml/nattable/org.eclipse.papyrus.uml.nattable/configs/genericTreeTable.configuration17
-rwxr-xr-xplugins/uml/nattable/org.eclipse.papyrus.uml.nattable/configs/genericTreeTable.nattableconfiguration36
-rwxr-xr-xplugins/uml/nattable/org.eclipse.papyrus.uml.nattable/icons/uml_generic_table.pngbin0 -> 319 bytes
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/plugin.xml14
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/pages/PapyrusSearchPage.java3
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/query/CompositePapyrusQuery.java16
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.service.types/model/uml-containments.elementtypesconfigurations803
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.service.types/model/uml.elementtypesconfigurations7748
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ActivityGroupHelper.java16
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ActivityHelper.java207
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ActivityPartitionEditHelper.java9
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ExpansionRegionHelper.java15
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/InterruptibleActivityRegionHelper.java9
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/advice/RefineEditHelperAdvice.java18
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/advice/TraceEditHelperAdvice.java18
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/AbstractUmlPortUiModule.java281
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/UmlPortExecutableExtensionFactory.java58
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/AbstractUmlPortProposalProvider.java392
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/UmlPortParser.java253
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g5819
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.tokens124
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPortLexer.java4224
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPortParser.java16060
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/internal/UmlPortActivator.java190
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contribution/PortXtextDirectEditorConfiguration.java55
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contribution/UMLPortEditorPropertyUtil.java226
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/.launch/Generate Language Infrastructure (org.eclipse.papyrus.uml.textedit.port.xtext).launch4
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/.launch/Launch Runtime Eclipse.launch64
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/AbstractUmlPortRuntimeModule.java328
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.genmodel180
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.xtextbinbin6019 -> 6074 bytes
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPortStandaloneSetupGenerated.java92
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/UmlPortAntlrTokenFileProvider.java32
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/UmlPortParser.java78
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g2586
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPortLexer.java4228
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPortParser.java7119
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/serializer/UmlPortSemanticSequencer.java705
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/serializer/UmlPortSyntacticSequencer.java85
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/services/UmlPortGrammarAccess.java2627
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/BooleanLiterals.java473
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/BooleanValue.java108
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/BoundSpecification.java104
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/DefaultValueRule.java104
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/IntValue.java102
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/ModifierKind.java585
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/ModifierSpecification.java222
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/ModifiersRule.java86
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/MultiplicityRule.java86
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/PortRule.java552
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/QualifiedName.java164
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/RealValue.java158
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/RedefinesRule.java108
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/StringValue.java102
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/SubsetsRule.java108
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/TypeRule.java164
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/UmlPortFactory.java413
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/UmlPortPackage.java3496
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/VisibilityKind.java585
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/VisibilityRule.java110
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/BooleanValueImpl.java370
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/BoundSpecificationImpl.java370
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/DefaultValueRuleImpl.java410
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/IntValueImpl.java368
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/ModifierSpecificationImpl.java723
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/ModifiersRuleImpl.java344
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/MultiplicityRuleImpl.java344
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/NoValueImpl.java84
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/NullValueImpl.java84
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/PortRuleImpl.java1555
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/QualifiedNameImpl.java552
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/RealValueImpl.java487
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/RedefinesRuleImpl.java364
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/StringValueImpl.java368
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/SubsetsRuleImpl.java364
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/TypeRuleImpl.java554
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/UmlPortFactoryImpl.java912
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/UmlPortPackageImpl.java2086
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/ValueImpl.java88
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/VisibilityRuleImpl.java372
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/util/UmlPortAdapterFactory.java988
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/util/UmlPortSwitch.java1105
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/validation/AbstractUmlPortJavaValidator.java44
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.xtext198
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/AbstractUmlPropertyUiModule.java282
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/UmlPropertyExecutableExtensionFactory.java58
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/AbstractUmlPropertyProposalProvider.java385
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/UmlPropertyParser.java251
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g5711
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.tokens124
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlPropertyLexer.java4225
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlPropertyParser.java15789
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/internal/UmlPropertyActivator.java190
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/PropertyXtextDirectEditorConfiguration.java57
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/UMLPropertyEditorPropertyUtil.java210
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/.classpath18
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/.settings/org.eclipse.jdt.core.prefs608
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/META-INF/MANIFEST.MF82
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/AbstractUmlPropertyRuntimeModule.java328
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.genmodel178
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtextbinbin6027 -> 6082 bytes
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlPropertyStandaloneSetupGenerated.java91
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/UmlPropertyAntlrTokenFileProvider.java31
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/UmlPropertyParser.java78
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g2556
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlPropertyLexer.java4225
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlPropertyParser.java7045
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/UmlPropertySemanticSequencer.java704
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/UmlPropertySyntacticSequencer.java85
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/services/UmlPropertyGrammarAccess.java2584
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BooleanLiterals.java470
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BooleanValue.java108
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BoundSpecification.java104
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/DefaultValueRule.java104
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/IntValue.java102
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierKind.java582
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierSpecification.java222
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifiersRule.java86
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/MultiplicityRule.java86
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/PropertyRule.java496
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/QualifiedName.java164
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/RealValue.java158
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/RedefinesRule.java108
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/StringValue.java102
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/SubsetsRule.java108
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/TypeRule.java164
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/UmlPropertyFactory.java413
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/UmlPropertyPackage.java3437
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/VisibilityKind.java582
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/VisibilityRule.java110
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/BooleanValueImpl.java368
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/BoundSpecificationImpl.java368
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/DefaultValueRuleImpl.java408
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/IntValueImpl.java366
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ModifierSpecificationImpl.java717
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ModifiersRuleImpl.java343
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/MultiplicityRuleImpl.java343
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/NoValueImpl.java84
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/NullValueImpl.java84
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/PropertyRuleImpl.java1420
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/QualifiedNameImpl.java548
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/RealValueImpl.java483
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/RedefinesRuleImpl.java362
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/StringValueImpl.java366
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/SubsetsRuleImpl.java362
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/TypeRuleImpl.java550
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/UmlPropertyFactoryImpl.java893
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/UmlPropertyPackageImpl.java2014
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ValueImpl.java88
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/VisibilityRuleImpl.java370
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/util/UmlPropertyAdapterFactory.java988
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/util/UmlPropertySwitch.java1105
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/validation/AbstractUmlPropertyJavaValidator.java44
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtext4
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext/.launch/Generate Language Infrastructure (org.eclipse.papyrus.uml.textedit.port.xtext).launch4
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext/.launch/Launch Runtime Eclipse.launch4
-rw-r--r--plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/ICustomAppearance.java5
-rw-r--r--plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/MultiplicityElementUtil.java92
-rw-r--r--plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/PropertyUtil.java3
-rw-r--r--plugins/uml/tools/org.eclipse.papyrus.uml.tools/src/org/eclipse/papyrus/uml/tools/providers/UMLLabelProvider.java107
-rw-r--r--plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.ui/META-INF/MANIFEST.MF69
-rw-r--r--plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.ui/src/org/eclipse/papyrus/uml/xtext/integration/MultiplicityXTextParserUtils.java239
-rw-r--r--plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/RedoHandler.java13
-rw-r--r--plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/UndoHandler.java13
-rw-r--r--releng/extras/category.xml8
-rw-r--r--releng/org.eclipse.papyrus.oomph/setups/papyrus.setup6057
-rw-r--r--releng/top-pom-dev.xml22
-rw-r--r--releng/top-pom-extra-tests.xml610
-rw-r--r--releng/top-pom-extras.xml1142
-rwxr-xr-x[-rw-r--r--]releng/top-pom-main-tests.xml22
-rwxr-xr-x[-rw-r--r--]releng/top-pom-main.xml1762
-rwxr-xr-xreleng/top-pom-rcp.xml18
-rw-r--r--tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.core.tests/src/org/eclipse/papyrus/cdo/internal/core/importer/tests/ModelImporterTest.java2
-rw-r--r--tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical.tests/src/org/eclipse/papyrus/infra/gmfdiag/canonical/tests/CSSCanonicalStateInClassDiagramTest.java3
-rw-r--r--tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical.tests/src/org/eclipse/papyrus/infra/gmfdiag/canonical/tests/CSSExternalStylesheetInClassDiagramTest.java1
-rw-r--r--tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/fragment.xml6
-rw-r--r--tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/models/sync/sync-test.di2
-rw-r--r--tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/models/sync/sync-test.notation193
-rw-r--r--tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/models/sync/sync-test.uml16
-rw-r--r--tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/org.eclipse.papyrus.infra.gmfdiag.common.tests.launch92
-rw-r--r--tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/tests/MasterSlaveNotationSyncTest.java290
-rw-r--r--tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/tests/NotationSyncOverrideTest.java200
-rw-r--r--tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/tests/SyncTests.java34
-rw-r--r--tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/tests/TestSyncFixture.java212
-rw-r--r--tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/tests/AllTests.java28
-rw-r--r--tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/resources/model/namedElementsTest/model.di (renamed from plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/resource/model.di)0
-rw-r--r--tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/resources/model/namedElementsTest/model.notation194
-rw-r--r--tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/resources/model/namedElementsTest/model.uml30
-rw-r--r--tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/src/org/eclipse/papyrus/infra/gmfdiag/css/tests/tests/AllTests.java3
-rw-r--r--tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/src/org/eclipse/papyrus/infra/gmfdiag/css/tests/tests/CSSNamedElementsTest.java120
-rw-r--r--tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/rules/PapyrusEditorFixture.java222
-rw-r--r--tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests.launch87
-rw-r--r--tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock.tests/org.eclipse.papyrus.sysml.diagram.internalblock.tests.launch87
-rw-r--r--tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/src/org/eclipse/papyrus/uml/alf/tests/generator/GenerationTest.xtend3
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity.tests/src/org/eclipse/papyrus/uml/diagram/activity/tests/canonical/AbstractPapyrusTestCase.java30
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity.tests/src/org/eclipse/papyrus/uml/diagram/activity/tests/canonical/TestSemanticContainerFeature.java34
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/org.eclipse.papyrus.uml.diagram.clazz.tests.launch (renamed from tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/org.eclipse.papyrus.diagram.clazz.test.launch)95
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/test/canonical/TestListCompartmentNodesChildDuplicates.java3
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common.tests/resources/418509/model.notation198
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common.tests/resources/418509/model.uml14
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common.tests/src/org/eclipse/papyrus/uml/diagram/common/tests/tests/Bug418509_ReorientationAssociation.java31
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component.tests/src/org/eclipse/papyrus/uml/diagram/component/test/canonical/TestComponentDiagramCommentLink.java2
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component.tests/src/org/eclipse/papyrus/uml/diagram/component/test/canonical/TestComponentDiagramConstraintLink.java2
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component.tests/src/org/eclipse/papyrus/uml/diagram/component/test/canonical/TestListCompartmentNodeChildDuplicates.java5
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment.tests/src/org/eclipse/papyrus/uml/diagram/deployment/test/canonical/AbstractPapyrusTestCase.java9
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment.tests/src/org/eclipse/papyrus/uml/diagram/deployment/test/canonical/AllCanonicalTests.java3
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment.tests/src/org/eclipse/papyrus/uml/diagram/deployment/test/canonical/TestDeploymentDiagramForNodeChildNode.java1
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment.tests/src/org/eclipse/papyrus/uml/diagram/deployment/test/canonical/TestSemantics.java584
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview.tests/org.eclipse.papyrus.uml.diagram.interactionoverview.tests.launch3
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/tests/canonical/AllCanonicalTests.java2
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/tests/canonical/TestImportMetaClass.java134
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/tests/canonical/TestProfileDiagramExtension.java164
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine.tests/src/org/eclipse/papyrus/uml/diagram/statemachine/tests/canonical/BaseTestCase.java40
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine.tests/src/org/eclipse/papyrus/uml/diagram/statemachine/tests/canonical/TestSemantic.java93
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.tests/src/org/eclipse/papyrus/uml/diagram/tests/canonical/AbstractPapyrusSemanticTestCase.java87
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.tests/src/org/eclipse/papyrus/uml/diagram/tests/canonical/TestCommentLink.java4
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.tests/src/org/eclipse/papyrus/uml/diagram/tests/canonical/TestConstraintLink.java4
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config.tests/src/org/eclipse/papyrus/uml/nattable/clazz/config/tests/tests/AllTests.java122
-rw-r--r--tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/META-INF/MANIFEST.MF3
-rw-r--r--tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/build.properties2
-rw-r--r--tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/src/org/eclipse/papyrus/uml/profile/drafter/tests/EclipseProject.java27
-rw-r--r--tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/src/org/eclipse/papyrus/uml/profile/drafter/tests/TracesRecorder.java3
-rw-r--r--tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/AbstractDrafterTest.java70
-rw-r--r--tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/AllTests.java1
-rw-r--r--tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/EclipseProjectTest.java7
-rw-r--r--tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/ModelSetManagerTest.java64
-rw-r--r--tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/ProfileCatalogTest.java (renamed from tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/ProfileCatalogTest.java)63
-rw-r--r--tests/junit/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.tests/src/org/eclipse/papyrus/uml/textedit/port/tests/suites/PortGrammarTests.java252
-rw-r--r--tests/junit/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.tests/PropertyGrammarTests.launch88
-rw-r--r--tests/junit/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.tests/src/org/eclipse/papyrus/uml/textedit/property/tests/suites/PropertyGrammarTests.java238
-rw-r--r--tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReq/specObject_2.reqif95
-rw-r--r--tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/ReqTypeProfile.profile.uml255
-rw-r--r--tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/Result-ReimportSpecObject.di2
-rw-r--r--tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/Result-ReimportSpecObject.notation2
-rw-r--r--tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/Result-ReimportSpecObject.uml112
-rw-r--r--tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/importSpecObject.di2
-rw-r--r--tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/importSpecObject.notation523
-rw-r--r--tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/importSpecObject.uml124
-rw-r--r--tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/specObject_1.reqif573
-rw-r--r--tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/specObject_2.reqif707
663 files changed, 152619 insertions, 156395 deletions
diff --git a/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipse.profile/.settings/org.eclipse.jdt.core.prefs b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipse.profile/.settings/org.eclipse.jdt.core.prefs
index 44217f8c068..4759947300a 100644
--- a/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipse.profile/.settings/org.eclipse.jdt.core.prefs
+++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipse.profile/.settings/org.eclipse.jdt.core.prefs
@@ -5,3 +5,287 @@ org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=260
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=false
+org.eclipse.jdt.core.formatter.join_wrapped_lines=false
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=260
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=tab
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
diff --git a/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipse.profile/.settings/org.eclipse.jdt.ui.prefs b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipse.profile/.settings/org.eclipse.jdt.ui.prefs
new file mode 100644
index 00000000000..954281dbc31
--- /dev/null
+++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipse.profile/.settings/org.eclipse.jdt.ui.prefs
@@ -0,0 +1,68 @@
+cleanup.add_default_serial_version_id=true
+cleanup.add_generated_serial_version_id=false
+cleanup.add_missing_annotations=true
+cleanup.add_missing_deprecated_annotations=true
+cleanup.add_missing_methods=false
+cleanup.add_missing_nls_tags=false
+cleanup.add_missing_override_annotations=true
+cleanup.add_missing_override_annotations_interface_methods=true
+cleanup.add_serial_version_id=false
+cleanup.always_use_blocks=true
+cleanup.always_use_parentheses_in_expressions=false
+cleanup.always_use_this_for_non_static_field_access=false
+cleanup.always_use_this_for_non_static_method_access=false
+cleanup.convert_functional_interfaces=false
+cleanup.convert_to_enhanced_for_loop=false
+cleanup.correct_indentation=false
+cleanup.format_source_code=false
+cleanup.format_source_code_changes_only=false
+cleanup.insert_inferred_type_arguments=false
+cleanup.make_local_variable_final=true
+cleanup.make_parameters_final=false
+cleanup.make_private_fields_final=true
+cleanup.make_type_abstract_if_missing_method=false
+cleanup.make_variable_declarations_final=false
+cleanup.never_use_blocks=false
+cleanup.never_use_parentheses_in_expressions=true
+cleanup.organize_imports=false
+cleanup.qualify_static_field_accesses_with_declaring_class=false
+cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+cleanup.qualify_static_member_accesses_with_declaring_class=true
+cleanup.qualify_static_method_accesses_with_declaring_class=false
+cleanup.remove_private_constructors=true
+cleanup.remove_redundant_type_arguments=true
+cleanup.remove_trailing_whitespaces=true
+cleanup.remove_trailing_whitespaces_all=true
+cleanup.remove_trailing_whitespaces_ignore_empty=false
+cleanup.remove_unnecessary_casts=true
+cleanup.remove_unnecessary_nls_tags=true
+cleanup.remove_unused_imports=true
+cleanup.remove_unused_local_variables=false
+cleanup.remove_unused_private_fields=true
+cleanup.remove_unused_private_members=false
+cleanup.remove_unused_private_methods=true
+cleanup.remove_unused_private_types=true
+cleanup.sort_members=false
+cleanup.sort_members_all=false
+cleanup.use_anonymous_class_creation=false
+cleanup.use_blocks=true
+cleanup.use_blocks_only_for_return_and_throw=false
+cleanup.use_lambda=true
+cleanup.use_parentheses_in_expressions=false
+cleanup.use_this_for_non_static_field_access=false
+cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+cleanup.use_this_for_non_static_method_access=false
+cleanup.use_this_for_non_static_method_access_only_if_necessary=true
+cleanup.use_type_arguments=false
+cleanup_profile=_Papyrus
+cleanup_settings_version=2
+eclipse.preferences.version=1
+formatter_profile=_Papyrus
+formatter_settings_version=12
+org.eclipse.jdt.ui.ignorelowercasenames=true
+org.eclipse.jdt.ui.importorder=java;javax;org;com;
+org.eclipse.jdt.ui.javadoc=true
+org.eclipse.jdt.ui.ondemandthreshold=99
+org.eclipse.jdt.ui.staticondemandthreshold=99
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * Constructor.\n *\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*****************************************************************************\n * Copyright (c) ${year} CEA LIST and others.\n * \n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http\://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors\:\n * CEA LIST - Initial API and implementation\n * \n *****************************************************************************/\n</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/**\n * ${see_to_overridden}\n *\n * ${tags}\n */</template><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${see_to_target}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
diff --git a/extraplugins/adl4eclipse/org.eclipse.papyrus.osgi.profile/.settings/org.eclipse.jdt.core.prefs b/extraplugins/adl4eclipse/org.eclipse.papyrus.osgi.profile/.settings/org.eclipse.jdt.core.prefs
index 44217f8c068..4759947300a 100644
--- a/extraplugins/adl4eclipse/org.eclipse.papyrus.osgi.profile/.settings/org.eclipse.jdt.core.prefs
+++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.osgi.profile/.settings/org.eclipse.jdt.core.prefs
@@ -5,3 +5,287 @@ org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=260
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=false
+org.eclipse.jdt.core.formatter.join_wrapped_lines=false
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=260
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=tab
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
diff --git a/extraplugins/adl4eclipse/org.eclipse.papyrus.osgi.profile/.settings/org.eclipse.jdt.ui.prefs b/extraplugins/adl4eclipse/org.eclipse.papyrus.osgi.profile/.settings/org.eclipse.jdt.ui.prefs
new file mode 100644
index 00000000000..954281dbc31
--- /dev/null
+++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.osgi.profile/.settings/org.eclipse.jdt.ui.prefs
@@ -0,0 +1,68 @@
+cleanup.add_default_serial_version_id=true
+cleanup.add_generated_serial_version_id=false
+cleanup.add_missing_annotations=true
+cleanup.add_missing_deprecated_annotations=true
+cleanup.add_missing_methods=false
+cleanup.add_missing_nls_tags=false
+cleanup.add_missing_override_annotations=true
+cleanup.add_missing_override_annotations_interface_methods=true
+cleanup.add_serial_version_id=false
+cleanup.always_use_blocks=true
+cleanup.always_use_parentheses_in_expressions=false
+cleanup.always_use_this_for_non_static_field_access=false
+cleanup.always_use_this_for_non_static_method_access=false
+cleanup.convert_functional_interfaces=false
+cleanup.convert_to_enhanced_for_loop=false
+cleanup.correct_indentation=false
+cleanup.format_source_code=false
+cleanup.format_source_code_changes_only=false
+cleanup.insert_inferred_type_arguments=false
+cleanup.make_local_variable_final=true
+cleanup.make_parameters_final=false
+cleanup.make_private_fields_final=true
+cleanup.make_type_abstract_if_missing_method=false
+cleanup.make_variable_declarations_final=false
+cleanup.never_use_blocks=false
+cleanup.never_use_parentheses_in_expressions=true
+cleanup.organize_imports=false
+cleanup.qualify_static_field_accesses_with_declaring_class=false
+cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+cleanup.qualify_static_member_accesses_with_declaring_class=true
+cleanup.qualify_static_method_accesses_with_declaring_class=false
+cleanup.remove_private_constructors=true
+cleanup.remove_redundant_type_arguments=true
+cleanup.remove_trailing_whitespaces=true
+cleanup.remove_trailing_whitespaces_all=true
+cleanup.remove_trailing_whitespaces_ignore_empty=false
+cleanup.remove_unnecessary_casts=true
+cleanup.remove_unnecessary_nls_tags=true
+cleanup.remove_unused_imports=true
+cleanup.remove_unused_local_variables=false
+cleanup.remove_unused_private_fields=true
+cleanup.remove_unused_private_members=false
+cleanup.remove_unused_private_methods=true
+cleanup.remove_unused_private_types=true
+cleanup.sort_members=false
+cleanup.sort_members_all=false
+cleanup.use_anonymous_class_creation=false
+cleanup.use_blocks=true
+cleanup.use_blocks_only_for_return_and_throw=false
+cleanup.use_lambda=true
+cleanup.use_parentheses_in_expressions=false
+cleanup.use_this_for_non_static_field_access=false
+cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+cleanup.use_this_for_non_static_method_access=false
+cleanup.use_this_for_non_static_method_access_only_if_necessary=true
+cleanup.use_type_arguments=false
+cleanup_profile=_Papyrus
+cleanup_settings_version=2
+eclipse.preferences.version=1
+formatter_profile=_Papyrus
+formatter_settings_version=12
+org.eclipse.jdt.ui.ignorelowercasenames=true
+org.eclipse.jdt.ui.importorder=java;javax;org;com;
+org.eclipse.jdt.ui.javadoc=true
+org.eclipse.jdt.ui.ondemandthreshold=99
+org.eclipse.jdt.ui.staticondemandthreshold=99
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * Constructor.\n *\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*****************************************************************************\n * Copyright (c) ${year} CEA LIST and others.\n * \n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http\://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors\:\n * CEA LIST - Initial API and implementation\n * \n *****************************************************************************/\n</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/**\n * ${see_to_overridden}\n *\n * ${tags}\n */</template><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${see_to_target}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
diff --git a/extraplugins/cdo/org.eclipse.papyrus.cdo.uml.search.ui/src/org/eclipse/papyrus/cdo/uml/search/internal/ui/query/CDOSearchQueryProvider.java b/extraplugins/cdo/org.eclipse.papyrus.cdo.uml.search.ui/src/org/eclipse/papyrus/cdo/uml/search/internal/ui/query/CDOSearchQueryProvider.java
index 92809dc4d80..2b058d2e536 100644
--- a/extraplugins/cdo/org.eclipse.papyrus.cdo.uml.search.ui/src/org/eclipse/papyrus/cdo/uml/search/internal/ui/query/CDOSearchQueryProvider.java
+++ b/extraplugins/cdo/org.eclipse.papyrus.cdo.uml.search.ui/src/org/eclipse/papyrus/cdo/uml/search/internal/ui/query/CDOSearchQueryProvider.java
@@ -267,7 +267,7 @@ public class CDOSearchQueryProvider implements IPapyrusQueryProvider {
boolean first = true;
for (URI uri : scope) {
- String path = "/" + CDOURIUtil.extractResourcePath(uri);
+ String path = CDOURIUtil.extractResourcePath(uri);
if (uri.hasTrailingPathSeparator() && !path.endsWith("/")) { //$NON-NLS-1$
path = path + "/"; //$NON-NLS-1$
}
diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-GCM.Palette.xml b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-GCM.Palette.xml
index cae011eeae5..9a1dea3b86a 100644
--- a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-GCM.Palette.xml
+++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-GCM.Palette.xml
@@ -1 +1,27 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?><paletteDefinition><content><drawer iconpath="/icons/drawer.gif" id="Drawer__1283327086671" name="MARTE/GCM"><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif" id="createCallBehaviorAction2CreationTool_1283327647999" name="GCMInvocationAction (Call Behavior Action)" refToolId="createCallBehaviorAction11CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_DesignModel::GCM::GCMInvocationAction"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif" id="createCallOperationAction12CreationTool_1283327660625" name="GCMInvocationAction (Call Operation Action)" refToolId="createCallOperationAction12CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_DesignModel::GCM::GCMInvocationAction"/></stereotypesToApply></postAction></aspectTool></drawer></content></paletteDefinition> \ No newline at end of file
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<paletteDefinition>
+ <content>
+ <drawer iconpath="/icons/drawer.gif" id="Drawer__1283327086671" name="MARTE/GCM">
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif"
+ id="createCallBehaviorAction2CreationTool_1283327647999" name="GCMInvocationAction (Call Behavior Action)"
+ refToolId="activity.nodes.invocationactionsgroup.callbehavioraction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_DesignModel::GCM::GCMInvocationAction"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif"
+ id="createCallOperationAction12CreationTool_1283327660625" name="GCMInvocationAction (Call Operation Action)"
+ refToolId="activity.nodes.invocationactionsgroup.calloperationaction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_DesignModel::GCM::GCMInvocationAction"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ </drawer>
+ </content>
+</paletteDefinition> \ No newline at end of file
diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-GQAM.Palette.xml b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-GQAM.Palette.xml
index 88ea4cab193..aafee5844b4 100644
--- a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-GQAM.Palette.xml
+++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-GQAM.Palette.xml
@@ -1 +1,137 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?><paletteDefinition><content><drawer iconpath="/icons/drawer.gif" id="Drawer__1283328016472" name="MARTE/GQAM"><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif" id="createCallBehaviorAction11CreationTool_1283328053749" name="GaAcqStep (Call Behavior Action)" refToolId="createCallBehaviorAction11CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaAcqStep"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif" id="createCallOperationAction12CreationTool_1283328058561" name="GaAcqStep (Call Operation Action)" refToolId="createCallOperationAction12CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaAcqStep"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/ControlFlow.gif" id="createControlFlow1CreationTool_1283328394693" name="GaCommStep (Control Flow)" refToolId="createControlFlow1CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaCommStep"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif" id="createCallOperationAction12CreationTool_1283328402395" name="GaCommStep (Call Operation Action)" refToolId="createCallOperationAction12CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaCommStep"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif" id="createCallBehaviorAction11CreationTool_1283328469751" name="GaRelStep (Call Behavior Action)" refToolId="createCallBehaviorAction11CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaRelStep"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif" id="createCallOperationAction12CreationTool_1283328472204" name="GaRelStep (Call Operation Action)" refToolId="createCallOperationAction12CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaRelStep"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif" id="createCallOperationAction12CreationTool_1283328479595" name="GaRequestedService (Call Operation Action)" refToolId="createCallOperationAction12CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaRequestedService"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/StructuredActivityNode.gif" id="createStructuredActivityNode3CreationTool_1283328505406" name="GaScenario (Structured Activity Node)" refToolId="createStructuredActivityNode3CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaScenario"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/StructuredActivityNode.gif" id="createStructuredActivityNode3CreationTool_1283328520312" name="GaAnalysisContext (Structured Activity Node)" refToolId="createStructuredActivityNode3CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaAnalysisContext"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif" id="createCallBehaviorAction11CreationTool_1283328534686" name="GaStep (Call Behavior Action)" refToolId="createCallBehaviorAction11CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaStep"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif" id="createCallOperationAction12CreationTool_1283328537795" name="GaStep (Call Operation Action)" refToolId="createCallOperationAction12CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaStep"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/StructuredActivityNode.gif" id="createStructuredActivityNode3CreationTool_1283328732630" name="GaWorkloadBehavior (Structured Activity Node)" refToolId="createStructuredActivityNode3CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaWorkloadBehavior"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/AcceptEventAction.gif" id="createAcceptEventAction6CreationTool_1283328741427" name="GaWorkloadEvent (Accept Event Action)" refToolId="createAcceptEventAction6CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaWorkloadEvent"/></stereotypesToApply></postAction></aspectTool></drawer></content></paletteDefinition> \ No newline at end of file
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<paletteDefinition>
+ <content>
+ <drawer iconpath="/icons/drawer.gif" id="Drawer__1283328016472" name="MARTE/GQAM">
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif"
+ id="createCallBehaviorAction11CreationTool_1283328053749" name="GaAcqStep (Call Behavior Action)"
+ refToolId="activity.nodes.invocationactionsgroup.callbehavioraction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaAcqStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif"
+ id="createCallOperationAction12CreationTool_1283328058561" name="GaAcqStep (Call Operation Action)"
+ refToolId="activity.nodes.invocationactionsgroup.calloperationaction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaAcqStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/ControlFlow.gif"
+ id="createControlFlow1CreationTool_1283328394693" name="GaCommStep (Control Flow)"
+ refToolId="activity.edges.controlflow">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaCommStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif"
+ id="createCallOperationAction12CreationTool_1283328402395" name="GaCommStep (Call Operation Action)"
+ refToolId="activity.nodes.invocationactionsgroup.calloperationaction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaCommStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif"
+ id="createCallBehaviorAction11CreationTool_1283328469751" name="GaRelStep (Call Behavior Action)"
+ refToolId="activity.nodes.invocationactionsgroup.callbehavioraction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaRelStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif"
+ id="createCallOperationAction12CreationTool_1283328472204" name="GaRelStep (Call Operation Action)"
+ refToolId="activity.nodes.invocationactionsgroup.calloperationaction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaRelStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif"
+ id="createCallOperationAction12CreationTool_1283328479595" name="GaRequestedService (Call Operation Action)"
+ refToolId="activity.nodes.invocationactionsgroup.calloperationaction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaRequestedService"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/StructuredActivityNode.gif"
+ id="createStructuredActivityNode3CreationTool_1283328505406" name="GaScenario (Structured Activity Node)"
+ refToolId="activity.nodes.structuredactions.structuredactivitynode">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaScenario"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/StructuredActivityNode.gif"
+ id="createStructuredActivityNode3CreationTool_1283328520312" name="GaAnalysisContext (Structured Activity Node)"
+ refToolId="activity.nodes.structuredactions.structuredactivitynode">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaAnalysisContext"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif"
+ id="createCallBehaviorAction11CreationTool_1283328534686" name="GaStep (Call Behavior Action)"
+ refToolId="activity.nodes.invocationactionsgroup.callbehavioraction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif"
+ id="createCallOperationAction12CreationTool_1283328537795" name="GaStep (Call Operation Action)"
+ refToolId="activity.nodes.invocationactionsgroup.calloperationaction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/StructuredActivityNode.gif"
+ id="createStructuredActivityNode3CreationTool_1283328732630" name="GaWorkloadBehavior (Structured Activity Node)"
+ refToolId="activity.nodes.structuredactions.structuredactivitynode">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaWorkloadBehavior"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/AcceptEventAction.gif"
+ id="createAcceptEventAction6CreationTool_1283328741427" name="GaWorkloadEvent (Accept Event Action)"
+ refToolId="activity.nodes.accepteventaction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::GQAM::GaWorkloadEvent"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ </drawer>
+ </content>
+</paletteDefinition> \ No newline at end of file
diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-HLAM.Palette.xml b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-HLAM.Palette.xml
index 556d41e1b6a..446876e23b4 100644
--- a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-HLAM.Palette.xml
+++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-HLAM.Palette.xml
@@ -1 +1,47 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?><paletteDefinition><content><drawer iconpath="/icons/drawer.gif" id="Drawer__1283327690798" name="MARTE/HLAM"><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif" id="createCallBehaviorAction11CreationTool_1283327750223" name="RtAction (Call Behavior Action)" refToolId="createCallBehaviorAction11CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_DesignModel::HLAM::RtAction"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif" id="createCallOperationAction3CreationTool_1283327753051" name="RtAction (Call Operation Action)" refToolId="createCallOperationAction3CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_DesignModel::HLAM::RtAction"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif" id="createCallBehaviorAction11CreationTool_1283327764927" name="RtFeature (Call Behavior Action)" refToolId="createCallBehaviorAction11CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_DesignModel::HLAM::RtFeature"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif" id="createCallOperationAction3CreationTool_1283327770630" name="RtFeature (Call Operation Action)" refToolId="createCallOperationAction3CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_DesignModel::HLAM::RtFeature"/></stereotypesToApply></postAction></aspectTool></drawer></content></paletteDefinition> \ No newline at end of file
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<paletteDefinition>
+ <content>
+ <drawer iconpath="/icons/drawer.gif" id="Drawer__1283327690798" name="MARTE/HLAM">
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif"
+ id="createCallBehaviorAction11CreationTool_1283327750223" name="RtAction (Call Behavior Action)"
+ refToolId="activity.nodes.invocationactionsgroup.callbehavioraction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_DesignModel::HLAM::RtAction"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif"
+ id="createCallOperationAction3CreationTool_1283327753051" name="RtAction (Call Operation Action)"
+ refToolId="activity.nodes.invocationactionsgroup.calloperationaction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_DesignModel::HLAM::RtAction"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif"
+ id="createCallBehaviorAction11CreationTool_1283327764927" name="RtFeature (Call Behavior Action)"
+ refToolId="activity.nodes.invocationactionsgroup.callbehavioraction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_DesignModel::HLAM::RtFeature"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif"
+ id="createCallOperationAction3CreationTool_1283327770630" name="RtFeature (Call Operation Action)"
+ refToolId="activity.nodes.invocationactionsgroup.calloperationaction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_DesignModel::HLAM::RtFeature"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ </drawer>
+ </content>
+</paletteDefinition> \ No newline at end of file
diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-PAM.Palette.xml b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-PAM.Palette.xml
index d015a9f023f..0ed35b6a339 100644
--- a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-PAM.Palette.xml
+++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-PAM.Palette.xml
@@ -1 +1,107 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?><paletteDefinition><content><drawer iconpath="/icons/drawer.gif" id="Drawer__1283328866407" name="MARTE/PAM"><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif" id="createCallOperationAction12CreationTool_1283328903845" name="PaCommStep (Call Operation Action)" refToolId="createCallOperationAction12CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaCommStep"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/ControlFlow.gif" id="createControlFlow1CreationTool_1283328911564" name="PaCommStep (Control Flow)" refToolId="createControlFlow1CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaCommStep"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif" id="createCallBehaviorAction11CreationTool_1283328923846" name="PaRequestedStep (Call Behavior Action)" refToolId="createCallBehaviorAction11CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaRequestedStep"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif" id="createCallOperationAction12CreationTool_1283328926518" name="PaRequestedStep (Call Operation Action)" refToolId="createCallOperationAction12CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaRequestedStep"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif" id="createCallBehaviorAction11CreationTool_1283328934861" name="PaResPassStep (Call Behavior Action)" refToolId="createCallBehaviorAction11CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaResPassStep"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif" id="createCallOperationAction12CreationTool_1283328937674" name="PaResPassStep (Call Operation Action)" refToolId="createCallOperationAction12CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaResPassStep"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif" id="createCallBehaviorAction11CreationTool_1283328946799" name="PaRunTInstance (Call Behavior Action)" refToolId="createCallBehaviorAction11CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaRunTInstance"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif" id="createCallOperationAction12CreationTool_1283328949143" name="PaRunTInstance (Call Operation Action)" refToolId="createCallOperationAction12CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaRunTInstance"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif" id="createCallBehaviorAction11CreationTool_1283328954752" name="PaStep (Call Behavior Action)" refToolId="createCallBehaviorAction11CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaStep"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif" id="createCallOperationAction12CreationTool_1283328957456" name="PaStep (Call Operation Action)" refToolId="createCallOperationAction12CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaStep"/></stereotypesToApply></postAction></aspectTool></drawer></content></paletteDefinition> \ No newline at end of file
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<paletteDefinition>
+ <content>
+ <drawer iconpath="/icons/drawer.gif" id="Drawer__1283328866407" name="MARTE/PAM">
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif"
+ id="createCallOperationAction12CreationTool_1283328903845" name="PaCommStep (Call Operation Action)"
+ refToolId="activity.nodes.invocationactionsgroup.calloperationaction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaCommStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/ControlFlow.gif"
+ id="createControlFlow1CreationTool_1283328911564" name="PaCommStep (Control Flow)"
+ refToolId="activity.edges.controlflow">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaCommStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif"
+ id="createCallBehaviorAction11CreationTool_1283328923846" name="PaRequestedStep (Call Behavior Action)"
+ refToolId="activity.nodes.invocationactionsgroup.callbehavioraction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaRequestedStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif"
+ id="createCallOperationAction12CreationTool_1283328926518" name="PaRequestedStep (Call Operation Action)"
+ refToolId="activity.nodes.invocationactionsgroup.calloperationaction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaRequestedStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif"
+ id="createCallBehaviorAction11CreationTool_1283328934861" name="PaResPassStep (Call Behavior Action)"
+ refToolId="activity.nodes.invocationactionsgroup.callbehavioraction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaResPassStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif"
+ id="createCallOperationAction12CreationTool_1283328937674" name="PaResPassStep (Call Operation Action)"
+ refToolId="activity.nodes.invocationactionsgroup.calloperationaction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaResPassStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif"
+ id="createCallBehaviorAction11CreationTool_1283328946799" name="PaRunTInstance (Call Behavior Action)"
+ refToolId="activity.nodes.invocationactionsgroup.callbehavioraction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaRunTInstance"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif"
+ id="createCallOperationAction12CreationTool_1283328949143" name="PaRunTInstance (Call Operation Action)"
+ refToolId="activity.nodes.invocationactionsgroup.calloperationaction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaRunTInstance"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif"
+ id="createCallBehaviorAction11CreationTool_1283328954752" name="PaStep (Call Behavior Action)"
+ refToolId="activity.nodes.invocationactionsgroup.callbehavioraction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif"
+ id="createCallOperationAction12CreationTool_1283328957456" name="PaStep (Call Operation Action)"
+ refToolId="activity.nodes.invocationactionsgroup.calloperationaction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::PAM::PaStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ </drawer>
+ </content>
+</paletteDefinition> \ No newline at end of file
diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-SAM.Palette.xml b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-SAM.Palette.xml
index 0f596572554..366cdbe09ab 100644
--- a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-SAM.Palette.xml
+++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-SAM.Palette.xml
@@ -1 +1,78 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?><paletteDefinition><content><drawer iconpath="/icons/drawer.gif" id="Drawer__1283328761723" name="MARTE/SAM"><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/StructuredActivityNode.gif" id="createStructuredActivityNode3CreationTool_1283328732630_1283328806878" name="SaAnalysisContext (GaWorkloadBehavior (Structured Activity Node))" refToolId="createStructuredActivityNode3CreationTool_1283328732630"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::SAM::SaAnalysisContext"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif" id="createCallBehaviorAction11CreationTool_1283328816034" name="SaCommStep (Call Behavior Action)" refToolId="createCallBehaviorAction11CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::SAM::SaCommStep"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif" id="createCallOperationAction12CreationTool_1283328818518" name="SaCommStep (Call Operation Action)" refToolId="createCallOperationAction12CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::SAM::SaCommStep"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/ActivityPartition.gif" id="createActivityPartition1CreationTool_1283328829143" name="SaEndtoEndFlow (Activity Partition)" refToolId="createActivityPartition1CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::SAM::SaEndtoEndFlow"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/StructuredActivityNode.gif" id="createStructuredActivityNode3CreationTool_1283328844205" name="SaEndtoEndFlow (Structured Activity Node)" refToolId="createStructuredActivityNode3CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::SAM::SaEndtoEndFlow"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif" id="createCallBehaviorAction11CreationTool_1283328858204" name="SaStep (Call Behavior Action)" refToolId="createCallBehaviorAction11CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::SAM::SaStep"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif" id="createCallOperationAction12CreationTool_1283328861517" name="SaStep (Call Operation Action)" refToolId="createCallOperationAction12CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_AnalysisModel::SAM::SaStep"/></stereotypesToApply></postAction></aspectTool></drawer></content></paletteDefinition> \ No newline at end of file
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<paletteDefinition>
+ <content>
+ <drawer iconpath="/icons/drawer.gif" id="Drawer__1283328761723" name="MARTE/SAM">
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/StructuredActivityNode.gif"
+ id="createStructuredActivityNode3CreationTool_1283328732630_1283328806878"
+ name="SaAnalysisContext (GaWorkloadBehavior (Structured Activity Node))"
+ refToolId="createStructuredActivityNode3CreationTool_1283328732630">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::SAM::SaAnalysisContext"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif"
+ id="createCallBehaviorAction11CreationTool_1283328816034" name="SaCommStep (Call Behavior Action)"
+ refToolId="activity.nodes.invocationactionsgroup.callbehavioraction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::SAM::SaCommStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif"
+ id="createCallOperationAction12CreationTool_1283328818518" name="SaCommStep (Call Operation Action)"
+ refToolId="activity.nodes.invocationactionsgroup.calloperationaction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::SAM::SaCommStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/ActivityPartition.gif"
+ id="createActivityPartition1CreationTool_1283328829143" name="SaEndtoEndFlow (Activity Partition)"
+ refToolId="activity.nodes.activitygroup.activitypartition">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::SAM::SaEndtoEndFlow"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/StructuredActivityNode.gif"
+ id="createStructuredActivityNode3CreationTool_1283328844205" name="SaEndtoEndFlow (Structured Activity Node)"
+ refToolId="activity.nodes.structuredactions.structuredactivitynode">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::SAM::SaEndtoEndFlow"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallBehaviorAction.gif"
+ id="createCallBehaviorAction11CreationTool_1283328858204" name="SaStep (Call Behavior Action)"
+ refToolId="activity.nodes.invocationactionsgroup.callbehavioraction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::SAM::SaStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif"
+ id="createCallOperationAction12CreationTool_1283328861517" name="SaStep (Call Operation Action)"
+ refToolId="activity.nodes.invocationactionsgroup.calloperationaction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_AnalysisModel::SAM::SaStep"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ </drawer>
+ </content>
+</paletteDefinition> \ No newline at end of file
diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-Time.Palette.xml b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-Time.Palette.xml
index 7603b3cfdda..5de74b9144a 100644
--- a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-Time.Palette.xml
+++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/ActivityDiag-Time.Palette.xml
@@ -1 +1,27 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?><paletteDefinition><content><drawer iconpath="/icons/drawer.gif" id="Drawer__1283326723712" name="MARTE/Time"><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/DurationConstraint.gif" id="createLocalPostconditionDurationConstraint9CreationTool_1283326807805" name="TimedDurationConstraint" refToolId="createLocalPostconditionDurationConstraint37CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_Foundations::Time::TimedConstraint"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif" id="createCallOperationAction12CreationTool_1283326872887" name="TimedProcessing (Call Operation Action)" refToolId="createCallOperationAction12CreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_Foundations::Time::TimedProcessing"/></stereotypesToApply></postAction></aspectTool></drawer></content></paletteDefinition> \ No newline at end of file
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<paletteDefinition>
+ <content>
+ <drawer iconpath="/icons/drawer.gif" id="Drawer__1283326723712" name="MARTE/Time">
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/DurationConstraint.gif"
+ id="createLocalPostconditionDurationConstraint9CreationTool_1283326807805" name="TimedDurationConstraint"
+ refToolId="activity.nodes.createConstraintsGroup.localpostconditiondurationconstraint">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_Foundations::Time::TimedConstraint"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create an element with a stereotype"
+ iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/CallOperationAction.gif"
+ id="createCallOperationAction12CreationTool_1283326872887" name="TimedProcessing (Call Operation Action)"
+ refToolId="activity.nodes.invocationactionsgroup.calloperationaction">
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="MARTE::MARTE_Foundations::Time::TimedProcessing"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ </drawer>
+ </content>
+</paletteDefinition> \ No newline at end of file
diff --git a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/StateMachineDiag-CoreElements.Palette.xml b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/StateMachineDiag-CoreElements.Palette.xml
index b0a7e025415..5fefd7c28ac 100644
--- a/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/StateMachineDiag-CoreElements.Palette.xml
+++ b/extraplugins/marte/org.eclipse.papyrus.marte.static.profile/palettes/StateMachineDiag-CoreElements.Palette.xml
@@ -1 +1 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?><paletteDefinition><content><drawer iconpath="/icons/drawer.gif" id="Drawer__1286355073647" name="MARTE/CoreElements"><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Transition_local.gif" id="createTransitionCreationTool_1286355130937" name="ModeTransition (Transition)" refToolId="createTransitionCreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_Foundations::CoreElements::ModeTransition"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/State.gif" id="createStateCreationTool_1286355133577" name="Mode (State)" refToolId="createStateCreationTool"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_Foundations::CoreElements::Mode"/></stereotypesToApply></postAction></aspectTool></drawer></content></paletteDefinition> \ No newline at end of file
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><paletteDefinition><content><drawer iconpath="/icons/drawer.gif" id="Drawer__1286355073647" name="MARTE/CoreElements"><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Transition_local.gif" id="createTransitionCreationTool_1286355130937" name="ModeTransition (Transition)" refToolId="statemachine.createEdgesGroup.transition"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_Foundations::CoreElements::ModeTransition"/></stereotypesToApply></postAction></aspectTool><aspectTool description="Create an element with a stereotype" iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/State.gif" id="createStateCreationTool_1286355133577" name="Mode (State)" refToolId="statemachine.createNodesGroup.state"><postAction id="org.eclipse.papyrus.applystereotypeactionprovider"><stereotypesToApply><stereotype stereotypeName="MARTE::MARTE_Foundations::CoreElements::Mode"/></stereotypesToApply></postAction></aspectTool></drawer></content></paletteDefinition> \ No newline at end of file
diff --git a/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/transformation/BasicRequirementMerger.java b/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/transformation/BasicRequirementMerger.java
deleted file mode 100644
index 03648923a96..00000000000
--- a/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/transformation/BasicRequirementMerger.java
+++ /dev/null
@@ -1,425 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2015 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Mauricio Alferez (CEA LIST) mauricio.alferez@cea.fr - Initial API and implementation
- * Patrick Tessier (CEA LIST) patrick.tesseir@cea.fr- modification
- *
- *****************************************************************************/
-package org.eclipse.papyrus.req.reqif.transformation;
-
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.ObjectInputStream;
-import java.io.ObjectOutputStream;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.uml2.uml.Class;
-import org.eclipse.uml2.uml.Classifier;
-import org.eclipse.uml2.uml.Comment;
-import org.eclipse.uml2.uml.Element;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.PackageableElement;
-import org.eclipse.uml2.uml.Property;
-import org.eclipse.uml2.uml.Stereotype;
-import org.eclipse.uml2.uml.UMLFactory;
-/**
- * This is a basic merger in order to add requirement from right to left
- * could be improved by using hashmap
- * This algorithm is n2
- *
- */
-public class BasicRequirementMerger {
-
- protected Package leftPackage=null;
- protected Package rightPackage=null;
- protected String matchProperty=null;
- protected String changeableProperty=null;
- protected HashMap<String, Element> leftIndex= new HashMap<>();
- protected HashMap<String, Element> rightIndex= new HashMap<>();
-
- /**
- * Merge information from version2 into version1
- *
- * @param leftPackage
- * is the package where we will do the modifications
- * @param rightPackage
- * is the package that we will analyze
- * @param matchProperty
- * is the stereotype's property name used to determine if one
- * element in basePk is the same than other element in extPk. For
- * example, "id" is a good matchProperty when comparing SysML
- * Requirements
- * @param changeableProperty
- * is the property that we will change if the value of
- * copyAllPropertyValues is false. For example "text".
- * **/
- public BasicRequirementMerger(Package leftPackage, Package rightPackage, String matchProperty, String changeableProperty) {
- this.leftPackage=leftPackage;
- this.rightPackage=rightPackage;
- this.matchProperty=matchProperty;
- this.changeableProperty=changeableProperty;
- }
-
- /**
- *
- *@param checkPackageName
- * is an option. true means that the matched packaged elements
- * must be in packages with the same name.
- * @param copyAllPropertyValues
- * is an option. true means that the user wants to copy the name
- * and all the stereotype values. This option disables the
- * changeableProperty parameter.
- * @param deleteFromBase
- * is an option. True means that element that not match with right will be removed
- * @return true merge finishes successfully
- */
- public boolean merge(boolean checkPackageName, boolean copyAllPropertyValues, boolean deleteFromBase) {
- boolean merged = false;
- merged = updateAndAddFromRight(leftPackage, rightPackage, matchProperty, changeableProperty, checkPackageName, copyAllPropertyValues);
- if (merged && deleteFromBase == I_RI.DELETE_FROM_BASE) {
- deleteInsideLeft( matchProperty, checkPackageName, leftPackage,rightPackage);
- }
- return true;
- }
-
- private boolean deleteInsideLeft(String matchProperty, boolean checkPackageName, Package basePk, Package extPk) {
- List<PackageableElement> delList = new ArrayList<PackageableElement>();
- delList = (getElementsToBeDeleted(basePk, extPk, matchProperty,
- checkPackageName, delList));
- return delList.isEmpty() ? false : confirmDelete( basePk,
- delList, matchProperty);
- }
-
- /**
- * Prepare a list of Packageable Elements to be deleted from basePk
- *
- * @param version1
- * is the package where we will try to find elements to be
- * deleted because they are not anymore in the extPk (which is a
- * version of basePk that evolved separately).
- * @param version2
- * is the package where we will try to find elements that are not
- * in the basePk.
- * @param matchProperty
- * is the stereotype's property name used to determine if one
- * element in basePk is the same than other element in extPk. For
- * example, "id" is a good matchProperty when comparing SysML
- * Requirements
- * @param delList
- * empty list that will store the packageableElements to be
- * deleted.
- * @return list of packageableElements to be deleted.
- */
- private List<PackageableElement> getElementsToBeDeleted(
- org.eclipse.uml2.uml.Package version1,
- org.eclipse.uml2.uml.Package version2, String matchProperty,
- boolean checkPackageName, List<PackageableElement> delList) {
-
-// for (PackageableElement peInBasePk : version1.getPackagedElements()) {
-// if (peInBasePk instanceof org.eclipse.uml2.uml.Class
-// && peInBasePk.getAppliedStereotypes().size() > 0) {
-// Stereotype stOfPeInBasePk = peInBasePk.getAppliedStereotypes()
-// .get(0);
-// boolean foundMatch = false;
-// foundMatch = matchStereotypedPackagedElements(version2,
-// peInBasePk, stOfPeInBasePk, matchProperty, null,
-// checkPackageName, !I_RI.PERFORM_CHANGES,
-// !I_RI.COPY_All_PROPERTY_VALUES);
-// if (!foundMatch) {
-// delList.add(peInBasePk);
-// }
-// } else if (peInBasePk instanceof Package) {
-// return getElementsToBeDeleted((Package) peInBasePk, version2,
-// matchProperty, checkPackageName, delList);
-// }
-// }
- return delList;
- }
-
- /**
- * Confirm to delete or not a list of packageable elements
- *
- * @param window IWorkbenchWindow to receive the confirmation to delete the elements
- * @param baseModel package or model where the elements in delList will be deleted
- * @param delList list of elements to be deleted
- * @param matchProperty
- * is the stereotype's property name used to determine if one
- * element in basePk is the same than other element in
- * externalPk. For example "id" when comparing SysML
- * Requirements.
- * @return true if deletion finishes successfully
- */
- private boolean confirmDelete(Package baseModel,
- List<PackageableElement> delList, String matchProperty) {
- StringBuffer humanReadableList = new StringBuffer();
-
- for (PackageableElement pe : delList) {
- humanReadableList.append("\n"
- + matchProperty
- + I_RI.TOOL_PROPERTY_SEPARATOR
- + pe.getValue(pe.getAppliedStereotypes().get(0),
- matchProperty) + "\t"
- + I_RI.PACKAGED_ELEMENT_NAME_ATT
- + I_RI.TOOL_PROPERTY_SEPARATOR + pe.getName());
- }
- if (MessageDialog.openQuestion(new Shell(), I_RI.TOOL_TITLE,
- I_RI.TOOL_DEL_CONFIRM + humanReadableList)) {
- return deletePackagedElements(delList, baseModel, matchProperty);
- }
- return false;
- }
-
- /**
- * Delete a list of packageable elements without any confirmation from the user
- *
- * @param delList list of elements to be deleted
- * @param basePk
- * @param matchProperty
- * @return
- */
- private boolean deletePackagedElements(List<PackageableElement> delList,
- Package basePk, String matchProperty) {
- for (Iterator<PackageableElement> elementsToDelete = delList.iterator(); elementsToDelete
- .hasNext();) {
- PackageableElement del = elementsToDelete.next();
- Stereotype stOfDel = del.getAppliedStereotypes().get(0);
- String matchInDel = (String) del.getValue(stOfDel, matchProperty);
-
- for (Iterator<PackageableElement> elementsInBasePk = basePk
- .getPackagedElements().iterator(); elementsInBasePk
- .hasNext();) {
- PackageableElement peInBasePk = elementsInBasePk.next();
- if (peInBasePk instanceof org.eclipse.uml2.uml.Class
- && peInBasePk.getAppliedStereotypes().size() > 0) {
- Stereotype stOfmatchInBasePk = peInBasePk
- .getAppliedStereotypes().get(0);
- String matchInBasePk = (String) peInBasePk.getValue(
- stOfmatchInBasePk, matchProperty);
- if (matchInDel.trim().contentEquals(matchInBasePk.trim())) {
- peInBasePk.destroy();
- break;
- }
- } else if (peInBasePk instanceof Package) {
- return deletePackagedElements(delList,
- (Package) peInBasePk, matchProperty);
- }
- }
- }
- return true;
- }
-
-
- /**
- * Merge information from version2 into version1
- *
- * @param leftContainer
- * is the package where we will do the modifications
- * @param rightContainer
- * is the package that we will analyze
- * @param matchProperty
- * is the stereotype's property name used to determine if one
- * element in basePk is the same than other element in extPk. For
- * example, "id" is a good matchProperty when comparing SysML
- * Requirements
- * @param changeableProperty
- * is the property that we will change if the value of
- * copyAllPropertyValues is false. For example "text".
- * @param chkPkNameOption
- * is an option. true means that the matched packaged elements
- * must be in packages with the same name.
- * @param copyOption
- * is an option. true means that the user wants to copy the name
- * and all the stereotype values. This option disables the
- * changeableProperty parameter.
- * @return true merge finishes successfully
- */
- private boolean updateAndAddFromRight(org.eclipse.uml2.uml.Element leftContainer, org.eclipse.uml2.uml.Element rightContainer, String matchProperty,
- String changeableProperty, boolean chkPkNameOption, boolean copyOption) {
- for (Element subElementFromRight : rightContainer.getOwnedElements()) {
- Element foundLeftElement = null;
- if (subElementFromRight.getAppliedStereotypes().size() > 0) {
- Stereotype appliedStereotypeFromRight= subElementFromRight.getAppliedStereotypes().get(0);
-
- foundLeftElement = matchStereotypedPackagedElements(leftContainer,subElementFromRight, appliedStereotypeFromRight, matchProperty,
- changeableProperty);
- if(foundLeftElement!=null){
- copyConfig(subElementFromRight, appliedStereotypeFromRight, changeableProperty,foundLeftElement, appliedStereotypeFromRight, copyOption);
-
- }
- else {
- foundLeftElement = addElementInsideLeft(leftContainer, subElementFromRight, appliedStereotypeFromRight);
- }
- }
- if (subElementFromRight.getOwnedElements().size()>0) {
- return updateAndAddFromRight(foundLeftElement, subElementFromRight, matchProperty, changeableProperty, chkPkNameOption, copyOption);
- }
- }
- return true;
- }
-
- /**
- * Add a packageable element from right to left
- *
- * @param leftContainer
- * is the package where we will add new elements from rightPackage.
- * @param elementFromRight
- * Packageable element in Right package.
- * @param appliedSterotypeRight
- * stereotype of peInExtPk.
- * @return createdElement
- */
- private Element addElementInsideLeft(Element leftContainer,Element elementFromRight, Stereotype appliedSterotypeRight) {
- Element result= null;
- EObject stApplication_right = elementFromRight.getStereotypeApplication(appliedSterotypeRight);
- ArrayList<EObject> subsetToCopy=new ArrayList<EObject>();
- subsetToCopy.add(elementFromRight);
- subsetToCopy.add(elementFromRight.getStereotypeApplication(appliedSterotypeRight));
- Collection<EObject> copy=EcoreUtil.copyAll(subsetToCopy);
- for (EObject eObject : copy) {
- if( eObject instanceof Element){
- if( eObject instanceof Comment){
- (leftContainer).getOwnedComments().add((Comment) eObject);}
- else if( leftContainer instanceof Package && eObject instanceof PackageableElement ){
- ((Package)leftContainer).getPackagedElements().add((PackageableElement) eObject);}
- else if( leftContainer instanceof Classifier && eObject instanceof Classifier){
- ((Class)leftContainer).getNestedClassifiers().add((Classifier) eObject);}
- else{
- System.err.println("Impossible to add "+ eObject+ " inside"+ leftContainer);
- }
- result=(Element) eObject;
- }
- else{
- leftContainer.eResource().getContents().add(eObject);
- }
- }
- return result;
- }
-
- /**
- * Copy all not derived stereotype property values without changing the base
- * class
- *
- * @param peInExtPk
- * Packageable element in external package.
- * @param stOfExtPe
- * stereotype of peInExtPk.
- * @param peInBasePk
- * Packageable element in base package that will receive the new
- * values from peInExtPk.
- */
- private void copyAllStereotypePropertyValues(Element peInExtPk,
- Stereotype stOfExtPe, Element peInBasePk) {
- for (Property stProperty : stOfExtPe.getAllAttributes()) {
- if (!stProperty.isReadOnly() && !stProperty.isDerived()
- && !stProperty.getName().startsWith("base_")) {
- peInBasePk.setValue(stOfExtPe, stProperty.getName(),
- peInExtPk.getValue(stOfExtPe, stProperty.getName()));
- }
- }
- }
-
- /**
- * Matches two stereotyped packageable elements based on a matchProperty at the current level
- *
- * @param containerLeft
- * is the container where we look for elementRight
- * @param elementRight
- * is the stereotyped PackagedElement to be matched. For example,
- * the packaged element of type "org.eclipse.uml2.uml.Class"
- * stereotyped with "ReqType5".
- * @param appliedStereotypeRight
- * is the Stereotype that defines the matchProperty. For example,
- * the stereotype "ReqType5" defines the matchProperty "id".
- * @param matchProperty
- * is the stereotype's property name used to determine if one
- * element in basePk matches other element in extPk. For example,
- * the stereotype "Requirement" in the profile SysML Requirements
- * defines the property "id" that is used frequently as a
- * matchProperty.
- * @param changeableProperty
- * is the property whose value will be changed. For example the
- * property "text" in the stereotype "Requirement".
- * @param checkPackageName
- * is an option. true means that the matched packaged elements
- * must be in packages with the same name.
- * @param performChanges
- * is an option. true means that the user wants to actually
- * change the value of changeableProperty. false will disable the
- * copyAllPropertyValues option.
-
- * @return the element that matches
- */
- private Element matchStereotypedPackagedElements(Element containerLeft, Element elementRight,
- Stereotype appliedStereotypeRight, String matchProperty,String changeableProperty) {
- String matchPropertyValueRight = (String) elementRight.getValue(appliedStereotypeRight, matchProperty);
- if(matchPropertyValueRight!=null){
- for (Element subElementLeft : containerLeft.getOwnedElements()) {
- if (subElementLeft.getAppliedStereotypes().size() > 0) {
- Stereotype appliedStereotypeLeft = subElementLeft.getAppliedStereotypes().get(0);
- if (appliedStereotypeLeft.getName().equals(appliedStereotypeRight.getName())) {
- String matchPropertyValueLeft = (String) subElementLeft.getValue(appliedStereotypeLeft, matchProperty);
- if(matchPropertyValueLeft!=null){
- if (matchPropertyValueRight.trim().equals(matchPropertyValueLeft.trim())) {
- return subElementLeft;
- }
- }
- }
- }
- }
- }
- return null;
- }
-
- /**
- * Copy the name of an element and either one or all stereotype property
- * values depending on the parameter copyOption
- *
- * @param rightElement
- * is the packageable element in external package
- * @param AppliedStereotypeRight
- * is the stereotype of peInExtPk
- * @param changeableProperty
- * is the property to copy when the value of copyOption is false
- * @param leftElement
- * is the stereotyped packageable element whose value(s) will be
- * modified.
- * @param stOfPeInBasePk
- * is the stereotype of peInBasePk
- * @param copyOption
- * is the copy option. true means to copy all the stereotype
- * property values. false means to copy only the property in the
- * parameter changeableProperty.
- */
- private void copyConfig(Element rightElement, Stereotype AppliedStereotypeRight,
- String changeableProperty, Element leftElement,
- Stereotype appliedStereotype, boolean copyOption) {
- if (copyOption == I_RI.COPY_All_PROPERTY_VALUES) {
- if( leftElement instanceof NamedElement){
- ((NamedElement)leftElement).setName(((NamedElement)rightElement).getName());
- }
- for (Stereotype st : leftElement.getAppliedStereotypes()) {
- copyAllStereotypePropertyValues(rightElement, st, leftElement);
- }
- } else if (copyOption != I_RI.COPY_All_PROPERTY_VALUES) {
- leftElement.setValue(appliedStereotype, changeableProperty,
- rightElement.getValue(AppliedStereotypeRight, changeableProperty));
- }
- }
-
-}
diff --git a/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/transformation/I_RI.java b/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/transformation/I_RI.java
deleted file mode 100644
index 495a4d35d1b..00000000000
--- a/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/transformation/I_RI.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.eclipse.papyrus.req.reqif.transformation;
-
-public interface I_RI {
- /** name of the stereotype "Requirement" */
- public static final String REQ = "Requirement";
- /** name of property "text" of the stereotype "Requirement" */
- public static final String REQ_TEXT_ATT = "text";
- /** name of property "id" of the stereotype "Requirement" */
- public static final String REQ_ID_ATT = "id";
- /** name of property "name" of PackagedElement */
- public static final String PACKAGED_ELEMENT_NAME_ATT = "name";
- /** Qualified name of stereotype Requirement */
- public static final String REQ_STEREOTYPE = "SysML::Requirements::Requirement";
- /** Delete from the base model the requirements that are not in the external model*/
- public static final boolean DELETE_FROM_BASE = true;
- /** Copy all contents without references to the original object during a merge process. If it is true, it will overwrite the "changeable parameter" parameter */
- public static final boolean COPY_All_PROPERTY_VALUES = true;
- /** Change values in properties when the matchStereotypedPackagedElements method finds a match */
- public static final boolean PERFORM_CHANGES = true;
- /** Check package name during matching*/
- public static final boolean CHECK_PACKAGE_NAME = true;
- /** name to show in at the beginning of user messages */
- public static final String TOOL_TITLE = "Papyrus SysML REQ Reimport";
- /** Confirmation message to make sure that the user really wants to delete requirements in base model*/
- public static final String TOOL_DEL_CONFIRM = "Do you really want to delete: ";
- /** Papyrus REQ reimport message when the tool finished without problems */
- public static final String TOOL_SUCCESS = "Successfull re-import";
- /** Papyrus REQ reimport message when the tool finished with problems */
- public static final String TOOL_FAIL = "UnSuccessfull re-import";
- /** Constant message when a File cannot be read*/
- public static final String TOOL_ERR_FILE_READ ="Not Readable files";
- /** Constant property value separator*/
- public static final String TOOL_PROPERTY_SEPARATOR =": ";
-}
diff --git a/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/transformation/ReqIFImporter.java b/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/transformation/ReqIFImporter.java
index c682503e91c..7cf3b6da8c3 100644
--- a/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/transformation/ReqIFImporter.java
+++ b/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/transformation/ReqIFImporter.java
@@ -43,6 +43,8 @@ import org.eclipse.papyrus.req.reqif.assistant.CreateOrSelectProfilDialog;
import org.eclipse.papyrus.req.reqif.assistant.SelectProfilDialog;
import org.eclipse.papyrus.req.reqif.integration.assistant.ChooseAttributeEnumerationDialog;
import org.eclipse.papyrus.req.reqif.preference.ReqIFPreferenceConstants;
+import org.eclipse.papyrus.req.reqif.util.BasicRequirementMerger;
+import org.eclipse.papyrus.req.reqif.util.IRequirementMerger;
import org.eclipse.papyrus.uml.extensionpoints.profile.IRegisteredProfile;
import org.eclipse.papyrus.uml.extensionpoints.profile.RegisteredProfile;
import org.eclipse.papyrus.uml.extensionpoints.utils.Util;
@@ -316,9 +318,9 @@ public abstract class ReqIFImporter extends ReqIFBaseTransformation {
}
targetUMLModel=reImportModel;
boolean importResult= importReqIFModel ( interactive);
- BasicRequirementMerger merger= new BasicRequirementMerger(firstVersion, targetUMLModel, I_RI.REQ_ID_ATT,null);
- merger.merge( !I_RI.CHECK_PACKAGE_NAME, I_RI.COPY_All_PROPERTY_VALUES, I_RI.DELETE_FROM_BASE);
-
+ IRequirementMerger merger= new BasicRequirementMerger(firstVersion, targetUMLModel, I_SysMLStereotype.REQUIREMENT_ID_ATT, true, domain);
+ merger.merge();
+ firstVersion.eResource().getContents().remove(targetUMLModel);
return importResult;
}
/**
diff --git a/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/util/BasicRequirementMerger.java b/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/util/BasicRequirementMerger.java
new file mode 100644
index 00000000000..02f1e354811
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/util/BasicRequirementMerger.java
@@ -0,0 +1,391 @@
+/*****************************************************************************
+ * Copyright (c) 2015 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Mauricio Alferez (CEA LIST) mauricio.alferez@cea.fr - Initial API and implementation
+ * Patrick Tessier (CEA LIST) patrick.tesseir@cea.fr- modification
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.req.reqif.util;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+
+import org.eclipse.emf.common.command.Command;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Classifier;
+import org.eclipse.uml2.uml.Comment;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.PackageableElement;
+import org.eclipse.uml2.uml.Property;
+import org.eclipse.uml2.uml.Stereotype;
+/**
+ * This is a basic merger in order to add requirement from right to left
+ * could be improved by using hashmap
+ * This algorithm is n2
+ *
+ */
+public class BasicRequirementMerger implements IRequirementMerger {
+
+ protected Package leftPackage=null;
+ protected Package rightPackage=null;
+ protected String matchProperty=null;
+ protected String changeableProperty=null;
+ protected EqualityHelperWithoutContainment equalityHelper= new EqualityHelperWithoutContainment();
+ protected CopierWithoutContainment copier= new CopierWithoutContainment();
+ protected TransactionalEditingDomain domain;
+ protected ArrayList<Element> elementToDelete= new ArrayList<Element>();
+ protected ArrayList<Element> addedElements= new ArrayList<Element>();
+ protected boolean deleteElements=true;
+
+ /* (non-Javadoc)
+ * @see org.eclipse.papyrus.req.reqif.transformation.IRequirementMerger#getElementToDelete()
+ */
+ @Override
+ public ArrayList<Element> getElementToDelete() {
+ return elementToDelete;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.papyrus.req.reqif.transformation.IRequirementMerger#getAddedElements()
+ */
+ @Override
+ public ArrayList<Element> getAddedElements() {
+ return addedElements;
+ }
+
+
+ /**
+ * Merge information from version2 into version1
+ *
+ * @param leftPackage
+ * is the package where we will do the modifications
+ * @param rightPackage
+ * is the package that we will analyze
+ * @param matchProperty
+ * is the stereotype's property name used to determine if one
+ * element in basePk is the same than other element in extPk. For
+ * example, "id" is a good matchProperty when comparing SysML
+ * Requirements
+ * @param changeableProperty
+ * is the property that we will change if the value of
+ * copyAllPropertyValues is false. For example "text".
+ * **/
+ public BasicRequirementMerger(Package leftPackage, Package rightPackage, String matchProperty, boolean deleteElements, TransactionalEditingDomain domain) {
+ this.leftPackage=leftPackage;
+ this.rightPackage=rightPackage;
+ this.matchProperty=matchProperty;
+ this.domain=domain;
+ this.deleteElements=deleteElements;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.papyrus.req.reqif.transformation.IRequirementMerger#merge()
+ */
+ @Override
+ public boolean merge() {
+ boolean merged = false;
+ equalityHelper=new EqualityHelperWithoutContainment();
+ merged = updateAndAddFromRight(leftPackage, rightPackage, matchProperty);
+ equalityHelper=new EqualityHelperWithoutContainment();
+ if (merged ) {
+ deleteInsideLeft( matchProperty, leftPackage,rightPackage);
+ }
+ return true;
+ }
+
+ /**
+ *
+ * @param matchProperty the property if stereotype used to delete element
+ * @param checkPackageName
+ * @param leftPackage the package where element will be removed
+ * @param rightPackage the package that will be compared
+ */
+ protected void deleteInsideLeft(String matchProperty, Package leftPackage, Package rightPackage) {
+ elementToDelete = getElementsToBeDeleted(leftPackage, rightPackage, matchProperty, elementToDelete);
+ filterReq( matchProperty);
+ if(deleteElements){
+ deleteElements(elementToDelete, leftPackage);
+ }
+ }
+
+ /**
+ * filter elements that has an ID property
+ * @param matchProperty
+ */
+ protected void filterReq(String matchProperty) {
+ ArrayList<Element> result= new ArrayList<Element>();
+ for (Element elementToDelete : elementToDelete) {
+ if( elementToDelete.getAppliedStereotypes().size()>0){
+ Stereotype appliedStereotype=elementToDelete.getAppliedStereotypes().get(0);
+ if((elementToDelete.getStereotypeApplication(appliedStereotype)).eClass().getEStructuralFeature(matchProperty)!=null){
+ String idValue= (String) elementToDelete.getValue(appliedStereotype, matchProperty);
+ if( idValue!=null){
+ result.add(elementToDelete);
+ }
+ }
+ }
+ }
+ elementToDelete=result;
+
+ }
+
+ /**
+ * Prepare a list of Packageable Elements to be deleted from basePk
+ *
+ * @param version1
+ * is the package where we will try to find elements to be
+ * deleted because they are not anymore in the extPk (which is a
+ * version of basePk that evolved separately).
+ * @param version2
+ * is the package where we will try to find elements that are not
+ * in the basePk.
+ * @param matchProperty
+ * is the stereotype's property name used to determine if one
+ * element in basePk is the same than other element in extPk. For
+ * example, "id" is a good matchProperty when comparing SysML
+ * Requirements
+ * @param delList
+ * empty list that will store the packageableElements to be
+ * deleted.
+ * @return list of packageableElements to be deleted.
+ */
+ protected ArrayList<Element> getElementsToBeDeleted(
+ Element containerLeft, Element containerRight,
+ String matchProperty,ArrayList<Element> delList) {
+
+ for (Element elementLeft : containerLeft.getOwnedElements()) {
+ Element foundRightElement = null;
+ foundRightElement = lookforEquivalent(containerRight,elementLeft, matchProperty);
+ if(foundRightElement==null){
+ delList.add(elementLeft);
+ }
+ if (elementLeft.getOwnedElements().size()>0&&foundRightElement!=null) {
+ getElementsToBeDeleted(elementLeft, foundRightElement, matchProperty, delList);
+ }
+ }
+ return delList;
+ }
+
+
+ /**
+ * Delete a list of packageable elements without any confirmation from the user
+ *
+ * @param delList list of elements to be deleted
+ * @param basePk the container of all element it can be indirect.
+ * @param matchProperty
+ * @return true if no problems
+ */
+ protected boolean deleteElements(List<Element> delList, Package basePk) {
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(basePk);
+ if(provider == null) {
+ return false;
+ }
+
+ for (Element elementToDelete : delList) {
+ if( elementToDelete!=null){
+ ICommand createGMFCommand = provider.getEditCommand(new DestroyElementRequest(domain, elementToDelete, false));
+
+ if(createGMFCommand != null) {
+ Command emfCommand = new org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper(createGMFCommand);
+ domain.getCommandStack().execute(emfCommand);
+ }
+ }
+ }
+ return true;
+ }
+
+
+ /**
+ * Merge information from right into left
+ *
+ * @param leftContainer
+ * is the package where we will do the modifications
+ * @param rightContainer
+ * is the package that we will analyze
+ * @param matchProperty
+ * is the stereotype's property name used to determine if one
+ * element in basePk is the same than other element in extPk. For
+ * example, "id" is a good matchProperty when comparing SysML
+ * Requirements
+ * @param changeableProperty
+ * is the property that we will change if the value of
+ * copyAllPropertyValues is false. For example "text".
+ * @param copyOption
+ * is an option. true means that the user wants to copy the name
+ * and all the stereotype values. This option disables the
+ * changeableProperty parameter.
+ * @return true merge finishes successfully
+ */
+ protected boolean updateAndAddFromRight(org.eclipse.uml2.uml.Element leftContainer, org.eclipse.uml2.uml.Element rightContainer, String matchProperty) {
+ for (Element subElementFromRight : rightContainer.getOwnedElements()) {
+ Element foundLeftElement = null;
+ foundLeftElement = lookforEquivalent(leftContainer,subElementFromRight, matchProperty);
+ if(foundLeftElement!=null){
+ copyConfig(subElementFromRight, foundLeftElement);
+
+ }
+ else {
+ foundLeftElement = addElementInsideLeft(leftContainer, subElementFromRight);
+ }
+
+ if (subElementFromRight.getOwnedElements().size()>0) {
+ updateAndAddFromRight(foundLeftElement, subElementFromRight, matchProperty);
+ }
+ }
+ return true;
+ }
+
+ /**
+ * Add an element from right to left
+ *
+ * @param leftContainer
+ * is the package where we will add new elements from rightPackage.
+ * @param elementFromRight
+ * element in Right package.
+ * @param appliedSterotypeRight
+ * stereotype of peInExtPk.
+ * @return createdElement
+ */
+ protected Element addElementInsideLeft(Element leftContainer,Element elementFromRight) {
+ Element result= null;
+ ArrayList<EObject> subsetToCopy=new ArrayList<EObject>();
+ subsetToCopy.add(elementFromRight);
+ for (EObject stereoAppli : elementFromRight.getStereotypeApplications()) {
+ subsetToCopy.add(stereoAppli);
+ }
+
+
+ Collection<EObject> copy=copier.copyAll(subsetToCopy);
+ copier.copyReferences();
+ for (EObject eObject : copy) {
+ if( eObject instanceof Element){
+ addedElements.add((Element)eObject);
+ if( eObject instanceof Comment){
+ (leftContainer).getOwnedComments().add((Comment) eObject);}
+ else if( leftContainer instanceof Package && eObject instanceof PackageableElement ){
+ ((Package)leftContainer).getPackagedElements().add((PackageableElement) eObject);}
+ else if( leftContainer instanceof Classifier && eObject instanceof Classifier){
+ ((Class)leftContainer).getNestedClassifiers().add((Classifier) eObject);}
+ else{
+ System.err.println("Impossible to add "+ eObject+ " inside"+ leftContainer);
+ }
+ result=(Element) eObject;
+ }
+ else{
+ leftContainer.eResource().getContents().add(eObject);
+ }
+ }
+ return result;
+ }
+
+ /**
+ * Copy all not derived stereotype property values without changing the base
+ * class
+ *
+ * @param peInExtPk
+ * Packageable element in external package.
+ * @param stOfExtPe
+ * stereotype of peInExtPk.
+ * @param peInBasePk
+ * Packageable element in base package that will receive the new
+ * values from peInExtPk.
+ */
+ protected void copyAllStereotypePropertyValues(Element peInExtPk,
+ Stereotype stOfExtPe, Element peInBasePk) {
+ for (Property stProperty : stOfExtPe.getAllAttributes()) {
+ if (!stProperty.isReadOnly() && !stProperty.isDerived() && !stProperty.getName().startsWith("base_")) {
+ peInBasePk.setValue(stOfExtPe, stProperty.getName(),peInExtPk.getValue(stOfExtPe, stProperty.getName()));
+ }
+ }
+ }
+
+ /**
+ * Matches two stereotyped packageable elements based on a matchProperty at the current level
+ *
+ * @param researchSpace
+ * is the container where we look for elementRight
+ * @param wantedElement
+ * is the stereotyped PackagedElement to be matched. For example,
+ * the packaged element of type "org.eclipse.uml2.uml.Class"
+ * stereotyped with "ReqType5".
+ * @param matchProperty
+ * is the stereotype's property name used to determine if one
+ * element in basePk matches other element in extPk. For example,
+ * the stereotype "Requirement" in the profile SysML Requirements
+ * defines the property "id" that is used frequently as a
+ * matchProperty.
+
+ * @return the element that matches
+ */
+ protected Element lookforEquivalent(Element researchSpace, Element wantedElement, String matchProperty) {
+
+ for (Element potentialElement : researchSpace.getOwnedElements()) {
+ if(equalityHelper.equals(potentialElement, wantedElement)){
+
+ if(wantedElement.getAppliedStereotypes().size()==0){
+ return potentialElement;
+ }
+ //they have a stereotype
+ Stereotype wantedAppliedStereotype=wantedElement.getAppliedStereotypes().get(0);
+ //have they the same applied stereotype?
+ if(!potentialElement.isStereotypeApplied(wantedAppliedStereotype)){
+ return null;
+ }
+ String wantedPropertyValue = null;
+ String potentialPropertyValueLeft=null;
+ if((wantedElement.getStereotypeApplication(wantedAppliedStereotype)).eClass().getEStructuralFeature(matchProperty)!=null){
+ wantedPropertyValue = (String) wantedElement.getValue(wantedAppliedStereotype, matchProperty);
+ }
+ if((potentialElement.getStereotypeApplication(wantedAppliedStereotype)).eClass().getEStructuralFeature(matchProperty)!=null){
+ potentialPropertyValueLeft = (String) potentialElement.getValue(wantedAppliedStereotype, matchProperty);
+ }
+ if(potentialPropertyValueLeft==null && wantedPropertyValue==null){
+ return potentialElement;
+ }
+ if(potentialPropertyValueLeft!=null&&wantedPropertyValue!=null){
+ if (wantedPropertyValue.trim().equals(potentialPropertyValueLeft.trim())) {
+ return potentialElement;
+ }
+ }
+ }
+
+ }
+ return null;
+ }
+
+ /**
+ * Copy the name of an element and either one or all stereotype property
+ * values depending on the parameter copyOption
+ *
+ * @param rightElement
+ * is the packageable element in external package
+ * @param leftElement
+ * is the stereotyped packageable element whose value(s) will be
+ * modified.
+ */
+ protected void copyConfig(Element rightElement, Element leftElement) {
+ if( leftElement instanceof NamedElement){
+ ((NamedElement)leftElement).setName(((NamedElement)rightElement).getName());
+ }
+ for (Stereotype st : leftElement.getAppliedStereotypes()) {
+ copyAllStereotypePropertyValues(rightElement, st, leftElement);
+ }
+ }
+}
diff --git a/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/util/CopierWithoutContainment.java b/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/util/CopierWithoutContainment.java
new file mode 100644
index 00000000000..b937a390e3d
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/util/CopierWithoutContainment.java
@@ -0,0 +1,473 @@
+package org.eclipse.papyrus.req.reqif.util;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.ecore.util.FeatureMap;
+import org.eclipse.emf.ecore.util.FeatureMapUtil;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * A mapping building traverser of a collection of {@link EObject#eAllContents content trees};
+ * the map is from {@link EObject} to <code>EObject</code>, i.e., from original to copy;
+ * use {@link EcoreUtil#copy EcoreUtil.copy} or {@link EcoreUtil#copyAll EcoreUtil.copyAll} to do routine copies.
+ * Since this implementation extends a Map implementation, it acts as the result of the over all copy.
+ * The client can call {@link #copy copy} and {@link #copyAll copyAll} repeatedly.
+ * When all the objects have been copied,
+ * the client should call {@link #copyReferences copyReferences}
+ * to copy the {@link #copyReference appropriate} {@link EObject#eCrossReferences cross references}.
+ *<pre>
+ * Copier copier = new Copier();
+ * EObject result = copier.copy(eObject);
+ * Collection results = copier.copyAll(eObjects);
+ * copier.copyReferences();
+ *</pre>
+ * The copier delegates to {@link #copyContainment copyContainment}, {@link #copyAttribute copyAttribute} during the copy phase
+ * and to {@link #copyReference copyReference}, during the cross reference phase.
+ * This allows tailored handling through derivation.
+ */
+public class CopierWithoutContainment extends LinkedHashMap<EObject, EObject>
+{
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * Whether proxies should be resolved during copying.
+ */
+ protected boolean resolveProxies = true;
+
+ /**
+ * Whether non-copied references should be used during copying.
+ */
+ protected boolean useOriginalReferences = true;
+
+ /**
+ * Creates an instance.
+ */
+ public CopierWithoutContainment()
+ {
+ super();
+ }
+
+ /**
+ * Creates an instance that resolves proxies or not as specified.
+ * @param resolveProxies whether proxies should be resolved while copying.
+ */
+ public CopierWithoutContainment(boolean resolveProxies)
+ {
+ this.resolveProxies = resolveProxies;
+ }
+
+ /**
+ * Creates an instance that resolves proxies or not and uses non-copied references or not as specified.
+ * @param resolveProxies whether proxies should be resolved while copying.
+ * @param useOriginalReferences whether non-copied references should be used while copying.
+ */
+ public CopierWithoutContainment(boolean resolveProxies, boolean useOriginalReferences)
+ {
+ this.resolveProxies = resolveProxies;
+ this.useOriginalReferences = useOriginalReferences;
+ }
+
+ /**
+ * Returns a collection containing a copy of each EObject in the given collection.
+ * @param eObjects the collection of objects to copy.
+ * @return the collection of copies.
+ */
+ public <T> Collection<T> copyAll(Collection<? extends T> eObjects)
+ {
+ Collection<T> result = new ArrayList<T>(eObjects.size());
+ for (Object object : eObjects)
+ {
+ @SuppressWarnings("unchecked") T t = (T)copy((EObject)object);
+ if (t != null)
+ {
+ result.add(t);
+ }
+ }
+ return result;
+ }
+
+ /**
+ * Returns a copy of the given eObject.
+ * @param eObject the object to copy.
+ * @return the copy.
+ */
+ public EObject copy(EObject eObject)
+ {
+ if (eObject == null)
+ {
+ return null;
+ }
+ else
+ {
+ EObject copyEObject = createCopy(eObject);
+ if (copyEObject != null)
+ {
+ put(eObject, copyEObject);
+ EClass eClass = eObject.eClass();
+ for (int i = 0, size = eClass.getFeatureCount(); i < size; ++i)
+ {
+ EStructuralFeature eStructuralFeature = eClass.getEStructuralFeature(i);
+ if (eStructuralFeature.isChangeable() && !eStructuralFeature.isDerived())
+ {
+ if (eStructuralFeature instanceof EAttribute)
+ {
+ copyAttribute((EAttribute)eStructuralFeature, eObject, copyEObject);
+ }
+ else
+ {
+ EReference eReference = (EReference)eStructuralFeature;
+ if (eReference.isContainment())
+ {
+ //copyContainment(eReference, eObject, copyEObject);
+ }
+ }
+ }
+ }
+
+ copyProxyURI(eObject, copyEObject);
+ }
+
+ return copyEObject;
+ }
+ }
+
+ /**
+ * Copies the proxy URI from the original to the copy, if present.
+ * @param eObject the object being copied.
+ * @param copyEObject the copy being initialized.
+ */
+ protected void copyProxyURI(EObject eObject, EObject copyEObject)
+ {
+ if (eObject.eIsProxy())
+ {
+ ((InternalEObject)copyEObject).eSetProxyURI(((InternalEObject)eObject).eProxyURI());
+ }
+ }
+
+ /**
+ * Returns a new instance of the object's target class.
+ * @param eObject the object to copy.
+ * @return a new instance of the target class.
+ * @see #getTarget(EObject)
+ * @see EcoreUtil#create(EClass)
+ */
+ protected EObject createCopy(EObject eObject)
+ {
+ EClass eClass = getTarget(eObject);
+ return eClass == null ? null : EcoreUtil.create(eClass);
+ }
+
+ /**
+ * Returns the target class used to create a copy instance for the given instance object.
+ * @param eObject the object to be copied.
+ * @return the target class used to create a copy instance.
+ * @since 2.10
+ */
+ protected EClass getTarget(EObject eObject)
+ {
+ return getTarget(eObject.eClass());
+ }
+
+ /**
+ * Returns the target class used to create a copy instance for objects of the given source class.
+ * @param eClass the source class.
+ * @return the target class used to create a copy instance.
+ * @see #getTarget(EStructuralFeature, EObject, EObject)
+ */
+ protected EClass getTarget(EClass eClass)
+ {
+ return eClass;
+ }
+
+ /**
+ * Returns a setting for the feature and copy instance to be populated with the original object's source feature's value.
+ * @param eStructuralFeature the source feature.
+ * @return the target feature used to populate a copy instance.
+ * @see #getTarget(EStructuralFeature)
+ * @see #getTarget(EObject)
+ * @since 2.10
+ */
+ protected EStructuralFeature.Setting getTarget(EStructuralFeature eStructuralFeature, EObject eObject, EObject copyEObject)
+ {
+ EStructuralFeature targetEStructuralFeature = getTarget(eStructuralFeature);
+ return targetEStructuralFeature == null ? null : ((InternalEObject)copyEObject).eSetting(targetEStructuralFeature);
+ }
+
+ /**
+ * Returns the target feature used to populate a copy instance from the given source feature.
+ * @param eStructuralFeature the source feature.
+ * @return the target feature used to populate a copy instance.
+ * @see #getTarget(EClass)
+ */
+ protected EStructuralFeature getTarget(EStructuralFeature eStructuralFeature)
+ {
+ return eStructuralFeature;
+ }
+
+ /**
+ * Called to handle the copying of a containment feature;
+ * this adds a list of copies or sets a single copy as appropriate for the multiplicity.
+ * @param eReference the feature to copy.
+ * @param eObject the object from which to copy.
+ * @param copyEObject the object to copy to.
+ */
+ protected void copyContainment(EReference eReference, EObject eObject, EObject copyEObject)
+ {
+ if (eObject.eIsSet(eReference))
+ {
+ EStructuralFeature.Setting setting = getTarget(eReference, eObject, copyEObject);
+ if (setting != null)
+ {
+ Object value = eObject.eGet(eReference);
+ if (eReference.isMany())
+ {
+ @SuppressWarnings("unchecked")
+ List<EObject> target = (List<EObject>)value;
+ setting.set(copyAll(target));
+ }
+ else
+ {
+ setting.set(copy((EObject)value));
+ }
+ }
+ }
+ }
+
+ /**
+ * Called to handle the copying of an attribute;
+ * this adds a list of values or sets a single value as appropriate for the multiplicity.
+ * @param eAttribute the attribute to copy.
+ * @param eObject the object from which to copy.
+ * @param copyEObject the object to copy to.
+ */
+ protected void copyAttribute(EAttribute eAttribute, EObject eObject, EObject copyEObject)
+ {
+ if (eObject.eIsSet(eAttribute))
+ {
+ if (FeatureMapUtil.isFeatureMap(eAttribute))
+ {
+ FeatureMap featureMap = (FeatureMap)eObject.eGet(eAttribute);
+ copyFeatureMap(featureMap);
+ }
+ else
+ {
+ EStructuralFeature.Setting setting = getTarget(eAttribute, eObject, copyEObject);
+ if (setting != null)
+ {
+ copyAttributeValue(eAttribute, eObject, eObject.eGet(eAttribute), setting);
+ }
+ }
+ }
+ }
+
+ /**
+ * Call to handle copying the contained objects within a feature map.
+ * @param featureMap the feature map the copy.
+ * @since 2.10
+ */
+ protected void copyFeatureMap(FeatureMap featureMap)
+ {
+ for (int i = 0, size = featureMap.size(); i < size; ++i)
+ {
+ EStructuralFeature feature = featureMap.getEStructuralFeature(i);
+ if (feature instanceof EReference && ((EReference)feature).isContainment())
+ {
+ Object value = featureMap.getValue(i);
+ if (value != null)
+ {
+ // The containment references are hooked up later during copyReferences.
+ //
+ copy((EObject)value);
+ }
+ }
+ }
+ }
+
+ /**
+ * Called to handle copying of an attribute's value to the target setting.
+ * @param eAttribute the attribute of the source object corresponding to the value.
+ * @param eObject the object being copied.
+ * @param value the value to be copied.
+ * @param setting the feature-value pair that is the target of of the copy.
+ * @since 2.10
+ */
+ protected void copyAttributeValue(EAttribute eAttribute, EObject eObject, Object value, EStructuralFeature.Setting setting)
+ {
+ setting.set(value);
+ }
+
+ /**
+ * Hooks up cross references; it delegates to {@link #copyReference copyReference}.
+ */
+ public void copyReferences()
+ {
+ for (Map.Entry<EObject, EObject> entry : entrySet())
+ {
+ EObject eObject = entry.getKey();
+ EObject copyEObject = entry.getValue();
+ EClass eClass = eObject.eClass();
+ for (int j = 0, size = eClass.getFeatureCount(); j < size; ++j)
+ {
+ EStructuralFeature eStructuralFeature = eClass.getEStructuralFeature(j);
+ if (eStructuralFeature.isChangeable() && !eStructuralFeature.isDerived())
+ {
+ if (eStructuralFeature instanceof EReference)
+ {
+ EReference eReference = (EReference)eStructuralFeature;
+ if (!eReference.isContainment() && !eReference.isContainer())
+ {
+ copyReference(eReference, eObject, copyEObject);
+ }
+ }
+ else if (FeatureMapUtil.isFeatureMap(eStructuralFeature))
+ {
+ FeatureMap copyFeatureMap = (FeatureMap)getTarget(eStructuralFeature, eObject, copyEObject);
+ if (copyFeatureMap != null)
+ {
+ FeatureMap featureMap = (FeatureMap)eObject.eGet(eStructuralFeature);
+ int copyFeatureMapSize = copyFeatureMap.size();
+ for (int k = 0, featureMapSize = featureMap.size(); k < featureMapSize; ++k)
+ {
+ EStructuralFeature feature = featureMap.getEStructuralFeature(k);
+ if (feature instanceof EReference)
+ {
+ Object referencedEObject = featureMap.getValue(k);
+ Object copyReferencedEObject = get(referencedEObject);
+ if (copyReferencedEObject == null && referencedEObject != null)
+ {
+ EReference reference = (EReference)feature;
+ if (!useOriginalReferences || reference.isContainment() || reference.getEOpposite() != null)
+ {
+ continue;
+ }
+ copyReferencedEObject = referencedEObject;
+ }
+
+ // If we can't add it, it must already be in the list so find it and move it to the end.
+ //
+ if (!copyFeatureMap.add(feature, copyReferencedEObject))
+ {
+ for (int l = 0; l < copyFeatureMapSize; ++l)
+ {
+ if (copyFeatureMap.getEStructuralFeature(l) == feature && copyFeatureMap.getValue(l) == copyReferencedEObject)
+ {
+ copyFeatureMap.move(copyFeatureMap.size() - 1, l);
+ --copyFeatureMapSize;
+ break;
+ }
+ }
+ }
+ }
+ else
+ {
+ copyFeatureMap.add(getTarget(featureMap.getEStructuralFeature(k)), featureMap.getValue(k));
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * Called to handle the copying of a cross reference;
+ * this adds values or sets a single value as appropriate for the multiplicity
+ * while omitting any bidirectional reference that isn't in the copy map.
+ * @param eReference the reference to copy.
+ * @param eObject the object from which to copy.
+ * @param copyEObject the object to copy to.
+ */
+ protected void copyReference(EReference eReference, EObject eObject, EObject copyEObject)
+ {
+ if (eObject.eIsSet(eReference))
+ {
+ EStructuralFeature.Setting setting = getTarget(eReference, eObject, copyEObject);
+ if (setting != null)
+ {
+ Object value = eObject.eGet(eReference, resolveProxies);
+ if (eReference.isMany())
+ {
+ @SuppressWarnings("unchecked") InternalEList<EObject> source = (InternalEList<EObject>)value;
+ @SuppressWarnings("unchecked") InternalEList<EObject> target = (InternalEList<EObject>)setting;
+ if (source.isEmpty())
+ {
+ target.clear();
+ }
+ else
+ {
+ boolean isBidirectional = eReference.getEOpposite() != null;
+ int index = 0;
+ for (Iterator<EObject> k = resolveProxies ? source.iterator() : source.basicIterator(); k.hasNext();)
+ {
+ EObject referencedEObject = k.next();
+ EObject copyReferencedEObject = get(referencedEObject);
+ if (copyReferencedEObject == null)
+ {
+ if (useOriginalReferences && !isBidirectional)
+ {
+ target.addUnique(index, referencedEObject);
+ ++index;
+ }
+ }
+ else
+ {
+ if (isBidirectional)
+ {
+ int position = target.indexOf(copyReferencedEObject);
+ if (position == -1)
+ {
+ target.addUnique(index, copyReferencedEObject);
+ }
+ else if (index != position)
+ {
+ target.move(index, copyReferencedEObject);
+ }
+ }
+ else
+ {
+ target.addUnique(index, copyReferencedEObject);
+ }
+ ++index;
+ }
+ }
+ }
+ }
+ else
+ {
+ if (value == null)
+ {
+ setting.set(null);
+ }
+ else
+ {
+ Object copyReferencedEObject = get(value);
+ if (copyReferencedEObject == null)
+ {
+ if (useOriginalReferences && eReference.getEOpposite() == null)
+ {
+ setting.set(value);
+ }
+ }
+ else
+ {
+ setting.set(copyReferencedEObject);
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/util/EqualityHelperWithoutContainment.java b/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/util/EqualityHelperWithoutContainment.java
new file mode 100644
index 00000000000..40837da1678
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/util/EqualityHelperWithoutContainment.java
@@ -0,0 +1,341 @@
+package org.eclipse.papyrus.req.reqif.util;
+
+import java.util.HashMap;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.util.FeatureMap;
+import org.eclipse.emf.ecore.util.FeatureMapUtil;
+
+public class EqualityHelperWithoutContainment extends HashMap<EObject, EObject>
+{
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * Returns whether <code>eObject1</code> and <code>eObject2</code> are {@link EqualityHelper equal}
+ * in the context of this helper instance.
+ * @return whether <code>eObject1</code> and <code>eObject2</code> are equal.
+ * @since 2.1.0
+ */
+ public boolean equals(EObject eObject1, EObject eObject2)
+ {
+ // If the first object is null, the second object must be null.
+ //
+ if (eObject1 == null)
+ {
+ return eObject2 == null;
+ }
+
+ // We know the first object isn't null, so if the second one is, it can't be equal.
+ //
+ if (eObject2 == null)
+ {
+ return false;
+ }
+
+ // Both eObject1 and eObject2 are not null.
+ // If eObject1 has been compared already...
+ //
+ Object eObject1MappedValue = get(eObject1);
+ if (eObject1MappedValue != null)
+ {
+ // Then eObject2 must be that previous match.
+ //
+ return eObject1MappedValue == eObject2;
+ }
+
+ // If eObject2 has been compared already...
+ //
+ Object eObject2MappedValue = get(eObject2);
+ if (eObject2MappedValue != null)
+ {
+ // Then eObject1 must be that match.
+ //
+ return eObject2MappedValue == eObject1;
+ }
+
+ // Neither eObject1 nor eObject2 have been compared yet.
+
+ // If eObject1 and eObject2 are the same instance...
+ //
+ if (eObject1 == eObject2)
+ {
+ // Match them and return true.
+ //
+ put(eObject1, eObject2);
+ put(eObject2, eObject1);
+ return true;
+ }
+
+ // If eObject1 is a proxy...
+ //
+ if (eObject1.eIsProxy())
+ {
+ // Then the other object must be a proxy with the same URI.
+ //
+ if (((InternalEObject)eObject1).eProxyURI().equals(((InternalEObject)eObject2).eProxyURI()))
+ {
+ put(eObject1, eObject2);
+ put(eObject2, eObject1);
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
+ // If eObject1 isn't a proxy but eObject2 is, they can't be equal.
+ //
+ else if (eObject2.eIsProxy())
+ {
+ return false;
+ }
+
+ // If they don't have the same class, they can't be equal.
+ //
+ EClass eClass = eObject1.eClass();
+ if (eClass != eObject2.eClass())
+ {
+ return false;
+ }
+
+ // Assume from now on that they match.
+ //
+ put(eObject1, eObject2);
+ put(eObject2, eObject1);
+
+ // Check all the values.
+ //
+ for (int i = 0, size = eClass.getFeatureCount(); i < size; ++i)
+ {
+ // Ignore derived features.
+ //
+ EStructuralFeature feature = eClass.getEStructuralFeature(i);
+ if (!feature.isDerived())
+ {
+ if( feature instanceof EReference){
+ if(! ((EReference)feature).isContainment()){
+ if (!haveEqualFeature(eObject1, eObject2, feature))
+ {
+ remove(eObject1);
+ remove(eObject2);
+ return false;
+ }
+ }
+ }
+ else{
+
+ if (!haveEqualFeature(eObject1, eObject2, feature))
+ {
+ remove(eObject1);
+ remove(eObject2);
+ return false;
+ }
+ }
+ }
+ }
+
+ // There's no reason they aren't equal, so they are.
+ //
+ return true;
+ }
+
+ /**
+ * Returns whether <code>list1</code> and <code>list2</code> contain
+ * {@link #equals(EObject, EObject) equal} {@link EObject}s at the same index.
+ * It is assumed that list1 and list2 only contain EObjects.
+ * @return whether <code>list1</code> and <code>list2</code> contain equal objects.
+ * @since 2.1.0
+ */
+ public boolean equals(List<EObject> list1, List<EObject> list2)
+ {
+ int size = list1.size();
+ if (size != list2.size())
+ {
+ return false;
+ }
+
+ for (int i = 0; i < size; i++)
+ {
+ EObject eObject1 = list1.get(i);
+ EObject eObject2 = list2.get(i);
+ if (!equals(eObject1, eObject2))
+ {
+ return false;
+ }
+ }
+
+ return true;
+ }
+
+ /**
+ * Returns whether the two objects have {@link EqualityHelper equal}
+ * {@link EObject#eIsSet(EStructuralFeature) isSet} states and {@link EObject#eGet(EStructuralFeature) value}s for the feature.
+ * @return whether the two objects have equal isSet states and values for the feature.
+ * @since 2.2.0
+ * @see #equals(EObject, EObject)
+ * @see #equals(List, List)
+ */
+ protected boolean haveEqualFeature(EObject eObject1, EObject eObject2, EStructuralFeature feature)
+ {
+ // If the set states are the same, and the values of the feature are the structurally equal, they are equal.
+ //
+ final boolean isSet1 = eObject1.eIsSet(feature);
+ final boolean isSet2 = eObject2.eIsSet(feature);
+ if (isSet1 && isSet2)
+ {
+ return
+ feature instanceof EReference ?
+ haveEqualReference(eObject1, eObject2, (EReference)feature) :
+ haveEqualAttribute(eObject1, eObject2, (EAttribute)feature);
+ }
+ else
+ {
+ return isSet1 == isSet2;
+ }
+ }
+
+ /**
+ * Returns whether the two objects have {@link EqualityHelper equal} {@link EObject#eGet(EStructuralFeature) value}s for the reference.
+ * @return whether the two objects have equal values for the reference.
+ * @since 2.1.0
+ * @see #equals(EObject, EObject)
+ * @see #equals(List, List)
+ */
+ @SuppressWarnings("unchecked")
+ protected boolean haveEqualReference(EObject eObject1, EObject eObject2, EReference reference)
+ {
+ Object value1 = eObject1.eGet(reference);
+ Object value2 = eObject2.eGet(reference);
+
+ return
+ reference.isMany() ?
+ equals((List<EObject>)value1, (List<EObject>)value2) :
+ equals((EObject)value1, (EObject)value2);
+ }
+
+
+ /**
+ * Returns whether the two objects have {@link EqualityHelper equal} {@link EObject#eGet(EStructuralFeature) value}s for the attribute.
+ * @return whether the two objects have equal values for the attribute.
+ * @since 2.1.0
+ * @see #equalFeatureMaps(FeatureMap, FeatureMap)
+ */
+ protected boolean haveEqualAttribute(EObject eObject1, EObject eObject2, EAttribute attribute)
+ {
+ Object value1 = eObject1.eGet(attribute);
+ Object value2 = eObject2.eGet(attribute);
+
+ // If the first value is null, the second value must be null.
+ //
+ if (value1 == null)
+ {
+ return value2 == null;
+ }
+
+ // Since the first value isn't null, if the second one is, they aren't equal.
+ //
+ if (value2 == null)
+ {
+ return false;
+ }
+
+ // If this is a feature map...
+ //
+ if (FeatureMapUtil.isFeatureMap(attribute))
+ {
+ // The feature maps must be equal.
+ //
+ FeatureMap featureMap1 = (FeatureMap)value1;
+ FeatureMap featureMap2 = (FeatureMap)value2;
+ return equalFeatureMaps(featureMap1, featureMap2);
+ }
+ else
+ {
+ // The values must be Java equal.
+ //
+ return equalValues(value1, value2);
+ }
+ }
+
+ /**
+ * Returns whether value1 and value2 are structurally equal.
+ * The default implementation only checks for Java equality.
+ * @param value1 the first non-null value.
+ * @param value2 the second potentially null value.
+ * @return whether value1 and value2 are structurally equal.
+ * @since 2.10
+ */
+ protected boolean equalValues(Object value1, Object value2)
+ {
+ return value1.equals(value2);
+ }
+
+ /**
+ * Returns whether the two feature maps are {@link EqualityHelper equal}.
+ * @return whether the two feature maps are equal.
+ * @since 2.1.0
+ */
+ protected boolean equalFeatureMaps(FeatureMap featureMap1, FeatureMap featureMap2)
+ {
+ // If they don't have the same size, the feature maps aren't equal.
+ //
+ int size = featureMap1.size();
+ if (size != featureMap2.size())
+ {
+ return false;
+ }
+
+ // Compare entries in order.
+ //
+ for (int i = 0; i < size; i++)
+ {
+ // If entries don't have the same feature, the feature maps aren't equal.
+ //
+ EStructuralFeature feature = featureMap1.getEStructuralFeature(i);
+ if (feature != featureMap2.getEStructuralFeature(i))
+ {
+ return false;
+ }
+
+ Object value1 = featureMap1.getValue(i);
+ Object value2 = featureMap2.getValue(i);
+
+ if (!equalFeatureMapValues(value1, value2, feature))
+ {
+ return false;
+ }
+ }
+
+ // There is no reason they aren't equals.
+ //
+ return true;
+ }
+
+ /**
+ * Returns whether the two values of a feature map are {@link EqualityHelper equal}.
+ * @return whether the two values of a feature map are equal.
+ * @since 2.2.0
+ */
+ protected boolean equalFeatureMapValues(Object value1, Object value2, EStructuralFeature feature)
+ {
+ if (feature instanceof EReference)
+ {
+ // If the referenced EObjects aren't equal, the feature maps aren't equal.
+ //
+ return equals((EObject)value1, (EObject)value2);
+ }
+ else
+ {
+ // If the values aren't Java equal, the feature maps aren't equal.
+ //
+ return value1 == null ? value2 == null : equalValues(value1, value2);
+ }
+ }
+
+} // EqualityHelper \ No newline at end of file
diff --git a/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/util/IRequirementMerger.java b/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/util/IRequirementMerger.java
new file mode 100644
index 00000000000..1594fd14e9c
--- /dev/null
+++ b/extraplugins/req/org.eclipse.papyrus.req.reqif/src/org/eclipse/papyrus/req/reqif/util/IRequirementMerger.java
@@ -0,0 +1,33 @@
+package org.eclipse.papyrus.req.reqif.util;
+
+import java.util.ArrayList;
+
+import org.eclipse.uml2.uml.Element;
+
+public interface IRequirementMerger {
+
+ /**
+ *
+ * @return the list that must be deleted during merge
+ */
+ ArrayList<Element> getElementToDelete();
+
+ /**
+ *
+ * @return the list of added element during merge
+ */
+ ArrayList<Element> getAddedElements();
+
+ /**
+ *
+ * @param copyAllPropertyValues
+ * is an option. true means that the user wants to copy the name
+ * and all the stereotype values. This option disables the
+ * changeableProperty parameter.
+ * @param deleteFromBase
+ * is an option. True means that element that not match with right will be removed
+ * @return true merge finishes successfully
+ */
+ boolean merge();
+
+} \ No newline at end of file
diff --git a/extraplugins/robotml/org.eclipse.papyrus.robotml/palettes/Palette_SM_RobotML.xml b/extraplugins/robotml/org.eclipse.papyrus.robotml/palettes/Palette_SM_RobotML.xml
index 55cc251b3bf..1304081d547 100644
--- a/extraplugins/robotml/org.eclipse.papyrus.robotml/palettes/Palette_SM_RobotML.xml
+++ b/extraplugins/robotml/org.eclipse.papyrus.robotml/palettes/Palette_SM_RobotML.xml
@@ -7,7 +7,7 @@
<aspectTool description="State"
iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/State.gif"
id="createStateCreationTool_1315919977929" name="State"
- refToolId="createStateCreationTool">
+ refToolId="statemachine.createNodesGroup.state">
<postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
<stereotypesToApply>
<stereotype stereotypeName="RobotML::State"></stereotype>
@@ -18,14 +18,14 @@
<aspectTool description="FinalState"
iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/FinalState.gif"
id="createFinalStateCreationTool_1315920419625" name="FinalState"
- refToolId="createFinalStateCreationTool" >
+ refToolId="statemachine.createNodesGroup.finalstate" >
</aspectTool>
<aspectTool description="InitialState"
iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_initial.gif"
id="createInitialCreationTool_1315920509328" name="InitialState"
- refToolId="createInitialCreationTool" >
+ refToolId="statemachine.createNodesGroup.initial" >
<postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
<stereotypesToApply>
<stereotype stereotypeName="RobotML::State"></stereotype>
@@ -37,7 +37,7 @@
<aspectTool description="Transition"
iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Transition_local.gif"
id="createTransitionCreationTool_1315920536016" name="Transition"
- refToolId="createTransitionCreationTool" >
+ refToolId="statemachine.createEdgesGroup.transition" >
<postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
<stereotypesToApply>
<stereotype stereotypeName="RobotML::Transition"></stereotype>
diff --git a/extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/blockDiagram.paletteconfiguration b/extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/blockDiagram.paletteconfiguration
index b6b418e93a6..65dbb0d210b 100644
--- a/extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/blockDiagram.paletteconfiguration
+++ b/extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition/resources/palette/blockDiagram.paletteconfiguration
@@ -276,11 +276,7 @@
pluginID="org.eclipse.uml2.uml.edit"
iconPath="/icons/full/obj16/Dependency.gif"/>
<elementDescriptors
- elementTypeId="org.eclipse.papyrus.uml.diagram.clazz.Dependency_2014"/>
- <elementDescriptors
elementTypeId="org.eclipse.papyrus.uml.diagram.clazz.Dependency_4008"/>
- <elementDescriptors
- elementTypeId="org.eclipse.papyrus.uml.diagram.clazz.Dependency_4018"/>
</ownedConfigurations>
<ownedConfigurations
xsi:type="paletteconfiguration:ToolConfiguration"
diff --git a/extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/configuration/RequirementDiagram.configuration b/extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/configuration/RequirementDiagram.configuration
index 25d16a14f0a..612cde1e0a1 100644
--- a/extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/configuration/RequirementDiagram.configuration
+++ b/extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/configuration/RequirementDiagram.configuration
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration:PapyrusConfiguration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:configuration="http://www.eclipse.org/papyrus/infra/viewpoints/configuration" xmi:id="_ko07IErbEeSdQKzSRatBjg">
<viewpoints xsi:type="configuration:PapyrusViewpoint" xmi:id="_xogdoErbEeSdQKzSRatBjg" name="Default Papyrus Viewpoint">
- <modelKinds xsi:type="configuration:PapyrusDiagram" xmi:id="_ZrBf4JaBEeS8eNvSwD0lgA" name="SysML 1.4 Requirement" icon="platform:/plugin/org.eclipse.papyrus.sysml.diagram.requirement/icons/obj16/Diagram_Requirement.gif" implementationID="PapyrusUMLClassDiagram" categories="_lfthYMykEeSuYbPdZwWlyw" customPalette="platform:/plugin/org.eclipse.papyrus.sysml14.diagram.requirement/resources/palette/requirementDiagram.paletteconfiguration">
+ <modelKinds xsi:type="configuration:PapyrusDiagram" xmi:id="_ZrBf4JaBEeS8eNvSwD0lgA" name="SysML 1.4 Requirement" icon="platform:/plugin/org.eclipse.papyrus.sysml.diagram.requirement/icons/obj16/Diagram_Requirement.gif" implementationID="PapyrusUMLClassDiagram" categories="_lfthYMykEeSuYbPdZwWlyw" customPalette="platform:/plugin/org.eclipse.papyrus.sysml14.diagram.requirement/resources/palette/requirementDiagram.paletteconfiguration" customStyle="platform:/plugin/org.eclipse.papyrus.sysml14.diagram.requirement/resources/style/requirementdiagram.css">
<profiles href="http://www.eclipse.org/papyrus/1.4/SysML#/"/>
<modelRules xmi:id="_ZrBf4ZaBEeS8eNvSwD0lgA">
<element href="http://www.eclipse.org/uml2/5.0.0/UML#//Package"/>
diff --git a/extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/palette/requirementDiagram.paletteconfiguration b/extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/palette/requirementDiagram.paletteconfiguration
index d8a92ce6e3c..2c7f3987bf5 100644
--- a/extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/palette/requirementDiagram.paletteconfiguration
+++ b/extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/palette/requirementDiagram.paletteconfiguration
@@ -10,6 +10,34 @@
description="Nodes">
<ownedConfigurations
xsi:type="paletteconfiguration:ToolConfiguration"
+ id="org.eclipse.papyrus.sysML.Comment"
+ label="Comment"
+ description="Create a comment">
+ <icon
+ pluginID="org.eclipse.uml2.uml.edit"
+ iconPath="icons/full/obj16/Comment.gif"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.uml.diagram.clazz.Comment_2012"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.uml.diagram.clazz.Comment_3028"/>
+ </ownedConfigurations>
+ <ownedConfigurations
+ xsi:type="paletteconfiguration:ToolConfiguration"
+ id="org.eclipse.papyrus.sysML.Constraint"
+ label="Constraint"
+ description="Create a constraint">
+ <icon
+ pluginID="org.eclipse.uml2.uml.edit"
+ iconPath="icons/full/obj16/Constraint.gif"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.uml.diagram.clazz.Constraint_2011"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.uml.diagram.clazz.Constraint_3029"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.Constraint_Label"/>
+ </ownedConfigurations>
+ <ownedConfigurations
+ xsi:type="paletteconfiguration:ToolConfiguration"
id="org.eclipse.papyrus.sysML.Package"
label="Package"
description="Create a package">
@@ -23,6 +51,19 @@
</ownedConfigurations>
<ownedConfigurations
xsi:type="paletteconfiguration:ToolConfiguration"
+ id="org.eclipse.papyrus.sysML.Problem"
+ label="Problem"
+ description="Create a Problem">
+ <icon
+ pluginID="org.eclipse.papyrus.sysml"
+ iconPath="icons/modelelements/Problem.gif"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.Problem_2012"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.Problem_3028"/>
+ </ownedConfigurations>
+ <ownedConfigurations
+ xsi:type="paletteconfiguration:ToolConfiguration"
id="org.eclipse.papyrus.sysML.Requirement"
label="Requirement"
description="Create a Requirement">
@@ -42,19 +83,6 @@
</ownedConfigurations>
<ownedConfigurations
xsi:type="paletteconfiguration:ToolConfiguration"
- id="org.eclipse.papyrus.sysML.Problem"
- label="Problem"
- description="Create a Problem">
- <icon
- pluginID="org.eclipse.papyrus.sysml"
- iconPath="icons/modelelements/Problem.gif"/>
- <elementDescriptors
- elementTypeId="org.eclipse.papyrus.sysML.Problem_2012"/>
- <elementDescriptors
- elementTypeId="org.eclipse.papyrus.sysML.Problem_3028"/>
- </ownedConfigurations>
- <ownedConfigurations
- xsi:type="paletteconfiguration:ToolConfiguration"
id="org.eclipse.papyrus.sysML.Rationale"
label="Rationale"
description="Create a Rationale">
@@ -104,6 +132,30 @@
</ownedConfigurations>
<ownedConfigurations
xsi:type="paletteconfiguration:ToolConfiguration"
+ id="org.eclipse.papyrus.sysML.Dependency"
+ label="Dependency"
+ description="Create a dependency"
+ kind="ConnectionTool">
+ <icon
+ pluginID="org.eclipse.uml2.uml.edit"
+ iconPath="/icons/full/obj16/Dependency.gif"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.uml.diagram.clazz.Dependency_4008"/>
+ </ownedConfigurations>
+ <ownedConfigurations
+ xsi:type="paletteconfiguration:ToolConfiguration"
+ id="org.eclipse.papyrus.sysML.ContainmentLink"
+ label="Containment Link"
+ description="Create a Containment Link"
+ kind="ConnectionTool">
+ <icon
+ pluginID="org.eclipse.papyrus.uml.diagram.clazz"
+ iconPath="/icons/obj16/ContainmentConnection.gif"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.uml.diagram.clazz.ContainmentLink_4023"/>
+ </ownedConfigurations>
+ <ownedConfigurations
+ xsi:type="paletteconfiguration:ToolConfiguration"
id="org.eclipse.papyrus.sysML.DeriveReqt_Abstraction"
label="DeriveReqt"
description="Create a DeriveReqt Abstraction"
@@ -116,26 +168,27 @@
</ownedConfigurations>
<ownedConfigurations
xsi:type="paletteconfiguration:ToolConfiguration"
- id="org.eclipse.papyrus.sysML.Satisfy_Abstraction"
- label="Satisfy"
- description="Create a Satisfy"
+ id="org.eclipse.papyrus.sysML.Link"
+ label="Link"
+ description="Create a Link"
kind="ConnectionTool">
<icon
- pluginID="org.eclipse.papyrus.sysml"
- iconPath="icons/requirements/Satisfy.gif"/>
+ pluginID="org.eclipse.papyrus.uml.diagram.clazz"
+ iconPath="icons/obj16/Link.gif"/>
<elementDescriptors
- elementTypeId="org.eclipse.papyrus.sysML.Satisfy_Abstraction_4006"/>
+ elementTypeId="org.eclipse.papyrus.uml.diagram.clazz.Link_4016"/>
</ownedConfigurations>
<ownedConfigurations
xsi:type="paletteconfiguration:ToolConfiguration"
- id="org.eclipse.papyrus.sysML.Verify_Abstraction"
- label="Verify"
- description="Create a Verify">
+ id="org.eclipse.papyrus.sysML.PackageImport"
+ label="PackageImport"
+ description="Create a PackageImport"
+ kind="ConnectionTool">
<icon
- pluginID="org.eclipse.papyrus.sysml"
- iconPath="icons/requirements/Verify.gif"/>
+ pluginID="org.eclipse.uml2.uml.edit"
+ iconPath="/icons/full/obj16/PackageImport.gif"/>
<elementDescriptors
- elementTypeId="org.eclipse.papyrus.sysML.Verify_Abstraction_4006"/>
+ elementTypeId="org.eclipse.papyrus.uml.diagram.clazz.PackageImport_4010"/>
</ownedConfigurations>
<ownedConfigurations
xsi:type="paletteconfiguration:ToolConfiguration"
@@ -151,6 +204,18 @@
</ownedConfigurations>
<ownedConfigurations
xsi:type="paletteconfiguration:ToolConfiguration"
+ id="org.eclipse.papyrus.sysML.Satisfy_Abstraction"
+ label="Satisfy"
+ description="Create a Satisfy"
+ kind="ConnectionTool">
+ <icon
+ pluginID="org.eclipse.papyrus.sysml"
+ iconPath="icons/requirements/Satisfy.gif"/>
+ <elementDescriptors
+ elementTypeId="org.eclipse.papyrus.sysML.Satisfy_Abstraction_4006"/>
+ </ownedConfigurations>
+ <ownedConfigurations
+ xsi:type="paletteconfiguration:ToolConfiguration"
id="org.eclipse.papyrus.sysML.Trace_Abstraction"
label="Trace"
description="Create a Trace"
@@ -163,15 +228,14 @@
</ownedConfigurations>
<ownedConfigurations
xsi:type="paletteconfiguration:ToolConfiguration"
- id="org.eclipse.papyrus.sysML.Link"
- label="Link"
- description="Create a Link"
- kind="ConnectionTool">
+ id="org.eclipse.papyrus.sysML.Verify_Abstraction"
+ label="Verify"
+ description="Create a Verify">
<icon
- pluginID="org.eclipse.papyrus.uml.diagram.clazz"
- iconPath="icons/obj16/Link.gif"/>
+ pluginID="org.eclipse.papyrus.sysml"
+ iconPath="icons/requirements/Verify.gif"/>
<elementDescriptors
- elementTypeId="org.eclipse.papyrus.uml.diagram.clazz.Link_4016"/>
+ elementTypeId="org.eclipse.papyrus.sysML.Verify_Abstraction_4006"/>
</ownedConfigurations>
</drawerConfigurations>
<drawerConfigurations
diff --git a/extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/style/requirementdiagram.css b/extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/style/requirementdiagram.css
new file mode 100644
index 00000000000..3472fca2fcc
--- /dev/null
+++ b/extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/style/requirementdiagram.css
@@ -0,0 +1,66 @@
+/*****************************************************************************
+ * Copyright (c) 2015 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Benoit Maggi (CEA LIST) benoit.maggi@cea.fr
+ *****************************************************************************/
+Class{
+ fontName: "Segoe UI";
+ fillColor: #C3D7DD;
+ transparency: 0;
+ gradient: #FFFFFF vertical;
+ lineColor: #000000;
+ elementIcon: false;
+}
+
+Compartment {
+ visible:false;
+}
+
+Package > Compartment[kind="packagedelements"] {
+ visible:true;
+ showTitle:false;
+}
+
+Class[appliedStereotypes~="Requirement"] > Compartment[type=StereotypeCompartment] {
+ visible:true;
+ showTitle:true;
+}
+
+Class[appliedStereotypes~="Requirement"] > Compartment[type=StereotypeCompartment] > [property="derived"]{
+ visible:false;
+}
+
+Class[appliedStereotypes~="Requirement"] > Compartment[type=StereotypeCompartment] > [property="derivedFrom"]{
+ visible:false;
+}
+
+Class[appliedStereotypes~="Requirement"] > Compartment[type=StereotypeCompartment] > [property="satisfiedBy"]{
+ visible:false;
+}
+
+Class[appliedStereotypes~="Requirement"] > Compartment[type=StereotypeCompartment] > [property="refinedBy"]{
+ visible:false;
+}
+
+Class[appliedStereotypes~="Requirement"] > Compartment[type=StereotypeCompartment] > [property="tracedTo"]{
+ visible:false;
+}
+
+Class[appliedStereotypes~="Requirement"] > Compartment[type=StereotypeCompartment] > [property="verifiedBy"]{
+ visible:false;
+}
+
+Class[appliedStereotypes~="Requirement"] > Compartment[type=StereotypeCompartment] > [property="master"]{
+ visible:false;
+}
+
+Class[appliedStereotypes~="Requirement"] > Compartment[kind="operations"] {
+ visible:true;
+ showTitle:false;
+}
diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/palettes/UML-RT.CapsuleDiagram.paletteconfiguration b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/palettes/UML-RT.CapsuleDiagram.paletteconfiguration
index 3166965a827..782af09ea60 100644
--- a/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/palettes/UML-RT.CapsuleDiagram.paletteconfiguration
+++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/palettes/UML-RT.CapsuleDiagram.paletteconfiguration
@@ -2,7 +2,7 @@
<paletteconfiguration:PaletteConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:paletteconfiguration="http://www.eclipse.org/papyrus/diagram/paletteconfiguration/0.7" id="palettemodel" label="UMLRealTime">
<drawerConfigurations id="UML-RT" label="UML-RT" description="UML-RT">
<ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="palettemodel.org.eclipse.papyrus.umlrt.Capsule" label="Capsule" description="Create a Capsule">
- <icon pluginID="" iconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Class.gif"/>
+ <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Class.gif"/>
<elementDescriptors elementTypeId="org.eclipse.papyrus.umlrt.Capsule_2008"/>
<elementDescriptors elementTypeId="org.eclipse.papyrus.umlrt.Capsule_3004"/>
<elementDescriptors elementTypeId="org.eclipse.papyrus.umlrt.Capsule_3008"/>
@@ -10,7 +10,7 @@
<elementDescriptors elementTypeId="org.eclipse.papyrus.umlrt.Capsule_3014"/>
</ownedConfigurations>
<ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="palettemodel.org.eclipse.papyrus.umlrt.CapsulePart" label="CapsulePart" description="Create a CapsulePart">
- <icon iconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Property.gif"/>
+ <icon pluginID="org.eclipse.uml2.uml.edit" iconPath="icons/full/obj16/Property.gif"/>
<elementDescriptors elementTypeId="org.eclipse.papyrus.umlrt.CapsulePart_3002"/>
<elementDescriptors elementTypeId="org.eclipse.papyrus.umlrt.CapsulePart_3005"/>
<elementDescriptors elementTypeId="org.eclipse.papyrus.umlrt.CapsulePart_3006"/>
@@ -18,20 +18,6 @@
<elementDescriptors elementTypeId="org.eclipse.papyrus.umlrt.CapsulePart_3018"/>
<elementDescriptors elementTypeId="org.eclipse.papyrus.umlrt.CapsulePart_3041"/>
</ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="palettemodel.org.eclipse.papyrus.umlrt.ProtocolContainer" label="ProtocolContainer" description="Create a ProtocolContainer">
- <icon iconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Package.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.umlrt.ProtocolContainer_2007"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.umlrt.ProtocolContainer_3009"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.umlrt.ProtocolContainer_PapyrusUMLClassDiagram"/>
- </ownedConfigurations>
- <ownedConfigurations xsi:type="paletteconfiguration:ToolConfiguration" id="palettemodel.org.eclipse.papyrus.umlrt.RTMessageSet" label="RTMessageSet" description="Create a RTMessageSet">
- <icon iconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Interface.gif"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.umlrt.RTMessageSet_2004"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.umlrt.RTMessageSet_3023"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.umlrt.RTMessageSet_3036"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.umlrt.RTMessageSet_3037"/>
- <elementDescriptors elementTypeId="org.eclipse.papyrus.umlrt.RTMessageSet_3038"/>
- </ownedConfigurations>
</drawerConfigurations>
<requiredProfiles>UMLRealTime</requiredProfiles>
</paletteconfiguration:PaletteConfiguration>
diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt/elementtypes/uml-rt.elementtypesconfigurations b/extraplugins/umlrt/org.eclipse.papyrus.umlrt/elementtypes/uml-rt.elementtypesconfigurations
index c0bec3b2c6c..0cdfde7ac77 100644
--- a/extraplugins/umlrt/org.eclipse.papyrus.umlrt/elementtypes/uml-rt.elementtypesconfigurations
+++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt/elementtypes/uml-rt.elementtypesconfigurations
@@ -20,6 +20,13 @@
iconPath="/icons/full/obj16/Class.gif"
bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.Class</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_jrBH8P7pEeSx0Yn0jzU15g"
+ name="org.eclipse.papyrus.umlrt.custom.advice.CapsuleEditHelperAdvice"
+ description="Advice for Capsule"
+ identifier="org.eclipse.papyrus.umlrt.custom.advice.CapsuleEditHelperAdvice"
+ editHelperAdviceClassName="org.eclipse.papyrus.umlrt.custom.advice.CapsuleEditHelperAdvice"
+ inheritance="all"/>
<matcherConfiguration
xsi:type="stereotypeapplicationmatcherconfiguration:StereotypeApplicationMatcherConfiguration"
xmi:id="_ubJcs6eUEeSUR5jX0TaAcA">
@@ -55,7 +62,7 @@
<editHelperAdviceConfiguration
xmi:id="_Z9YkQM2BEeSdoOwgSyouYw"
name="org.eclipse.papyrus.umlrt.custom.advice.ProtocolEditHelperAdvice"
- description="advice for Protocol"
+ description="Advice for Protocol"
identifier="org.eclipse.papyrus.umlrt.custom.advice.ProtocolEditHelperAdvice"
editHelperAdviceClassName="org.eclipse.papyrus.umlrt.custom.advice.ProtocolEditHelperAdvice"
inheritance="all"/>
diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt/src/org/eclipse/papyrus/umlrt/custom/advice/CapsuleEditHelperAdvice.java b/extraplugins/umlrt/org.eclipse.papyrus.umlrt/src/org/eclipse/papyrus/umlrt/custom/advice/CapsuleEditHelperAdvice.java
new file mode 100644
index 00000000000..bcc1ef0b9bc
--- /dev/null
+++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt/src/org/eclipse/papyrus/umlrt/custom/advice/CapsuleEditHelperAdvice.java
@@ -0,0 +1,69 @@
+/*****************************************************************************
+ * Copyright (c) 2015 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors: Onder Gurcan <onder.gurcan@cea.fr>
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.umlrt.custom.advice;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.commands.ConfigureElementCommand;
+import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.papyrus.uml.tools.utils.NamedElementUtil;
+import org.eclipse.uml2.uml.Class;
+
+
+/**
+ * The helperadvice class used for UMLRealTime::Protocol.
+ *
+ * @author Onder Gurcan <onder.gurcan@cea.fr>
+ *
+ */
+public class CapsuleEditHelperAdvice extends AbstractEditHelperAdvice {
+
+ private enum Relation {
+ CHILD, SIBLING, PARENT;
+ }
+
+
+ /**
+ * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice#getBeforeConfigureCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest)
+ *
+ * @param request
+ * @return
+ */
+ @Override
+ protected ICommand getBeforeConfigureCommand(ConfigureRequest request) {
+ final Class capsule = (Class) request.getElementToConfigure();
+ final String name = NamedElementUtil.getDefaultNameWithIncrementFromBase("Capsule", capsule.eContainer().eContents());
+
+ return new ConfigureElementCommand(request) {
+ private IProgressMonitor progressMonitor;
+ private IAdaptable info;
+
+ @Override
+ protected CommandResult doExecuteWithResult(IProgressMonitor progressMonitor, IAdaptable info) throws ExecutionException {
+ this.progressMonitor = progressMonitor;
+ this.info = info;
+
+ capsule.setIsActive(true);
+ capsule.setName(name);
+
+ return CommandResult.newOKCommandResult(capsule);
+ }
+
+ };
+ }
+}
diff --git a/features/papyrus-dev-features/org.eclipse.papyrus.dev.feature/feature.xml b/features/papyrus-dev-features/org.eclipse.papyrus.dev.feature/feature.xml
index efc4813e2ba..7ff4ac7ccb3 100644
--- a/features/papyrus-dev-features/org.eclipse.papyrus.dev.feature/feature.xml
+++ b/features/papyrus-dev-features/org.eclipse.papyrus.dev.feature/feature.xml
@@ -122,4 +122,39 @@ http://www.eclipse.org/legal/epl-v10.html
version="0.0.0"
unpack="false"/>
+ <plugin
+ id="org.eclipse.b3.aggregator"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.eclipse.b3.aggregator.legacy"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.eclipse.b3.cli"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.eclipse.b3.p2"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
+ id="org.eclipse.b3.util"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
</feature>
diff --git a/features/papyrus-extra-features/org.eclipse.papyrus.extra.feature/feature.xml b/features/papyrus-extra-features/org.eclipse.papyrus.extra.feature/feature.xml
index 7c8050aacb7..0360ff7ac43 100644
--- a/features/papyrus-extra-features/org.eclipse.papyrus.extra.feature/feature.xml
+++ b/features/papyrus-extra-features/org.eclipse.papyrus.extra.feature/feature.xml
@@ -1,11 +1,11 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
- id="org.eclipse.papyrus.extra.feature"
- label="%featureName"
- version="1.1.0.qualifier"
- provider-name="%providerName">
-
- <copyright url="http://www.eclipse.org/legal/epl-v10.html">
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.eclipse.papyrus.extra.feature"
+ label="%featureName"
+ version="1.1.0.qualifier"
+ provider-name="%providerName">
+
+ <copyright url="http://www.eclipse.org/legal/epl-v10.html">
Copyright (c) 2008-2013 CEA LIST, Atos Origin, Conselleria de
Infraestructuras y Transporte, Generalitat de la Comunitat Valenciana
and others
@@ -13,111 +13,107 @@ All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License
v1.0
which accompanies this distribution, and is available at
-http://www.eclipse.org/legal/epl-v10.html
- </copyright>
-
- <license url="%licenseURL">
- %license
- </license>
-
- <includes
- id="org.eclipse.papyrus.extra.migration.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.uml.export.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.extra.cdo.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.extra.diagramtemplate.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.extra.dsml.validation.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.extra.eastadl.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.extra.marte.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.extra.marte.properties.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.extra.marte.textedit.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.extra.uml.compare.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.extra.umlrt.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.java.generator.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.java.reverse.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.extra.robotml.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.extra.qompass.designer.basic.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.extra.qompass.designer.tracing.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.extra.cpp.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.java.profile.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.robotml.generators.intempora.rtmaps.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.layers.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.extra.moka.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.migration.rsa.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.uml.diagram.ecore.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.extra.epf.richtext.feature"
- version="0.0.0"/>
-
- <includes
- id="org.eclipse.papyrus.uml.alf.extra.feature"
- version="0.0.0"/>
-
-</feature>
+http://www.eclipse.org/legal/epl-v10.html
+ </copyright>
+
+ <license url="%licenseURL">
+ %license
+ </license>
+
+ <includes
+ id="org.eclipse.papyrus.extra.migration.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.uml.export.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.extra.cdo.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.extra.diagramtemplate.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.extra.dsml.validation.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.extra.eastadl.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.extra.marte.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.extra.marte.properties.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.extra.marte.textedit.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.extra.uml.compare.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.extra.umlrt.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.java.generator.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.java.reverse.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.extra.robotml.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.extra.qompass.designer.basic.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.extra.qompass.designer.tracing.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.extra.cpp.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.java.profile.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.robotml.generators.intempora.rtmaps.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.layers.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.extra.moka.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.migration.rsa.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.uml.diagram.ecore.feature"
+ version="0.0.0"/>
+
+ <includes
+ id="org.eclipse.papyrus.uml.alf.extra.feature"
+ version="0.0.0"/>
+
+</feature>
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/CompartmentEditPart.xtend b/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/CompartmentEditPart.xtend
index a8f6d37b299..8ec2edaf53e 100644
--- a/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/CompartmentEditPart.xtend
+++ b/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/CompartmentEditPart.xtend
@@ -17,6 +17,7 @@ import com.google.inject.Inject
import com.google.inject.Singleton
import org.eclipse.gmf.codegen.gmfgen.GenCompartment
import xpt.diagram.editparts.Common
+import org.eclipse.papyrus.papyrusgmfgenextension.ExtendedGenView
//DOCUMENTATION: PapyrusGenCode
//Overload only the creation of editPolicies in order to add the paste edit policy
@@ -48,5 +49,21 @@ import xpt.diagram.editparts.Common
return super.getTargetEditPart(request);
}
'''
+
+ override createFigure(GenCompartment it) {
+ if (hasExternalSuperClass(it,'org.eclipse.papyrus.uml.diagram.activity.edit.part.ShapeCompartmentWithoutScrollbarsEditPart')) {
+ '''
+ @Override
+ public org.eclipse.draw2d.IFigure createFigure() {
+ return super.createFigure();
+ }
+ '''
+ } else {
+ super.createFigure(it);
+ }
+ }
+ def boolean hasExternalSuperClass(GenCompartment it, String className) {
+ return it.eResource.allContents.filter(typeof(ExtendedGenView)).filter [v | (v.genView.contains(it) && v.superOwnedEditPart.equals(className))].size > 0;
+ }
}
diff --git a/plugins/developer/org.eclipse.papyrus.releng.tools/META-INF/MANIFEST.MF b/plugins/developer/org.eclipse.papyrus.releng.tools/META-INF/MANIFEST.MF
index 077329f875c..c54e3230dea 100644
--- a/plugins/developer/org.eclipse.papyrus.releng.tools/META-INF/MANIFEST.MF
+++ b/plugins/developer/org.eclipse.papyrus.releng.tools/META-INF/MANIFEST.MF
@@ -5,11 +5,11 @@ Require-Bundle: org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.b3.aggregator;bundle-version="0.2.0",
org.eclipse.b3.aggregator.legacy;bundle-version="0.2.0",
- org.eclipse.oomph.setup.targlets;bundle-version="1.0.0";resolution:=optional,
+ org.eclipse.oomph.setup.targlets;bundle-version="1.0.0",
org.eclipse.oomph.p2;bundle-version="1.0.0",
- org.eclipse.emf.edit;bundle-version="2.10.0";resolution:=optional,
+ org.eclipse.emf.edit;bundle-version="2.10.0",
com.google.guava;bundle-version="11.0.0",
- org.eclipse.oomph.workingsets;bundle-version="1.0.0";resolution:=optional
+ org.eclipse.oomph.workingsets;bundle-version="1.0.0"
Bundle-Vendor: %Bundle-Vendor
Bundle-ActivationPolicy: lazy
Bundle-Version: 1.1.0.qualifier
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/META-INF/MANIFEST.MF b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/META-INF/MANIFEST.MF
index e3822fd03af..cac56edaa66 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/META-INF/MANIFEST.MF
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/META-INF/MANIFEST.MF
@@ -15,7 +15,11 @@ Require-Bundle: org.eclipse.ui,
org.eclipse.papyrus.infra.gmfdiag.common;bundle-version="1.1.0",
org.eclipse.core.resources,
org.eclipse.papyrus.infra.hyperlink;bundle-version="1.1.0",
- org.eclipse.papyrus.infra.core.log;bundle-version="1.1.0"
+ org.eclipse.papyrus.infra.core.log;bundle-version="1.1.0",
+ org.eclipse.emf.ecore.edit;bundle-version="2.9.0",
+ org.eclipse.papyrus.infra.tools;bundle-version="1.1.0",
+ com.google.guava;bundle-version="11.0.0",
+ org.eclipse.uml2.uml.profile.standard;bundle-version="1.0.100"
Bundle-Vendor: %providerName
Bundle-ActivationPolicy: lazy
Bundle-Version: 1.1.0.qualifier
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/resource/developermodel.uml b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/resource/developermodel.uml
index 1303d4b0ed5..2eb62c83b5d 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/resource/developermodel.uml
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/resource/developermodel.uml
@@ -1,55 +1,83 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:structure="http://DeveloperProcess/schemas/structure/_VA9p4McPEeO9CYUoXDRplw/1" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://DeveloperProcess/schemas/structure/_VA9p4McPEeO9CYUoXDRplw/1 pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_VA-4AMcPEeO9CYUoXDRplw">
- <uml:Model xmi:id="_HpQmkMbbEeOtJ6H27Db7nA" name="MySystem">
- <packageImport xmi:type="uml:PackageImport" xmi:id="_HpRNoMbbEeOtJ6H27Db7nA">
- <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
- </packageImport>
- <packagedElement xmi:type="uml:Model" xmi:id="_Auq_wMbrEeOfGc4OdhO4dw" name="Requirements"/>
- <packagedElement xmi:type="uml:Model" xmi:id="_BZKHMMbrEeOfGc4OdhO4dw" name="UseCases">
- <packagedElement xmi:type="uml:Abstraction" xmi:id="_cX1UIMbrEeOfGc4OdhO4dw" name="useCasesAbstraction" client="_BZKHMMbrEeOfGc4OdhO4dw" supplier="_Auq_wMbrEeOfGc4OdhO4dw"/>
- <packagedElement xmi:type="uml:Component" xmi:id="_9-BAkMbrEeOfGc4OdhO4dw" name="MySystem"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Model" xmi:id="_BnjvkMbrEeOfGc4OdhO4dw" name="Design">
- <packagedElement xmi:type="uml:Abstraction" xmi:id="_c-r4wMbrEeOfGc4OdhO4dw" name="DesignAbstraction" client="_BnjvkMbrEeOfGc4OdhO4dw" supplier="_BZKHMMbrEeOfGc4OdhO4dw"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Model" xmi:id="_ByGLoMbrEeOfGc4OdhO4dw" name="Test">
- <packagedElement xmi:type="uml:Dependency" xmi:id="_l-MxcMbrEeOfGc4OdhO4dw" name="Dependency1" client="_ByGLoMbrEeOfGc4OdhO4dw" supplier="_BZKHMMbrEeOfGc4OdhO4dw"/>
- <packagedElement xmi:type="uml:Dependency" xmi:id="_mtL-YMbrEeOfGc4OdhO4dw" name="Dependency2" client="_ByGLoMbrEeOfGc4OdhO4dw" supplier="_BnjvkMbrEeOfGc4OdhO4dw"/>
- </packagedElement>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_yLz7oMbcEeOfGc4OdhO4dw">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_yL73cMbcEeOfGc4OdhO4dw" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_VA6mkMcPEeO9CYUoXDRplw"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_kWqjAMbXEeO09JBvNFZRNw"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_yL9soMbcEeOfGc4OdhO4dw">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_yL-TsMbcEeOfGc4OdhO4dw" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_VA-4AMcPEeO9CYUoXDRplw"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_qCT3MMbXEeO09JBvNFZRNw"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_yMClIMbcEeOfGc4OdhO4dw">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_yMDMMMbcEeOfGc4OdhO4dw" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_VBAtMccPEeO9CYUoXDRplw"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_2LNtQMbYEeO09JBvNFZRNw"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_szDMkMbvEeO9CYUoXDRplw">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_sz9LgMbvEeO9CYUoXDRplw" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_OOJC4LX8EduFmqQsrNB9lw"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_7pPJAMn1EeOZsdollP-xSA">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_7qdRAMn1EeOZsdollP-xSA" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/Document.profile.uml#_qR44IMn0EeO9CYUoXDRplw"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/Document.profile.uml#_D0JcUMnzEeO9CYUoXDRplw"/>
- </profileApplication>
- </uml:Model>
- <structure:Project xmi:id="_-C7yQMbqEeOfGc4OdhO4dw" base_Model="_HpQmkMbbEeOtJ6H27Db7nA"/>
- <structure:Requirements xmi:id="_Jp8RoMbrEeOfGc4OdhO4dw" base_Model="_Auq_wMbrEeOfGc4OdhO4dw"/>
- <structure:UseCases xmi:id="_L8fjEMbrEeOfGc4OdhO4dw" base_Model="_BZKHMMbrEeOfGc4OdhO4dw"/>
- <structure:Design xmi:id="_NgIgEMbrEeOfGc4OdhO4dw" base_Model="_BnjvkMbrEeOfGc4OdhO4dw"/>
- <structure:Tests xmi:id="_ObTu4MbrEeOfGc4OdhO4dw" base_Model="_ByGLoMbrEeOfGc4OdhO4dw"/>
-</xmi:XMI>
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:structure="http://DeveloperProcess/schemas/structure/_rpmLUHVxEeSZ-fQGFkyJeQ/6" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://DeveloperProcess/schemas/structure/_rpmLUHVxEeSZ-fQGFkyJeQ/6 pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_rpmyYHVxEeSZ-fQGFkyJeQ">
+ <uml:Model xmi:id="_HpQmkMbbEeOtJ6H27Db7nA" name="MySystem">
+ <packageImport xmi:type="uml:PackageImport" xmi:id="_HpRNoMbbEeOtJ6H27Db7nA">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Model" xmi:id="_Auq_wMbrEeOfGc4OdhO4dw" name="Requirements"/>
+ <packagedElement xmi:type="uml:Model" xmi:id="_BZKHMMbrEeOfGc4OdhO4dw" name="UseCases">
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_cX1UIMbrEeOfGc4OdhO4dw" name="useCasesAbstraction" client="_BZKHMMbrEeOfGc4OdhO4dw" supplier="_Auq_wMbrEeOfGc4OdhO4dw"/>
+ <packagedElement xmi:type="uml:Component" xmi:id="_9-BAkMbrEeOfGc4OdhO4dw" name="MySystem"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Model" xmi:id="_BnjvkMbrEeOfGc4OdhO4dw" name="Design">
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_c-r4wMbrEeOfGc4OdhO4dw" name="DesignAbstraction" client="_BnjvkMbrEeOfGc4OdhO4dw" supplier="_BZKHMMbrEeOfGc4OdhO4dw"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Model" xmi:id="_ByGLoMbrEeOfGc4OdhO4dw" name="Test">
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_l-MxcMbrEeOfGc4OdhO4dw" name="Dependency1" client="_ByGLoMbrEeOfGc4OdhO4dw" supplier="_BZKHMMbrEeOfGc4OdhO4dw"/>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_mtL-YMbrEeOfGc4OdhO4dw" name="Dependency2" client="_ByGLoMbrEeOfGc4OdhO4dw" supplier="_BnjvkMbrEeOfGc4OdhO4dw"/>
+ </packagedElement>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_yLz7oMbcEeOfGc4OdhO4dw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Vz8WYACJEeWudc8agGQ04Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Vz8WYQCJEeWudc8agGQ04Q" key="Version" value="0.0.7"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Vz8WYgCJEeWudc8agGQ04Q" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Vz8WYwCJEeWudc8agGQ04Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Vz8WZACJEeWudc8agGQ04Q" key="Date" value="2014-11-26"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Vz8WZQCJEeWudc8agGQ04Q" key="Author" value=""/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_yL73cMbcEeOfGc4OdhO4dw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_rplkQXVxEeSZ-fQGFkyJeQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_kWqjAMbXEeO09JBvNFZRNw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_yL9soMbcEeOfGc4OdhO4dw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Vz_ZsACJEeWudc8agGQ04Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Vz_ZsQCJEeWudc8agGQ04Q" key="Version" value="0.0.7"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Vz_ZsgCJEeWudc8agGQ04Q" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Vz_ZswCJEeWudc8agGQ04Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Vz_ZtACJEeWudc8agGQ04Q" key="Date" value="2014-11-26"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Vz_ZtQCJEeWudc8agGQ04Q" key="Author" value=""/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_yL-TsMbcEeOfGc4OdhO4dw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_rpmyYHVxEeSZ-fQGFkyJeQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_qCT3MMbXEeO09JBvNFZRNw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_yMClIMbcEeOfGc4OdhO4dw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_V0AAwACJEeWudc8agGQ04Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_V0AAwQCJEeWudc8agGQ04Q" key="Version" value="0.0.7"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_V0AAwgCJEeWudc8agGQ04Q" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_V0AAwwCJEeWudc8agGQ04Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_V0AAxACJEeWudc8agGQ04Q" key="Date" value="2014-11-26"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_V0AAxQCJEeWudc8agGQ04Q" key="Author" value=""/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_yMDMMMbcEeOfGc4OdhO4dw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_rpnZcXVxEeSZ-fQGFkyJeQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_2LNtQMbYEeO09JBvNFZRNw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_szDMkMbvEeO9CYUoXDRplw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_sz9LgMbvEeO9CYUoXDRplw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_OOJC4LX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_7pPJAMn1EeOZsdollP-xSA">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_V0AAxgCJEeWudc8agGQ04Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_V0AAxwCJEeWudc8agGQ04Q" key="Version" value="0.0.11"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_V0AAyACJEeWudc8agGQ04Q" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_V0AAyQCJEeWudc8agGQ04Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_V0AAygCJEeWudc8agGQ04Q" key="Date" value="2014-11-14"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_V0AAywCJEeWudc8agGQ04Q" key="Author" value=""/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_7qdRAMn1EeOZsdollP-xSA" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/Document.profile.uml#_RQrLoWwBEeSIYu1Ih2FYyQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/Document.profile.uml#_D0JcUMnzEeO9CYUoXDRplw"/>
+ </profileApplication>
+ </uml:Model>
+ <structure:Project xmi:id="_-C7yQMbqEeOfGc4OdhO4dw" base_Model="_HpQmkMbbEeOtJ6H27Db7nA"/>
+ <structure:Requirements xmi:id="_Jp8RoMbrEeOfGc4OdhO4dw" base_Model="_Auq_wMbrEeOfGc4OdhO4dw"/>
+ <structure:UseCases xmi:id="_L8fjEMbrEeOfGc4OdhO4dw" base_Model="_BZKHMMbrEeOfGc4OdhO4dw"/>
+ <structure:Design xmi:id="_NgIgEMbrEeOfGc4OdhO4dw" base_Model="_BnjvkMbrEeOfGc4OdhO4dw"/>
+ <structure:Tests xmi:id="_ObTu4MbrEeOfGc4OdhO4dw" base_Model="_ByGLoMbrEeOfGc4OdhO4dw"/>
+</xmi:XMI>
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/LinkUtil.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/LinkUtil.java
new file mode 100644
index 00000000000..2508f75063a
--- /dev/null
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/LinkUtil.java
@@ -0,0 +1,162 @@
+/*****************************************************************************
+ * Copyright (c) 2015 Christian W. Damus and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Christian W. Damus - Initial API and implementation
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.uml.developper.mde;
+
+import java.util.List;
+import java.util.regex.MatchResult;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import org.eclipse.papyrus.infra.emf.utils.EMFFunctions;
+import org.eclipse.papyrus.uml.developper.mde.handler.IDMAbstractHandler;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.UMLPackage;
+
+import com.google.common.base.Function;
+import com.google.common.base.Strings;
+import com.google.common.collect.ImmutableList;
+
+/**
+ * An utility for generating and parsing simple textual hyperlinks.
+ */
+public class LinkUtil {
+ private static final Pattern HYPERLINK_PATTERN = Pattern.compile("\\$\\{link:([^\\|]+)\\|([^\\|]*)\\|([^\\}]*)\\}");
+
+ private final Function<? super NamedElement, String> titleFunction;
+ private final Function<? super NamedElement, String> nameFunction = EMFFunctions.getFeature(UMLPackage.Literals.NAMED_ELEMENT__NAME, String.class);
+ private final Function<NamedElement, String> hyperlinkFunction = new Function<NamedElement, String>() {
+
+ @Override
+ public String apply(NamedElement input) {
+ return createHyperlink(input, titleFunction.apply(input), nameFunction.apply(input));
+ }
+ };
+
+ /**
+ * Initializes me with the function that I use to obtain titles for links to model elements.
+ *
+ * @param titleFunction
+ * my element title function
+ */
+ public LinkUtil(Function<? super NamedElement, String> titleFunction) {
+ super();
+
+ this.titleFunction = titleFunction;
+ }
+
+ public static String createHyperlink(NamedElement element, String title, String name) {
+ return String.format("${link:%s|%s|%s}", element.eResource().getURIFragment(element), title, name);
+ }
+
+ public Function<? super NamedElement, String> getHyperlinkFunction() {
+ return hyperlinkFunction;
+ }
+
+ public static List<Hyperlink> parseHyperlinks(CharSequence text, int start, int end) {
+ ImmutableList.Builder<Hyperlink> result = ImmutableList.builder();
+
+ for (Matcher m = HYPERLINK_PATTERN.matcher(text.subSequence(start, end)); m.find();) {
+ result.add(new Hyperlink(m, start));
+ }
+
+ return result.build();
+ }
+
+ /**
+ * Transcodes a length of {@code text} with any potential encoded hyperlinks into a format suitable for the
+ * output of the generation pipeline.
+ *
+ * @param text
+ * a string of (comment) text from the documentation model
+ * @param start
+ * the starting offset (inclusive) in the {@code text} to process
+ * @param end
+ * the ending offset (exclusive) in the {@code text} to process
+ * @param transcoder
+ * a function that generates the textual representation of an hyperlink in the output format
+ *
+ * @return the transcoded text, or {@code null} if it had no embedded hyperlinks
+ */
+ public static String transcodeHyperlinks(CharSequence text, int start, int end, Function<? super Hyperlink, String> transcoder) {
+ String result = null;
+
+ List<Hyperlink> hyperlinks = parseHyperlinks(text, start, end);
+ if (!hyperlinks.isEmpty()) {
+ StringBuilder buf = new StringBuilder(3 * text.length() / 2);
+ int offset = start;
+
+ for (Hyperlink next : hyperlinks) {
+ // Up to the start of the hyperlink
+ buf.append(text, offset, next.offset());
+
+ // Output representation of the hyperlink
+ buf.append(transcoder.apply(next));
+
+ // Prepare for next
+ offset = next.offset() + next.length();
+ }
+
+ // Remainder of the string
+ buf.append(text, offset, end);
+
+ result = buf.toString();
+ }
+
+ return result;
+ }
+
+ //
+ // Nested types
+ //
+
+ public static final class Hyperlink {
+ private final int offset;
+ private final int length;
+ private final String href;
+ private final String title;
+ private final String text;
+
+ Hyperlink(MatchResult match, int offset) {
+ super();
+
+ this.offset = offset + match.start();
+ this.length = match.end() - match.start();
+
+ this.href = match.group(1);
+ this.title = match.group(2);
+ this.text = match.group(3);
+ }
+
+ public int offset() {
+ return offset;
+ }
+
+ public int length() {
+ return length;
+ }
+
+ public String href() {
+ String result = IDMAbstractHandler.getDocHREF(href);
+ return (result == null) ? href : result;
+ }
+
+ public String title() {
+ return Strings.isNullOrEmpty(title) ? text : title;
+ }
+
+ public String text() {
+ return text;
+ }
+ }
+}
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/command/CreateDocumentModelCommand.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/command/CreateDocumentModelCommand.java
index 6afb56c7ae6..f0151a6c91c 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/command/CreateDocumentModelCommand.java
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/command/CreateDocumentModelCommand.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
+ * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others.
*
*
* All rights reserved. This program and the accompanying materials
@@ -9,6 +9,7 @@
*
* Contributors:
* Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ * Christian W. Damus - bug 468079
*
*****************************************************************************/
package org.eclipse.papyrus.uml.developper.mde.command;
@@ -17,12 +18,17 @@ import java.io.File;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
+import java.util.Map;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
+import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.provider.EModelElementItemProvider;
import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.transaction.RecordingCommand;
import org.eclipse.emf.transaction.TransactionalEditingDomain;
import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
@@ -37,18 +43,25 @@ import org.eclipse.papyrus.infra.hyperlink.object.HyperLinkDocument;
import org.eclipse.papyrus.infra.hyperlink.object.HyperLinkObject;
import org.eclipse.papyrus.infra.hyperlink.util.HyperLinkException;
import org.eclipse.papyrus.infra.hyperlink.util.HyperLinkHelpersRegistrationUtil;
+import org.eclipse.papyrus.infra.tools.util.TypeUtils;
import org.eclipse.papyrus.uml.developper.mde.I_DeveloperIDMStereotype;
import org.eclipse.papyrus.uml.developper.mde.I_DocumentStereotype;
+import org.eclipse.papyrus.uml.developper.mde.LinkUtil;
import org.eclipse.papyrus.uml.developper.mde.handler.IDMAbstractHandler;
import org.eclipse.papyrus.views.modelexplorer.NavigatorUtils;
import org.eclipse.uml2.uml.Actor;
import org.eclipse.uml2.uml.Association;
import org.eclipse.uml2.uml.Behavior;
+import org.eclipse.uml2.uml.BehavioredClassifier;
import org.eclipse.uml2.uml.Class;
import org.eclipse.uml2.uml.Classifier;
+import org.eclipse.uml2.uml.Collaboration;
import org.eclipse.uml2.uml.Comment;
+import org.eclipse.uml2.uml.DataType;
import org.eclipse.uml2.uml.Dependency;
+import org.eclipse.uml2.uml.DirectedRelationship;
import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.Interface;
import org.eclipse.uml2.uml.Model;
import org.eclipse.uml2.uml.NamedElement;
import org.eclipse.uml2.uml.Package;
@@ -57,6 +70,17 @@ import org.eclipse.uml2.uml.PackageableElement;
import org.eclipse.uml2.uml.Stereotype;
import org.eclipse.uml2.uml.UMLFactory;
import org.eclipse.uml2.uml.UseCase;
+import org.eclipse.uml2.uml.profile.standard.Trace;
+import org.eclipse.uml2.uml.util.UMLUtil;
+
+import com.google.common.base.Function;
+import com.google.common.base.Joiner;
+import com.google.common.base.Strings;
+import com.google.common.collect.BiMap;
+import com.google.common.collect.HashBiMap;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.Iterables;
+import com.google.common.collect.Maps;
/**
* this command transform a model to document model
@@ -78,6 +102,11 @@ public class CreateDocumentModelCommand extends RecordingCommand {
protected int nbUnverifiedRequirement = 0;
protected int nbRequirement = 0;
+ private AdapterFactory adapterFactory;
+
+ private LinkUtil linkUtil;
+
+ private BiMap<Diagram, String> diagramFileNames = HashBiMap.create();
/**
*
@@ -97,6 +126,14 @@ public class CreateDocumentModelCommand extends RecordingCommand {
hyperLinkHelpers.addAll(HyperLinkHelpersRegistrationUtil.INSTANCE.getAllRegisteredHyperLinkHelper());
hyperlinkHelperFactory = new HyperLinkHelperFactory(hyperLinkHelpers);
+
+ adapterFactory = ((AdapterFactoryEditingDomain) domain).getAdapterFactory();
+ linkUtil = new LinkUtil(new Function<NamedElement, String>() {
+ @Override
+ public String apply(NamedElement input) {
+ return title(input);
+ }
+ });
}
@Override
@@ -151,7 +188,7 @@ public class CreateDocumentModelCommand extends RecordingCommand {
// Get the requirements model package from the model
Model requirementsModel = getStereotypedPackage(I_DeveloperIDMStereotype.REQUIREMENTS_STEREOTYPE);
- // For each requirements, creates a line in the table
+ // For each requirements, creates a line in the table
if (requirementsModel != null) {
Package requirementsCoverageOUT = createSection(documentModel, "Requirements Coverage");
generateTableCoverage(requirementsModel, requirementsCoverageOUT);
@@ -159,6 +196,8 @@ public class CreateDocumentModelCommand extends RecordingCommand {
// Generate content of the Table of Contents package
generateTableOfContents(documentModel);
+
+ diagramFileNames.clear();
}
@@ -177,8 +216,8 @@ public class CreateDocumentModelCommand extends RecordingCommand {
Package toc = (Package) documentModel.getPackagedElement("Table of Contents");
Stereotype tableOfContentStereotype = toc.getAppliedStereotype(I_DocumentStereotype.TABLEOFCONTENT_STEREOTYPE);
if (!(section.isStereotypeApplied(tableOfContentStereotype))) {
- Package chapter = createSection(toc, ((Package)section).getName());
- IDMAbstractHandler.Toc2DocElt.put(chapter, (Package) section);
+ Package chapter = createSection(toc, ((Package) section).getName());
+ IDMAbstractHandler.putTOCPackage(chapter, (Package) section);
setTableOfContents(section, chapter);
}
}
@@ -200,10 +239,10 @@ public class CreateDocumentModelCommand extends RecordingCommand {
Element cddElement = elements.next();
Stereotype sectionStereotype = cddElement.getAppliedStereotype(I_DocumentStereotype.SECTION_STEREOTYPE);
if (sectionStereotype != null) {
- Package chapter = createSection(chapterPackage, ((Package)cddElement).getName());
- IDMAbstractHandler.Toc2DocElt.put(chapter, (Package) cddElement);
+ Package chapter = createSection(chapterPackage, ((Package) cddElement).getName());
+ IDMAbstractHandler.putTOCPackage(chapter, (Package) cddElement);
setTableOfContents(cddElement, chapter);
- }
+ }
}
}
}
@@ -213,14 +252,14 @@ public class CreateDocumentModelCommand extends RecordingCommand {
for (Iterator<EObject> itereq = requirementsIn.eAllContents(); itereq.hasNext();) {
EObject packageableElement = itereq.next();
if (packageableElement instanceof PackageImport) {
- PackageImport importedPackage = (PackageImport)packageableElement;
+ PackageImport importedPackage = (PackageImport) packageableElement;
if (importedPackage.getAppliedStereotype(I_DeveloperIDMStereotype.REQUIREMENTS_STEREOTYPE) != null) {
Model importedRequirementPackageIn = (Model) importedPackage.getImportedPackage();
generateRequirements(importedRequirementPackageIn, requirementsOUT);
}
- } else if (packageableElement instanceof Element){
+ } else if (packageableElement instanceof Element) {
Element currentReq = (Element) packageableElement;
- Stereotype reqStereotype = currentReq.getApplicableStereotype(SYS_ML_REQUIREMENTS_REQUIREMENT);
+ Stereotype reqStereotype = currentReq.getAppliedStereotype(SYS_ML_REQUIREMENTS_REQUIREMENT);
if (reqStereotype != null) {
String out = "- " + ((org.eclipse.uml2.uml.Class) currentReq).getName() + " (id=" + currentReq.getValue(reqStereotype, "id") + "): "; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
out = out + "\n " + currentReq.getValue(reqStereotype, "text"); //$NON-NLS-1$ //$NON-NLS-2$
@@ -229,7 +268,7 @@ public class CreateDocumentModelCommand extends RecordingCommand {
Stereotype contentStereotype = comment.getApplicableStereotype(I_DocumentStereotype.CONTENT_STEREOTYPE);
comment.applyStereotype(contentStereotype);
comment.setBody(out);
- IDMAbstractHandler.elt2DocElt.put(currentReq, comment);
+ IDMAbstractHandler.putDocElement(currentReq, comment);
}
}
}
@@ -248,17 +287,15 @@ public class CreateDocumentModelCommand extends RecordingCommand {
}
for (PackageableElement packageableElement : useCaseIN.getPackagedElements()) {
- if( (packageableElement instanceof Classifier) &&(!(packageableElement instanceof Actor)) &&(!(packageableElement instanceof Association) )){
+ if ((packageableElement instanceof Classifier) && (!(packageableElement instanceof Actor)) && (!(packageableElement instanceof Association))) {
Classifier subjectIn = (Classifier) packageableElement;
Package subSectionOUT = createSection(useCaseModelOUT, subjectIn.getName());
generateUseCaseFromSubject(copyImageUtil, subjectIn, subSectionOUT);
}
}
-
-
}
- protected void generateUseCaseFromSubject(CopyToImageUtil copyImageUtil, Classifier subjectIN, Package useCaseModelOUT){
+ protected void generateUseCaseFromSubject(CopyToImageUtil copyImageUtil, Classifier subjectIN, Package useCaseModelOUT) {
// createRef diagram
if (containedDiagrams(subjectIN).size() > 0) {
Diagram currentDiagram = containedDiagrams(subjectIN).get(0);
@@ -273,14 +310,16 @@ public class CreateDocumentModelCommand extends RecordingCommand {
for (Iterator<EObject> iterator = subjectIN.eAllContents(); iterator.hasNext();) {
EObject packageableElement = iterator.next();
if (packageableElement instanceof UseCase) {
- Package useCaseSectionOUT = createSection(useCaseModelOUT, ((UseCase) packageableElement).getName());
+ UseCase useCase = (UseCase) packageableElement;
+ Package useCaseSectionOUT = createSection(useCaseModelOUT, useCase.getName());
+ generateTraceability(useCaseSectionOUT, useCase);
- for (Iterator<Comment> iteComment = ((UseCase) packageableElement).getOwnedComments().iterator(); iteComment.hasNext();) {
+ for (Iterator<Comment> iteComment = useCase.getOwnedComments().iterator(); iteComment.hasNext();) {
Comment currentComment = iteComment.next();
transformToContentWithUser(copyImageUtil, useCaseSectionOUT, currentComment);
}
} else if (packageableElement instanceof PackageImport) {
- PackageImport importedPackage = (PackageImport)packageableElement;
+ PackageImport importedPackage = (PackageImport) packageableElement;
if (importedPackage.getAppliedStereotype(I_DeveloperIDMStereotype.USECASES_STEREOTYPE) != null) {
Model importedUseCasesPackageIn = (Model) importedPackage.getImportedPackage();
generateUseCases(copyImageUtil, importedUseCasesPackageIn, useCaseModelOUT);
@@ -299,8 +338,7 @@ public class CreateDocumentModelCommand extends RecordingCommand {
}
transformToContentComment(HowToSection, currentComment);
createImageFromHyperLink(copyImageUtil, HowToSection, currentComment);
- }
- else {
+ } else {
transformToContentComment(useCaseSectionOUT, currentComment);
createImageFromHyperLink(copyImageUtil, useCaseSectionOUT, currentComment);
}
@@ -308,12 +346,12 @@ public class CreateDocumentModelCommand extends RecordingCommand {
protected void generateDesign(CopyToImageUtil copyImageUtil, Package designPackageIn, Package designPackageOUT) {
- if(designPackageIn.getPackageImports().size()>0){
+ if (designPackageIn.getPackageImports().size() > 0) {
for (PackageImport packageImport : designPackageIn.getPackageImports()) {
if (packageImport.getAppliedStereotype(I_DeveloperIDMStereotype.DESIGN_STEREOTYPE) != null) {
- Package importedDesignPackageIn = (Package) packageImport.getImportedPackage();
+ Package importedDesignPackageIn = packageImport.getImportedPackage();
Package subSectionOUT = createSection(designPackageOUT, importedDesignPackageIn.getName());
- IDMAbstractHandler.elt2DocElt.put((Element) importedDesignPackageIn, subSectionOUT);
+ IDMAbstractHandler.putDocElement(importedDesignPackageIn, subSectionOUT);
generateDesign(copyImageUtil, importedDesignPackageIn, subSectionOUT);
}
}
@@ -332,27 +370,183 @@ public class CreateDocumentModelCommand extends RecordingCommand {
for (Iterator<PackageableElement> iterator = designPackageIn.getPackagedElements().iterator(); iterator.hasNext();) {
EObject packageableElement = iterator.next();
- if (packageableElement instanceof Class) {
- Package designSectionOUT = createSection(designPackageOUT, ((Class)packageableElement).getName());
- IDMAbstractHandler.elt2DocElt.put((Element) packageableElement, designSectionOUT);
- for (Iterator<Comment> iteComment = ((Class) packageableElement).getOwnedComments().iterator(); iteComment.hasNext();) {
+ if ((packageableElement instanceof Class) || (packageableElement instanceof Interface) || (packageableElement instanceof DataType)) {
+ final Classifier classifier = (Classifier) packageableElement;
+ Package designSectionOUT = createSection(designPackageOUT, title(classifier));
+ IDMAbstractHandler.putDocElement(classifier, designSectionOUT);
+ generateTaxonomy(designSectionOUT, classifier);
+ generateTraceability(designSectionOUT, classifier);
+ for (Iterator<Comment> iteComment = classifier.getOwnedComments().iterator(); iteComment.hasNext();) {
Comment currentComment = iteComment.next();
transformToContentWithUser(copyImageUtil, designSectionOUT, currentComment);
}
}
+
+ if (packageableElement instanceof Collaboration) {
+ generateDesignCollaboration(copyImageUtil, designPackageOUT, (Collaboration) packageableElement);
+ }
+
if (packageableElement instanceof Package) {
- Package designSectionOUT = createSection(designPackageOUT, ((Package)packageableElement).getName());
- IDMAbstractHandler.elt2DocElt.put((Element) packageableElement, designSectionOUT);
- generateDesign(copyImageUtil, (Package)packageableElement, designSectionOUT);
+ Package package_ = (Package) packageableElement;
+ Package designSectionOUT = createSection(designPackageOUT, title(package_));
+ generateTraceability(designSectionOUT, package_);
+ IDMAbstractHandler.putDocElement(package_, designSectionOUT);
+ generateDesign(copyImageUtil, package_, designSectionOUT);
+ }
+
+ }
+
+ }
+
+ protected void generateDesignCollaboration(CopyToImageUtil copyImageUtil, Package designPackage, Collaboration collaboration) {
+ Package designSectionOUT = createSection(designPackage, title(collaboration));
+ IDMAbstractHandler.putDocElement(collaboration, designSectionOUT);
+
+ generateTraceability(designSectionOUT, collaboration);
+
+ for (Diagram diagram : containedDiagrams(collaboration)) {
+ generateImg(copyImageUtil, designSectionOUT, diagram);
+ }
+
+ for (Comment comment : collaboration.getOwnedComments()) {
+ transformToContentWithUser(copyImageUtil, designSectionOUT, comment);
+ }
+
+ // Look for interaction diagrams
+
+ for (Behavior behavior : collaboration.getOwnedBehaviors()) {
+ Package behaviorSection = createSection(designSectionOUT, title(behavior));
+ IDMAbstractHandler.putDocElement(behavior, behaviorSection);
+
+ for (Comment comment : behavior.getOwnedComments()) {
+ transformToContentWithUser(copyImageUtil, behaviorSection, comment);
+ }
+ for (Diagram diagram : containedDiagrams(behavior)) {
+ generateImg(copyImageUtil, behaviorSection, diagram);
+ }
+ }
+ }
+
+ protected String title(NamedElement element) {
+ return String.format("%s %s", getMetaclassLabel(element), element.getLabel());
+ }
+
+ protected String getMetaclassLabel(Element element) {
+ String result;
+
+ // If the element has a stereotype, prefer that
+ Stereotype stereotype = Iterables.getFirst(element.getAppliedStereotypes(), null);
+ if (stereotype != null) {
+ result = stereotype.getLabel();
+ } else {
+ EModelElementItemProvider itemProvider = TypeUtils.as(adapterFactory.adapt(element, IItemLabelProvider.class), EModelElementItemProvider.class);
+ if (itemProvider == null) {
+ result = element.eClass().getName();
+ } else {
+ result = itemProvider.getResourceLocator().getString(String.format("_UI_%s_type", element.eClass().getName())); //$NON-NLS-1$
+ }
+ }
+
+ return result;
+ }
+
+ protected void generateTaxonomy(Package designSection, Classifier classifier) {
+ String taxonomy = ""; //$NON-NLS-1$
+
+ if (!classifier.getGenerals().isEmpty()) {
+ taxonomy = taxonomy + " - specializes " + Joiner.on(", ").join(
+ Iterables.transform(classifier.getGenerals(), linkUtil.getHyperlinkFunction()));
+ }
+
+ if (classifier instanceof BehavioredClassifier) {
+ BehavioredClassifier behaviored = (BehavioredClassifier) classifier;
+ if (!behaviored.getImplementedInterfaces().isEmpty()) {
+ if (!taxonomy.isEmpty()) {
+ taxonomy = taxonomy + "\n\n"; //$NON-NLS-1$
+ }
+
+ taxonomy = taxonomy + " - realizes " + Joiner.on(", ").join(
+ Iterables.transform(behaviored.getImplementedInterfaces(), linkUtil.getHyperlinkFunction()));
+ }
+ }
+
+ if (!taxonomy.isEmpty()) {
+ Comment comment = designSection.createOwnedComment();
+ Stereotype contentStereotype = comment.getApplicableStereotype(I_DocumentStereotype.CONTENT_STEREOTYPE);
+ comment.applyStereotype(contentStereotype);
+ comment.setBody(taxonomy);
+ }
+ }
+
+ protected void generateTraceability(Package sectionPackage, NamedElement concept) {
+ String traceability = ""; //$NON-NLS-1$
+
+ List<NamedElement> traceTo = getTracesTo(concept);
+ if (!traceTo.isEmpty()) {
+ traceability = traceability + " - traces to " + Joiner.on(", ").join(
+ Iterables.transform(traceTo, linkUtil.getHyperlinkFunction()));
+ }
+
+ List<NamedElement> traceFrom = getTracesFrom(concept);
+ if (!traceFrom.isEmpty()) {
+ if (!traceability.isEmpty()) {
+ traceability = traceability + "\n\n"; //$NON-NLS-1$
}
+ traceability = traceability + " - traces from " + Joiner.on(", ").join(
+ Iterables.transform(traceFrom, linkUtil.getHyperlinkFunction()));
}
+ if (!traceability.isEmpty()) {
+ Comment comment = sectionPackage.createOwnedComment();
+ Stereotype contentStereotype = comment.getApplicableStereotype(I_DocumentStereotype.CONTENT_STEREOTYPE);
+ comment.applyStereotype(contentStereotype);
+ comment.setBody(traceability);
+ }
}
+ /**
+ * Gets the elements that a {@code concept} traces to via {@literal «trace» Abstractions}.
+ *
+ * @param concept
+ * a concept in the model
+ * @return its trace-to elements
+ */
+ protected List<NamedElement> getTracesTo(NamedElement concept) {
+ ImmutableList.Builder<NamedElement> result = ImmutableList.builder();
+
+ for (DirectedRelationship next : concept.getSourceDirectedRelationships()) {
+ Trace trace = UMLUtil.getStereotypeApplication(next, Trace.class);
+ if (trace != null) {
+ result.addAll(trace.getBase_Abstraction().getSuppliers());
+ }
+ }
+
+ return result.build();
+ }
+
+ /**
+ * Gets the elements that a {@code concept} traces from via {@literal «trace» Abstractions}.
+ *
+ * @param concept
+ * a concept in the model
+ * @return its trace-from elements
+ */
+ protected List<NamedElement> getTracesFrom(NamedElement concept) {
+ ImmutableList.Builder<NamedElement> result = ImmutableList.builder();
+
+ for (DirectedRelationship next : concept.getTargetDirectedRelationships()) {
+ Trace trace = UMLUtil.getStereotypeApplication(next, Trace.class);
+ if (trace != null) {
+ result.addAll(trace.getBase_Abstraction().getClients());
+ }
+ }
+
+ return result.build();
+ }
protected void generateTests(CopyToImageUtil copyImageUtil, Package testIN, Package testModelOUT) {
- if(testIN.getPackageImports().size()>0){
+ if (testIN.getPackageImports().size() > 0) {
for (PackageImport packageImport : testIN.getPackageImports()) {
if (packageImport.getAppliedStereotype(I_DeveloperIDMStereotype.EXECUTABLETEST_STEREOTYPE) != null
|| packageImport.getAppliedStereotype(SYS_ML_REQUIREMENTS_TESTCASE) != null
@@ -370,31 +564,26 @@ public class CreateDocumentModelCommand extends RecordingCommand {
}
for (Iterator<Comment> iteComment = (testIN).getOwnedComments().iterator(); iteComment.hasNext();) {
Comment currentComment = iteComment.next();
- createImageFromHyperLink(copyImageUtil, testModelOUT, currentComment);
transformToContentComment(testModelOUT, currentComment);
+ createImageFromHyperLink(copyImageUtil, testModelOUT, currentComment);
}
for (Iterator<PackageableElement> iterator = testIN.getPackagedElements().iterator(); iterator.hasNext();) {
EObject packageableElement = iterator.next();
if (packageableElement instanceof Package) {
- Package testCaseSectionOUT = createSection(testModelOUT, ((Package) packageableElement).getName());
- IDMAbstractHandler.elt2DocElt.put((Element) packageableElement, testCaseSectionOUT);
- generateTests(copyImageUtil, (Package)packageableElement, testCaseSectionOUT);
- for (Iterator<Comment> iteComment = ((Package) packageableElement).getOwnedComments().iterator(); iteComment.hasNext();) {
+ Package package_ = (Package) packageableElement;
+ Package testCaseSectionOUT = createSection(testModelOUT, title(package_));
+ IDMAbstractHandler.putDocElement(package_, testCaseSectionOUT);
+ generateTests(copyImageUtil, package_, testCaseSectionOUT);
+ } else if (packageableElement instanceof Classifier && !(packageableElement instanceof Association)) {
+ Classifier classifier = (Classifier) packageableElement;
+ Package testCaseSectionOUT = createSection(testModelOUT, title(classifier));
+ IDMAbstractHandler.putDocElement(classifier, testCaseSectionOUT);
+ for (Iterator<Comment> iteComment = classifier.getOwnedComments().iterator(); iteComment.hasNext();) {
Comment currentComment = iteComment.next();
- createImageFromHyperLink(copyImageUtil, testCaseSectionOUT, currentComment);
transformToContentComment(testCaseSectionOUT, currentComment);
- }
- }
- else if (packageableElement instanceof Behavior ||packageableElement instanceof Classifier) {
-
- Package testCaseSectionOUT = createSection(testModelOUT, ((NamedElement) packageableElement).getName());
- IDMAbstractHandler.elt2DocElt.put((Element) packageableElement, testCaseSectionOUT);
- for (Iterator<Comment> iteComment = ((NamedElement) packageableElement).getOwnedComments().iterator(); iteComment.hasNext();) {
- Comment currentComment = iteComment.next();
createImageFromHyperLink(copyImageUtil, testCaseSectionOUT, currentComment);
- transformToContentComment(testCaseSectionOUT, currentComment);
}
}
@@ -404,14 +593,14 @@ public class CreateDocumentModelCommand extends RecordingCommand {
/**
*
* Generate the Requirements Coverage "Section" Package in the document model.
- * First, retrieves the requirements package in the model.
+ * First, retrieves the requirements package in the model.
* Then, for each requirement, create a comment with "Line" stereotype.
* A line has cells, and those cells are represented by a comment with the "Cell" stereotype.
* And a cell has contents, those contents are represented by a comment with the "CellContent" stereotype
*
* @param documentModel
*/
- protected void generateTableCoverage(Model requirementsModel, Package requirementsCoverageOUT) {
+ protected void generateTableCoverage(Model requirementsModel, Package requirementsCoverageOUT) {
// Create the comment with the table stereotype
Comment table = requirementsCoverageOUT.createOwnedComment();
@@ -443,11 +632,11 @@ public class CreateDocumentModelCommand extends RecordingCommand {
Stereotype cellStereotype = table.getApplicableStereotype(I_DocumentStereotype.CELL_STEREOTYPE);
Stereotype lineStereotype = table.getApplicableStereotype(I_DocumentStereotype.LINE_STEREOTYPE);
- // Iterates for each requirements
+ // Iterates for each requirements
for (Iterator<EObject> itereq = requirementsModel.eAllContents(); itereq.hasNext();) {
EObject packageableElement = itereq.next();
if (packageableElement instanceof PackageImport) {
- PackageImport importedPackage = (PackageImport)packageableElement;
+ PackageImport importedPackage = (PackageImport) packageableElement;
if (importedPackage.getAppliedStereotype(I_DeveloperIDMStereotype.REQUIREMENTS_STEREOTYPE) != null) {
Model importedRequirementPackageIn = (Model) importedPackage.getImportedPackage();
setTableCoverage(importedRequirementPackageIn, requirementsCoverageOUT, table, unsatisfiedRequirementComment, unverifiedRequirementComment);
@@ -488,7 +677,8 @@ public class CreateDocumentModelCommand extends RecordingCommand {
@SuppressWarnings("unchecked")
List<NamedElement> cddSatisfiedBy = (List<NamedElement>) currentReq.getValue(reqStereotype, "satisfiedBy");
- /* If the requirement is unsatisfied,
+ /*
+ * If the requirement is unsatisfied,
* add it to the unsatisfiedRequirement list (for tracability)
* creates a comment with the cellContentStereotype (to add reference in the documentation)
*/
@@ -501,14 +691,16 @@ public class CreateDocumentModelCommand extends RecordingCommand {
unsatisfiedReq.setBody((String) currentReq.getValue(reqStereotype, "id"));
}
- /* Iterate on satisfied elements of the requirements.
+ /*
+ * Iterate on satisfied elements of the requirements.
* For each one, create the cellContent.
- * Then, add it to the SatisfiedBy cell of the table */
+ * Then, add it to the SatisfiedBy cell of the table
+ */
for (Iterator<NamedElement> iterSatisified = cddSatisfiedBy.iterator(); iterSatisified.hasNext();) {
NamedElement satisfiedElement = iterSatisified.next();
Comment satisfiedByCellContent = satisfiedByCell.createOwnedComment();
- satisfiedByCellContent.applyStereotype(refContentStereotype);
+ satisfiedByCellContent.applyStereotype(refContentStereotype);
satisfiedByCellContent.setValue(refContentStereotype, I_DocumentStereotype.REF_CONTENT_REF_ATT, satisfiedElement);
satisfiedByCellContent.setBody(satisfiedElement.getName());
@@ -516,14 +708,15 @@ public class CreateDocumentModelCommand extends RecordingCommand {
satisfiedByCell.setBody("Satisfied elements");
- // Generate VerifiedBy cell of the table
+ // Generate VerifiedBy cell of the table
Comment verifiedByCell = lineComment.createOwnedComment();
verifiedByCell.applyStereotype(cellStereotype);
@SuppressWarnings("unchecked")
List<NamedElement> cddVerifiededBy = (List<NamedElement>) currentReq.getValue(reqStereotype, "verifiedBy");
- /* If the requirement is unverified,
+ /*
+ * If the requirement is unverified,
* add it to the unverifiedRequirement list (for tracability)
* creates a comment with the cellContentStereotype (to add reference in the documentation)
*/
@@ -536,24 +729,25 @@ public class CreateDocumentModelCommand extends RecordingCommand {
unverifiedReq.setBody((String) currentReq.getValue(reqStereotype, "id"));
}
- /* Iterate on verified elements of the requirements.
+ /*
+ * Iterate on verified elements of the requirements.
* For each one, create the cellContent.
- * Then, add it to the VerifiedBy cell of the table
+ * Then, add it to the VerifiedBy cell of the table
*/
for (Iterator<NamedElement> iterVerified = cddVerifiededBy.iterator(); iterVerified.hasNext();) {
NamedElement verifiedElement = iterVerified.next();
Comment verifiedByCellContent = verifiedByCell.createOwnedComment();
- verifiedByCellContent.applyStereotype(refContentStereotype);
+ verifiedByCellContent.applyStereotype(refContentStereotype);
verifiedByCellContent.setValue(refContentStereotype, I_DocumentStereotype.REF_CONTENT_REF_ATT, verifiedElement);
- verifiedByCellContent.setBody(verifiedElement.getName()) ;
+ verifiedByCellContent.setBody(verifiedElement.getName());
}
verifiedByCell.setBody("Verified elements");
}
- unsatisfiedRequirementComment.setBody("Unsatisfied requirements (" + nbUnsatisfiedRequirement + " out of " + nbRequirement + ") : ");
+ unsatisfiedRequirementComment.setBody("Unsatisfied requirements (" + nbUnsatisfiedRequirement + " out of " + nbRequirement + ") : ");
unverifiedRequirementComment.setBody("Unverified requirements (" + nbUnverifiedRequirement + " out of " + nbRequirement + ") : ");
}
}
@@ -626,11 +820,11 @@ public class CreateDocumentModelCommand extends RecordingCommand {
Comment commentImg = designPackageOUT.createOwnedComment();
Stereotype refStereotype = commentImg.getApplicableStereotype(I_DocumentStereotype.IMAGEREF_STEREOTYPE);
commentImg.applyStereotype(refStereotype);
- String tmpDirectoryPath=directoryPath.substring(1);
- String path=IMGpath.replace("\\", "/").toString();
- int index=path.indexOf(tmpDirectoryPath);
- if(index==0){
- path="."+path.substring(tmpDirectoryPath.length());
+ String tmpDirectoryPath = directoryPath.substring(1);
+ String path = IMGpath.replace("\\", "/").toString();
+ int index = path.indexOf(tmpDirectoryPath);
+ if (index == 0) {
+ path = "." + path.substring(tmpDirectoryPath.length());
}
commentImg.setValue(refStereotype, I_DocumentStereotype.IMAGEREF_REF_ATT, path);
commentImg.setBody(hyperLinkObject.getTooltipText());
@@ -695,7 +889,7 @@ public class CreateDocumentModelCommand extends RecordingCommand {
* @param currentDiagram
*/
protected void generateImg(CopyToImageUtil copyImageUtil, Package currentModel, Diagram currentDiagram) {
- Path imagePath = new Path("" + directoryPath + File.separator + "imgDOC" + File.separator + currentDiagram.getName().replaceAll(" ", "_") + ".png"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
+ Path imagePath = new Path("" + directoryPath + File.separator + "imgDOC" + File.separator + getDiagramImageFileName(currentDiagram)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
try {
copyImageUtil.copyToImage(currentDiagram,
@@ -710,16 +904,31 @@ public class CreateDocumentModelCommand extends RecordingCommand {
Comment commentImg = currentModel.createOwnedComment();
Stereotype refStereotype = commentImg.getApplicableStereotype(I_DocumentStereotype.IMAGEREF_STEREOTYPE);
commentImg.applyStereotype(refStereotype);
- String tmpDirectoryPath=directoryPath.substring(1);
- String path=imagePath.toString();
- int index=path.indexOf(tmpDirectoryPath);
- if(index==0){
- path="."+path.substring(tmpDirectoryPath.length());
+ String tmpDirectoryPath = directoryPath.substring(1);
+ String path = imagePath.toString();
+ int index = path.indexOf(tmpDirectoryPath);
+ if (index == 0) {
+ path = "." + path.substring(tmpDirectoryPath.length());
}
commentImg.setValue(refStereotype, I_DocumentStereotype.IMAGEREF_REF_ATT, path);
commentImg.setBody(currentDiagram.getName());
}
+ protected String getDiagramImageFileName(Diagram diagram) {
+ String result = diagramFileNames.get(diagram);
+
+ if (result == null) {
+ String base = Strings.nullToEmpty(diagram.getName()).replaceAll(" ", "_");
+ result = base;
+ for (int i = 1; diagramFileNames.containsValue(result); i++) {
+ result = base + '_' + i;
+ }
+ diagramFileNames.put(diagram, result);
+ }
+
+ return result + ".png";
+ }
+
/**
*
* @param source
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/GetHTMLTextHandler.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/GetHTMLTextHandler.java
index 567241eea72..3280610d653 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/GetHTMLTextHandler.java
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/GetHTMLTextHandler.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
+ * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others.
*
*
* All rights reserved. This program and the accompanying materials
@@ -9,12 +9,11 @@
*
* Contributors:
* Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ * Christian W. Damus - bug 468079
*
*****************************************************************************/
package org.eclipse.papyrus.uml.developper.mde.handler;
-import java.util.List;
-
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.resources.IProject;
@@ -26,7 +25,6 @@ import org.eclipse.papyrus.uml.developper.mde.command.CreateDocumentModelCommand
import org.eclipse.papyrus.uml.developper.mde.transcription.HTMLTranscription;
import org.eclipse.papyrus.uml.developper.mde.transcription.TranscriptionEngine;
import org.eclipse.uml2.uml.Model;
-import org.eclipse.uml2.uml.Stereotype;
/**
* This class is used to create and html developper doc file.
@@ -35,7 +33,7 @@ import org.eclipse.uml2.uml.Stereotype;
public class GetHTMLTextHandler extends IDMAbstractHandler {
protected static final String INTERNAL_DIRECTORY_NAME = "/doc"; //$NON-NLS-1$
-
+
@@ -43,13 +41,18 @@ public class GetHTMLTextHandler extends IDMAbstractHandler {
public Object execute(ExecutionEvent event) throws ExecutionException {
super.execute(event);
System.err.println(getCurrentProject().getLocationURI().getPath());
- IDMAbstractHandler.elt2DocElt.clear();
- IDMAbstractHandler.Toc2DocElt.clear();
- CreateDocumentModelCommand createDocumentModelCommand = new CreateDocumentModelCommand(transactionalEditingDomain, (Model) getSelection(), getCurrentProject().getLocationURI().getPath() + INTERNAL_DIRECTORY_NAME);
- transactionalEditingDomain.getCommandStack().execute(createDocumentModelCommand);
- IProject project = getCurrentProject();
- TranscriptionEngine engine = new TranscriptionEngine((Model) getSelection(), project, new HTMLTranscription());
- engine.traduce();
+ IDMAbstractHandler.clear();
+
+ try {
+ CreateDocumentModelCommand createDocumentModelCommand = new CreateDocumentModelCommand(transactionalEditingDomain, (Model) getSelection(), getCurrentProject().getLocationURI().getPath() + INTERNAL_DIRECTORY_NAME);
+ transactionalEditingDomain.getCommandStack().execute(createDocumentModelCommand);
+ IProject project = getCurrentProject();
+ TranscriptionEngine engine = new TranscriptionEngine((Model) getSelection(), project, new HTMLTranscription());
+ engine.traduce();
+ } finally {
+ IDMAbstractHandler.clear();
+ }
+
return null;
}
@@ -72,8 +75,7 @@ public class GetHTMLTextHandler extends IDMAbstractHandler {
public boolean isEnabled() {
if (getSelection() instanceof Model) {
Model model = (Model) getSelection();
- List<Stereotype> stereotypes = model.getAppliedStereotypes();
- if (((Model) getSelection()).getAppliedStereotype(I_DeveloperIDMStereotype.PROJECT_STEREOTYPE) != null) {
+ if (model.getAppliedStereotype(I_DeveloperIDMStereotype.PROJECT_STEREOTYPE) != null) {
return true;
}
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/GetWikiTextHandler.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/GetWikiTextHandler.java
index af418f54fb0..fac26701a59 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/GetWikiTextHandler.java
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/GetWikiTextHandler.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
+ * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others.
*
*
* All rights reserved. This program and the accompanying materials
@@ -9,6 +9,7 @@
*
* Contributors:
* Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ * Christian W. Damus - bug 468079
*
*****************************************************************************/
package org.eclipse.papyrus.uml.developper.mde.handler;
@@ -37,13 +38,18 @@ public class GetWikiTextHandler extends IDMAbstractHandler {
public Object execute(ExecutionEvent event) throws ExecutionException {
super.execute(event);
System.err.println(getCurrentProject().getLocationURI().getPath());
- IDMAbstractHandler.elt2DocElt.clear();
- IDMAbstractHandler.Toc2DocElt.clear();
- CreateDocumentModelCommand createDocumentModelCommand = new CreateDocumentModelCommand(transactionalEditingDomain, (Model) getSelection(), getCurrentProject().getLocationURI().getPath() + INTERNAL_DIRECTORY_NAME);
- transactionalEditingDomain.getCommandStack().execute(createDocumentModelCommand);
- IProject project = getCurrentProject();
- TranscriptionEngine engine = new TranscriptionEngine((Model) getSelection(), project, new WikiTranscription());
- engine.traduce();
+ IDMAbstractHandler.clear();
+
+ try {
+ CreateDocumentModelCommand createDocumentModelCommand = new CreateDocumentModelCommand(transactionalEditingDomain, (Model) getSelection(), getCurrentProject().getLocationURI().getPath() + INTERNAL_DIRECTORY_NAME);
+ transactionalEditingDomain.getCommandStack().execute(createDocumentModelCommand);
+ IProject project = getCurrentProject();
+ TranscriptionEngine engine = new TranscriptionEngine((Model) getSelection(), project, new WikiTranscription());
+ engine.traduce();
+ } finally {
+ IDMAbstractHandler.clear();
+ }
+
return null;
}
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/IDMAbstractHandler.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/IDMAbstractHandler.java
index ce7ccf779a8..9d5ac7d9b6d 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/IDMAbstractHandler.java
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/handler/IDMAbstractHandler.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
+ * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others.
*
*
* All rights reserved. This program and the accompanying materials
@@ -9,6 +9,7 @@
*
* Contributors:
* Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ * Christian W. Damus - bug 468079
*
*****************************************************************************/
package org.eclipse.papyrus.uml.developper.mde.handler;
@@ -16,6 +17,7 @@ package org.eclipse.papyrus.uml.developper.mde.handler;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
+import java.util.Map;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
@@ -41,9 +43,10 @@ public abstract class IDMAbstractHandler extends AbstractHandler {
protected TransactionalEditingDomain transactionalEditingDomain = null;
protected PapyrusMultiDiagramEditor papyrusEditor;
- public static HashMap<Element, Element> elt2DocElt = new HashMap<Element, Element>();
- public static HashMap<Package, Package> Toc2DocElt = new HashMap<Package, Package>();
-
+ private static Map<Element, Element> elt2DocElt = new HashMap<Element, Element>();
+ private static Map<String, String> href2DocHREF = new HashMap<String, String>();
+ private static Map<Package, Package> Toc2DocElt = new HashMap<Package, Package>();
+
/**
* get the root package
*
@@ -117,4 +120,31 @@ public abstract class IDMAbstractHandler extends AbstractHandler {
}
return selectedSet;
}
+
+ public static void clear() {
+ elt2DocElt.clear();
+ href2DocHREF.clear();
+ Toc2DocElt.clear();
+ }
+
+ public static Element getDocElement(Element modelElement) {
+ return elt2DocElt.get(modelElement);
+ }
+
+ public static String getDocHREF(String href) {
+ return href2DocHREF.get(href);
+ }
+
+ public static void putDocElement(Element modelElement, Element docElement) {
+ elt2DocElt.put(modelElement, docElement);
+ href2DocHREF.put(modelElement.eResource().getURIFragment(modelElement), docElement.eResource().getURIFragment(docElement));
+ }
+
+ public static Package getDocPackageForTOC(Package tocPackage) {
+ return Toc2DocElt.get(tocPackage);
+ }
+
+ public static void putTOCPackage(Package tocPackage, Package docPackage) {
+ Toc2DocElt.put(tocPackage, docPackage);
+ }
}
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/HTMLTranscription.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/HTMLTranscription.java
index b7f2ceaca53..1280406ae0e 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/HTMLTranscription.java
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/HTMLTranscription.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
+ * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others.
*
*
* All rights reserved. This program and the accompanying materials
@@ -9,18 +9,23 @@
*
* Contributors:
* Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ * Christian W. Damus - bug 468079
*
*****************************************************************************/
package org.eclipse.papyrus.uml.developper.mde.transcription;
import org.eclipse.emf.ecore.xmi.XMIResource;
import org.eclipse.papyrus.uml.developper.mde.I_DocumentStereotype;
+import org.eclipse.papyrus.uml.developper.mde.LinkUtil;
+import org.eclipse.papyrus.uml.developper.mde.LinkUtil.Hyperlink;
import org.eclipse.uml2.uml.Comment;
import org.eclipse.uml2.uml.Element;
import org.eclipse.uml2.uml.Model;
import org.eclipse.uml2.uml.Package;
import org.eclipse.uml2.uml.Stereotype;
+import com.google.common.base.Function;
+
/**
* this class is a specialization to generate html files.
*
@@ -29,6 +34,18 @@ import org.eclipse.uml2.uml.Stereotype;
*/
public class HTMLTranscription implements ITranscription {
+ private final Function<LinkUtil.Hyperlink, String> hyperlinkFunction = new Function<LinkUtil.Hyperlink, String>() {
+ @Override
+ public String apply(Hyperlink input) {
+ return String.format("<a href=\"#%s\" title=\"%s\">%s</a>", input.href(), input.title(), input.text());
+ }
+ };
+
+ @Override
+ public Function<? super Hyperlink, String> getHyperlinkTranscoder() {
+ return hyperlinkFunction;
+ }
+
/**
* @see org.eclipse.papyrus.uml.developper.mde.transcription.ITranscription#writeEndingDocument(java.lang.StringBuffer)
*
@@ -38,6 +55,7 @@ public class HTMLTranscription implements ITranscription {
@Override
public void writeEndingDocument(StringBuffer out) {
out.append("</html>"); //$NON-NLS-1$
+ out.append(System.lineSeparator());
}
@@ -51,7 +69,9 @@ public class HTMLTranscription implements ITranscription {
@Override
public StringBuffer writeBeginningDocument(StringBuffer out) {
out.append("<html>"); //$NON-NLS-1$
+ out.append(System.lineSeparator());
out.append("<link rel=\"stylesheet\" href=\"default.css\" type=\"text/css\">"); //$NON-NLS-1$
+ out.append(System.lineSeparator());
return out;
}
@@ -64,6 +84,7 @@ public class HTMLTranscription implements ITranscription {
@Override
public void writeDocumentTitle(StringBuffer out, Model documentModel) {
out.append("<H1>" + documentModel.getName() + "</H1>"); //$NON-NLS-1$ //$NON-NLS-2$
+ out.append(System.lineSeparator());
}
/**
@@ -74,8 +95,9 @@ public class HTMLTranscription implements ITranscription {
* @param packageableElement
*/
@Override
- public void writesectionTitle(StringBuffer out, int level, Element packageableElement) {
- out.append("<H" + level + getId(packageableElement) + ">" + ((Package) packageableElement).getName() + "</H" + level + ">"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ public void writeSectionTitle(StringBuffer out, int level, Element packageableElement) {
+ out.append("<H" + level + getId(packageableElement) + ">" + ((Package) packageableElement).getName() + "</H" + level + ">"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ out.append(System.lineSeparator());
}
@@ -92,6 +114,7 @@ public class HTMLTranscription implements ITranscription {
out.append("<P align=\"middle\"><img src=" + packageableElement.getValue(imgRefStereotype, I_DocumentStereotype.IMAGEREF_REF_ATT) + " alt=" + ((Comment) packageableElement).getBody() + " ></P>"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
out.append("<P align=\"middle\">" + ((Comment) packageableElement).getBody() + "</P>"); //$NON-NLS-1$ //$NON-NLS-2$
out.append("</BR>"); //$NON-NLS-1$
+ out.append(System.lineSeparator());
}
@@ -104,14 +127,15 @@ public class HTMLTranscription implements ITranscription {
@Override
public void writeParagraph(StringBuffer out, Element packageableElement) {
- out.append("<pre" + getId(packageableElement)+ ">" + ((Comment) packageableElement).getBody().replaceAll("\n", "<BR/>") + "</pre>"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ out.append("<pre" + getId(packageableElement) + ">" + ((Comment) packageableElement).getBody().replaceAll("\n", "<BR/>") + "</pre>"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ out.append(System.lineSeparator());
}
/**
* @return
*/
public String getId(Element packageableElement) {
- String packageableElementtFragment = ((XMIResource)packageableElement.eResource()).getID(packageableElement);
+ String packageableElementtFragment = ((XMIResource) packageableElement.eResource()).getID(packageableElement);
String id = " id =\"" + packageableElementtFragment + "\"";
return id;
}
@@ -135,11 +159,11 @@ public class HTMLTranscription implements ITranscription {
out.append("<caption style=\"caption-side: bottom;\">" + tableCaption + "</caption>");
writeBeginTRTag(out);
out.append("<th style=\"border: 1px solid black\">Id</th>");
- out.append("<th style=\"border: 1px solid black\">Satisfy by</th>");
- out.append("<th style=\"border: 1px solid black\">Verify by</th>");
+ out.append("<th style=\"border: 1px solid black\">Satisfied by</th>");
+ out.append("<th style=\"border: 1px solid black\">Verified by</th>");
writeEndTRTag(out);
}
-
+
/**
*
* @see org.eclipse.papyrus.uml.developper.mde.transcription.ITranscription#writeLine(java.lang.StringBuffer, java.lang.String, java.lang.String, java.lang.String)
@@ -149,14 +173,15 @@ public class HTMLTranscription implements ITranscription {
* @param referenceName
* @param text
*/
+ @Override
public void writeLine(StringBuffer out, String uri, String referenceName, String text) {
if (uri.equals("")) {
- out.append(text);
+ out.append(text);
} else {
- out.append("<a href=\"#" + uri + "\" title=\"" + referenceName + "\">" + text + "</a>");
- }
+ out.append("<a href=\"#" + uri + "\" title=\"" + referenceName + "\">" + text + "</a>");
+ }
}
-
+
/**
* @see org.eclipse.papyrus.uml.developper.mde.transcription.ITranscription#writeNewLine(java.lang.StringBuffer)
*
@@ -164,26 +189,28 @@ public class HTMLTranscription implements ITranscription {
*/
@Override
public void writeNewLine(StringBuffer out) {
- out.append("</BR>");
-
+ out.append("<BR/>");
+ out.append(System.lineSeparator());
}
-
+
/**
*
* @see org.eclipse.papyrus.uml.developper.mde.transcription.ITranscription#writeBeginTDTag(java.lang.StringBuffer)
*
* @param out
*/
+ @Override
public void writeBeginTDTag(StringBuffer out) {
out.append("<td style=\"border : 1px solid black\">");
}
-
+
/**
*
* @see org.eclipse.papyrus.uml.developper.mde.transcription.ITranscription#writeEndTDTag(java.lang.StringBuffer)
*
* @param out
*/
+ @Override
public void writeEndTDTag(StringBuffer out) {
out.append("</td>");
}
@@ -194,6 +221,7 @@ public class HTMLTranscription implements ITranscription {
*
* @param out
*/
+ @Override
public void writeBeginTRTag(StringBuffer out) {
out.append("<tr>");
}
@@ -204,8 +232,10 @@ public class HTMLTranscription implements ITranscription {
*
* @param out
*/
+ @Override
public void writeEndTRTag(StringBuffer out) {
out.append("</tr>");
+ out.append(System.lineSeparator());
}
@@ -217,29 +247,33 @@ public class HTMLTranscription implements ITranscription {
@Override
public void writeEndingTable(StringBuffer out) {
out.append("</table>");
+ out.append(System.lineSeparator());
}
-
+
/**
*
* @see org.eclipse.papyrus.uml.developper.mde.transcription.ITranscription#writeBeginParagraph(java.lang.StringBuffer)
*
* @param out
*/
+ @Override
public void writeBeginParagraph(StringBuffer out) {
out.append("<pre>");
}
-
+
/**
*
* @see org.eclipse.papyrus.uml.developper.mde.transcription.ITranscription#writeEndingParagraph(java.lang.StringBuffer)
*
* @param out
*/
+ @Override
public void writeEndingParagraph(StringBuffer out) {
out.append("</pre>");
+ out.append(System.lineSeparator());
}
-
-
+
+
/**
*
* @see org.eclipse.papyrus.uml.developper.mde.transcription.ITranscription#writeRefContent(java.lang.StringBuffer, java.lang.String, java.lang.String, java.lang.String)
@@ -249,12 +283,13 @@ public class HTMLTranscription implements ITranscription {
* @param requirementName
* @param reqID
*/
+ @Override
public void writeRefContent(StringBuffer out, String uri, String requirementName, String reqID) {
if (uri.equals("")) {
- out.append(reqID);
+ out.append(reqID);
} else {
- out.append("<a href=\"#" + uri + "\" title=\"" + requirementName + "\">" + reqID + "</a>");
- }
+ out.append("<a href=\"#" + uri + "\" title=\"" + requirementName + "\">" + reqID + "</a>");
+ }
}
@@ -268,7 +303,7 @@ public class HTMLTranscription implements ITranscription {
*/
@Override
public void writeTOCSection(StringBuffer out, String chapterName, String uri) {
- out.append("<a href=\"#" + uri + "\">" + chapterName + "</a>" );
+ out.append("<a href=\"#" + uri + "\">" + chapterName + "</a>");
}
@@ -283,7 +318,8 @@ public class HTMLTranscription implements ITranscription {
*/
@Override
public void writeTOCSubSection(StringBuffer out, String subSectionName, String uri) {
- out.append("<li><a href=\"#" + uri + "\"> " + subSectionName + "</a></li>");
+ out.append("<li><a href=\"#" + uri + "\"> " + subSectionName + "</a></li>");
+ out.append(System.lineSeparator());
}
@@ -306,6 +342,7 @@ public class HTMLTranscription implements ITranscription {
@Override
public void writeEndTOC(StringBuffer out) {
out.append("</ul>");
+ out.append(System.lineSeparator());
}
}
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/ITranscription.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/ITranscription.java
index 5a377fd77db..1ed461f084f 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/ITranscription.java
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/ITranscription.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
+ * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others.
*
*
* All rights reserved. This program and the accompanying materials
@@ -9,14 +9,18 @@
*
* Contributors:
* Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ * Christian W. Damus - bug 468079
*
*****************************************************************************/
package org.eclipse.papyrus.uml.developper.mde.transcription;
+import org.eclipse.papyrus.uml.developper.mde.LinkUtil;
import org.eclipse.uml2.uml.Element;
import org.eclipse.uml2.uml.Model;
import org.eclipse.uml2.uml.Stereotype;
+import com.google.common.base.Function;
+
/**
* This class is used to generated very swiftly a document from the document model
@@ -25,6 +29,13 @@ import org.eclipse.uml2.uml.Stereotype;
public interface ITranscription {
/**
+ * Obtains a function that generates the output format of an element hyperlink.
+ *
+ * @return
+ */
+ public abstract Function<? super LinkUtil.Hyperlink, String> getHyperlinkTranscoder();
+
+ /**
* finalize the document
*
* @param out
@@ -57,7 +68,7 @@ public interface ITranscription {
* @param packageableElement
* the package
*/
- public abstract void writesectionTitle(StringBuffer out, int level, Element packageableElement);
+ public abstract void writeSectionTitle(StringBuffer out, int level, Element packageableElement);
/**
* write a image
@@ -85,8 +96,8 @@ public interface ITranscription {
* @return the name of the document to generate
*/
public abstract String getNameFile();
-
-
+
+
/**
* write the beginning of the table (header, style)
*
@@ -94,21 +105,21 @@ public interface ITranscription {
* @param tableCaption
*/
public abstract void writeTable(StringBuffer out, String tableCaption);
-
+
/**
* write line in the table
*
* @param out
- * @param uri
- * represents the uri of the referent element
+ * @param uri
+ * represents the uri of the referent element
* @param referenceName
- * name of the referent element
+ * name of the referent element
* @param text
- * represents content of the line
+ * represents content of the line
*/
public abstract void writeLine(StringBuffer out, String uri, String referenceName, String text);
-
-
+
+
/**
*
* write the beginning of a line
@@ -116,95 +127,95 @@ public interface ITranscription {
* @param out
*/
public abstract void writeBeginTRTag(StringBuffer out);
-
+
/**
* write the ending of a line
*
* @param out
*/
public abstract void writeEndTRTag(StringBuffer out);
-
+
/**
* finalize the table
*
* @param out
*/
public abstract void writeEndingTable(StringBuffer out);
-
+
/**
* write the beginning of a column
*
* @param out
*/
public abstract void writeBeginTDTag(StringBuffer out);
-
+
/**
* write the ending of a column
*
* @param out
*/
public abstract void writeEndTDTag(StringBuffer out);
-
+
public abstract void writeBeginTOC(StringBuffer out);
-
+
public abstract void writeEndTOC(StringBuffer out);
-
-
+
+
/**
* write the requirements which aren't covered
*
* @param out
* @param uri
- * represents the uri of the Requirements Doc Element
+ * represents the uri of the Requirements Doc Element
* @param requirementName
- * the requirement name
+ * the requirement name
* @param reqID
- * id of the requirement
+ * id of the requirement
*/
public abstract void writeRefContent(StringBuffer out, String uri, String requirementName, String reqID);
-
+
/**
* write beginning of a paragraph
*
* @param out
*/
public abstract void writeBeginParagraph(StringBuffer out);
-
+
/**
* write ending of a paragraph
*
* @param out
*/
public abstract void writeEndingParagraph(StringBuffer out);
-
+
/**
* write section in table of contents
*
* @param out
* @param chapterName
- * represents the name of the section
+ * represents the name of the section
* @param uri
- * represents the uri of the Section Doc Element
+ * represents the uri of the Section Doc Element
*/
-
+
public abstract void writeTOCSection(StringBuffer out, String chapterName, String uri);
-
+
/**
*
* @param out
* @param subSectionName
- * represents the name of the sub section
+ * represents the name of the sub section
* @param uri
- * represents the uri of the sub section doc element
+ * represents the uri of the sub section doc element
*/
public abstract void writeTOCSubSection(StringBuffer out, String subSectionName, String uri);
-
+
/**
*
* @param out
*/
public abstract void writeNewLine(StringBuffer out);
-
-
+
+
}
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/TranscriptionEngine.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/TranscriptionEngine.java
index a2956a3db0b..f33ffc3ee02 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/TranscriptionEngine.java
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/TranscriptionEngine.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
+ * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others.
*
*
* All rights reserved. This program and the accompanying materials
@@ -9,6 +9,7 @@
*
* Contributors:
* Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ * Christian W. Damus - bug 468079
*
*****************************************************************************/
package org.eclipse.papyrus.uml.developper.mde.transcription;
@@ -24,6 +25,7 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.emf.ecore.xmi.XMIResource;
import org.eclipse.papyrus.uml.developper.mde.I_DocumentStereotype;
+import org.eclipse.papyrus.uml.developper.mde.LinkUtil;
import org.eclipse.papyrus.uml.developper.mde.handler.IDMAbstractHandler;
import org.eclipse.uml2.uml.Comment;
import org.eclipse.uml2.uml.Element;
@@ -134,9 +136,18 @@ public class TranscriptionEngine {
Element packageableElement = iteComment.next();
if (packageableElement.getAppliedStereotype(I_DocumentStereotype.CONTENT_STEREOTYPE) != null) {
if (((Comment) packageableElement).getBody() != null) {
+ // Mark position
+ final int offset = out.length();
+
transcription.writeParagraph(out, packageableElement);
if (packageableElement.getOwnedComments() != null) {
- writeRefContent(out, (Comment)packageableElement);
+ writeRefContent(out, (Comment) packageableElement);
+ }
+
+ // Expand in-line hyperlinks
+ String expanded = LinkUtil.transcodeHyperlinks(out, offset, out.length(), transcription.getHyperlinkTranscoder());
+ if (expanded != null) {
+ out.replace(offset, out.length(), expanded);
}
}
}
@@ -147,15 +158,15 @@ public class TranscriptionEngine {
}
}
if (packageableElement.getAppliedStereotype(I_DocumentStereotype.SECTION_STEREOTYPE) != null) {
- transcription.writesectionTitle(out, level, packageableElement);
- writeContent(out, ((Package) packageableElement), level + 1);
+ transcription.writeSectionTitle(out, level, packageableElement);
+ writeContent(out, ((Package) packageableElement), level + 1);
}
if (packageableElement.getAppliedStereotype(I_DocumentStereotype.TABLE_STEREOTYPE) != null) {
writeTable(out, packageableElement);
}
if (packageableElement.getAppliedStereotype(I_DocumentStereotype.TABLEOFCONTENT_STEREOTYPE) != null) {
- transcription.writesectionTitle(out, 2, packageableElement);
- writeTOC(out, (Package)packageableElement);
+ transcription.writeSectionTitle(out, 2, packageableElement);
+ writeTOC(out, (Package) packageableElement);
}
}
}
@@ -174,29 +185,29 @@ public class TranscriptionEngine {
Stereotype refContentStereotype = commentElement.getAppliedStereotype(I_DocumentStereotype.REF_CONTENT_STEREOTYPE);
if (refContentStereotype != null) {
Object ref = commentElement.getValue(refContentStereotype, I_DocumentStereotype.REF_CONTENT_REF_ATT);
-
+
/* Get the URI of the model element */
if (ref instanceof NamedElement) {
- Element referent = IDMAbstractHandler.elt2DocElt.get((NamedElement)ref);
+ Element referent = IDMAbstractHandler.getDocElement((NamedElement) ref);
if (referent != null) {
- String referentURI = ((XMIResource)referent.eResource()).getID(referent);
+ String referentURI = referent.eResource().getURIFragment(referent);
String body = commentElement.getBody();
-
+
/* Write the text */
- if (iteComment.hasNext()) {
+ if (iteComment.hasNext()) {
body = body + ", ";
}
- transcription.writeRefContent(out, referentURI, ((NamedElement)ref).getName(), body);
- }
+ transcription.writeRefContent(out, referentURI, ((NamedElement) ref).getName(), body);
+ }
}
}
}
}
/**
- * Retrieves the Table of Contents "Section" Package
+ * Retrieves the Table of Contents "Section" Package
* and iterates on it "Section" package.
- * For each, write it name and URI in the output file.
+ * For each, write it name and URI in the output file.
* Then, iterates on it child
*
* @param out
@@ -209,17 +220,17 @@ public class TranscriptionEngine {
if (sectionStereotype != null) {
transcription.writeBeginTOC(out);
Package chapter = (Package) cddPackageableElement;
- Package chapterDocElt = IDMAbstractHandler.Toc2DocElt.get(chapter);
- String URI = ((XMIResource)chapterDocElt.eResource()).getID(chapterDocElt);
+ Package chapterDocElt = IDMAbstractHandler.getDocPackageForTOC(chapter);
+ String URI = ((XMIResource) chapterDocElt.eResource()).getID(chapterDocElt);
transcription.writeTOCSection(out, chapter.getName(), URI);
- writeSubSectionTOC(out, chapter);
+ writeSubSectionTOC(out, chapter);
transcription.writeEndTOC(out);
}
}
}
/**
- * Retrieves the sub section of a "Section" package.
+ * Retrieves the sub section of a "Section" package.
* Then for each, writes it name and URI on the output file.
* It's a recursive method, so call it again with this package as argument.
*
@@ -231,9 +242,9 @@ public class TranscriptionEngine {
Element cddSubSection = elements.next();
Stereotype sectionStereotype = cddSubSection.getAppliedStereotype(I_DocumentStereotype.SECTION_STEREOTYPE);
if (sectionStereotype != null) {
- Package subSection = (Package)cddSubSection;
- Package subSectionDocElt = IDMAbstractHandler.Toc2DocElt.get(subSection);
- String URI = ((XMIResource)subSectionDocElt.eResource()).getID(subSectionDocElt);
+ Package subSection = (Package) cddSubSection;
+ Package subSectionDocElt = IDMAbstractHandler.getDocPackageForTOC(subSection);
+ String URI = ((XMIResource) subSectionDocElt.eResource()).getID(subSectionDocElt);
transcription.writeTOCSubSection(out, subSection.getName(), URI);
transcription.writeBeginTOC(out);
writeSubSectionTOC(out, subSection);
@@ -253,11 +264,11 @@ public class TranscriptionEngine {
* @param packageableElement
*/
public void writeTable(StringBuffer out, Element packageableElement) {
- Comment tableComment = (Comment)packageableElement;
+ Comment tableComment = (Comment) packageableElement;
Stereotype tableStereotype = tableComment.getAppliedStereotype(I_DocumentStereotype.TABLE_STEREOTYPE);
// Write the structure of the table and it head line
- String tableCaption = (String) ((Comment)packageableElement).getValue(tableStereotype, I_DocumentStereotype.TABLE_CAPTION_ATT);
+ String tableCaption = (String) ((Comment) packageableElement).getValue(tableStereotype, I_DocumentStereotype.TABLE_CAPTION_ATT);
transcription.writeTable(out, tableCaption);
// Iterates on table ownedComments
@@ -265,7 +276,7 @@ public class TranscriptionEngine {
Comment lineComment = cddLineComment.next();
if (lineComment.getAppliedStereotype(I_DocumentStereotype.LINE_STEREOTYPE) != null) {
transcription.writeBeginTRTag(out);
- // Iterates on line ownedComments
+ // Iterates on line ownedComments
for (Iterator<Comment> cddCellComment = lineComment.getOwnedComments().iterator(); cddCellComment.hasNext();) {
Comment cellComment = cddCellComment.next();
if (cellComment.getAppliedStereotype(I_DocumentStereotype.CELL_STEREOTYPE) != null) {
@@ -284,15 +295,15 @@ public class TranscriptionEngine {
String referentURI = "";
String referenceName = "";
Object ref = refContentComment.getValue(refContentStereotype, I_DocumentStereotype.REF_CONTENT_REF_ATT);
-
+
/* Get the URI of the model element */
if (ref instanceof NamedElement) {
NamedElement refElement = (NamedElement) ref;
referenceName = refElement.getName();
- Element referentElement = IDMAbstractHandler.elt2DocElt.get(refElement);
+ Element referentElement = IDMAbstractHandler.getDocElement(refElement);
if (referentElement != null) {
- referentURI = ((XMIResource)referentElement.eResource()).getID(referentElement);
- }
+ referentURI = ((XMIResource) referentElement.eResource()).getID(referentElement);
+ }
}
if (cellSize > 1 && cddRefContentComment.hasNext()) {
@@ -311,6 +322,6 @@ public class TranscriptionEngine {
transcription.writeEndTRTag(out);
}
}
- transcription.writeEndingTable(out);
+ transcription.writeEndingTable(out);
}
}
diff --git a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/WikiTranscription.java b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/WikiTranscription.java
index ded7c503632..15b7857dbb2 100644
--- a/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/WikiTranscription.java
+++ b/plugins/developer/org.eclipse.papyrus.uml.developer.mde/src/org/eclipse/papyrus/uml/developper/mde/transcription/WikiTranscription.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
+ * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others.
*
*
* All rights reserved. This program and the accompanying materials
@@ -9,24 +9,41 @@
*
* Contributors:
* Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ * Christian W. Damus - bug 468079
*
*****************************************************************************/
package org.eclipse.papyrus.uml.developper.mde.transcription;
import org.eclipse.emf.ecore.xmi.XMIResource;
import org.eclipse.papyrus.uml.developper.mde.I_DocumentStereotype;
+import org.eclipse.papyrus.uml.developper.mde.LinkUtil;
+import org.eclipse.papyrus.uml.developper.mde.LinkUtil.Hyperlink;
import org.eclipse.uml2.uml.Comment;
import org.eclipse.uml2.uml.Element;
import org.eclipse.uml2.uml.Model;
import org.eclipse.uml2.uml.Package;
import org.eclipse.uml2.uml.Stereotype;
+import com.google.common.base.Function;
+
/**
* this class is a specialization to generate mediawiki files.
*
*/
public class WikiTranscription implements ITranscription {
+ private final Function<LinkUtil.Hyperlink, String> hyperlinkFunction = new Function<LinkUtil.Hyperlink, String>() {
+ @Override
+ public String apply(Hyperlink input) {
+ return String.format("[[#%s|%s]]", input.href(), input.text());
+ }
+ };
+
+ @Override
+ public Function<? super Hyperlink, String> getHyperlinkTranscoder() {
+ return hyperlinkFunction;
+ }
+
/**
* @see org.eclipse.papyrus.uml.developper.mde.transcription.ITranscription#writeEndingDocument(java.lang.StringBuffer)
*
@@ -76,13 +93,16 @@ public class WikiTranscription implements ITranscription {
*/
@Override
- public void writesectionTitle(StringBuffer out, int level, Element packageableElement) {
+ public void writeSectionTitle(StringBuffer out, int level, Element packageableElement) {
if (level == 2) {
- out.append("\n==<span" + getId(packageableElement) + ">" + ((Package) packageableElement).getName() + "</span>==");} //$NON-NLS-1$ //$NON-NLS-2$
+ out.append("\n==<span" + getId(packageableElement) + ">" + ((Package) packageableElement).getName() + "</span>=="); //$NON-NLS-1$ //$NON-NLS-2$
+ }
if (level == 3) {
- out.append("\n===<span" + getId(packageableElement) + ">" + ((Package) packageableElement).getName() + "</span>===");} //$NON-NLS-1$ //$NON-NLS-2$
+ out.append("\n===<span" + getId(packageableElement) + ">" + ((Package) packageableElement).getName() + "</span>==="); //$NON-NLS-1$ //$NON-NLS-2$
+ }
if (level == 4) {
- out.append("\n====<span" + getId(packageableElement) + ">" + ((Package) packageableElement).getName() + "</span>====");} //$NON-NLS-1$ //$NON-NLS-2$
+ out.append("\n====<span" + getId(packageableElement) + ">" + ((Package) packageableElement).getName() + "</span>===="); //$NON-NLS-1$ //$NON-NLS-2$
+ }
}
@@ -110,7 +130,7 @@ public class WikiTranscription implements ITranscription {
@Override
public void writeParagraph(StringBuffer out, Element packageableElement) {
- out.append("\n<span" + getId(packageableElement)+ ">" + ((Comment) packageableElement).getBody() + "</span>"); //$NON-NLS-1$
+ out.append("\n<span" + getId(packageableElement) + ">" + ((Comment) packageableElement).getBody() + "</span>"); //$NON-NLS-1$
}
@@ -119,12 +139,12 @@ public class WikiTranscription implements ITranscription {
return "DeveloperDoc.mediawiki"; //$NON-NLS-1$
}
-
+
/**
* @return
*/
public String getId(Element packageableElement) {
- String packageableElementtFragment = ((XMIResource)packageableElement.eResource()).getID(packageableElement);
+ String packageableElementtFragment = ((XMIResource) packageableElement.eResource()).getID(packageableElement);
String id = " id=\"" + packageableElementtFragment + "\"";
return id;
}
@@ -140,8 +160,8 @@ public class WikiTranscription implements ITranscription {
public void writeTable(StringBuffer out, String tableCaption) {
out.append("\n{| border=\"1\" cellpadding=\"20\" cellspacing=\"0\"\n");
out.append("!ID\n");
- out.append("!Satisfy by\n");
- out.append("!Verify by");
+ out.append("!Satisfied by\n");
+ out.append("!Verified by");
}
@@ -155,13 +175,13 @@ public class WikiTranscription implements ITranscription {
@Override
public void writeLine(StringBuffer out, String uri, String requirementName, String text) {
if (uri.equals("")) {
- out.append(text);
+ out.append(text);
} else {
- out.append("[[#" + uri + "|" + text + "]]");
- }
-
+ out.append("[[#" + uri + "|" + text + "]]");
+ }
+
}
-
+
/**
* @see org.eclipse.papyrus.uml.developper.mde.transcription.ITranscription#writeNewLine(java.lang.StringBuffer)
*
@@ -170,7 +190,7 @@ public class WikiTranscription implements ITranscription {
@Override
public void writeNewLine(StringBuffer out) {
out.append("\n");
-
+
}
@@ -193,7 +213,7 @@ public class WikiTranscription implements ITranscription {
@Override
public void writeEndTRTag(StringBuffer out) {
// TODO Auto-generated method stub
-
+
}
@@ -227,7 +247,7 @@ public class WikiTranscription implements ITranscription {
@Override
public void writeEndTDTag(StringBuffer out) {
out.append("\n");
-
+
}
@@ -241,10 +261,10 @@ public class WikiTranscription implements ITranscription {
@Override
public void writeRefContent(StringBuffer out, String uri, String requirementName, String reqID) {
if (uri.equals("")) {
- out.append(reqID);
+ out.append(reqID);
} else {
- out.append("[[#" + uri + "|" + reqID + "]]");
- }
+ out.append("[[#" + uri + "|" + reqID + "]]");
+ }
}
@@ -256,7 +276,7 @@ public class WikiTranscription implements ITranscription {
@Override
public void writeBeginParagraph(StringBuffer out) {
out.append("\n<span>");
-
+
}
@@ -268,7 +288,7 @@ public class WikiTranscription implements ITranscription {
@Override
public void writeEndingParagraph(StringBuffer out) {
out.append("</span>\n");
-
+
}
@@ -297,7 +317,7 @@ public class WikiTranscription implements ITranscription {
*/
@Override
public void writeTOCSubSection(StringBuffer out, String subSectionName, String uri) {
- out.append("\n::[[#" + uri + "|" + subSectionName + "]]");
+ out.append("\n::[[#" + uri + "|" + subSectionName + "]]");
}
@@ -309,7 +329,7 @@ public class WikiTranscription implements ITranscription {
@Override
public void writeBeginTOC(StringBuffer out) {
// TODO Auto-generated method stub
-
+
}
@@ -321,7 +341,7 @@ public class WikiTranscription implements ITranscription {
@Override
public void writeEndTOC(StringBuffer out) {
// TODO Auto-generated method stub
-
+
}
diff --git a/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/utils/TransactionPrecommitExecutor.java b/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/utils/TransactionPrecommitExecutor.java
index 05d55bc153e..75df6652d6c 100644
--- a/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/utils/TransactionPrecommitExecutor.java
+++ b/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/utils/TransactionPrecommitExecutor.java
@@ -84,7 +84,18 @@ class TransactionPrecommitExecutor implements Executor, TransactionalEditingDoma
@Override
public void transactionStarted(TransactionalEditingDomainEvent event) {
- writeActive.set(!event.getTransaction().isReadOnly());
+ // We should only attempt to record triggers in a transaction that has triggers enabled.
+ // In particular, unprotected writes are in an otherwise read-only context and should be
+ // treated as such
+ final Transaction transaction = event.getTransaction();
+ writeActive.set(!transaction.isReadOnly() && hasTriggersEnabled(transaction));
+ }
+
+ private boolean hasTriggersEnabled(Transaction transaction) {
+ final Map<?, ?> options = transaction.getOptions();
+ return !Boolean.TRUE.equals(options.get(Transaction.OPTION_UNPROTECTED))
+ && !Boolean.TRUE.equals(options.get(Transaction.OPTION_NO_TRIGGERS))
+ && !Boolean.TRUE.equals(options.get(Transaction.OPTION_IS_UNDO_REDO_TRANSACTION));
}
@Override
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/databinding/ModelStyleSheetObservableList.java b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/databinding/ModelStyleSheetObservableList.java
index 7594aad37ab..1b3a7028b62 100644
--- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/databinding/ModelStyleSheetObservableList.java
+++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/databinding/ModelStyleSheetObservableList.java
@@ -7,7 +7,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- * Mickaël Adam (ALL4TEC) mickael.adam@all4tec.net - Initial API and implementation
+ * Micka�l Adam (ALL4TEC) mickael.adam@all4tec.net - Initial API and implementation
*
*****************************************************************************/
package org.eclipse.papyrus.infra.gmfdiag.css.properties.databinding;
@@ -16,17 +16,21 @@ import java.util.Collection;
import java.util.List;
import org.eclipse.core.databinding.observable.IChangeListener;
+import org.eclipse.emf.common.command.AbstractCommand;
import org.eclipse.emf.common.command.Command;
import org.eclipse.emf.common.command.CompoundCommand;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.emf.transaction.RecordingCommand;
import org.eclipse.emf.transaction.TransactionalEditingDomain;
import org.eclipse.gmf.runtime.notation.EObjectListValueStyle;
import org.eclipse.papyrus.infra.emf.databinding.EMFObservableList;
+import org.eclipse.papyrus.infra.gmfdiag.css.engine.ExtendedCSSEngine;
+import org.eclipse.papyrus.infra.gmfdiag.css.engine.ModelCSSEngine;
import org.eclipse.papyrus.infra.gmfdiag.css.notation.CSSDiagram;
+import org.eclipse.papyrus.infra.gmfdiag.css.resource.CSSNotationResource;
import org.eclipse.papyrus.infra.gmfdiag.css.stylesheets.ModelStyleSheets;
@@ -43,7 +47,7 @@ public class ModelStyleSheetObservableList extends EMFObservableList implements
private Resource notationResource;
/** The domain. */
- private EditingDomain domain;
+ private TransactionalEditingDomain domain;
/** The listener. */
private CustomModelStyleSheetListener listener;
@@ -62,7 +66,7 @@ public class ModelStyleSheetObservableList extends EMFObservableList implements
* @param feature
* the feature
*/
- public ModelStyleSheetObservableList(Resource notationResource, List<?> wrappedList, EditingDomain domain, EObject source, EStructuralFeature feature) {
+ public ModelStyleSheetObservableList(Resource notationResource, List<?> wrappedList, TransactionalEditingDomain domain, EObject source, EStructuralFeature feature) {
super(wrappedList, domain, source, feature);
this.notationResource = notationResource;
this.domain = domain;
@@ -81,8 +85,69 @@ public class ModelStyleSheetObservableList extends EMFObservableList implements
@Override
public Command getAddAllCommand(Collection<?> values) {
CompoundCommand compoundCommand = new CompoundCommand();
+
+ if (source.eResource() == null) {
+ compoundCommand.append(new RecordingCommand(domain, "Create ModelStylesheet") {
+ /**
+ * @see org.eclipse.emf.transaction.RecordingCommand#doExecute()
+ *
+ */
+ @Override
+ protected void doExecute() {
+ notationResource.getContents().add(source);
+ }
+
+ });
+
+ compoundCommand.append(new AbstractCommand("Initialize ModelCSSEngine Adapter") {
+
+ public void redo() {
+ execute();
+ }
+
+ public void execute() {
+ ExtendedCSSEngine engine = CSSNotationResource.getEngine(notationResource);
+ if (engine instanceof ModelCSSEngine) {
+ ((ModelCSSEngine) engine).initAdapter();
+ }
+ }
+
+ /**
+ * @see org.eclipse.emf.common.command.AbstractCommand#canUndo()
+ *
+ * @return
+ */
+ @Override
+ public boolean canUndo() {
+ return true;
+ }
+
+ /**
+ * @see org.eclipse.emf.common.command.AbstractCommand#undo()
+ *
+ */
+ @Override
+ public void undo() {
+ ExtendedCSSEngine engine = CSSNotationResource.getEngine(notationResource);
+ if (engine instanceof ModelCSSEngine) {
+ ((ModelCSSEngine) engine).disposeAdapter();
+ }
+ }
+
+ /**
+ * @see org.eclipse.emf.common.command.AbstractCommand#prepare()
+ *
+ * @return
+ */
+ @Override
+ protected boolean prepare() {
+ return true;
+ }
+ });
+ }
+
compoundCommand.append(super.getAddAllCommand(values));
- compoundCommand.append(new AddAllModelStyleSheetCommand((TransactionalEditingDomain) domain, notationResource, values));
+ compoundCommand.append(new AddAllModelStyleSheetCommand(domain, notationResource, values));
return compoundCommand;
}
@@ -111,8 +176,8 @@ public class ModelStyleSheetObservableList extends EMFObservableList implements
for (Object styleSheetReference : ((EObjectListValueStyle) objectFromDiagram).getEObjectListValue()) {
// If the current style sheet to delete from model exist on a diagram, add it on the root
if (value == styleSheetReference) {
- compoundCommand.append(new RemoveObjectCommand((TransactionalEditingDomain) domain, (EObject) styleSheetReference));
- compoundCommand.append(new AddModelStyleSheetCommand((TransactionalEditingDomain) domain, notationResource, (EObject) styleSheetReference));
+ compoundCommand.append(new RemoveObjectCommand(domain, (EObject) styleSheetReference));
+ compoundCommand.append(new AddModelStyleSheetCommand(domain, notationResource, (EObject) styleSheetReference));
}
}
}
@@ -132,7 +197,7 @@ public class ModelStyleSheetObservableList extends EMFObservableList implements
*/
@Override
public Command getRemoveAllCommand(Collection<?> values) {
- return new RemoveAllModelStyleSheetValueCommand((TransactionalEditingDomain) domain, notationResource, values);
+ return new RemoveAllModelStyleSheetValueCommand(domain, notationResource, values);
}
/**
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/modelelement/CSSModelElement.java b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/modelelement/CSSModelElement.java
index df00838d2fb..7c59a7a3920 100644
--- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/modelelement/CSSModelElement.java
+++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties/src/org/eclipse/papyrus/infra/gmfdiag/css/properties/modelelement/CSSModelElement.java
@@ -17,21 +17,18 @@ import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
import org.eclipse.gmf.runtime.notation.Diagram;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.papyrus.infra.gmfdiag.css.engine.ExtendedCSSEngine;
-import org.eclipse.papyrus.infra.gmfdiag.css.engine.ModelCSSEngine;
import org.eclipse.papyrus.infra.gmfdiag.css.notation.CSSDiagram;
import org.eclipse.papyrus.infra.gmfdiag.css.notation.CSSStyles;
-import org.eclipse.papyrus.infra.gmfdiag.css.properties.Activator;
import org.eclipse.papyrus.infra.gmfdiag.css.properties.creation.StyleSheetFactory;
import org.eclipse.papyrus.infra.gmfdiag.css.properties.databinding.DiagramStyleSheetObservableList;
import org.eclipse.papyrus.infra.gmfdiag.css.properties.databinding.ModelStyleSheetObservableList;
import org.eclipse.papyrus.infra.gmfdiag.css.properties.provider.CSSStyleSheetContentProvider;
import org.eclipse.papyrus.infra.gmfdiag.css.properties.provider.CSSStyleSheetLabelProvider;
import org.eclipse.papyrus.infra.gmfdiag.css.provider.CSSClassContentProvider;
-import org.eclipse.papyrus.infra.gmfdiag.css.resource.CSSNotationResource;
import org.eclipse.papyrus.infra.gmfdiag.css.stylesheets.ModelStyleSheets;
import org.eclipse.papyrus.infra.gmfdiag.css.stylesheets.StylesheetsFactory;
import org.eclipse.papyrus.infra.gmfdiag.css.stylesheets.StylesheetsPackage;
@@ -70,7 +67,7 @@ public class CSSModelElement extends CustomStyleModelElement {
@Override
public IObservable doGetObservable(String propertyPath) {
if (CSSStyles.CSS_DIAGRAM_STYLESHEETS_KEY.equals(propertyPath)) {
- if (source instanceof View){
+ if (source instanceof View) {
return new DiagramStyleSheetObservableList((View) source, domain, propertyPath);
}
}
@@ -85,28 +82,8 @@ public class CSSModelElement extends CustomStyleModelElement {
// The model styleSheet
final ModelStyleSheets modelStyleSheetsSource = modelStyleSheetObject instanceof ModelStyleSheets ? (ModelStyleSheets) modelStyleSheetObject : StylesheetsFactory.eINSTANCE.createModelStyleSheets();
// If the modelStylesheet doesn't exist
- if (!(modelStyleSheetObject instanceof ModelStyleSheets)) {
- try {
- org.eclipse.papyrus.infra.core.sasheditor.di.contentprovider.utils.TransactionHelper.run(domain, new Runnable() {
- public void run() {
- // Add modelStylesheet to the resource without command
- notationResource.getContents().add(modelStyleSheetsSource);
- }
- });
- } catch (Exception e) {
- Activator.log.error(e);
- }
- // Initialize the adapter of the engine to listen model styleSheet
- if (notationResource instanceof CSSNotationResource ){
- ExtendedCSSEngine engine = ((CSSNotationResource) notationResource).getModelEngine();
-
- if (engine instanceof ModelCSSEngine) {
- ((ModelCSSEngine) engine).initAdapter();
- }
- }
- }
- return new ModelStyleSheetObservableList(notationResource, modelStyleSheetsSource.getStylesheets(), domain, modelStyleSheetsSource, StylesheetsPackage.Literals.MODEL_STYLE_SHEETS__STYLESHEETS);
+ return new ModelStyleSheetObservableList(notationResource, modelStyleSheetsSource.getStylesheets(), (TransactionalEditingDomain) domain, modelStyleSheetsSource, StylesheetsPackage.Literals.MODEL_STYLE_SHEETS__STYLESHEETS);
}
return super.doGetObservable(propertyPath);
}
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src/org/eclipse/papyrus/infra/gmfdiag/css/dom/GMFElementAdapter.java b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src/org/eclipse/papyrus/infra/gmfdiag/css/dom/GMFElementAdapter.java
index e794b18a870..57d55f86b4a 100644
--- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src/org/eclipse/papyrus/infra/gmfdiag/css/dom/GMFElementAdapter.java
+++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src/org/eclipse/papyrus/infra/gmfdiag/css/dom/GMFElementAdapter.java
@@ -66,7 +66,12 @@ import org.w3c.dom.NodeList;
public class GMFElementAdapter extends ElementAdapter implements NodeList, IChangeListener, StatefulView, IAdaptable {
/**
- *
+ * Non-null, non-empty string, to match "any non-null value" in attribute selectors (e.g. [type])
+ */
+ public static final String EMPTY_VALUE = " "; // Non-null, non-empty string
+
+ /**
+ *
*/
protected static final String KIND = "kind"; //$NON-NLS-1$
@@ -219,7 +224,7 @@ public class GMFElementAdapter extends ElementAdapter implements NodeList, IChan
/**
* I provide adapters for
- *
+ *
* <ul>
* <li>{@link Diagram} - the diagram containing my {@linkplain #getNotationElement() notation element}</li>
* </ul>
@@ -473,7 +478,8 @@ public class GMFElementAdapter extends ElementAdapter implements NodeList, IChan
}
if (feature instanceof EReference && value instanceof ENamedElement) {
- return ((ENamedElement) value).getName();
+ String name = ((ENamedElement) value).getName();
+ return name == null || name.isEmpty() ? EMPTY_VALUE : name; // Bug 467716: Never return null if the value is not null
}
// Standard case. For EObject values, it might be better to return null than a random label...
@@ -546,20 +552,20 @@ public class GMFElementAdapter extends ElementAdapter implements NodeList, IChan
/*
* <--------------------
- *
+ *
* //Allows both notations Class > Property and Class > Compartment > Property
- *
+ *
* //FIXME: The Tree is computed through "getParentNode". "getChildren" is barely used. Moreover,
* //there is a mapping between Notation element and DOM element, which makes it impossible to associate the same
* //notation element to different DOM elements.
- *
+ *
* // for(EObject child : notationElement.eContents()) {
* // if(child instanceof BasicCompartment) {
* // //Add the Compartment's children to this' children
* // childList.addAll(Arrays.asList(computeChildren((View)child, engine)));
* // }
* // }
- *
+ *
* -------------------->
*/
@@ -722,7 +728,7 @@ public class GMFElementAdapter extends ElementAdapter implements NodeList, IChan
/*
* (non-Javadoc)
- *
+ *
* @see org.eclipse.papyrus.infra.gmfdiag.css.notation.StatefulView#addStates(java.util.Set)
*/
@Override
@@ -735,7 +741,7 @@ public class GMFElementAdapter extends ElementAdapter implements NodeList, IChan
/*
* (non-Javadoc)
- *
+ *
* @see org.eclipse.papyrus.infra.gmfdiag.css.notation.StatefulView#removeStates(java.util.Set)
*/
@Override
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src/org/eclipse/papyrus/infra/gmfdiag/css/engine/ModelCSSEngine.java b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src/org/eclipse/papyrus/infra/gmfdiag/css/engine/ModelCSSEngine.java
index 2958bd4cc07..89a6695c0c6 100644
--- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src/org/eclipse/papyrus/infra/gmfdiag/css/engine/ModelCSSEngine.java
+++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css/src/org/eclipse/papyrus/infra/gmfdiag/css/engine/ModelCSSEngine.java
@@ -86,6 +86,21 @@ public class ModelCSSEngine extends ExtendedCSSEngineImpl {
}
}
+ /**
+ * Disposes the adapter attached to model styleSheet.
+ *
+ */
+ public void disposeAdapter() {
+ for (EObject eObject : model.getContents()) {
+ if (eObject instanceof ModelStyleSheets) {
+ ModelStyleSheets styleSheets = (ModelStyleSheets) eObject;
+ styleSheets.eAdapters().remove(adapter);
+ for (StyleSheet styleSheet : styleSheets.getStylesheets()) {
+ styleSheet.eAdapters().remove(adapter);
+ }
+ }
+ }
+ }
private static ExtendedCSSEngine getParentCSSEngine(Resource resource) {
ExtendedCSSEngine result;
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext/.launch/Generate Language Infrastructure (org.eclipse.papyrus.infra.gmfdiag.css3.xtext).launch b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext/.launch/Generate Language Infrastructure (org.eclipse.papyrus.infra.gmfdiag.css3.xtext).launch
index cbaa7fa655c..5b82a779f81 100644
--- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext/.launch/Generate Language Infrastructure (org.eclipse.papyrus.infra.gmfdiag.css3.xtext).launch
+++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext/.launch/Generate Language Infrastructure (org.eclipse.papyrus.infra.gmfdiag.css3.xtext).launch
@@ -7,10 +7,6 @@
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
-<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
-<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
-</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="src/org/eclipse/papyrus/infra/gmfdiag/css3/GenerateCSS.mwe2"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.papyrus.infra.gmfdiag.css3.xtext"/>
diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext/.launch/Launch Runtime Eclipse.launch b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext/.launch/Launch Runtime Eclipse.launch
index ade8fbbce35..f64617deb4f 100644
--- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext/.launch/Launch Runtime Eclipse.launch
+++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext/.launch/Launch Runtime Eclipse.launch
@@ -1,34 +1,30 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench">
-<booleanAttribute key="append.args" value="true"/>
-<booleanAttribute key="askclear" value="true"/>
-<booleanAttribute key="automaticAdd" value="true"/>
-<booleanAttribute key="automaticValidate" value="false"/>
-<stringAttribute key="bad_container_name" value="/org.eclipse.papyrus.infra.gmfdiag.css3.xtext/.launch/"/>
-<stringAttribute key="bootstrap" value=""/>
-<stringAttribute key="checked" value="[NONE]"/>
-<booleanAttribute key="clearConfig" value="false"/>
-<booleanAttribute key="clearws" value="false"/>
-<booleanAttribute key="clearwslog" value="false"/>
-<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/Launch Runtime Eclipse"/>
-<booleanAttribute key="default" value="true"/>
-<booleanAttribute key="includeOptional" value="true"/>
-<stringAttribute key="location" value="${workspace_loc}/../runtime-EclipseXtext"/>
-<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
-<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
-</listAttribute>
-<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}"/>
-<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xms40m -Xmx512m -XX:MaxPermSize=256m"/>
-<stringAttribute key="pde.version" value="3.3"/>
-<stringAttribute key="product" value="org.eclipse.platform.ide"/>
-<booleanAttribute key="show_selected_only" value="false"/>
-<stringAttribute key="templateConfig" value="${target_home}/configuration/config.ini"/>
-<booleanAttribute key="tracing" value="false"/>
-<booleanAttribute key="useDefaultConfig" value="true"/>
-<booleanAttribute key="useDefaultConfigArea" value="true"/>
-<booleanAttribute key="useProduct" value="true"/>
-<booleanAttribute key="usefeatures" value="false"/>
-</launchConfiguration>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench">
+<booleanAttribute key="append.args" value="true"/>
+<booleanAttribute key="askclear" value="true"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bad_container_name" value="/org.eclipse.papyrus.infra.gmfdiag.css3.xtext/.launch/"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="false"/>
+<booleanAttribute key="clearws" value="false"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/Launch Runtime Eclipse"/>
+<booleanAttribute key="default" value="true"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../runtime-EclipseXtext"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xms40m -Xmx512m -XX:MaxPermSize=256m"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="org.eclipse.platform.ide"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<stringAttribute key="templateConfig" value="${target_home}/configuration/config.ini"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="true"/>
+<booleanAttribute key="useProduct" value="true"/>
+<booleanAttribute key="usefeatures" value="false"/>
+</launchConfiguration>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/DeveloperDoc.html b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/DeveloperDoc.html
deleted file mode 100644
index c2d6193d083..00000000000
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/DeveloperDoc.html
+++ /dev/null
@@ -1 +0,0 @@
-<html><link rel="stylesheet" href="default.css" type="text/css"><H1>Synchronize automatically between views element with related model element in the model</H1><P>The goal is to enable a strong synchronization between visual elements displayed in the diagram with elements contained in the model. <BR/>This mechanism can be added locally for each element by using CSS. <BR/>For example, you would like to see: <BR/>- synchronize compartment of enumeration literal for all enumeration. <BR/>- synchronize compartment of attributes and operation for all class stereotyped …. <BR/>This fucntionality is associated to the task 433206. <BR/></P><H2>Requirements</H2><P>- LocalSynchronization (id=Req001): <BR/> The synchronization shall be local for each graphical element for example: package compartment, attribute compartment...</P><P>- CSSIntegration (id=Req002): <BR/> The synchronization shall be parameterized by CSS, by using a keyword and a value.</P><P>- CustomSynchronization (id=Req003): <BR/> For an graphical element, it shall be possible to custom the synchonization</P><H2>Use Cases</H2><P align="middle"><img src=C:/git/org.eclipse.papyrus/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.synchronizeview/imgDOC/UseCaseDiagram.png alt=UseCaseDiagram ></P><P align="middle">UseCaseDiagram</P><H3>Add an element in the model</H3><P>When an user adds an element in the model, the synchronization mechanism try to add in the current diagram the view that correspond to the semantic element <BR/>The difficulty of this mechanism is to parameter the synchronization. <BR/>By default, the synchronizatiopn is based on ' owned element'role. When you add an element, the graphical element that correponds to the owner try to display it in the diagram. <BR/>But some cases are not interesting. For example in the composite diagram, displaying parts in part correspond to part of the type, not directly part of part.</P><H3>Move an element</H3><P>When a element is moved, the synchronization mechanism must to create graphically the element to each diagram. <BR/></P><H3>Set synchronization enable</H3><P>The user can set enable the synchronization for a set of graphical elements. <BR/></P><H3>Remove an element from the model</H3><P>When the element is removed, the corresponding graphical element must be removed.</P><H2>Design</H2><P align="middle"><img src=C:/git/org.eclipse.papyrus/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.synchronizeview/imgDOC/ArchitectureOverview.png alt=ArchitectureOverview ></P><P align="middle">ArchitectureOverview</P><P>The desing consists into one plugin org.eclipse.papyrus.uml.diagram.synchronizeview. <BR/>I contains a editpolicy provider and an extension point</P><P align="middle"><img src=C:/git/org.eclipse.papyrus/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.synchronizeview/imgDOC/Structure.png alt=Structure ></P><P align="middle">Structure</P><P>The edit policy SynchronizeViewEdipolicty is installed by the SynchronizeEditPolicyProvider on: <BR/> - DiagramEditPart (to synchronize content of diagram) <BR/> - CompartmentEditPart (to synchronize content of compartment) <BR/> - IBorderedShapeEditPart (to synchronize content of borderedElement as port....) <BR/> <BR/>ThisEditPolicy is used to allowing synchronization between graphical element and element in the model <BR/> It is based on canonical editpolicy but it has several differencies: <BR/> - View Service cannot be called. To call it we need to get the identifier of the child that could be place in compartment. I is not possible to find in a generic way <BR/> --> link to each Diagram Updater, and moreover some child has been created by custom code. In fact, the hierarchy of visual element must follow the hierachy of semantic element. <BR/> --> this is not the case so the Diagram updater generated from the gmfgen has not the good info. <BR/> <BR/>So to an extension point has been added to let the developer to specify semantic element that play children of a given editpart: <BR/> see the example: <BR/><extension <BR/> point="org.eclipse.papyrus.uml.diagram.synchronizeview.semanticchild"> <BR/> <semanticChild <BR/> editPart="org.eclipse.papyrus.uml.diagram.composite.edit.parts.PropertyPartCompartmentEditPartCN" <BR/> getSemanticChildren="org.eclipse.papyrus.uml.diagram.composite.SynchroSemanticForPopertyPartCompartment"> <BR/> </semanticChild> <BR/></extension <BR/> <BR/>The editpolicy try to refresh visual element. To do that it calls the method getSemanticChildrenList(). I llokf for accoss the extesnison point the corresponding 'SemantiChild' with the highest priority. <BR/>This object give the list of sementic element that could be children of the context of the given editpart. <BR/> <BR/>In the context of part, in the composite diagram, we can describe that children are ownedlement of the type of the part. <BR/> <BR/>Finally to allow the creation we base our work on the mechanism of the drop. (refreshSemanticChildrenByDrop)</P><P>In order to install synchronization on element, views must have canonical style. So a migration is needed. <BR/>BasicCompartment becomes Compartment <BR/>Diagram and Shape mst have a style: so we need to add : <BR/> CanonicalStyle canonicalStyle=(CanonicalStyle)diagram.createStyle(NotationPackage.eINSTANCE.getCanonicalStyle()); <BR/> canonicalStyle.setCanonical(false);</P></html> \ No newline at end of file
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/DeveloperDoc.html b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/DeveloperDoc.html
new file mode 100644
index 00000000000..b197f178d08
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/DeveloperDoc.html
@@ -0,0 +1,92 @@
+<html>
+<link rel="stylesheet" href="default.css" type="text/css">
+<H1>Canonical Diagram Views</H1>
+<pre id ="_xz8WAAPBEeW8nIkIujhtCA">The goal is to enable a strong synchronization between visual elements displayed in the diagram with elements contained in the model. <BR/>This mechanism can be added locally for each element by using CSS. <BR/>For example, you would like to see: <BR/>- synchronize compartment of enumeration literal for all enumeration. <BR/>- synchronize compartment of attributes and operation for all class stereotyped …. <BR/>This functionality is associated to the task 433206. <BR/></pre>
+<H2 id ="_xz9kIQPBEeW8nIkIujhtCA">Table of Contents</H2>
+<ul><a href="#_xz_ZUAPBEeW8nIkIujhtCA">Requirements</a></ul>
+<ul><a href="#_x0E44APBEeW8nIkIujhtCA">Use Cases</a><li><a href="#_x0yDgQPBEeW8nIkIujhtCA"> Synchronization</a></li>
+<ul><li><a href="#_x0zRoQPBEeW8nIkIujhtCA"> Add an element in the model</a></li>
+<ul></ul>
+<li><a href="#_x02U8QPBEeW8nIkIujhtCA"> Move an element</a></li>
+<ul></ul>
+<li><a href="#_x05YQAPBEeW8nIkIujhtCA"> Set synchronization enable</a></li>
+<ul></ul>
+<li><a href="#_x08bkQPBEeW8nIkIujhtCA"> Remove an element from the model</a></li>
+<ul></ul>
+</ul>
+</ul>
+<ul><a href="#_x0_e4QPBEeW8nIkIujhtCA">Design</a><li><a href="#_x363EQPBEeW8nIkIujhtCA"> Plugin org.eclipse.papyrus.infra.gmfdiag.canonical</a></li>
+<ul></ul>
+<li><a href="#_x38FMQPBEeW8nIkIujhtCA"> Plugin org.eclipse.ui</a></li>
+<ul></ul>
+<li><a href="#_x39TUAPBEeW8nIkIujhtCA"> Plugin org.eclipse.core.runtime</a></li>
+<ul></ul>
+<li><a href="#_x396YQPBEeW8nIkIujhtCA"> Plugin org.eclipse.emf.common</a></li>
+<ul></ul>
+<li><a href="#_x3_IgQPBEeW8nIkIujhtCA"> Plugin org.eclipse.emf.ecore</a></li>
+<ul></ul>
+<li><a href="#_x3_vkQPBEeW8nIkIujhtCA"> Plugin org.eclipse.gef</a></li>
+<ul></ul>
+<li><a href="#_x4A9sQPBEeW8nIkIujhtCA"> Plugin org.eclipse.gmf.runtime.diagram.ui</a></li>
+<ul></ul>
+<li><a href="#_x4BkwQPBEeW8nIkIujhtCA"> Plugin org.eclipse.uml2.uml</a></li>
+<ul></ul>
+<li><a href="#_x4Cy4QPBEeW8nIkIujhtCA"> Plugin org.eclipse.papyrus.infra.core</a></li>
+<ul></ul>
+<li><a href="#_x4EBAAPBEeW8nIkIujhtCA"> Plugin org.eclipse.papyrus.infra.gmfdiag.common</a></li>
+<ul></ul>
+<li><a href="#_x4EoEQPBEeW8nIkIujhtCA"> Plugin org.eclipse.gmf.tooling.runtime</a></li>
+<ul></ul>
+<li><a href="#_x4F2MAPBEeW8nIkIujhtCA"> Plugin org.eclipse.papyrus.infra.core.log</a></li>
+<ul></ul>
+</ul>
+<ul><a href="#_x4GdQQPBEeW8nIkIujhtCA">Tests</a></ul>
+<ul><a href="#_x4HrYAPBEeW8nIkIujhtCA">Requirements Coverage</a></ul>
+<H2 id ="_xz_ZUAPBEeW8nIkIujhtCA">Requirements</H2>
+<pre id ="_x0AncQPBEeW8nIkIujhtCA">- LocalSynchronization (id=Req001): <BR/> The synchronization shall be local for each graphical element for example: package compartment, attribute compartment...</pre>
+<pre id ="_x0B1kQPBEeW8nIkIujhtCA">- CSSIntegration (id=Req002): <BR/> The synchronization shall be parameterized by CSS, by using a keyword and a value.</pre>
+<pre id ="_x0DDsQPBEeW8nIkIujhtCA">- CustomSynchronization (id=Req003): <BR/> For an graphical element, it shall be possible to custom the synchonization</pre>
+<H2 id ="_x0E44APBEeW8nIkIujhtCA">Use Cases</H2>
+<P align="middle"><img src=/Users/damus/git/Papyrus/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/imgDOC/UseCaseDiagram.png alt=UseCaseDiagram ></P><P align="middle">UseCaseDiagram</P></BR>
+<H3 id ="_x0yDgQPBEeW8nIkIujhtCA">Synchronization</H3>
+<H4 id ="_x0zRoQPBEeW8nIkIujhtCA">Add an element in the model</H4>
+<pre id ="_x01G0APBEeW8nIkIujhtCA">When an user adds an element in the model, the synchronization mechanism try to add in the current diagram the view that correspond to the semantic element <BR/>The difficulty of this mechanism is to parameter the synchronization. <BR/>By default, the synchronizatiopn is based on ' owned element'role. When you add an element, the graphical element that correponds to the owner try to display it in the diagram. <BR/>But some cases are not interesting. For example in the composite diagram, displaying parts in part correspond to part of the type, not directly part of part.</pre>
+<H4 id ="_x02U8QPBEeW8nIkIujhtCA">Move an element</H4>
+<pre id ="_x03jEQPBEeW8nIkIujhtCA">When a element is moved, the synchronization mechanism must to create graphically the element to each diagram. <BR/></pre>
+<H4 id ="_x05YQAPBEeW8nIkIujhtCA">Set synchronization enable</H4>
+<pre id ="_x06mYQPBEeW8nIkIujhtCA">The user can set enable the synchronization for a set of graphical elements. <BR/></pre>
+<H4 id ="_x08bkQPBEeW8nIkIujhtCA">Remove an element from the model</H4>
+<pre id ="_x0-QwQPBEeW8nIkIujhtCA">When the element is removed, the corresponding graphical element must be removed.</pre>
+<H2 id ="_x0_e4QPBEeW8nIkIujhtCA">Design</H2>
+<P align="middle"><img src=/Users/damus/git/Papyrus/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/imgDOC/ArchitectureOverview.png alt=ArchitectureOverview ></P><P align="middle">ArchitectureOverview</P></BR>
+<pre id ="_x2BZoQPBEeW8nIkIujhtCA">The design consists of one plugin org.eclipse.papyrus.infra.gmfdiag.canonical. <BR/>It contains an edit-policy provider and an extension point</pre>
+<P align="middle"><img src=/Users/damus/git/Papyrus/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/imgDOC/Structure.png alt=Structure ></P><P align="middle">Structure</P></BR>
+<pre id ="_x35B4QPBEeW8nIkIujhtCA">The edit policy PapyrusCanonicalEditPolicy is installed by the PapyrusCanonicalEditPolicyPolicy on any NodeEditPart that is a: <BR/> - DiagramEditPart (to synchronize content of diagram) <BR/> - CompartmentEditPart (to synchronize content of compartment) <BR/> - IBorderedShapeEditPart (to synchronize content of borderedElement as port....) <BR/> <BR/>This edit policy implements synchronization between graphical element and element in the model <BR/>It is based on GMF's CanonicalEditPolicy but it has several differences: <BR/> - View Service cannot be called. To call it we need to get the identifier of the child that could be place in compartment. It is not possible to find in a generic way <BR/> --> link to each Diagram Updater, and moreover some child has been created by custom code. In fact, the hierarchy of visual element must follow the hierachy of semantic element. <BR/> --> this is not the case so the Diagram updater generated from the gmfgen has not the good info. <BR/><BR/>So, the drag-and-drop support (drop edit policy) of the diagram is used to effect the creation of canonical views. To by-pass the Papyrus strategy-based<BR/>customizable drag-and-drop implementation, the DropObjectsRequest is wrapped in a CanonicalDropObjectsRequest to pass through the customizable<BR/>drop edit policy.<BR/> <BR/>An extension point is defined that lets diagram plug-ins contribute strategies for determination of<BR/> - what semantic elements should be shown as child nodes or attached edges of the host node<BR/> - which child views and attached edges are existing views of canonical elements<BR/> - on which related edit-part should a semantic element be dropped to create its canonical view<BR/> <BR/>When requested to refresh the visuals of its host edit-part, the canonical edit-policy iterates registered semantic-children strategies in priority order<BR/>to determine the semantic elements that need to be visualized as children and as edges. These are compared against views that already exist, as<BR/>provided by registered visual-children strategies. Any views that need to be created are created by drag-and-drop onto the target edit-part provided<BR/>by the registered creation-target strategies. All strategies are registered with priorities, either against a specific edit-part implementation class or<BR/>with an XML enablement expression that matches by edit-part, notation view, or semantic element (or some combination of all three). All strategy<BR/>extension points also provide sensible defaults for the case where no registered strategy matches the particular scenario.</pre>
+<pre id ="_x36QAQPBEeW8nIkIujhtCA">Remarks: <BR/>As in the GMF Run-time (and expected by GMF), the PapyrusCanonicalEditPolicy is governed by the presence (either explicitly in the notation<BR/>model or via CSS) of the CanonicalStyle::canonical attribute. In CSS, this is inferred from the 'canonical' boolean attribute via generic support<BR/>for single-attribute styles. However, unlike the default GMF behaviour, the default canonical state for a view that does not have the style at all<BR/>is off, not on.<BR/><BR/>The canonical style is only needed on top graphical shapes. Compartments do not need the style; all compartments of a canonical shape in the<BR/>diagram are populated with canonical views, including shape compartments (e.g., package contents).<BR/><BR/>Canonical view creation is enabled only when the PapyrusCanonicalEditPolicy is in its fully active state. However, the edit policy also has a<BR/>semi-active state in which it will delete views for obsolete canonical children and edges, but not create new ones. In GEF terms, the edit<BR/>policy is 'active' when it is in this state.</pre>
+<H3 id ="_x363EQPBEeW8nIkIujhtCA">Plugin org.eclipse.papyrus.infra.gmfdiag.canonical</H3>
+<H3 id ="_x38FMQPBEeW8nIkIujhtCA">Plugin org.eclipse.ui</H3>
+<H3 id ="_x39TUAPBEeW8nIkIujhtCA">Plugin org.eclipse.core.runtime</H3>
+<H3 id ="_x396YQPBEeW8nIkIujhtCA">Plugin org.eclipse.emf.common</H3>
+<H3 id ="_x3_IgQPBEeW8nIkIujhtCA">Plugin org.eclipse.emf.ecore</H3>
+<H3 id ="_x3_vkQPBEeW8nIkIujhtCA">Plugin org.eclipse.gef</H3>
+<H3 id ="_x4A9sQPBEeW8nIkIujhtCA">Plugin org.eclipse.gmf.runtime.diagram.ui</H3>
+<H3 id ="_x4BkwQPBEeW8nIkIujhtCA">Plugin org.eclipse.uml2.uml</H3>
+<H3 id ="_x4Cy4QPBEeW8nIkIujhtCA">Plugin org.eclipse.papyrus.infra.core</H3>
+<H3 id ="_x4EBAAPBEeW8nIkIujhtCA">Plugin org.eclipse.papyrus.infra.gmfdiag.common</H3>
+<H3 id ="_x4EoEQPBEeW8nIkIujhtCA">Plugin org.eclipse.gmf.tooling.runtime</H3>
+<H3 id ="_x4F2MAPBEeW8nIkIujhtCA">Plugin org.eclipse.papyrus.infra.core.log</H3>
+<H2 id ="_x4GdQQPBEeW8nIkIujhtCA">Tests</H2>
+<H2 id ="_x4HrYAPBEeW8nIkIujhtCA">Requirements Coverage</H2>
+<table style="border-collapse: collapse;"><caption style="caption-side: bottom;">RequirementsCoverageTable</caption><tr><th style="border: 1px solid black">Id</th><th style="border: 1px solid black">Satisfied by</th><th style="border: 1px solid black">Verified by</th></tr>
+<tr><td style="border : 1px solid black"><a href="#_x0AncQPBEeW8nIkIujhtCA" title="LocalSynchronization">Req001</a><BR/>
+</td><td style="border : 1px solid black">org.eclipse.papyrus.infra.gmfdiag.canonical.editpolicy<BR/>
+</td><td style="border : 1px solid black"></td></tr>
+<tr><td style="border : 1px solid black"><a href="#_x0B1kQPBEeW8nIkIujhtCA" title="CSSIntegration">Req002</a><BR/>
+</td><td style="border : 1px solid black"></td><td style="border : 1px solid black"></td></tr>
+<tr><td style="border : 1px solid black"><a href="#_x0DDsQPBEeW8nIkIujhtCA" title="CustomSynchronization">Req003</a><BR/>
+</td><td style="border : 1px solid black">org.eclipse.papyrus.infra.gmfdiag.canonical.strategy<BR/>
+</td><td style="border : 1px solid black"></td></tr>
+</table>
+<pre id ="_x4IScgPBEeW8nIkIujhtCA">Unsatisfied requirements (1 out of 3) : </pre>
+<a href="#_x0B1kQPBEeW8nIkIujhtCA" title="CSSIntegration">Req002</a><pre id ="_x4I5gQPBEeW8nIkIujhtCA">Unverified requirements (3 out of 3) : </pre>
+<a href="#_x0AncQPBEeW8nIkIujhtCA" title="LocalSynchronization">Req001, </a><a href="#_x0B1kQPBEeW8nIkIujhtCA" title="CSSIntegration">Req002, </a><a href="#_x0DDsQPBEeW8nIkIujhtCA" title="CustomSynchronization">Req003</a></html>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/default.css b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/default.css
index a52509fd64b..df978c5d914 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/default.css
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/default.css
@@ -1,59 +1,59 @@
-/*
- * Style sheet for the CSS2 specification
- */
-
-body {
- padding: 2em 1em 2em 70px;
- margin: 0;
- font-family: sans-serif;
- color: black;
- background: white;
- background-position: top left;
- background-attachment: fixed;
- background-repeat: no-repeat;
-}
-
-
-p {
- margin-top: 0.6em;
- margin-bottom: 0.6em;
- margin-left: 2em;
-}
-
-h1, h2, h3, h4, h5, h6 { text-align: left }
-
-
-h1, h2, h3 { color: #005A9C; background: white }
-h1 { font: 170% sans-serif }
-h2 { font: 140% sans-serif }
-h3 { font: 120% sans-serif }
-h4 { font: bold 100% sans-serif }
-h5 { font: italic 100% sans-serif }
-h6 { font: small-caps 100% sans-serif }
-
-body{counter-reset: h1 h2 h3;}
-
-
-h2:before {
- content: counter(h2) " ";
- counter-increment: h2;
-}
-h3:before {
- content: counter(h2) "." counter(h3) " ";
- counter-increment: h3;
-}
-h1 {
- counter-reset: h2;
-}
-h2 {
- counter-reset: h3;
-}
-h1.unnumbered, h2.unnumbered {
- counter-reset: none;
-}
-h1.unnumbered:before,
-h2.unnumbered:before,
-h3.unnumbered:before{
- content: none;
- counter-increment: none;
-}
+/*
+ * Style sheet for the CSS2 specification
+ */
+
+body {
+ padding: 2em 1em 2em 70px;
+ margin: 0;
+ font-family: sans-serif;
+ color: black;
+ background: white;
+ background-position: top left;
+ background-attachment: fixed;
+ background-repeat: no-repeat;
+}
+
+
+p {
+ margin-top: 0.6em;
+ margin-bottom: 0.6em;
+ margin-left: 2em;
+}
+
+h1, h2, h3, h4, h5, h6 { text-align: left }
+
+
+h1, h2, h3 { color: #005A9C; background: white }
+h1 { font: 170% sans-serif }
+h2 { font: 140% sans-serif }
+h3 { font: 120% sans-serif }
+h4 { font: bold 100% sans-serif }
+h5 { font: italic 100% sans-serif }
+h6 { font: small-caps 100% sans-serif }
+
+body{counter-reset: h1 h2 h3;}
+
+
+h2:before {
+ content: counter(h2) " ";
+ counter-increment: h2;
+}
+h3:before {
+ content: counter(h2) "." counter(h3) " ";
+ counter-increment: h3;
+}
+h1 {
+ counter-reset: h2;
+}
+h2 {
+ counter-reset: h3;
+}
+h1.unnumbered, h2.unnumbered {
+ counter-reset: none;
+}
+h1.unnumbered:before,
+h2.unnumbered:before,
+h3.unnumbered:before{
+ content: none;
+ counter-increment: none;
+}
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/design.di b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/design.di
new file mode 100644
index 00000000000..bf9abab340f
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/design.di
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/design.notation b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/design.notation
new file mode 100644
index 00000000000..906aa71bf19
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/design.notation
@@ -0,0 +1,1603 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ADL4Eclipse="http:///schemas/ADL4Eclipse/_rk7nwOqKEeOfTcbrnCq2oQ/3" xmlns:configuration="http://www.eclipse.org/papyrus/infra/viewpoints/configuration" xmlns:css="http://www.eclipse.org/papyrus/infra/gmfdiag/css" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:nattable="http://www.eclipse.org/papyrus/nattable/model" xmlns:nattableaxis="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxis" xmlns:nattableaxisconfiguration="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisconfiguration" xmlns:nattableaxisprovider="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisprovider" xmlns:nattableconfiguration="http://www.eclipse.org/papyrus/nattable/model/nattableconfiguration" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/papyrus/infra/viewpoints/policy/style" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http:///schemas/ADL4Eclipse/_rk7nwOqKEeOfTcbrnCq2oQ/3 pathmap://ADL4ECLIPSE_PROFILES/adl4eclipse.profile.uml#_rlFYwOqKEeOfTcbrnCq2oQ http://www.eclipse.org/papyrus/nattable/model/table/nattableaxis http://www.eclipse.org/papyrus/nattable/model#//nattableaxis http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisconfiguration http://www.eclipse.org/papyrus/nattable/model#//nattableaxisconfiguration http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisprovider http://www.eclipse.org/papyrus/nattable/model#//nattableaxisprovider http://www.eclipse.org/papyrus/nattable/model/nattableconfiguration http://www.eclipse.org/papyrus/nattable/model#//nattableconfiguration">
+ <notation:Diagram xmi:id="_lNP40MbvEeO9CYUoXDRplw" type="PapyrusUMLClassDiagram" name="Overview" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_lNP40cbvEeO9CYUoXDRplw" type="2005">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_qRJl4AO0EeWytIRHPc2H8Q" source="PapyrusHyperLink_Page" references="_1PpFsMohEeO3DsHezUU9Sg">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qRJl4QO0EeWytIRHPc2H8Q" key="tooltip_text" value="RequirementTable"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qRJl4gO0EeWytIRHPc2H8Q" key="pageName" value="RequirementTable"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qRJl4wO0EeWytIRHPc2H8Q" key="is_default_navigation" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lNP40sbvEeO9CYUoXDRplw" type="5020"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lNP408bvEeO9CYUoXDRplw" type="7009">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_lNP41MbvEeO9CYUoXDRplw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lNP41cbvEeO9CYUoXDRplw"/>
+ </children>
+ <element xmi:type="uml:Model" href="design.uml#_lNLnYsbvEeO9CYUoXDRplw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lNP41sbvEeO9CYUoXDRplw" x="201" y="38"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_lNP418bvEeO9CYUoXDRplw" type="2005">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_swyREAO0EeWytIRHPc2H8Q" source="PapyrusHyperLink_Page" references="_Nf1kUMcbEeOenbI5XqwJvQ">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_swyREQO0EeWytIRHPc2H8Q" key="tooltip_text" value="UseCaseDiagram"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_swyREgO0EeWytIRHPc2H8Q" key="pageName" value="UseCaseDiagram"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_swyREwO0EeWytIRHPc2H8Q" key="is_default_navigation" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lNP42MbvEeO9CYUoXDRplw" type="5020"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lNP42cbvEeO9CYUoXDRplw" type="7009">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_lNP42sbvEeO9CYUoXDRplw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lNP428bvEeO9CYUoXDRplw"/>
+ </children>
+ <element xmi:type="uml:Model" href="design.uml#_lNLnY8bvEeO9CYUoXDRplw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lNP43MbvEeO9CYUoXDRplw" x="204" y="173" width="259" height="96"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_lNP43cbvEeO9CYUoXDRplw" type="2005">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_3VnsUAO1EeWytIRHPc2H8Q" source="PapyrusHyperLink_Page" references="_pUh7UMrhEeOada-BlHQh_Q">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_3VnsUQO1EeWytIRHPc2H8Q" key="tooltip_text" value="ArchitectureOverview"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_3VnsUgO1EeWytIRHPc2H8Q" key="pageName" value="ArchitectureOverview"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_3VnsUwO1EeWytIRHPc2H8Q" key="is_default_navigation" value="true"/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_5JmLYAO1EeWytIRHPc2H8Q" source="PapyrusHyperLink_Page" references="_xae5MM7bEeOkpJkbnruUGQ">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_5JmLYQO1EeWytIRHPc2H8Q" key="tooltip_text" value="Structure"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_5JmLYgO1EeWytIRHPc2H8Q" key="pageName" value="Structure"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_5JmLYwO1EeWytIRHPc2H8Q" key="is_default_navigation" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lNP43sbvEeO9CYUoXDRplw" type="5020"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lNP438bvEeO9CYUoXDRplw" type="7009">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_lNP44MbvEeO9CYUoXDRplw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lNP44cbvEeO9CYUoXDRplw"/>
+ </children>
+ <element xmi:type="uml:Model" href="design.uml#_lNLnZsbvEeO9CYUoXDRplw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lNP44sbvEeO9CYUoXDRplw" x="206" y="329"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_lNP448bvEeO9CYUoXDRplw" type="2005">
+ <children xmi:type="notation:DecorationNode" xmi:id="_lNP45MbvEeO9CYUoXDRplw" type="5020"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lNP45cbvEeO9CYUoXDRplw" type="7009">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_lNP45sbvEeO9CYUoXDRplw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lNP458bvEeO9CYUoXDRplw"/>
+ </children>
+ <element xmi:type="uml:Model" href="design.uml#_lNLnaMbvEeO9CYUoXDRplw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lNP46MbvEeO9CYUoXDRplw" x="635" y="324"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_gSwG8MofEeO3DsHezUU9Sg" type="2012">
+ <children xmi:type="notation:DecorationNode" xmi:id="_gSxVEMofEeO3DsHezUU9Sg" type="5038"/>
+ <element xmi:type="uml:Comment" href="design.uml#_gP184MofEeO3DsHezUU9Sg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_gSwuAMofEeO3DsHezUU9Sg" x="534" y="72" width="366" height="70"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_bstJMAOtEeWytIRHPc2H8Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bstJMQOtEeWytIRHPc2H8Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bstJMwOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Model" href="design.uml#_lNLnYsbvEeO9CYUoXDRplw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bstJMgOtEeWytIRHPc2H8Q" x="401" y="38"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_bs26MAOtEeWytIRHPc2H8Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bs26MQOtEeWytIRHPc2H8Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bs26MwOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Model" href="design.uml#_lNLnY8bvEeO9CYUoXDRplw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bs26MgOtEeWytIRHPc2H8Q" x="404" y="173"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_btH_8AOtEeWytIRHPc2H8Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_btH_8QOtEeWytIRHPc2H8Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_btH_8wOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Model" href="design.uml#_lNLnZsbvEeO9CYUoXDRplw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_btH_8gOtEeWytIRHPc2H8Q" x="406" y="329"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_btTmIAOtEeWytIRHPc2H8Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_btTmIQOtEeWytIRHPc2H8Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_btTmIwOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Model" href="design.uml#_lNLnaMbvEeO9CYUoXDRplw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_btTmIgOtEeWytIRHPc2H8Q" x="835" y="324"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_btelQAOtEeWytIRHPc2H8Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_btelQQOtEeWytIRHPc2H8Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_btelQwOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Comment" href="design.uml#_gP184MofEeO3DsHezUU9Sg"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_btelQgOtEeWytIRHPc2H8Q" x="734" y="72"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_lNP46cbvEeO9CYUoXDRplw"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_lNP46sbvEeO9CYUoXDRplw">
+ <owner xmi:type="uml:Model" href="design.uml#_lNLnYMbvEeO9CYUoXDRplw"/>
+ <configuration xmi:type="configuration:PapyrusDiagram" href="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#_7wLmpNxhEeOqHvRyiN87hA"/>
+ </styles>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_bp2CcAOtEeWytIRHPc2H8Q" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <element xmi:type="uml:Model" href="design.uml#_lNLnYMbvEeO9CYUoXDRplw"/>
+ <edges xmi:type="notation:Connector" xmi:id="_lNP468bvEeO9CYUoXDRplw" type="4006" source="_lNP418bvEeO9CYUoXDRplw" target="_lNP40cbvEeO9CYUoXDRplw">
+ <children xmi:type="notation:DecorationNode" xmi:id="_lNP47MbvEeO9CYUoXDRplw" visible="false" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lNP47cbvEeO9CYUoXDRplw" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lNP47sbvEeO9CYUoXDRplw" visible="false" type="6015">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lNP478bvEeO9CYUoXDRplw" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_lNP48MbvEeO9CYUoXDRplw"/>
+ <element xmi:type="uml:Abstraction" href="design.uml#_lNLnZMbvEeO9CYUoXDRplw"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_lNP48cbvEeO9CYUoXDRplw" points="[-2, -10, 8, 48]$[-27, -45, -17, 13]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lNP48sbvEeO9CYUoXDRplw" id="(0.305,0.1)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lNP488bvEeO9CYUoXDRplw" id="(0.27,0.87)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_lNP49MbvEeO9CYUoXDRplw" type="4006" source="_lNP43cbvEeO9CYUoXDRplw" target="_lNP418bvEeO9CYUoXDRplw">
+ <children xmi:type="notation:DecorationNode" xmi:id="_lNP49cbvEeO9CYUoXDRplw" visible="false" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lNP49sbvEeO9CYUoXDRplw" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lNP498bvEeO9CYUoXDRplw" visible="false" type="6015">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lNP4-MbvEeO9CYUoXDRplw" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_lNP4-cbvEeO9CYUoXDRplw"/>
+ <element xmi:type="uml:Abstraction" href="design.uml#_lNLnZ8bvEeO9CYUoXDRplw"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_lNP4-sbvEeO9CYUoXDRplw" points="[-9, -16, 0, 67]$[-24, -72, -15, 11]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lNP4-8bvEeO9CYUoXDRplw" id="(0.27,0.16)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lNP4_MbvEeO9CYUoXDRplw" id="(0.235,0.89)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_lNP4_cbvEeO9CYUoXDRplw" type="4008" source="_lNP448bvEeO9CYUoXDRplw" target="_lNP418bvEeO9CYUoXDRplw">
+ <children xmi:type="notation:DecorationNode" xmi:id="_lNP4_sbvEeO9CYUoXDRplw" visible="false" type="6026">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lNP4_8bvEeO9CYUoXDRplw" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lNP5AMbvEeO9CYUoXDRplw" visible="false" type="6027">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lNP5AcbvEeO9CYUoXDRplw" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_lNP5AsbvEeO9CYUoXDRplw"/>
+ <element xmi:type="uml:Dependency" href="design.uml#_lNLnacbvEeO9CYUoXDRplw"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_lNP5A8bvEeO9CYUoXDRplw" points="[-46, -20, 265, 113]$[-275, -135, 36, -2]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lNP5BMbvEeO9CYUoXDRplw" id="(0.0,0.24)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lNP5BcbvEeO9CYUoXDRplw" id="(1.0,0.65)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_lNP5BsbvEeO9CYUoXDRplw" type="4008" source="_lNP448bvEeO9CYUoXDRplw" target="_lNP43cbvEeO9CYUoXDRplw">
+ <children xmi:type="notation:DecorationNode" xmi:id="_lNP5B8bvEeO9CYUoXDRplw" visible="false" type="6026">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lNP5CMbvEeO9CYUoXDRplw" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lNP5CcbvEeO9CYUoXDRplw" visible="false" type="6027">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lNP5CsbvEeO9CYUoXDRplw" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_lNP5C8bvEeO9CYUoXDRplw"/>
+ <element xmi:type="uml:Dependency" href="design.uml#_lNLnasbvEeO9CYUoXDRplw"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_lNP5DMbvEeO9CYUoXDRplw" points="[-40, 1, 262, -12]$[-267, 20, 35, 7]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lNP5DcbvEeO9CYUoXDRplw" id="(0.0,0.69)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lNP5DsbvEeO9CYUoXDRplw" id="(1.0,0.64)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_bstJNAOtEeWytIRHPc2H8Q" type="StereotypeCommentLink" source="_lNP40cbvEeO9CYUoXDRplw" target="_bstJMAOtEeWytIRHPc2H8Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_bstJNQOtEeWytIRHPc2H8Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bstwQAOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Model" href="design.uml#_lNLnYsbvEeO9CYUoXDRplw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_bstJNgOtEeWytIRHPc2H8Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bstJNwOtEeWytIRHPc2H8Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bstJOAOtEeWytIRHPc2H8Q"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_bs26NAOtEeWytIRHPc2H8Q" type="StereotypeCommentLink" source="_lNP418bvEeO9CYUoXDRplw" target="_bs26MAOtEeWytIRHPc2H8Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_bs26NQOtEeWytIRHPc2H8Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bs3hQAOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Model" href="design.uml#_lNLnY8bvEeO9CYUoXDRplw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_bs26NgOtEeWytIRHPc2H8Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bs26NwOtEeWytIRHPc2H8Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bs26OAOtEeWytIRHPc2H8Q"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_btH_9AOtEeWytIRHPc2H8Q" type="StereotypeCommentLink" source="_lNP43cbvEeO9CYUoXDRplw" target="_btH_8AOtEeWytIRHPc2H8Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_btH_9QOtEeWytIRHPc2H8Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_btInAAOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Model" href="design.uml#_lNLnZsbvEeO9CYUoXDRplw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_btH_9gOtEeWytIRHPc2H8Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_btH_9wOtEeWytIRHPc2H8Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_btH_-AOtEeWytIRHPc2H8Q"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_btTmJAOtEeWytIRHPc2H8Q" type="StereotypeCommentLink" source="_lNP448bvEeO9CYUoXDRplw" target="_btTmIAOtEeWytIRHPc2H8Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_btTmJQOtEeWytIRHPc2H8Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_btTmKQOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Model" href="design.uml#_lNLnaMbvEeO9CYUoXDRplw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_btTmJgOtEeWytIRHPc2H8Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_btTmJwOtEeWytIRHPc2H8Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_btTmKAOtEeWytIRHPc2H8Q"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_btfMUAOtEeWytIRHPc2H8Q" type="StereotypeCommentLink" source="_gSwG8MofEeO3DsHezUU9Sg" target="_btelQAOtEeWytIRHPc2H8Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_btfMUQOtEeWytIRHPc2H8Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_btfMVQOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Comment" href="design.uml#_gP184MofEeO3DsHezUU9Sg"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_btfMUgOtEeWytIRHPc2H8Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_btfMUwOtEeWytIRHPc2H8Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_btfMVAOtEeWytIRHPc2H8Q"/>
+ </edges>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_Nf1kUMcbEeOenbI5XqwJvQ" type="UseCase" name="UseCaseDiagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_OAXegMcbEeOenbI5XqwJvQ" type="2015">
+ <children xmi:type="notation:DecorationNode" xmi:id="_OAZTsMcbEeOenbI5XqwJvQ" type="5019"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_OAZTsccbEeOenbI5XqwJvQ" type="7011">
+ <children xmi:type="notation:Shape" xmi:id="_PBuN0McbEeOenbI5XqwJvQ" type="3009">
+ <children xmi:type="notation:DecorationNode" xmi:id="_PBuN0scbEeOenbI5XqwJvQ" type="5018"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_PBu04McbEeOenbI5XqwJvQ" type="7012">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_PBu04ccbEeOenbI5XqwJvQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_PBu04scbEeOenbI5XqwJvQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_PBu048cbEeOenbI5XqwJvQ"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_6ub74gOtEeWytIRHPc2H8Q" type="6045">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_6ub74wOtEeWytIRHPc2H8Q" y="5"/>
+ </children>
+ <element xmi:type="uml:UseCase" href="design.uml#_O8koEMcbEeOenbI5XqwJvQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_PBuN0ccbEeOenbI5XqwJvQ" x="23" y="12"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_QqrvsMcbEeOenbI5XqwJvQ" type="3009">
+ <children xmi:type="notation:DecorationNode" xmi:id="_QqsWwMcbEeOenbI5XqwJvQ" type="5018"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_QqsWwccbEeOenbI5XqwJvQ" type="7012">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_QqsWwscbEeOenbI5XqwJvQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_QqsWw8cbEeOenbI5XqwJvQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QqsWxMcbEeOenbI5XqwJvQ"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_6ub75AOtEeWytIRHPc2H8Q" type="6045">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_6ub75QOtEeWytIRHPc2H8Q" y="5"/>
+ </children>
+ <element xmi:type="uml:UseCase" href="design.uml#_QqgwkMcbEeOenbI5XqwJvQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QqrvsccbEeOenbI5XqwJvQ" x="12" y="78"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_zqrN0MozEeO3DsHezUU9Sg" type="3009">
+ <children xmi:type="notation:DecorationNode" xmi:id="_zqr04MozEeO3DsHezUU9Sg" type="5018"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_zqr04cozEeO3DsHezUU9Sg" type="7012">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_zqr04sozEeO3DsHezUU9Sg"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_zqr048ozEeO3DsHezUU9Sg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_zqr05MozEeO3DsHezUU9Sg"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_6ub75gOtEeWytIRHPc2H8Q" type="6045">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_6ub75wOtEeWytIRHPc2H8Q" y="5"/>
+ </children>
+ <element xmi:type="uml:UseCase" href="design.uml#_zqMFoMozEeO3DsHezUU9Sg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_zqrN0cozEeO3DsHezUU9Sg" x="64" y="149" height="47"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_l8-K4Mo3EeOzTpunJ7qmNw" type="3009">
+ <children xmi:type="notation:DecorationNode" xmi:id="_l8-x8Mo3EeOzTpunJ7qmNw" type="5018"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_l8_ZAMo3EeOzTpunJ7qmNw" type="7012">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_l8_ZAco3EeOzTpunJ7qmNw"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_l8_ZAso3EeOzTpunJ7qmNw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_l8_ZA8o3EeOzTpunJ7qmNw"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_6ub76AOtEeWytIRHPc2H8Q" type="6045">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_6ub76QOtEeWytIRHPc2H8Q" y="5"/>
+ </children>
+ <element xmi:type="uml:UseCase" href="design.uml#_l5cVwMo3EeOzTpunJ7qmNw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_l8-K4co3EeOzTpunJ7qmNw" x="42" y="206"/>
+ </children>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_OAZTsscbEeOenbI5XqwJvQ"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_6ub74AOtEeWytIRHPc2H8Q" type="6047">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_6ub74QOtEeWytIRHPc2H8Q" y="5"/>
+ </children>
+ <element xmi:type="uml:Component" href="design.uml#_lNLnZcbvEeO9CYUoXDRplw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_OAXegccbEeOenbI5XqwJvQ" x="311" y="22" width="361" height="316"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_g3FzAMozEeO3DsHezUU9Sg" type="2011">
+ <children xmi:type="notation:DecorationNode" xmi:id="_g3GaEMozEeO3DsHezUU9Sg" type="5014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_g3GaEcozEeO3DsHezUU9Sg" x="20" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_g3HBIMozEeO3DsHezUU9Sg" type="6029">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_g3HBIcozEeO3DsHezUU9Sg" x="20" y="100"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_g3HoMMozEeO3DsHezUU9Sg" type="6037">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_g3HoMcozEeO3DsHezUU9Sg" x="20" y="80"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_6ub76gOtEeWytIRHPc2H8Q" type="6048">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_6ub76wOtEeWytIRHPc2H8Q" y="5"/>
+ </children>
+ <element xmi:type="uml:Actor" href="design.uml#_g2Kl8MozEeO3DsHezUU9Sg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_g3FzAcozEeO3DsHezUU9Sg" x="136" y="106"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_Nf2LYMcbEeOenbI5XqwJvQ"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_Nf2LYccbEeOenbI5XqwJvQ">
+ <owner xmi:type="uml:Model" href="design.uml#_lNLnY8bvEeO9CYUoXDRplw"/>
+ </styles>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_6uci8AOtEeWytIRHPc2H8Q" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <element xmi:type="uml:Model" href="design.uml#_lNLnY8bvEeO9CYUoXDRplw"/>
+ <edges xmi:type="notation:Connector" xmi:id="_1p5TkMozEeO3DsHezUU9Sg" type="4011" source="_g3FzAMozEeO3DsHezUU9Sg" target="_PBuN0McbEeOenbI5XqwJvQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_1p56oMozEeO3DsHezUU9Sg" visible="false" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_1p56ocozEeO3DsHezUU9Sg" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_1p6hsMozEeO3DsHezUU9Sg" visible="false" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_1p6hscozEeO3DsHezUU9Sg" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_1p5TkcozEeO3DsHezUU9Sg"/>
+ <element xmi:type="uml:Association" href="design.uml#_1pkjcMozEeO3DsHezUU9Sg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_1p5TksozEeO3DsHezUU9Sg" points="[40, -7, -141, 0]$[165, -7, -16, 0]"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1qHWAMozEeO3DsHezUU9Sg" id="(0.06584362139917696,0.5)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_2Py18MozEeO3DsHezUU9Sg" type="4011" source="_g3FzAMozEeO3DsHezUU9Sg" target="_QqrvsMcbEeOenbI5XqwJvQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_2PzdAMozEeO3DsHezUU9Sg" visible="false" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2PzdAcozEeO3DsHezUU9Sg" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2P0EEMozEeO3DsHezUU9Sg" visible="false" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2P0EEcozEeO3DsHezUU9Sg" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_2Py18cozEeO3DsHezUU9Sg"/>
+ <element xmi:type="uml:Association" href="design.uml#_2PwZsMozEeO3DsHezUU9Sg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_2Py18sozEeO3DsHezUU9Sg" points="[40, 23, -164, -62]$[103, 61, -101, -24]$[166, 76, -38, -9]"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_2P7_4MozEeO3DsHezUU9Sg" id="(0.12837837837837837,0.7)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_2zKBsMozEeO3DsHezUU9Sg" type="4011" source="_g3FzAMozEeO3DsHezUU9Sg" target="_zqrN0MozEeO3DsHezUU9Sg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_2zKowMozEeO3DsHezUU9Sg" visible="false" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2zLP0MozEeO3DsHezUU9Sg" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2zLP0cozEeO3DsHezUU9Sg" visible="false" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2zL24MozEeO3DsHezUU9Sg" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_2zKBscozEeO3DsHezUU9Sg"/>
+ <element xmi:type="uml:Association" href="design.uml#_2zHlcMozEeO3DsHezUU9Sg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_2zKBssozEeO3DsHezUU9Sg" points="[24, 30, -258, -110]$[82, 102, -200, -38]$[216, 127, -66, -13]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_rvotEMo3EeOzTpunJ7qmNw" type="4011" source="_g3FzAMozEeO3DsHezUU9Sg" target="_l8-K4Mo3EeOzTpunJ7qmNw">
+ <children xmi:type="notation:DecorationNode" xmi:id="_rvpUIMo3EeOzTpunJ7qmNw" visible="false" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_rvpUIco3EeOzTpunJ7qmNw" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_rvp7MMo3EeOzTpunJ7qmNw" visible="false" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_rvp7Mco3EeOzTpunJ7qmNw" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_rvotEco3EeOzTpunJ7qmNw"/>
+ <element xmi:type="uml:Association" href="design.uml#_rvVLEMo3EeOzTpunJ7qmNw"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_rvotEso3EeOzTpunJ7qmNw" points="[10, 30, -218, -199]$[54, 160, -174, -69]$[197, 216, -31, -13]"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_rvx3AMo3EeOzTpunJ7qmNw" id="(0.13777777777777778,0.6666666666666666)"/>
+ </edges>
+ </notation:Diagram>
+ <nattable:Table xmi:id="_1PpFsMohEeO3DsHezUU9Sg" name="RequirementTable" currentRowAxisProvider="_1PpFtcohEeO3DsHezUU9Sg" currentColumnAxisProvider="_1PpFscohEeO3DsHezUU9Sg">
+ <context xmi:type="uml:Model" href="design.uml#_lNLnYsbvEeO9CYUoXDRplw"/>
+ <owner xmi:type="uml:Model" href="design.uml#_lNLnYsbvEeO9CYUoXDRplw"/>
+ <prototype xmi:type="configuration:PapyrusSyncTable" href="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#_7wNb3txhEeOqHvRyiN87hA"/>
+ <tableConfiguration xmi:type="nattableconfiguration:TableConfiguration" href="platform:/plugin/org.eclipse.papyrus.sysml.nattable.requirement.config/configs/requirement.nattableconfiguration#/"/>
+ <columnAxisProvidersHistory xmi:type="nattableaxisprovider:SlaveObjectAxisProvider" xmi:id="_1PpFscohEeO3DsHezUU9Sg" description="Provides the columns of the tables with a default configuration" name="Requirements Feature Columns Provider">
+ <axis xmi:type="nattableaxis:FeatureIdAxis" xmi:id="_1PpFssohEeO3DsHezUU9Sg" element="property_of_stereotype:/SysML::Requirements::Requirement::id">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.sysml.nattable.requirement.config/configs/requirement.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.1"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_1PpFs8ohEeO3DsHezUU9Sg">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.sysml.nattable.requirement.config/configs/requirement.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EAttribute" href="http://www.eclipse.org/uml2/5.0.0/UML#//NamedElement/name"/>
+ </axis>
+ <axis xmi:type="nattableaxis:FeatureIdAxis" xmi:id="_1PpFtMohEeO3DsHezUU9Sg" element="property_of_stereotype:/SysML::Requirements::Requirement::text">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.sysml.nattable.requirement.config/configs/requirement.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.1"/>
+ </axis>
+ </columnAxisProvidersHistory>
+ <rowAxisProvidersHistory xmi:type="nattableaxisprovider:MasterObjectAxisProvider" xmi:id="_1PpFtcohEeO3DsHezUU9Sg" description="Provides the requirements directly owned by the context of the table" name="Requirement Axis Provider" disconnectSlave="true"/>
+ </nattable:Table>
+ <notation:Diagram xmi:id="_pUh7UMrhEeOada-BlHQh_Q" type="PapyrusUMLComponentDiagram" name="ArchitectureOverview" measurementUnit="Pixel">
+ <children xmi:type="notation:Node" xmi:id="_JUmCkM7UEeOkpJkbnruUGQ" type="2002">
+ <children xmi:type="notation:DecorationNode" xmi:id="_JUmpoM7UEeOkpJkbnruUGQ" type="5004"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_JUnQsM7UEeOkpJkbnruUGQ" type="7001">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_JUnQsc7UEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_JUnQss7UEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_JUwaoM7UEeOkpJkbnruUGQ" visible="false" type="AppliedStereotypeCompartment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_JUwaoc7UEeOkpJkbnruUGQ" showTitle="true"/>
+ <element xmi:type="ADL4Eclipse:Plugin" href="design.uml#_GhlIYM7UEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_JUwaos7UEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_JUwao87UEeOkpJkbnruUGQ" type="compartment_shape_display">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_JUwapM7UEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_JUwapc7UEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_KzqooM7UEeOkpJkbnruUGQ" type="3069">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Kzqoos7UEeOkpJkbnruUGQ" visible="false" type="5006">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_KzrPsM7UEeOkpJkbnruUGQ" x="132" y="43"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Kzr2wM7UEeOkpJkbnruUGQ" visible="false" type="5007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Kzr2wc7UEeOkpJkbnruUGQ" x="25" y="-10"/>
+ </children>
+ <element xmi:type="uml:Port" href="design.uml#_Gs61sM7UEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Kzqooc7UEeOkpJkbnruUGQ" x="-10" y="50"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_bDZGcAOtEeWytIRHPc2H8Q" type="6030">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bDZGcQOtEeWytIRHPc2H8Q" y="5"/>
+ </children>
+ <styles xmi:type="notation:DescriptionStyle" xmi:id="_JUmCkc7UEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_JUmCks7UEeOkpJkbnruUGQ"/>
+ <element xmi:type="uml:Component" href="design.uml#_GhiFEM7UEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_JUmCk87UEeOkpJkbnruUGQ" x="540" y="340" width="638" height="121"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_OzfUMM7UEeOkpJkbnruUGQ" type="2002">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Ozf7QM7UEeOkpJkbnruUGQ" type="5004"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Ozf7Qc7UEeOkpJkbnruUGQ" type="7001">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Ozf7Qs7UEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Ozf7Q87UEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_bDZGcgOtEeWytIRHPc2H8Q" type="6030">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bDZGcwOtEeWytIRHPc2H8Q" y="5"/>
+ </children>
+ <styles xmi:type="notation:DescriptionStyle" xmi:id="_OzfUMc7UEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_OzfUMs7UEeOkpJkbnruUGQ"/>
+ <element xmi:type="uml:Component" href="design.uml#_GqYfEM7UEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_OzfUM87UEeOkpJkbnruUGQ" x="500" y="120" width="161" height="81"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_PyR3sM7UEeOkpJkbnruUGQ" type="2002">
+ <children xmi:type="notation:DecorationNode" xmi:id="_PySewM7UEeOkpJkbnruUGQ" type="5004"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_PyTF0M7UEeOkpJkbnruUGQ" type="7001">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_PyTF0c7UEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_PyTF0s7UEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_bDZGdAOtEeWytIRHPc2H8Q" type="6030">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bDZGdQOtEeWytIRHPc2H8Q" y="5"/>
+ </children>
+ <styles xmi:type="notation:DescriptionStyle" xmi:id="_PyR3sc7UEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_PyR3ss7UEeOkpJkbnruUGQ"/>
+ <element xmi:type="uml:Component" href="design.uml#_Gqqy8M7UEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_PyR3s87UEeOkpJkbnruUGQ" x="1000" y="120" width="181" height="81"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_QGfNIM7UEeOkpJkbnruUGQ" type="2002">
+ <children xmi:type="notation:DecorationNode" xmi:id="_QGf0MM7UEeOkpJkbnruUGQ" type="5004"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_QGf0Mc7UEeOkpJkbnruUGQ" type="7001">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_QGf0Ms7UEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QGf0M87UEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_bDZGdgOtEeWytIRHPc2H8Q" type="6030">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bDZGdwOtEeWytIRHPc2H8Q" y="5"/>
+ </children>
+ <styles xmi:type="notation:DescriptionStyle" xmi:id="_QGfNIc7UEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_QGfNIs7UEeOkpJkbnruUGQ"/>
+ <element xmi:type="uml:Component" href="design.uml#_GrR28M7UEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QGfNI87UEeOkpJkbnruUGQ" x="720" y="120" width="241" height="81"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_QsxxEM7UEeOkpJkbnruUGQ" type="2002">
+ <children xmi:type="notation:DecorationNode" xmi:id="_QsyYIM7UEeOkpJkbnruUGQ" type="5004"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Qsy_MM7UEeOkpJkbnruUGQ" type="7001">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Qsy_Mc7UEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Qsy_Ms7UEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_bDZGeAOtEeWytIRHPc2H8Q" type="6030">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bDZGeQOtEeWytIRHPc2H8Q" y="5"/>
+ </children>
+ <styles xmi:type="notation:DescriptionStyle" xmi:id="_QsxxEc7UEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_QsxxEs7UEeOkpJkbnruUGQ"/>
+ <element xmi:type="uml:Component" href="design.uml#_GsAPsM7UEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QsxxE87UEeOkpJkbnruUGQ" x="260" y="120" width="178" height="81"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_TQfD8M7UEeOkpJkbnruUGQ" type="2002">
+ <children xmi:type="notation:DecorationNode" xmi:id="_TQfD9M7UEeOkpJkbnruUGQ" type="5004"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_TQfrAM7UEeOkpJkbnruUGQ" type="7001">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_TQfrAc7UEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_TQfrAs7UEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_TQm_wM7UEeOkpJkbnruUGQ" visible="false" type="AppliedStereotypeCompartment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_TQm_wc7UEeOkpJkbnruUGQ" showTitle="true"/>
+ <element xmi:type="ADL4Eclipse:Plugin" href="design.uml#_GodMcM7UEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_TQm_ws7UEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_TQm_w87UEeOkpJkbnruUGQ" type="compartment_shape_display">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_TQm_xM7UEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_TQm_xc7UEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_WXf4MM7UEeOkpJkbnruUGQ" type="3069">
+ <children xmi:type="notation:DecorationNode" xmi:id="_WXgfQM7UEeOkpJkbnruUGQ" type="5006">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iOtWwM7UEeOkpJkbnruUGQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iOt90M7UEeOkpJkbnruUGQ" key="visible" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_mQo7IM7UEeOkpJkbnruUGQ" name="maskLabel">
+ <stringListValue>visibility</stringListValue>
+ <stringListValue>name</stringListValue>
+ <stringListValue>derived</stringListValue>
+ <stringListValue>conjugated</stringListValue>
+ </styles>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_WXgfQc7UEeOkpJkbnruUGQ" x="-129" y="-70"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_WXhGUM7UEeOkpJkbnruUGQ" type="5007">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iOuk4M7UEeOkpJkbnruUGQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iOvL8M7UEeOkpJkbnruUGQ" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_WXhtYM7UEeOkpJkbnruUGQ" x="25" y="-10"/>
+ </children>
+ <element xmi:type="uml:Port" href="design.uml#_Gs8D0M7UEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_WXf4Mc7UEeOkpJkbnruUGQ" x="189" y="50"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_bDZGegOtEeWytIRHPc2H8Q" type="6030">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bDZGewOtEeWytIRHPc2H8Q" y="5"/>
+ </children>
+ <styles xmi:type="notation:DescriptionStyle" xmi:id="_TQfD8c7UEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FontStyle" xmi:id="_TQfD8s7UEeOkpJkbnruUGQ"/>
+ <element xmi:type="uml:Component" href="design.uml#_GoawMc7UEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_TQfD887UEeOkpJkbnruUGQ" x="120" y="340" width="199" height="121"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_bHxQIAOtEeWytIRHPc2H8Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bHxQIQOtEeWytIRHPc2H8Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bHx3MAOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Component" href="design.uml#_GhiFEM7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bHxQIgOtEeWytIRHPc2H8Q" x="740" y="340"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_bIbXcAOtEeWytIRHPc2H8Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bIbXcQOtEeWytIRHPc2H8Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bIbXcwOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Dependency" href="design.uml#_Gqo9wM7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bIbXcgOtEeWytIRHPc2H8Q" x="740" y="240"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_bIpZ4AOtEeWytIRHPc2H8Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bIpZ4QOtEeWytIRHPc2H8Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bIpZ4wOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Dependency" href="design.uml#_GrQBwM7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bIpZ4gOtEeWytIRHPc2H8Q" x="740" y="240"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_bI0ZAAOtEeWytIRHPc2H8Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bI0ZAQOtEeWytIRHPc2H8Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bI1AEAOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Dependency" href="design.uml#_Gr9zcM7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bI0ZAgOtEeWytIRHPc2H8Q" x="740" y="240"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_bI__MAOtEeWytIRHPc2H8Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bI__MQOtEeWytIRHPc2H8Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bJAmQAOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Dependency" href="design.uml#_GsjCQM7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bI__MgOtEeWytIRHPc2H8Q" x="740" y="240"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_bJVWYAOtEeWytIRHPc2H8Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bJVWYQOtEeWytIRHPc2H8Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bJVWYwOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Component" href="design.uml#_GqYfEM7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bJVWYgOtEeWytIRHPc2H8Q" x="700" y="120"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_bJ-PkAOtEeWytIRHPc2H8Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bJ-PkQOtEeWytIRHPc2H8Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bJ-PkwOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Component" href="design.uml#_Gqqy8M7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bJ-PkgOtEeWytIRHPc2H8Q" x="1200" y="120"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_bKmhsAOtEeWytIRHPc2H8Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bKmhsQOtEeWytIRHPc2H8Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bKmhswOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Component" href="design.uml#_GrR28M7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bKmhsgOtEeWytIRHPc2H8Q" x="920" y="120"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_bLOMwAOtEeWytIRHPc2H8Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bLOz0AOtEeWytIRHPc2H8Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bLOz0gOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Component" href="design.uml#_GsAPsM7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bLOz0QOtEeWytIRHPc2H8Q" x="460" y="120"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_bL4UEAOtEeWytIRHPc2H8Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bL4UEQOtEeWytIRHPc2H8Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bL4UEwOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Component" href="design.uml#_GoawMc7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bL4UEgOtEeWytIRHPc2H8Q" x="320" y="340"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_pUh7UcrhEeOada-BlHQh_Q"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_pUh7UsrhEeOada-BlHQh_Q">
+ <owner xmi:type="uml:Model" href="design.uml#_lNLnZsbvEeO9CYUoXDRplw"/>
+ </styles>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_bDZtgAOtEeWytIRHPc2H8Q" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <element xmi:type="uml:Model" href="design.uml#_lNLnZsbvEeO9CYUoXDRplw"/>
+ <edges xmi:type="notation:Connector" xmi:id="_OzzdQM7UEeOkpJkbnruUGQ" type="4010" source="_JUmCkM7UEeOkpJkbnruUGQ" target="_OzfUMM7UEeOkpJkbnruUGQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Oz0EUM7UEeOkpJkbnruUGQ" visible="false" type="6009">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Oz0rYM7UEeOkpJkbnruUGQ" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Oz0rYc7UEeOkpJkbnruUGQ" visible="false" type="6023">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Oz1ScM7UEeOkpJkbnruUGQ" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_OzzdQc7UEeOkpJkbnruUGQ"/>
+ <element xmi:type="uml:Dependency" href="design.uml#_Gqo9wM7UEeOkpJkbnruUGQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_OzzdQs7UEeOkpJkbnruUGQ" points="[-129, -77, 565, 339]$[-694, -416, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_PNAAYM7UEeOkpJkbnruUGQ" id="(0.0768025078369906,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_PNAncM7UEeOkpJkbnruUGQ" id="(0.4968944099378882,0.9876543209876543)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_PyghMM7UEeOkpJkbnruUGQ" type="4010" source="_JUmCkM7UEeOkpJkbnruUGQ" target="_PyR3sM7UEeOkpJkbnruUGQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_PyhIQM7UEeOkpJkbnruUGQ" visible="false" type="6009">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_PyhvUM7UEeOkpJkbnruUGQ" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_PyhvUc7UEeOkpJkbnruUGQ" visible="false" type="6023">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_PyhvUs7UEeOkpJkbnruUGQ" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_PyghMc7UEeOkpJkbnruUGQ"/>
+ <element xmi:type="uml:Dependency" href="design.uml#_GrQBwM7UEeOkpJkbnruUGQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_PyghMs7UEeOkpJkbnruUGQ" points="[-129, -77, 565, 339]$[-694, -416, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_RhUMYM7UEeOkpJkbnruUGQ" id="(0.877742946708464,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_RhUzcM7UEeOkpJkbnruUGQ" id="(0.5524861878453039,0.9876543209876543)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_QGt2oM7UEeOkpJkbnruUGQ" type="4010" source="_JUmCkM7UEeOkpJkbnruUGQ" target="_QGfNIM7UEeOkpJkbnruUGQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_QGudsM7UEeOkpJkbnruUGQ" visible="false" type="6009">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_QGudsc7UEeOkpJkbnruUGQ" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_QGvEwM7UEeOkpJkbnruUGQ" visible="false" type="6023">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_QGvEwc7UEeOkpJkbnruUGQ" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_QGt2oc7UEeOkpJkbnruUGQ"/>
+ <element xmi:type="uml:Dependency" href="design.uml#_Gr9zcM7UEeOkpJkbnruUGQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_QGt2os7UEeOkpJkbnruUGQ" points="[-129, -77, 565, 339]$[-694, -416, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_SA-j4M7UEeOkpJkbnruUGQ" id="(0.4702194357366771,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_SA_K8M7UEeOkpJkbnruUGQ" id="(0.47717842323651455,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_QtAakM7UEeOkpJkbnruUGQ" type="4010" source="_JUmCkM7UEeOkpJkbnruUGQ" target="_QsxxEM7UEeOkpJkbnruUGQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_QtBBoM7UEeOkpJkbnruUGQ" visible="false" type="6009">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_QtBosM7UEeOkpJkbnruUGQ" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_QtBosc7UEeOkpJkbnruUGQ" visible="false" type="6023">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_QtCPwM7UEeOkpJkbnruUGQ" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_QtAakc7UEeOkpJkbnruUGQ"/>
+ <element xmi:type="uml:Dependency" href="design.uml#_GsjCQM7UEeOkpJkbnruUGQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_QtAaks7UEeOkpJkbnruUGQ" points="[-129, -77, 565, 339]$[-694, -416, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_SngYYM7UEeOkpJkbnruUGQ" id="(0.0,0.06451612903225806)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Sng_cM7UEeOkpJkbnruUGQ" id="(0.449438202247191,0.9876543209876543)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_Yd4V4M7UEeOkpJkbnruUGQ" type="4010" source="_KzqooM7UEeOkpJkbnruUGQ" target="_WXf4MM7UEeOkpJkbnruUGQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Yd488M7UEeOkpJkbnruUGQ" visible="false" type="6009">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Yd5kAM7UEeOkpJkbnruUGQ" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Yd6LEM7UEeOkpJkbnruUGQ" visible="false" type="6023">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Yd6LEc7UEeOkpJkbnruUGQ" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_Yd4V4c7UEeOkpJkbnruUGQ"/>
+ <element xmi:type="uml:Dependency" href="design.uml#_Gs8q4M7UEeOkpJkbnruUGQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Yd4V4s7UEeOkpJkbnruUGQ" points="[-10, -2, 308, 44]$[-308, -45, 10, 1]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_bHyeQAOtEeWytIRHPc2H8Q" type="StereotypeCommentLink" source="_JUmCkM7UEeOkpJkbnruUGQ" target="_bHxQIAOtEeWytIRHPc2H8Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_bHyeQQOtEeWytIRHPc2H8Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bHyeRQOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Component" href="design.uml#_GhiFEM7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_bHyeQgOtEeWytIRHPc2H8Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bHyeQwOtEeWytIRHPc2H8Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bHyeRAOtEeWytIRHPc2H8Q"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_bIbXdAOtEeWytIRHPc2H8Q" type="StereotypeCommentLink" source="_OzzdQM7UEeOkpJkbnruUGQ" target="_bIbXcAOtEeWytIRHPc2H8Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_bIbXdQOtEeWytIRHPc2H8Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bIbXeQOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Dependency" href="design.uml#_Gqo9wM7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_bIbXdgOtEeWytIRHPc2H8Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bIbXdwOtEeWytIRHPc2H8Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bIbXeAOtEeWytIRHPc2H8Q"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_bIpZ5AOtEeWytIRHPc2H8Q" type="StereotypeCommentLink" source="_PyghMM7UEeOkpJkbnruUGQ" target="_bIpZ4AOtEeWytIRHPc2H8Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_bIpZ5QOtEeWytIRHPc2H8Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bIpZ6QOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Dependency" href="design.uml#_GrQBwM7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_bIpZ5gOtEeWytIRHPc2H8Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bIpZ5wOtEeWytIRHPc2H8Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bIpZ6AOtEeWytIRHPc2H8Q"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_bI1AEQOtEeWytIRHPc2H8Q" type="StereotypeCommentLink" source="_QGt2oM7UEeOkpJkbnruUGQ" target="_bI0ZAAOtEeWytIRHPc2H8Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_bI1AEgOtEeWytIRHPc2H8Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bI1AFgOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Dependency" href="design.uml#_Gr9zcM7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_bI1AEwOtEeWytIRHPc2H8Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bI1AFAOtEeWytIRHPc2H8Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bI1AFQOtEeWytIRHPc2H8Q"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_bJAmQQOtEeWytIRHPc2H8Q" type="StereotypeCommentLink" source="_QtAakM7UEeOkpJkbnruUGQ" target="_bI__MAOtEeWytIRHPc2H8Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_bJAmQgOtEeWytIRHPc2H8Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bJAmRgOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Dependency" href="design.uml#_GsjCQM7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_bJAmQwOtEeWytIRHPc2H8Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bJAmRAOtEeWytIRHPc2H8Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bJAmRQOtEeWytIRHPc2H8Q"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_bJVWZAOtEeWytIRHPc2H8Q" type="StereotypeCommentLink" source="_OzfUMM7UEeOkpJkbnruUGQ" target="_bJVWYAOtEeWytIRHPc2H8Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_bJVWZQOtEeWytIRHPc2H8Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bJVWaQOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Component" href="design.uml#_GqYfEM7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_bJVWZgOtEeWytIRHPc2H8Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bJVWZwOtEeWytIRHPc2H8Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bJVWaAOtEeWytIRHPc2H8Q"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_bJ-PlAOtEeWytIRHPc2H8Q" type="StereotypeCommentLink" source="_PyR3sM7UEeOkpJkbnruUGQ" target="_bJ-PkAOtEeWytIRHPc2H8Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_bJ-PlQOtEeWytIRHPc2H8Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bJ-PmQOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Component" href="design.uml#_Gqqy8M7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_bJ-PlgOtEeWytIRHPc2H8Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bJ-PlwOtEeWytIRHPc2H8Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bJ-PmAOtEeWytIRHPc2H8Q"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_bKmhtAOtEeWytIRHPc2H8Q" type="StereotypeCommentLink" source="_QGfNIM7UEeOkpJkbnruUGQ" target="_bKmhsAOtEeWytIRHPc2H8Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_bKmhtQOtEeWytIRHPc2H8Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bKmhuQOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Component" href="design.uml#_GrR28M7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_bKmhtgOtEeWytIRHPc2H8Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bKmhtwOtEeWytIRHPc2H8Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bKmhuAOtEeWytIRHPc2H8Q"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_bLOz0wOtEeWytIRHPc2H8Q" type="StereotypeCommentLink" source="_QsxxEM7UEeOkpJkbnruUGQ" target="_bLOMwAOtEeWytIRHPc2H8Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_bLOz1AOtEeWytIRHPc2H8Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bLOz2AOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Component" href="design.uml#_GsAPsM7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_bLOz1QOtEeWytIRHPc2H8Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bLOz1gOtEeWytIRHPc2H8Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bLOz1wOtEeWytIRHPc2H8Q"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_bL4UFAOtEeWytIRHPc2H8Q" type="StereotypeCommentLink" source="_TQfD8M7UEeOkpJkbnruUGQ" target="_bL4UEAOtEeWytIRHPc2H8Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_bL4UFQOtEeWytIRHPc2H8Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_bL4UGQOtEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Component" href="design.uml#_GoawMc7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_bL4UFgOtEeWytIRHPc2H8Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bL4UFwOtEeWytIRHPc2H8Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_bL4UGAOtEeWytIRHPc2H8Q"/>
+ </edges>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_xae5MM7bEeOkpJkbnruUGQ" type="PapyrusUMLClassDiagram" name="Structure" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_yHZCgM7bEeOkpJkbnruUGQ" type="2007">
+ <children xmi:type="notation:DecorationNode" xmi:id="_yHaQoM7bEeOkpJkbnruUGQ" type="5026"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_yHaQoc7bEeOkpJkbnruUGQ" type="7016">
+ <children xmi:type="notation:Shape" xmi:id="_0-lSEM7bEeOkpJkbnruUGQ" type="3010" gradient="10011046, 16777215, 0">
+ <children xmi:type="notation:DecorationNode" xmi:id="_0-l5IM7bEeOkpJkbnruUGQ" type="5014"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_0-l5Ic7bEeOkpJkbnruUGQ" visible="false" type="7011">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_0-l5Is7bEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_0-l5I87bEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_0-l5JM7bEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-l5Jc7bEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_0-l5Js7bEeOkpJkbnruUGQ" type="7012">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Xv11EM7dEeOkpJkbnruUGQ" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Xv2cIM7dEeOkpJkbnruUGQ" key="visible" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:Node" xmi:id="_YbR-wM7dEeOkpJkbnruUGQ" type="3013">
+ <element xmi:type="uml:Operation" href="design.uml#_YbQwoM7dEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_YbR-wc7dEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_bqRqUM7dEeOkpJkbnruUGQ" type="3013">
+ <element xmi:type="uml:Operation" href="design.uml#_bqP1IM7dEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bqRqUc7dEeOkpJkbnruUGQ"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_0-l5J87bEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_0-l5KM7bEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_0-l5Kc7bEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-l5Ks7bEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_0-mgMM7bEeOkpJkbnruUGQ" visible="false" type="7013">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_0-mgMc7bEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_0-mgMs7bEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_0-mgM87bEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-mgNM7bEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_EpMU0AOuEeWytIRHPc2H8Q" type="8518">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_EpMU0QOuEeWytIRHPc2H8Q" y="5"/>
+ </children>
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_2E1yMAO7EeW8nIkIujhtCA" name="cssClass">
+ <stringListValue>synch</stringListValue>
+ </styles>
+ <element xmi:type="uml:Class" href="design.uml#_0-fygM7bEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-lSEc7bEeOkpJkbnruUGQ" x="55" y="32" width="221" height="56"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_yHaQos7bEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_yHaQo87bEeOkpJkbnruUGQ"/>
+ </children>
+ <element xmi:type="uml:Package" href="design.uml#_hGz2YM7bEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_yHZCgc7bEeOkpJkbnruUGQ" x="40" y="240" width="393" height="182"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_yixW8M7bEeOkpJkbnruUGQ" type="2007">
+ <children xmi:type="notation:DecorationNode" xmi:id="_yix-AM7bEeOkpJkbnruUGQ" type="5026"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_yix-Ac7bEeOkpJkbnruUGQ" type="7016">
+ <children xmi:type="notation:Shape" xmi:id="_7X0FAM7bEeOkpJkbnruUGQ" type="3010" gradient="10011046, 16777215, 0">
+ <children xmi:type="notation:DecorationNode" xmi:id="_7X0FAs7bEeOkpJkbnruUGQ" type="5014"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_7X0sEM7bEeOkpJkbnruUGQ" visible="false" type="7011">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_7X0sEc7bEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_7X0sEs7bEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_7X0sE87bEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7X0sFM7bEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_7X0sFc7bEeOkpJkbnruUGQ" visible="false" type="7012">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_7X0sFs7bEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_7X0sF87bEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_7X0sGM7bEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7X0sGc7bEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_7X0sGs7bEeOkpJkbnruUGQ" visible="false" type="7013">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_7X0sG87bEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_7X0sHM7bEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_7X0sHc7bEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7X0sHs7bEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_EpMU0gOuEeWytIRHPc2H8Q" type="8518">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_EpMU0wOuEeWytIRHPc2H8Q" y="5"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_7XyP0M7bEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7X0FAc7bEeOkpJkbnruUGQ" x="51" y="13" width="202" height="56"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_yix-As7bEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_yix-A87bEeOkpJkbnruUGQ"/>
+ </children>
+ <element xmi:type="uml:Package" href="design.uml#_i84nMM7bEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_yixW8c7bEeOkpJkbnruUGQ" x="40" y="20" width="375" height="169"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_-_KmMM7bEeOkpJkbnruUGQ" type="2007">
+ <children xmi:type="notation:DecorationNode" xmi:id="_-_LNQM7bEeOkpJkbnruUGQ" type="5026"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_-_LNQc7bEeOkpJkbnruUGQ" type="7016">
+ <children xmi:type="notation:Shape" xmi:id="_ADxd0M7cEeOkpJkbnruUGQ" type="3023" gradient="8905185, 16777215, 0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ZSrjgAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ZSrjgQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ADxd0s7cEeOkpJkbnruUGQ" type="5049">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ZSrjggO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ZSrjgwO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ADyE4M7cEeOkpJkbnruUGQ" visible="false" type="7027">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ADyE4c7cEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ADyE4s7cEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ADyE487cEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ADyE5M7cEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ADyE5c7cEeOkpJkbnruUGQ" type="7028">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ZSsKkAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ZSsKkQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:Node" xmi:id="_gicIkM7cEeOkpJkbnruUGQ" type="3007">
+ <element xmi:type="uml:Operation" href="design.uml#_giaTYM7cEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_gicIkc7cEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_mbFW8M7cEeOkpJkbnruUGQ" type="3007">
+ <element xmi:type="uml:Operation" href="design.uml#_mbDhwM7cEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_mbFW8c7cEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_85NPsAPAEeW8nIkIujhtCA" type="3007">
+ <element xmi:type="uml:Operation" href="design.uml#_843RcAPAEeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_85NPsQPAEeW8nIkIujhtCA"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ADyE5s7cEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ADyE587cEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ADyE6M7cEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ADyE6c7cEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ADyE6s7cEeOkpJkbnruUGQ" visible="false" type="7029">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ADyE687cEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ADyE7M7cEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ADyE7c7cEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ADyE7s7cEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_EpMU1AOuEeWytIRHPc2H8Q" type="8515">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ZSsKkgO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ZSsKkwO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_EpMU1QOuEeWytIRHPc2H8Q" y="5"/>
+ </children>
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_1VnUsAO7EeW8nIkIujhtCA" name="cssClass"/>
+ <element xmi:type="uml:Interface" href="design.uml#_ADvBkM7cEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ADxd0c7cEeOkpJkbnruUGQ" x="14" y="387" width="218" height="98"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_G0bSQM7cEeOkpJkbnruUGQ" type="3010" gradient="8905185, 16777215, 0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_VpsDkgO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_VpsDkwO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_G0b5UM7cEeOkpJkbnruUGQ" type="5014">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_VpsqoAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_VpsqoQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_G0b5Uc7cEeOkpJkbnruUGQ" visible="false" type="7011">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_G0b5Us7cEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_G0b5U87cEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_G0b5VM7cEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_G0b5Vc7cEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_G0cgYM7cEeOkpJkbnruUGQ" type="7012">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_VpsqogO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_VpsqowO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_G0cgYc7cEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_G0cgYs7cEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_G0cgY87cEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_G0cgZM7cEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_G0cgZc7cEeOkpJkbnruUGQ" visible="false" type="7013">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_G0cgZs7cEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_G0cgZ87cEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_G0cgaM7cEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_G0cgac7cEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_EpMU1gOuEeWytIRHPc2H8Q" type="8518">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_VpsqpAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_VpsqpQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_EpMU1wOuEeWytIRHPc2H8Q" y="5"/>
+ </children>
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_0RtAoAO7EeW8nIkIujhtCA" name="cssClass"/>
+ <element xmi:type="uml:Class" href="design.uml#_G0aEIM7cEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_G0bSQc7cEeOkpJkbnruUGQ" x="22" y="285" height="55"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_LRukAM7cEeOkpJkbnruUGQ" type="3010" gradient="8905185, 16777215, 0">
+ <children xmi:type="notation:DecorationNode" xmi:id="_LRukAs7cEeOkpJkbnruUGQ" type="5014"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_LRvLEM7cEeOkpJkbnruUGQ" type="7011">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_-wcQYAO7EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_-wcQYQO7EeW8nIkIujhtCA" key="mutable" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:Shape" xmi:id="_-u5_UAO7EeW8nIkIujhtCA" type="3012">
+ <element xmi:type="uml:Property" href="design.uml#_HV9ckM7dEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_-u5_UQO7EeW8nIkIujhtCA"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_LRvLEc7cEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_LRvLEs7cEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_LRvLE87cEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_LRvLFM7cEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_LRvLFc7cEeOkpJkbnruUGQ" type="7012">
+ <children xmi:type="notation:Node" xmi:id="__iTTAM7cEeOkpJkbnruUGQ" type="3013">
+ <element xmi:type="uml:Operation" href="design.uml#__iRd0M7cEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="__iTTAc7cEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_DiIloM7dEeOkpJkbnruUGQ" type="3013">
+ <element xmi:type="uml:Operation" href="design.uml#_DiGwcM7dEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_DiIloc7dEeOkpJkbnruUGQ"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_LRvLFs7cEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_LRvLF87cEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_LRvLGM7cEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_LRvLGc7cEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_LRvLGs7cEeOkpJkbnruUGQ" type="7013">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_LRvLG87cEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_LRvLHM7cEeOkpJkbnruUGQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_LRvLHc7cEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_LRvLHs7cEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_EpMU2AOuEeWytIRHPc2H8Q" type="8518">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_EpMU2QOuEeWytIRHPc2H8Q" y="5"/>
+ </children>
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_zSb8AAO7EeW8nIkIujhtCA" name="cssClass">
+ <stringListValue>synch</stringListValue>
+ </styles>
+ <element xmi:type="uml:Class" href="design.uml#_LRsu0M7cEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_LRukAc7cEeOkpJkbnruUGQ" x="18" y="18" width="314"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_IKprkAO9EeW8nIkIujhtCA" type="3010" gradient="8905185, 16777215, 0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Vpq1cAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Vpq1cQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_IKqSoAO9EeW8nIkIujhtCA" type="5014">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_VprcgAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_VprcgQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_IKqSoQO9EeW8nIkIujhtCA" type="8518">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_VpsDkAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_VpsDkQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_IKqSogO9EeW8nIkIujhtCA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_IKqSowO9EeW8nIkIujhtCA" visible="false" type="7011">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_IKqSpAO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_IKqSpQO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_IKqSpgO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_IKqSpwO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_IKqSqAO9EeW8nIkIujhtCA" type="7012">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_VprcggO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_VprcgwO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_cWq48AO9EeW8nIkIujhtCA" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_IKqSqQO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_IKqSqgO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_IKqSqwO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_IKqSrAO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_IKqSrQO9EeW8nIkIujhtCA" visible="false" type="7013">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_IKqSrgO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_IKqSrwO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_IKqSsAO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_IKqSsQO9EeW8nIkIujhtCA"/>
+ </children>
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_cVS_8AO9EeW8nIkIujhtCA" name="cssClass">
+ <stringListValue>synch</stringListValue>
+ </styles>
+ <element xmi:type="uml:Class" href="design.uml#_AK5mwAO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_IKprkQO9EeW8nIkIujhtCA" x="250" y="286" height="55"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_IKq5sAO9EeW8nIkIujhtCA" type="3023" gradient="8905185, 16777215, 0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ZSqVYAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ZSqVYQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_IKq5sgO9EeW8nIkIujhtCA" type="5049">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ZSqVYgO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ZSqVYwO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_IKq5swO9EeW8nIkIujhtCA" type="8515">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ZSq8cgO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ZSq8cwO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_IKq5tAO9EeW8nIkIujhtCA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_IKq5tQO9EeW8nIkIujhtCA" visible="false" type="7027">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_IKq5tgO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_IKq5twO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_IKq5uAO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_IKq5uQO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_IKq5ugO9EeW8nIkIujhtCA" type="7028">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ZSq8cAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ZSq8cQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_bpg4AAO9EeW8nIkIujhtCA" key="mutable" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:Shape" xmi:id="_boSwAAO9EeW8nIkIujhtCA" type="3007">
+ <element xmi:type="uml:Operation" href="design.uml#_AK6N0QO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_boSwAQO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_boTXEAO9EeW8nIkIujhtCA" type="3007">
+ <element xmi:type="uml:Operation" href="design.uml#_AK6N0gO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_boTXEQO9EeW8nIkIujhtCA"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_IKq5uwO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_IKq5vAO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_IKq5vQO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_IKq5vgO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_IKq5vwO9EeW8nIkIujhtCA" visible="false" type="7029">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_IKq5wAO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_IKq5wQO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_IKq5wgO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_IKq5wwO9EeW8nIkIujhtCA"/>
+ </children>
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_boHw4AO9EeW8nIkIujhtCA" name="cssClass">
+ <stringListValue>synch</stringListValue>
+ </styles>
+ <element xmi:type="uml:Interface" href="design.uml#_AK6N0AO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_IKq5sQO9EeW8nIkIujhtCA" x="266" y="391" height="80"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_gMZNUAO9EeW8nIkIujhtCA" type="3010" gradient="8905185, 16777215, 0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iddRAAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iddRAQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_gMZNUgO9EeW8nIkIujhtCA" type="5014">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_idd4EAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_idd4EQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_gMZNUwO9EeW8nIkIujhtCA" type="8518">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_idd4EgO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_idd4EwO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_gMZNVAO9EeW8nIkIujhtCA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_gMZNVQO9EeW8nIkIujhtCA" type="7011">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_mZPCsAPAEeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_mZPCsQPAEeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:Shape" xmi:id="_nASboAPAEeW8nIkIujhtCA" type="3012">
+ <element xmi:type="uml:Property" href="design.uml#_m_3k4APAEeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nASboQPAEeW8nIkIujhtCA"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_gMZNVgO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_gMZNVwO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_gMZNWAO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_gMZNWQO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_gMZNWgO9EeW8nIkIujhtCA" visible="false" type="7012">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_idd4FAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_idd4FQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_gMZNWwO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_gMZNXAO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_gMZNXQO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_gMZNXgO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_gMZNXwO9EeW8nIkIujhtCA" visible="false" type="7013">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_gMZNYAO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_gMZNYQO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_gMZNYgO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_gMZNYwO9EeW8nIkIujhtCA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_gMFEQAO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_gMZNUQO9EeW8nIkIujhtCA" x="140" y="177" width="132" height="50"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_2XCDgAO9EeW8nIkIujhtCA" type="3010" gradient="8905185, 16777215, 0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="__Qy5gAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="__Q0HoAO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2XCDggO9EeW8nIkIujhtCA" type="5014">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="__Q0HoQO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="__Q0usAO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2XCDgwO9EeW8nIkIujhtCA" type="8518">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="__Q0usQO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="__Q0usgO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2XCDhAO9EeW8nIkIujhtCA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_2XCDhQO9EeW8nIkIujhtCA" visible="false" type="7011">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_2XCDhgO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_2XCDhwO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_2XCDiAO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2XCDiQO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_2XCDigO9EeW8nIkIujhtCA" type="7012">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="__Q0uswO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="__Q0utAO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Ku_wQAPAEeW8nIkIujhtCA" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_2XCDiwO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_2XCDjAO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_2XCDjQO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2XCDjgO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_2XCDjwO9EeW8nIkIujhtCA" visible="false" type="7013">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_2XCDkAO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_2XCDkQO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_2XCDkgO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2XCDkwO9EeW8nIkIujhtCA"/>
+ </children>
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_KtJWIAPAEeW8nIkIujhtCA" name="cssClass">
+ <stringListValue>synch</stringListValue>
+ </styles>
+ <element xmi:type="uml:Class" href="design.uml#_2WGPYAO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2XCDgQO9EeW8nIkIujhtCA" x="470" y="285" height="56"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_2XCqkAO9EeW8nIkIujhtCA" type="3023" gradient="8905185, 16777215, 0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_9uNFYAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_9uNFYQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2XCqkgO9EeW8nIkIujhtCA" type="5049">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_9uNFYgO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_9uNFYwO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2XCqkwO9EeW8nIkIujhtCA" type="8515">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_9uNFZAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_9uNFZQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2XCqlAO9EeW8nIkIujhtCA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_2XCqlQO9EeW8nIkIujhtCA" visible="false" type="7027">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_2XCqlgO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_2XCqlwO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_2XCqmAO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2XCqmQO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_2XCqmgO9EeW8nIkIujhtCA" type="7028">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_9uNscAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_9uNscQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Lavb8APAEeW8nIkIujhtCA" key="mutable" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:Shape" xmi:id="_LZHrUAPAEeW8nIkIujhtCA" type="3007">
+ <element xmi:type="uml:Operation" href="design.uml#_2WGPaAO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_LZHrUQPAEeW8nIkIujhtCA"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_2XCqmwO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_2XCqnAO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_2XCqnQO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2XCqngO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_2XCqnwO9EeW8nIkIujhtCA" visible="false" type="7029">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_2XCqoAO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_2XCqoQO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_2XCqogO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2XCqowO9EeW8nIkIujhtCA"/>
+ </children>
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_LY6P8APAEeW8nIkIujhtCA" name="cssClass">
+ <stringListValue>synch</stringListValue>
+ </styles>
+ <element xmi:type="uml:Interface" href="design.uml#_2WGPZwO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2XCqkQO9EeW8nIkIujhtCA" x="492" y="393" height="77"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_-_LNQs7bEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_-_LNQ87bEeOkpJkbnruUGQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_cNLikAO5EeW8nIkIujhtCA" type="compartment_shape_display">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_cNLikQO5EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_cNLikgO5EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_AK7b8AO9EeW8nIkIujhtCA" type="3010" gradient="8905185, 16777215, 0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_A372cAO-EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_A372cQO-EeW8nIkIujhtCA" key="mutable" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_AK7b8QO9EeW8nIkIujhtCA" type="5014"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_AK7b8gO9EeW8nIkIujhtCA" visible="false" type="7011">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_AK7b8wO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_AK7b9AO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_AK7b9QO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_AK7b9gO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_AK7b9wO9EeW8nIkIujhtCA" type="7012">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_AK7b_gO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_AK7b_wO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_AK7cAAO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_AK7cAQO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_AK7cAgO9EeW8nIkIujhtCA" visible="false" type="7013">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_AK7cAwO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_AK7cBAO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_AK7cBQO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_AK7cBgO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_AK7cBwO9EeW8nIkIujhtCA" type="8518">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_AK7cCAO9EeW8nIkIujhtCA" y="5"/>
+ </children>
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_AK7cCQO9EeW8nIkIujhtCA" name="cssClass">
+ <stringListValue>synch</stringListValue>
+ </styles>
+ <element xmi:type="uml:Class" href="design.uml#_AK5mwAO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_AK7cDQO9EeW8nIkIujhtCA" x="32" y="279" height="81"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_AK7cDgO9EeW8nIkIujhtCA" type="3023" gradient="8905185, 16777215, 0">
+ <children xmi:type="notation:DecorationNode" xmi:id="_AK7cDwO9EeW8nIkIujhtCA" type="5049"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_AK7cEAO9EeW8nIkIujhtCA" visible="false" type="7027">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_AK7cEQO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_AK7cEgO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_AK7cEwO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_AK7cFAO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_AK7cFQO9EeW8nIkIujhtCA" type="7028">
+ <children xmi:type="notation:Node" xmi:id="_AK7cFgO9EeW8nIkIujhtCA" type="3007">
+ <element xmi:type="uml:Operation" href="design.uml#_AK6N0QO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_AK7cFwO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:Node" xmi:id="_AK7cGAO9EeW8nIkIujhtCA" type="3007">
+ <element xmi:type="uml:Operation" href="design.uml#_AK6N0gO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_AK7cGQO9EeW8nIkIujhtCA"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_AK7cGgO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_AK7cGwO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_AK7cHAO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_AK7cHQO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_AK7cHgO9EeW8nIkIujhtCA" visible="false" type="7029">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_AK7cHwO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_AK7cIAO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_AK7cIQO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_AK7cIgO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_AK7cIwO9EeW8nIkIujhtCA" type="8515">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_AK7cJAO9EeW8nIkIujhtCA" y="5"/>
+ </children>
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_AK7cJQO9EeW8nIkIujhtCA" name="cssClass">
+ <stringListValue>synch</stringListValue>
+ </styles>
+ <element xmi:type="uml:Interface" href="design.uml#_AK6N0AO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_AK7cKQO9EeW8nIkIujhtCA" x="32" y="397" height="81"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_2WG2cAO9EeW8nIkIujhtCA" type="3010" gradient="8905185, 16777215, 0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_2WG2cQO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2WG2cgO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2WG2cwO9EeW8nIkIujhtCA" type="5014">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_2WG2dAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2WG2dQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2WG2dgO9EeW8nIkIujhtCA" type="8518">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_2WG2dwO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2WG2eAO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2WG2eQO9EeW8nIkIujhtCA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_2WG2egO9EeW8nIkIujhtCA" visible="false" type="7011">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_2WG2ewO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_2WG2fAO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_2WG2fQO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2WG2fgO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_2WG2fwO9EeW8nIkIujhtCA" type="7012">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_2WG2gAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2WG2gQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2WG2ggO9EeW8nIkIujhtCA" key="mutable" value="true"/>
+ </eAnnotations>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_2WG2iQO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_2WG2igO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_2WG2iwO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2WG2jAO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_2WG2jQO9EeW8nIkIujhtCA" visible="false" type="7013">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_2WG2jgO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_2WG2jwO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_2WG2kAO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2WG2kQO9EeW8nIkIujhtCA"/>
+ </children>
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_2WG2kgO9EeW8nIkIujhtCA" name="cssClass"/>
+ <element xmi:type="uml:Class" href="design.uml#_2WGPYAO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2WG2lgO9EeW8nIkIujhtCA" x="280" y="276" height="87"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_2WHdgAO9EeW8nIkIujhtCA" type="3023" gradient="8905185, 16777215, 0">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_2WHdgQO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2WHdggO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2WHdgwO9EeW8nIkIujhtCA" type="5049">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_2WHdhAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2WHdhQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2WHdhgO9EeW8nIkIujhtCA" type="8515">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_2WHdhwO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2WHdiAO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2WHdiQO9EeW8nIkIujhtCA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_2WHdigO9EeW8nIkIujhtCA" visible="false" type="7027">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_2WHdiwO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_2WHdjAO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_2WHdjQO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2WHdjgO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_2WHdjwO9EeW8nIkIujhtCA" type="7028">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_2WHdkAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2WHdkQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_2WHdkgO9EeW8nIkIujhtCA" key="mutable" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:Shape" xmi:id="_2WHdkwO9EeW8nIkIujhtCA" type="3007">
+ <element xmi:type="uml:Operation" href="design.uml#_2WGPaAO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2WHdlAO9EeW8nIkIujhtCA"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_2WHdlwO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_2WHdmAO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_2WHdmQO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2WHdmgO9EeW8nIkIujhtCA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_2WHdmwO9EeW8nIkIujhtCA" visible="false" type="7029">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_2WHdnAO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_2WHdnQO9EeW8nIkIujhtCA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_2WHdngO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2WHdnwO9EeW8nIkIujhtCA"/>
+ </children>
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_2WHdoAO9EeW8nIkIujhtCA" name="cssClass">
+ <stringListValue>synch</stringListValue>
+ </styles>
+ <element xmi:type="uml:Interface" href="design.uml#_2WGPZwO9EeW8nIkIujhtCA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2WHdpAO9EeW8nIkIujhtCA" x="275" y="401" height="80"/>
+ </children>
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_IKG5AAO9EeW8nIkIujhtCA" name="cssClass"/>
+ <element xmi:type="uml:Package" href="design.uml#_Gs3LUM7UEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_-_KmMc7bEeOkpJkbnruUGQ" x="480" y="20" width="690" height="559"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_EsVIYAOuEeWytIRHPc2H8Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_EsVIYQOuEeWytIRHPc2H8Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_EsVIYwOuEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Package" href="design.uml#_Gs3LUM7UEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_EsVIYgOuEeWytIRHPc2H8Q" x="680" y="20"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_xae5Mc7bEeOkpJkbnruUGQ"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_xae5Ms7bEeOkpJkbnruUGQ">
+ <owner xmi:type="uml:Model" href="design.uml#_lNLnZsbvEeO9CYUoXDRplw"/>
+ </styles>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_EpMU2gOuEeWytIRHPc2H8Q" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <element xmi:type="uml:Model" href="design.uml#_lNLnZsbvEeO9CYUoXDRplw"/>
+ <edges xmi:type="notation:Connector" xmi:id="_PaODYM7cEeOkpJkbnruUGQ" type="4001" source="_7X0FAM7bEeOkpJkbnruUGQ" target="_0-lSEM7bEeOkpJkbnruUGQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_PaOqcM7cEeOkpJkbnruUGQ" visible="false" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_PaOqcc7cEeOkpJkbnruUGQ" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_PaPRgM7cEeOkpJkbnruUGQ" visible="false" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_PaPRgc7cEeOkpJkbnruUGQ" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_PaP4kM7cEeOkpJkbnruUGQ" visible="false" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_PaP4kc7cEeOkpJkbnruUGQ" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_PaQfoM7cEeOkpJkbnruUGQ" visible="false" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_PaQfoc7cEeOkpJkbnruUGQ" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_PaRGsM7cEeOkpJkbnruUGQ" visible="false" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_PaRGsc7cEeOkpJkbnruUGQ" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_PaRGss7cEeOkpJkbnruUGQ" visible="false" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_PaRtwM7cEeOkpJkbnruUGQ" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_PaODYc7cEeOkpJkbnruUGQ"/>
+ <element xmi:type="uml:Association" href="design.uml#_PaLAEM7cEeOkpJkbnruUGQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_PaODYs7cEeOkpJkbnruUGQ" points="[6, 12, 0, -174]$[4, 177, -2, -9]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Pa_fcM7cEeOkpJkbnruUGQ" id="(0.5148514851485149,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Pa_fcc7cEeOkpJkbnruUGQ" id="(0.4642857142857143,0.09)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_7ICuMM7cEeOkpJkbnruUGQ" type="4001" source="_G0bSQM7cEeOkpJkbnruUGQ" target="_ADxd0M7cEeOkpJkbnruUGQ" routing="Rectilinear">
+ <children xmi:type="notation:DecorationNode" xmi:id="_7IDVQM7cEeOkpJkbnruUGQ" visible="false" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7ID8UM7cEeOkpJkbnruUGQ" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_7IEjYM7cEeOkpJkbnruUGQ" visible="false" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7IEjYc7cEeOkpJkbnruUGQ" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_7IFKcM7cEeOkpJkbnruUGQ" visible="false" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7IFKcc7cEeOkpJkbnruUGQ" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_7IFxgM7cEeOkpJkbnruUGQ" visible="false" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7IFxgc7cEeOkpJkbnruUGQ" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_7IGYkM7cEeOkpJkbnruUGQ" visible="false" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7IGYkc7cEeOkpJkbnruUGQ" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_7IG_oM7cEeOkpJkbnruUGQ" visible="false" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7IG_oc7cEeOkpJkbnruUGQ" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_7ICuMc7cEeOkpJkbnruUGQ"/>
+ <element xmi:type="uml:Association" href="design.uml#_7IAR8M7cEeOkpJkbnruUGQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_7ICuMs7cEeOkpJkbnruUGQ" points="[23, 4, -78, 0]$[78, 4, -23, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_7IXeUM7cEeOkpJkbnruUGQ" id="(0.450261780104712,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_7IXeUc7cEeOkpJkbnruUGQ" id="(0.4725274725274725,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_HWBG8M7dEeOkpJkbnruUGQ" type="4001" source="_LRukAM7cEeOkpJkbnruUGQ" target="_gMZNUAO9EeW8nIkIujhtCA" routing="Rectilinear">
+ <children xmi:type="notation:DecorationNode" xmi:id="_HWBuAM7dEeOkpJkbnruUGQ" visible="false" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_HWBuAc7dEeOkpJkbnruUGQ" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_HWCVEM7dEeOkpJkbnruUGQ" visible="false" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_HWCVEc7dEeOkpJkbnruUGQ" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_HWC8IM7dEeOkpJkbnruUGQ" visible="false" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_HWC8Ic7dEeOkpJkbnruUGQ" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_HWDjMM7dEeOkpJkbnruUGQ" type="6005">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_sKcTsAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_sKcTsQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_HWDjMc7dEeOkpJkbnruUGQ" x="-20" y="18"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_HWEKQM7dEeOkpJkbnruUGQ" visible="false" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_HWEKQc7dEeOkpJkbnruUGQ" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_HWExUM7dEeOkpJkbnruUGQ" type="6034">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ygZwMAO9EeW8nIkIujhtCA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ygZwMQO9EeW8nIkIujhtCA" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_HWExUc7dEeOkpJkbnruUGQ" x="-7" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_HWBG8c7dEeOkpJkbnruUGQ"/>
+ <element xmi:type="uml:Association" href="design.uml#_HV-qsM7dEeOkpJkbnruUGQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_HWBG8s7dEeOkpJkbnruUGQ" points="[-1, 0, -55, -65]$[-1, 57, -55, -8]$[54, 57, 0, -8]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_HWXsQM7dEeOkpJkbnruUGQ" id="(0.2229299363057325,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_HWXsQc7dEeOkpJkbnruUGQ" id="(0.0,0.26)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_Q1kKkM7dEeOkpJkbnruUGQ" type="4008" source="_0-lSEM7bEeOkpJkbnruUGQ" target="_LRukAM7cEeOkpJkbnruUGQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Q1kxoM7dEeOkpJkbnruUGQ" visible="false" type="6026">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Q1lYsM7dEeOkpJkbnruUGQ" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Q1lYsc7dEeOkpJkbnruUGQ" visible="false" type="6027">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Q1l_wM7dEeOkpJkbnruUGQ" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_Q1kKkc7dEeOkpJkbnruUGQ"/>
+ <element xmi:type="uml:Dependency" href="design.uml#_Q1hHQM7dEeOkpJkbnruUGQ"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Q1kKks7dEeOkpJkbnruUGQ" points="[4, 5, -232, 0]$[215, 2, -21, -3]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Q1w-4M7dEeOkpJkbnruUGQ" id="(1.0,0.30357142857142855)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Q1xl8M7dEeOkpJkbnruUGQ" id="(0.0,0.680672268907563)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_cg6IIAO_EeW8nIkIujhtCA" type="4001" source="_IKprkAO9EeW8nIkIujhtCA" target="_IKq5sAO9EeW8nIkIujhtCA" routing="Rectilinear">
+ <children xmi:type="notation:DecorationNode" xmi:id="_cg6vMAO_EeW8nIkIujhtCA" visible="false" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_cg6vMQO_EeW8nIkIujhtCA" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_cg6vMgO_EeW8nIkIujhtCA" visible="false" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_cg6vMwO_EeW8nIkIujhtCA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_cg6vNAO_EeW8nIkIujhtCA" visible="false" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_cg6vNQO_EeW8nIkIujhtCA" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_cg6vNgO_EeW8nIkIujhtCA" visible="false" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_cg6vNwO_EeW8nIkIujhtCA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_cg6vOAO_EeW8nIkIujhtCA" visible="false" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_cg7WQAO_EeW8nIkIujhtCA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_cg7WQQO_EeW8nIkIujhtCA" visible="false" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_cg7WQgO_EeW8nIkIujhtCA" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_cg6IIQO_EeW8nIkIujhtCA"/>
+ <element xmi:type="uml:Association" href="design.uml#_cgc1IAO_EeW8nIkIujhtCA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_cg6IIgO_EeW8nIkIujhtCA" points="[0, 16, 5, -78]$[0, 54, 5, -40]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ciAUUAO_EeW8nIkIujhtCA" id="(0.5170454545454546,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ciAUUQO_EeW8nIkIujhtCA" id="(0.528169014084507,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_2-QwsAO_EeW8nIkIujhtCA" type="4001" source="_2XCDgAO9EeW8nIkIujhtCA" target="_2XCqkAO9EeW8nIkIujhtCA" routing="Rectilinear">
+ <children xmi:type="notation:DecorationNode" xmi:id="_2-RXwAO_EeW8nIkIujhtCA" visible="false" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2-RXwQO_EeW8nIkIujhtCA" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2-RXwgO_EeW8nIkIujhtCA" visible="false" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2-RXwwO_EeW8nIkIujhtCA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2-RXxAO_EeW8nIkIujhtCA" visible="false" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2-RXxQO_EeW8nIkIujhtCA" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2-RXxgO_EeW8nIkIujhtCA" visible="false" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2-RXxwO_EeW8nIkIujhtCA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2-RXyAO_EeW8nIkIujhtCA" visible="false" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2-RXyQO_EeW8nIkIujhtCA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2-RXygO_EeW8nIkIujhtCA" visible="false" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2-RXywO_EeW8nIkIujhtCA" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_2-QwsQO_EeW8nIkIujhtCA"/>
+ <element xmi:type="uml:Association" href="design.uml#_29QEEAO_EeW8nIkIujhtCA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_2-QwsgO_EeW8nIkIujhtCA" points="[22, 0, 0, -41]$[22, 41, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_2_anQAO_EeW8nIkIujhtCA" id="(0.3502824858757062,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_2_anQQO_EeW8nIkIujhtCA" id="(0.49206349206349204,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_O3zYsAPAEeW8nIkIujhtCA" type="4002" source="_G0bSQM7cEeOkpJkbnruUGQ" target="_gMZNUAO9EeW8nIkIujhtCA" routing="Tree">
+ <children xmi:type="notation:DecorationNode" xmi:id="_O3z_wAPAEeW8nIkIujhtCA" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_O3z_wQPAEeW8nIkIujhtCA" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_O3zYsQPAEeW8nIkIujhtCA"/>
+ <element xmi:type="uml:Generalization" href="design.uml#_O3Yh8APAEeW8nIkIujhtCA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_O3zYsgPAEeW8nIkIujhtCA" points="[-62, 0, -75, 42]$[-62, -17, -75, 25]$[35, -17, 22, 25]$[35, -42, 22, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_O492UAPAEeW8nIkIujhtCA" id="(0.7801047120418848,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_O4-dYAPAEeW8nIkIujhtCA" id="(0.3333333333333333,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_PtHQEAPAEeW8nIkIujhtCA" type="4002" source="_IKprkAO9EeW8nIkIujhtCA" target="_gMZNUAO9EeW8nIkIujhtCA" routing="Tree">
+ <children xmi:type="notation:DecorationNode" xmi:id="_PtH3IAPAEeW8nIkIujhtCA" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_PtH3IQPAEeW8nIkIujhtCA" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_PtHQEQPAEeW8nIkIujhtCA"/>
+ <element xmi:type="uml:Generalization" href="design.uml#_PstAYAPAEeW8nIkIujhtCA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_PtHQEgPAEeW8nIkIujhtCA" points="[0, 0, 65, 39]$[0, -14, 65, 25]$[-126, -14, -61, 25]$[-126, -39, -61, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Pt5TMAPAEeW8nIkIujhtCA" id="(0.4659090909090909,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Pt5TMQPAEeW8nIkIujhtCA" id="(0.9621212121212122,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_Qfo5MAPAEeW8nIkIujhtCA" type="4002" source="_2XCDgAO9EeW8nIkIujhtCA" target="_gMZNUAO9EeW8nIkIujhtCA" routing="Tree">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Qfo5MwPAEeW8nIkIujhtCA" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Qfo5NAPAEeW8nIkIujhtCA" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_Qfo5MQPAEeW8nIkIujhtCA"/>
+ <element xmi:type="uml:Generalization" href="design.uml#_QfP3oAPAEeW8nIkIujhtCA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Qfo5MgPAEeW8nIkIujhtCA" points="[64, 0, 282, 47]$[64, -13, 282, 34]$[-284, -13, -66, 34]$[-284, -38, -66, 9]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_QgzW0APAEeW8nIkIujhtCA" id="(0.11299435028248588,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_QgzW0QPAEeW8nIkIujhtCA" id="(1.0,0.82)"/>
+ </edges>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_kCCKAM7eEeOkpJkbnruUGQ" type="PapyrusUMLClassDiagram" name="comment" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_lBxvwM7eEeOkpJkbnruUGQ" type="2012">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_qpb70M7eEeOkpJkbnruUGQ" source="PapyrusHyperLink_Page" references="_xae5MM7bEeOkpJkbnruUGQ">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qpb70c7eEeOkpJkbnruUGQ" key="tooltip_text" value="Structure"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qpb70s7eEeOkpJkbnruUGQ" key="pageName" value="PapyrusHyperLink_Page"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qpb7087eEeOkpJkbnruUGQ" key="is_default_navigation" value="false"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lByW0M7eEeOkpJkbnruUGQ" type="5038"/>
+ <element xmi:type="uml:Comment" href="design.uml#_j3s-wM7dEeOkpJkbnruUGQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lBxvwc7eEeOkpJkbnruUGQ" x="39" y="27"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_HQUvIAOuEeWytIRHPc2H8Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_HQUvIQOuEeWytIRHPc2H8Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_HQUvIwOuEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Comment" href="design.uml#_j3s-wM7dEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_HQUvIgOuEeWytIRHPc2H8Q" x="239" y="27"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_kCCKAc7eEeOkpJkbnruUGQ"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_kCCKAs7eEeOkpJkbnruUGQ">
+ <owner xmi:type="uml:Model" href="design.uml#_lNLnZsbvEeO9CYUoXDRplw"/>
+ </styles>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_HPu5QAOuEeWytIRHPc2H8Q" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <element xmi:type="uml:Model" href="design.uml#_lNLnZsbvEeO9CYUoXDRplw"/>
+ <edges xmi:type="notation:Connector" xmi:id="_HQUvJAOuEeWytIRHPc2H8Q" type="StereotypeCommentLink" source="_lBxvwM7eEeOkpJkbnruUGQ" target="_HQUvIAOuEeWytIRHPc2H8Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_HQUvJQOuEeWytIRHPc2H8Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_HQVWMAOuEeWytIRHPc2H8Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Comment" href="design.uml#_j3s-wM7dEeOkpJkbnruUGQ"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_HQUvJgOuEeWytIRHPc2H8Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_HQUvJwOuEeWytIRHPc2H8Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_HQUvKAOuEeWytIRHPc2H8Q"/>
+ </edges>
+ </notation:Diagram>
+ <css:ModelStyleSheets xmi:id="_aoJ78AOtEeWytIRHPc2H8Q">
+ <stylesheets xmi:type="css:EmbeddedStyleSheet" xmi:id="_v3NyUAO7EeW8nIkIujhtCA" label="canonical_views" content=".synchXXX { canonical: true }"/>
+ </css:ModelStyleSheets>
+</xmi:XMI>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/resource/model.uml b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/design.uml
index 57a5ae35815..d1dbfa3a912 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/resource/model.uml
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/design.uml
@@ -1,789 +1,757 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ADL4Eclipse="http:///schemas/ADL4Eclipse/_jDF0YNT6EeKj0Lzrn2trlQ/2" xmlns:Document="http:///schemas/Document/_qR4REMn0EeO9CYUoXDRplw/0" xmlns:ModuleLayer="http://OSGI/schemas/ModuleLayer/_0xHxU4DEEeKQG4TlBAn6bg/3" xmlns:Requirements="http://www.eclipse.org/papyrus/0.7.0/SysML/Requirements" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:structure="http://DeveloperProcess/schemas/structure/_VA9p4McPEeO9CYUoXDRplw/1" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http:///schemas/ADL4Eclipse/_jDF0YNT6EeKj0Lzrn2trlQ/2 pathmap://ADL4ECLIPSE_PROFILES/adl4eclipse.profile.uml#_jDF0YdT6EeKj0Lzrn2trlQ http:///schemas/Document/_qR4REMn0EeO9CYUoXDRplw/0 pathmap://DEVELOPER_PROFILES/Document.profile.uml#_qR44IMn0EeO9CYUoXDRplw http://OSGI/schemas/ModuleLayer/_0xHxU4DEEeKQG4TlBAn6bg/3 pathmap://OSGI_PROFILES/osgi.profile.uml#_0xRiUIDEEeKQG4TlBAn6bg http://www.eclipse.org/papyrus/0.7.0/SysML/Requirements http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements http://DeveloperProcess/schemas/structure/_VA9p4McPEeO9CYUoXDRplw/1 pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_VA-4AMcPEeO9CYUoXDRplw">
- <uml:Model xmi:id="_lNLnYMbvEeO9CYUoXDRplw" name="SynchronizeView">
- <ownedComment xmi:type="uml:Comment" xmi:id="_gP184MofEeO3DsHezUU9Sg">
- <body>The goal is to enable a strong synchronization between visual elements displayed in the diagram with elements contained in the model. &#xD;
-This mechanism can be added locally for each element by using CSS. &#xD;
-For example, you would like to see: &#xD;
-- synchronize compartment of enumeration literal for all enumeration. &#xD;
-- synchronize compartment of attributes and operation for all class stereotyped ….&#xD;
-This fucntionality is associated to the task 433206.&#xD;
-</body>
- </ownedComment>
- <packageImport xmi:type="uml:PackageImport" xmi:id="_lNLnYcbvEeO9CYUoXDRplw">
- <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
- </packageImport>
- <packagedElement xmi:type="uml:Model" xmi:id="_lNLnYsbvEeO9CYUoXDRplw" name="Requirements">
- <packagedElement xmi:type="uml:Class" xmi:id="_W7DF0MohEeO3DsHezUU9Sg" name="LocalSynchronization"/>
- <packagedElement xmi:type="uml:Class" xmi:id="_9DAe4MoiEeO3DsHezUU9Sg" name="CSSIntegration"/>
- <packagedElement xmi:type="uml:Class" xmi:id="_WWPdsMojEeO3DsHezUU9Sg" name="CustomSynchronization"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Model" xmi:id="_lNLnY8bvEeO9CYUoXDRplw" name="UseCases">
- <packagedElement xmi:type="uml:Abstraction" xmi:id="_lNLnZMbvEeO9CYUoXDRplw" name="useCasesAbstraction" client="_lNLnY8bvEeO9CYUoXDRplw" supplier="_lNLnYsbvEeO9CYUoXDRplw"/>
- <packagedElement xmi:type="uml:Component" xmi:id="_lNLnZcbvEeO9CYUoXDRplw" name="Synchronization" useCase="_O8koEMcbEeOenbI5XqwJvQ _zqMFoMozEeO3DsHezUU9Sg _l5cVwMo3EeOzTpunJ7qmNw">
- <ownedUseCase xmi:type="uml:UseCase" xmi:id="_O8koEMcbEeOenbI5XqwJvQ" name="Add an element in the model" subject="_lNLnZcbvEeO9CYUoXDRplw">
- <ownedComment xmi:type="uml:Comment" xmi:id="_XBXZIMo1EeO3DsHezUU9Sg">
- <body>When an user adds an element in the model, the synchronization mechanism try to add in the current diagram the view that correspond to the semantic element&#xD;
-The difficulty of this mechanism is to parameter the synchronization.&#xD;
-By default, the synchronizatiopn is based on ' owned element'role. When you add an element, the graphical element that correponds to the owner try to display it in the diagram. &#xD;
-But some cases are not interesting. For example in the composite diagram, displaying parts in part correspond to part of the type, not directly part of part.</body>
- </ownedComment>
- </ownedUseCase>
- <ownedUseCase xmi:type="uml:UseCase" xmi:id="_zqMFoMozEeO3DsHezUU9Sg" name="Move an element" subject="_lNLnZcbvEeO9CYUoXDRplw">
- <ownedComment xmi:type="uml:Comment" xmi:id="_a-G7gMo1EeO3DsHezUU9Sg">
- <body>When a element is moved, the synchronization mechanism must to create graphically the element to each diagram.&#xD;
-</body>
- </ownedComment>
- </ownedUseCase>
- <ownedUseCase xmi:type="uml:UseCase" xmi:id="_l5cVwMo3EeOzTpunJ7qmNw" name="Set synchronization enable" subject="_lNLnZcbvEeO9CYUoXDRplw">
- <ownedComment xmi:type="uml:Comment" xmi:id="_vxFwUMo3EeOzTpunJ7qmNw">
- <body>The user can set enable the synchronization for a set of graphical elements.&#xD;
-</body>
- </ownedComment>
- </ownedUseCase>
- <packagedElement xmi:type="uml:UseCase" xmi:id="_QqgwkMcbEeOenbI5XqwJvQ" name="Remove an element from the model">
- <ownedComment xmi:type="uml:Comment" xmi:id="_bGhQoMo1EeO3DsHezUU9Sg">
- <body>When the element is removed, the corresponding graphical element must be removed.</body>
- </ownedComment>
- </packagedElement>
- </packagedElement>
- <packagedElement xmi:type="uml:Actor" xmi:id="_g2Kl8MozEeO3DsHezUU9Sg" name="User"/>
- <packagedElement xmi:type="uml:Association" xmi:id="_1pkjcMozEeO3DsHezUU9Sg" name="A_user_add an element in the model" memberEnd="_1pkjccozEeO3DsHezUU9Sg _1pkjdMozEeO3DsHezUU9Sg">
- <ownedEnd xmi:type="uml:Property" xmi:id="_1pkjccozEeO3DsHezUU9Sg" name="user" type="_g2Kl8MozEeO3DsHezUU9Sg" association="_1pkjcMozEeO3DsHezUU9Sg">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_1pkjcsozEeO3DsHezUU9Sg" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_1pkjc8ozEeO3DsHezUU9Sg" value="1"/>
- </ownedEnd>
- <ownedEnd xmi:type="uml:Property" xmi:id="_1pkjdMozEeO3DsHezUU9Sg" name="add an element in the model" type="_O8koEMcbEeOenbI5XqwJvQ" association="_1pkjcMozEeO3DsHezUU9Sg">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_1pkjdcozEeO3DsHezUU9Sg" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_1pkjdsozEeO3DsHezUU9Sg" value="1"/>
- </ownedEnd>
- </packagedElement>
- <packagedElement xmi:type="uml:Association" xmi:id="_2PwZsMozEeO3DsHezUU9Sg" name="A_user_remove an element from the model" memberEnd="_2PwZscozEeO3DsHezUU9Sg _2PwZtMozEeO3DsHezUU9Sg">
- <ownedEnd xmi:type="uml:Property" xmi:id="_2PwZscozEeO3DsHezUU9Sg" name="user" type="_g2Kl8MozEeO3DsHezUU9Sg" association="_2PwZsMozEeO3DsHezUU9Sg">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_2PwZssozEeO3DsHezUU9Sg" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_2PwZs8ozEeO3DsHezUU9Sg" value="1"/>
- </ownedEnd>
- <ownedEnd xmi:type="uml:Property" xmi:id="_2PwZtMozEeO3DsHezUU9Sg" name="remove an element from the model" type="_QqgwkMcbEeOenbI5XqwJvQ" association="_2PwZsMozEeO3DsHezUU9Sg">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_2PwZtcozEeO3DsHezUU9Sg" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_2PwZtsozEeO3DsHezUU9Sg" value="1"/>
- </ownedEnd>
- </packagedElement>
- <packagedElement xmi:type="uml:Association" xmi:id="_2zHlcMozEeO3DsHezUU9Sg" name="A_user_move an element" memberEnd="_2zHlccozEeO3DsHezUU9Sg _2zHldMozEeO3DsHezUU9Sg">
- <ownedEnd xmi:type="uml:Property" xmi:id="_2zHlccozEeO3DsHezUU9Sg" name="user" type="_g2Kl8MozEeO3DsHezUU9Sg" association="_2zHlcMozEeO3DsHezUU9Sg">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_2zHlcsozEeO3DsHezUU9Sg" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_2zHlc8ozEeO3DsHezUU9Sg" value="1"/>
- </ownedEnd>
- <ownedEnd xmi:type="uml:Property" xmi:id="_2zHldMozEeO3DsHezUU9Sg" name="move an element" type="_zqMFoMozEeO3DsHezUU9Sg" association="_2zHlcMozEeO3DsHezUU9Sg">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_2zHldcozEeO3DsHezUU9Sg" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_2zHldsozEeO3DsHezUU9Sg" value="1"/>
- </ownedEnd>
- </packagedElement>
- <packagedElement xmi:type="uml:Association" xmi:id="_rvVLEMo3EeOzTpunJ7qmNw" name="A_user_set synchronization enable" memberEnd="_rvVLEco3EeOzTpunJ7qmNw _rvVLFMo3EeOzTpunJ7qmNw">
- <ownedEnd xmi:type="uml:Property" xmi:id="_rvVLEco3EeOzTpunJ7qmNw" name="user" type="_g2Kl8MozEeO3DsHezUU9Sg" association="_rvVLEMo3EeOzTpunJ7qmNw">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_rvVLEso3EeOzTpunJ7qmNw" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_rvVLE8o3EeOzTpunJ7qmNw" value="1"/>
- </ownedEnd>
- <ownedEnd xmi:type="uml:Property" xmi:id="_rvVLFMo3EeOzTpunJ7qmNw" name="set synchronization enable" type="_l5cVwMo3EeOzTpunJ7qmNw" association="_rvVLEMo3EeOzTpunJ7qmNw">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_rvVLFco3EeOzTpunJ7qmNw" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_rvVLFso3EeOzTpunJ7qmNw" value="1"/>
- </ownedEnd>
- </packagedElement>
- </packagedElement>
- <packagedElement xmi:type="uml:Model" xmi:id="_lNLnZsbvEeO9CYUoXDRplw" name="Design">
- <ownedComment xmi:type="uml:Comment" xmi:id="_9I1OUM7pEeOVs4zXLxqLmw">
- <body>The desing consists into one plugin org.eclipse.papyrus.uml.diagram.synchronizeview.&#xD;
-It contains an editpolicy provider and an extension point</body>
- </ownedComment>
- <ownedComment xmi:type="uml:Comment" xmi:id="_j3s-wM7dEeOkpJkbnruUGQ">
- <body>The edit policy SynchronizeViewEdipolicty is installed by the SynchronizeEditPolicyProvider on:&#xD;
- - DiagramEditPart (to synchronize content of diagram)&#xD;
- - CompartmentEditPart (to synchronize content of compartment)&#xD;
- - IBorderedShapeEditPart (to synchronize content of borderedElement as port....)&#xD;
-&#xD;
-ThisEditPolicy is used to allowing synchronization between graphical element and element in the model&#xD;
- It is based on canonical editpolicy but it has several differencies:&#xD;
- - View Service cannot be called. To call it we need to get the identifier of the child that could be place in compartment. I is not possible to find in a generic way&#xD;
- --> link to each Diagram Updater, and moreover some child has been created by custom code. In fact, the hierarchy of visual element must follow the hierachy of semantic element.&#xD;
- --> this is not the case so the Diagram updater generated from the gmfgen has not the good info.&#xD;
-&#xD;
-So to an extension point has been added to let the developer to specify semantic element that play children of a given editpart:&#xD;
- see the example:&#xD;
-&#xD;
-&#xD;
-The editpolicy try to refresh visual element. To do that it calls the method getSemanticChildrenList(). I llokf for accoss the extesnison point the corresponding 'SemantiChild' with the highest priority.&#xD;
-This object give the list of sementic element that could be children of the context of the given editpart.&#xD;
-&#xD;
-In the context of part, in the composite diagram, we can describe that children are ownedlement of the type of the part.&#xD;
-&#xD;
-Finally to allow the creation we base our work on the mechanism of the drop. (refreshSemanticChildrenByDrop)</body>
- </ownedComment>
- <ownedComment xmi:type="uml:Comment" xmi:id="_X4kYwMr3EeOxaZrLLxAqiw">
- <body>Remarks:&#xD;
-In order to install synchronization on element, views must have canonical style. So a migration is needed.&#xD;
-BasicCompartment becomes Compartment&#xD;
-Diagram and Shape mst have a style: so we need to add :&#xD;
- CanonicalStyle canonicalStyle=(CanonicalStyle)diagram.createStyle(NotationPackage.eINSTANCE.getCanonicalStyle());&#xD;
- canonicalStyle.setCanonical(false);</body>
- </ownedComment>
- <packagedElement xmi:type="uml:Abstraction" xmi:id="_lNLnZ8bvEeO9CYUoXDRplw" name="DesignAbstraction" client="_lNLnZsbvEeO9CYUoXDRplw" supplier="_lNLnY8bvEeO9CYUoXDRplw"/>
- <packagedElement xmi:type="uml:Component" xmi:id="_GhiFEM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.uml.diagram.synchronizeview">
- <ownedAttribute xmi:type="uml:Port" xmi:id="_Gs61sM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.editpolicyProviders"/>
- <packagedElement xmi:type="uml:Dependency" xmi:id="_GlxE0M7UEeOkpJkbnruUGQ" name="org.eclipse.ui" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_Glk3kM7UEeOkpJkbnruUGQ"/>
- <packagedElement xmi:type="uml:Dependency" xmi:id="_GmCxoM7UEeOkpJkbnruUGQ" name="org.eclipse.core.runtime" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_Gl0IIM7UEeOkpJkbnruUGQ"/>
- <packagedElement xmi:type="uml:Dependency" xmi:id="_GmbzMM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.common" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_GmF08M7UEeOkpJkbnruUGQ"/>
- <packagedElement xmi:type="uml:Dependency" xmi:id="_GnFTcM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_GmePcc7UEeOkpJkbnruUGQ"/>
- <packagedElement xmi:type="uml:Dependency" xmi:id="_GoXs4M7UEeOkpJkbnruUGQ" name="org.eclipse.gef" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_GnHvsc7UEeOkpJkbnruUGQ"/>
- <packagedElement xmi:type="uml:Dependency" xmi:id="_Gqo9wM7UEeOkpJkbnruUGQ" name="org.eclipse.uml2.uml" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_GqYfEM7UEeOkpJkbnruUGQ"/>
- <packagedElement xmi:type="uml:Dependency" xmi:id="_GrQBwM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_Gqqy8M7UEeOkpJkbnruUGQ"/>
- <packagedElement xmi:type="uml:Dependency" xmi:id="_Gr9zcM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_GrR28M7UEeOkpJkbnruUGQ"/>
- <packagedElement xmi:type="uml:Dependency" xmi:id="_GsjCQM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_GsAPsM7UEeOkpJkbnruUGQ"/>
- <packagedElement xmi:type="uml:Dependency" xmi:id="_GstaUM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.log" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_GslegM7UEeOkpJkbnruUGQ"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gs3LUM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.uml.diagram.synchronizeview.customization">
- <packagedElement xmi:type="uml:Interface" xmi:id="_ADvBkM7cEeOkpJkbnruUGQ" name="ISynchroSemanticChild">
- <ownedOperation xmi:type="uml:Operation" xmi:id="_giaTYM7cEeOkpJkbnruUGQ" name="getSemanticEObjectToListen"/>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_mbDhwM7cEeOkpJkbnruUGQ" name="getSynchroSemanticChild"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Class" xmi:id="_G0aEIM7cEeOkpJkbnruUGQ" name="SemanticChild">
- <ownedAttribute xmi:type="uml:Property" xmi:id="_7H_q4M7cEeOkpJkbnruUGQ" name="iSynchroSemanticChild" type="_ADvBkM7cEeOkpJkbnruUGQ" association="_7IAR8M7cEeOkpJkbnruUGQ">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_7H_q4c7cEeOkpJkbnruUGQ" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_7H_q4s7cEeOkpJkbnruUGQ" value="1"/>
- </ownedAttribute>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_swTzoM7cEeOkpJkbnruUGQ" name="getEditPart"/>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_utGQcM7cEeOkpJkbnruUGQ" name="getPriority"/>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_xPD24M7cEeOkpJkbnruUGQ" name="getSynchroSemanticChild"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Class" xmi:id="_LRsu0M7cEeOkpJkbnruUGQ" name="SynchroSemanticChildRegistry">
- <ownedAttribute xmi:type="uml:Property" xmi:id="_HV9ckM7dEeOkpJkbnruUGQ" name="semanticChild" type="_G0aEIM7cEeOkpJkbnruUGQ" association="_HV-qsM7dEeOkpJkbnruUGQ">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_HV9ckc7dEeOkpJkbnruUGQ"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_HV9cks7dEeOkpJkbnruUGQ" value="*"/>
- </ownedAttribute>
- <ownedOperation xmi:type="uml:Operation" xmi:id="__iRd0M7cEeOkpJkbnruUGQ" name="getInstance"/>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_DiGwcM7dEeOkpJkbnruUGQ" name="getSynchroSemanticChild"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Association" xmi:id="_7IAR8M7cEeOkpJkbnruUGQ" name="A_semanticChild_iSynchroSemanticChild_1" memberEnd="_7IAR8c7cEeOkpJkbnruUGQ _7H_q4M7cEeOkpJkbnruUGQ">
- <ownedEnd xmi:type="uml:Property" xmi:id="_7IAR8c7cEeOkpJkbnruUGQ" name="semanticChild" type="_G0aEIM7cEeOkpJkbnruUGQ" association="_7IAR8M7cEeOkpJkbnruUGQ">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_7IAR8s7cEeOkpJkbnruUGQ" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_7IAR887cEeOkpJkbnruUGQ" value="1"/>
- </ownedEnd>
- </packagedElement>
- <packagedElement xmi:type="uml:Association" xmi:id="_HV-qsM7dEeOkpJkbnruUGQ" name="A_synchroSemanticChildRegistry_semanticChild_1" memberEnd="_HV-qsc7dEeOkpJkbnruUGQ _HV9ckM7dEeOkpJkbnruUGQ">
- <ownedEnd xmi:type="uml:Property" xmi:id="_HV-qsc7dEeOkpJkbnruUGQ" name="synchroSemanticChildRegistry" type="_LRsu0M7cEeOkpJkbnruUGQ" association="_HV-qsM7dEeOkpJkbnruUGQ">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_HV-qss7dEeOkpJkbnruUGQ" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_HV-qs87dEeOkpJkbnruUGQ" value="1"/>
- </ownedEnd>
- </packagedElement>
- </packagedElement>
- <packagedElement xmi:type="uml:Dependency" xmi:id="_Gs8q4M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.editpolicyProviders" client="_Gs61sM7UEeOkpJkbnruUGQ" supplier="_Gs8D0M7UEeOkpJkbnruUGQ"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_hGz2YM7bEeOkpJkbnruUGQ" name="org.eclipse.papyrus.uml.diagram.synchronizeview.editpolicy">
- <packagedElement xmi:type="uml:Class" xmi:id="_0-fygM7bEeOkpJkbnruUGQ" name="SynchronizeViewEditPolicy">
- <ownedOperation xmi:type="uml:Operation" xmi:id="_YbQwoM7dEeOkpJkbnruUGQ" name="getSemanticChildrenList"/>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_bqP1IM7dEeOkpJkbnruUGQ" name="refreshSemanticChildrenByDrop"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Dependency" xmi:id="_Q1hHQM7dEeOkpJkbnruUGQ" name="Dependency1" client="_0-fygM7bEeOkpJkbnruUGQ" supplier="_LRsu0M7cEeOkpJkbnruUGQ"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Package" xmi:id="_i84nMM7bEeOkpJkbnruUGQ" name="org.eclipse.papyrus.uml.diagram.synchronizeview.provider">
- <packagedElement xmi:type="uml:Class" xmi:id="_7XyP0M7bEeOkpJkbnruUGQ" name="SynchronizeEditPolicyProvider">
- <ownedAttribute xmi:type="uml:Property" xmi:id="_PaKZAM7cEeOkpJkbnruUGQ" name="synchronizeViewEditPolicy" type="_0-fygM7bEeOkpJkbnruUGQ" association="_PaLAEM7cEeOkpJkbnruUGQ">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_PaKZAc7cEeOkpJkbnruUGQ" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_PaKZAs7cEeOkpJkbnruUGQ" value="1"/>
- </ownedAttribute>
- </packagedElement>
- <packagedElement xmi:type="uml:Association" xmi:id="_PaLAEM7cEeOkpJkbnruUGQ" name="A_synchronizeEditPolicyProvider_synchronizeViewEditPolicy_1" memberEnd="_PaLAEc7cEeOkpJkbnruUGQ _PaKZAM7cEeOkpJkbnruUGQ">
- <ownedEnd xmi:type="uml:Property" xmi:id="_PaLAEc7cEeOkpJkbnruUGQ" name="synchronizeEditPolicyProvider" type="_7XyP0M7bEeOkpJkbnruUGQ" association="_PaLAEM7cEeOkpJkbnruUGQ">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_PaLAEs7cEeOkpJkbnruUGQ" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_PaLAE87cEeOkpJkbnruUGQ" value="1"/>
- </ownedEnd>
- </packagedElement>
- </packagedElement>
- </packagedElement>
- <packagedElement xmi:type="uml:Component" xmi:id="_Glk3kM7UEeOkpJkbnruUGQ" name="org.eclipse.ui">
- <packagedElement xmi:type="uml:Package" xmi:id="_GlszYM7UEeOkpJkbnruUGQ" name="org.eclipse.ui.internal"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Component" xmi:id="_Gl0IIM7UEeOkpJkbnruUGQ" name="org.eclipse.core.runtime">
- <packagedElement xmi:type="uml:Package" xmi:id="_Gl610M7UEeOkpJkbnruUGQ" name="org.eclipse.core.internal.preferences.legacy"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gl9SEM7UEeOkpJkbnruUGQ" name="org.eclipse.core.internal.runtime"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gl_uUM7UEeOkpJkbnruUGQ" name="org.eclipse.core.runtime"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Component" xmi:id="_GmF08M7UEeOkpJkbnruUGQ" name="org.eclipse.emf.common">
- <packagedElement xmi:type="uml:Package" xmi:id="_GmMioM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.common"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GmO-4M7UEeOkpJkbnruUGQ" name="org.eclipse.emf.common.archive"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GmRbIM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.common.command"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GmT3YM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.common.notify"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GmWToM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.common.notify.impl"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GmYv4M7UEeOkpJkbnruUGQ" name="org.eclipse.emf.common.util"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Component" xmi:id="_GmePcc7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore">
- <packagedElement xmi:type="uml:Package" xmi:id="_GmlkMM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GmoAcM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.impl"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GmqcsM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.plugin"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gms48M7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.resource"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GmvVMM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.resource.impl"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GmxxcM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.util"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gm0NsM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.xml.namespace"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gm2p8M7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.xml.namespace.impl"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gm5GMM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.xml.namespace.util"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gm7icM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.xml.type"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gm9Xoc7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.xml.type.impl"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gm_z4c7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.xml.type.internal"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GnCQIc7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.xml.type.util"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Component" xmi:id="_GnHvsc7UEeOkpJkbnruUGQ" name="org.eclipse.gef">
- <packagedElement xmi:type="uml:Package" xmi:id="_GnPEcM7UEeOkpJkbnruUGQ" name="org.eclipse.gef"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GnQ5oc7UEeOkpJkbnruUGQ" name="org.eclipse.gef.commands"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GnTV4c7UEeOkpJkbnruUGQ" name="org.eclipse.gef.dnd"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GnVyIM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.editparts"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GnYOYM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.editpolicies"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GnaqoM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.handles"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GndG4M7UEeOkpJkbnruUGQ" name="org.eclipse.gef.internal"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GnfjIM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.internal.icons"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gnh_YM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.internal.ui.palette"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GnkboM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.internal.ui.palette.editparts"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gnm34M7UEeOkpJkbnruUGQ" name="org.eclipse.gef.internal.ui.rulers"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GnpUIM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.palette"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GnrJUc7UEeOkpJkbnruUGQ" name="org.eclipse.gef.print"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GntlkM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.requests"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GnwB0M7UEeOkpJkbnruUGQ" name="org.eclipse.gef.rulers"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gnx3Ac7UEeOkpJkbnruUGQ" name="org.eclipse.gef.tools"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gn0TQM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.actions"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gn2vgM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.console"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gn4ksc7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.console.icons"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gn7A8c7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.palette"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gn-EQM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.palette.customize"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GoBHkM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.palette.editparts"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GoDj0c7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.parts"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GoGnIM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.properties"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GoJqcM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.rulers"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GoMtwM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.stackview"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GoPKAM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.stackview.icons"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GoSNUM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.views.palette"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GoUpkM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.util"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Component" xmi:id="_GoawMc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui">
- <ownedAttribute xmi:type="uml:Port" xmi:id="_Gs8D0M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.editpolicyProviders"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GoiE8M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GokhMc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.actions"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GonkgM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.commands"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GoqAwc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.dialogs.sortfilter"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GotEEM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.editparts"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GowHYM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.editpolicies"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GoyjoM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.figures"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Go0_4c7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.handles"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Go3cIc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.image"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Go6fcM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Go9iwM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.actions"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Go__Ac7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.commands"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GpDCUM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.dialogs"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GpGFoM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.dialogs.sortfilter"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GpIh4c7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.editparts"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GpLlMM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.editpolicies"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GpOogM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.figures"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GpREwM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.handles"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GpThAM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.l10n"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GpV9QM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.pagesetup"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GpYZgM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.parts"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GpaOsc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.properties"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gpcq8M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.requests"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GpfHMM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.resources"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GphjcM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.ruler"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gpj_sM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.ruler.commands"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gpl04M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.services.decorator"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GpnqEM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.services.editpart"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GppfQM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.services.editpolicy"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GprUcc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.services.layout"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GptwsM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.services.palette"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gpvl4M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.tools"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GpxbEc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.type"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GpzQQc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.util"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gp1sgM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.l10n"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gp3hsM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.label"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gp5W4c7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.layout"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gp7MEc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.menus"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gp9oUM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.parts"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gp_dgM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.preferences"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GqBSsM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.providers"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GqDH4M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.requests"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GqE9Ec7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.services.decorator"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GqGyQc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.services.editpart"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GqIncc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.services.editpolicy"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GqKcoM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.services.layout"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GqMR0M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.services.palette"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GqNf8c7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.tools"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GqPVIM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.type"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GqRKUM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.util"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GqSYcc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.view.factories"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GqUNoM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.view.factories.optimal"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Component" xmi:id="_GqYfEM7UEeOkpJkbnruUGQ" name="org.eclipse.uml2.uml">
- <packagedElement xmi:type="uml:Package" xmi:id="_Gqd-oM7UEeOkpJkbnruUGQ" name="org.eclipse.uml2.uml"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gqfz0M7UEeOkpJkbnruUGQ" name="org.eclipse.uml2.uml.internal.impl"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GqhpAM7UEeOkpJkbnruUGQ" name="org.eclipse.uml2.uml.internal.operations"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GqjeMM7UEeOkpJkbnruUGQ" name="org.eclipse.uml2.uml.internal.resource"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GqlTYM7UEeOkpJkbnruUGQ" name="org.eclipse.uml2.uml.resource"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GqnIkM7UEeOkpJkbnruUGQ" name="org.eclipse.uml2.uml.util"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Component" xmi:id="_Gqqy8M7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core">
- <packagedElement xmi:type="uml:Package" xmi:id="_GqwSgM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GqyHsM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.clipboard"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gqz84M7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.contentoutline"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gq1LAc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.editor"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gq3AMM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.editorsfactory"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gq41YM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.extension"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gq6Dgc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.extension.commands"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gq74sM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.extension.diagrameditor"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gq9t4M7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.lifecycleevents"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gq-8AM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.listenerservice"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GrAxMM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.markers"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GrB_Uc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.modelsetquery"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GrD0gM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.modelsetquery.impl"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GrFpsM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.multidiagram.actionbarcontributor"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GrG30c7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.resource"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GrItAM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.resource.additional"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GrKiMc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.resource.sasheditor"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GrMXYM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.services"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GrOMkM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.utils"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Component" xmi:id="_GrR28M7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common">
- <packagedElement xmi:type="uml:Package" xmi:id="_GrX9kM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GrZLsc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.adapter"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GrbA4M7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.commands"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Grc2EM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.commands.requests"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GreEMc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.databinding.custom"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Grf5YM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.decoration"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GrhHgc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.editpart"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gri8sM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Grkx4M7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.figure.edge"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GrmAAc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.figure.node"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Grn1MM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.handler"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GrpDUc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.helper"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Grq4gM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.listener"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GrstsM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.model"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Grt70c7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.preferences"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GrvxAM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.providers"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Grw_Ic7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.service.shape"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gry0UM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.snap"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gr0Ccc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.strategy"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gr13oM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.strategy.copy"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gr3Fwc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.strategy.paste"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gr468M7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.types"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gr6JEc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.undocontext"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_Gr7-QM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.utils"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Component" xmi:id="_GsAPsM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime">
- <packagedElement xmi:type="uml:Package" xmi:id="_GsGWUM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GsHkcc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.actions"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GsJZoM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.directedit"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GsLO0M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.directedit.locator"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GsMc8c7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.draw2d"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GsOSIM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.draw2d.labels"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GsQHUM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.edit.helpers"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GsRVcM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.edit.policies"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GsTKoM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.edit.policies.effect"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GsUYwc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.edit.policies.labels"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GsWN8M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.edit.policies.reparent"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GsXcEc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.ocl.tracker"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GsZRQM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.parsers"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GsbGcM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.part"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GscUkM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.providers"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GseJwM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.sheet"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GsfX4c7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.structure"/>
- <packagedElement xmi:type="uml:Package" xmi:id="_GshNEM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.update"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Component" xmi:id="_GslegM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.log">
- <packagedElement xmi:type="uml:Package" xmi:id="_GsrlIM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.log"/>
- </packagedElement>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_Gfrq8M7UEeOkpJkbnruUGQ">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_GhgP4M7UEeOkpJkbnruUGQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://ADL4ECLIPSE_PROFILES/adl4eclipse.profile.uml#_jDF0YdT6EeKj0Lzrn2trlQ"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://ADL4ECLIPSE_PROFILES/adl4eclipse.profile.uml#_nE1m0Hz7EeKfO4elN3J5Fw"/>
- </profileApplication>
- </packagedElement>
- <packagedElement xmi:type="uml:Model" xmi:id="_lNLnaMbvEeO9CYUoXDRplw" name="Test">
- <packagedElement xmi:type="uml:Dependency" xmi:id="_lNLnacbvEeO9CYUoXDRplw" name="Dependency1" client="_lNLnaMbvEeO9CYUoXDRplw" supplier="_lNLnY8bvEeO9CYUoXDRplw"/>
- <packagedElement xmi:type="uml:Dependency" xmi:id="_lNLnasbvEeO9CYUoXDRplw" name="Dependency2" client="_lNLnaMbvEeO9CYUoXDRplw" supplier="_lNLnZsbvEeO9CYUoXDRplw"/>
- </packagedElement>
- <packagedElement xmi:type="uml:Model" xmi:id="_YDedkM7vEeOVs4zXLxqLmw" name="Synchronize automatically between views element with related model element in the model">
- <ownedComment xmi:type="uml:Comment" xmi:id="_YDjWEM7vEeOVs4zXLxqLmw">
- <body>The goal is to enable a strong synchronization between visual elements displayed in the diagram with elements contained in the model. &#xD;
-This mechanism can be added locally for each element by using CSS. &#xD;
-For example, you would like to see: &#xD;
-- synchronize compartment of enumeration literal for all enumeration. &#xD;
-- synchronize compartment of attributes and operation for all class stereotyped ….&#xD;
-This fucntionality is associated to the task 433206.&#xD;
-</body>
- </ownedComment>
- <packagedElement xmi:type="uml:Package" xmi:id="_YDnAcM7vEeOVs4zXLxqLmw" name="Requirements">
- <ownedComment xmi:type="uml:Comment" xmi:id="_YDsgAM7vEeOVs4zXLxqLmw">
- <body>- LocalSynchronization (id=Req001):
- The synchronization shall be local for each graphical element for example: package compartment, attribute compartment...</body>
- </ownedComment>
- <ownedComment xmi:type="uml:Comment" xmi:id="_YDxYgM7vEeOVs4zXLxqLmw">
- <body>- CSSIntegration (id=Req002):
- The synchronization shall be parameterized by CSS, by using a keyword and a value.</body>
- </ownedComment>
- <ownedComment xmi:type="uml:Comment" xmi:id="_YD1C4M7vEeOVs4zXLxqLmw">
- <body>- CustomSynchronization (id=Req003):
- For an graphical element, it shall be possible to custom the synchonization</body>
- </ownedComment>
- </packagedElement>
- <packagedElement xmi:type="uml:Package" xmi:id="_YD3fIM7vEeOVs4zXLxqLmw" name="Use Cases">
- <ownedComment xmi:type="uml:Comment" xmi:id="_YE4LwM7vEeOVs4zXLxqLmw">
- <body>UseCaseDiagram</body>
- </ownedComment>
- <packagedElement xmi:type="uml:Package" xmi:id="_YE7PEM7vEeOVs4zXLxqLmw" name="Add an element in the model">
- <ownedComment xmi:type="uml:Comment" xmi:id="_YE9rUM7vEeOVs4zXLxqLmw">
- <body>When an user adds an element in the model, the synchronization mechanism try to add in the current diagram the view that correspond to the semantic element&#xD;
-The difficulty of this mechanism is to parameter the synchronization.&#xD;
-By default, the synchronizatiopn is based on ' owned element'role. When you add an element, the graphical element that correponds to the owner try to display it in the diagram. &#xD;
-But some cases are not interesting. For example in the composite diagram, displaying parts in part correspond to part of the type, not directly part of part.</body>
- </ownedComment>
- </packagedElement>
- <packagedElement xmi:type="uml:Package" xmi:id="_YFAuoM7vEeOVs4zXLxqLmw" name="Move an element">
- <ownedComment xmi:type="uml:Comment" xmi:id="_YFDK4M7vEeOVs4zXLxqLmw">
- <body>When a element is moved, the synchronization mechanism must to create graphically the element to each diagram.&#xD;
-</body>
- </ownedComment>
- </packagedElement>
- <packagedElement xmi:type="uml:Package" xmi:id="_YFFnIM7vEeOVs4zXLxqLmw" name="Set synchronization enable">
- <ownedComment xmi:type="uml:Comment" xmi:id="_YFIDYM7vEeOVs4zXLxqLmw">
- <body>The user can set enable the synchronization for a set of graphical elements.&#xD;
-</body>
- </ownedComment>
- </packagedElement>
- <packagedElement xmi:type="uml:Package" xmi:id="_YFJ4kc7vEeOVs4zXLxqLmw" name="Remove an element from the model">
- <ownedComment xmi:type="uml:Comment" xmi:id="_YFMU0M7vEeOVs4zXLxqLmw">
- <body>When the element is removed, the corresponding graphical element must be removed.</body>
- </ownedComment>
- </packagedElement>
- </packagedElement>
- <packagedElement xmi:type="uml:Package" xmi:id="_YFPYIM7vEeOVs4zXLxqLmw" name="Design">
- <ownedComment xmi:type="uml:Comment" xmi:id="_YGwbEM7vEeOVs4zXLxqLmw">
- <body>ArchitectureOverview</body>
- </ownedComment>
- <ownedComment xmi:type="uml:Comment" xmi:id="_YGzeYM7vEeOVs4zXLxqLmw">
- <body>The desing consists into one plugin org.eclipse.papyrus.uml.diagram.synchronizeview.&#xD;
-I contains a editpolicy provider and an extension point</body>
- </ownedComment>
- <ownedComment xmi:type="uml:Comment" xmi:id="_YJaGcM7vEeOVs4zXLxqLmw">
- <body>Structure</body>
- </ownedComment>
- <ownedComment xmi:type="uml:Comment" xmi:id="_YJdJwM7vEeOVs4zXLxqLmw">
- <body>The edit policy SynchronizeViewEdipolicty is installed by the SynchronizeEditPolicyProvider on:&#xD;
- - DiagramEditPart (to synchronize content of diagram)&#xD;
- - CompartmentEditPart (to synchronize content of compartment)&#xD;
- - IBorderedShapeEditPart (to synchronize content of borderedElement as port....)&#xD;
-&#xD;
-ThisEditPolicy is used to allowing synchronization between graphical element and element in the model&#xD;
- It is based on canonical editpolicy but it has several differencies:&#xD;
- - View Service cannot be called. To call it we need to get the identifier of the child that could be place in compartment. I is not possible to find in a generic way&#xD;
- --> link to each Diagram Updater, and moreover some child has been created by custom code. In fact, the hierarchy of visual element must follow the hierachy of semantic element.&#xD;
- --> this is not the case so the Diagram updater generated from the gmfgen has not the good info.&#xD;
-&#xD;
-So to an extension point has been added to let the developer to specify semantic element that play children of a given editpart:&#xD;
- see the example:&#xD;
-&lt;extension&#xD;
- point=&quot;org.eclipse.papyrus.uml.diagram.synchronizeview.semanticchild&quot;>&#xD;
- &lt;semanticChild&#xD;
- editPart=&quot;org.eclipse.papyrus.uml.diagram.composite.edit.parts.PropertyPartCompartmentEditPartCN&quot;&#xD;
- getSemanticChildren=&quot;org.eclipse.papyrus.uml.diagram.composite.SynchroSemanticForPopertyPartCompartment&quot;>&#xD;
- &lt;/semanticChild>&#xD;
-&lt;/extension&#xD;
-&#xD;
-The editpolicy try to refresh visual element. To do that it calls the method getSemanticChildrenList(). I llokf for accoss the extesnison point the corresponding 'SemantiChild' with the highest priority.&#xD;
-This object give the list of sementic element that could be children of the context of the given editpart.&#xD;
-&#xD;
-In the context of part, in the composite diagram, we can describe that children are ownedlement of the type of the part.&#xD;
-&#xD;
-Finally to allow the creation we base our work on the mechanism of the drop. (refreshSemanticChildrenByDrop)</body>
- </ownedComment>
- <ownedComment xmi:type="uml:Comment" xmi:id="_YJfmAM7vEeOVs4zXLxqLmw">
- <body>In order to install synchronization on element, views must have canonical style. So a migration is needed.&#xD;
-BasicCompartment becomes Compartment&#xD;
-Diagram and Shape mst have a style: so we need to add :&#xD;
- CanonicalStyle canonicalStyle=(CanonicalStyle)diagram.createStyle(NotationPackage.eINSTANCE.getCanonicalStyle());&#xD;
- canonicalStyle.setCanonical(false);</body>
- </ownedComment>
- </packagedElement>
- </packagedElement>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_lNLna8bvEeO9CYUoXDRplw">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_lNLnbMbvEeO9CYUoXDRplw" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_VA6mkMcPEeO9CYUoXDRplw"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_kWqjAMbXEeO09JBvNFZRNw"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_lNLnbcbvEeO9CYUoXDRplw">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_lNLnbsbvEeO9CYUoXDRplw" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_VA-4AMcPEeO9CYUoXDRplw"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_qCT3MMbXEeO09JBvNFZRNw"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_lNLnb8bvEeO9CYUoXDRplw">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_lNLncMbvEeO9CYUoXDRplw" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_VBAtMccPEeO9CYUoXDRplw"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_2LNtQMbYEeO09JBvNFZRNw"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_zqiBwMbvEeO9CYUoXDRplw">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_zq7DUMbvEeO9CYUoXDRplw" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_OOJC4LX8EduFmqQsrNB9lw"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_FGuXIMn2EeOU_InmtzG_ow">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_FJEggMn2EeOU_InmtzG_ow" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/Document.profile.uml#_qR44IMn0EeO9CYUoXDRplw"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/Document.profile.uml#_D0JcUMnzEeO9CYUoXDRplw"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_DbpSMM7UEeOkpJkbnruUGQ">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_DdivoM7UEeOkpJkbnruUGQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://ADL4ECLIPSE_PROFILES/adl4eclipse.profile.uml#_jDF0YdT6EeKj0Lzrn2trlQ"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://ADL4ECLIPSE_PROFILES/adl4eclipse.profile.uml#_nE1m0Hz7EeKfO4elN3J5Fw"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_Ddkk0M7UEeOkpJkbnruUGQ">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_DfYisM7UEeOkpJkbnruUGQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://OSGI_PROFILES/osgi.profile.uml#_0xHxUYDEEeKQG4TlBAn6bg"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://OSGI_PROFILES/osgi.profile.uml#_OKU8EHtxEeKcL-wrhM9ICg"/>
- </profileApplication>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_DfaX4M7UEeOkpJkbnruUGQ">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_DhHBAM7UEeOkpJkbnruUGQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://OSGI_PROFILES/osgi.profile.uml#_0xRiUIDEEeKQG4TlBAn6bg"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://OSGI_PROFILES/osgi.profile.uml#_YbhfEHtxEeKcL-wrhM9ICg"/>
- </profileApplication>
- </uml:Model>
- <structure:Project xmi:id="_lNODoMbvEeO9CYUoXDRplw" author="P. Tessier (CEA LIST)" version="0.1" base_Model="_lNLnYMbvEeO9CYUoXDRplw" title="Synchronize automatically between views element with related model element in the model"/>
- <structure:Requirements xmi:id="_lNOqsMbvEeO9CYUoXDRplw" base_Model="_lNLnYsbvEeO9CYUoXDRplw"/>
- <structure:UseCases xmi:id="_lNOqscbvEeO9CYUoXDRplw" base_Model="_lNLnY8bvEeO9CYUoXDRplw"/>
- <structure:Design xmi:id="_lNOqssbvEeO9CYUoXDRplw" base_Model="_lNLnZsbvEeO9CYUoXDRplw"/>
- <structure:Tests xmi:id="_lNOqs8bvEeO9CYUoXDRplw" base_Model="_lNLnaMbvEeO9CYUoXDRplw"/>
- <structure:UserDoc xmi:id="_uqNUsMofEeO3DsHezUU9Sg" base_Comment="_gP184MofEeO3DsHezUU9Sg"/>
- <Requirements:Requirement xmi:id="_W7IlYMohEeO3DsHezUU9Sg" text="The synchronization shall be local for each graphical element for example: package compartment, attribute compartment..." id="Req001" base_Class="_W7DF0MohEeO3DsHezUU9Sg"/>
- <Requirements:Requirement xmi:id="_9DBtAMoiEeO3DsHezUU9Sg" text="The synchronization shall be parameterized by CSS, by using a keyword and a value." id="Req002" base_Class="_9DAe4MoiEeO3DsHezUU9Sg"/>
- <Requirements:Requirement xmi:id="_WWQr0MojEeO3DsHezUU9Sg" text="For an graphical element, it shall be possible to custom the synchonization" id="Req003" base_Class="_WWPdsMojEeO3DsHezUU9Sg"/>
- <structure:DeveloperDoc xmi:id="_aDgUcMo1EeO3DsHezUU9Sg" base_Comment="_XBXZIMo1EeO3DsHezUU9Sg"/>
- <structure:DeveloperDoc xmi:id="_c407wMo1EeO3DsHezUU9Sg" base_Comment="_a-G7gMo1EeO3DsHezUU9Sg"/>
- <structure:DeveloperDoc xmi:id="_d06JgMo1EeO3DsHezUU9Sg" base_Comment="_bGhQoMo1EeO3DsHezUU9Sg"/>
- <structure:DeveloperDoc xmi:id="_ym9xQMo3EeOzTpunJ7qmNw" base_Comment="_vxFwUMo3EeOzTpunJ7qmNw"/>
- <structure:DeveloperDoc xmi:id="_ZWAAEMr3EeOxaZrLLxAqiw" base_Comment="_X4kYwMr3EeOxaZrLLxAqiw"/>
- <ADL4Eclipse:Plugin xmi:id="_GhlIYM7UEeOkpJkbnruUGQ" hasLazyActivationPolicy="true" activator="org.eclipse.papyrus.uml.diagram.synchronizeview.Activator" description="The goal of this plugin is add the fucntionality to synchronize elements in diagram. More details (models and .html) has been store in the docs directory." localization="plugin" requiredExecutionEnvironment="JavaSE-1.6" symbolicName="org.eclipse.papyrus.uml.diagram.synchronizeview" vendor="Eclipse Modeling Project" version="1.0.0.qualifier" exportPackage="_Gs5AgM7UEeOkpJkbnruUGQ" base_Component="_GhiFEM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.uml.diagram.synchronizeview" isIncubation="true"/>
- <ADL4Eclipse:Plugin xmi:id="_GlnT0M7UEeOkpJkbnruUGQ" hasLazyActivationPolicy="true" activator="org.eclipse.ui.internal.UIPlugin" classPath="." localization="plugin" requiredExecutionEnvironment="CDC-1.0/Foundation-1.0,J2SE-1.3" symbolicName="org.eclipse.ui" vendor="Eclipse.org" version="3.106.0.v20140303-1835" exportPackage="_GlvPoM7UEeOkpJkbnruUGQ" base_Component="_Glk3kM7UEeOkpJkbnruUGQ" name="Eclipse UI"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GlvPoM7UEeOkpJkbnruUGQ" base_Package="_GlszYM7UEeOkpJkbnruUGQ" isInternal="true"/>
- <ModuleLayer:BundleReference xmi:id="_GlzhEM7UEeOkpJkbnruUGQ" base_Dependency="_GlxE0M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:Plugin xmi:id="_Gl19UM7UEeOkpJkbnruUGQ" hasLazyActivationPolicy="true" activator="org.eclipse.core.internal.runtime.PlatformActivator" localization="plugin" requiredExecutionEnvironment="J2SE-1.5" symbolicName="org.eclipse.core.runtime" vendor="Eclipse.org" version="3.10.0.v20140221-2027" exportPackage="_Gl8rAM7UEeOkpJkbnruUGQ _Gl_HQM7UEeOkpJkbnruUGQ _GmBjgM7UEeOkpJkbnruUGQ" base_Component="_Gl0IIM7UEeOkpJkbnruUGQ" name="Core Runtime"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gl8rAM7UEeOkpJkbnruUGQ" base_Package="_Gl610M7UEeOkpJkbnruUGQ" isInternal="true"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gl_HQM7UEeOkpJkbnruUGQ" base_Package="_Gl9SEM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmBjgM7UEeOkpJkbnruUGQ" atleast="3.4.0" base_Package="_Gl_uUM7UEeOkpJkbnruUGQ"/>
- <ModuleLayer:BundleReference xmi:id="_GmFN4M7UEeOkpJkbnruUGQ" base_Dependency="_GmCxoM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:Plugin xmi:id="_GmHqIM7UEeOkpJkbnruUGQ" hasLazyActivationPolicy="true" activator="org.eclipse.emf.common.CommonPlugin$Implementation" classPath="." localization="plugin" requiredExecutionEnvironment="J2SE-1.5" symbolicName="org.eclipse.emf.common" vendor="Eclipse Modeling Project" version="2.10.0.v20140303-1023" exportPackage="_GmOX0M7UEeOkpJkbnruUGQ _GmQ0EM7UEeOkpJkbnruUGQ _GmTQUM7UEeOkpJkbnruUGQ _GmVskM7UEeOkpJkbnruUGQ _GmYI0M7UEeOkpJkbnruUGQ _GmalEM7UEeOkpJkbnruUGQ" base_Component="_GmF08M7UEeOkpJkbnruUGQ" name="EMF Common" lazyStart="true"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmOX0M7UEeOkpJkbnruUGQ" base_Package="_GmMioM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmQ0EM7UEeOkpJkbnruUGQ" base_Package="_GmO-4M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmTQUM7UEeOkpJkbnruUGQ" base_Package="_GmRbIM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmVskM7UEeOkpJkbnruUGQ" base_Package="_GmT3YM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmYI0M7UEeOkpJkbnruUGQ" base_Package="_GmWToM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmalEM7UEeOkpJkbnruUGQ" base_Package="_GmYv4M7UEeOkpJkbnruUGQ"/>
- <ModuleLayer:BundleReference xmi:id="_GmePcM7UEeOkpJkbnruUGQ" base_Dependency="_GmbzMM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:Plugin xmi:id="_GmgrsM7UEeOkpJkbnruUGQ" hasLazyActivationPolicy="true" activator="org.eclipse.emf.ecore.plugin.EcorePlugin$Implementation" classPath="." localization="plugin" requiredExecutionEnvironment="J2SE-1.5" symbolicName="org.eclipse.emf.ecore" vendor="Eclipse Modeling Project" version="2.10.0.v20140303-1023" exportPackage="_GmnZYM7UEeOkpJkbnruUGQ _Gmp1oM7UEeOkpJkbnruUGQ _GmsR4M7UEeOkpJkbnruUGQ _GmuuIM7UEeOkpJkbnruUGQ _GmxKYM7UEeOkpJkbnruUGQ _GmzmoM7UEeOkpJkbnruUGQ _Gm2C4M7UEeOkpJkbnruUGQ _Gm4fIM7UEeOkpJkbnruUGQ _Gm67YM7UEeOkpJkbnruUGQ _Gm9XoM7UEeOkpJkbnruUGQ _Gm_z4M7UEeOkpJkbnruUGQ _GnCQIM7UEeOkpJkbnruUGQ _GnEFUM7UEeOkpJkbnruUGQ" base_Component="_GmePcc7UEeOkpJkbnruUGQ" name="EMF Ecore" lazyStart="true"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmnZYM7UEeOkpJkbnruUGQ" base_Package="_GmlkMM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gmp1oM7UEeOkpJkbnruUGQ" base_Package="_GmoAcM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmsR4M7UEeOkpJkbnruUGQ" base_Package="_GmqcsM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmuuIM7UEeOkpJkbnruUGQ" base_Package="_Gms48M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmxKYM7UEeOkpJkbnruUGQ" base_Package="_GmvVMM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmzmoM7UEeOkpJkbnruUGQ" base_Package="_GmxxcM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gm2C4M7UEeOkpJkbnruUGQ" base_Package="_Gm0NsM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gm4fIM7UEeOkpJkbnruUGQ" base_Package="_Gm2p8M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gm67YM7UEeOkpJkbnruUGQ" base_Package="_Gm5GMM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gm9XoM7UEeOkpJkbnruUGQ" base_Package="_Gm7icM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gm_z4M7UEeOkpJkbnruUGQ" base_Package="_Gm9Xoc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnCQIM7UEeOkpJkbnruUGQ" base_Package="_Gm_z4c7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnEFUM7UEeOkpJkbnruUGQ" base_Package="_GnCQIc7UEeOkpJkbnruUGQ"/>
- <ModuleLayer:BundleReference xmi:id="_GnHvsM7UEeOkpJkbnruUGQ" base_Dependency="_GnFTcM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:Plugin xmi:id="_GnKL8M7UEeOkpJkbnruUGQ" hasLazyActivationPolicy="true" activator="org.eclipse.gef.internal.InternalGEFPlugin" localization="plugin" requiredExecutionEnvironment="J2SE-1.4" symbolicName="org.eclipse.gef" vendor="Eclipse.org" version="3.9.0.201401270305" exportPackage="_GnQ5oM7UEeOkpJkbnruUGQ _GnTV4M7UEeOkpJkbnruUGQ _GnVLEM7UEeOkpJkbnruUGQ _GnXnUM7UEeOkpJkbnruUGQ _GnaDkM7UEeOkpJkbnruUGQ _Gncf0M7UEeOkpJkbnruUGQ _Gne8EM7UEeOkpJkbnruUGQ _GnhYUM7UEeOkpJkbnruUGQ _Gnj0kM7UEeOkpJkbnruUGQ _GnmQ0M7UEeOkpJkbnruUGQ _GnotEM7UEeOkpJkbnruUGQ _GnrJUM7UEeOkpJkbnruUGQ _Gns-gM7UEeOkpJkbnruUGQ _GnvawM7UEeOkpJkbnruUGQ _Gnx3AM7UEeOkpJkbnruUGQ _GnzsMM7UEeOkpJkbnruUGQ _Gn2IcM7UEeOkpJkbnruUGQ _Gn4ksM7UEeOkpJkbnruUGQ _Gn7A8M7UEeOkpJkbnruUGQ _Gn9dMM7UEeOkpJkbnruUGQ _GoAggM7UEeOkpJkbnruUGQ _GoDj0M7UEeOkpJkbnruUGQ _GoGAEM7UEeOkpJkbnruUGQ _GoJDYM7UEeOkpJkbnruUGQ _GoMGsM7UEeOkpJkbnruUGQ _GoOi8M7UEeOkpJkbnruUGQ _GoRmQM7UEeOkpJkbnruUGQ _GoUCgM7UEeOkpJkbnruUGQ _GoXF0M7UEeOkpJkbnruUGQ" base_Component="_GnHvsc7UEeOkpJkbnruUGQ" name="Graphical Editing Framework GEF"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnQ5oM7UEeOkpJkbnruUGQ" base_Package="_GnPEcM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnTV4M7UEeOkpJkbnruUGQ" base_Package="_GnQ5oc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnVLEM7UEeOkpJkbnruUGQ" base_Package="_GnTV4c7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnXnUM7UEeOkpJkbnruUGQ" base_Package="_GnVyIM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnaDkM7UEeOkpJkbnruUGQ" base_Package="_GnYOYM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gncf0M7UEeOkpJkbnruUGQ" base_Package="_GnaqoM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gne8EM7UEeOkpJkbnruUGQ" base_Package="_GndG4M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnhYUM7UEeOkpJkbnruUGQ" base_Package="_GnfjIM7UEeOkpJkbnruUGQ" isInternal="true"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gnj0kM7UEeOkpJkbnruUGQ" base_Package="_Gnh_YM7UEeOkpJkbnruUGQ" isInternal="true"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnmQ0M7UEeOkpJkbnruUGQ" base_Package="_GnkboM7UEeOkpJkbnruUGQ" isInternal="true"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnotEM7UEeOkpJkbnruUGQ" base_Package="_Gnm34M7UEeOkpJkbnruUGQ" isInternal="true"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnrJUM7UEeOkpJkbnruUGQ" base_Package="_GnpUIM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gns-gM7UEeOkpJkbnruUGQ" base_Package="_GnrJUc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnvawM7UEeOkpJkbnruUGQ" base_Package="_GntlkM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gnx3AM7UEeOkpJkbnruUGQ" base_Package="_GnwB0M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnzsMM7UEeOkpJkbnruUGQ" base_Package="_Gnx3Ac7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gn2IcM7UEeOkpJkbnruUGQ" base_Package="_Gn0TQM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gn4ksM7UEeOkpJkbnruUGQ" base_Package="_Gn2vgM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gn7A8M7UEeOkpJkbnruUGQ" base_Package="_Gn4ksc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gn9dMM7UEeOkpJkbnruUGQ" base_Package="_Gn7A8c7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoAggM7UEeOkpJkbnruUGQ" base_Package="_Gn-EQM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoDj0M7UEeOkpJkbnruUGQ" base_Package="_GoBHkM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoGAEM7UEeOkpJkbnruUGQ" base_Package="_GoDj0c7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoJDYM7UEeOkpJkbnruUGQ" base_Package="_GoGnIM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoMGsM7UEeOkpJkbnruUGQ" base_Package="_GoJqcM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoOi8M7UEeOkpJkbnruUGQ" base_Package="_GoMtwM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoRmQM7UEeOkpJkbnruUGQ" base_Package="_GoPKAM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoUCgM7UEeOkpJkbnruUGQ" base_Package="_GoSNUM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoXF0M7UEeOkpJkbnruUGQ" base_Package="_GoUpkM7UEeOkpJkbnruUGQ"/>
- <ModuleLayer:BundleReference xmi:id="_GoawMM7UEeOkpJkbnruUGQ" base_Dependency="_GoXs4M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:Plugin xmi:id="_GodMcM7UEeOkpJkbnruUGQ" hasLazyActivationPolicy="true" activator="org.eclipse.gmf.runtime.diagram.ui.internal.DiagramUIPlugin" localization="plugin" requiredExecutionEnvironment="J2SE-1.5" symbolicName="org.eclipse.gmf.runtime.diagram.ui" vendor="Eclipse Modeling Project" version="1.7.0.201403111830" exportPackage="_GokhMM7UEeOkpJkbnruUGQ _Gom9cM7UEeOkpJkbnruUGQ _GoqAwM7UEeOkpJkbnruUGQ _GosdAM7UEeOkpJkbnruUGQ _GovgUM7UEeOkpJkbnruUGQ _Gox8kM7UEeOkpJkbnruUGQ _Go0_4M7UEeOkpJkbnruUGQ _Go3cIM7UEeOkpJkbnruUGQ _Go54YM7UEeOkpJkbnruUGQ _Go87sM7UEeOkpJkbnruUGQ _Go__AM7UEeOkpJkbnruUGQ _GpCbQM7UEeOkpJkbnruUGQ _GpFekM7UEeOkpJkbnruUGQ _GpIh4M7UEeOkpJkbnruUGQ _GpK-IM7UEeOkpJkbnruUGQ _GpOBcM7UEeOkpJkbnruUGQ _GpQdsM7UEeOkpJkbnruUGQ _GpS58M7UEeOkpJkbnruUGQ _GpVWMM7UEeOkpJkbnruUGQ _GpXycM7UEeOkpJkbnruUGQ _GpaOsM7UEeOkpJkbnruUGQ _GpcD4M7UEeOkpJkbnruUGQ _GpegIM7UEeOkpJkbnruUGQ _Gpg8YM7UEeOkpJkbnruUGQ _GpjYoM7UEeOkpJkbnruUGQ _GplN0M7UEeOkpJkbnruUGQ _GpnDAM7UEeOkpJkbnruUGQ _Gpo4MM7UEeOkpJkbnruUGQ _GprUcM7UEeOkpJkbnruUGQ _GptJoM7UEeOkpJkbnruUGQ _Gpu-0M7UEeOkpJkbnruUGQ _GpxbEM7UEeOkpJkbnruUGQ _GpzQQM7UEeOkpJkbnruUGQ _Gp1FcM7UEeOkpJkbnruUGQ _Gp26oM7UEeOkpJkbnruUGQ _Gp5W4M7UEeOkpJkbnruUGQ _Gp7MEM7UEeOkpJkbnruUGQ _Gp9BQM7UEeOkpJkbnruUGQ _Gp-2cM7UEeOkpJkbnruUGQ _GqAroM7UEeOkpJkbnruUGQ _GqCg0M7UEeOkpJkbnruUGQ _GqE9EM7UEeOkpJkbnruUGQ _GqGyQM7UEeOkpJkbnruUGQ _GqIncM7UEeOkpJkbnruUGQ _GqJ1kM7UEeOkpJkbnruUGQ _GqLqwM7UEeOkpJkbnruUGQ _GqNf8M7UEeOkpJkbnruUGQ _GqOuEM7UEeOkpJkbnruUGQ _GqQjQM7UEeOkpJkbnruUGQ _GqSYcM7UEeOkpJkbnruUGQ _GqTmkM7UEeOkpJkbnruUGQ _GqVbwM7UEeOkpJkbnruUGQ" base_Component="_GoawMc7UEeOkpJkbnruUGQ" name="GMF Diagram UI"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GokhMM7UEeOkpJkbnruUGQ" base_Package="_GoiE8M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gom9cM7UEeOkpJkbnruUGQ" base_Package="_GokhMc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoqAwM7UEeOkpJkbnruUGQ" base_Package="_GonkgM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GosdAM7UEeOkpJkbnruUGQ" base_Package="_GoqAwc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GovgUM7UEeOkpJkbnruUGQ" base_Package="_GotEEM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gox8kM7UEeOkpJkbnruUGQ" base_Package="_GowHYM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Go0_4M7UEeOkpJkbnruUGQ" base_Package="_GoyjoM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Go3cIM7UEeOkpJkbnruUGQ" base_Package="_Go0_4c7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Go54YM7UEeOkpJkbnruUGQ" base_Package="_Go3cIc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Go87sM7UEeOkpJkbnruUGQ" base_Package="_Go6fcM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Go__AM7UEeOkpJkbnruUGQ" base_Package="_Go9iwM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpCbQM7UEeOkpJkbnruUGQ" base_Package="_Go__Ac7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpFekM7UEeOkpJkbnruUGQ" base_Package="_GpDCUM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpIh4M7UEeOkpJkbnruUGQ" base_Package="_GpGFoM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpK-IM7UEeOkpJkbnruUGQ" base_Package="_GpIh4c7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpOBcM7UEeOkpJkbnruUGQ" base_Package="_GpLlMM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpQdsM7UEeOkpJkbnruUGQ" base_Package="_GpOogM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpS58M7UEeOkpJkbnruUGQ" base_Package="_GpREwM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpVWMM7UEeOkpJkbnruUGQ" base_Package="_GpThAM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpXycM7UEeOkpJkbnruUGQ" base_Package="_GpV9QM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpaOsM7UEeOkpJkbnruUGQ" base_Package="_GpYZgM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpcD4M7UEeOkpJkbnruUGQ" base_Package="_GpaOsc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpegIM7UEeOkpJkbnruUGQ" base_Package="_Gpcq8M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gpg8YM7UEeOkpJkbnruUGQ" base_Package="_GpfHMM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpjYoM7UEeOkpJkbnruUGQ" base_Package="_GphjcM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GplN0M7UEeOkpJkbnruUGQ" base_Package="_Gpj_sM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpnDAM7UEeOkpJkbnruUGQ" base_Package="_Gpl04M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gpo4MM7UEeOkpJkbnruUGQ" base_Package="_GpnqEM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GprUcM7UEeOkpJkbnruUGQ" base_Package="_GppfQM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GptJoM7UEeOkpJkbnruUGQ" base_Package="_GprUcc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gpu-0M7UEeOkpJkbnruUGQ" base_Package="_GptwsM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpxbEM7UEeOkpJkbnruUGQ" base_Package="_Gpvl4M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpzQQM7UEeOkpJkbnruUGQ" base_Package="_GpxbEc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gp1FcM7UEeOkpJkbnruUGQ" base_Package="_GpzQQc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gp26oM7UEeOkpJkbnruUGQ" base_Package="_Gp1sgM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gp5W4M7UEeOkpJkbnruUGQ" base_Package="_Gp3hsM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gp7MEM7UEeOkpJkbnruUGQ" base_Package="_Gp5W4c7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gp9BQM7UEeOkpJkbnruUGQ" base_Package="_Gp7MEc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gp-2cM7UEeOkpJkbnruUGQ" base_Package="_Gp9oUM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqAroM7UEeOkpJkbnruUGQ" base_Package="_Gp_dgM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqCg0M7UEeOkpJkbnruUGQ" base_Package="_GqBSsM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqE9EM7UEeOkpJkbnruUGQ" base_Package="_GqDH4M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqGyQM7UEeOkpJkbnruUGQ" base_Package="_GqE9Ec7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqIncM7UEeOkpJkbnruUGQ" base_Package="_GqGyQc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqJ1kM7UEeOkpJkbnruUGQ" base_Package="_GqIncc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqLqwM7UEeOkpJkbnruUGQ" base_Package="_GqKcoM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqNf8M7UEeOkpJkbnruUGQ" base_Package="_GqMR0M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqOuEM7UEeOkpJkbnruUGQ" base_Package="_GqNf8c7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqQjQM7UEeOkpJkbnruUGQ" base_Package="_GqPVIM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqSYcM7UEeOkpJkbnruUGQ" base_Package="_GqRKUM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqTmkM7UEeOkpJkbnruUGQ" base_Package="_GqSYcc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqVbwM7UEeOkpJkbnruUGQ" base_Package="_GqUNoM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:Plugin xmi:id="_GqZtMM7UEeOkpJkbnruUGQ" hasLazyActivationPolicy="true" activator="org.eclipse.uml2.uml.UMLPlugin$Implementation" classPath="." localization="plugin" requiredExecutionEnvironment="J2SE-1.5" symbolicName="org.eclipse.uml2.uml" vendor="Eclipse Modeling Project" version="5.0.0.v20140310-0733" exportPackage="_GqfMwM7UEeOkpJkbnruUGQ _GqhB8M7UEeOkpJkbnruUGQ _Gqi3IM7UEeOkpJkbnruUGQ _GqksUM7UEeOkpJkbnruUGQ _GqmhgM7UEeOkpJkbnruUGQ _GqnvoM7UEeOkpJkbnruUGQ" base_Component="_GqYfEM7UEeOkpJkbnruUGQ" name="UML2 UML Model" lazyStart="true"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqfMwM7UEeOkpJkbnruUGQ" base_Package="_Gqd-oM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqhB8M7UEeOkpJkbnruUGQ" base_Package="_Gqfz0M7UEeOkpJkbnruUGQ" isInternal="true"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gqi3IM7UEeOkpJkbnruUGQ" base_Package="_GqhpAM7UEeOkpJkbnruUGQ" isInternal="true"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqksUM7UEeOkpJkbnruUGQ" base_Package="_GqjeMM7UEeOkpJkbnruUGQ" isInternal="true"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqmhgM7UEeOkpJkbnruUGQ" base_Package="_GqlTYM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqnvoM7UEeOkpJkbnruUGQ" base_Package="_GqnIkM7UEeOkpJkbnruUGQ"/>
- <ModuleLayer:BundleReference xmi:id="_GqqL4M7UEeOkpJkbnruUGQ" base_Dependency="_Gqo9wM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:Plugin xmi:id="_GqsBEM7UEeOkpJkbnruUGQ" hasLazyActivationPolicy="true" activator="org.eclipse.papyrus.infra.core.Activator" localization="plugin" requiredExecutionEnvironment="JavaSE-1.6" symbolicName="org.eclipse.papyrus.infra.core" vendor="Eclipse Modeling Project" version="1.0.0.v201404220826" exportPackage="_GqxgoM7UEeOkpJkbnruUGQ _GqzV0M7UEeOkpJkbnruUGQ _Gq1LAM7UEeOkpJkbnruUGQ _Gq2ZIM7UEeOkpJkbnruUGQ _Gq4OUM7UEeOkpJkbnruUGQ _Gq6DgM7UEeOkpJkbnruUGQ _Gq7RoM7UEeOkpJkbnruUGQ _Gq9G0M7UEeOkpJkbnruUGQ _Gq-U8M7UEeOkpJkbnruUGQ _GrAKIM7UEeOkpJkbnruUGQ _GrB_UM7UEeOkpJkbnruUGQ _GrDNcM7UEeOkpJkbnruUGQ _GrFCoM7UEeOkpJkbnruUGQ _GrG30M7UEeOkpJkbnruUGQ _GrIF8M7UEeOkpJkbnruUGQ _GrKiMM7UEeOkpJkbnruUGQ _GrLwUM7UEeOkpJkbnruUGQ _GrNlgM7UEeOkpJkbnruUGQ _GrPasM7UEeOkpJkbnruUGQ" base_Component="_Gqqy8M7UEeOkpJkbnruUGQ" name="Papyrus Backbone" isIncubation="true"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqxgoM7UEeOkpJkbnruUGQ" base_Package="_GqwSgM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqzV0M7UEeOkpJkbnruUGQ" base_Package="_GqyHsM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gq1LAM7UEeOkpJkbnruUGQ" base_Package="_Gqz84M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gq2ZIM7UEeOkpJkbnruUGQ" base_Package="_Gq1LAc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gq4OUM7UEeOkpJkbnruUGQ" base_Package="_Gq3AMM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gq6DgM7UEeOkpJkbnruUGQ" base_Package="_Gq41YM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gq7RoM7UEeOkpJkbnruUGQ" base_Package="_Gq6Dgc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gq9G0M7UEeOkpJkbnruUGQ" base_Package="_Gq74sM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gq-U8M7UEeOkpJkbnruUGQ" base_Package="_Gq9t4M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrAKIM7UEeOkpJkbnruUGQ" base_Package="_Gq-8AM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrB_UM7UEeOkpJkbnruUGQ" base_Package="_GrAxMM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrDNcM7UEeOkpJkbnruUGQ" base_Package="_GrB_Uc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrFCoM7UEeOkpJkbnruUGQ" base_Package="_GrD0gM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrG30M7UEeOkpJkbnruUGQ" base_Package="_GrFpsM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrIF8M7UEeOkpJkbnruUGQ" base_Package="_GrG30c7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrKiMM7UEeOkpJkbnruUGQ" base_Package="_GrItAM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrLwUM7UEeOkpJkbnruUGQ" base_Package="_GrKiMc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrNlgM7UEeOkpJkbnruUGQ" base_Package="_GrMXYM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrPasM7UEeOkpJkbnruUGQ" base_Package="_GrOMkM7UEeOkpJkbnruUGQ"/>
- <ModuleLayer:BundleReference xmi:id="_GrRP4M7UEeOkpJkbnruUGQ" base_Dependency="_GrQBwM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:Plugin xmi:id="_GrTFEM7UEeOkpJkbnruUGQ" hasLazyActivationPolicy="true" activator="org.eclipse.papyrus.infra.gmfdiag.common.Activator" classPath="." localization="plugin" requiredExecutionEnvironment="JavaSE-1.6" symbolicName="org.eclipse.papyrus.infra.gmfdiag.common" vendor="Eclipse Modeling Project" version="1.0.0.qualifier" exportPackage="_GrZLsM7UEeOkpJkbnruUGQ _GraZ0M7UEeOkpJkbnruUGQ _GrcPAM7UEeOkpJkbnruUGQ _GreEMM7UEeOkpJkbnruUGQ _GrfSUM7UEeOkpJkbnruUGQ _GrhHgM7UEeOkpJkbnruUGQ _GriVoM7UEeOkpJkbnruUGQ _GrkK0M7UEeOkpJkbnruUGQ _GrmAAM7UEeOkpJkbnruUGQ _GrnOIM7UEeOkpJkbnruUGQ _GrpDUM7UEeOkpJkbnruUGQ _GrqRcM7UEeOkpJkbnruUGQ _GrsGoM7UEeOkpJkbnruUGQ _Grt70M7UEeOkpJkbnruUGQ _GrvJ8M7UEeOkpJkbnruUGQ _Grw_IM7UEeOkpJkbnruUGQ _GryNQM7UEeOkpJkbnruUGQ _Gr0CcM7UEeOkpJkbnruUGQ _Gr1QkM7UEeOkpJkbnruUGQ _Gr3FwM7UEeOkpJkbnruUGQ _Gr4T4M7UEeOkpJkbnruUGQ _Gr6JEM7UEeOkpJkbnruUGQ _Gr7XMM7UEeOkpJkbnruUGQ _Gr9MYM7UEeOkpJkbnruUGQ" base_Component="_GrR28M7UEeOkpJkbnruUGQ" name="Papyrus GMF Diagrams Support" isIncubation="true"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrZLsM7UEeOkpJkbnruUGQ" base_Package="_GrX9kM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GraZ0M7UEeOkpJkbnruUGQ" base_Package="_GrZLsc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrcPAM7UEeOkpJkbnruUGQ" base_Package="_GrbA4M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GreEMM7UEeOkpJkbnruUGQ" base_Package="_Grc2EM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrfSUM7UEeOkpJkbnruUGQ" base_Package="_GreEMc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrhHgM7UEeOkpJkbnruUGQ" base_Package="_Grf5YM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GriVoM7UEeOkpJkbnruUGQ" base_Package="_GrhHgc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrkK0M7UEeOkpJkbnruUGQ" base_Package="_Gri8sM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrmAAM7UEeOkpJkbnruUGQ" base_Package="_Grkx4M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrnOIM7UEeOkpJkbnruUGQ" base_Package="_GrmAAc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrpDUM7UEeOkpJkbnruUGQ" base_Package="_Grn1MM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrqRcM7UEeOkpJkbnruUGQ" base_Package="_GrpDUc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrsGoM7UEeOkpJkbnruUGQ" base_Package="_Grq4gM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Grt70M7UEeOkpJkbnruUGQ" base_Package="_GrstsM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrvJ8M7UEeOkpJkbnruUGQ" base_Package="_Grt70c7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Grw_IM7UEeOkpJkbnruUGQ" base_Package="_GrvxAM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GryNQM7UEeOkpJkbnruUGQ" base_Package="_Grw_Ic7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gr0CcM7UEeOkpJkbnruUGQ" base_Package="_Gry0UM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gr1QkM7UEeOkpJkbnruUGQ" base_Package="_Gr0Ccc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gr3FwM7UEeOkpJkbnruUGQ" base_Package="_Gr13oM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gr4T4M7UEeOkpJkbnruUGQ" base_Package="_Gr3Fwc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gr6JEM7UEeOkpJkbnruUGQ" base_Package="_Gr468M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gr7XMM7UEeOkpJkbnruUGQ" base_Package="_Gr6JEc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gr9MYM7UEeOkpJkbnruUGQ" base_Package="_Gr7-QM7UEeOkpJkbnruUGQ"/>
- <ModuleLayer:BundleReference xmi:id="_Gr_ooM7UEeOkpJkbnruUGQ" base_Dependency="_Gr9zcM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:Plugin xmi:id="_GsBd0M7UEeOkpJkbnruUGQ" hasLazyActivationPolicy="true" activator="org.eclipse.gmf.tooling.runtime.GMFToolingRuntimePlugin" localization="plugin" requiredExecutionEnvironment="JavaSE-1.6" symbolicName="org.eclipse.gmf.tooling.runtime" vendor="Eclipse Modeling Project" version="3.2.0.201403121855" exportPackage="_GsHkcM7UEeOkpJkbnruUGQ _GsIykM7UEeOkpJkbnruUGQ _GsKnwM7UEeOkpJkbnruUGQ _GsMc8M7UEeOkpJkbnruUGQ _GsNrEM7UEeOkpJkbnruUGQ _GsPgQM7UEeOkpJkbnruUGQ _GsQuYM7UEeOkpJkbnruUGQ _GsSjkM7UEeOkpJkbnruUGQ _GsUYwM7UEeOkpJkbnruUGQ _GsVm4M7UEeOkpJkbnruUGQ _GsXcEM7UEeOkpJkbnruUGQ _GsYqMM7UEeOkpJkbnruUGQ _GsafYM7UEeOkpJkbnruUGQ _GsbtgM7UEeOkpJkbnruUGQ _GsdisM7UEeOkpJkbnruUGQ _GsfX4M7UEeOkpJkbnruUGQ _GsgmAM7UEeOkpJkbnruUGQ _GsibMM7UEeOkpJkbnruUGQ" base_Component="_GsAPsM7UEeOkpJkbnruUGQ" name="GMF Tooling-Specific Runtime Extensions Plugin"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsHkcM7UEeOkpJkbnruUGQ" base_Package="_GsGWUM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsIykM7UEeOkpJkbnruUGQ" base_Package="_GsHkcc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsKnwM7UEeOkpJkbnruUGQ" base_Package="_GsJZoM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsMc8M7UEeOkpJkbnruUGQ" base_Package="_GsLO0M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsNrEM7UEeOkpJkbnruUGQ" base_Package="_GsMc8c7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsPgQM7UEeOkpJkbnruUGQ" base_Package="_GsOSIM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsQuYM7UEeOkpJkbnruUGQ" base_Package="_GsQHUM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsSjkM7UEeOkpJkbnruUGQ" base_Package="_GsRVcM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsUYwM7UEeOkpJkbnruUGQ" base_Package="_GsTKoM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsVm4M7UEeOkpJkbnruUGQ" base_Package="_GsUYwc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsXcEM7UEeOkpJkbnruUGQ" base_Package="_GsWN8M7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsYqMM7UEeOkpJkbnruUGQ" base_Package="_GsXcEc7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsafYM7UEeOkpJkbnruUGQ" base_Package="_GsZRQM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsbtgM7UEeOkpJkbnruUGQ" base_Package="_GsbGcM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsdisM7UEeOkpJkbnruUGQ" base_Package="_GscUkM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsfX4M7UEeOkpJkbnruUGQ" base_Package="_GseJwM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsgmAM7UEeOkpJkbnruUGQ" base_Package="_GsfX4c7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsibMM7UEeOkpJkbnruUGQ" base_Package="_GshNEM7UEeOkpJkbnruUGQ"/>
- <ModuleLayer:BundleReference xmi:id="_Gsk3cM7UEeOkpJkbnruUGQ" base_Dependency="_GsjCQM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:Plugin xmi:id="_GsmsoM7UEeOkpJkbnruUGQ" hasLazyActivationPolicy="true" activator="org.eclipse.papyrus.infra.core.log.internal.Activator" localization="plugin" requiredExecutionEnvironment="J2SE-1.5" symbolicName="org.eclipse.papyrus.infra.core.log" vendor="Eclipse Modeling Project" version="1.0.0.v201404220826" exportPackage="_GsszQM7UEeOkpJkbnruUGQ" base_Component="_GslegM7UEeOkpJkbnruUGQ" name="Papyrus Logging plugin" isIncubation="true"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsszQM7UEeOkpJkbnruUGQ" base_Package="_GsrlIM7UEeOkpJkbnruUGQ"/>
- <ModuleLayer:BundleReference xmi:id="_GsvPgM7UEeOkpJkbnruUGQ" base_Dependency="_GstaUM7UEeOkpJkbnruUGQ"/>
- <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gs5AgM7UEeOkpJkbnruUGQ" base_Package="_Gs3LUM7UEeOkpJkbnruUGQ"/>
- <structure:DeveloperDoc xmi:id="_SUtzsM7eEeOkpJkbnruUGQ" base_Comment="_j3s-wM7dEeOkpJkbnruUGQ"/>
- <Document:Document xmi:id="_YDhg4M7vEeOVs4zXLxqLmw" base_Model="_YDedkM7vEeOVs4zXLxqLmw" author="P. Tessier (CEA LIST)" version="0.1"/>
- <Document:Content xmi:id="_YDlyUM7vEeOVs4zXLxqLmw" base_Comment="_YDjWEM7vEeOVs4zXLxqLmw"/>
- <Document:Section xmi:id="_YDpcsM7vEeOVs4zXLxqLmw" base_Package="_YDnAcM7vEeOVs4zXLxqLmw"/>
- <Document:Content xmi:id="_YDu8QM7vEeOVs4zXLxqLmw" base_Comment="_YDsgAM7vEeOVs4zXLxqLmw"/>
- <Document:Content xmi:id="_YDymoM7vEeOVs4zXLxqLmw" base_Comment="_YDxYgM7vEeOVs4zXLxqLmw"/>
- <Document:Content xmi:id="_YD24EM7vEeOVs4zXLxqLmw" base_Comment="_YD1C4M7vEeOVs4zXLxqLmw"/>
- <Document:Section xmi:id="_YD5UUM7vEeOVs4zXLxqLmw" base_Package="_YD3fIM7vEeOVs4zXLxqLmw"/>
- <Document:ImageRef xmi:id="_YE6oAM7vEeOVs4zXLxqLmw" base_Comment="_YE4LwM7vEeOVs4zXLxqLmw" ref="C:/git/org.eclipse.papyrus/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.synchronizeview/imgDOC/UseCaseDiagram.png"/>
- <Document:Section xmi:id="_YE9EQM7vEeOVs4zXLxqLmw" base_Package="_YE7PEM7vEeOVs4zXLxqLmw"/>
- <Document:Content xmi:id="_YFAHkM7vEeOVs4zXLxqLmw" base_Comment="_YE9rUM7vEeOVs4zXLxqLmw"/>
- <Document:Section xmi:id="_YFCj0M7vEeOVs4zXLxqLmw" base_Package="_YFAuoM7vEeOVs4zXLxqLmw"/>
- <Document:Content xmi:id="_YFFAEM7vEeOVs4zXLxqLmw" base_Comment="_YFDK4M7vEeOVs4zXLxqLmw"/>
- <Document:Section xmi:id="_YFHcUM7vEeOVs4zXLxqLmw" base_Package="_YFFnIM7vEeOVs4zXLxqLmw"/>
- <Document:Content xmi:id="_YFJ4kM7vEeOVs4zXLxqLmw" base_Comment="_YFIDYM7vEeOVs4zXLxqLmw"/>
- <Document:Section xmi:id="_YFLtwM7vEeOVs4zXLxqLmw" base_Package="_YFJ4kc7vEeOVs4zXLxqLmw"/>
- <Document:Content xmi:id="_YFOxEM7vEeOVs4zXLxqLmw" base_Comment="_YFMU0M7vEeOVs4zXLxqLmw"/>
- <Document:Section xmi:id="_YFRNUM7vEeOVs4zXLxqLmw" base_Package="_YFPYIM7vEeOVs4zXLxqLmw"/>
- <Document:ImageRef xmi:id="_YGy3UM7vEeOVs4zXLxqLmw" base_Comment="_YGwbEM7vEeOVs4zXLxqLmw" ref="C:/git/org.eclipse.papyrus/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.synchronizeview/imgDOC/ArchitectureOverview.png"/>
- <Document:Content xmi:id="_YG16oM7vEeOVs4zXLxqLmw" base_Comment="_YGzeYM7vEeOVs4zXLxqLmw"/>
- <Document:ImageRef xmi:id="_YJcisM7vEeOVs4zXLxqLmw" base_Comment="_YJaGcM7vEeOVs4zXLxqLmw" ref="C:/git/org.eclipse.papyrus/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.synchronizeview/imgDOC/Structure.png"/>
- <Document:Content xmi:id="_YJe-8M7vEeOVs4zXLxqLmw" base_Comment="_YJdJwM7vEeOVs4zXLxqLmw"/>
- <Document:Content xmi:id="_YJhbMM7vEeOVs4zXLxqLmw" base_Comment="_YJfmAM7vEeOVs4zXLxqLmw"/>
-</xmi:XMI>
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ADL4Eclipse="http:///schemas/ADL4Eclipse/_rk7nwOqKEeOfTcbrnCq2oQ/3" xmlns:ModuleLayer="http://OSGI/schemas/ModuleLayer/_0xHxU4DEEeKQG4TlBAn6bg/3" xmlns:Requirements="http://www.eclipse.org/papyrus/0.7.0/SysML/Requirements" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:structure="http://DeveloperProcess/schemas/structure/_rpmLUHVxEeSZ-fQGFkyJeQ/6" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http:///schemas/ADL4Eclipse/_rk7nwOqKEeOfTcbrnCq2oQ/3 pathmap://ADL4ECLIPSE_PROFILES/adl4eclipse.profile.uml#_rlFYwOqKEeOfTcbrnCq2oQ http://OSGI/schemas/ModuleLayer/_0xHxU4DEEeKQG4TlBAn6bg/3 pathmap://OSGI_PROFILES/osgi.profile.uml#_0xRiUIDEEeKQG4TlBAn6bg http://www.eclipse.org/papyrus/0.7.0/SysML/Requirements http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements http://DeveloperProcess/schemas/structure/_rpmLUHVxEeSZ-fQGFkyJeQ/6 pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_rpmyYHVxEeSZ-fQGFkyJeQ">
+ <uml:Model xmi:id="_lNLnYMbvEeO9CYUoXDRplw" name="Canonical Diagram Views">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_gP184MofEeO3DsHezUU9Sg">
+ <body>The goal is to enable a strong synchronization between visual elements displayed in the diagram with elements contained in the model. &#xD;
+This mechanism can be added locally for each element by using CSS. &#xD;
+For example, you would like to see: &#xD;
+- synchronize compartment of enumeration literal for all enumeration. &#xD;
+- synchronize compartment of attributes and operation for all class stereotyped ….&#xD;
+This functionality is associated to the task 433206.&#xD;
+</body>
+ </ownedComment>
+ <packageImport xmi:type="uml:PackageImport" xmi:id="_lNLnYcbvEeO9CYUoXDRplw">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Model" xmi:id="_lNLnYsbvEeO9CYUoXDRplw" name="Requirements">
+ <packagedElement xmi:type="uml:Class" xmi:id="_W7DF0MohEeO3DsHezUU9Sg" name="LocalSynchronization"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_9DAe4MoiEeO3DsHezUU9Sg" name="CSSIntegration"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_WWPdsMojEeO3DsHezUU9Sg" name="CustomSynchronization"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Model" xmi:id="_lNLnY8bvEeO9CYUoXDRplw" name="UseCases">
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_lNLnZMbvEeO9CYUoXDRplw" name="useCasesAbstraction" client="_lNLnY8bvEeO9CYUoXDRplw" supplier="_lNLnYsbvEeO9CYUoXDRplw"/>
+ <packagedElement xmi:type="uml:Component" xmi:id="_lNLnZcbvEeO9CYUoXDRplw" name="Synchronization" useCase="_O8koEMcbEeOenbI5XqwJvQ _zqMFoMozEeO3DsHezUU9Sg _l5cVwMo3EeOzTpunJ7qmNw">
+ <ownedUseCase xmi:type="uml:UseCase" xmi:id="_O8koEMcbEeOenbI5XqwJvQ" name="Add an element in the model" subject="_lNLnZcbvEeO9CYUoXDRplw">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_XBXZIMo1EeO3DsHezUU9Sg">
+ <body>When an user adds an element in the model, the synchronization mechanism try to add in the current diagram the view that correspond to the semantic element&#xD;
+The difficulty of this mechanism is to parameter the synchronization.&#xD;
+By default, the synchronizatiopn is based on ' owned element'role. When you add an element, the graphical element that correponds to the owner try to display it in the diagram. &#xD;
+But some cases are not interesting. For example in the composite diagram, displaying parts in part correspond to part of the type, not directly part of part.</body>
+ </ownedComment>
+ </ownedUseCase>
+ <ownedUseCase xmi:type="uml:UseCase" xmi:id="_zqMFoMozEeO3DsHezUU9Sg" name="Move an element" subject="_lNLnZcbvEeO9CYUoXDRplw">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_a-G7gMo1EeO3DsHezUU9Sg">
+ <body>When a element is moved, the synchronization mechanism must to create graphically the element to each diagram.&#xD;
+</body>
+ </ownedComment>
+ </ownedUseCase>
+ <ownedUseCase xmi:type="uml:UseCase" xmi:id="_l5cVwMo3EeOzTpunJ7qmNw" name="Set synchronization enable" subject="_lNLnZcbvEeO9CYUoXDRplw">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_vxFwUMo3EeOzTpunJ7qmNw">
+ <body>The user can set enable the synchronization for a set of graphical elements.&#xD;
+</body>
+ </ownedComment>
+ </ownedUseCase>
+ <packagedElement xmi:type="uml:UseCase" xmi:id="_QqgwkMcbEeOenbI5XqwJvQ" name="Remove an element from the model">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_bGhQoMo1EeO3DsHezUU9Sg">
+ <body>When the element is removed, the corresponding graphical element must be removed.</body>
+ </ownedComment>
+ </packagedElement>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Actor" xmi:id="_g2Kl8MozEeO3DsHezUU9Sg" name="User"/>
+ <packagedElement xmi:type="uml:Association" xmi:id="_1pkjcMozEeO3DsHezUU9Sg" memberEnd="_1pkjccozEeO3DsHezUU9Sg _1pkjdMozEeO3DsHezUU9Sg">
+ <ownedEnd xmi:type="uml:Property" xmi:id="_1pkjccozEeO3DsHezUU9Sg" name="user" type="_g2Kl8MozEeO3DsHezUU9Sg" association="_1pkjcMozEeO3DsHezUU9Sg">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_1pkjcsozEeO3DsHezUU9Sg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_1pkjc8ozEeO3DsHezUU9Sg" value="1"/>
+ </ownedEnd>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_1pkjdMozEeO3DsHezUU9Sg" name="add an element in the model" type="_O8koEMcbEeOenbI5XqwJvQ" association="_1pkjcMozEeO3DsHezUU9Sg">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_1pkjdcozEeO3DsHezUU9Sg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_1pkjdsozEeO3DsHezUU9Sg" value="1"/>
+ </ownedEnd>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_2PwZsMozEeO3DsHezUU9Sg" memberEnd="_2PwZscozEeO3DsHezUU9Sg _2PwZtMozEeO3DsHezUU9Sg">
+ <ownedEnd xmi:type="uml:Property" xmi:id="_2PwZscozEeO3DsHezUU9Sg" name="user" type="_g2Kl8MozEeO3DsHezUU9Sg" association="_2PwZsMozEeO3DsHezUU9Sg">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_2PwZssozEeO3DsHezUU9Sg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_2PwZs8ozEeO3DsHezUU9Sg" value="1"/>
+ </ownedEnd>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_2PwZtMozEeO3DsHezUU9Sg" name="remove an element from the model" type="_QqgwkMcbEeOenbI5XqwJvQ" association="_2PwZsMozEeO3DsHezUU9Sg">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_2PwZtcozEeO3DsHezUU9Sg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_2PwZtsozEeO3DsHezUU9Sg" value="1"/>
+ </ownedEnd>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_2zHlcMozEeO3DsHezUU9Sg" name="" memberEnd="_2zHlccozEeO3DsHezUU9Sg _2zHldMozEeO3DsHezUU9Sg">
+ <ownedEnd xmi:type="uml:Property" xmi:id="_2zHlccozEeO3DsHezUU9Sg" name="user" type="_g2Kl8MozEeO3DsHezUU9Sg" association="_2zHlcMozEeO3DsHezUU9Sg">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_2zHlcsozEeO3DsHezUU9Sg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_2zHlc8ozEeO3DsHezUU9Sg" value="1"/>
+ </ownedEnd>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_2zHldMozEeO3DsHezUU9Sg" name="move an element" type="_zqMFoMozEeO3DsHezUU9Sg" association="_2zHlcMozEeO3DsHezUU9Sg">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_2zHldcozEeO3DsHezUU9Sg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_2zHldsozEeO3DsHezUU9Sg" value="1"/>
+ </ownedEnd>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_rvVLEMo3EeOzTpunJ7qmNw" memberEnd="_rvVLEco3EeOzTpunJ7qmNw _rvVLFMo3EeOzTpunJ7qmNw">
+ <ownedEnd xmi:type="uml:Property" xmi:id="_rvVLEco3EeOzTpunJ7qmNw" name="user" type="_g2Kl8MozEeO3DsHezUU9Sg" association="_rvVLEMo3EeOzTpunJ7qmNw">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_rvVLEso3EeOzTpunJ7qmNw" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_rvVLE8o3EeOzTpunJ7qmNw" value="1"/>
+ </ownedEnd>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_rvVLFMo3EeOzTpunJ7qmNw" name="set synchronization enable" type="_l5cVwMo3EeOzTpunJ7qmNw" association="_rvVLEMo3EeOzTpunJ7qmNw">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_rvVLFco3EeOzTpunJ7qmNw" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_rvVLFso3EeOzTpunJ7qmNw" value="1"/>
+ </ownedEnd>
+ </packagedElement>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Model" xmi:id="_lNLnZsbvEeO9CYUoXDRplw" name="Design">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_9I1OUM7pEeOVs4zXLxqLmw">
+ <body>The design consists of one plugin org.eclipse.papyrus.infra.gmfdiag.canonical.&#xD;
+It contains an edit-policy provider and an extension point</body>
+ </ownedComment>
+ <ownedComment xmi:type="uml:Comment" xmi:id="_j3s-wM7dEeOkpJkbnruUGQ">
+ <body>The edit policy PapyrusCanonicalEditPolicy is installed by the PapyrusCanonicalEditPolicyPolicy on any NodeEditPart that is a:&#xD;
+ - DiagramEditPart (to synchronize content of diagram)&#xD;
+ - CompartmentEditPart (to synchronize content of compartment)&#xD;
+ - IBorderedShapeEditPart (to synchronize content of borderedElement as port....)&#xD;
+&#xD;
+This edit policy implements synchronization between graphical element and element in the model&#xD;
+It is based on GMF's CanonicalEditPolicy but it has several differences:&#xD;
+ - View Service cannot be called. To call it we need to get the identifier of the child that could be place in compartment. It is not possible to find in a generic way&#xD;
+ --> link to each Diagram Updater, and moreover some child has been created by custom code. In fact, the hierarchy of visual element must follow the hierachy of semantic element.&#xD;
+ --> this is not the case so the Diagram updater generated from the gmfgen has not the good info.&#xD;
+
+So, the drag-and-drop support (drop edit policy) of the diagram is used to effect the creation of canonical views. To by-pass the Papyrus strategy-based
+customizable drag-and-drop implementation, the DropObjectsRequest is wrapped in a CanonicalDropObjectsRequest to pass through the customizable
+drop edit policy.
+&#xD;
+An extension point is defined that lets diagram plug-ins contribute strategies for determination of
+ - what semantic elements should be shown as child nodes or attached edges of the host node
+ - which child views and attached edges are existing views of canonical elements
+ - on which related edit-part should a semantic element be dropped to create its canonical view
+&#xD;
+When requested to refresh the visuals of its host edit-part, the canonical edit-policy iterates registered semantic-children strategies in priority order
+to determine the semantic elements that need to be visualized as children and as edges. These are compared against views that already exist, as
+provided by registered visual-children strategies. Any views that need to be created are created by drag-and-drop onto the target edit-part provided
+by the registered creation-target strategies. All strategies are registered with priorities, either against a specific edit-part implementation class or
+with an XML enablement expression that matches by edit-part, notation view, or semantic element (or some combination of all three). All strategy
+extension points also provide sensible defaults for the case where no registered strategy matches the particular scenario.</body>
+ </ownedComment>
+ <ownedComment xmi:type="uml:Comment" xmi:id="_X4kYwMr3EeOxaZrLLxAqiw">
+ <body>Remarks:&#xD;
+As in the GMF Run-time (and expected by GMF), the PapyrusCanonicalEditPolicy is governed by the presence (either explicitly in the notation
+model or via CSS) of the CanonicalStyle::canonical attribute. In CSS, this is inferred from the 'canonical' boolean attribute via generic support
+for single-attribute styles. However, unlike the default GMF behaviour, the default canonical state for a view that does not have the style at all
+is off, not on.
+
+The canonical style is only needed on top graphical shapes. Compartments do not need the style; all compartments of a canonical shape in the
+diagram are populated with canonical views, including shape compartments (e.g., package contents).
+
+Canonical view creation is enabled only when the PapyrusCanonicalEditPolicy is in its fully active state. However, the edit policy also has a
+semi-active state in which it will delete views for obsolete canonical children and edges, but not create new ones. In GEF terms, the edit
+policy is 'active' when it is in this state.</body>
+ </ownedComment>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_lNLnZ8bvEeO9CYUoXDRplw" name="DesignAbstraction" client="_lNLnZsbvEeO9CYUoXDRplw" supplier="_lNLnY8bvEeO9CYUoXDRplw"/>
+ <packagedElement xmi:type="uml:Component" xmi:id="_GhiFEM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.canonical">
+ <ownedAttribute xmi:type="uml:Port" xmi:id="_Gs61sM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.editpolicyProviders"/>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_GlxE0M7UEeOkpJkbnruUGQ" name="org.eclipse.ui" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_Glk3kM7UEeOkpJkbnruUGQ"/>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_GmCxoM7UEeOkpJkbnruUGQ" name="org.eclipse.core.runtime" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_Gl0IIM7UEeOkpJkbnruUGQ"/>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_GmbzMM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.common" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_GmF08M7UEeOkpJkbnruUGQ"/>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_GnFTcM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_GmePcc7UEeOkpJkbnruUGQ"/>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_GoXs4M7UEeOkpJkbnruUGQ" name="org.eclipse.gef" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_GnHvsc7UEeOkpJkbnruUGQ"/>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_Gqo9wM7UEeOkpJkbnruUGQ" name="org.eclipse.uml2.uml" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_GqYfEM7UEeOkpJkbnruUGQ"/>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_GrQBwM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_Gqqy8M7UEeOkpJkbnruUGQ"/>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_Gr9zcM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_GrR28M7UEeOkpJkbnruUGQ"/>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_GsjCQM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_GsAPsM7UEeOkpJkbnruUGQ"/>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_GstaUM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.log" client="_GhiFEM7UEeOkpJkbnruUGQ" supplier="_GslegM7UEeOkpJkbnruUGQ"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gs3LUM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.canonical.strategy">
+ <packagedElement xmi:type="uml:Interface" xmi:id="_ADvBkM7cEeOkpJkbnruUGQ" name="ISemanticChildrenStrategy">
+ <ownedOperation xmi:type="uml:Operation" xmi:id="_giaTYM7cEeOkpJkbnruUGQ" name="getCanonicalDependents"/>
+ <ownedOperation xmi:type="uml:Operation" xmi:id="_mbDhwM7cEeOkpJkbnruUGQ" name="getCanonicalSemanticChildren"/>
+ <ownedOperation xmi:type="uml:Operation" xmi:id="_843RcAPAEeW8nIkIujhtCA" name="getCanonicalSemanticConnections"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_G0aEIM7cEeOkpJkbnruUGQ" name="SemanticChildrenStrategyRegistration">
+ <generalization xmi:type="uml:Generalization" xmi:id="_O3Yh8APAEeW8nIkIujhtCA" general="_gMFEQAO9EeW8nIkIujhtCA"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_7H_q4M7cEeOkpJkbnruUGQ" name="strategy" type="_ADvBkM7cEeOkpJkbnruUGQ" association="_7IAR8M7cEeOkpJkbnruUGQ">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_7H_q4c7cEeOkpJkbnruUGQ" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_7H_q4s7cEeOkpJkbnruUGQ" value="1"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_LRsu0M7cEeOkpJkbnruUGQ" name="SemanticChildrenStrategyRegistry">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_HV9ckM7dEeOkpJkbnruUGQ" name="strategy" type="_gMFEQAO9EeW8nIkIujhtCA" aggregation="composite" association="_HV-qsM7dEeOkpJkbnruUGQ">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_HV9ckc7dEeOkpJkbnruUGQ"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_HV9cks7dEeOkpJkbnruUGQ" value="*"/>
+ </ownedAttribute>
+ <ownedOperation xmi:type="uml:Operation" xmi:id="__iRd0M7cEeOkpJkbnruUGQ" name="getInstance" isStatic="true"/>
+ <ownedOperation xmi:type="uml:Operation" xmi:id="_DiGwcM7dEeOkpJkbnruUGQ" name="getSemanticChildrenStrategy">
+ <ownedParameter xmi:type="uml:Parameter" xmi:id="_M0DVEAO8EeW8nIkIujhtCA" name="editPart" type="_TWJJEAO8EeW8nIkIujhtCA" effect="read"/>
+ <ownedParameter xmi:type="uml:Parameter" xmi:id="_feMgAAO8EeW8nIkIujhtCA" type="_ADvBkM7cEeOkpJkbnruUGQ" direction="return"/>
+ </ownedOperation>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_7IAR8M7cEeOkpJkbnruUGQ" memberEnd="_7IAR8c7cEeOkpJkbnruUGQ _7H_q4M7cEeOkpJkbnruUGQ">
+ <ownedEnd xmi:type="uml:Property" xmi:id="_7IAR8c7cEeOkpJkbnruUGQ" type="_G0aEIM7cEeOkpJkbnruUGQ" association="_7IAR8M7cEeOkpJkbnruUGQ">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_7IAR8s7cEeOkpJkbnruUGQ" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_7IAR887cEeOkpJkbnruUGQ" value="1"/>
+ </ownedEnd>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_HV-qsM7dEeOkpJkbnruUGQ" memberEnd="_HV-qsc7dEeOkpJkbnruUGQ _HV9ckM7dEeOkpJkbnruUGQ">
+ <ownedEnd xmi:type="uml:Property" xmi:id="_HV-qsc7dEeOkpJkbnruUGQ" name="registry" type="_LRsu0M7cEeOkpJkbnruUGQ" association="_HV-qsM7dEeOkpJkbnruUGQ">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_HV-qss7dEeOkpJkbnruUGQ" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_HV-qs87dEeOkpJkbnruUGQ" value="1"/>
+ </ownedEnd>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_AK5mwAO9EeW8nIkIujhtCA" name="VisualChildrenStrategyRegistration">
+ <generalization xmi:type="uml:Generalization" xmi:id="_PstAYAPAEeW8nIkIujhtCA" general="_gMFEQAO9EeW8nIkIujhtCA"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_cgdcMAO_EeW8nIkIujhtCA" name="strategy" type="_AK6N0AO9EeW8nIkIujhtCA" association="_cgc1IAO_EeW8nIkIujhtCA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Interface" xmi:id="_AK6N0AO9EeW8nIkIujhtCA" name="IVisualChildrenStrategy">
+ <ownedOperation xmi:type="uml:Operation" xmi:id="_AK6N0QO9EeW8nIkIujhtCA" name="getCanonicalChildren"/>
+ <ownedOperation xmi:type="uml:Operation" xmi:id="_AK6N0gO9EeW8nIkIujhtCA" name="getCanonicalEdges"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_gMFEQAO9EeW8nIkIujhtCA" name="Registration">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_m_3k4APAEeW8nIkIujhtCA" name="priority">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_2WGPYAO9EeW8nIkIujhtCA" name="CreationTargetStrategyRegistration">
+ <generalization xmi:type="uml:Generalization" xmi:id="_QfP3oAPAEeW8nIkIujhtCA" general="_gMFEQAO9EeW8nIkIujhtCA"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_29QrIgO_EeW8nIkIujhtCA" name="strategy" type="_2WGPZwO9EeW8nIkIujhtCA" association="_29QEEAO_EeW8nIkIujhtCA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Interface" xmi:id="_2WGPZwO9EeW8nIkIujhtCA" name="ICreationTargetStrategy">
+ <ownedOperation xmi:type="uml:Operation" xmi:id="_2WGPaAO9EeW8nIkIujhtCA" name="getTargetEditPart"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_cgc1IAO_EeW8nIkIujhtCA" memberEnd="_cgdcMAO_EeW8nIkIujhtCA _cgdcMQO_EeW8nIkIujhtCA">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_cgc1IQO_EeW8nIkIujhtCA" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_cgc1IgO_EeW8nIkIujhtCA" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_cgdcMQO_EeW8nIkIujhtCA" type="_AK5mwAO9EeW8nIkIujhtCA" association="_cgc1IAO_EeW8nIkIujhtCA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_29QEEAO_EeW8nIkIujhtCA" memberEnd="_29QrIgO_EeW8nIkIujhtCA _29RSMAO_EeW8nIkIujhtCA">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_29QrIAO_EeW8nIkIujhtCA" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_29QrIQO_EeW8nIkIujhtCA" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_29RSMAO_EeW8nIkIujhtCA" type="_2WGPYAO9EeW8nIkIujhtCA" association="_29QEEAO_EeW8nIkIujhtCA"/>
+ </packagedElement>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_Gs8q4M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.editpolicyProviders" client="_Gs61sM7UEeOkpJkbnruUGQ" supplier="_Gs8D0M7UEeOkpJkbnruUGQ"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_hGz2YM7bEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.canonical.editpolicy">
+ <packagedElement xmi:type="uml:Class" xmi:id="_0-fygM7bEeOkpJkbnruUGQ" name="PapyrusCanonicalEditPolicy">
+ <ownedOperation xmi:type="uml:Operation" xmi:id="_YbQwoM7dEeOkpJkbnruUGQ" name="getSemanticChildrenList"/>
+ <ownedOperation xmi:type="uml:Operation" xmi:id="_bqP1IM7dEeOkpJkbnruUGQ" name="refreshSemanticChildren"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_Q1hHQM7dEeOkpJkbnruUGQ" name="Dependency1" client="_0-fygM7bEeOkpJkbnruUGQ" supplier="_DiGwcM7dEeOkpJkbnruUGQ"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Package" xmi:id="_i84nMM7bEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.canonical.internal.provider">
+ <packagedElement xmi:type="uml:Class" xmi:id="_7XyP0M7bEeOkpJkbnruUGQ" name="PapyrusCanonicalEditPolicyProvider">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_PaKZAM7cEeOkpJkbnruUGQ" name="canonicalEditPolicy" type="_0-fygM7bEeOkpJkbnruUGQ" association="_PaLAEM7cEeOkpJkbnruUGQ">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_PaKZAc7cEeOkpJkbnruUGQ" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_PaKZAs7cEeOkpJkbnruUGQ" value="1"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_PaLAEM7cEeOkpJkbnruUGQ" memberEnd="_PaLAEc7cEeOkpJkbnruUGQ _PaKZAM7cEeOkpJkbnruUGQ">
+ <ownedEnd xmi:type="uml:Property" xmi:id="_PaLAEc7cEeOkpJkbnruUGQ" name="synchronizeEditPolicyProvider" type="_7XyP0M7bEeOkpJkbnruUGQ" association="_PaLAEM7cEeOkpJkbnruUGQ">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_PaLAEs7cEeOkpJkbnruUGQ" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_PaLAE87cEeOkpJkbnruUGQ" value="1"/>
+ </ownedEnd>
+ </packagedElement>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_UZUrEAPBEeW8nIkIujhtCA" client="_hGz2YM7bEeOkpJkbnruUGQ" supplier="_W7DF0MohEeO3DsHezUU9Sg"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_bZHHsAPBEeW8nIkIujhtCA" client="_Gs3LUM7UEeOkpJkbnruUGQ" supplier="_WWPdsMojEeO3DsHezUU9Sg"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Component" xmi:id="_Glk3kM7UEeOkpJkbnruUGQ" name="org.eclipse.ui">
+ <packagedElement xmi:type="uml:Package" xmi:id="_GlszYM7UEeOkpJkbnruUGQ" name="org.eclipse.ui.internal"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Component" xmi:id="_Gl0IIM7UEeOkpJkbnruUGQ" name="org.eclipse.core.runtime">
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gl610M7UEeOkpJkbnruUGQ" name="org.eclipse.core.internal.preferences.legacy"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gl9SEM7UEeOkpJkbnruUGQ" name="org.eclipse.core.internal.runtime"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gl_uUM7UEeOkpJkbnruUGQ" name="org.eclipse.core.runtime"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Component" xmi:id="_GmF08M7UEeOkpJkbnruUGQ" name="org.eclipse.emf.common">
+ <packagedElement xmi:type="uml:Package" xmi:id="_GmMioM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.common"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GmO-4M7UEeOkpJkbnruUGQ" name="org.eclipse.emf.common.archive"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GmRbIM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.common.command"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GmT3YM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.common.notify"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GmWToM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.common.notify.impl"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GmYv4M7UEeOkpJkbnruUGQ" name="org.eclipse.emf.common.util"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Component" xmi:id="_GmePcc7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore">
+ <packagedElement xmi:type="uml:Package" xmi:id="_GmlkMM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GmoAcM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.impl"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GmqcsM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.plugin"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gms48M7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.resource"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GmvVMM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.resource.impl"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GmxxcM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.util"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gm0NsM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.xml.namespace"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gm2p8M7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.xml.namespace.impl"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gm5GMM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.xml.namespace.util"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gm7icM7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.xml.type"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gm9Xoc7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.xml.type.impl"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gm_z4c7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.xml.type.internal"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GnCQIc7UEeOkpJkbnruUGQ" name="org.eclipse.emf.ecore.xml.type.util"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Component" xmi:id="_GnHvsc7UEeOkpJkbnruUGQ" name="org.eclipse.gef">
+ <packagedElement xmi:type="uml:Package" xmi:id="_GnPEcM7UEeOkpJkbnruUGQ" name="org.eclipse.gef">
+ <packagedElement xmi:type="uml:Interface" xmi:id="_TWJJEAO8EeW8nIkIujhtCA" name="EditPart"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GnQ5oc7UEeOkpJkbnruUGQ" name="org.eclipse.gef.commands"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GnTV4c7UEeOkpJkbnruUGQ" name="org.eclipse.gef.dnd"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GnVyIM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.editparts"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GnYOYM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.editpolicies"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GnaqoM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.handles"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GndG4M7UEeOkpJkbnruUGQ" name="org.eclipse.gef.internal"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GnfjIM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.internal.icons"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gnh_YM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.internal.ui.palette"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GnkboM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.internal.ui.palette.editparts"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gnm34M7UEeOkpJkbnruUGQ" name="org.eclipse.gef.internal.ui.rulers"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GnpUIM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.palette"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GnrJUc7UEeOkpJkbnruUGQ" name="org.eclipse.gef.print"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GntlkM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.requests"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GnwB0M7UEeOkpJkbnruUGQ" name="org.eclipse.gef.rulers"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gnx3Ac7UEeOkpJkbnruUGQ" name="org.eclipse.gef.tools"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gn0TQM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.actions"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gn2vgM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.console"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gn4ksc7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.console.icons"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gn7A8c7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.palette"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gn-EQM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.palette.customize"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GoBHkM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.palette.editparts"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GoDj0c7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.parts"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GoGnIM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.properties"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GoJqcM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.rulers"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GoMtwM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.stackview"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GoPKAM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.stackview.icons"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GoSNUM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.ui.views.palette"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GoUpkM7UEeOkpJkbnruUGQ" name="org.eclipse.gef.util"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Component" xmi:id="_GoawMc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui">
+ <ownedAttribute xmi:type="uml:Port" xmi:id="_Gs8D0M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.editpolicyProviders"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GoiE8M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GokhMc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.actions"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GonkgM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.commands"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GoqAwc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.dialogs.sortfilter"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GotEEM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.editparts"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GowHYM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.editpolicies"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GoyjoM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.figures"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Go0_4c7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.handles"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Go3cIc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.image"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Go6fcM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Go9iwM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.actions"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Go__Ac7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.commands"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GpDCUM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.dialogs"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GpGFoM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.dialogs.sortfilter"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GpIh4c7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.editparts"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GpLlMM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.editpolicies"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GpOogM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.figures"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GpREwM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.handles"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GpThAM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.l10n"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GpV9QM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.pagesetup"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GpYZgM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.parts"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GpaOsc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.properties"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gpcq8M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.requests"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GpfHMM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.resources"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GphjcM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.ruler"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gpj_sM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.ruler.commands"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gpl04M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.services.decorator"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GpnqEM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.services.editpart"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GppfQM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.services.editpolicy"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GprUcc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.services.layout"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GptwsM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.services.palette"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gpvl4M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.tools"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GpxbEc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.type"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GpzQQc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.internal.util"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gp1sgM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.l10n"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gp3hsM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.label"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gp5W4c7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.layout"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gp7MEc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.menus"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gp9oUM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.parts"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gp_dgM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.preferences"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GqBSsM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.providers"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GqDH4M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.requests"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GqE9Ec7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.services.decorator"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GqGyQc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.services.editpart"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GqIncc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.services.editpolicy"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GqKcoM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.services.layout"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GqMR0M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.services.palette"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GqNf8c7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.tools"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GqPVIM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.type"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GqRKUM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.util"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GqSYcc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.view.factories"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GqUNoM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.runtime.diagram.ui.view.factories.optimal"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Component" xmi:id="_GqYfEM7UEeOkpJkbnruUGQ" name="org.eclipse.uml2.uml">
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gqd-oM7UEeOkpJkbnruUGQ" name="org.eclipse.uml2.uml"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gqfz0M7UEeOkpJkbnruUGQ" name="org.eclipse.uml2.uml.internal.impl"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GqhpAM7UEeOkpJkbnruUGQ" name="org.eclipse.uml2.uml.internal.operations"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GqjeMM7UEeOkpJkbnruUGQ" name="org.eclipse.uml2.uml.internal.resource"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GqlTYM7UEeOkpJkbnruUGQ" name="org.eclipse.uml2.uml.resource"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GqnIkM7UEeOkpJkbnruUGQ" name="org.eclipse.uml2.uml.util"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Component" xmi:id="_Gqqy8M7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core">
+ <packagedElement xmi:type="uml:Package" xmi:id="_GqwSgM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GqyHsM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.clipboard"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gqz84M7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.contentoutline"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gq1LAc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.editor"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gq3AMM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.editorsfactory"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gq41YM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.extension"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gq6Dgc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.extension.commands"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gq74sM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.extension.diagrameditor"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gq9t4M7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.lifecycleevents"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gq-8AM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.listenerservice"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GrAxMM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.markers"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GrB_Uc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.modelsetquery"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GrD0gM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.modelsetquery.impl"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GrFpsM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.multidiagram.actionbarcontributor"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GrG30c7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.resource"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GrItAM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.resource.additional"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GrKiMc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.resource.sasheditor"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GrMXYM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.services"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GrOMkM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.utils"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Component" xmi:id="_GrR28M7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common">
+ <packagedElement xmi:type="uml:Package" xmi:id="_GrX9kM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GrZLsc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.adapter"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GrbA4M7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.commands"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Grc2EM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.commands.requests"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GreEMc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.databinding.custom"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Grf5YM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.decoration"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GrhHgc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.editpart"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gri8sM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Grkx4M7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.figure.edge"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GrmAAc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.figure.node"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Grn1MM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.handler"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GrpDUc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.helper"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Grq4gM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.listener"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GrstsM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.model"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Grt70c7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.preferences"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GrvxAM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.providers"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Grw_Ic7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.service.shape"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gry0UM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.snap"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gr0Ccc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.strategy"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gr13oM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.strategy.copy"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gr3Fwc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.strategy.paste"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gr468M7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.types"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gr6JEc7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.undocontext"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Gr7-QM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.gmfdiag.common.utils"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Component" xmi:id="_GsAPsM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime">
+ <packagedElement xmi:type="uml:Package" xmi:id="_GsGWUM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GsHkcc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.actions"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GsJZoM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.directedit"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GsLO0M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.directedit.locator"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GsMc8c7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.draw2d"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GsOSIM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.draw2d.labels"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GsQHUM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.edit.helpers"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GsRVcM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.edit.policies"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GsTKoM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.edit.policies.effect"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GsUYwc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.edit.policies.labels"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GsWN8M7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.edit.policies.reparent"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GsXcEc7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.ocl.tracker"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GsZRQM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.parsers"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GsbGcM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.part"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GscUkM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.providers"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GseJwM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.sheet"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GsfX4c7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.structure"/>
+ <packagedElement xmi:type="uml:Package" xmi:id="_GshNEM7UEeOkpJkbnruUGQ" name="org.eclipse.gmf.tooling.runtime.update"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Component" xmi:id="_GslegM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.log">
+ <packagedElement xmi:type="uml:Package" xmi:id="_GsrlIM7UEeOkpJkbnruUGQ" name="org.eclipse.papyrus.infra.core.log"/>
+ </packagedElement>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_Gfrq8M7UEeOkpJkbnruUGQ">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_KumCQAOtEeWytIRHPc2H8Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KumCQQOtEeWytIRHPc2H8Q" key="Version" value="0.0.4"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KumCQgOtEeWytIRHPc2H8Q" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KumCQwOtEeWytIRHPc2H8Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KumCRAOtEeWytIRHPc2H8Q" key="Date" value="2014-06-02"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KumCRQOtEeWytIRHPc2H8Q" key="Author" value=""/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_GhgP4M7UEeOkpJkbnruUGQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://ADL4ECLIPSE_PROFILES/adl4eclipse.profile.uml#_rlFYwOqKEeOfTcbrnCq2oQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://ADL4ECLIPSE_PROFILES/adl4eclipse.profile.uml#_nE1m0Hz7EeKfO4elN3J5Fw"/>
+ </profileApplication>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Model" xmi:id="_lNLnaMbvEeO9CYUoXDRplw" name="Test">
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_lNLnacbvEeO9CYUoXDRplw" name="Dependency1" client="_lNLnaMbvEeO9CYUoXDRplw" supplier="_lNLnY8bvEeO9CYUoXDRplw"/>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_lNLnasbvEeO9CYUoXDRplw" name="Dependency2" client="_lNLnaMbvEeO9CYUoXDRplw" supplier="_lNLnZsbvEeO9CYUoXDRplw"/>
+ </packagedElement>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_lNLna8bvEeO9CYUoXDRplw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_KvDVQAOtEeWytIRHPc2H8Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvDVQQOtEeWytIRHPc2H8Q" key="Version" value="0.0.7"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvDVQgOtEeWytIRHPc2H8Q" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvDVQwOtEeWytIRHPc2H8Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvDVRAOtEeWytIRHPc2H8Q" key="Date" value="2014-11-26"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvDVRQOtEeWytIRHPc2H8Q" key="Author" value=""/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_lNLnbMbvEeO9CYUoXDRplw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_rplkQXVxEeSZ-fQGFkyJeQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_kWqjAMbXEeO09JBvNFZRNw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_lNLnbcbvEeO9CYUoXDRplw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_KvO7cAOtEeWytIRHPc2H8Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvO7cQOtEeWytIRHPc2H8Q" key="Version" value="0.0.7"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvO7cgOtEeWytIRHPc2H8Q" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvO7cwOtEeWytIRHPc2H8Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvO7dAOtEeWytIRHPc2H8Q" key="Date" value="2014-11-26"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvO7dQOtEeWytIRHPc2H8Q" key="Author" value=""/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_lNLnbsbvEeO9CYUoXDRplw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_rpmyYHVxEeSZ-fQGFkyJeQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_qCT3MMbXEeO09JBvNFZRNw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_lNLnb8bvEeO9CYUoXDRplw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_KvUbAAOtEeWytIRHPc2H8Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvUbAQOtEeWytIRHPc2H8Q" key="Version" value="0.0.7"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvUbAgOtEeWytIRHPc2H8Q" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvUbAwOtEeWytIRHPc2H8Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvUbBAOtEeWytIRHPc2H8Q" key="Date" value="2014-11-26"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvUbBQOtEeWytIRHPc2H8Q" key="Author" value=""/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_lNLncMbvEeO9CYUoXDRplw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_rpnZcXVxEeSZ-fQGFkyJeQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_2LNtQMbYEeO09JBvNFZRNw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_zqiBwMbvEeO9CYUoXDRplw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_zq7DUMbvEeO9CYUoXDRplw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_OOJC4LX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_FGuXIMn2EeOU_InmtzG_ow">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_KvjEgAOtEeWytIRHPc2H8Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvjEgQOtEeWytIRHPc2H8Q" key="Version" value="0.0.11"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvjEggOtEeWytIRHPc2H8Q" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvjEgwOtEeWytIRHPc2H8Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvjEhAOtEeWytIRHPc2H8Q" key="Date" value="2014-11-14"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KvjEhQOtEeWytIRHPc2H8Q" key="Author" value=""/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_FJEggMn2EeOU_InmtzG_ow" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/Document.profile.uml#_RQrLoWwBEeSIYu1Ih2FYyQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/Document.profile.uml#_D0JcUMnzEeO9CYUoXDRplw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_DbpSMM7UEeOkpJkbnruUGQ">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_LBGHgAOtEeWytIRHPc2H8Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_LBGHgQOtEeWytIRHPc2H8Q" key="Version" value="0.0.4"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_LBGHggOtEeWytIRHPc2H8Q" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_LBGHgwOtEeWytIRHPc2H8Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_LBGHhAOtEeWytIRHPc2H8Q" key="Date" value="2014-06-02"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_LBGHhQOtEeWytIRHPc2H8Q" key="Author" value=""/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_DdivoM7UEeOkpJkbnruUGQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://ADL4ECLIPSE_PROFILES/adl4eclipse.profile.uml#_rlFYwOqKEeOfTcbrnCq2oQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://ADL4ECLIPSE_PROFILES/adl4eclipse.profile.uml#_nE1m0Hz7EeKfO4elN3J5Fw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_Ddkk0M7UEeOkpJkbnruUGQ">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_DfYisM7UEeOkpJkbnruUGQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://OSGI_PROFILES/osgi.profile.uml#_0xHxUYDEEeKQG4TlBAn6bg"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://OSGI_PROFILES/osgi.profile.uml#_OKU8EHtxEeKcL-wrhM9ICg"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_DfaX4M7UEeOkpJkbnruUGQ">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_DhHBAM7UEeOkpJkbnruUGQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://OSGI_PROFILES/osgi.profile.uml#_0xRiUIDEEeKQG4TlBAn6bg"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://OSGI_PROFILES/osgi.profile.uml#_YbhfEHtxEeKcL-wrhM9ICg"/>
+ </profileApplication>
+ </uml:Model>
+ <structure:Project xmi:id="_lNODoMbvEeO9CYUoXDRplw" author="P. Tessier (CEA LIST)&#xA;Christian W. Damus" version="0.1" base_Model="_lNLnYMbvEeO9CYUoXDRplw" title="Canonical Diagram Views"/>
+ <structure:Requirements xmi:id="_lNOqsMbvEeO9CYUoXDRplw" base_Model="_lNLnYsbvEeO9CYUoXDRplw"/>
+ <structure:UseCases xmi:id="_lNOqscbvEeO9CYUoXDRplw" base_Model="_lNLnY8bvEeO9CYUoXDRplw"/>
+ <structure:Design xmi:id="_lNOqssbvEeO9CYUoXDRplw" base_Model="_lNLnZsbvEeO9CYUoXDRplw"/>
+ <structure:Tests xmi:id="_lNOqs8bvEeO9CYUoXDRplw" base_Model="_lNLnaMbvEeO9CYUoXDRplw"/>
+ <structure:UserDoc xmi:id="_uqNUsMofEeO3DsHezUU9Sg" base_Comment="_gP184MofEeO3DsHezUU9Sg"/>
+ <Requirements:Requirement xmi:id="_W7IlYMohEeO3DsHezUU9Sg" text="The synchronization shall be local for each graphical element for example: package compartment, attribute compartment..." id="Req001" base_Class="_W7DF0MohEeO3DsHezUU9Sg"/>
+ <Requirements:Requirement xmi:id="_9DBtAMoiEeO3DsHezUU9Sg" text="The synchronization shall be parameterized by CSS, by using a keyword and a value." id="Req002" base_Class="_9DAe4MoiEeO3DsHezUU9Sg"/>
+ <Requirements:Requirement xmi:id="_WWQr0MojEeO3DsHezUU9Sg" text="For an graphical element, it shall be possible to custom the synchonization" id="Req003" base_Class="_WWPdsMojEeO3DsHezUU9Sg"/>
+ <structure:DeveloperDoc xmi:id="_aDgUcMo1EeO3DsHezUU9Sg" base_Comment="_XBXZIMo1EeO3DsHezUU9Sg"/>
+ <structure:DeveloperDoc xmi:id="_c407wMo1EeO3DsHezUU9Sg" base_Comment="_a-G7gMo1EeO3DsHezUU9Sg"/>
+ <structure:DeveloperDoc xmi:id="_d06JgMo1EeO3DsHezUU9Sg" base_Comment="_bGhQoMo1EeO3DsHezUU9Sg"/>
+ <structure:DeveloperDoc xmi:id="_ym9xQMo3EeOzTpunJ7qmNw" base_Comment="_vxFwUMo3EeOzTpunJ7qmNw"/>
+ <structure:DeveloperDoc xmi:id="_ZWAAEMr3EeOxaZrLLxAqiw" base_Comment="_X4kYwMr3EeOxaZrLLxAqiw"/>
+ <ADL4Eclipse:Plugin xmi:id="_GhlIYM7UEeOkpJkbnruUGQ" base_Component="_GhiFEM7UEeOkpJkbnruUGQ" isIncubation="true"/>
+ <ADL4Eclipse:Plugin xmi:id="_GlnT0M7UEeOkpJkbnruUGQ" base_Component="_Glk3kM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GlvPoM7UEeOkpJkbnruUGQ" base_Package="_GlszYM7UEeOkpJkbnruUGQ" isInternal="true"/>
+ <ModuleLayer:BundleReference xmi:id="_GlzhEM7UEeOkpJkbnruUGQ" base_Dependency="_GlxE0M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:Plugin xmi:id="_Gl19UM7UEeOkpJkbnruUGQ" base_Component="_Gl0IIM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gl8rAM7UEeOkpJkbnruUGQ" base_Package="_Gl610M7UEeOkpJkbnruUGQ" isInternal="true"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gl_HQM7UEeOkpJkbnruUGQ" base_Package="_Gl9SEM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmBjgM7UEeOkpJkbnruUGQ" base_Package="_Gl_uUM7UEeOkpJkbnruUGQ"/>
+ <ModuleLayer:BundleReference xmi:id="_GmFN4M7UEeOkpJkbnruUGQ" base_Dependency="_GmCxoM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:Plugin xmi:id="_GmHqIM7UEeOkpJkbnruUGQ" base_Component="_GmF08M7UEeOkpJkbnruUGQ" lazyStart="true"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmOX0M7UEeOkpJkbnruUGQ" base_Package="_GmMioM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmQ0EM7UEeOkpJkbnruUGQ" base_Package="_GmO-4M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmTQUM7UEeOkpJkbnruUGQ" base_Package="_GmRbIM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmVskM7UEeOkpJkbnruUGQ" base_Package="_GmT3YM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmYI0M7UEeOkpJkbnruUGQ" base_Package="_GmWToM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmalEM7UEeOkpJkbnruUGQ" base_Package="_GmYv4M7UEeOkpJkbnruUGQ"/>
+ <ModuleLayer:BundleReference xmi:id="_GmePcM7UEeOkpJkbnruUGQ" base_Dependency="_GmbzMM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:Plugin xmi:id="_GmgrsM7UEeOkpJkbnruUGQ" base_Component="_GmePcc7UEeOkpJkbnruUGQ" lazyStart="true"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmnZYM7UEeOkpJkbnruUGQ" base_Package="_GmlkMM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gmp1oM7UEeOkpJkbnruUGQ" base_Package="_GmoAcM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmsR4M7UEeOkpJkbnruUGQ" base_Package="_GmqcsM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmuuIM7UEeOkpJkbnruUGQ" base_Package="_Gms48M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmxKYM7UEeOkpJkbnruUGQ" base_Package="_GmvVMM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GmzmoM7UEeOkpJkbnruUGQ" base_Package="_GmxxcM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gm2C4M7UEeOkpJkbnruUGQ" base_Package="_Gm0NsM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gm4fIM7UEeOkpJkbnruUGQ" base_Package="_Gm2p8M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gm67YM7UEeOkpJkbnruUGQ" base_Package="_Gm5GMM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gm9XoM7UEeOkpJkbnruUGQ" base_Package="_Gm7icM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gm_z4M7UEeOkpJkbnruUGQ" base_Package="_Gm9Xoc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnCQIM7UEeOkpJkbnruUGQ" base_Package="_Gm_z4c7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnEFUM7UEeOkpJkbnruUGQ" base_Package="_GnCQIc7UEeOkpJkbnruUGQ"/>
+ <ModuleLayer:BundleReference xmi:id="_GnHvsM7UEeOkpJkbnruUGQ" base_Dependency="_GnFTcM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:Plugin xmi:id="_GnKL8M7UEeOkpJkbnruUGQ" base_Component="_GnHvsc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnQ5oM7UEeOkpJkbnruUGQ" base_Package="_GnPEcM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnTV4M7UEeOkpJkbnruUGQ" base_Package="_GnQ5oc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnVLEM7UEeOkpJkbnruUGQ" base_Package="_GnTV4c7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnXnUM7UEeOkpJkbnruUGQ" base_Package="_GnVyIM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnaDkM7UEeOkpJkbnruUGQ" base_Package="_GnYOYM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gncf0M7UEeOkpJkbnruUGQ" base_Package="_GnaqoM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gne8EM7UEeOkpJkbnruUGQ" base_Package="_GndG4M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnhYUM7UEeOkpJkbnruUGQ" base_Package="_GnfjIM7UEeOkpJkbnruUGQ" isInternal="true"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gnj0kM7UEeOkpJkbnruUGQ" base_Package="_Gnh_YM7UEeOkpJkbnruUGQ" isInternal="true"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnmQ0M7UEeOkpJkbnruUGQ" base_Package="_GnkboM7UEeOkpJkbnruUGQ" isInternal="true"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnotEM7UEeOkpJkbnruUGQ" base_Package="_Gnm34M7UEeOkpJkbnruUGQ" isInternal="true"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnrJUM7UEeOkpJkbnruUGQ" base_Package="_GnpUIM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gns-gM7UEeOkpJkbnruUGQ" base_Package="_GnrJUc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnvawM7UEeOkpJkbnruUGQ" base_Package="_GntlkM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gnx3AM7UEeOkpJkbnruUGQ" base_Package="_GnwB0M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GnzsMM7UEeOkpJkbnruUGQ" base_Package="_Gnx3Ac7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gn2IcM7UEeOkpJkbnruUGQ" base_Package="_Gn0TQM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gn4ksM7UEeOkpJkbnruUGQ" base_Package="_Gn2vgM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gn7A8M7UEeOkpJkbnruUGQ" base_Package="_Gn4ksc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gn9dMM7UEeOkpJkbnruUGQ" base_Package="_Gn7A8c7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoAggM7UEeOkpJkbnruUGQ" base_Package="_Gn-EQM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoDj0M7UEeOkpJkbnruUGQ" base_Package="_GoBHkM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoGAEM7UEeOkpJkbnruUGQ" base_Package="_GoDj0c7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoJDYM7UEeOkpJkbnruUGQ" base_Package="_GoGnIM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoMGsM7UEeOkpJkbnruUGQ" base_Package="_GoJqcM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoOi8M7UEeOkpJkbnruUGQ" base_Package="_GoMtwM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoRmQM7UEeOkpJkbnruUGQ" base_Package="_GoPKAM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoUCgM7UEeOkpJkbnruUGQ" base_Package="_GoSNUM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoXF0M7UEeOkpJkbnruUGQ" base_Package="_GoUpkM7UEeOkpJkbnruUGQ"/>
+ <ModuleLayer:BundleReference xmi:id="_GoawMM7UEeOkpJkbnruUGQ" base_Dependency="_GoXs4M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:Plugin xmi:id="_GodMcM7UEeOkpJkbnruUGQ" base_Component="_GoawMc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GokhMM7UEeOkpJkbnruUGQ" base_Package="_GoiE8M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gom9cM7UEeOkpJkbnruUGQ" base_Package="_GokhMc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GoqAwM7UEeOkpJkbnruUGQ" base_Package="_GonkgM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GosdAM7UEeOkpJkbnruUGQ" base_Package="_GoqAwc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GovgUM7UEeOkpJkbnruUGQ" base_Package="_GotEEM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gox8kM7UEeOkpJkbnruUGQ" base_Package="_GowHYM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Go0_4M7UEeOkpJkbnruUGQ" base_Package="_GoyjoM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Go3cIM7UEeOkpJkbnruUGQ" base_Package="_Go0_4c7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Go54YM7UEeOkpJkbnruUGQ" base_Package="_Go3cIc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Go87sM7UEeOkpJkbnruUGQ" base_Package="_Go6fcM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Go__AM7UEeOkpJkbnruUGQ" base_Package="_Go9iwM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpCbQM7UEeOkpJkbnruUGQ" base_Package="_Go__Ac7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpFekM7UEeOkpJkbnruUGQ" base_Package="_GpDCUM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpIh4M7UEeOkpJkbnruUGQ" base_Package="_GpGFoM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpK-IM7UEeOkpJkbnruUGQ" base_Package="_GpIh4c7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpOBcM7UEeOkpJkbnruUGQ" base_Package="_GpLlMM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpQdsM7UEeOkpJkbnruUGQ" base_Package="_GpOogM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpS58M7UEeOkpJkbnruUGQ" base_Package="_GpREwM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpVWMM7UEeOkpJkbnruUGQ" base_Package="_GpThAM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpXycM7UEeOkpJkbnruUGQ" base_Package="_GpV9QM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpaOsM7UEeOkpJkbnruUGQ" base_Package="_GpYZgM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpcD4M7UEeOkpJkbnruUGQ" base_Package="_GpaOsc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpegIM7UEeOkpJkbnruUGQ" base_Package="_Gpcq8M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gpg8YM7UEeOkpJkbnruUGQ" base_Package="_GpfHMM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpjYoM7UEeOkpJkbnruUGQ" base_Package="_GphjcM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GplN0M7UEeOkpJkbnruUGQ" base_Package="_Gpj_sM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpnDAM7UEeOkpJkbnruUGQ" base_Package="_Gpl04M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gpo4MM7UEeOkpJkbnruUGQ" base_Package="_GpnqEM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GprUcM7UEeOkpJkbnruUGQ" base_Package="_GppfQM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GptJoM7UEeOkpJkbnruUGQ" base_Package="_GprUcc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gpu-0M7UEeOkpJkbnruUGQ" base_Package="_GptwsM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpxbEM7UEeOkpJkbnruUGQ" base_Package="_Gpvl4M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GpzQQM7UEeOkpJkbnruUGQ" base_Package="_GpxbEc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gp1FcM7UEeOkpJkbnruUGQ" base_Package="_GpzQQc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gp26oM7UEeOkpJkbnruUGQ" base_Package="_Gp1sgM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gp5W4M7UEeOkpJkbnruUGQ" base_Package="_Gp3hsM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gp7MEM7UEeOkpJkbnruUGQ" base_Package="_Gp5W4c7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gp9BQM7UEeOkpJkbnruUGQ" base_Package="_Gp7MEc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gp-2cM7UEeOkpJkbnruUGQ" base_Package="_Gp9oUM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqAroM7UEeOkpJkbnruUGQ" base_Package="_Gp_dgM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqCg0M7UEeOkpJkbnruUGQ" base_Package="_GqBSsM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqE9EM7UEeOkpJkbnruUGQ" base_Package="_GqDH4M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqGyQM7UEeOkpJkbnruUGQ" base_Package="_GqE9Ec7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqIncM7UEeOkpJkbnruUGQ" base_Package="_GqGyQc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqJ1kM7UEeOkpJkbnruUGQ" base_Package="_GqIncc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqLqwM7UEeOkpJkbnruUGQ" base_Package="_GqKcoM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqNf8M7UEeOkpJkbnruUGQ" base_Package="_GqMR0M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqOuEM7UEeOkpJkbnruUGQ" base_Package="_GqNf8c7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqQjQM7UEeOkpJkbnruUGQ" base_Package="_GqPVIM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqSYcM7UEeOkpJkbnruUGQ" base_Package="_GqRKUM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqTmkM7UEeOkpJkbnruUGQ" base_Package="_GqSYcc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqVbwM7UEeOkpJkbnruUGQ" base_Package="_GqUNoM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:Plugin xmi:id="_GqZtMM7UEeOkpJkbnruUGQ" base_Component="_GqYfEM7UEeOkpJkbnruUGQ" lazyStart="true"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqfMwM7UEeOkpJkbnruUGQ" base_Package="_Gqd-oM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqhB8M7UEeOkpJkbnruUGQ" base_Package="_Gqfz0M7UEeOkpJkbnruUGQ" isInternal="true"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gqi3IM7UEeOkpJkbnruUGQ" base_Package="_GqhpAM7UEeOkpJkbnruUGQ" isInternal="true"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqksUM7UEeOkpJkbnruUGQ" base_Package="_GqjeMM7UEeOkpJkbnruUGQ" isInternal="true"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqmhgM7UEeOkpJkbnruUGQ" base_Package="_GqlTYM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqnvoM7UEeOkpJkbnruUGQ" base_Package="_GqnIkM7UEeOkpJkbnruUGQ"/>
+ <ModuleLayer:BundleReference xmi:id="_GqqL4M7UEeOkpJkbnruUGQ" base_Dependency="_Gqo9wM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:Plugin xmi:id="_GqsBEM7UEeOkpJkbnruUGQ" base_Component="_Gqqy8M7UEeOkpJkbnruUGQ" isIncubation="true"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqxgoM7UEeOkpJkbnruUGQ" base_Package="_GqwSgM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GqzV0M7UEeOkpJkbnruUGQ" base_Package="_GqyHsM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gq1LAM7UEeOkpJkbnruUGQ" base_Package="_Gqz84M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gq2ZIM7UEeOkpJkbnruUGQ" base_Package="_Gq1LAc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gq4OUM7UEeOkpJkbnruUGQ" base_Package="_Gq3AMM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gq6DgM7UEeOkpJkbnruUGQ" base_Package="_Gq41YM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gq7RoM7UEeOkpJkbnruUGQ" base_Package="_Gq6Dgc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gq9G0M7UEeOkpJkbnruUGQ" base_Package="_Gq74sM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gq-U8M7UEeOkpJkbnruUGQ" base_Package="_Gq9t4M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrAKIM7UEeOkpJkbnruUGQ" base_Package="_Gq-8AM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrB_UM7UEeOkpJkbnruUGQ" base_Package="_GrAxMM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrDNcM7UEeOkpJkbnruUGQ" base_Package="_GrB_Uc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrFCoM7UEeOkpJkbnruUGQ" base_Package="_GrD0gM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrG30M7UEeOkpJkbnruUGQ" base_Package="_GrFpsM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrIF8M7UEeOkpJkbnruUGQ" base_Package="_GrG30c7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrKiMM7UEeOkpJkbnruUGQ" base_Package="_GrItAM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrLwUM7UEeOkpJkbnruUGQ" base_Package="_GrKiMc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrNlgM7UEeOkpJkbnruUGQ" base_Package="_GrMXYM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrPasM7UEeOkpJkbnruUGQ" base_Package="_GrOMkM7UEeOkpJkbnruUGQ"/>
+ <ModuleLayer:BundleReference xmi:id="_GrRP4M7UEeOkpJkbnruUGQ" base_Dependency="_GrQBwM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:Plugin xmi:id="_GrTFEM7UEeOkpJkbnruUGQ" base_Component="_GrR28M7UEeOkpJkbnruUGQ" isIncubation="true"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrZLsM7UEeOkpJkbnruUGQ" base_Package="_GrX9kM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GraZ0M7UEeOkpJkbnruUGQ" base_Package="_GrZLsc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrcPAM7UEeOkpJkbnruUGQ" base_Package="_GrbA4M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GreEMM7UEeOkpJkbnruUGQ" base_Package="_Grc2EM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrfSUM7UEeOkpJkbnruUGQ" base_Package="_GreEMc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrhHgM7UEeOkpJkbnruUGQ" base_Package="_Grf5YM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GriVoM7UEeOkpJkbnruUGQ" base_Package="_GrhHgc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrkK0M7UEeOkpJkbnruUGQ" base_Package="_Gri8sM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrmAAM7UEeOkpJkbnruUGQ" base_Package="_Grkx4M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrnOIM7UEeOkpJkbnruUGQ" base_Package="_GrmAAc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrpDUM7UEeOkpJkbnruUGQ" base_Package="_Grn1MM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrqRcM7UEeOkpJkbnruUGQ" base_Package="_GrpDUc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrsGoM7UEeOkpJkbnruUGQ" base_Package="_Grq4gM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Grt70M7UEeOkpJkbnruUGQ" base_Package="_GrstsM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GrvJ8M7UEeOkpJkbnruUGQ" base_Package="_Grt70c7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Grw_IM7UEeOkpJkbnruUGQ" base_Package="_GrvxAM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GryNQM7UEeOkpJkbnruUGQ" base_Package="_Grw_Ic7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gr0CcM7UEeOkpJkbnruUGQ" base_Package="_Gry0UM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gr1QkM7UEeOkpJkbnruUGQ" base_Package="_Gr0Ccc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gr3FwM7UEeOkpJkbnruUGQ" base_Package="_Gr13oM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gr4T4M7UEeOkpJkbnruUGQ" base_Package="_Gr3Fwc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gr6JEM7UEeOkpJkbnruUGQ" base_Package="_Gr468M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gr7XMM7UEeOkpJkbnruUGQ" base_Package="_Gr6JEc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gr9MYM7UEeOkpJkbnruUGQ" base_Package="_Gr7-QM7UEeOkpJkbnruUGQ"/>
+ <ModuleLayer:BundleReference xmi:id="_Gr_ooM7UEeOkpJkbnruUGQ" base_Dependency="_Gr9zcM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:Plugin xmi:id="_GsBd0M7UEeOkpJkbnruUGQ" base_Component="_GsAPsM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsHkcM7UEeOkpJkbnruUGQ" base_Package="_GsGWUM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsIykM7UEeOkpJkbnruUGQ" base_Package="_GsHkcc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsKnwM7UEeOkpJkbnruUGQ" base_Package="_GsJZoM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsMc8M7UEeOkpJkbnruUGQ" base_Package="_GsLO0M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsNrEM7UEeOkpJkbnruUGQ" base_Package="_GsMc8c7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsPgQM7UEeOkpJkbnruUGQ" base_Package="_GsOSIM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsQuYM7UEeOkpJkbnruUGQ" base_Package="_GsQHUM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsSjkM7UEeOkpJkbnruUGQ" base_Package="_GsRVcM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsUYwM7UEeOkpJkbnruUGQ" base_Package="_GsTKoM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsVm4M7UEeOkpJkbnruUGQ" base_Package="_GsUYwc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsXcEM7UEeOkpJkbnruUGQ" base_Package="_GsWN8M7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsYqMM7UEeOkpJkbnruUGQ" base_Package="_GsXcEc7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsafYM7UEeOkpJkbnruUGQ" base_Package="_GsZRQM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsbtgM7UEeOkpJkbnruUGQ" base_Package="_GsbGcM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsdisM7UEeOkpJkbnruUGQ" base_Package="_GscUkM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsfX4M7UEeOkpJkbnruUGQ" base_Package="_GseJwM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsgmAM7UEeOkpJkbnruUGQ" base_Package="_GsfX4c7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsibMM7UEeOkpJkbnruUGQ" base_Package="_GshNEM7UEeOkpJkbnruUGQ"/>
+ <ModuleLayer:BundleReference xmi:id="_Gsk3cM7UEeOkpJkbnruUGQ" base_Dependency="_GsjCQM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:Plugin xmi:id="_GsmsoM7UEeOkpJkbnruUGQ" base_Component="_GslegM7UEeOkpJkbnruUGQ" isIncubation="true"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_GsszQM7UEeOkpJkbnruUGQ" base_Package="_GsrlIM7UEeOkpJkbnruUGQ"/>
+ <ModuleLayer:BundleReference xmi:id="_GsvPgM7UEeOkpJkbnruUGQ" base_Dependency="_GstaUM7UEeOkpJkbnruUGQ"/>
+ <ADL4Eclipse:EclipseExportedPackage xmi:id="_Gs5AgM7UEeOkpJkbnruUGQ" base_Package="_Gs3LUM7UEeOkpJkbnruUGQ"/>
+ <structure:DeveloperDoc xmi:id="_SUtzsM7eEeOkpJkbnruUGQ" base_Comment="_j3s-wM7dEeOkpJkbnruUGQ"/>
+ <Requirements:Satisfy xmi:id="_vT9FgAPBEeW8nIkIujhtCA" base_Abstraction="_UZUrEAPBEeW8nIkIujhtCA"/>
+ <Requirements:Satisfy xmi:id="_wND3wAPBEeW8nIkIujhtCA" base_Abstraction="_bZHHsAPBEeW8nIkIujhtCA"/>
+</xmi:XMI>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/imgDOC/ArchitectureOverview.png b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/imgDOC/ArchitectureOverview.png
new file mode 100644
index 00000000000..fb8fdf304d8
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/imgDOC/ArchitectureOverview.png
Binary files differ
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/imgDOC/Structure.png b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/imgDOC/Structure.png
new file mode 100644
index 00000000000..a26af7fec1c
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/imgDOC/Structure.png
Binary files differ
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/imgDOC/UseCaseDiagram.png b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/imgDOC/UseCaseDiagram.png
new file mode 100644
index 00000000000..3c3a97d5cc4
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/doc/imgDOC/UseCaseDiagram.png
Binary files differ
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/docs/out.html b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/docs/out.html
deleted file mode 100644
index 73bdc51f3ed..00000000000
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/docs/out.html
+++ /dev/null
@@ -1 +0,0 @@
-<html><link rel="stylesheet" href="default.css" type="text/css"><H1>Synchronize automatically between graphical element and element in the model</H1><P>The goal is to enable a strong synchronization between visual elements displayed in the diagram with elements contained in the model. <BR/>This mechanism can be added locally for each element by using CSS. <BR/>For example, you would like to see: <BR/>- synchronize compartment of enumeration literal for all enumeration. <BR/>- synchronize compartment of attributes and operation for all class stereotyped …. <BR/>This fucntionality is associated to the task 433206. <BR/></P><H2>Requirements</H2><P>- LocalSynchronization (id=Req001): <BR/> The synchronization shall be local for each graphical element for example: package compartment, attribute compartment...</P><P>- CSSIntegration (id=Req002): <BR/> The synchronization shall be parameterized by CSS, by using a keyword and a value.</P><P>- CustomSynchronization (id=Req003): <BR/> For an graphical element, it shall be possible to custom the synchonization</P><H2>Use Cases</H2><img src=C:/Workspaces/head/org.eclipse.papyrus.uml.diagram.synchronizeview/imgDOC/UseCaseDiagram.png alt=UseCaseDiagram ><P align="middle">UseCaseDiagram</P><H3>Add an element in the model</H3><P>When an user adds an element in the model, the synchronization mechanism try to add in the current diagram the view that correspond to the semantic element <BR/>The difficulty of this mechanism is to parameter the synchronization. <BR/>By default, the synchronizatiopn is based on ' owned element'role. When you add an element, the graphical element that correponds to the owner try to display it in the diagram. <BR/>But some cases are not interesting. For example in the composite diagram, displaying parts in part correspond to part of the type, not directly part of part.</P><H3>Move an element</H3><P>When a element is moved, the synchronization mechanism must to create graphically the element to each diagram. <BR/></P><H3>Set synchronization enable</H3><P>The user can set enable the synchronization for a set of graphical elements. <BR/></P><H3>Remove an element from the model</H3><P>When the element is removed, the corresponding graphical element must be removed.</P><H2>Design</H2><img src=C:/Workspaces/head/org.eclipse.papyrus.uml.diagram.synchronizeview/imgDOC/ArchitectureOverview.png alt=ArchitectureOverview ><P align="middle">ArchitectureOverview</P></html> \ No newline at end of file
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/imgDOC/ArchitectureOverview.png b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/imgDOC/ArchitectureOverview.png
deleted file mode 100644
index 318ac1506d7..00000000000
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/imgDOC/ArchitectureOverview.png
+++ /dev/null
Binary files differ
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/imgDOC/Structure.png b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/imgDOC/Structure.png
deleted file mode 100644
index 51fc9cff50f..00000000000
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/imgDOC/Structure.png
+++ /dev/null
Binary files differ
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/imgDOC/UseCaseDiagram.png b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/imgDOC/UseCaseDiagram.png
deleted file mode 100644
index f6f8921945b..00000000000
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/imgDOC/UseCaseDiagram.png
+++ /dev/null
Binary files differ
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/resource/model.notation b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/resource/model.notation
deleted file mode 100644
index 915e8f7b5b3..00000000000
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/resource/model.notation
+++ /dev/null
@@ -1,724 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ADL4Eclipse="http:///schemas/ADL4Eclipse/_jDF0YNT6EeKj0Lzrn2trlQ/2" xmlns:configuration="http://www.eclipse.org/papyrus/infra/viewpoints/configuration" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:nattable="http://www.eclipse.org/papyrus/nattable/model" xmlns:nattableaxis="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxis" xmlns:nattableaxisconfiguration="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisconfiguration" xmlns:nattableaxisprovider="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisprovider" xmlns:nattableconfiguration="http://www.eclipse.org/papyrus/nattable/model/nattableconfiguration" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/papyrus/infra/viewpoints/policy/style" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http:///schemas/ADL4Eclipse/_jDF0YNT6EeKj0Lzrn2trlQ/2 pathmap://ADL4ECLIPSE_PROFILES/adl4eclipse.profile.uml#_jDF0YdT6EeKj0Lzrn2trlQ http://www.eclipse.org/papyrus/nattable/model/table/nattableaxis http://www.eclipse.org/papyrus/nattable/model#//nattableaxis http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisconfiguration http://www.eclipse.org/papyrus/nattable/model#//nattableaxisconfiguration http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisprovider http://www.eclipse.org/papyrus/nattable/model#//nattableaxisprovider http://www.eclipse.org/papyrus/nattable/model/nattableconfiguration http://www.eclipse.org/papyrus/nattable/model#//nattableconfiguration">
- <notation:Diagram xmi:id="_lNP40MbvEeO9CYUoXDRplw" type="PapyrusUMLClassDiagram" name="Overview" measurementUnit="Pixel">
- <children xmi:type="notation:Shape" xmi:id="_lNP40cbvEeO9CYUoXDRplw" type="2005">
- <children xmi:type="notation:DecorationNode" xmi:id="_lNP40sbvEeO9CYUoXDRplw" type="5020"/>
- <children xmi:type="notation:DecorationNode" xmi:id="_lNP408bvEeO9CYUoXDRplw" type="7009">
- <styles xmi:type="notation:TitleStyle" xmi:id="_lNP41MbvEeO9CYUoXDRplw"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lNP41cbvEeO9CYUoXDRplw"/>
- </children>
- <element xmi:type="uml:Model" href="model.uml#_lNLnYsbvEeO9CYUoXDRplw"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lNP41sbvEeO9CYUoXDRplw" x="201" y="38"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_lNP418bvEeO9CYUoXDRplw" type="2005">
- <children xmi:type="notation:DecorationNode" xmi:id="_lNP42MbvEeO9CYUoXDRplw" type="5020"/>
- <children xmi:type="notation:DecorationNode" xmi:id="_lNP42cbvEeO9CYUoXDRplw" type="7009">
- <styles xmi:type="notation:TitleStyle" xmi:id="_lNP42sbvEeO9CYUoXDRplw"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lNP428bvEeO9CYUoXDRplw"/>
- </children>
- <element xmi:type="uml:Model" href="model.uml#_lNLnY8bvEeO9CYUoXDRplw"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lNP43MbvEeO9CYUoXDRplw" x="204" y="173" width="259" height="96"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_lNP43cbvEeO9CYUoXDRplw" type="2005">
- <children xmi:type="notation:DecorationNode" xmi:id="_lNP43sbvEeO9CYUoXDRplw" type="5020"/>
- <children xmi:type="notation:DecorationNode" xmi:id="_lNP438bvEeO9CYUoXDRplw" type="7009">
- <styles xmi:type="notation:TitleStyle" xmi:id="_lNP44MbvEeO9CYUoXDRplw"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lNP44cbvEeO9CYUoXDRplw"/>
- </children>
- <element xmi:type="uml:Model" href="model.uml#_lNLnZsbvEeO9CYUoXDRplw"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lNP44sbvEeO9CYUoXDRplw" x="206" y="329"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_lNP448bvEeO9CYUoXDRplw" type="2005">
- <children xmi:type="notation:DecorationNode" xmi:id="_lNP45MbvEeO9CYUoXDRplw" type="5020"/>
- <children xmi:type="notation:DecorationNode" xmi:id="_lNP45cbvEeO9CYUoXDRplw" type="7009">
- <styles xmi:type="notation:TitleStyle" xmi:id="_lNP45sbvEeO9CYUoXDRplw"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lNP458bvEeO9CYUoXDRplw"/>
- </children>
- <element xmi:type="uml:Model" href="model.uml#_lNLnaMbvEeO9CYUoXDRplw"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lNP46MbvEeO9CYUoXDRplw" x="635" y="324"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_gSwG8MofEeO3DsHezUU9Sg" type="2012">
- <children xmi:type="notation:DecorationNode" xmi:id="_gSxVEMofEeO3DsHezUU9Sg" type="5038"/>
- <element xmi:type="uml:Comment" href="model.uml#_gP184MofEeO3DsHezUU9Sg"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_gSwuAMofEeO3DsHezUU9Sg" x="534" y="72" width="366" height="70"/>
- </children>
- <styles xmi:type="notation:DiagramStyle" xmi:id="_lNP46cbvEeO9CYUoXDRplw"/>
- <styles xmi:type="style:PapyrusViewStyle" xmi:id="_lNP46sbvEeO9CYUoXDRplw">
- <owner xmi:type="uml:Model" href="model.uml#_lNLnYMbvEeO9CYUoXDRplw"/>
- <configuration xmi:type="configuration:PapyrusDiagram" href="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#//@viewpoints.0/@modelKinds.1"/>
- </styles>
- <element xmi:type="uml:Model" href="model.uml#_lNLnYMbvEeO9CYUoXDRplw"/>
- <edges xmi:type="notation:Connector" xmi:id="_lNP468bvEeO9CYUoXDRplw" type="4006" source="_lNP418bvEeO9CYUoXDRplw" target="_lNP40cbvEeO9CYUoXDRplw">
- <children xmi:type="notation:DecorationNode" xmi:id="_lNP47MbvEeO9CYUoXDRplw" visible="false" type="6014">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_lNP47cbvEeO9CYUoXDRplw" y="40"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_lNP47sbvEeO9CYUoXDRplw" visible="false" type="6015">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_lNP478bvEeO9CYUoXDRplw" y="60"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_lNP48MbvEeO9CYUoXDRplw"/>
- <element xmi:type="uml:Abstraction" href="model.uml#_lNLnZMbvEeO9CYUoXDRplw"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_lNP48cbvEeO9CYUoXDRplw" points="[-2, -10, 8, 48]$[-27, -45, -17, 13]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lNP48sbvEeO9CYUoXDRplw" id="(0.305,0.1)"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lNP488bvEeO9CYUoXDRplw" id="(0.27,0.87)"/>
- </edges>
- <edges xmi:type="notation:Connector" xmi:id="_lNP49MbvEeO9CYUoXDRplw" type="4006" source="_lNP43cbvEeO9CYUoXDRplw" target="_lNP418bvEeO9CYUoXDRplw">
- <children xmi:type="notation:DecorationNode" xmi:id="_lNP49cbvEeO9CYUoXDRplw" visible="false" type="6014">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_lNP49sbvEeO9CYUoXDRplw" y="40"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_lNP498bvEeO9CYUoXDRplw" visible="false" type="6015">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_lNP4-MbvEeO9CYUoXDRplw" y="60"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_lNP4-cbvEeO9CYUoXDRplw"/>
- <element xmi:type="uml:Abstraction" href="model.uml#_lNLnZ8bvEeO9CYUoXDRplw"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_lNP4-sbvEeO9CYUoXDRplw" points="[-9, -16, 0, 67]$[-24, -72, -15, 11]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lNP4-8bvEeO9CYUoXDRplw" id="(0.27,0.16)"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lNP4_MbvEeO9CYUoXDRplw" id="(0.235,0.89)"/>
- </edges>
- <edges xmi:type="notation:Connector" xmi:id="_lNP4_cbvEeO9CYUoXDRplw" type="4008" source="_lNP448bvEeO9CYUoXDRplw" target="_lNP418bvEeO9CYUoXDRplw">
- <children xmi:type="notation:DecorationNode" xmi:id="_lNP4_sbvEeO9CYUoXDRplw" visible="false" type="6026">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_lNP4_8bvEeO9CYUoXDRplw" y="40"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_lNP5AMbvEeO9CYUoXDRplw" visible="false" type="6027">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_lNP5AcbvEeO9CYUoXDRplw" y="60"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_lNP5AsbvEeO9CYUoXDRplw"/>
- <element xmi:type="uml:Dependency" href="model.uml#_lNLnacbvEeO9CYUoXDRplw"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_lNP5A8bvEeO9CYUoXDRplw" points="[-46, -20, 265, 113]$[-275, -135, 36, -2]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lNP5BMbvEeO9CYUoXDRplw" id="(0.0,0.24)"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lNP5BcbvEeO9CYUoXDRplw" id="(1.0,0.65)"/>
- </edges>
- <edges xmi:type="notation:Connector" xmi:id="_lNP5BsbvEeO9CYUoXDRplw" type="4008" source="_lNP448bvEeO9CYUoXDRplw" target="_lNP43cbvEeO9CYUoXDRplw">
- <children xmi:type="notation:DecorationNode" xmi:id="_lNP5B8bvEeO9CYUoXDRplw" visible="false" type="6026">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_lNP5CMbvEeO9CYUoXDRplw" y="40"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_lNP5CcbvEeO9CYUoXDRplw" visible="false" type="6027">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_lNP5CsbvEeO9CYUoXDRplw" y="60"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_lNP5C8bvEeO9CYUoXDRplw"/>
- <element xmi:type="uml:Dependency" href="model.uml#_lNLnasbvEeO9CYUoXDRplw"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_lNP5DMbvEeO9CYUoXDRplw" points="[-40, 1, 262, -12]$[-267, 20, 35, 7]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lNP5DcbvEeO9CYUoXDRplw" id="(0.0,0.69)"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lNP5DsbvEeO9CYUoXDRplw" id="(1.0,0.64)"/>
- </edges>
- </notation:Diagram>
- <notation:Diagram xmi:id="_KohZ8McQEeOLeMHQ13vmOA" type="PapyrusUMLClassDiagram" name="ClassDiagram" measurementUnit="Pixel">
- <styles xmi:type="notation:DiagramStyle" xmi:id="_KohZ8ccQEeOLeMHQ13vmOA"/>
- <styles xmi:type="style:PapyrusViewStyle" xmi:id="_KohZ8scQEeOLeMHQ13vmOA">
- <owner xmi:type="uml:Model" href="model.uml#_lNLnYMbvEeO9CYUoXDRplw"/>
- </styles>
- <element xmi:type="uml:Model" href="model.uml#_lNLnYMbvEeO9CYUoXDRplw"/>
- </notation:Diagram>
- <notation:Diagram xmi:id="_Nf1kUMcbEeOenbI5XqwJvQ" type="UseCase" name="UseCaseDiagram" measurementUnit="Pixel">
- <children xmi:type="notation:Shape" xmi:id="_OAXegMcbEeOenbI5XqwJvQ" type="2015">
- <children xmi:type="notation:DecorationNode" xmi:id="_OAZTsMcbEeOenbI5XqwJvQ" type="5019"/>
- <children xmi:type="notation:DecorationNode" xmi:id="_OAZTsccbEeOenbI5XqwJvQ" type="7011">
- <children xmi:type="notation:Shape" xmi:id="_PBuN0McbEeOenbI5XqwJvQ" type="3009">
- <children xmi:type="notation:DecorationNode" xmi:id="_PBuN0scbEeOenbI5XqwJvQ" type="5018"/>
- <children xmi:type="notation:DecorationNode" xmi:id="_PBu04McbEeOenbI5XqwJvQ" type="7012">
- <styles xmi:type="notation:SortingStyle" xmi:id="_PBu04ccbEeOenbI5XqwJvQ"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_PBu04scbEeOenbI5XqwJvQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_PBu048cbEeOenbI5XqwJvQ"/>
- </children>
- <element xmi:type="uml:UseCase" href="model.uml#_O8koEMcbEeOenbI5XqwJvQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_PBuN0ccbEeOenbI5XqwJvQ" x="23" y="12"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_QqrvsMcbEeOenbI5XqwJvQ" type="3009">
- <children xmi:type="notation:DecorationNode" xmi:id="_QqsWwMcbEeOenbI5XqwJvQ" type="5018"/>
- <children xmi:type="notation:DecorationNode" xmi:id="_QqsWwccbEeOenbI5XqwJvQ" type="7012">
- <styles xmi:type="notation:SortingStyle" xmi:id="_QqsWwscbEeOenbI5XqwJvQ"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_QqsWw8cbEeOenbI5XqwJvQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QqsWxMcbEeOenbI5XqwJvQ"/>
- </children>
- <element xmi:type="uml:UseCase" href="model.uml#_QqgwkMcbEeOenbI5XqwJvQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QqrvsccbEeOenbI5XqwJvQ" x="12" y="78"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_zqrN0MozEeO3DsHezUU9Sg" type="3009">
- <children xmi:type="notation:DecorationNode" xmi:id="_zqr04MozEeO3DsHezUU9Sg" type="5018"/>
- <children xmi:type="notation:DecorationNode" xmi:id="_zqr04cozEeO3DsHezUU9Sg" type="7012">
- <styles xmi:type="notation:SortingStyle" xmi:id="_zqr04sozEeO3DsHezUU9Sg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_zqr048ozEeO3DsHezUU9Sg"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_zqr05MozEeO3DsHezUU9Sg"/>
- </children>
- <element xmi:type="uml:UseCase" href="model.uml#_zqMFoMozEeO3DsHezUU9Sg"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_zqrN0cozEeO3DsHezUU9Sg" x="64" y="149" height="47"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_l8-K4Mo3EeOzTpunJ7qmNw" type="3009">
- <children xmi:type="notation:DecorationNode" xmi:id="_l8-x8Mo3EeOzTpunJ7qmNw" type="5018"/>
- <children xmi:type="notation:DecorationNode" xmi:id="_l8_ZAMo3EeOzTpunJ7qmNw" type="7012">
- <styles xmi:type="notation:SortingStyle" xmi:id="_l8_ZAco3EeOzTpunJ7qmNw"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_l8_ZAso3EeOzTpunJ7qmNw"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_l8_ZA8o3EeOzTpunJ7qmNw"/>
- </children>
- <element xmi:type="uml:UseCase" href="model.uml#_l5cVwMo3EeOzTpunJ7qmNw"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_l8-K4co3EeOzTpunJ7qmNw" x="42" y="206"/>
- </children>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_OAZTsscbEeOenbI5XqwJvQ"/>
- </children>
- <element xmi:type="uml:Component" href="model.uml#_lNLnZcbvEeO9CYUoXDRplw"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_OAXegccbEeOenbI5XqwJvQ" x="311" y="22" width="361" height="316"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_g3FzAMozEeO3DsHezUU9Sg" type="2011">
- <children xmi:type="notation:DecorationNode" xmi:id="_g3GaEMozEeO3DsHezUU9Sg" type="5014">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_g3GaEcozEeO3DsHezUU9Sg" x="20" y="60"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_g3HBIMozEeO3DsHezUU9Sg" type="6029">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_g3HBIcozEeO3DsHezUU9Sg" x="20" y="100"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_g3HoMMozEeO3DsHezUU9Sg" type="6037">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_g3HoMcozEeO3DsHezUU9Sg" x="20" y="80"/>
- </children>
- <element xmi:type="uml:Actor" href="model.uml#_g2Kl8MozEeO3DsHezUU9Sg"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_g3FzAcozEeO3DsHezUU9Sg" x="136" y="106"/>
- </children>
- <styles xmi:type="notation:DiagramStyle" xmi:id="_Nf2LYMcbEeOenbI5XqwJvQ"/>
- <styles xmi:type="style:PapyrusViewStyle" xmi:id="_Nf2LYccbEeOenbI5XqwJvQ">
- <owner xmi:type="uml:Model" href="model.uml#_lNLnY8bvEeO9CYUoXDRplw"/>
- </styles>
- <element xmi:type="uml:Model" href="model.uml#_lNLnY8bvEeO9CYUoXDRplw"/>
- <edges xmi:type="notation:Connector" xmi:id="_1p5TkMozEeO3DsHezUU9Sg" type="4011" source="_g3FzAMozEeO3DsHezUU9Sg" target="_PBuN0McbEeOenbI5XqwJvQ">
- <children xmi:type="notation:DecorationNode" xmi:id="_1p56oMozEeO3DsHezUU9Sg" visible="false" type="6008">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_1p56ocozEeO3DsHezUU9Sg" y="40"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_1p6hsMozEeO3DsHezUU9Sg" visible="false" type="6033">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_1p6hscozEeO3DsHezUU9Sg" y="-20"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_1p5TkcozEeO3DsHezUU9Sg"/>
- <element xmi:type="uml:Association" href="model.uml#_1pkjcMozEeO3DsHezUU9Sg"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_1p5TksozEeO3DsHezUU9Sg" points="[40, -7, -141, 0]$[165, -7, -16, 0]"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_1qHWAMozEeO3DsHezUU9Sg" id="(0.06584362139917696,0.5)"/>
- </edges>
- <edges xmi:type="notation:Connector" xmi:id="_2Py18MozEeO3DsHezUU9Sg" type="4011" source="_g3FzAMozEeO3DsHezUU9Sg" target="_QqrvsMcbEeOenbI5XqwJvQ">
- <children xmi:type="notation:DecorationNode" xmi:id="_2PzdAMozEeO3DsHezUU9Sg" visible="false" type="6008">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_2PzdAcozEeO3DsHezUU9Sg" y="40"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_2P0EEMozEeO3DsHezUU9Sg" visible="false" type="6033">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_2P0EEcozEeO3DsHezUU9Sg" y="-20"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_2Py18cozEeO3DsHezUU9Sg"/>
- <element xmi:type="uml:Association" href="model.uml#_2PwZsMozEeO3DsHezUU9Sg"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_2Py18sozEeO3DsHezUU9Sg" points="[40, 23, -164, -62]$[103, 61, -101, -24]$[166, 76, -38, -9]"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_2P7_4MozEeO3DsHezUU9Sg" id="(0.12837837837837837,0.7)"/>
- </edges>
- <edges xmi:type="notation:Connector" xmi:id="_2zKBsMozEeO3DsHezUU9Sg" type="4011" source="_g3FzAMozEeO3DsHezUU9Sg" target="_zqrN0MozEeO3DsHezUU9Sg">
- <children xmi:type="notation:DecorationNode" xmi:id="_2zKowMozEeO3DsHezUU9Sg" visible="false" type="6008">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_2zLP0MozEeO3DsHezUU9Sg" y="40"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_2zLP0cozEeO3DsHezUU9Sg" visible="false" type="6033">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_2zL24MozEeO3DsHezUU9Sg" y="-20"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_2zKBscozEeO3DsHezUU9Sg"/>
- <element xmi:type="uml:Association" href="model.uml#_2zHlcMozEeO3DsHezUU9Sg"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_2zKBssozEeO3DsHezUU9Sg" points="[24, 30, -258, -110]$[82, 102, -200, -38]$[216, 127, -66, -13]"/>
- </edges>
- <edges xmi:type="notation:Connector" xmi:id="_rvotEMo3EeOzTpunJ7qmNw" type="4011" source="_g3FzAMozEeO3DsHezUU9Sg" target="_l8-K4Mo3EeOzTpunJ7qmNw">
- <children xmi:type="notation:DecorationNode" xmi:id="_rvpUIMo3EeOzTpunJ7qmNw" visible="false" type="6008">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_rvpUIco3EeOzTpunJ7qmNw" y="40"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_rvp7MMo3EeOzTpunJ7qmNw" visible="false" type="6033">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_rvp7Mco3EeOzTpunJ7qmNw" y="-20"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_rvotEco3EeOzTpunJ7qmNw"/>
- <element xmi:type="uml:Association" href="model.uml#_rvVLEMo3EeOzTpunJ7qmNw"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_rvotEso3EeOzTpunJ7qmNw" points="[10, 30, -218, -199]$[54, 160, -174, -69]$[197, 216, -31, -13]"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_rvx3AMo3EeOzTpunJ7qmNw" id="(0.13777777777777778,0.6666666666666666)"/>
- </edges>
- </notation:Diagram>
- <nattable:Table xmi:id="_1PpFsMohEeO3DsHezUU9Sg" name="RequirementTable" currentRowAxisProvider="_1PpFtcohEeO3DsHezUU9Sg" currentColumnAxisProvider="_1PpFscohEeO3DsHezUU9Sg">
- <context xmi:type="uml:Model" href="model.uml#_lNLnYsbvEeO9CYUoXDRplw"/>
- <owner xmi:type="uml:Model" href="model.uml#_lNLnYsbvEeO9CYUoXDRplw"/>
- <prototype xmi:type="configuration:PapyrusSyncTable" href="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#//@viewpoints.0/@modelKinds.26"/>
- <tableConfiguration xmi:type="nattableconfiguration:TableConfiguration" href="platform:/plugin/org.eclipse.papyrus.sysml.nattable.requirement.config/configs/requirement.nattableconfiguration#/"/>
- <columnAxisProvidersHistory xmi:type="nattableaxisprovider:SlaveObjectAxisProvider" xmi:id="_1PpFscohEeO3DsHezUU9Sg" description="Provides the columns of the tables with a default configuration" name="Requirements Feature Columns Provider">
- <axis xmi:type="nattableaxis:FeatureIdAxis" xmi:id="_1PpFssohEeO3DsHezUU9Sg" element="property_of_stereotype:/SysML::Requirements::Requirement::id">
- <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.sysml.nattable.requirement.config/configs/requirement.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.1"/>
- </axis>
- <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_1PpFs8ohEeO3DsHezUU9Sg">
- <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.sysml.nattable.requirement.config/configs/requirement.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
- <element xmi:type="ecore:EAttribute" href="http://www.eclipse.org/uml2/5.0.0/UML#//NamedElement/name"/>
- </axis>
- <axis xmi:type="nattableaxis:FeatureIdAxis" xmi:id="_1PpFtMohEeO3DsHezUU9Sg" element="property_of_stereotype:/SysML::Requirements::Requirement::text">
- <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.sysml.nattable.requirement.config/configs/requirement.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.1"/>
- </axis>
- </columnAxisProvidersHistory>
- <rowAxisProvidersHistory xmi:type="nattableaxisprovider:MasterObjectAxisProvider" xmi:id="_1PpFtcohEeO3DsHezUU9Sg" description="Provides the requirements directly owned by the context of the table" name="Requirement Axis Provider" disconnectSlave="true"/>
- </nattable:Table>
- <notation:Diagram xmi:id="_pUh7UMrhEeOada-BlHQh_Q" type="PapyrusUMLComponentDiagram" name="ArchitectureOverview" measurementUnit="Pixel">
- <children xmi:type="notation:Node" xmi:id="_JUmCkM7UEeOkpJkbnruUGQ" type="2002">
- <children xmi:type="notation:DecorationNode" xmi:id="_JUmpoM7UEeOkpJkbnruUGQ" type="5004"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_JUnQsM7UEeOkpJkbnruUGQ" type="7001">
- <styles xmi:type="notation:TitleStyle" xmi:id="_JUnQsc7UEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_JUnQss7UEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_JUwaoM7UEeOkpJkbnruUGQ" visible="false" type="AppliedStereotypeCompartment">
- <styles xmi:type="notation:TitleStyle" xmi:id="_JUwaoc7UEeOkpJkbnruUGQ" showTitle="true"/>
- <element xmi:type="ADL4Eclipse:Plugin" href="model.uml#_GhlIYM7UEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_JUwaos7UEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_JUwao87UEeOkpJkbnruUGQ" type="compartment_shape_display">
- <styles xmi:type="notation:TitleStyle" xmi:id="_JUwapM7UEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_JUwapc7UEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_KzqooM7UEeOkpJkbnruUGQ" type="3069">
- <children xmi:type="notation:DecorationNode" xmi:id="_Kzqoos7UEeOkpJkbnruUGQ" visible="false" type="5006">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_KzrPsM7UEeOkpJkbnruUGQ" x="132" y="43"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_Kzr2wM7UEeOkpJkbnruUGQ" visible="false" type="5007">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_Kzr2wc7UEeOkpJkbnruUGQ" x="25" y="-10"/>
- </children>
- <element xmi:type="uml:Port" href="model.uml#_Gs61sM7UEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Kzqooc7UEeOkpJkbnruUGQ" x="-10" y="50"/>
- </children>
- <styles xmi:type="notation:DescriptionStyle" xmi:id="_JUmCkc7UEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FontStyle" xmi:id="_JUmCks7UEeOkpJkbnruUGQ"/>
- <element xmi:type="uml:Component" href="model.uml#_GhiFEM7UEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_JUmCk87UEeOkpJkbnruUGQ" x="540" y="340" width="638" height="121"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_OzfUMM7UEeOkpJkbnruUGQ" type="2002">
- <children xmi:type="notation:DecorationNode" xmi:id="_Ozf7QM7UEeOkpJkbnruUGQ" type="5004"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_Ozf7Qc7UEeOkpJkbnruUGQ" type="7001">
- <styles xmi:type="notation:TitleStyle" xmi:id="_Ozf7Qs7UEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Ozf7Q87UEeOkpJkbnruUGQ"/>
- </children>
- <styles xmi:type="notation:DescriptionStyle" xmi:id="_OzfUMc7UEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FontStyle" xmi:id="_OzfUMs7UEeOkpJkbnruUGQ"/>
- <element xmi:type="uml:Component" href="model.uml#_GqYfEM7UEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_OzfUM87UEeOkpJkbnruUGQ" x="500" y="120" width="161" height="81"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_PyR3sM7UEeOkpJkbnruUGQ" type="2002">
- <children xmi:type="notation:DecorationNode" xmi:id="_PySewM7UEeOkpJkbnruUGQ" type="5004"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_PyTF0M7UEeOkpJkbnruUGQ" type="7001">
- <styles xmi:type="notation:TitleStyle" xmi:id="_PyTF0c7UEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_PyTF0s7UEeOkpJkbnruUGQ"/>
- </children>
- <styles xmi:type="notation:DescriptionStyle" xmi:id="_PyR3sc7UEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FontStyle" xmi:id="_PyR3ss7UEeOkpJkbnruUGQ"/>
- <element xmi:type="uml:Component" href="model.uml#_Gqqy8M7UEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_PyR3s87UEeOkpJkbnruUGQ" x="1000" y="120" width="181" height="81"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_QGfNIM7UEeOkpJkbnruUGQ" type="2002">
- <children xmi:type="notation:DecorationNode" xmi:id="_QGf0MM7UEeOkpJkbnruUGQ" type="5004"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_QGf0Mc7UEeOkpJkbnruUGQ" type="7001">
- <styles xmi:type="notation:TitleStyle" xmi:id="_QGf0Ms7UEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QGf0M87UEeOkpJkbnruUGQ"/>
- </children>
- <styles xmi:type="notation:DescriptionStyle" xmi:id="_QGfNIc7UEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FontStyle" xmi:id="_QGfNIs7UEeOkpJkbnruUGQ"/>
- <element xmi:type="uml:Component" href="model.uml#_GrR28M7UEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QGfNI87UEeOkpJkbnruUGQ" x="720" y="120" width="241" height="81"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_QsxxEM7UEeOkpJkbnruUGQ" type="2002">
- <children xmi:type="notation:DecorationNode" xmi:id="_QsyYIM7UEeOkpJkbnruUGQ" type="5004"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_Qsy_MM7UEeOkpJkbnruUGQ" type="7001">
- <styles xmi:type="notation:TitleStyle" xmi:id="_Qsy_Mc7UEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Qsy_Ms7UEeOkpJkbnruUGQ"/>
- </children>
- <styles xmi:type="notation:DescriptionStyle" xmi:id="_QsxxEc7UEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FontStyle" xmi:id="_QsxxEs7UEeOkpJkbnruUGQ"/>
- <element xmi:type="uml:Component" href="model.uml#_GsAPsM7UEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QsxxE87UEeOkpJkbnruUGQ" x="260" y="120" width="178" height="81"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_TQfD8M7UEeOkpJkbnruUGQ" type="2002">
- <children xmi:type="notation:DecorationNode" xmi:id="_TQfD9M7UEeOkpJkbnruUGQ" type="5004"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_TQfrAM7UEeOkpJkbnruUGQ" type="7001">
- <styles xmi:type="notation:TitleStyle" xmi:id="_TQfrAc7UEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_TQfrAs7UEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_TQm_wM7UEeOkpJkbnruUGQ" visible="false" type="AppliedStereotypeCompartment">
- <styles xmi:type="notation:TitleStyle" xmi:id="_TQm_wc7UEeOkpJkbnruUGQ" showTitle="true"/>
- <element xmi:type="ADL4Eclipse:Plugin" href="model.uml#_GodMcM7UEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_TQm_ws7UEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_TQm_w87UEeOkpJkbnruUGQ" type="compartment_shape_display">
- <styles xmi:type="notation:TitleStyle" xmi:id="_TQm_xM7UEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_TQm_xc7UEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_WXf4MM7UEeOkpJkbnruUGQ" type="3069">
- <children xmi:type="notation:DecorationNode" xmi:id="_WXgfQM7UEeOkpJkbnruUGQ" type="5006">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iOtWwM7UEeOkpJkbnruUGQ" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iOt90M7UEeOkpJkbnruUGQ" key="visible" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:StringListValueStyle" xmi:id="_mQo7IM7UEeOkpJkbnruUGQ" name="maskLabel">
- <stringListValue>visibility</stringListValue>
- <stringListValue>name</stringListValue>
- <stringListValue>derived</stringListValue>
- <stringListValue>conjugated</stringListValue>
- </styles>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_WXgfQc7UEeOkpJkbnruUGQ" x="-129" y="-70"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_WXhGUM7UEeOkpJkbnruUGQ" type="5007">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_iOuk4M7UEeOkpJkbnruUGQ" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_iOvL8M7UEeOkpJkbnruUGQ" key="visible" value="true"/>
- </eAnnotations>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_WXhtYM7UEeOkpJkbnruUGQ" x="25" y="-10"/>
- </children>
- <element xmi:type="uml:Port" href="model.uml#_Gs8D0M7UEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_WXf4Mc7UEeOkpJkbnruUGQ" x="189" y="50"/>
- </children>
- <styles xmi:type="notation:DescriptionStyle" xmi:id="_TQfD8c7UEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FontStyle" xmi:id="_TQfD8s7UEeOkpJkbnruUGQ"/>
- <element xmi:type="uml:Component" href="model.uml#_GoawMc7UEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_TQfD887UEeOkpJkbnruUGQ" x="120" y="340" width="199" height="121"/>
- </children>
- <styles xmi:type="notation:DiagramStyle" xmi:id="_pUh7UcrhEeOada-BlHQh_Q"/>
- <styles xmi:type="style:PapyrusViewStyle" xmi:id="_pUh7UsrhEeOada-BlHQh_Q">
- <owner xmi:type="uml:Model" href="model.uml#_lNLnZsbvEeO9CYUoXDRplw"/>
- </styles>
- <element xmi:type="uml:Model" href="model.uml#_lNLnZsbvEeO9CYUoXDRplw"/>
- <edges xmi:type="notation:Connector" xmi:id="_OzzdQM7UEeOkpJkbnruUGQ" type="4010" source="_JUmCkM7UEeOkpJkbnruUGQ" target="_OzfUMM7UEeOkpJkbnruUGQ">
- <children xmi:type="notation:DecorationNode" xmi:id="_Oz0EUM7UEeOkpJkbnruUGQ" visible="false" type="6009">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_Oz0rYM7UEeOkpJkbnruUGQ" y="60"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_Oz0rYc7UEeOkpJkbnruUGQ" visible="false" type="6023">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_Oz1ScM7UEeOkpJkbnruUGQ" y="60"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_OzzdQc7UEeOkpJkbnruUGQ"/>
- <element xmi:type="uml:Dependency" href="model.uml#_Gqo9wM7UEeOkpJkbnruUGQ"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_OzzdQs7UEeOkpJkbnruUGQ" points="[-129, -77, 565, 339]$[-694, -416, 0, 0]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_PNAAYM7UEeOkpJkbnruUGQ" id="(0.0768025078369906,0.0)"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_PNAncM7UEeOkpJkbnruUGQ" id="(0.4968944099378882,0.9876543209876543)"/>
- </edges>
- <edges xmi:type="notation:Connector" xmi:id="_PyghMM7UEeOkpJkbnruUGQ" type="4010" source="_JUmCkM7UEeOkpJkbnruUGQ" target="_PyR3sM7UEeOkpJkbnruUGQ">
- <children xmi:type="notation:DecorationNode" xmi:id="_PyhIQM7UEeOkpJkbnruUGQ" visible="false" type="6009">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_PyhvUM7UEeOkpJkbnruUGQ" y="60"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_PyhvUc7UEeOkpJkbnruUGQ" visible="false" type="6023">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_PyhvUs7UEeOkpJkbnruUGQ" y="60"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_PyghMc7UEeOkpJkbnruUGQ"/>
- <element xmi:type="uml:Dependency" href="model.uml#_GrQBwM7UEeOkpJkbnruUGQ"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_PyghMs7UEeOkpJkbnruUGQ" points="[-129, -77, 565, 339]$[-694, -416, 0, 0]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_RhUMYM7UEeOkpJkbnruUGQ" id="(0.877742946708464,0.0)"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_RhUzcM7UEeOkpJkbnruUGQ" id="(0.5524861878453039,0.9876543209876543)"/>
- </edges>
- <edges xmi:type="notation:Connector" xmi:id="_QGt2oM7UEeOkpJkbnruUGQ" type="4010" source="_JUmCkM7UEeOkpJkbnruUGQ" target="_QGfNIM7UEeOkpJkbnruUGQ">
- <children xmi:type="notation:DecorationNode" xmi:id="_QGudsM7UEeOkpJkbnruUGQ" visible="false" type="6009">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_QGudsc7UEeOkpJkbnruUGQ" y="60"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_QGvEwM7UEeOkpJkbnruUGQ" visible="false" type="6023">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_QGvEwc7UEeOkpJkbnruUGQ" y="60"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_QGt2oc7UEeOkpJkbnruUGQ"/>
- <element xmi:type="uml:Dependency" href="model.uml#_Gr9zcM7UEeOkpJkbnruUGQ"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_QGt2os7UEeOkpJkbnruUGQ" points="[-129, -77, 565, 339]$[-694, -416, 0, 0]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_SA-j4M7UEeOkpJkbnruUGQ" id="(0.4702194357366771,0.0)"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_SA_K8M7UEeOkpJkbnruUGQ" id="(0.47717842323651455,1.0)"/>
- </edges>
- <edges xmi:type="notation:Connector" xmi:id="_QtAakM7UEeOkpJkbnruUGQ" type="4010" source="_JUmCkM7UEeOkpJkbnruUGQ" target="_QsxxEM7UEeOkpJkbnruUGQ">
- <children xmi:type="notation:DecorationNode" xmi:id="_QtBBoM7UEeOkpJkbnruUGQ" visible="false" type="6009">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_QtBosM7UEeOkpJkbnruUGQ" y="60"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_QtBosc7UEeOkpJkbnruUGQ" visible="false" type="6023">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_QtCPwM7UEeOkpJkbnruUGQ" y="60"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_QtAakc7UEeOkpJkbnruUGQ"/>
- <element xmi:type="uml:Dependency" href="model.uml#_GsjCQM7UEeOkpJkbnruUGQ"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_QtAaks7UEeOkpJkbnruUGQ" points="[-129, -77, 565, 339]$[-694, -416, 0, 0]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_SngYYM7UEeOkpJkbnruUGQ" id="(0.0,0.06451612903225806)"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Sng_cM7UEeOkpJkbnruUGQ" id="(0.449438202247191,0.9876543209876543)"/>
- </edges>
- <edges xmi:type="notation:Connector" xmi:id="_Yd4V4M7UEeOkpJkbnruUGQ" type="4010" source="_KzqooM7UEeOkpJkbnruUGQ" target="_WXf4MM7UEeOkpJkbnruUGQ">
- <children xmi:type="notation:DecorationNode" xmi:id="_Yd488M7UEeOkpJkbnruUGQ" visible="false" type="6009">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_Yd5kAM7UEeOkpJkbnruUGQ" y="60"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_Yd6LEM7UEeOkpJkbnruUGQ" visible="false" type="6023">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_Yd6LEc7UEeOkpJkbnruUGQ" y="60"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_Yd4V4c7UEeOkpJkbnruUGQ"/>
- <element xmi:type="uml:Dependency" href="model.uml#_Gs8q4M7UEeOkpJkbnruUGQ"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Yd4V4s7UEeOkpJkbnruUGQ" points="[-10, -2, 308, 44]$[-308, -45, 10, 1]"/>
- </edges>
- </notation:Diagram>
- <notation:Diagram xmi:id="_xae5MM7bEeOkpJkbnruUGQ" type="PapyrusUMLClassDiagram" name="Structure" measurementUnit="Pixel">
- <children xmi:type="notation:Shape" xmi:id="_yHZCgM7bEeOkpJkbnruUGQ" type="2007">
- <children xmi:type="notation:DecorationNode" xmi:id="_yHaQoM7bEeOkpJkbnruUGQ" type="5026"/>
- <children xmi:type="notation:DecorationNode" xmi:id="_yHaQoc7bEeOkpJkbnruUGQ" type="7016">
- <children xmi:type="notation:Shape" xmi:id="_0-lSEM7bEeOkpJkbnruUGQ" type="3010" gradient="10011046, 16777215, 0">
- <children xmi:type="notation:DecorationNode" xmi:id="_0-l5IM7bEeOkpJkbnruUGQ" type="5014"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_0-l5Ic7bEeOkpJkbnruUGQ" visible="false" type="7011">
- <styles xmi:type="notation:TitleStyle" xmi:id="_0-l5Is7bEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_0-l5I87bEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_0-l5JM7bEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-l5Jc7bEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_0-l5Js7bEeOkpJkbnruUGQ" type="7012">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Xv11EM7dEeOkpJkbnruUGQ" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Xv2cIM7dEeOkpJkbnruUGQ" key="visible" value="true"/>
- </eAnnotations>
- <children xmi:type="notation:Node" xmi:id="_YbR-wM7dEeOkpJkbnruUGQ" type="3013">
- <element xmi:type="uml:Operation" href="model.uml#_YbQwoM7dEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_YbR-wc7dEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_bqRqUM7dEeOkpJkbnruUGQ" type="3013">
- <element xmi:type="uml:Operation" href="model.uml#_bqP1IM7dEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_bqRqUc7dEeOkpJkbnruUGQ"/>
- </children>
- <styles xmi:type="notation:TitleStyle" xmi:id="_0-l5J87bEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_0-l5KM7bEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_0-l5Kc7bEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-l5Ks7bEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_0-mgMM7bEeOkpJkbnruUGQ" visible="false" type="7013">
- <styles xmi:type="notation:TitleStyle" xmi:id="_0-mgMc7bEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_0-mgMs7bEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_0-mgM87bEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-mgNM7bEeOkpJkbnruUGQ"/>
- </children>
- <element xmi:type="uml:Class" href="model.uml#_0-fygM7bEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_0-lSEc7bEeOkpJkbnruUGQ" x="55" y="32" width="221" height="56"/>
- </children>
- <styles xmi:type="notation:TitleStyle" xmi:id="_yHaQos7bEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_yHaQo87bEeOkpJkbnruUGQ"/>
- </children>
- <element xmi:type="uml:Package" href="model.uml#_hGz2YM7bEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_yHZCgc7bEeOkpJkbnruUGQ" x="40" y="240" width="393" height="182"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_yixW8M7bEeOkpJkbnruUGQ" type="2007">
- <children xmi:type="notation:DecorationNode" xmi:id="_yix-AM7bEeOkpJkbnruUGQ" type="5026"/>
- <children xmi:type="notation:DecorationNode" xmi:id="_yix-Ac7bEeOkpJkbnruUGQ" type="7016">
- <children xmi:type="notation:Shape" xmi:id="_7X0FAM7bEeOkpJkbnruUGQ" type="3010" gradient="10011046, 16777215, 0">
- <children xmi:type="notation:DecorationNode" xmi:id="_7X0FAs7bEeOkpJkbnruUGQ" type="5014"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_7X0sEM7bEeOkpJkbnruUGQ" visible="false" type="7011">
- <styles xmi:type="notation:TitleStyle" xmi:id="_7X0sEc7bEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_7X0sEs7bEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_7X0sE87bEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7X0sFM7bEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_7X0sFc7bEeOkpJkbnruUGQ" visible="false" type="7012">
- <styles xmi:type="notation:TitleStyle" xmi:id="_7X0sFs7bEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_7X0sF87bEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_7X0sGM7bEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7X0sGc7bEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_7X0sGs7bEeOkpJkbnruUGQ" visible="false" type="7013">
- <styles xmi:type="notation:TitleStyle" xmi:id="_7X0sG87bEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_7X0sHM7bEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_7X0sHc7bEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7X0sHs7bEeOkpJkbnruUGQ"/>
- </children>
- <element xmi:type="uml:Class" href="model.uml#_7XyP0M7bEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7X0FAc7bEeOkpJkbnruUGQ" x="51" y="13" width="202" height="56"/>
- </children>
- <styles xmi:type="notation:TitleStyle" xmi:id="_yix-As7bEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_yix-A87bEeOkpJkbnruUGQ"/>
- </children>
- <element xmi:type="uml:Package" href="model.uml#_i84nMM7bEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_yixW8c7bEeOkpJkbnruUGQ" x="40" y="20" width="375" height="169"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_-_KmMM7bEeOkpJkbnruUGQ" type="2007">
- <children xmi:type="notation:DecorationNode" xmi:id="_-_LNQM7bEeOkpJkbnruUGQ" type="5026"/>
- <children xmi:type="notation:DecorationNode" xmi:id="_-_LNQc7bEeOkpJkbnruUGQ" type="7016">
- <children xmi:type="notation:Shape" xmi:id="_ADxd0M7cEeOkpJkbnruUGQ" type="3023" gradient="8905185, 16777215, 0">
- <children xmi:type="notation:DecorationNode" xmi:id="_ADxd0s7cEeOkpJkbnruUGQ" type="5049"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_ADyE4M7cEeOkpJkbnruUGQ" visible="false" type="7027">
- <styles xmi:type="notation:TitleStyle" xmi:id="_ADyE4c7cEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_ADyE4s7cEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_ADyE487cEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ADyE5M7cEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_ADyE5c7cEeOkpJkbnruUGQ" type="7028">
- <children xmi:type="notation:Node" xmi:id="_gicIkM7cEeOkpJkbnruUGQ" type="3007">
- <element xmi:type="uml:Operation" href="model.uml#_giaTYM7cEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_gicIkc7cEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_mbFW8M7cEeOkpJkbnruUGQ" type="3007">
- <element xmi:type="uml:Operation" href="model.uml#_mbDhwM7cEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_mbFW8c7cEeOkpJkbnruUGQ"/>
- </children>
- <styles xmi:type="notation:TitleStyle" xmi:id="_ADyE5s7cEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_ADyE587cEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_ADyE6M7cEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ADyE6c7cEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_ADyE6s7cEeOkpJkbnruUGQ" visible="false" type="7029">
- <styles xmi:type="notation:TitleStyle" xmi:id="_ADyE687cEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_ADyE7M7cEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_ADyE7c7cEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ADyE7s7cEeOkpJkbnruUGQ"/>
- </children>
- <element xmi:type="uml:Interface" href="model.uml#_ADvBkM7cEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ADxd0c7cEeOkpJkbnruUGQ" x="255" y="33" height="81"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_G0bSQM7cEeOkpJkbnruUGQ" type="3010" gradient="8905185, 16777215, 0">
- <children xmi:type="notation:DecorationNode" xmi:id="_G0b5UM7cEeOkpJkbnruUGQ" type="5014"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_G0b5Uc7cEeOkpJkbnruUGQ" visible="false" type="7011">
- <styles xmi:type="notation:TitleStyle" xmi:id="_G0b5Us7cEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_G0b5U87cEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_G0b5VM7cEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_G0b5Vc7cEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_G0cgYM7cEeOkpJkbnruUGQ" type="7012">
- <children xmi:type="notation:Node" xmi:id="_swVo0M7cEeOkpJkbnruUGQ" type="3013">
- <element xmi:type="uml:Operation" href="model.uml#_swTzoM7cEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_swVo0c7cEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_utIFoM7cEeOkpJkbnruUGQ" type="3013">
- <element xmi:type="uml:Operation" href="model.uml#_utGQcM7cEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_utIFoc7cEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_xPFsEM7cEeOkpJkbnruUGQ" type="3013">
- <element xmi:type="uml:Operation" href="model.uml#_xPD24M7cEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_xPFsEc7cEeOkpJkbnruUGQ"/>
- </children>
- <styles xmi:type="notation:TitleStyle" xmi:id="_G0cgYc7cEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_G0cgYs7cEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_G0cgY87cEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_G0cgZM7cEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_G0cgZc7cEeOkpJkbnruUGQ" visible="false" type="7013">
- <styles xmi:type="notation:TitleStyle" xmi:id="_G0cgZs7cEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_G0cgZ87cEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_G0cgaM7cEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_G0cgac7cEeOkpJkbnruUGQ"/>
- </children>
- <element xmi:type="uml:Class" href="model.uml#_G0aEIM7cEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_G0bSQc7cEeOkpJkbnruUGQ" x="15" y="33" height="81"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_LRukAM7cEeOkpJkbnruUGQ" type="3010" gradient="8905185, 16777215, 0">
- <children xmi:type="notation:DecorationNode" xmi:id="_LRukAs7cEeOkpJkbnruUGQ" type="5014"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_LRvLEM7cEeOkpJkbnruUGQ" type="7011">
- <styles xmi:type="notation:TitleStyle" xmi:id="_LRvLEc7cEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_LRvLEs7cEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_LRvLE87cEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_LRvLFM7cEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_LRvLFc7cEeOkpJkbnruUGQ" type="7012">
- <children xmi:type="notation:Node" xmi:id="__iTTAM7cEeOkpJkbnruUGQ" type="3013">
- <element xmi:type="uml:Operation" href="model.uml#__iRd0M7cEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="__iTTAc7cEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_DiIloM7dEeOkpJkbnruUGQ" type="3013">
- <element xmi:type="uml:Operation" href="model.uml#_DiGwcM7dEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_DiIloc7dEeOkpJkbnruUGQ"/>
- </children>
- <styles xmi:type="notation:TitleStyle" xmi:id="_LRvLFs7cEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_LRvLF87cEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_LRvLGM7cEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_LRvLGc7cEeOkpJkbnruUGQ"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_LRvLGs7cEeOkpJkbnruUGQ" type="7013">
- <styles xmi:type="notation:TitleStyle" xmi:id="_LRvLG87cEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_LRvLHM7cEeOkpJkbnruUGQ"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_LRvLHc7cEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_LRvLHs7cEeOkpJkbnruUGQ"/>
- </children>
- <element xmi:type="uml:Class" href="model.uml#_LRsu0M7cEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_LRukAc7cEeOkpJkbnruUGQ" x="22" y="240" width="314"/>
- </children>
- <styles xmi:type="notation:TitleStyle" xmi:id="_-_LNQs7bEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_-_LNQ87bEeOkpJkbnruUGQ"/>
- </children>
- <element xmi:type="uml:Package" href="model.uml#_Gs3LUM7UEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_-_KmMc7bEeOkpJkbnruUGQ" x="480" y="20" width="481" height="401"/>
- </children>
- <styles xmi:type="notation:DiagramStyle" xmi:id="_xae5Mc7bEeOkpJkbnruUGQ"/>
- <styles xmi:type="style:PapyrusViewStyle" xmi:id="_xae5Ms7bEeOkpJkbnruUGQ">
- <owner xmi:type="uml:Model" href="model.uml#_lNLnZsbvEeO9CYUoXDRplw"/>
- </styles>
- <element xmi:type="uml:Model" href="model.uml#_lNLnZsbvEeO9CYUoXDRplw"/>
- <edges xmi:type="notation:Connector" xmi:id="_PaODYM7cEeOkpJkbnruUGQ" type="4001" source="_7X0FAM7bEeOkpJkbnruUGQ" target="_0-lSEM7bEeOkpJkbnruUGQ">
- <children xmi:type="notation:DecorationNode" xmi:id="_PaOqcM7cEeOkpJkbnruUGQ" visible="false" type="6001">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_PaOqcc7cEeOkpJkbnruUGQ" y="-20"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_PaPRgM7cEeOkpJkbnruUGQ" visible="false" type="6002">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_PaPRgc7cEeOkpJkbnruUGQ" y="20"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_PaP4kM7cEeOkpJkbnruUGQ" visible="false" type="6003">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_PaP4kc7cEeOkpJkbnruUGQ" y="-20"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_PaQfoM7cEeOkpJkbnruUGQ" visible="false" type="6005">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_PaQfoc7cEeOkpJkbnruUGQ" y="20"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_PaRGsM7cEeOkpJkbnruUGQ" visible="false" type="6033">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_PaRGsc7cEeOkpJkbnruUGQ" y="20"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_PaRGss7cEeOkpJkbnruUGQ" visible="false" type="6034">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_PaRtwM7cEeOkpJkbnruUGQ" y="-20"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_PaODYc7cEeOkpJkbnruUGQ"/>
- <element xmi:type="uml:Association" href="model.uml#_PaLAEM7cEeOkpJkbnruUGQ"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_PaODYs7cEeOkpJkbnruUGQ" points="[6, 12, 0, -174]$[4, 177, -2, -9]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Pa_fcM7cEeOkpJkbnruUGQ" id="(0.5148514851485149,1.0)"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Pa_fcc7cEeOkpJkbnruUGQ" id="(0.4642857142857143,0.09)"/>
- </edges>
- <edges xmi:type="notation:Connector" xmi:id="_7ICuMM7cEeOkpJkbnruUGQ" type="4001" source="_G0bSQM7cEeOkpJkbnruUGQ" target="_ADxd0M7cEeOkpJkbnruUGQ">
- <children xmi:type="notation:DecorationNode" xmi:id="_7IDVQM7cEeOkpJkbnruUGQ" visible="false" type="6001">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_7ID8UM7cEeOkpJkbnruUGQ" y="-20"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_7IEjYM7cEeOkpJkbnruUGQ" visible="false" type="6002">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_7IEjYc7cEeOkpJkbnruUGQ" y="20"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_7IFKcM7cEeOkpJkbnruUGQ" visible="false" type="6003">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_7IFKcc7cEeOkpJkbnruUGQ" y="-20"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_7IFxgM7cEeOkpJkbnruUGQ" visible="false" type="6005">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_7IFxgc7cEeOkpJkbnruUGQ" y="20"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_7IGYkM7cEeOkpJkbnruUGQ" visible="false" type="6033">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_7IGYkc7cEeOkpJkbnruUGQ" y="20"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_7IG_oM7cEeOkpJkbnruUGQ" visible="false" type="6034">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_7IG_oc7cEeOkpJkbnruUGQ" y="-20"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_7ICuMc7cEeOkpJkbnruUGQ"/>
- <element xmi:type="uml:Association" href="model.uml#_7IAR8M7cEeOkpJkbnruUGQ"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_7ICuMs7cEeOkpJkbnruUGQ" points="[23, 4, -78, 0]$[78, 4, -23, 0]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_7IXeUM7cEeOkpJkbnruUGQ" id="(0.8756756756756757,0.4567901234567901)"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_7IXeUc7cEeOkpJkbnruUGQ" id="(0.11330049261083744,0.5061728395061729)"/>
- </edges>
- <edges xmi:type="notation:Connector" xmi:id="_HWBG8M7dEeOkpJkbnruUGQ" type="4001" source="_LRukAM7cEeOkpJkbnruUGQ" target="_G0bSQM7cEeOkpJkbnruUGQ">
- <children xmi:type="notation:DecorationNode" xmi:id="_HWBuAM7dEeOkpJkbnruUGQ" visible="false" type="6001">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_HWBuAc7dEeOkpJkbnruUGQ" y="-20"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_HWCVEM7dEeOkpJkbnruUGQ" visible="false" type="6002">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_HWCVEc7dEeOkpJkbnruUGQ" y="20"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_HWC8IM7dEeOkpJkbnruUGQ" visible="false" type="6003">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_HWC8Ic7dEeOkpJkbnruUGQ" y="-20"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_HWDjMM7dEeOkpJkbnruUGQ" visible="false" type="6005">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_HWDjMc7dEeOkpJkbnruUGQ" y="20"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_HWEKQM7dEeOkpJkbnruUGQ" visible="false" type="6033">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_HWEKQc7dEeOkpJkbnruUGQ" y="20"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_HWExUM7dEeOkpJkbnruUGQ" type="6034">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_HWExUc7dEeOkpJkbnruUGQ" x="-7" y="20"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_HWBG8c7dEeOkpJkbnruUGQ"/>
- <element xmi:type="uml:Association" href="model.uml#_HV-qsM7dEeOkpJkbnruUGQ"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_HWBG8s7dEeOkpJkbnruUGQ" points="[2, -9, 0, 138]$[-8, -135, -10, 12]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_HWXsQM7dEeOkpJkbnruUGQ" id="(0.1910828025477707,0.08108108108108109)"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_HWXsQc7dEeOkpJkbnruUGQ" id="(0.372972972972973,0.8518518518518519)"/>
- </edges>
- <edges xmi:type="notation:Connector" xmi:id="_Q1kKkM7dEeOkpJkbnruUGQ" type="4008" source="_0-lSEM7bEeOkpJkbnruUGQ" target="_LRukAM7cEeOkpJkbnruUGQ">
- <children xmi:type="notation:DecorationNode" xmi:id="_Q1kxoM7dEeOkpJkbnruUGQ" visible="false" type="6026">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_Q1lYsM7dEeOkpJkbnruUGQ" y="40"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_Q1lYsc7dEeOkpJkbnruUGQ" visible="false" type="6027">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_Q1l_wM7dEeOkpJkbnruUGQ" y="60"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_Q1kKkc7dEeOkpJkbnruUGQ"/>
- <element xmi:type="uml:Dependency" href="model.uml#_Q1hHQM7dEeOkpJkbnruUGQ"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Q1kKks7dEeOkpJkbnruUGQ" points="[4, 5, -232, 0]$[215, 2, -21, -3]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Q1w-4M7dEeOkpJkbnruUGQ" id="(0.9795918367346939,0.375)"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Q1xl8M7dEeOkpJkbnruUGQ" id="(0.06687898089171974,0.34234234234234234)"/>
- </edges>
- </notation:Diagram>
- <notation:Diagram xmi:id="_kCCKAM7eEeOkpJkbnruUGQ" type="PapyrusUMLClassDiagram" name="comment" measurementUnit="Pixel">
- <children xmi:type="notation:Shape" xmi:id="_lBxvwM7eEeOkpJkbnruUGQ" type="2012">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_qpb70M7eEeOkpJkbnruUGQ" source="PapyrusHyperLink_Page" references="_xae5MM7bEeOkpJkbnruUGQ">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qpb70c7eEeOkpJkbnruUGQ" key="tooltip_text" value="Structure"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qpb70s7eEeOkpJkbnruUGQ" key="pageName" value="PapyrusHyperLink_Page"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qpb7087eEeOkpJkbnruUGQ" key="is_default_navigation" value="false"/>
- </eAnnotations>
- <children xmi:type="notation:DecorationNode" xmi:id="_lByW0M7eEeOkpJkbnruUGQ" type="5038"/>
- <element xmi:type="uml:Comment" href="model.uml#_j3s-wM7dEeOkpJkbnruUGQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lBxvwc7eEeOkpJkbnruUGQ" x="39" y="27"/>
- </children>
- <styles xmi:type="notation:DiagramStyle" xmi:id="_kCCKAc7eEeOkpJkbnruUGQ"/>
- <styles xmi:type="style:PapyrusViewStyle" xmi:id="_kCCKAs7eEeOkpJkbnruUGQ">
- <owner xmi:type="uml:Model" href="model.uml#_lNLnZsbvEeO9CYUoXDRplw"/>
- </styles>
- <element xmi:type="uml:Model" href="model.uml#_lNLnZsbvEeO9CYUoXDRplw"/>
- </notation:Diagram>
-</xmi:XMI>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/META-INF/MANIFEST.MF b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/META-INF/MANIFEST.MF
index 492e4607e86..23b5b4430fa 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/META-INF/MANIFEST.MF
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/META-INF/MANIFEST.MF
@@ -18,6 +18,7 @@ Export-Package: org.eclipse.papyrus.infra.gmfdiag.common,
org.eclipse.papyrus.infra.gmfdiag.common.geometry,
org.eclipse.papyrus.infra.gmfdiag.common.handler,
org.eclipse.papyrus.infra.gmfdiag.common.helper,
+ org.eclipse.papyrus.infra.gmfdiag.common.internal.sync;x-internal:=true,
org.eclipse.papyrus.infra.gmfdiag.common.listener,
org.eclipse.papyrus.infra.gmfdiag.common.locator,
org.eclipse.papyrus.infra.gmfdiag.common.messages,
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/hourglass.svg b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/hourglass.svg
index d7d5bff4fc5..fdf73b65d6b 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/hourglass.svg
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/hourglass.svg
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
-<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="140" height="35" id="svg2" version="1.1" inkscape:version="0.48.5 r10040" sodipodi:docname="hourglass.svg">
+<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="20" height="20" id="svg2" version="1.1" inkscape:version="0.48.5 r10040" sodipodi:docname="hourglass.svg">
<defs id="defs4">
<linearGradient id="linearGradient3789">
<stop style="stop-color:#000005;stop-opacity:1;" offset="0" id="stop3791" />
@@ -13,7 +13,7 @@
<stop id="stop3794" offset="1" style="stop-color:#919cd7;stop-opacity:1;" />
</linearGradient>
</defs>
- <sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="5.6" inkscape:cx="42.531265" inkscape:cy="24.375" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="false" units="px" inkscape:window-width="1920" inkscape:window-height="1005" inkscape:window-x="1591" inkscape:window-y="-9" inkscape:window-maximized="1" borderlayer="false" />
+ <sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="5.6" inkscape:cx="42.531265" inkscape:cy="24.375" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="false" units="px" inkscape:window-width="1920" inkscape:window-height="1018" inkscape:window-x="1592" inkscape:window-y="-8" inkscape:window-maximized="1" borderlayer="false" />
<metadata id="metadata7">
<rdf:RDF>
<cc:Work rdf:about="">
@@ -23,8 +23,7 @@
</cc:Work>
</rdf:RDF>
</metadata>
- <g inkscape:label="Calque 1" inkscape:groupmode="layer" id="layer1" transform="translate(0,-1017.3617)">
- <path style="fill:white;fill-opacity:1;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="M 1,1 L 19,1 L 10,10 L 19,19 L 1,19 L 10,10 z" id="papyrusPath" inkscape:connector-curvature="0" transform="translate(60,1017.3618)" />
- <rect style="fill:none;stroke:none" id="PapyrusLabel" width="140" height="15" x="0" y="20" transform="translate(-10,1025.3975)" />
+ <g inkscape:label="Calque 1" inkscape:groupmode="layer" id="layer1" transform="translate(0,-1032.3617)">
+ <path style="fill:white;fill-opacity:1;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="M 1,1 L 19,1 L 10,10 L 19,19 L 1,19 L 10,10 z" id="PapyrusPath" inkscape:connector-curvature="0" transform="translate(7.1428571e-8,1032.3617)" />
</g>
</svg>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/plugin.xml b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/plugin.xml
index 0fee83a4e32..adeb2fbff38 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/plugin.xml
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/plugin.xml
@@ -490,6 +490,7 @@
uri="http:///expansionmodel.ecore">
</factory>
</extension>
+
<extension
point="org.eclipse.papyrus.infra.sync.triggers">
<syncTrigger
@@ -501,5 +502,18 @@
</enablement>
</syncTrigger>
</extension>
+ <extension
+ point="org.eclipse.papyrus.infra.core.service">
+ <service
+ classname="org.eclipse.papyrus.infra.gmfdiag.common.internal.sync.UISyncServiceInitializer"
+ description="UI-specific initializer of the synchronization service"
+ id="org.eclipse.papyrus.infra.gmfdiag.common.internal.sync.UISyncServiceInitializer"
+ priority="10"
+ startKind="startup">
+ <dependsOn
+ serviceKeyRef="org.eclipse.papyrus.infra.sync.service.ISyncService">
+ </dependsOn>
+ </service>
+ </extension>
</plugin>
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/Activator.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/Activator.java
index af87d00aec1..7d82bb67526 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/Activator.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/Activator.java
@@ -35,6 +35,7 @@ public class Activator extends AbstractUIPlugin {
public static final String ID = "org.eclipse.papyrus.infra.gmfdiag.common"; //$NON-NLS-1$
public static final PreferencesHint DIAGRAM_PREFERENCES_HINT = new PreferencesHint(ID);
+ public static final String EXPANSION_TRACE=ID+"/debug/expansion";
private static Activator instance;
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/CreateInducedRepresentationViewCommand.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/CreateInducedRepresentationViewCommand.java
index 868c31a9b6d..dcecf1eefbb 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/CreateInducedRepresentationViewCommand.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/CreateInducedRepresentationViewCommand.java
@@ -17,11 +17,7 @@ import org.eclipse.emf.transaction.RecordingCommand;
import org.eclipse.emf.transaction.TransactionalEditingDomain;
import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
import org.eclipse.gmf.runtime.diagram.core.services.ViewService;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.optimal.BasicCompartmentViewFactory;
-import org.eclipse.gmf.runtime.emf.type.core.IHintedType;
import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.adapter.SemanticAdapter;
/**
* Command to create the compartment displaying shapes for an element
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/DiagramExpansionsRegistry.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/DiagramExpansionsRegistry.java
index f32a794d9da..92a227a8f0f 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/DiagramExpansionsRegistry.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/DiagramExpansionsRegistry.java
@@ -45,8 +45,6 @@ public class DiagramExpansionsRegistry {
protected ArrayList<DiagramExpansion> diagramExpansions = new ArrayList<DiagramExpansion>();
protected HashMap<String, UseContext> usages = new HashMap<String, UseContext>();
public HashMap<String, ChildrenListRepresentation> mapChildreen = new HashMap<String, ChildrenListRepresentation>();
- protected static final boolean DEBUG_EXPANSION = "true".equalsIgnoreCase(Platform.getDebugOption(
- "org.eclipse.papyrus.infra.gmfdiag.common/debug/expansion"));
/**
*
@@ -85,9 +83,7 @@ public class DiagramExpansionsRegistry {
usages.put(usage.getDiagramType(), usage);
ChildrenListRepresentation childrenListRepresentation = new ChildrenListRepresentation(usage);
mapChildreen.put(usage.getDiagramType(), childrenListRepresentation);
- if (DEBUG_EXPANSION) {
- Activator.log.debug(childrenListRepresentation.toString());
- }
+ Activator.log.trace(Activator.EXPANSION_TRACE,childrenListRepresentation.toString());
} else {
// there is two ewtension oon the smae diagram!
// do not load --error
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/ExpandEditPartProvider.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/ExpandEditPartProvider.java
index 27d4c746ef5..07cf7f2ce67 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/ExpandEditPartProvider.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/ExpandEditPartProvider.java
@@ -17,11 +17,8 @@ import java.lang.reflect.Constructor;
import java.util.HashMap;
import java.util.Map;
-import org.eclipse.core.runtime.Assert;
import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Platform;
import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.gmf.runtime.common.core.service.IOperation;
import org.eclipse.gmf.runtime.common.core.util.Log;
import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
@@ -33,8 +30,7 @@ import org.eclipse.gmf.runtime.diagram.ui.services.editpart.IEditPartOperation;
import org.eclipse.gmf.runtime.notation.Diagram;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.osgi.util.NLS;
-import org.eclipse.papyrus.commands.Activator;
-import org.eclipse.papyrus.infra.core.utils.ServiceUtils;
+import org.eclipse.papyrus.infra.gmfdiag.common.Activator;
import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.AbstractRepresentation;
import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationKind;
import org.eclipse.papyrus.infra.tools.util.ClassLoaderHelper;
@@ -51,8 +47,8 @@ public class ExpandEditPartProvider extends AbstractEditPartProvider {
*
*/
private static final String DEBUG_PREFIX = "[EXPANSION_DIAGRAM]";
- private static final boolean DEBUG_EXPANSION = "true".equalsIgnoreCase(Platform.getDebugOption(
- "org.eclipse.papyrus.infra.gmfdiag.common/debug/expansion"));
+ // private static final boolean DEBUG_EXPANSION = "true".equalsIgnoreCase(Platform.getDebugOption(
+ // "org.eclipse.papyrus.infra.gmfdiag.common/debug/expansion"));
/** Map containing node view types supported by this provider */
protected Map<String, Class<?>> nodeMap = new HashMap<String, Class<?>>();
@@ -102,9 +98,7 @@ public class ExpandEditPartProvider extends AbstractEditPartProvider {
}
String graphicalType = newView.getType();
- if(DEBUG_EXPANSION){
- Activator.log.debug(DEBUG_PREFIX+this.getClass().getName()+" view appears with the type "+graphicalType);
- }
+ Activator.log.trace(Activator.EXPANSION_TRACE,""+this.getClass().getName()+" view appears with the type "+graphicalType);
if(diagramExpansionRegistry.mapChildreen.get(currentDiagramType).IDMap.get(graphicalType)!=null){
return true;
@@ -130,9 +124,7 @@ public class ExpandEditPartProvider extends AbstractEditPartProvider {
String graphicalType = view.getType();
- if(DEBUG_EXPANSION){
- Activator.log.debug(DEBUG_PREFIX+this.getClass().getName()+" view appears with the type "+graphicalType);
- }
+ Activator.log.trace(Activator.EXPANSION_TRACE,""+ this.getClass().getName()+" view appears with the type "+graphicalType);
EObject eObject= diagramExpansionRegistry.mapChildreen.get(currentDiagramType).IDMap.get(graphicalType);
Class editpartClass=null;
String editpartQualifiedName=null;
@@ -155,7 +147,7 @@ public class ExpandEditPartProvider extends AbstractEditPartProvider {
if( graphicEditPart==null){
String errorMessage= "The model expand does not reference an edit part for the element "+graphicalType;
if( editpartQualifiedName!=null){
- errorMessage= "The editpart provide does not succed to find "+editpartQualifiedName+" class for the element "+graphicalType;
+ errorMessage= "The editpart provide does not succed to find "+editpartQualifiedName+" class for the element "+graphicalType;
}
org.eclipse.papyrus.infra.gmfdiag.common.Activator.log.error(errorMessage, new NullPointerException(errorMessage));
}
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/ExpandViewProvider.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/ExpandViewProvider.java
index ace52915caf..45a418f923b 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/ExpandViewProvider.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/expansion/ExpandViewProvider.java
@@ -25,7 +25,7 @@ import org.eclipse.gmf.runtime.diagram.core.services.view.CreateNodeViewOperatio
import org.eclipse.gmf.runtime.diagram.core.services.view.CreateViewForKindOperation;
import org.eclipse.gmf.runtime.notation.Diagram;
import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.commands.Activator;
+import org.eclipse.papyrus.infra.gmfdiag.common.Activator;
import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.AbstractRepresentation;
import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.Representation;
import org.eclipse.papyrus.infra.gmfdiag.common.expansionmodel.RepresentationKind;
@@ -43,8 +43,6 @@ import org.eclipse.papyrus.infra.viewpoints.policy.ViewPrototype;
public class ExpandViewProvider extends CustomAbstractViewProvider implements IViewProvider {
private static final String DEBUG_PREFIX = "[EXPANSION_DIAGRAM]";
- private static final boolean DEBUG_EXPANSION = "true".equalsIgnoreCase(Platform.getDebugOption(
- "org.eclipse.papyrus.infra.gmfdiag.common/debug/expansion"));
/** Map containing node view types supported by this provider */
protected Map<String, Class<?>> nodeMap = new HashMap<String, Class<?>>();
@@ -72,8 +70,8 @@ public class ExpandViewProvider extends CustomAbstractViewProvider implements IV
this.registry = new IdentityGraphicalElementType();
}
-
-
+
+
@Override
protected boolean provides(CreateNodeViewOperation operation) {
@@ -83,7 +81,7 @@ public class ExpandViewProvider extends CustomAbstractViewProvider implements IV
protected boolean provides(CreateEdgeViewOperation operation) {
return providesFromExpansionModel(operation);
}
-
+
/**
* this method consults the expansion model to know if the view can be created in the current container.
* @param operation the proposition of creation
@@ -105,9 +103,7 @@ public class ExpandViewProvider extends CustomAbstractViewProvider implements IV
else{
containerType = operation.getContainerView().getType();
}
- if(DEBUG_EXPANSION){
- Activator.log.debug(DEBUG_PREFIX+this.getClass().getName()+" try to create view in the container "+containerType+ " the view "+ operation.getSemanticHint());
- }
+ Activator.log.trace(Activator.EXPANSION_TRACE,this.getClass().getName()+" try to create view in the container "+containerType+ " the view "+ operation.getSemanticHint());
//get the list of childreen Id from a parent ID
List<String> possibleChildreenIDs=diagramExpansionRegistry.mapChildreen.get(currentDiagramType).parentChildrenRelation.get(containerType);
if(possibleChildreenIDs==null){
@@ -120,7 +116,7 @@ public class ExpandViewProvider extends CustomAbstractViewProvider implements IV
return false;
}
-
+
/**
* {@inheritDoc}
*/
@@ -190,7 +186,7 @@ public class ExpandViewProvider extends CustomAbstractViewProvider implements IV
diagramType=null;
}
-
+
/**
* @see org.eclipse.papyrus.infra.gmfdiag.common.providers.CustomAbstractViewProvider#provides(org.eclipse.gmf.runtime.diagram.core.services.view.CreateViewForKindOperation)
*
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/SVGNodePlateFigure.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/SVGNodePlateFigure.java
index 78ac0f6ab6a..281d34bd872 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/SVGNodePlateFigure.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/SVGNodePlateFigure.java
@@ -162,6 +162,10 @@ public class SVGNodePlateFigure extends DefaultSizeNodeFigure {
if (element != null) {
outlinePoints = toDraw2DPoints(((SVGPathElement) element).getPathSegList());
outlineDimension = getDimensionOf(outlinePoints);
+ } else {
+ // If you don't have papyrusPath
+ outlinePoints = null;
+ outlineDimension = null;
}
element = svgDocument.getElementById("PapyrusLabel");
if (element != null) {
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/internal/sync/UISyncServiceInitializer.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/internal/sync/UISyncServiceInitializer.java
new file mode 100644
index 00000000000..9840e266cd4
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/internal/sync/UISyncServiceInitializer.java
@@ -0,0 +1,120 @@
+/*****************************************************************************
+ * Copyright (c) 2015 Christian W. Damus and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Christian W. Damus - Initial API and implementation
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.infra.gmfdiag.common.internal.sync;
+
+import java.util.List;
+import java.util.concurrent.AbstractExecutorService;
+import java.util.concurrent.Executor;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.TimeUnit;
+
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.papyrus.infra.core.services.IService;
+import org.eclipse.papyrus.infra.core.services.ServiceException;
+import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
+import org.eclipse.papyrus.infra.core.utils.IExecutorPolicy;
+import org.eclipse.papyrus.infra.core.utils.TransactionHelper;
+import org.eclipse.papyrus.infra.sync.service.ISyncService;
+import org.eclipse.papyrus.infra.tools.util.UIUtil;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * A service that provides UI-specific initialization of the {@link ISyncService}.
+ * In particular, it installs an asynchronous executor that runs operations on the UI thread.
+ */
+public class UISyncServiceInitializer implements IService {
+
+ private ServicesRegistry registry;
+
+ public UISyncServiceInitializer() {
+ super();
+ }
+
+ @Override
+ public void init(ServicesRegistry servicesRegistry) throws ServiceException {
+ this.registry = servicesRegistry;
+ }
+
+ @Override
+ public void startService() throws ServiceException {
+ ISyncService syncService = registry.getService(ISyncService.class);
+
+ syncService.setAsyncExecutor(new UISyncServiceExecutorService(syncService.getEditingDomain()));
+ }
+
+ @Override
+ public void disposeService() throws ServiceException {
+ // Nothing to dispose
+ }
+
+ private static class UISyncServiceExecutorService extends AbstractExecutorService {
+
+ private final ExecutorService uiExecutor;
+ private final Executor transactionExecutor;
+
+ UISyncServiceExecutorService(TransactionalEditingDomain domain) {
+ super();
+
+ this.uiExecutor = UIUtil.createUIExecutor(Display.getDefault());
+ this.transactionExecutor = TransactionHelper.createTransactionExecutor(domain, uiExecutor, new IExecutorPolicy() {
+ @Override
+ public Ranking rank(Runnable task, Executor executor) {
+ if (executor == uiExecutor) {
+ // Always OK to fall back to the UI-thread executor
+ return Ranking.ACCEPTABLE;
+ } else {
+ // The case of the transaction executor
+ return (Display.getCurrent() == null) ? Ranking.DEPRECATED : Ranking.PREFERRED;
+ }
+ }
+ });
+ }
+
+ @Override
+ public void execute(Runnable command) {
+ transactionExecutor.execute(command);
+ }
+
+ @Override
+ public void shutdown() {
+ // Only the UI executor is an executor service
+ uiExecutor.shutdown();
+ }
+
+ @Override
+ public List<Runnable> shutdownNow() {
+ // Only the UI executor is an executor service
+ return uiExecutor.shutdownNow();
+ }
+
+ @Override
+ public boolean isShutdown() {
+ // Only the UI executor is an executor service
+ return uiExecutor.isShutdown();
+ }
+
+ @Override
+ public boolean isTerminated() {
+ // Only the UI executor is an executor service
+ return uiExecutor.isTerminated();
+ }
+
+ @Override
+ public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException {
+ // Only the UI executor is an executor service
+ return uiExecutor.awaitTermination(timeout, unit);
+ }
+
+ }
+}
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/AbstractNestedDiagramViewsSyncFeature.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/AbstractNestedDiagramViewsSyncFeature.java
index 36122b592e4..341cc35e9ea 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/AbstractNestedDiagramViewsSyncFeature.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/AbstractNestedDiagramViewsSyncFeature.java
@@ -122,6 +122,14 @@ public abstract class AbstractNestedDiagramViewsSyncFeature<M extends EObject, N
}
/**
+ * Filters the addition of new elements to add only those that are of the nested model element type.
+ */
+ @Override
+ protected boolean shouldAdd(SyncItem<M, T> from, SyncItem<M, T> to, EObject newSource) {
+ return getNestedSyncRegistry().getModelType().isInstance(newSource);
+ }
+
+ /**
* Override this one because we need to execute certain post-actions asynchronously.
*/
@Override
@@ -196,10 +204,10 @@ public abstract class AbstractNestedDiagramViewsSyncFeature<M extends EObject, N
}
private void onDo() {
- UISyncUtils.asyncExec(AbstractNestedDiagramViewsSyncFeature.this, new SyncServiceRunnable.Safe<T>() {
+ runAsync(new SyncServiceRunnable.Safe<T>() {
@Override
public T run(ISyncService syncService) {
- child = retrieveChild(to.getBackend(), getTargetModel(from, to, objectToDrop));
+ child = findChild(to.getBackend(), getTargetModel(from, to, objectToDrop));
if (child != null) {
Command additional = onTargetAdded(from, newModel, to, child);
if (additional != null) {
@@ -226,7 +234,7 @@ public abstract class AbstractNestedDiagramViewsSyncFeature<M extends EObject, N
* The model element to look for
* @return The child edit part, or <code>null</code> if none is found
*/
- private T retrieveChild(T parent, EObject model) {
+ protected T findChild(T parent, EObject model) {
if (parent == null || model == null) {
return null;
}
@@ -268,7 +276,7 @@ public abstract class AbstractNestedDiagramViewsSyncFeature<M extends EObject, N
// Only notify of add if we had done that in the first place (this is not an initial sync that is being undone)
if (oldSource != null) {
- UISyncUtils.asyncExec(AbstractNestedDiagramViewsSyncFeature.this, new SyncServiceRunnable.Safe<Command>() {
+ runAsync(new SyncServiceRunnable.Safe<Command>() {
@Override
public Command run(ISyncService syncService) {
// A new edit-part is always created when a deleted view is restored, so find it.
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/NodePositionSyncFeature.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/NodePositionSyncFeature.java
index 9e72feb248b..94d5d496093 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/NodePositionSyncFeature.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/NodePositionSyncFeature.java
@@ -21,12 +21,11 @@ import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gef.EditPart;
import org.eclipse.gef.GraphicalEditPart;
-import org.eclipse.gef.RequestConstants;
-import org.eclipse.gef.requests.ChangeBoundsRequest;
+import org.eclipse.gmf.runtime.diagram.ui.commands.SetBoundsCommand;
import org.eclipse.gmf.runtime.notation.Location;
import org.eclipse.gmf.runtime.notation.Node;
import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.papyrus.commands.wrappers.GEFtoEMFCommandWrapper;
+import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper;
import org.eclipse.papyrus.infra.sync.EMFDispatch;
import org.eclipse.papyrus.infra.sync.EMFDispatchManager;
import org.eclipse.papyrus.infra.sync.SyncBucket;
@@ -105,11 +104,7 @@ public class NodePositionSyncFeature<M extends EObject, T extends EditPart> exte
if (!locationFrom.equals(locationTo)) {
// compute the reaction command
- ChangeBoundsRequest request = new ChangeBoundsRequest();
- request.setType(RequestConstants.REQ_MOVE);
- request.setEditParts(toEditPart);
- request.setMoveDelta(new Point(locationFrom.x - locationTo.x, locationFrom.y - locationTo.y));
- Command reaction = GEFtoEMFCommandWrapper.wrap(toEditPart.getCommand(request));
+ Command reaction = GMFtoEMFCommandWrapper.wrap(new SetBoundsCommand(getEditingDomain(), "Synchronize Node Location", toEditPart, locationFrom));
// dispatch the reaction
if (message == null) {
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/NodeSizeSyncFeature.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/NodeSizeSyncFeature.java
index 4e71294ed78..e2c9c5aca37 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/NodeSizeSyncFeature.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/NodeSizeSyncFeature.java
@@ -21,12 +21,11 @@ import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gef.EditPart;
import org.eclipse.gef.GraphicalEditPart;
-import org.eclipse.gef.RequestConstants;
-import org.eclipse.gef.requests.ChangeBoundsRequest;
+import org.eclipse.gmf.runtime.diagram.ui.commands.SetBoundsCommand;
import org.eclipse.gmf.runtime.notation.Node;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.Size;
-import org.eclipse.papyrus.commands.wrappers.GEFtoEMFCommandWrapper;
+import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper;
import org.eclipse.papyrus.infra.sync.EMFDispatch;
import org.eclipse.papyrus.infra.sync.EMFDispatchManager;
import org.eclipse.papyrus.infra.sync.SyncBucket;
@@ -108,11 +107,7 @@ public class NodeSizeSyncFeature<M extends EObject, T extends EditPart> extends
if (!sizeFrom.equals(sizeTo)) {
// compute the reaction command
- ChangeBoundsRequest request = new ChangeBoundsRequest();
- request.setType(RequestConstants.REQ_RESIZE);
- request.setEditParts(toEditPart);
- request.setSizeDelta(sizeFrom.getShrinked(sizeTo));
- Command reaction = GEFtoEMFCommandWrapper.wrap(toEditPart.getCommand(request));
+ Command reaction = GMFtoEMFCommandWrapper.wrap(new SetBoundsCommand(getEditingDomain(), "Synchronize Node Size", toEditPart, sizeFrom));
// dispatch the reaction
if (message == null) {
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/UISyncUtils.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/UISyncUtils.java
index a54c8ec9bac..99f76a101e4 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/UISyncUtils.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/UISyncUtils.java
@@ -41,19 +41,12 @@ public class UISyncUtils {
* a sync object
* @param operation
* a sync-service operation
- * @return the result of the {@code operation}, if it completes without throwing
- *
- * @throws X
- * a checked exception that the {@code operation} may optionally declare
+ * @return the future result of the {@code operation}
*
* @see SyncServiceRunnable.Safe
*/
- public static <V, X extends Exception> CheckedFuture<V, X> asyncExec(final ISyncObject syncObject, final SyncServiceRunnable<V, X> operation) throws X {
- CheckedFuture<V, X> result = operation.asFuture(syncObject);
-
- Display.getDefault().asyncExec((Runnable) result);
-
- return result;
+ public static <V, X extends Exception> CheckedFuture<V, X> asyncExec(final ISyncObject syncObject, final SyncServiceRunnable<V, X> operation) {
+ return syncObject.runAsync(operation);
}
/**
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.dnd/src/org/eclipse/papyrus/infra/gmfdiag/dnd/Activator.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.dnd/src/org/eclipse/papyrus/infra/gmfdiag/dnd/Activator.java
index 6f09f1e7490..0af6e7c1490 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.dnd/src/org/eclipse/papyrus/infra/gmfdiag/dnd/Activator.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.dnd/src/org/eclipse/papyrus/infra/gmfdiag/dnd/Activator.java
@@ -27,7 +27,7 @@ public class Activator extends AbstractUIPlugin {
private static Activator plugin;
public static LogHelper log;
-
+ public static final String EXPANSION_TRACE="org.eclipse.papyrus.infra.gmfdiag.common/debug/expansion";
/**
* The constructor
*/
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.dnd/src/org/eclipse/papyrus/infra/gmfdiag/dnd/strategy/ExpansionElementDropStrategy.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.dnd/src/org/eclipse/papyrus/infra/gmfdiag/dnd/strategy/ExpansionElementDropStrategy.java
index a603d36c7da..3740811cf04 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.dnd/src/org/eclipse/papyrus/infra/gmfdiag/dnd/strategy/ExpansionElementDropStrategy.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.dnd/src/org/eclipse/papyrus/infra/gmfdiag/dnd/strategy/ExpansionElementDropStrategy.java
@@ -55,8 +55,6 @@ public class ExpansionElementDropStrategy extends TransactionalDropStrategy {
private DiagramExpansionsRegistry diagramExpansionRegistry;
private static final String DEBUG_PREFIX = "[EXPANSION_DIAGRAM]";
- private static final boolean DEBUG_EXPANSION = "true".equalsIgnoreCase(Platform.getDebugOption(
- "org.eclipse.papyrus.infra.gmfdiag.common/debug/expansion"));
/**
* Constructor.
@@ -143,9 +141,7 @@ public class ExpansionElementDropStrategy extends TransactionalDropStrategy {
}
}
}
- if(DEBUG_EXPANSION){
- Activator.log.debug(DEBUG_PREFIX+"try to drop "+ sourceElements+" inside "+graphicalEditPart.getNotationView().getType()+ " accepts "+childrenList);
- }
+ Activator.log.trace(Activator.EXPANSION_TRACE,"try to drop "+ sourceElements+" inside "+graphicalEditPart.getNotationView().getType()+ " accepts "+childrenList);
// get the sub list of accepted source element that match to elementType
for (EObject sourceElement : sourceElements) {
//the source element must be a children of the container
@@ -191,9 +187,7 @@ public class ExpansionElementDropStrategy extends TransactionalDropStrategy {
protected Command addCommandDrop(final EditPart targetEditPart, CompositeCommand cc, final List<EObject> valuesToAdd, EObject sourceElement, final ISpecializationType iSpecializationType) {
valuesToAdd.add(sourceElement);
- if(DEBUG_EXPANSION){
- Activator.log.debug(DEBUG_PREFIX+"try to drop command created for "+ sourceElement+ " "+iSpecializationType);
- }
+ Activator.log.trace(Activator.EXPANSION_TRACE,"try to drop command created for "+ sourceElement+ " "+iSpecializationType);
Command cmd= new Command() {
@Override
public void execute() {
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common/plugin.xml b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common/plugin.xml
index ba38bc5aeab..0a36c08b5de 100644
--- a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common/plugin.xml
+++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common/plugin.xml
@@ -258,4 +258,35 @@
strategy="org.eclipse.papyrus.infra.nattable.common.strategy.paste.TablePasteStrategy">
</strategy>
</extension>
+<extension
+ point="org.eclipse.ui.commands">
+ <command
+ categoryId="org.eclipse.papyrus.infra.nattable.category"
+ description="This command allow to reload the table widget"
+ id="org.eclipse.papyrus.infra.nattable.common.reload.table.editor.command"
+ name="Reload Table Widget">
+ </command>
+</extension>
+<extension
+ point="org.eclipse.ui.menus">
+ <menuContribution
+ allPopups="false"
+ locationURI="popup:org.eclipse.ui.popup.any">
+ <command
+ commandId="org.eclipse.papyrus.infra.nattable.common.reload.table.editor.command"
+ label="Reload Table Editor"
+ style="push">
+ <visibleWhen
+ checkEnabled="true">
+ </visibleWhen>
+ </command>
+ </menuContribution>
+</extension>
+<extension
+ point="org.eclipse.ui.handlers">
+ <handler
+ class="org.eclipse.papyrus.infra.nattable.common.handlers.ReloadNattableWidgetInEditorHandler"
+ commandId="org.eclipse.papyrus.infra.nattable.common.reload.table.editor.command">
+ </handler>
+</extension>
</plugin>
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common/src/org/eclipse/papyrus/infra/nattable/common/editor/AbstractEMFNattableEditor.java b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common/src/org/eclipse/papyrus/infra/nattable/common/editor/AbstractEMFNattableEditor.java
index 6f405baeeb5..77f99308d69 100644
--- a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common/src/org/eclipse/papyrus/infra/nattable/common/editor/AbstractEMFNattableEditor.java
+++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common/src/org/eclipse/papyrus/infra/nattable/common/editor/AbstractEMFNattableEditor.java
@@ -27,6 +27,7 @@ import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.impl.AdapterImpl;
import org.eclipse.emf.transaction.TransactionalEditingDomain;
import org.eclipse.jface.preference.PreferenceStore;
+import org.eclipse.nebula.widgets.nattable.NatTable;
import org.eclipse.papyrus.infra.core.editor.reload.IReloadContextProvider;
import org.eclipse.papyrus.infra.core.services.ServiceException;
import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
@@ -61,7 +62,7 @@ public abstract class AbstractEMFNattableEditor extends EditorPart implements Na
/**
* the table manager
*/
- protected final INattableModelManager tableManager;
+ protected INattableModelManager tableManager;
/**
* the part name synchronizer
@@ -234,6 +235,25 @@ public abstract class AbstractEMFNattableEditor extends EditorPart implements Na
return super.getAdapter(adapter);
}
+ /**
+ * this method is used dispose the existing nattable widget and recreate a new one.
+ * It has been created to be able to reload a table when a bug broke the table after a user action.
+ *
+ * see bug 466447: [TreeTable] Missing method to reload a (hierarchic) table
+ * https://bugs.eclipse.org/bugs/show_bug.cgi?id=466447
+ */
+ public void reloadNattableModelManager() {
+ Table rawModel = this.tableManager.getTable();
+ // we dispose the previous nattable widget
+ NatTable nattable = this.tableManager.getAdapter(NatTable.class);
+ Composite parent = nattable.getParent();
+ nattable.dispose();
+ this.tableManager.dispose();
+ this.tableManager = NattableModelManagerFactory.INSTANCE.createNatTableModelManager(rawModel, new EObjectSelectionExtractor());
+ nattable = this.tableManager.createNattable(parent, SWT.NONE, getSite());
+ nattable.getParent().layout();
+ }
+
@Override
public void dispose() {
saveLocalPreferenceStoreValues();
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common/src/org/eclipse/papyrus/infra/nattable/common/handlers/ReloadNattableWidgetInEditorHandler.java b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common/src/org/eclipse/papyrus/infra/nattable/common/handlers/ReloadNattableWidgetInEditorHandler.java
new file mode 100755
index 00000000000..4295d613ee8
--- /dev/null
+++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common/src/org/eclipse/papyrus/infra/nattable/common/handlers/ReloadNattableWidgetInEditorHandler.java
@@ -0,0 +1,91 @@
+/*****************************************************************************
+ * Copyright (c) 2015 CEA LIST and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.nattable.common.handlers;
+
+import org.eclipse.core.commands.AbstractHandler;
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.expressions.IEvaluationContext;
+import org.eclipse.papyrus.infra.nattable.common.editor.AbstractEMFNattableEditor;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.handlers.HandlerUtil;
+
+/**
+ *
+ * @author VL222926
+ * This handler allows to the user to recreate the table in the editor. It is useful in case of broken table after a user action
+ */
+public class ReloadNattableWidgetInEditorHandler extends AbstractHandler {
+
+ /**
+ *
+ * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
+ *
+ * @param event
+ * @return
+ * @throws ExecutionException
+ */
+ @Override
+ public Object execute(ExecutionEvent event) throws ExecutionException {
+ AbstractEMFNattableEditor nattableEditor = getNattableEditor(event);
+ if (nattableEditor != null) {
+ nattableEditor.reloadNattableModelManager();
+ }
+ return null;
+ }
+
+ /**
+ * @see org.eclipse.papyrus.infra.nattable.handler.AbstractTableHandler#setEnabled(java.lang.Object)
+ *
+ * @param evaluationContext
+ */
+ @Override
+ public void setEnabled(Object evaluationContext) {
+ if (evaluationContext instanceof IEvaluationContext) {
+ AbstractEMFNattableEditor editor = getNattableEditor(evaluationContext);
+ setBaseEnabled(editor != null);
+ } else {
+ setBaseEnabled(false);
+ }
+ }
+
+ /**
+ *
+ * @param event
+ *
+ * @return
+ * the nattable editor or <code>null</code> if not found
+ */
+ private AbstractEMFNattableEditor getNattableEditor(Object event) {
+ IEditorPart editor = null;
+ AbstractEMFNattableEditor nattableEditor = null;
+ if (event instanceof IEvaluationContext) {
+ Object part = HandlerUtil.getVariable(event, "activePart"); //$NON-NLS-1$
+ if(part instanceof IEditorPart){
+ editor = (IEditorPart) part;
+ }
+ } else if (event instanceof ExecutionEvent) {
+ editor = HandlerUtil.getActiveEditor((ExecutionEvent) event);
+ }
+
+ if (editor != null) {
+ if (editor instanceof AbstractEMFNattableEditor) {
+ nattableEditor = (AbstractEMFNattableEditor) editor;
+ } else {
+ nattableEditor = editor.getAdapter(AbstractEMFNattableEditor.class);
+ }
+ }
+ return nattableEditor;
+ }
+
+}
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.model/src/org/eclipse/papyrus/infra/nattable/model/factory/IAxisFactory.java b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.model/src/org/eclipse/papyrus/infra/nattable/model/factory/IAxisFactory.java
index d07d7d43fb2..47c64bdde80 100644
--- a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.model/src/org/eclipse/papyrus/infra/nattable/model/factory/IAxisFactory.java
+++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.model/src/org/eclipse/papyrus/infra/nattable/model/factory/IAxisFactory.java
@@ -89,11 +89,13 @@ public class IAxisFactory {
if(object instanceof String) {
FeatureIdAxis axis = NattableaxisFactory.eINSTANCE.createFeatureIdAxis();
axis.setElement((String)object);
+ axis.setAlias(alias);
return axis;
}
if(object instanceof EStructuralFeature) {
EStructuralFeatureAxis axis = NattableaxisFactory.eINSTANCE.createEStructuralFeatureAxis();
axis.setElement((EStructuralFeature)object);
+ axis.setAlias(alias);
return axis;
}
throw new UnsupportedOperationException(NLS.bind("The creation for {0} is not yet implemented", object)); //$NON-NLS-1$
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/axis/CompositeTreeAxisManagerForEventList.java b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/axis/CompositeTreeAxisManagerForEventList.java
index e7f131ea9eb..6ed642bdf65 100644
--- a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/axis/CompositeTreeAxisManagerForEventList.java
+++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/axis/CompositeTreeAxisManagerForEventList.java
@@ -13,6 +13,7 @@
*****************************************************************************/
package org.eclipse.papyrus.infra.nattable.manager.axis;
+import java.util.ArrayList;
import java.util.List;
import org.eclipse.emf.common.notify.Notification;
@@ -22,6 +23,7 @@ import org.eclipse.nebula.widgets.nattable.sort.ISortModel;
import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
import org.eclipse.papyrus.infra.gmfdiag.common.utils.GMFUnsafe;
import org.eclipse.papyrus.infra.nattable.Activator;
+import org.eclipse.papyrus.infra.nattable.manager.table.TreeNattableModelManager;
import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxis.IAxis;
import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxis.ITreeItemAxis;
import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxis.NattableaxisPackage;
@@ -30,7 +32,9 @@ import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxisconfigurati
import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxisconfiguration.TableHeaderAxisConfiguration;
import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxisconfiguration.TreeFillingConfiguration;
import org.eclipse.papyrus.infra.nattable.utils.EventListHelper;
+import org.eclipse.papyrus.infra.nattable.utils.FillingConfigurationUtils;
import org.eclipse.papyrus.infra.nattable.utils.HeaderAxisConfigurationManagementUtils;
+import org.eclipse.papyrus.infra.nattable.utils.StyleUtils;
import ca.odell.glazedlists.EventList;
@@ -242,4 +246,28 @@ public class CompositeTreeAxisManagerForEventList extends CompositeAxisManagerFo
// required
getTableManager().refreshNatTable();
}
+
+ /**
+ * @see org.eclipse.papyrus.infra.nattable.manager.axis.CompositeAxisManagerForEventList#fillingConfigurationsHaveChanged()
+ *
+ */
+ @Override
+ public void fillingConfigurationsHaveChanged() {
+ super.fillingConfigurationsHaveChanged();
+
+ //fix for the bug 467723: [Tree Table] changing categories when categories are hidden empty the table
+ //we reset the visibility status for all depths to true
+ List<Integer> depths = new ArrayList<Integer>();
+ for(int i=0;i<=FillingConfigurationUtils.getMaxDepthForTree(getTableManager().getTable());i++){
+ depths.add(Integer.valueOf(i));
+ }
+ ((TreeNattableModelManager) getTableManager()).hideShowCategories(null, depths);
+ List<Integer> hiddenDepth = StyleUtils.getHiddenDepths(getTableManager());
+ if (hiddenDepth.size() > 0) {
+ //we reset the hidden depth (allow to expand hidden category too (fix the bug
+ ((TreeNattableModelManager) getTableManager()).hideShowCategories(hiddenDepth, null);
+ }
+ // required
+ getTableManager().refreshNatTable();
+ }
}
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/AbstractNattableWidgetManager.java b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/AbstractNattableWidgetManager.java
index 3f22b693c18..7a3d4e5435e 100755
--- a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/AbstractNattableWidgetManager.java
+++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/AbstractNattableWidgetManager.java
@@ -1,1683 +1,1697 @@
-/*****************************************************************************
- * Copyright (c) 2012, 2014 CEA LIST and others.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- * Christian W. Damus (CEA) - bug 402525
- * Christian W. Damus (CEA) - bug 430880
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.nattable.manager.table;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.common.command.Command;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.edit.ui.dnd.LocalTransfer;
-import org.eclipse.emf.transaction.NotificationFilter;
-import org.eclipse.emf.transaction.ResourceSetChangeEvent;
-import org.eclipse.emf.transaction.ResourceSetListener;
-import org.eclipse.emf.transaction.RollbackException;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.emf.transaction.util.TransactionUtil;
-import org.eclipse.gmf.runtime.common.core.command.CompositeCommand;
-import org.eclipse.gmf.runtime.emf.type.core.commands.SetValueCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
-import org.eclipse.jface.action.GroupMarker;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.action.IContributionItem;
-import org.eclipse.jface.action.MenuManager;
-import org.eclipse.jface.util.LocalSelectionTransfer;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.nebula.widgets.nattable.NatTable;
-import org.eclipse.nebula.widgets.nattable.config.IConfigRegistry;
-import org.eclipse.nebula.widgets.nattable.coordinate.Range;
-import org.eclipse.nebula.widgets.nattable.copy.command.CopyDataToClipboardCommand;
-import org.eclipse.nebula.widgets.nattable.data.IDataProvider;
-import org.eclipse.nebula.widgets.nattable.export.command.ExportCommand;
-//import org.eclipse.nebula.widgets.nattable.filterrow.FilterRowHeaderComposite;
-import org.eclipse.nebula.widgets.nattable.filterrow.IFilterStrategy;
-import org.eclipse.nebula.widgets.nattable.grid.GridRegion;
-import org.eclipse.nebula.widgets.nattable.grid.data.DefaultCornerDataProvider;
-import org.eclipse.nebula.widgets.nattable.grid.layer.CornerLayer;
-import org.eclipse.nebula.widgets.nattable.grid.layer.GridLayer;
-import org.eclipse.nebula.widgets.nattable.layer.DataLayer;
-import org.eclipse.nebula.widgets.nattable.layer.ILayerListener;
-import org.eclipse.nebula.widgets.nattable.layer.LabelStack;
-import org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell;
-import org.eclipse.nebula.widgets.nattable.layer.event.ILayerEvent;
-import org.eclipse.nebula.widgets.nattable.print.command.PrintCommand;
-import org.eclipse.nebula.widgets.nattable.print.command.TurnViewportOffCommand;
-import org.eclipse.nebula.widgets.nattable.print.command.TurnViewportOnCommand;
-import org.eclipse.nebula.widgets.nattable.print.config.DefaultPrintBindings;
-import org.eclipse.nebula.widgets.nattable.reorder.ColumnReorderLayer;
-import org.eclipse.nebula.widgets.nattable.reorder.event.ColumnReorderEvent;
-import org.eclipse.nebula.widgets.nattable.resize.event.ColumnResizeEvent;
-import org.eclipse.nebula.widgets.nattable.resize.event.RowResizeEvent;
-import org.eclipse.nebula.widgets.nattable.selection.SelectionLayer;
-import org.eclipse.nebula.widgets.nattable.selection.command.SelectAllCommand;
-import org.eclipse.nebula.widgets.nattable.selection.command.SelectColumnCommand;
-import org.eclipse.nebula.widgets.nattable.selection.command.SelectRowsCommand;
-import org.eclipse.nebula.widgets.nattable.style.DisplayMode;
-import org.eclipse.nebula.widgets.nattable.ui.binding.UiBindingRegistry;
-import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper;
-import org.eclipse.papyrus.infra.core.services.ServiceException;
-import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
-import org.eclipse.papyrus.infra.emf.utils.ServiceUtilsForEObject;
-import org.eclipse.papyrus.infra.nattable.Activator;
-import org.eclipse.papyrus.infra.nattable.command.CommandIds;
-import org.eclipse.papyrus.infra.nattable.command.UpdateFilterMapCommand;
-import org.eclipse.papyrus.infra.nattable.comparator.ObjectNameAndPathComparator;
-import org.eclipse.papyrus.infra.nattable.configuration.CellEditorAxisConfiguration;
-import org.eclipse.papyrus.infra.nattable.configuration.CornerConfiguration;
-import org.eclipse.papyrus.infra.nattable.configuration.FilterRowAxisConfiguration;
-import org.eclipse.papyrus.infra.nattable.configuration.FilterRowCustomConfiguration;
-import org.eclipse.papyrus.infra.nattable.configuration.PapyrusClickSortConfiguration;
-import org.eclipse.papyrus.infra.nattable.configuration.PapyrusHeaderMenuConfiguration;
-import org.eclipse.papyrus.infra.nattable.dataprovider.AbstractCompositeDataProvider;
-import org.eclipse.papyrus.infra.nattable.dataprovider.BodyDataProvider;
-import org.eclipse.papyrus.infra.nattable.dataprovider.ColumnIndexHeaderDataProvider;
-import org.eclipse.papyrus.infra.nattable.dataprovider.ColumnLabelHeaderDataProvider;
-import org.eclipse.papyrus.infra.nattable.dataprovider.CompositeColumnHeaderDataProvider;
-import org.eclipse.papyrus.infra.nattable.dataprovider.CompositeRowHeaderDataProvider;
-import org.eclipse.papyrus.infra.nattable.display.converter.ObjectNameAndPathDisplayConverter;
-import org.eclipse.papyrus.infra.nattable.filter.configuration.IFilterConfiguration;
-import org.eclipse.papyrus.infra.nattable.layer.FilterRowHeaderComposite;
-import org.eclipse.papyrus.infra.nattable.layer.PapyrusGridLayer;
-import org.eclipse.papyrus.infra.nattable.layerstack.BodyLayerStack;
-import org.eclipse.papyrus.infra.nattable.layerstack.ColumnHeaderLayerStack;
-import org.eclipse.papyrus.infra.nattable.layerstack.RowHeaderLayerStack;
-import org.eclipse.papyrus.infra.nattable.listener.NatTableDropListener;
-import org.eclipse.papyrus.infra.nattable.model.nattable.NattablePackage;
-import org.eclipse.papyrus.infra.nattable.model.nattable.Table;
-import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxis.EObjectAxis;
-import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxis.EStructuralFeatureAxis;
-import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxis.FeatureIdAxis;
-import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxis.IAxis;
-import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxisconfiguration.AbstractHeaderAxisConfiguration;
-import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxisconfiguration.LocalTableHeaderAxisConfiguration;
-import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxisconfiguration.NattableaxisconfigurationPackage;
-import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxisconfiguration.TableHeaderAxisConfiguration;
-import org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.BooleanValueStyle;
-import org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.IntValueStyle;
-import org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.NamedStyle;
-import org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.NattablestyleFactory;
-import org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.NattablestylePackage;
-import org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.StringListValueStyle;
-import org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.StringValueStyle;
-import org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.Style;
-import org.eclipse.papyrus.infra.nattable.provider.PapyrusNatTableToolTipProvider;
-import org.eclipse.papyrus.infra.nattable.provider.TableSelectionProvider;
-import org.eclipse.papyrus.infra.nattable.provider.TableStructuredSelection;
-import org.eclipse.papyrus.infra.nattable.selection.ISelectionExtractor;
-import org.eclipse.papyrus.infra.nattable.sort.ColumnSortModel;
-import org.eclipse.papyrus.infra.nattable.sort.IPapyrusSortModel;
-import org.eclipse.papyrus.infra.nattable.utils.AxisUtils;
-import org.eclipse.papyrus.infra.nattable.utils.DefaultSizeUtils;
-import org.eclipse.papyrus.infra.nattable.utils.HeaderAxisConfigurationManagementUtils;
-import org.eclipse.papyrus.infra.nattable.utils.LocationValue;
-import org.eclipse.papyrus.infra.nattable.utils.NamedStyleConstants;
-import org.eclipse.papyrus.infra.nattable.utils.NattableConfigAttributes;
-import org.eclipse.papyrus.infra.nattable.utils.TableEditingDomainUtils;
-import org.eclipse.papyrus.infra.nattable.utils.TableGridRegion;
-import org.eclipse.papyrus.infra.nattable.utils.TableSelectionWrapper;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.infra.services.labelprovider.service.LabelProviderService;
-import org.eclipse.papyrus.infra.tools.util.EclipseCommandUtils;
-import org.eclipse.papyrus.infra.widgets.util.NavigationTarget;
-import org.eclipse.swt.dnd.DND;
-import org.eclipse.swt.dnd.DropTarget;
-import org.eclipse.swt.dnd.Transfer;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Menu;
-import org.eclipse.ui.IWorkbenchActionConstants;
-import org.eclipse.ui.IWorkbenchPartSite;
-import org.eclipse.ui.commands.ICommandService;
-import org.eclipse.ui.services.IDisposable;
-
-/**
- *
- * This class allows to create, configure and manipulate the NatTable Widget
- *
- */
-public abstract class AbstractNattableWidgetManager implements INattableModelManager, NavigationTarget, IAdaptable {
-
- /**
- * we need to keep it to be able to remove listener (required when we destroy the context of the table)
- *
- * The editing domain to use to edit context element
- */
- protected TransactionalEditingDomain contextEditingDomain;
-
- /**
- * we need to keep it to be able to remove listener (required when we destroy the context of the table)
- *
- * The editing domain to use to edit table elements
- */
- protected TransactionalEditingDomain tableEditingDomain;
-
- /**
- * the managed table
- */
- private Table table;
-
- /**
- * we need to keep it, to be able to remove the listener on it, when the table is destroying
- */
- private EObject tableContext;
-
- /**
- * the nattable widget
- */
- protected NatTable natTable;
-
- /**
- * the grid layer
- */
- private GridLayer gridLayer;
-
- /**
- * the columnHeaderLayerStack
- */
- private ColumnHeaderLayerStack columnHeaderLayerStack;
-
- /**
- * the rowHeaderLayerStack
- */
- private RowHeaderLayerStack rowHeaderLayerStack;
-
- /**
- * @return the rowHeaderLayerStack
- */
- public RowHeaderLayerStack getRowHeaderLayerStack() {
- return rowHeaderLayerStack;
- }
-
- /**
- * the selection provider
- */
- private TableSelectionProvider selectionProvider;
-
- private IFilterStrategy<Object> filterStrategy;
-
- /**
- * the body layer stack
- */
- private BodyLayerStack bodyLayerStack;
-
- private ILayerListener resizeAxisListener;
-
- private ILayerListener resizeRowHeaderListener;
-
- private ILayerListener resizeColumnHeaderListener;
-
- private AbstractCompositeDataProvider columnHeaderDataProvider;
-
- private AbstractCompositeDataProvider rowHeaderDataProvider;
-
- private BodyDataProvider bodyDataProvider;
-
- /**
- * the composite layer providing the filter row in the column header
- */
- private FilterRowHeaderComposite<?> filterColumnHeaderComposite;
-
- /**
- * the sort model used for rows
- */
- private IPapyrusSortModel rowSortModel;
-
- private ISelectionExtractor selectionExtractor;
-
- /**
- * this listener is used to update value in nattable layer
- */
- private ResourceSetListener resourceSetListener;
-
- /**
- * the filter configuration
- */
- private FilterRowAxisConfiguration filterConfiguration;
-
- /**
- * the cell editor axis configuration
- */
- private CellEditorAxisConfiguration cellAxisConfiguration;
-
- /**
- *
- * Constructor.
- *
- * @param table
- * the model of the table
- */
- public AbstractNattableWidgetManager(final Table table, final ISelectionExtractor selectionExtractor) {
- this.table = table;
- this.tableContext = table.getContext();
- this.selectionExtractor = selectionExtractor;
- this.tableEditingDomain = TableEditingDomainUtils.getTableEditingDomain(table);
- this.contextEditingDomain = TableEditingDomainUtils.getTableContextEditingDomain(table);
- }
-
- /**
- * Returns the EditingDomain associated to the table
- *
- * @return
- */
- protected final TransactionalEditingDomain getTableEditingDomain() {
- return this.tableEditingDomain;
- }
-
- /**
- * Returns the EditingDomain associated to the context
- *
- * @return
- */
- protected final TransactionalEditingDomain getContextEditingDomain() {
- return this.contextEditingDomain;
- }
-
- /**
- *
- * @see org.eclipse.papyrus.infra.nattable.manager.table.INattableModelManager#createNattable(org.eclipse.swt.widgets.Composite, int, org.eclipse.ui.IWorkbenchPartSite)
- *
- * @param parent
- * @param style
- * @param site
- * @return
- */
- @Override
- public NatTable createNattable(final Composite parent, final int style, final IWorkbenchPartSite site) {
- this.bodyDataProvider = new BodyDataProvider(this);
-
-
- this.bodyLayerStack = new BodyLayerStack(this.bodyDataProvider, this);
-
- columnHeaderDataProvider = new CompositeColumnHeaderDataProvider(this);
- final IDataProvider indexColumnProvider = new ColumnIndexHeaderDataProvider(this);
- final IDataProvider labelColumnProvider = new ColumnLabelHeaderDataProvider(this);
- columnHeaderDataProvider.addDataProvider(indexColumnProvider);
- columnHeaderDataProvider.addDataProvider(labelColumnProvider);
-
- // this.columnHeaderDataProvider = new ColumnHeaderDataProvider(this);
- // this.columnHeaderDataProvider = new ColumnHeaderDataProvider(this);
- // this.columnHeaderLayerStack = new ColumnHeaderLayerStack(this.columnHeaderDataProvider, this.bodyLayerStack, this.bodyDataProvider, getRowSortModel());
- this.columnHeaderLayerStack = new ColumnHeaderLayerStack(indexColumnProvider, labelColumnProvider, this.bodyLayerStack, getRowSortModel());
-
- this.rowHeaderLayerStack = createRowHeaderLayerStack(this.bodyLayerStack);
- rowHeaderDataProvider = new CompositeRowHeaderDataProvider(this);
- rowHeaderDataProvider.addDataProvider(this.rowHeaderLayerStack.getIndexDataProvider());
- rowHeaderDataProvider.addDataProvider(this.rowHeaderLayerStack.getLabelDataProvider());
-
-
-
- // final IDataProvider cornerDataProvider = new DefaultCornerDataProvider(this.columnHeaderDataProvider, this.rowHeaderDataProvider);
- final IDataProvider cornerDataProvider = new DefaultCornerDataProvider(columnHeaderDataProvider, rowHeaderDataProvider);
-
-
- // create the filter layer, configRegistry can be null for our usecase
- this.filterStrategy = createFilterStrategy();
- this.filterColumnHeaderComposite = new FilterRowHeaderComposite<Object>(this.filterStrategy, columnHeaderLayerStack, columnHeaderDataProvider, this);
-
- // init the filter visibility
- this.filterColumnHeaderComposite.setFilterRowVisible(HeaderAxisConfigurationManagementUtils.getColumnAbstractHeaderAxisConfigurationUsedInTable(this.table).isDisplayFilter());
-
- final CornerLayer cornerLayer = new CornerLayer(new DataLayer(cornerDataProvider), this.rowHeaderLayerStack, filterColumnHeaderComposite);
- cornerLayer.addConfiguration(new CornerConfiguration(this));
-
- this.gridLayer = new PapyrusGridLayer(TransactionUtil.getEditingDomain(tableContext), this.bodyLayerStack, filterColumnHeaderComposite, this.rowHeaderLayerStack, cornerLayer);
- this.gridLayer.addConfiguration(new DefaultPrintBindings());
- this.natTable = new NatTable(parent, this.gridLayer, false);
-
-
- // we register nattable configuration
- this.natTable.addConfiguration(new PapyrusHeaderMenuConfiguration());
- this.natTable.addConfiguration(new PapyrusClickSortConfiguration());
- this.natTable.addConfiguration(new FilterRowCustomConfiguration());
-
-
- // we register some information in the config registry of the nattable widget
- IConfigRegistry configRegistry = this.natTable.getConfigRegistry();
-
- // could be done by config file!
- configRegistry.registerConfigAttribute(NattableConfigAttributes.NATTABLE_MODEL_MANAGER_CONFIG_ATTRIBUTE, AbstractNattableWidgetManager.this, DisplayMode.NORMAL, NattableConfigAttributes.NATTABLE_MODEL_MANAGER_ID);
- configRegistry.registerConfigAttribute(NattableConfigAttributes.LABEL_PROVIDER_SERVICE_CONFIG_ATTRIBUTE, getContextLabelProviderService(), DisplayMode.NORMAL, NattableConfigAttributes.LABEL_PROVIDER_SERVICE_ID);
- // commented because seems generate several bugs with edition
- // newRegistry.registerConfigAttribute( CellConfigAttributes.DISPLAY_CONVERTER, new GenericDisplayConverter(), DisplayMode.NORMAL, GridRegion.BODY);
-
- // configuration used by filter
- ObjectNameAndPathDisplayConverter converter = new ObjectNameAndPathDisplayConverter(getContextLabelProviderService());
- configRegistry.registerConfigAttribute(NattableConfigAttributes.OBJECT_NAME_AND_PATH_DISPLAY_CONVERTER, converter, DisplayMode.NORMAL, NattableConfigAttributes.OBJECT_NAME_AND_PATH_DISPLAY_CONVERTER_ID);
- configRegistry.registerConfigAttribute(NattableConfigAttributes.OBJECT_NAME_AND_PATH_COMPARATOR, new ObjectNameAndPathComparator(converter), DisplayMode.NORMAL, NattableConfigAttributes.OBJECT_NAME_AND_PATH_COMPARATOR_ID);
-
- this.natTable.setConfigRegistry(configRegistry);
- this.natTable.setUiBindingRegistry(new UiBindingRegistry(this.natTable));
- this.natTable.configure();
-
- // we create editors and filter configuration, we can not add it to a layer, because the configuration must be updated after add/move axis and invert axis
- this.filterConfiguration = new FilterRowAxisConfiguration();
- this.cellAxisConfiguration = new CellEditorAxisConfiguration();
- configureFilters();
- configureCellAxisEditor();
-
-
- // initialize the table by checking all its applied styles
- initTableAxis();
- initTableHeaders();
- initTableMerge();
-
- addColumnReorderListener(this.bodyLayerStack.getColumnReorderLayer());
- addAxisResizeListener(this.bodyLayerStack);
- addColumnHeaderResizeListener(this.columnHeaderLayerStack);
- addRowHeaderResizeListener(this.rowHeaderLayerStack);
- addDragAndDropSupport(this.natTable);
-
-
- if (site != null) {
- final MenuManager menuMgr = createMenuManager(this.natTable);
- final Menu menu = menuMgr.createContextMenu(this.natTable);
- this.natTable.setMenu(menu);
-
- this.selectionProvider = new TableSelectionProvider(this, this.bodyLayerStack.getSelectionLayer());
- site.registerContextMenu(menuMgr, this.selectionProvider);
- site.setSelectionProvider(this.selectionProvider);
- }
-
-
- new PapyrusNatTableToolTipProvider(this.natTable, GridRegion.BODY, GridRegion.COLUMN_HEADER, GridRegion.ROW_HEADER);
- initResourceSetListener();
- return this.natTable;
- }
-
-
- /**
- * @return
- * the filter strategy to use
- */
- protected abstract IFilterStrategy<Object> createFilterStrategy();
-
-
- /**
- * TODO : should be refactored with resourceset used in NattableModelManager
- */
- private void initResourceSetListener() {
- // resourceSetListener used to capture table style modification
- // these events can be used to undo/redo previous actions
- resourceSetListener = new ResourceSetListener() {
-
- @Override
- public Command transactionAboutToCommit(ResourceSetChangeEvent event) throws RollbackException {
- return null;
- }
-
- @Override
- public void resourceSetChanged(ResourceSetChangeEvent event) {
-
- for (final Notification notification : event.getNotifications()) {
- // filter the events to only let through the changes on the current table resource
- Table notifiedTable = findTable(notification);
- if (getTable().equals(notifiedTable)) {
-
- Display.getDefault().asyncExec(new Runnable() {
-
- @Override
- public void run() {
-
- Object notifier = notification.getNotifier();
- Object feature = notification.getFeature();
- Object newValue = notification.getNewValue();
- Object oldValue = notification.getOldValue();
- if (notifier instanceof LocalTableHeaderAxisConfiguration) {
- boolean onColumnOnModel = getTable().getLocalColumnHeaderAxisConfiguration() == notifier;
- boolean isInverted = table.isInvertAxis();
-
- if (feature == NattableaxisconfigurationPackage.eINSTANCE.getAbstractHeaderAxisConfiguration_DisplayFilter() && newValue instanceof Boolean) {
- if ((onColumnOnModel && !isInverted) || (!onColumnOnModel && isInverted)) {
- AbstractNattableWidgetManager.this.filterColumnHeaderComposite.setFilterRowVisible(((Boolean) newValue).booleanValue());
- natTable.refresh();
- }
- }
- } else if (notifier instanceof Table && feature == NattablePackage.eINSTANCE.getTable_InvertAxis()) {
- // TODO : replace the listener and its action done in NattableModelManger by this one
- AbstractNattableWidgetManager.this.filterColumnHeaderComposite.setFilterRowVisible(HeaderAxisConfigurationManagementUtils.getColumnAbstractHeaderAxisConfigurationUsedInTable(getTable()).isDisplayFilter());
- natTable.refresh();
- } else if (notifier instanceof IAxis || notifier instanceof StringValueStyle || notifier instanceof StringListValueStyle) {
- boolean refreshFilter = false;
- IAxis axisToRefresh = null;
- if (notifier instanceof IAxis) {
- axisToRefresh = (IAxis) notifier;
- if (oldValue instanceof NamedStyle && IFilterConfiguration.FILTER_VALUE_TO_MATCH.equals(((NamedStyle) oldValue).getName())) {
- // we need to replay the filter
- refreshFilter = true;
- } else if (newValue instanceof NamedStyle && IFilterConfiguration.FILTER_VALUE_TO_MATCH.equals(((NamedStyle) newValue).getName())) {
- refreshFilter = true;
- }
- }
- if ((notifier instanceof StringValueStyle || notifier instanceof StringListValueStyle) && IFilterConfiguration.FILTER_VALUE_TO_MATCH.equals(((NamedStyle) notifier).getName())) {
- EObject container = ((NamedStyle) notifier).eContainer();
- if (container instanceof IAxis) {
- axisToRefresh = (IAxis) container;
- refreshFilter = true;
- }
- }
- if (refreshFilter && axisToRefresh != null) {
- // we need to update the filter map value (manage Undo/Redo for example)
- int index = -1;
- if (table.isInvertAxis() && getRowElementsList().contains(axisToRefresh)) {
- index = getRowElementsList().indexOf(axisToRefresh);
- } else if (!table.isInvertAxis() && getColumnElementsList().contains(axisToRefresh)) {
- index = getColumnElementsList().indexOf(axisToRefresh);
- }
- if (index != -1) {
- filterColumnHeaderComposite.doCommand(new UpdateFilterMapCommand(index));
- }
-
- }
- }
- }
- });
- }
- }
- }
-
- @Override
- public boolean isPrecommitOnly() {
- return false;
- }
-
- @Override
- public boolean isPostcommitOnly() {
- return false;
- }
-
- @Override
- public boolean isAggregatePrecommitListener() {
- return false;
- }
-
- @Override
- public NotificationFilter getFilter() {
- // this filter only lets through the notifications pertaining to the table
- // the first three conditions handle the modification, the add and the remove of styles
- // the last seven handle the modified or created objects containing those styles
- return ((NotificationFilter.createEventTypeFilter(Notification.SET))
- .or(NotificationFilter.createEventTypeFilter(Notification.ADD))
- .or(NotificationFilter.createEventTypeFilter(Notification.REMOVE)))
- .and((NotificationFilter.createNotifierTypeFilter(BooleanValueStyle.class))
- .or(NotificationFilter.createNotifierTypeFilter(IntValueStyle.class))
- .or(NotificationFilter.createNotifierTypeFilter(Style.class))
- .or(NotificationFilter.createNotifierTypeFilter(EObjectAxis.class))
- .or(NotificationFilter.createNotifierTypeFilter(FeatureIdAxis.class))
- .or(NotificationFilter.createNotifierTypeFilter(EStructuralFeatureAxis.class))
- .or(NotificationFilter.createNotifierTypeFilter(LocalTableHeaderAxisConfiguration.class))
- .or(NotificationFilter.createNotifierTypeFilter(Table.class)));
- // return NotificationFilter.createNotifierTypeFilter(EObject.class);
- }
- };
-
- if (this.tableEditingDomain != null) {
- this.tableEditingDomain.addResourceSetListener(resourceSetListener);
- }
- }
-
- /**
- *
- * @param notification
- * @return
- * The nearest table containing the style in order to verify the table's styled event's source
- */
- protected static Table findTable(Notification notification) {
- if (notification.getNotifier() instanceof Table) {
- return (Table) notification.getNotifier();
- } else {
- Object notifier = notification.getNotifier();
- if (notifier instanceof EObject) {
- EObject container = ((EObject) notifier).eContainer();
- while (!(container instanceof Table) && container != null) {
- container = container.eContainer();
- }
- return (Table) container;
- }
- return null;
- }
- }
-
- /**
- *
- * @param bodyLayerStack
- * the body layer stack to use
- *
- * @return
- * the row header layer stack to use
- */
- protected RowHeaderLayerStack createRowHeaderLayerStack(BodyLayerStack bodyLayerStack) {
- return new RowHeaderLayerStack(bodyLayerStack, this);
- }
-
- /**
- * configure the cell editor used in the table
- */
- protected final void configureCellAxisEditor() {
- this.cellAxisConfiguration.configureRegistry(this.natTable.getConfigRegistry());
- }
-
- /**
- * configure the filters
- */
- protected final void configureFilters() {
- this.filterConfiguration.configureRegistry(this.natTable.getConfigRegistry());
- }
-
- /**
- *
- * @return
- * the label provider serviceS
- */
- private LabelProviderService getContextLabelProviderService() {
- try {
- ServicesRegistry serviceRegistry = ServiceUtilsForEObject.getInstance().getServiceRegistry(this.table.getContext());// get context and NOT get table for the usecase where the table is not in a resource
- return serviceRegistry.getService(LabelProviderService.class);
- } catch (ServiceException e) {
- Activator.log.error(e);
- }
- return null;
- }
-
- /**
- *
- * @param natTable
- * @return
- */
- public MenuManager createMenuManager(final NatTable natTable) {
- final MenuManager menuManager = new MenuManager("#PopUp", "org.eclipse.papyrus.infra.nattable.widget.menu") { //$NON-NLS-1$ //$NON-NLS-2$
-
- @Override
- public void add(final IAction action) {
- super.add(action);
- }
-
- @Override
- public void add(final IContributionItem item) {
- super.add(item);
- }
- };
- menuManager.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
-
- menuManager.setRemoveAllWhenShown(true);
- return menuManager;
- }
-
- /**
- * Enable the table to receive dropped elements
- *
- * @param nattable
- * the nattable widget in which we add the drag&drop support
- */
- protected void addDragAndDropSupport(final NatTable nattable) {
- final int operations = DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_DEFAULT;
- final DropTarget target = new DropTarget(nattable, operations);
- final LocalTransfer localTransfer = LocalTransfer.getInstance();
- final LocalSelectionTransfer localSelectionTransfer = LocalSelectionTransfer.getTransfer();
- final Transfer[] types = new Transfer[] { localSelectionTransfer, localTransfer };
- target.setTransfer(types);
- final NatTableDropListener dropListener = createDropListener();
- target.addDropListener(dropListener);
- }
-
- protected NatTableDropListener createDropListener() {
- return new NatTableDropListener(this, this.selectionExtractor);
- }
-
- /**
- * Add a listener on the column reorder layer in order to update the model
- *
- * @param columnReorderLayer
- * the column reorder layer
- */
- private void addColumnReorderListener(final ColumnReorderLayer columnReorderLayer) {
- columnReorderLayer.addLayerListener(new ILayerListener() {
-
-
- @Override
- public void handleLayerEvent(final ILayerEvent event) {
- if (event instanceof ColumnReorderEvent) {
- ColumnReorderEvent columnReorderEvent = (ColumnReorderEvent) event;
- int start = -1;
- int end = columnReorderEvent.getBeforeToColumnPosition();
- for (Range range : columnReorderEvent.getBeforeFromColumnPositionRanges()) {
- start = range.start;
- break;
- }
-
- if (start != -1) {
- final List<IAxis> allAxis = AbstractNattableWidgetManager.this.getColumnAxisManager().getRepresentedContentProvider().getAxis();
-
- // This solve an index difference between moving
- // a column from right to left and moving a
- // column from left to right
- if (start >= 0 && start < end && columnReorderEvent.isReorderToLeftEdge()) {
- end--;
- }
-
- final IAxis axisToMove = allAxis.get(start);
- if (axisToMove != null) {
- moveColumnElement(axisToMove, end);
- }
- }
- }
- }
- });
- }
-
- /**
- * Add a listener on the body itself in order to update the model
- *
- * @param bodyLayerStack
- * the table's body layer
- */
- private void addAxisResizeListener(final BodyLayerStack bodyLayerStack) {
- resizeAxisListener = new ILayerListener() {
-
- @Override
- public void handleLayerEvent(ILayerEvent event) {
- // both events are considered as a body change and therefore we need to check each possibility
- if (event instanceof ColumnResizeEvent || event instanceof RowResizeEvent) {
- final CompositeCommand resizeCommand = new CompositeCommand("resize IAxis' width or height"); //$NON-NLS-1$
- TransactionalEditingDomain tableDomain = TableEditingDomainUtils.getTableEditingDomain(table);
- if (tableDomain == null) {
- return;
- }
-
- if (event instanceof ColumnResizeEvent) {
- // get the index of the first column modified by the user
- // the assumption is that the user changes only one column at a time in order to resize to its liking
- int resizedColumnPosition = getRangeStart(event);
- // get the resized value from this column
- int newColumnSize = columnHeaderLayerStack.getColumnWidthByPosition(resizedColumnPosition);
- // get the associated object
- Object currentColumnObject = getColumnElement(resizedColumnPosition); // INattableModelManager -> ITableAxisElementProvider.getColumnElement
- if (currentColumnObject instanceof IAxis) {
- // the object is now the Axis in which the style will be applied
- IAxis currentColumnIAxis = (IAxis) currentColumnObject;
- if (currentColumnIAxis.eContainer() != null) {
- IntValueStyle value = (IntValueStyle) currentColumnIAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.AXIS_WIDTH);
- if (value != null && value.getIntValue() != newColumnSize) {
- // Constructs a new request to set the value of a structural feature in a model element
- SetRequest resizeColumnRequest = new SetRequest(tableDomain, value, NattablestylePackage.eINSTANCE.getIntValueStyle_IntValue(), newColumnSize);
- // initialize the feature value if none before and replace the value if another existed prior to the resize
- SetValueCommand resizeColumnCommand = new SetValueCommand(resizeColumnRequest);
- resizeCommand.add(resizeColumnCommand);
-
- } else if (value == null && newColumnSize != DefaultSizeUtils.getDefaultCellWidth()) {
- // the element does not have any predefined width value attached to its resource so we create it
- value = NattablestyleFactory.eINSTANCE.createIntValueStyle();
- value.setIntValue(newColumnSize);
- value.setName(NamedStyleConstants.AXIS_WIDTH);
- SetRequest initColumnSizeRequest = new SetRequest(tableDomain, currentColumnIAxis, NattablestylePackage.eINSTANCE.getStyledElement_Styles(), value);
- SetValueCommand resizeColumnCommand = new SetValueCommand(initColumnSizeRequest);
- resizeCommand.add(resizeColumnCommand);
-
- }
- }
- }
-
- }
-
- // the process is the same for this event
- else if (event instanceof RowResizeEvent) {
- int resizedRowPosition = getRangeStart(event);
- int newRowSize = rowHeaderLayerStack.getRowHeightByPosition(resizedRowPosition);
- Object currentRowObject = getRowElement(resizedRowPosition);
- if (currentRowObject instanceof IAxis) {
- IAxis currentRowIAxis = (IAxis) currentRowObject;
- if (currentRowIAxis.eContainer() != null) {
- IntValueStyle value = (IntValueStyle) currentRowIAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.AXIS_HEIGHT);
- if (value != null && value.getIntValue() != newRowSize) {
- SetRequest resizeRowRequest = new SetRequest(tableDomain, value, NattablestylePackage.eINSTANCE.getIntValueStyle_IntValue(), newRowSize);
- SetValueCommand resizeRowCommand = new SetValueCommand(resizeRowRequest);
- resizeCommand.add(resizeRowCommand);
-
- } else if (value == null && newRowSize != DefaultSizeUtils.getDefaultCellHeight()) {
- value = NattablestyleFactory.eINSTANCE.createIntValueStyle();
- value.setIntValue(newRowSize);
- value.setName(NamedStyleConstants.AXIS_HEIGHT);
- SetRequest initRowSizeRequest = new SetRequest(tableDomain, currentRowIAxis, NattablestylePackage.eINSTANCE.getStyledElement_Styles(), value);
- SetValueCommand resizeRowCommand = new SetValueCommand(initRowSizeRequest);
- resizeCommand.add(resizeRowCommand);
-
- }
- }
- }
- }
- if (!resizeCommand.isEmpty()) {
- tableDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(resizeCommand));
- }
-
- }
- }
- };
-
- bodyLayerStack.addLayerListener(resizeAxisListener);
-
- }
-
-
- /**
- * This method is used to get the position of the row or column being modified
- *
- * @param event
- * @return
- */
- private int getRangeStart(ILayerEvent event) {
- int start = -1;
- if (event instanceof ColumnResizeEvent) {
- ColumnResizeEvent resizeEvent = (ColumnResizeEvent) event;
- // only one element is handled at a time so the start value won't be overwritten
- for (Range current : resizeEvent.getColumnPositionRanges()) {
- start = current.start;
- }
- }
- if (event instanceof RowResizeEvent) {
- RowResizeEvent resizeEvent = (RowResizeEvent) event;
- for (Range current : resizeEvent.getRowPositionRanges()) {
- start = current.start;
- }
- }
- return start;
- }
-
-
- /**
- * Add a listener to the column's header layer in order to update the model
- *
- * @param columnHeaderLayerStack
- */
- private void addColumnHeaderResizeListener(final ColumnHeaderLayerStack columnHeaderLayerStack) {
- resizeColumnHeaderListener = new ILayerListener() {
-
- @Override
- public void handleLayerEvent(ILayerEvent event) {
- if (event instanceof RowResizeEvent) {
- // get the new values from the index and label headers
- int newHeaderIndexHeight = columnHeaderLayerStack.getColumnIndexDataLayer().getRowHeightByPosition(0);
- int newHeaderLabelHeight = columnHeaderLayerStack.getColumnLabelDataLayer().getRowHeightByPosition(0);
- // get the position of the header being modified
- int resizedHeaderPosition = getRangeStart(event);
-
- // verify that the event is handled properly
- if (resizedHeaderPosition != -1) {
- final CompositeCommand resizeColumnHeaderCommand = new CompositeCommand("resize ColumnHeader's height"); //$NON-NLS-1$
- TransactionalEditingDomain tableDomain = TableEditingDomainUtils.getTableEditingDomain(table);
- // create a blank variable as its contents can change if the table is inverted or not
- LocalTableHeaderAxisConfiguration localColumnHeaderAxis = null;
-
- if (!getTable().isInvertAxis()) {
- if (getTable().getLocalColumnHeaderAxisConfiguration() != null) {
- localColumnHeaderAxis = getTable().getLocalColumnHeaderAxisConfiguration();
- } else if (newHeaderIndexHeight != DefaultSizeUtils.getDefaultCellHeight() || newHeaderLabelHeight != DefaultSizeUtils.getDefaultCellHeight()) {
- TableHeaderAxisConfiguration columnHeaderAxis;
- // create the blank feature that will host the new local header
- EStructuralFeature localHeaderFeature = null;
- columnHeaderAxis = getTable().getTableConfiguration().getColumnHeaderAxisConfiguration();
- localColumnHeaderAxis = HeaderAxisConfigurationManagementUtils.transformToLocalHeaderConfiguration(columnHeaderAxis);
- localHeaderFeature = NattablePackage.eINSTANCE.getTable_LocalColumnHeaderAxisConfiguration();
-
- // commands used to modify the notation file and create the new local header
- IEditCommandRequest initLocalColumnHeaderAxis = new SetRequest(tableDomain, table, localHeaderFeature, localColumnHeaderAxis);
- IElementEditService localColumnHeaderAxisProvider = ElementEditServiceUtils.getCommandProvider(table);
- resizeColumnHeaderCommand.add(localColumnHeaderAxisProvider.getEditCommand(initLocalColumnHeaderAxis));
- }
-
- } else {
- if (getTable().getLocalRowHeaderAxisConfiguration() != null) {
- // as the axis are inverted the row headers are now the column headers
- localColumnHeaderAxis = getTable().getLocalRowHeaderAxisConfiguration();
- } else if (newHeaderIndexHeight != DefaultSizeUtils.getDefaultCellHeight() || newHeaderLabelHeight != DefaultSizeUtils.getDefaultCellHeight()) {
- // the behavior is now the same as usual
- TableHeaderAxisConfiguration columnHeaderAxis;
- EStructuralFeature localHeaderFeature = null;
- columnHeaderAxis = getTable().getTableConfiguration().getRowHeaderAxisConfiguration();
- localColumnHeaderAxis = HeaderAxisConfigurationManagementUtils.transformToLocalHeaderConfiguration(columnHeaderAxis);
- localHeaderFeature = NattablePackage.eINSTANCE.getTable_LocalRowHeaderAxisConfiguration();
-
- IEditCommandRequest initLocalColumnHeaderAxis = new SetRequest(tableDomain, table, localHeaderFeature, localColumnHeaderAxis);
- IElementEditService localColumnHeaderAxisProvider = ElementEditServiceUtils.getCommandProvider(table);
- resizeColumnHeaderCommand.add(localColumnHeaderAxisProvider.getEditCommand(initLocalColumnHeaderAxis));
- }
-
- }
-
-
- // manipulate the index layer and as the variables are now fixed this part is common to both the inverted and not inverted case
- if (resizedHeaderPosition == 0 && localColumnHeaderAxis != null) {
- IntValueStyle valueIndex = (IntValueStyle) localColumnHeaderAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.COLUMN_INDEX_HEIGHT);
- if (valueIndex != null && valueIndex.getIntValue() != newHeaderIndexHeight) {
- // the variable to be edited already exists
- SetRequest resizeRowHeaderIndex = new SetRequest(tableDomain, valueIndex, NattablestylePackage.eINSTANCE.getIntValueStyle_IntValue(), newHeaderIndexHeight);
- SetValueCommand resizeColumnHeaderIndexCommand = new SetValueCommand(resizeRowHeaderIndex);
- resizeColumnHeaderCommand.add(resizeColumnHeaderIndexCommand);
- } else if (valueIndex == null && newHeaderIndexHeight != DefaultSizeUtils.getDefaultCellHeight()) {
- // if the variable does not exist, it is created
- valueIndex = NattablestyleFactory.eINSTANCE.createIntValueStyle();
- valueIndex.setIntValue(newHeaderIndexHeight);
- valueIndex.setName(NamedStyleConstants.COLUMN_INDEX_HEIGHT);
-
- SetRequest initRowHeaderIndexSizeRequest = new SetRequest(tableDomain, localColumnHeaderAxis, NattablestylePackage.eINSTANCE.getStyledElement_Styles(), valueIndex);
- SetValueCommand resizeColumnHeaderIndexCommand = new SetValueCommand(initRowHeaderIndexSizeRequest);
- resizeColumnHeaderCommand.add(resizeColumnHeaderIndexCommand);
- }
- }
-
- // manipulate the label layer and as the variables are now fixed this part is common to both the inverted and not inverted case
- if (resizedHeaderPosition == 1 && localColumnHeaderAxis != null) {
- IntValueStyle valueLabel = (IntValueStyle) localColumnHeaderAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.COLUMN_LABEL_HEIGHT);
- if (valueLabel != null && valueLabel.getIntValue() != newHeaderLabelHeight) {
- // the variable to be edited already exists
- SetRequest resizeRowHeaderLabel = new SetRequest(tableDomain, valueLabel, NattablestylePackage.eINSTANCE.getIntValueStyle_IntValue(), newHeaderLabelHeight);
- SetValueCommand resizeRowHeaderLabelCommand = new SetValueCommand(resizeRowHeaderLabel);
- resizeColumnHeaderCommand.add(resizeRowHeaderLabelCommand);
- } else if (valueLabel == null && newHeaderLabelHeight != DefaultSizeUtils.getDefaultCellHeight()) {
- // if the variable does not exist, it is created
- valueLabel = NattablestyleFactory.eINSTANCE.createIntValueStyle();
- valueLabel.setIntValue(newHeaderLabelHeight);
- valueLabel.setName(NamedStyleConstants.COLUMN_LABEL_HEIGHT);
-
- SetRequest initRowHeaderLabelSizeRequest = new SetRequest(tableDomain, localColumnHeaderAxis, NattablestylePackage.eINSTANCE.getStyledElement_Styles(), valueLabel);
- SetValueCommand resizeRowHeaderLabelCommand = new SetValueCommand(initRowHeaderLabelSizeRequest);
- resizeColumnHeaderCommand.add(resizeRowHeaderLabelCommand);
- }
- }
-
- // all the commands are executed and the variables and their local headers are created or updated
- if (resizeColumnHeaderCommand.canExecute() && !resizeColumnHeaderCommand.isEmpty()) {
- tableDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(resizeColumnHeaderCommand));
- }
- }
- }
- }
- };
-
- columnHeaderLayerStack.addLayerListener(resizeColumnHeaderListener);
-
- }
-
-
- /**
- * Add a listener to the row's header layer in order to update the model
- *
- * @param rowHeaderLayerStack
- */
- private void addRowHeaderResizeListener(final RowHeaderLayerStack rowHeaderLayerStack) {
- resizeRowHeaderListener = new ILayerListener() {
-
- // the behavior of this method is exactly the same as the one before
- @Override
- public void handleLayerEvent(ILayerEvent event) {
- if (event instanceof ColumnResizeEvent) {
- int newHeaderIndexWidth = rowHeaderLayerStack.getRowIndexDataLayer().getColumnWidthByPosition(0);
- int newHeaderLabelWidth = rowHeaderLayerStack.getRowLabelDataLayer().getColumnWidthByPosition(0);
- int resizedHeaderPosition = getRangeStart(event);
-
- if (resizedHeaderPosition != -1) {
- final CompositeCommand resizeRowHeaderCommand = new CompositeCommand("resize RowHeader's width"); //$NON-NLS-1$
- TransactionalEditingDomain tableDomain = TableEditingDomainUtils.getTableEditingDomain(table);
- if (tableDomain == null) {
- return;
- }
- LocalTableHeaderAxisConfiguration localRowHeaderAxis = null;
-
-
- if (!getTable().isInvertAxis()) {
- if (getTable().getLocalRowHeaderAxisConfiguration() != null) {
- localRowHeaderAxis = getTable().getLocalRowHeaderAxisConfiguration();
- } else if (newHeaderIndexWidth != DefaultSizeUtils.getDefaultRowHeaderWidth() || newHeaderLabelWidth != DefaultSizeUtils.getDefaultRowHeaderWidth()) {
- TableHeaderAxisConfiguration rowHeaderAxis;
- EStructuralFeature localHeaderFeature = null;
- rowHeaderAxis = getTable().getTableConfiguration().getRowHeaderAxisConfiguration();
- localRowHeaderAxis = HeaderAxisConfigurationManagementUtils.transformToLocalHeaderConfiguration(rowHeaderAxis);
- localHeaderFeature = NattablePackage.eINSTANCE.getTable_LocalRowHeaderAxisConfiguration();
-
- IEditCommandRequest initLocalRowHeaderAxis = new SetRequest(tableDomain, table, localHeaderFeature, localRowHeaderAxis);
- IElementEditService localRowHeaderAxisProvider = ElementEditServiceUtils.getCommandProvider(table);
- resizeRowHeaderCommand.add(localRowHeaderAxisProvider.getEditCommand(initLocalRowHeaderAxis));
- }
-
- } else {
- if (getTable().getLocalColumnHeaderAxisConfiguration() != null) {
- localRowHeaderAxis = getTable().getLocalColumnHeaderAxisConfiguration();
- } else if (newHeaderIndexWidth != DefaultSizeUtils.getDefaultRowHeaderWidth() || newHeaderLabelWidth != DefaultSizeUtils.getDefaultRowHeaderWidth()) {
- TableHeaderAxisConfiguration rowHeaderAxis;
- EStructuralFeature localHeaderFeature = null;
- rowHeaderAxis = getTable().getTableConfiguration().getColumnHeaderAxisConfiguration();
- localRowHeaderAxis = HeaderAxisConfigurationManagementUtils.transformToLocalHeaderConfiguration(rowHeaderAxis);
- localHeaderFeature = NattablePackage.eINSTANCE.getTable_LocalColumnHeaderAxisConfiguration();
-
- IEditCommandRequest initLocalRowHeaderAxis = new SetRequest(tableDomain, table, localHeaderFeature, localRowHeaderAxis);
- IElementEditService localRowHeaderAxisProvider = ElementEditServiceUtils.getCommandProvider(table);
- resizeRowHeaderCommand.add(localRowHeaderAxisProvider.getEditCommand(initLocalRowHeaderAxis));
- }
-
- }
-
- if (resizedHeaderPosition == 0 && localRowHeaderAxis != null) {
- IntValueStyle valueIndex = (IntValueStyle) localRowHeaderAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.ROW_INDEX_WIDTH);
- if (valueIndex != null && valueIndex.getIntValue() != newHeaderIndexWidth) {
- SetRequest resizeRowHeaderIndex = new SetRequest(tableDomain, valueIndex, NattablestylePackage.eINSTANCE.getIntValueStyle_IntValue(), newHeaderIndexWidth);
- SetValueCommand resizeRowHeaderIndexCommand = new SetValueCommand(resizeRowHeaderIndex);
- resizeRowHeaderCommand.add(resizeRowHeaderIndexCommand);
- } else if (valueIndex == null && newHeaderIndexWidth != DefaultSizeUtils.getDefaultRowHeaderWidth()) {
- valueIndex = NattablestyleFactory.eINSTANCE.createIntValueStyle();
- valueIndex.setIntValue(newHeaderIndexWidth);
- valueIndex.setName(NamedStyleConstants.ROW_INDEX_WIDTH);
-
- SetRequest initRowHeaderIndexSizeRequest = new SetRequest(tableDomain, localRowHeaderAxis, NattablestylePackage.eINSTANCE.getStyledElement_Styles(), valueIndex);
- SetValueCommand resizeRowHeaderIndexCommand = new SetValueCommand(initRowHeaderIndexSizeRequest);
- resizeRowHeaderCommand.add(resizeRowHeaderIndexCommand);
- }
- }
-
- if (resizedHeaderPosition == 1 && localRowHeaderAxis != null) {
- IntValueStyle valueLabel = (IntValueStyle) localRowHeaderAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.ROW_LABEL_WIDTH);
- if (valueLabel != null && valueLabel.getIntValue() != newHeaderLabelWidth) {
- SetRequest resizeRowHeaderLabel = new SetRequest(tableDomain, valueLabel, NattablestylePackage.eINSTANCE.getIntValueStyle_IntValue(), newHeaderLabelWidth);
- SetValueCommand resizeRowHeaderLabelCommand = new SetValueCommand(resizeRowHeaderLabel);
- resizeRowHeaderCommand.add(resizeRowHeaderLabelCommand);
- } else if (valueLabel == null && newHeaderLabelWidth != DefaultSizeUtils.getDefaultRowHeaderWidth()) {
- valueLabel = NattablestyleFactory.eINSTANCE.createIntValueStyle();
- valueLabel.setIntValue(newHeaderLabelWidth);
- valueLabel.setName(NamedStyleConstants.ROW_LABEL_WIDTH);
-
- SetRequest initRowHeaderLabelSizeRequest = new SetRequest(tableDomain, localRowHeaderAxis, NattablestylePackage.eINSTANCE.getStyledElement_Styles(), valueLabel);
- SetValueCommand resizeRowHeaderLabelCommand = new SetValueCommand(initRowHeaderLabelSizeRequest);
- resizeRowHeaderCommand.add(resizeRowHeaderLabelCommand);
- }
- }
-
-
- if (resizeRowHeaderCommand.canExecute() && !resizeRowHeaderCommand.isEmpty()) {
- tableDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(resizeRowHeaderCommand));
- }
- }
- }
- }
- };
-
- rowHeaderLayerStack.addLayerListener(resizeRowHeaderListener);
-
- }
-
- /**
- *
- * @param event
- * an event
- * @return
- * a LocationValue for the point, which contains informations about this location (TableGridRegion, row and column index, row and column
- * elements, the cell, the point and its translation).
- * Some of these values can be <code>null</code> or not depending of the region of the table
- */
- @Override
- public LocationValue getLocationInTheTable(final Point absolutePoint) {
- final Point widgetPoint = this.natTable.toControl(absolutePoint.x, absolutePoint.y);
- TableGridRegion kind = TableGridRegion.UNKNOWN;
- int columnPosition = this.natTable.getColumnPositionByX(widgetPoint.x);
- int columnIndex = this.natTable.getColumnIndexByPosition(columnPosition);
- int rowPosition = this.natTable.getRowPositionByY(widgetPoint.y);
- int rowIndex = this.natTable.getRowIndexByPosition(rowPosition);
- final ILayerCell cell = this.natTable.getCellByPosition(columnPosition, rowPosition);
- Object columnObject = null;
- Object rowObject = null;
- if (rowIndex == -1 && columnIndex == -1) {
- kind = TableGridRegion.UNKNOWN;
- } else if (rowIndex == -1) {
- kind = TableGridRegion.AFTER_ROW_HEADER;
- } else if (columnIndex == -1) {
- kind = TableGridRegion.AFTER_COLUMN_HEADER;
- } else {
- if (cell != null) {
- LabelStack label = cell.getConfigLabels();
- if (label.hasLabel(GridRegion.ROW_HEADER)) {
- kind = TableGridRegion.ROW_HEADER;
-
- } else if (label.hasLabel(GridRegion.COLUMN_HEADER)) {
- kind = TableGridRegion.COLUMN_HEADER;
-
- } else if (label.hasLabel(GridRegion.CORNER)) {
- kind = TableGridRegion.CORNER;
- } else if (label.hasLabel(GridRegion.BODY)) {
- kind = TableGridRegion.CELL;
- columnObject = getColumnElement(columnIndex);
- rowObject = getRowElement(rowIndex);
- }
- }
- }
- return new LocationValue(absolutePoint, widgetPoint, kind, cell, columnIndex, rowIndex, columnObject, rowObject);
- }
-
-
- public GridLayer getGridLayer() {
- return this.gridLayer;
- }
-
- /**
- *
- * @see org.eclipse.papyrus.infra.nattable.manager.table.INattableModelManager#print()
- *
- */
- @Override
- public void print() {
- this.natTable.doCommand(new TurnViewportOffCommand());
- this.natTable.doCommand(new PrintCommand(this.natTable.getConfigRegistry(), this.natTable.getShell()));
- this.natTable.doCommand(new TurnViewportOnCommand());
- }
-
- /**
- *
- * @see org.eclipse.papyrus.infra.nattable.manager.table.INattableModelManager#selectAll()
- *
- */
- @Override
- public void selectAll() {
- this.natTable.doCommand(new SelectAllCommand());
- }
-
- /**
- *
- * @see org.eclipse.papyrus.infra.nattable.manager.table.INattableModelManager#exportToXLS()
- *
- */
- @Override
- public void exportToXLS() {
- this.natTable.doCommand(new ExportCommand(this.natTable.getConfigRegistry(), this.natTable.getShell()));
- }
-
- public void copyToClipboard() {
- this.natTable.doCommand(new CopyDataToClipboardCommand("\t", System.getProperty("line.separator"), this.natTable.getConfigRegistry())); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- *
- * @see org.eclipse.papyrus.infra.nattable.manager.table.INattableModelManager#getBodyLayerStack()
- *
- * @return
- */
- @Override
- public BodyLayerStack getBodyLayerStack() {
- return this.bodyLayerStack;
- }
-
- @Override
- public void dispose() {
- if (this.bodyDataProvider != null) {
- this.bodyLayerStack.removeLayerListener(resizeAxisListener);
- this.bodyDataProvider.dispose();
- }
- if (this.rowHeaderDataProvider != null) {
- this.rowHeaderLayerStack.removeLayerListener(resizeRowHeaderListener);
- this.rowHeaderDataProvider.dispose();
- }
- if (this.columnHeaderDataProvider != null) {
- this.columnHeaderLayerStack.removeLayerListener(resizeColumnHeaderListener);
- this.columnHeaderDataProvider.dispose();
- }
-
-
- if (this.tableEditingDomain != null && this.resourceSetListener != null) {
- this.tableEditingDomain.removeResourceSetListener(this.resourceSetListener);
- }
- if (this.filterStrategy instanceof IDisposable) {
- ((IDisposable) this.filterStrategy).dispose();
- }
- this.tableEditingDomain = null;
- this.contextEditingDomain = null;
- this.tableContext = null;
- }
-
- public EObject getTableContext() {
- return this.tableContext;
- }
-
- @Override
- public Table getTable() {
- return this.table;
- }
-
- /**
- *
- * @return
- * the created sort model to use for
- */
- protected IPapyrusSortModel getRowSortModel() {
- if (this.rowSortModel == null) {
- this.rowSortModel = new ColumnSortModel(this);
- }
- return this.rowSortModel;
- }
-
- /**
- *
- * Handles the selections from the model explorer to the table when the link is activated
- *
- * @see org.eclipse.papyrus.infra.nattable.utils.AxisUtils
- * @see org.eclipse.nebula.widgets.nattable.selection.SelectionLayer
- *
- * @param elementList
- */
- @Override
- public boolean revealElement(Object element) {
-
- return revealElement(Collections.singleton(element));
- }
-
- @Override
- public boolean revealElement(Collection<?> elements) {
-
- boolean selectObject = false;
- SelectionLayer selectionLayer = bodyLayerStack.getSelectionLayer();
- List<Object> rowObjects = getRowElementsList();
- List<Object> columnObjects = getColumnElementsList();
-
- // clear the selectionLayer to avoid the previous selections to mess with the current
- selectionLayer.clear();
-
- for (int rowIndex = 0; rowIndex < rowObjects.size(); rowIndex++) {
- List<?> toFind = new ArrayList<Object>(elements);
- Object currentAxisObject = rowObjects.get(rowIndex);
- Object currentRealObject = AxisUtils.getRepresentedElement(currentAxisObject);
- if (toFind.contains(currentRealObject)) {
- selectionLayer.doCommand(new SelectRowsCommand(selectionLayer, 0, rowIndex, false, true));
- // we remove the found object from the cloned elementList as they are already selected
- toFind.remove(currentRealObject);
- selectObject = true;
- }
- if (toFind.isEmpty()) {
- // all objects are selected
- return selectObject;
- }
- }
-
- for (int columnIndex = 0; columnIndex < columnObjects.size(); columnIndex++) {
- List<?> toFind = new ArrayList<Object>(elements);
- Object currentAxisObject = columnObjects.get(columnIndex);
- Object currentRealObject = AxisUtils.getRepresentedElement(currentAxisObject);
- if (toFind.contains(currentRealObject)) {
- selectionLayer.doCommand(new SelectColumnCommand(selectionLayer, columnIndex, 0, false, true));
- // we remove the found object from the cloned elementList as they are already selected
- toFind.remove(currentRealObject);
- selectObject = true;
- }
- if (toFind.isEmpty()) {
- // all objects are selected
- return selectObject;
- }
- }
-
- return selectObject;
- }
-
-
- /**
- *
- * Handles the initialization of the table's body resize styles, on opening, based on the previous changes made by the user.
- *
- */
- protected void initTableAxis() {
- DataLayer tableBodyLayer = getBodyLayerStack().getBodyDataLayer();
- // notation lists represent the elements that are instantiated in their table instance inside the model.notation file
- List<IAxis> notationColumnsAxisList = getTable().getCurrentColumnAxisProvider().getAxis();
- List<IAxis> notationRowsAxisList = getTable().getCurrentRowAxisProvider().getAxis();
- // actual number of displayed elements when looking at the table editor
- int actualColumnAxisElements = getTableAxisElementProvider().getColumnElementsList().size();
- int actualRowAxisElements = getTableAxisElementProvider().getRowElementsList().size();
- // value, width or height, of the resized column or row
- IntValueStyle value = null;
-
- // we go through all the elements to find those which have been modified
- for (int index = 0; index < notationColumnsAxisList.size(); index++) {
- IAxis currentColumnAxis = notationColumnsAxisList.get(index);
- // we need both to detect and use the correct value, width or height, of the handled element as the user could have modified the table when the axis was inverted
- if (!getTable().isInvertAxis()) {
- int axisWidth = tableBodyLayer.getColumnWidthByPosition(index);
- value = (IntValueStyle) currentColumnAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.AXIS_WIDTH);
- if (value != null) {
- // we set the size of the axis in the graphical representation
- tableBodyLayer.setColumnWidthByPosition(index, value.getIntValue());
- } else if (axisWidth != DefaultSizeUtils.getDefaultCellWidth()) {
- // resets the size in case of an undo to the default table
- tableBodyLayer.setColumnWidthByPosition(index, DefaultSizeUtils.getDefaultCellWidth());
- }
- } else {
- int axisHeight = tableBodyLayer.getRowHeightByPosition(index);
- value = (IntValueStyle) currentColumnAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.AXIS_HEIGHT);
- if (value != null) {
- tableBodyLayer.setRowHeightByPosition(index, value.getIntValue());
- } else if (axisHeight != DefaultSizeUtils.getDefaultCellHeight()) {
- tableBodyLayer.setRowHeightByPosition(index, DefaultSizeUtils.getDefaultCellHeight());
- }
- }
- }
-
- for (int index = 0; index < notationRowsAxisList.size(); index++) {
- IAxis currentRowAxis = notationRowsAxisList.get(index);
- if (!getTable().isInvertAxis()) {
- int axisHeight = tableBodyLayer.getRowHeightByPosition(index);
- value = (IntValueStyle) currentRowAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.AXIS_HEIGHT);
- if (value != null) {
- tableBodyLayer.setRowHeightByPosition(index, value.getIntValue());
- } else if (axisHeight != DefaultSizeUtils.getDefaultCellHeight()) {
- tableBodyLayer.setRowHeightByPosition(index, DefaultSizeUtils.getDefaultCellHeight());
- }
- } else {
- int axisWidth = tableBodyLayer.getColumnWidthByPosition(index);
- value = (IntValueStyle) currentRowAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.AXIS_WIDTH);
- if (value != null) {
- tableBodyLayer.setColumnWidthByPosition(index, value.getIntValue());
- } else if (axisWidth != DefaultSizeUtils.getDefaultCellWidth()) {
- tableBodyLayer.setColumnWidthByPosition(index, DefaultSizeUtils.getDefaultCellWidth());
- }
- }
- }
-
- // this method is used to resize by default. In the actual state, only the rows, representing the table's core elements, are missing from the notation file
- if (notationRowsAxisList.size() == 0) {
- if (getTable().isInvertAxis()) {
- for (int index = 0; index < actualColumnAxisElements; index++) {
- tableBodyLayer.setColumnWidthByPosition(index, DefaultSizeUtils.getDefaultCellWidth());
- }
-
- } else if (!getTable().isInvertAxis()) {
- for (int index = 0; index < actualRowAxisElements; index++) {
- tableBodyLayer.setRowHeightByPosition(index, DefaultSizeUtils.getDefaultCellHeight());
- }
-
- }
- }
-
- }
-
-
- /**
- *
- * Handles the initialization of the table's headers resize styles, on opening, based on the previous changes made by the user.
- *
- */
- protected void initTableHeaders() {
- DataLayer tableRowIndexHeaderLayer = rowHeaderLayerStack.getRowIndexDataLayer();
- DataLayer tableRowLabelHeaderLayer = rowHeaderLayerStack.getRowLabelDataLayer();
- DataLayer tableColumnIndexHeaderLayer = columnHeaderLayerStack.getColumnIndexDataLayer();
- DataLayer tableColumnLabelHeaderLayer = columnHeaderLayerStack.getColumnLabelDataLayer();
- AbstractHeaderAxisConfiguration rowHeader = HeaderAxisConfigurationManagementUtils.getRowAbstractHeaderAxisConfigurationUsedInTable(getTable());
- AbstractHeaderAxisConfiguration columnHeader = HeaderAxisConfigurationManagementUtils.getColumnAbstractHeaderAxisConfigurationUsedInTable(getTable());
-
- // handles the initialization for the column headers,
- // check if the the user saved the table with an inverted axis or not as it would change the type of style required for resize,
- // it is important to note that AbstractHeaderAxisConfigurationUsedInTable already handles the invertAxis parameter to return the correct Axis (column/row)
- IntValueStyle valueColumnIndex = (IntValueStyle) columnHeader.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.COLUMN_INDEX_HEIGHT);
- // check if the user has previously entered a value for it, if not resets to the default
- if (valueColumnIndex != null) {
- tableColumnIndexHeaderLayer.setRowHeightByPosition(0, valueColumnIndex.getIntValue());
- } else {
- tableColumnIndexHeaderLayer.setRowHeightByPosition(0, DefaultSizeUtils.getDefaultCellHeight());
- }
-
- // same here
- IntValueStyle valueColumnLabel = (IntValueStyle) columnHeader.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.COLUMN_LABEL_HEIGHT);
- if (valueColumnLabel != null) {
- tableColumnLabelHeaderLayer.setRowHeightByPosition(0, valueColumnLabel.getIntValue());
- } else {
- tableColumnLabelHeaderLayer.setRowHeightByPosition(0, DefaultSizeUtils.getDefaultCellHeight());
- }
-
- // same behavior but with the row headers
- IntValueStyle valueRowIndex = (IntValueStyle) rowHeader.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.ROW_INDEX_WIDTH);
- if (valueRowIndex != null) {
- tableRowIndexHeaderLayer.setColumnWidthByPosition(0, valueRowIndex.getIntValue());
- } else {
- tableRowIndexHeaderLayer.setColumnWidthByPosition(0, DefaultSizeUtils.getDefaultRowHeaderWidth());
- }
-
- IntValueStyle valueRowLabel = (IntValueStyle) rowHeader.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.ROW_LABEL_WIDTH);
- if (valueRowLabel != null) {
- tableRowLabelHeaderLayer.setColumnWidthByPosition(0, valueRowLabel.getIntValue());
- } else {
- tableRowLabelHeaderLayer.setColumnWidthByPosition(0, DefaultSizeUtils.getDefaultRowHeaderWidth());
- }
-
- }
-
-
- /**
- *
- * Handles the initialization of the table's cell merges, on opening, based on the previous changes made by the user.
- *
- */
- protected void initTableMerge() {
- // clears the previous spanning (== merge) behavior that would interfere with the new one
- clearTableSpan();
-
- // the four booleans that indicate the type of merge currently used in the table: all columns, all rows, selected rows, selected columns
- BooleanValueStyle valueRow = (BooleanValueStyle) HeaderAxisConfigurationManagementUtils.getRowAbstractHeaderAxisConfigurationUsedInTable(getTable())
- .getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_ROWS);
- BooleanValueStyle valueColumn = (BooleanValueStyle) HeaderAxisConfigurationManagementUtils.getColumnAbstractHeaderAxisConfigurationUsedInTable(getTable())
- .getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_COLUMNS);
- boolean mergeSelectedRows = getToMergeRowBoolean();
- boolean mergeSelectedColumns = getToMergeColumnBoolean();
-
- // notation lists represent the elements that are instantiated in their table instance inside the model.notation file
- List<IAxis> notationColumnsAxisList = getTable().getCurrentColumnAxisProvider().getAxis();
- List<IAxis> notationRowsAxisList = getTable().getCurrentRowAxisProvider().getAxis();
- // list of the selected Axis indexes
- List<Integer> selectedAxisIndex = new ArrayList<Integer>();
-
- // the two conditions below handle the merge of all the columns/rows
- if (valueRow != null && valueRow.isBooleanValue()) {
- // it is important to note that AbstractHeaderAxisConfigurationUsedInTable already handles the invertAxis parameter to return the correct Header (column/row)
- bodyLayerStack.getBodyLayerSpanProvider().setAutoColumnSpan(true);
- }
- if (valueColumn != null && valueColumn.isBooleanValue()) {
- bodyLayerStack.getBodyLayerSpanProvider().setAutoRowSpan(true);
- }
-
- // the two conditions below handle the merge of the selected columns/rows
- if (mergeSelectedRows) {
- // check the axis' boolean to know if it has to be merged or not in the selection
- if (!getTable().isInvertAxis()) {
- for (int index = 0; index < notationRowsAxisList.size(); index++) {
- IAxis currentAxis = notationRowsAxisList.get(index);
- BooleanValueStyle currentAxisMergeBoolean = (BooleanValueStyle) currentAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_IN_SELECTED_ROWS);
- if (currentAxisMergeBoolean != null && currentAxisMergeBoolean.isBooleanValue()) {
- selectedAxisIndex.add(index);
- }
- }
- } else {
- // this behavior checks the merge boolean, if any, as the rows are now columns and vice versa
- for (int index = 0; index < notationColumnsAxisList.size(); index++) {
- IAxis currentAxis = notationColumnsAxisList.get(index);
- BooleanValueStyle currentAxisMergeBoolean = (BooleanValueStyle) currentAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_IN_SELECTED_ROWS);
- if (currentAxisMergeBoolean != null && currentAxisMergeBoolean.isBooleanValue()) {
- selectedAxisIndex.add(index);
- }
- }
- }
-
- // the spanning can now be set correctly
- bodyLayerStack.getBodyLayerSpanProvider().setAutoColumnSpan(true);
- bodyLayerStack.getBodyLayerSpanProvider().addAutoSpanningRowPositions(selectedAxisIndex.toArray(new Integer[selectedAxisIndex.size()]));
- }
- // same behavior for the column axis
- if (mergeSelectedColumns) {
- if (!getTable().isInvertAxis()) {
- for (int index = 0; index < notationColumnsAxisList.size(); index++) {
- IAxis currentAxis = notationColumnsAxisList.get(index);
- BooleanValueStyle currentAxisMergeBoolean = (BooleanValueStyle) currentAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_IN_SELECTED_COLUMNS);
- if (currentAxisMergeBoolean != null && currentAxisMergeBoolean.isBooleanValue()) {
- selectedAxisIndex.add(index);
- }
- }
- } else {
- for (int index = 0; index < notationRowsAxisList.size(); index++) {
- IAxis currentAxis = notationRowsAxisList.get(index);
- BooleanValueStyle currentAxisMergeBoolean = (BooleanValueStyle) currentAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_IN_SELECTED_COLUMNS);
- if (currentAxisMergeBoolean != null && currentAxisMergeBoolean.isBooleanValue()) {
- selectedAxisIndex.add(index);
- }
- }
- }
-
- bodyLayerStack.getBodyLayerSpanProvider().setAutoRowSpan(true);
- bodyLayerStack.getBodyLayerSpanProvider().addAutoSpanningColumnPositions(selectedAxisIndex.toArray(new Integer[selectedAxisIndex.size()]));
- }
- }
-
-
- /**
- * Clears the merge behavior currently used in the table
- */
- protected void clearTableSpan() {
- bodyLayerStack.getBodyLayerSpanProvider().clearAutoSpanningColumnPositions();
- bodyLayerStack.getBodyLayerSpanProvider().clearAutoSpanningRowPositions();
- bodyLayerStack.getBodyLayerSpanProvider().setAutoColumnSpan(false);
- bodyLayerStack.getBodyLayerSpanProvider().setAutoRowSpan(false);
- }
-
-
- /**
- *
- * @return
- * The boolean indicating that some row axis are to be merged in the selection
- */
- protected boolean getToMergeRowBoolean() {
- // for(IAxis currentAxis : getTable().getCurrentRowAxisProvider().getAxis()) {
- // the above test does not allow a quick switch between invertAxis and not as the provider will deliver the same list in both states
- for (Object currentObject : getRowElementsList()) {
- if (currentObject instanceof IAxis) {
- IAxis currentAxis = (IAxis) currentObject;
- BooleanValueStyle axisToMerge = (BooleanValueStyle) currentAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_IN_SELECTED_ROWS);
- if (axisToMerge != null && axisToMerge.isBooleanValue()) {
- // one axis has a merge boolean to true hence the table was previously merged
- return true;
- }
- }
- }
- return false;
- }
-
- /**
- *
- * @return
- * The boolean indicating that some column axis are to be merged in the selection
- */
- protected boolean getToMergeColumnBoolean() {
- // for(IAxis currentAxis : getTable().getCurrentColumnAxisProvider().getAxis()) {
- // the above test does not allow a quick switch between invertAxis and not as the provider will deliver the same list in both states
- for (Object currentObject : getColumnElementsList()) {
- if (currentObject instanceof IAxis) {
- IAxis currentAxis = (IAxis) currentObject;
- BooleanValueStyle axisToMerge = (BooleanValueStyle) currentAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_IN_SELECTED_COLUMNS);
- if (axisToMerge != null && axisToMerge.isBooleanValue()) {
- // one axis has a merge boolean to true hence the table was previously merged
- return true;
- }
- }
- }
- return false;
- }
-
- /**
- *
- * @return
- * The boolean indicating if the toggle of the currently used menu is to be set to true or not.
- * i.e. if the current selection is the same that the previously merged selection
- */
- protected boolean getToggleStateSelectedRows() {
- // the size of the selection used to see if an axis has been selected
- int selectionSize = bodyLayerStack.getSelectionLayer().getFullySelectedRowPositions().length;
- // fetch the merge booleans of the selected rows and return false if the selection does not match the previously merged rows
- for (int index : bodyLayerStack.getSelectionLayer().getFullySelectedRowPositions()) {
- Object currentObject = getRowElement(index);
- if (getRowElement(index) instanceof IAxis) {
- IAxis currentAxis = (IAxis) currentObject;
- BooleanValueStyle axisToMerge = (BooleanValueStyle) currentAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_IN_SELECTED_ROWS);
- if ((axisToMerge != null && !axisToMerge.isBooleanValue()) || (axisToMerge == null)) {
- return false;
- }
- }
- }
-
- // as the user may have selected only a cell or a column, those cases must be taken into account
- if (selectionSize > 0) {
- return true;
- } else {
- return false;
- }
- }
-
- /**
- *
- * @return
- * The boolean indicating if the toggle of the currently used menu is to be set to true or not.
- * i.e. if the current selection is the same that the previously merged selection
- */
- protected boolean getToggleStateSelectedColumns() {
- // the size of the selection used to see if an axis has been selected
- int selectionSize = bodyLayerStack.getSelectionLayer().getFullySelectedColumnPositions().length;
- // fetch the merge booleans of the selected rows and return false if the selection does not match the previously merged columns
- for (int index : bodyLayerStack.getSelectionLayer().getFullySelectedColumnPositions()) {
- Object currentObject = getColumnElement(index);
- if (getColumnElement(index) instanceof IAxis) {
- IAxis currentAxis = (IAxis) currentObject;
- BooleanValueStyle axisToMerge = (BooleanValueStyle) currentAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_IN_SELECTED_COLUMNS);
- if ((axisToMerge != null && !axisToMerge.isBooleanValue()) || (axisToMerge == null)) {
- return false;
- }
- }
- }
-
- // as the user may have selected only a cell or a column, those cases must be taken into account
- if (selectionSize > 0) {
- return true;
- } else {
- return false;
- }
- }
-
- /**
- *
- * @return
- * The boolean indicating if the toggle of the currently used menu is to be set to true or not.
- * i.e. if the current selection is the same that the previously merged selection
- */
- protected boolean getToggleStateAllRows() {
- BooleanValueStyle mergeRows = (BooleanValueStyle) HeaderAxisConfigurationManagementUtils.getRowAbstractHeaderAxisConfigurationUsedInTable(getTable())
- .getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_ROWS);
- if (mergeRows != null && mergeRows.isBooleanValue()) {
- return true;
- } else {
- return false;
- }
- }
-
- /**
- * this method is used to update the state of the toggle actions for table
- */
- protected void updateToggleActionState() {
- final ICommandService commandService = EclipseCommandUtils.getCommandService();
- if (commandService != null) {
- final AbstractHeaderAxisConfiguration columnAxisConfiguration = HeaderAxisConfigurationManagementUtils.getColumnAbstractHeaderAxisConfigurationUsedInTable(getTable());
-
- // update the header configuration
- org.eclipse.core.commands.Command command = commandService.getCommand(CommandIds.COMMAND_COLUMN_DISPLAY_FILTER_ID);
- EclipseCommandUtils.updateToggleCommandState(command, columnAxisConfiguration.isDisplayFilter());
- }
- }
-
- /**
- *
- * @return
- * The boolean indicating if the toggle of the currently used menu is to be set to true or not.
- * i.e. if the current selection is the same that the previously merged selection
- */
- protected boolean getToggleStateAllColumns() {
- BooleanValueStyle mergeColumns = (BooleanValueStyle) HeaderAxisConfigurationManagementUtils.getColumnAbstractHeaderAxisConfigurationUsedInTable(getTable())
- .getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_COLUMNS);
- if (mergeColumns != null && mergeColumns.isBooleanValue()) {
- return true;
- } else {
- return false;
- }
- }
-
- /**
- *
- * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
- *
- * @param adapter
- * @return
- */
- @SuppressWarnings("rawtypes")
- @Override
- public Object getAdapter(Class adapter) {
- if (adapter == TableSelectionProvider.class) {
- return this.selectionProvider;
- }
- if (adapter == TableSelectionWrapper.class) {
- ISelection selection = this.selectionProvider.getSelection();
- if (selection instanceof TableStructuredSelection) {
- return ((TableStructuredSelection) selection).getAdapter((TableSelectionWrapper.class));
- }
- }
- if (adapter == TableStructuredSelection.class) {
- ISelection selection = this.selectionProvider.getSelection();
- if (selection instanceof TableStructuredSelection) {
- return selection;
- }
- }
- return null;
-
- }
-
- /**
- *
- * @return
- * a {@link TableStructuredSelection} representing the current selection of the table or <code>null</code> when there is no selection
- */
- protected final TableStructuredSelection getSelectionInTable() {
- ISelection selection = this.selectionProvider.getSelection();
- if (selection instanceof TableStructuredSelection) {
- return (TableStructuredSelection) selection;
- }
- return null;
- }
-
- /**
- *
- * @return
- * a map representing index of fully selected rows linked to the associated element
- *
- * The returned value can't be <code>null</code>
- */
- protected final Map<Integer, Object> getFullySelectedRows() {
- TableStructuredSelection selection = getSelectionInTable();
- if (selection != null) {
- TableSelectionWrapper selectionWrapper = (TableSelectionWrapper) selection.getAdapter(TableSelectionWrapper.class);
- if (selectionWrapper != null) {
- return selectionWrapper.getFullySelectedRows();
- }
- }
- return Collections.emptyMap();
- }
-
- /**
- *
- * @return
- * a map representing index of fully selected columns linked to the associated element
- *
- * The returned value can't be <code>null</code>
- */
- protected final Map<Integer, Object> getFullySelectedColumns() {
- TableStructuredSelection selection = getSelectionInTable();
- if (selection != null) {
- TableSelectionWrapper selectionWrapper = (TableSelectionWrapper) selection.getAdapter(TableSelectionWrapper.class);
- if (selectionWrapper != null) {
- return selectionWrapper.getFullySelectedColumns();
- }
- }
- return Collections.emptyMap();
- }
-}
+/*****************************************************************************
+ * Copyright (c) 2012, 2014 CEA LIST and others.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ * Christian W. Damus (CEA) - bug 402525
+ * Christian W. Damus (CEA) - bug 430880
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.nattable.manager.table;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.common.command.Command;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.edit.ui.dnd.LocalTransfer;
+import org.eclipse.emf.transaction.NotificationFilter;
+import org.eclipse.emf.transaction.ResourceSetChangeEvent;
+import org.eclipse.emf.transaction.ResourceSetListener;
+import org.eclipse.emf.transaction.RollbackException;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.emf.transaction.util.TransactionUtil;
+import org.eclipse.gmf.runtime.common.core.command.CompositeCommand;
+import org.eclipse.gmf.runtime.emf.type.core.commands.SetValueCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
+import org.eclipse.jface.action.GroupMarker;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.action.IContributionItem;
+import org.eclipse.jface.action.MenuManager;
+import org.eclipse.jface.util.LocalSelectionTransfer;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.nebula.widgets.nattable.NatTable;
+import org.eclipse.nebula.widgets.nattable.config.IConfigRegistry;
+import org.eclipse.nebula.widgets.nattable.coordinate.Range;
+import org.eclipse.nebula.widgets.nattable.copy.command.CopyDataToClipboardCommand;
+import org.eclipse.nebula.widgets.nattable.data.IDataProvider;
+import org.eclipse.nebula.widgets.nattable.export.command.ExportCommand;
+//import org.eclipse.nebula.widgets.nattable.filterrow.FilterRowHeaderComposite;
+import org.eclipse.nebula.widgets.nattable.filterrow.IFilterStrategy;
+import org.eclipse.nebula.widgets.nattable.grid.GridRegion;
+import org.eclipse.nebula.widgets.nattable.grid.data.DefaultCornerDataProvider;
+import org.eclipse.nebula.widgets.nattable.grid.layer.CornerLayer;
+import org.eclipse.nebula.widgets.nattable.grid.layer.GridLayer;
+import org.eclipse.nebula.widgets.nattable.layer.DataLayer;
+import org.eclipse.nebula.widgets.nattable.layer.ILayerListener;
+import org.eclipse.nebula.widgets.nattable.layer.LabelStack;
+import org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell;
+import org.eclipse.nebula.widgets.nattable.layer.event.ILayerEvent;
+import org.eclipse.nebula.widgets.nattable.print.command.PrintCommand;
+import org.eclipse.nebula.widgets.nattable.print.command.TurnViewportOffCommand;
+import org.eclipse.nebula.widgets.nattable.print.command.TurnViewportOnCommand;
+import org.eclipse.nebula.widgets.nattable.print.config.DefaultPrintBindings;
+import org.eclipse.nebula.widgets.nattable.reorder.ColumnReorderLayer;
+import org.eclipse.nebula.widgets.nattable.reorder.event.ColumnReorderEvent;
+import org.eclipse.nebula.widgets.nattable.resize.event.ColumnResizeEvent;
+import org.eclipse.nebula.widgets.nattable.resize.event.RowResizeEvent;
+import org.eclipse.nebula.widgets.nattable.selection.SelectionLayer;
+import org.eclipse.nebula.widgets.nattable.selection.command.SelectAllCommand;
+import org.eclipse.nebula.widgets.nattable.selection.command.SelectColumnCommand;
+import org.eclipse.nebula.widgets.nattable.selection.command.SelectRowsCommand;
+import org.eclipse.nebula.widgets.nattable.style.DisplayMode;
+import org.eclipse.nebula.widgets.nattable.ui.binding.UiBindingRegistry;
+import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper;
+import org.eclipse.papyrus.infra.core.services.ServiceException;
+import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
+import org.eclipse.papyrus.infra.emf.utils.ServiceUtilsForEObject;
+import org.eclipse.papyrus.infra.nattable.Activator;
+import org.eclipse.papyrus.infra.nattable.command.CommandIds;
+import org.eclipse.papyrus.infra.nattable.command.UpdateFilterMapCommand;
+import org.eclipse.papyrus.infra.nattable.comparator.ObjectNameAndPathComparator;
+import org.eclipse.papyrus.infra.nattable.configuration.CellEditorAxisConfiguration;
+import org.eclipse.papyrus.infra.nattable.configuration.CornerConfiguration;
+import org.eclipse.papyrus.infra.nattable.configuration.FilterRowAxisConfiguration;
+import org.eclipse.papyrus.infra.nattable.configuration.FilterRowCustomConfiguration;
+import org.eclipse.papyrus.infra.nattable.configuration.PapyrusClickSortConfiguration;
+import org.eclipse.papyrus.infra.nattable.configuration.PapyrusHeaderMenuConfiguration;
+import org.eclipse.papyrus.infra.nattable.dataprovider.AbstractCompositeDataProvider;
+import org.eclipse.papyrus.infra.nattable.dataprovider.BodyDataProvider;
+import org.eclipse.papyrus.infra.nattable.dataprovider.ColumnIndexHeaderDataProvider;
+import org.eclipse.papyrus.infra.nattable.dataprovider.ColumnLabelHeaderDataProvider;
+import org.eclipse.papyrus.infra.nattable.dataprovider.CompositeColumnHeaderDataProvider;
+import org.eclipse.papyrus.infra.nattable.dataprovider.CompositeRowHeaderDataProvider;
+import org.eclipse.papyrus.infra.nattable.display.converter.ObjectNameAndPathDisplayConverter;
+import org.eclipse.papyrus.infra.nattable.filter.configuration.IFilterConfiguration;
+import org.eclipse.papyrus.infra.nattable.layer.FilterRowHeaderComposite;
+import org.eclipse.papyrus.infra.nattable.layer.PapyrusGridLayer;
+import org.eclipse.papyrus.infra.nattable.layerstack.BodyLayerStack;
+import org.eclipse.papyrus.infra.nattable.layerstack.ColumnHeaderLayerStack;
+import org.eclipse.papyrus.infra.nattable.layerstack.RowHeaderLayerStack;
+import org.eclipse.papyrus.infra.nattable.listener.NatTableDropListener;
+import org.eclipse.papyrus.infra.nattable.model.nattable.NattablePackage;
+import org.eclipse.papyrus.infra.nattable.model.nattable.Table;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxis.EObjectAxis;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxis.EStructuralFeatureAxis;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxis.FeatureIdAxis;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxis.IAxis;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxisconfiguration.AbstractHeaderAxisConfiguration;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxisconfiguration.LocalTableHeaderAxisConfiguration;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxisconfiguration.NattableaxisconfigurationPackage;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxisconfiguration.TableHeaderAxisConfiguration;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.BooleanValueStyle;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.IntValueStyle;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.NamedStyle;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.NattablestyleFactory;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.NattablestylePackage;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.StringListValueStyle;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.StringValueStyle;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattablestyle.Style;
+import org.eclipse.papyrus.infra.nattable.provider.PapyrusNatTableToolTipProvider;
+import org.eclipse.papyrus.infra.nattable.provider.TableSelectionProvider;
+import org.eclipse.papyrus.infra.nattable.provider.TableStructuredSelection;
+import org.eclipse.papyrus.infra.nattable.selection.ISelectionExtractor;
+import org.eclipse.papyrus.infra.nattable.sort.ColumnSortModel;
+import org.eclipse.papyrus.infra.nattable.sort.IPapyrusSortModel;
+import org.eclipse.papyrus.infra.nattable.utils.AxisUtils;
+import org.eclipse.papyrus.infra.nattable.utils.DefaultSizeUtils;
+import org.eclipse.papyrus.infra.nattable.utils.HeaderAxisConfigurationManagementUtils;
+import org.eclipse.papyrus.infra.nattable.utils.LocationValue;
+import org.eclipse.papyrus.infra.nattable.utils.NamedStyleConstants;
+import org.eclipse.papyrus.infra.nattable.utils.NattableConfigAttributes;
+import org.eclipse.papyrus.infra.nattable.utils.TableEditingDomainUtils;
+import org.eclipse.papyrus.infra.nattable.utils.TableGridRegion;
+import org.eclipse.papyrus.infra.nattable.utils.TableSelectionWrapper;
+import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
+import org.eclipse.papyrus.infra.services.labelprovider.service.LabelProviderService;
+import org.eclipse.papyrus.infra.tools.util.EclipseCommandUtils;
+import org.eclipse.papyrus.infra.widgets.util.NavigationTarget;
+import org.eclipse.swt.dnd.DND;
+import org.eclipse.swt.dnd.DropTarget;
+import org.eclipse.swt.dnd.Transfer;
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Menu;
+import org.eclipse.ui.IWorkbenchActionConstants;
+import org.eclipse.ui.IWorkbenchPartSite;
+import org.eclipse.ui.commands.ICommandService;
+import org.eclipse.ui.services.IDisposable;
+
+/**
+ *
+ * This class allows to create, configure and manipulate the NatTable Widget
+ *
+ */
+public abstract class AbstractNattableWidgetManager implements INattableModelManager, NavigationTarget, IAdaptable {
+
+ /**
+ * we need to keep it to be able to remove listener (required when we destroy the context of the table)
+ *
+ * The editing domain to use to edit context element
+ */
+ protected TransactionalEditingDomain contextEditingDomain;
+
+ /**
+ * we need to keep it to be able to remove listener (required when we destroy the context of the table)
+ *
+ * The editing domain to use to edit table elements
+ */
+ protected TransactionalEditingDomain tableEditingDomain;
+
+ /**
+ * the managed table
+ */
+ private Table table;
+
+ /**
+ * we need to keep it, to be able to remove the listener on it, when the table is destroying
+ */
+ private EObject tableContext;
+
+ /**
+ * the nattable widget
+ */
+ protected NatTable natTable;
+
+ /**
+ * the grid layer
+ */
+ private GridLayer gridLayer;
+
+ /**
+ * the columnHeaderLayerStack
+ */
+ private ColumnHeaderLayerStack columnHeaderLayerStack;
+
+ /**
+ * the rowHeaderLayerStack
+ */
+ private RowHeaderLayerStack rowHeaderLayerStack;
+
+ /**
+ * @return the rowHeaderLayerStack
+ */
+ public RowHeaderLayerStack getRowHeaderLayerStack() {
+ return rowHeaderLayerStack;
+ }
+
+ /**
+ * the selection provider
+ */
+ private TableSelectionProvider selectionProvider;
+
+ private IFilterStrategy<Object> filterStrategy;
+
+ /**
+ * the body layer stack
+ */
+ private BodyLayerStack bodyLayerStack;
+
+ private ILayerListener resizeAxisListener;
+
+ private ILayerListener resizeRowHeaderListener;
+
+ private ILayerListener resizeColumnHeaderListener;
+
+ private AbstractCompositeDataProvider columnHeaderDataProvider;
+
+ private AbstractCompositeDataProvider rowHeaderDataProvider;
+
+ private BodyDataProvider bodyDataProvider;
+
+ /**
+ * the composite layer providing the filter row in the column header
+ */
+ private FilterRowHeaderComposite<?> filterColumnHeaderComposite;
+
+ /**
+ * the sort model used for rows
+ */
+ private IPapyrusSortModel rowSortModel;
+
+ private ISelectionExtractor selectionExtractor;
+
+ /**
+ * this listener is used to update value in nattable layer
+ */
+ private ResourceSetListener resourceSetListener;
+
+ /**
+ * the filter configuration
+ */
+ private FilterRowAxisConfiguration filterConfiguration;
+
+ /**
+ * the cell editor axis configuration
+ */
+ private CellEditorAxisConfiguration cellAxisConfiguration;
+
+ /**
+ *
+ * Constructor.
+ *
+ * @param table
+ * the model of the table
+ */
+ public AbstractNattableWidgetManager(final Table table, final ISelectionExtractor selectionExtractor) {
+ this.table = table;
+ this.tableContext = table.getContext();
+ this.selectionExtractor = selectionExtractor;
+ this.tableEditingDomain = TableEditingDomainUtils.getTableEditingDomain(table);
+ this.contextEditingDomain = TableEditingDomainUtils.getTableContextEditingDomain(table);
+ }
+
+ /**
+ * Returns the EditingDomain associated to the table
+ *
+ * @return
+ */
+ protected final TransactionalEditingDomain getTableEditingDomain() {
+ return this.tableEditingDomain;
+ }
+
+ /**
+ * Returns the EditingDomain associated to the context
+ *
+ * @return
+ */
+ protected final TransactionalEditingDomain getContextEditingDomain() {
+ return this.contextEditingDomain;
+ }
+
+ /**
+ *
+ * @see org.eclipse.papyrus.infra.nattable.manager.table.INattableModelManager#createNattable(org.eclipse.swt.widgets.Composite, int, org.eclipse.ui.IWorkbenchPartSite)
+ *
+ * @param parent
+ * @param style
+ * @param site
+ * @return
+ */
+ @Override
+ public NatTable createNattable(final Composite parent, final int style, final IWorkbenchPartSite site) {
+ this.bodyDataProvider = new BodyDataProvider(this);
+
+
+ this.bodyLayerStack = new BodyLayerStack(this.bodyDataProvider, this);
+
+ columnHeaderDataProvider = new CompositeColumnHeaderDataProvider(this);
+ final IDataProvider indexColumnProvider = new ColumnIndexHeaderDataProvider(this);
+ final IDataProvider labelColumnProvider = new ColumnLabelHeaderDataProvider(this);
+ columnHeaderDataProvider.addDataProvider(indexColumnProvider);
+ columnHeaderDataProvider.addDataProvider(labelColumnProvider);
+
+ // this.columnHeaderDataProvider = new ColumnHeaderDataProvider(this);
+ // this.columnHeaderDataProvider = new ColumnHeaderDataProvider(this);
+ // this.columnHeaderLayerStack = new ColumnHeaderLayerStack(this.columnHeaderDataProvider, this.bodyLayerStack, this.bodyDataProvider, getRowSortModel());
+ this.columnHeaderLayerStack = new ColumnHeaderLayerStack(indexColumnProvider, labelColumnProvider, this.bodyLayerStack, getRowSortModel());
+
+ this.rowHeaderLayerStack = createRowHeaderLayerStack(this.bodyLayerStack);
+ rowHeaderDataProvider = new CompositeRowHeaderDataProvider(this);
+ rowHeaderDataProvider.addDataProvider(this.rowHeaderLayerStack.getIndexDataProvider());
+ rowHeaderDataProvider.addDataProvider(this.rowHeaderLayerStack.getLabelDataProvider());
+
+
+
+ // final IDataProvider cornerDataProvider = new DefaultCornerDataProvider(this.columnHeaderDataProvider, this.rowHeaderDataProvider);
+ final IDataProvider cornerDataProvider = new DefaultCornerDataProvider(columnHeaderDataProvider, rowHeaderDataProvider);
+
+
+ // create the filter layer, configRegistry can be null for our usecase
+ this.filterStrategy = createFilterStrategy();
+ this.filterColumnHeaderComposite = new FilterRowHeaderComposite<Object>(this.filterStrategy, columnHeaderLayerStack, columnHeaderDataProvider, this);
+
+ // init the filter visibility
+ this.filterColumnHeaderComposite.setFilterRowVisible(HeaderAxisConfigurationManagementUtils.getColumnAbstractHeaderAxisConfigurationUsedInTable(this.table).isDisplayFilter());
+
+ final CornerLayer cornerLayer = new CornerLayer(new DataLayer(cornerDataProvider), this.rowHeaderLayerStack, filterColumnHeaderComposite);
+ cornerLayer.addConfiguration(new CornerConfiguration(this));
+
+ this.gridLayer = new PapyrusGridLayer(TransactionUtil.getEditingDomain(tableContext), this.bodyLayerStack, filterColumnHeaderComposite, this.rowHeaderLayerStack, cornerLayer);
+ this.gridLayer.addConfiguration(new DefaultPrintBindings());
+ this.natTable = new NatTable(parent, this.gridLayer, false);
+
+
+ // we register nattable configuration
+ this.natTable.addConfiguration(new PapyrusHeaderMenuConfiguration());
+ this.natTable.addConfiguration(new PapyrusClickSortConfiguration());
+ this.natTable.addConfiguration(new FilterRowCustomConfiguration());
+
+
+ // we register some information in the config registry of the nattable widget
+ IConfigRegistry configRegistry = this.natTable.getConfigRegistry();
+
+ // could be done by config file!
+ configRegistry.registerConfigAttribute(NattableConfigAttributes.NATTABLE_MODEL_MANAGER_CONFIG_ATTRIBUTE, AbstractNattableWidgetManager.this, DisplayMode.NORMAL, NattableConfigAttributes.NATTABLE_MODEL_MANAGER_ID);
+ configRegistry.registerConfigAttribute(NattableConfigAttributes.LABEL_PROVIDER_SERVICE_CONFIG_ATTRIBUTE, getContextLabelProviderService(), DisplayMode.NORMAL, NattableConfigAttributes.LABEL_PROVIDER_SERVICE_ID);
+ // commented because seems generate several bugs with edition
+ // newRegistry.registerConfigAttribute( CellConfigAttributes.DISPLAY_CONVERTER, new GenericDisplayConverter(), DisplayMode.NORMAL, GridRegion.BODY);
+
+ // configuration used by filter
+ ObjectNameAndPathDisplayConverter converter = new ObjectNameAndPathDisplayConverter(getContextLabelProviderService());
+ configRegistry.registerConfigAttribute(NattableConfigAttributes.OBJECT_NAME_AND_PATH_DISPLAY_CONVERTER, converter, DisplayMode.NORMAL, NattableConfigAttributes.OBJECT_NAME_AND_PATH_DISPLAY_CONVERTER_ID);
+ configRegistry.registerConfigAttribute(NattableConfigAttributes.OBJECT_NAME_AND_PATH_COMPARATOR, new ObjectNameAndPathComparator(converter), DisplayMode.NORMAL, NattableConfigAttributes.OBJECT_NAME_AND_PATH_COMPARATOR_ID);
+
+ this.natTable.setConfigRegistry(configRegistry);
+ this.natTable.setUiBindingRegistry(new UiBindingRegistry(this.natTable));
+ this.natTable.configure();
+
+ // we create editors and filter configuration, we can not add it to a layer, because the configuration must be updated after add/move axis and invert axis
+ this.filterConfiguration = new FilterRowAxisConfiguration();
+ this.cellAxisConfiguration = new CellEditorAxisConfiguration();
+ configureFilters();
+ configureCellAxisEditor();
+
+
+ // initialize the table by checking all its applied styles
+ initTableAxis();
+ initTableHeaders();
+ initTableMerge();
+
+ addColumnReorderListener(this.bodyLayerStack.getColumnReorderLayer());
+ addAxisResizeListener(this.bodyLayerStack);
+ addColumnHeaderResizeListener(this.columnHeaderLayerStack);
+ addRowHeaderResizeListener(this.rowHeaderLayerStack);
+ addDragAndDropSupport(this.natTable);
+
+
+ if (site != null) {
+ final MenuManager menuMgr = createMenuManager(this.natTable);
+ final Menu menu = menuMgr.createContextMenu(this.natTable);
+ this.natTable.setMenu(menu);
+
+ this.selectionProvider = new TableSelectionProvider(this, this.bodyLayerStack.getSelectionLayer());
+ site.registerContextMenu(menuMgr, this.selectionProvider);
+ site.setSelectionProvider(this.selectionProvider);
+ }
+
+
+ new PapyrusNatTableToolTipProvider(this.natTable, GridRegion.BODY, GridRegion.COLUMN_HEADER, GridRegion.ROW_HEADER);
+ initResourceSetListener();
+ return this.natTable;
+ }
+
+
+ /**
+ * @return
+ * the filter strategy to use
+ */
+ protected abstract IFilterStrategy<Object> createFilterStrategy();
+
+
+ /**
+ * TODO : should be refactored with resourceset used in NattableModelManager
+ */
+ private void initResourceSetListener() {
+ // resourceSetListener used to capture table style modification
+ // these events can be used to undo/redo previous actions
+ resourceSetListener = new ResourceSetListener() {
+
+ @Override
+ public Command transactionAboutToCommit(ResourceSetChangeEvent event) throws RollbackException {
+ return null;
+ }
+
+ @Override
+ public void resourceSetChanged(ResourceSetChangeEvent event) {
+
+ for (final Notification notification : event.getNotifications()) {
+ // filter the events to only let through the changes on the current table resource
+ Table notifiedTable = findTable(notification);
+ if (getTable().equals(notifiedTable)) {
+
+ Display.getDefault().asyncExec(new Runnable() {
+
+ @Override
+ public void run() {
+
+ Object notifier = notification.getNotifier();
+ Object feature = notification.getFeature();
+ Object newValue = notification.getNewValue();
+ Object oldValue = notification.getOldValue();
+ if (notifier instanceof LocalTableHeaderAxisConfiguration) {
+ boolean onColumnOnModel = getTable().getLocalColumnHeaderAxisConfiguration() == notifier;
+ boolean isInverted = table.isInvertAxis();
+
+ if (feature == NattableaxisconfigurationPackage.eINSTANCE.getAbstractHeaderAxisConfiguration_DisplayFilter() && newValue instanceof Boolean) {
+ if ((onColumnOnModel && !isInverted) || (!onColumnOnModel && isInverted)) {
+ AbstractNattableWidgetManager.this.filterColumnHeaderComposite.setFilterRowVisible(((Boolean) newValue).booleanValue());
+ natTable.refresh();
+ }
+ }
+ } else if (notifier instanceof Table && feature == NattablePackage.eINSTANCE.getTable_InvertAxis()) {
+ // TODO : replace the listener and its action done in NattableModelManger by this one
+ AbstractNattableWidgetManager.this.filterColumnHeaderComposite.setFilterRowVisible(HeaderAxisConfigurationManagementUtils.getColumnAbstractHeaderAxisConfigurationUsedInTable(getTable()).isDisplayFilter());
+ natTable.refresh();
+ } else if (notifier instanceof IAxis || notifier instanceof StringValueStyle || notifier instanceof StringListValueStyle) {
+ boolean refreshFilter = false;
+ IAxis axisToRefresh = null;
+ if (notifier instanceof IAxis) {
+ axisToRefresh = (IAxis) notifier;
+ if (oldValue instanceof NamedStyle && IFilterConfiguration.FILTER_VALUE_TO_MATCH.equals(((NamedStyle) oldValue).getName())) {
+ // we need to replay the filter
+ refreshFilter = true;
+ } else if (newValue instanceof NamedStyle && IFilterConfiguration.FILTER_VALUE_TO_MATCH.equals(((NamedStyle) newValue).getName())) {
+ refreshFilter = true;
+ }
+ }
+ if ((notifier instanceof StringValueStyle || notifier instanceof StringListValueStyle) && IFilterConfiguration.FILTER_VALUE_TO_MATCH.equals(((NamedStyle) notifier).getName())) {
+ EObject container = ((NamedStyle) notifier).eContainer();
+ if (container instanceof IAxis) {
+ axisToRefresh = (IAxis) container;
+ refreshFilter = true;
+ }
+ }
+ if (refreshFilter && axisToRefresh != null) {
+ // we need to update the filter map value (manage Undo/Redo for example)
+ int index = -1;
+ if (table.isInvertAxis() && getRowElementsList().contains(axisToRefresh)) {
+ index = getRowElementsList().indexOf(axisToRefresh);
+ } else if (!table.isInvertAxis() && getColumnElementsList().contains(axisToRefresh)) {
+ index = getColumnElementsList().indexOf(axisToRefresh);
+ }
+ if (index != -1) {
+ filterColumnHeaderComposite.doCommand(new UpdateFilterMapCommand(index));
+ }
+
+ }
+ }
+ }
+ });
+ }
+ }
+ }
+
+ @Override
+ public boolean isPrecommitOnly() {
+ return false;
+ }
+
+ @Override
+ public boolean isPostcommitOnly() {
+ return false;
+ }
+
+ @Override
+ public boolean isAggregatePrecommitListener() {
+ return false;
+ }
+
+ @Override
+ public NotificationFilter getFilter() {
+ // this filter only lets through the notifications pertaining to the table
+ // the first three conditions handle the modification, the add and the remove of styles
+ // the last seven handle the modified or created objects containing those styles
+ return ((NotificationFilter.createEventTypeFilter(Notification.SET))
+ .or(NotificationFilter.createEventTypeFilter(Notification.ADD))
+ .or(NotificationFilter.createEventTypeFilter(Notification.REMOVE)))
+ .and((NotificationFilter.createNotifierTypeFilter(BooleanValueStyle.class))
+ .or(NotificationFilter.createNotifierTypeFilter(IntValueStyle.class))
+ .or(NotificationFilter.createNotifierTypeFilter(Style.class))
+ .or(NotificationFilter.createNotifierTypeFilter(EObjectAxis.class))
+ .or(NotificationFilter.createNotifierTypeFilter(FeatureIdAxis.class))
+ .or(NotificationFilter.createNotifierTypeFilter(EStructuralFeatureAxis.class))
+ .or(NotificationFilter.createNotifierTypeFilter(LocalTableHeaderAxisConfiguration.class))
+ .or(NotificationFilter.createNotifierTypeFilter(Table.class)));
+ // return NotificationFilter.createNotifierTypeFilter(EObject.class);
+ }
+ };
+
+ if (this.tableEditingDomain != null) {
+ this.tableEditingDomain.addResourceSetListener(resourceSetListener);
+ }
+ }
+
+ /**
+ *
+ * @param notification
+ * @return
+ * The nearest table containing the style in order to verify the table's styled event's source
+ */
+ protected static Table findTable(Notification notification) {
+ if (notification.getNotifier() instanceof Table) {
+ return (Table) notification.getNotifier();
+ } else {
+ Object notifier = notification.getNotifier();
+ if (notifier instanceof EObject) {
+ EObject container = ((EObject) notifier).eContainer();
+ while (!(container instanceof Table) && container != null) {
+ container = container.eContainer();
+ }
+ return (Table) container;
+ }
+ return null;
+ }
+ }
+
+ /**
+ *
+ * @param bodyLayerStack
+ * the body layer stack to use
+ *
+ * @return
+ * the row header layer stack to use
+ */
+ protected RowHeaderLayerStack createRowHeaderLayerStack(BodyLayerStack bodyLayerStack) {
+ return new RowHeaderLayerStack(bodyLayerStack, this);
+ }
+
+ /**
+ * configure the cell editor used in the table
+ */
+ protected final void configureCellAxisEditor() {
+ this.cellAxisConfiguration.configureRegistry(this.natTable.getConfigRegistry());
+ }
+
+ /**
+ * configure the filters
+ */
+ protected final void configureFilters() {
+ this.filterConfiguration.configureRegistry(this.natTable.getConfigRegistry());
+ }
+
+ /**
+ *
+ * @return
+ * the label provider serviceS
+ */
+ private LabelProviderService getContextLabelProviderService() {
+ try {
+ ServicesRegistry serviceRegistry = ServiceUtilsForEObject.getInstance().getServiceRegistry(this.table.getContext());// get context and NOT get table for the usecase where the table is not in a resource
+ return serviceRegistry.getService(LabelProviderService.class);
+ } catch (ServiceException e) {
+ Activator.log.error(e);
+ }
+ return null;
+ }
+
+ /**
+ *
+ * @param natTable
+ * @return
+ */
+ public MenuManager createMenuManager(final NatTable natTable) {
+ final MenuManager menuManager = new MenuManager("#PopUp", "org.eclipse.papyrus.infra.nattable.widget.menu") { //$NON-NLS-1$ //$NON-NLS-2$
+
+ @Override
+ public void add(final IAction action) {
+ super.add(action);
+ }
+
+ @Override
+ public void add(final IContributionItem item) {
+ super.add(item);
+ }
+ };
+ menuManager.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
+
+ menuManager.setRemoveAllWhenShown(true);
+ return menuManager;
+ }
+
+ /**
+ * Enable the table to receive dropped elements
+ *
+ * @param nattable
+ * the nattable widget in which we add the drag&drop support
+ */
+ protected void addDragAndDropSupport(final NatTable nattable) {
+ final int operations = DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_DEFAULT;
+ final DropTarget target = new DropTarget(nattable, operations);
+ final LocalTransfer localTransfer = LocalTransfer.getInstance();
+ final LocalSelectionTransfer localSelectionTransfer = LocalSelectionTransfer.getTransfer();
+ final Transfer[] types = new Transfer[] { localSelectionTransfer, localTransfer };
+ target.setTransfer(types);
+ final NatTableDropListener dropListener = createDropListener();
+ target.addDropListener(dropListener);
+ }
+
+ protected NatTableDropListener createDropListener() {
+ return new NatTableDropListener(this, this.selectionExtractor);
+ }
+
+ /**
+ * Add a listener on the column reorder layer in order to update the model
+ *
+ * @param columnReorderLayer
+ * the column reorder layer
+ */
+ private void addColumnReorderListener(final ColumnReorderLayer columnReorderLayer) {
+ columnReorderLayer.addLayerListener(new ILayerListener() {
+
+
+ @Override
+ public void handleLayerEvent(final ILayerEvent event) {
+ if (event instanceof ColumnReorderEvent) {
+ ColumnReorderEvent columnReorderEvent = (ColumnReorderEvent) event;
+ int start = -1;
+ int end = columnReorderEvent.getBeforeToColumnPosition();
+ for (Range range : columnReorderEvent.getBeforeFromColumnPositionRanges()) {
+ start = range.start;
+ break;
+ }
+
+ if (start != -1) {
+ final List<IAxis> allAxis = AbstractNattableWidgetManager.this.getColumnAxisManager().getRepresentedContentProvider().getAxis();
+
+ // This solve an index difference between moving
+ // a column from right to left and moving a
+ // column from left to right
+ if (start >= 0 && start < end && columnReorderEvent.isReorderToLeftEdge()) {
+ end--;
+ }
+
+ final IAxis axisToMove = allAxis.get(start);
+ if (axisToMove != null) {
+ moveColumnElement(axisToMove, end);
+ }
+ }
+ }
+ }
+ });
+ }
+
+ /**
+ * Add a listener on the body itself in order to update the model
+ *
+ * @param bodyLayerStack
+ * the table's body layer
+ */
+ private void addAxisResizeListener(final BodyLayerStack bodyLayerStack) {
+ resizeAxisListener = new ILayerListener() {
+
+ @Override
+ public void handleLayerEvent(ILayerEvent event) {
+ // both events are considered as a body change and therefore we need to check each possibility
+ if (event instanceof ColumnResizeEvent || event instanceof RowResizeEvent) {
+ final CompositeCommand resizeCommand = new CompositeCommand("resize IAxis' width or height"); //$NON-NLS-1$
+ TransactionalEditingDomain tableDomain = TableEditingDomainUtils.getTableEditingDomain(table);
+ if (tableDomain == null) {
+ return;
+ }
+
+ if (event instanceof ColumnResizeEvent) {
+ // get the index of the first column modified by the user
+ // the assumption is that the user changes only one column at a time in order to resize to its liking
+ int resizedColumnPosition = getRangeStart(event);
+ // get the resized value from this column
+ int newColumnSize = columnHeaderLayerStack.getColumnWidthByPosition(resizedColumnPosition);
+ // get the associated object
+ Object currentColumnObject = getColumnElement(resizedColumnPosition); // INattableModelManager -> ITableAxisElementProvider.getColumnElement
+ if (currentColumnObject instanceof IAxis) {
+ // the object is now the Axis in which the style will be applied
+ IAxis currentColumnIAxis = (IAxis) currentColumnObject;
+ if (currentColumnIAxis.eContainer() != null) {
+ IntValueStyle value = (IntValueStyle) currentColumnIAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.AXIS_WIDTH);
+ if (value != null && value.getIntValue() != newColumnSize) {
+ // Constructs a new request to set the value of a structural feature in a model element
+ SetRequest resizeColumnRequest = new SetRequest(tableDomain, value, NattablestylePackage.eINSTANCE.getIntValueStyle_IntValue(), newColumnSize);
+ // initialize the feature value if none before and replace the value if another existed prior to the resize
+ SetValueCommand resizeColumnCommand = new SetValueCommand(resizeColumnRequest);
+ resizeCommand.add(resizeColumnCommand);
+
+ } else if (value == null && newColumnSize != DefaultSizeUtils.getDefaultCellWidth()) {
+ // the element does not have any predefined width value attached to its resource so we create it
+ value = NattablestyleFactory.eINSTANCE.createIntValueStyle();
+ value.setIntValue(newColumnSize);
+ value.setName(NamedStyleConstants.AXIS_WIDTH);
+ SetRequest initColumnSizeRequest = new SetRequest(tableDomain, currentColumnIAxis, NattablestylePackage.eINSTANCE.getStyledElement_Styles(), value);
+ SetValueCommand resizeColumnCommand = new SetValueCommand(initColumnSizeRequest);
+ resizeCommand.add(resizeColumnCommand);
+
+ }
+ }
+ }
+
+ }
+
+ // the process is the same for this event
+ else if (event instanceof RowResizeEvent) {
+ int resizedRowPosition = getRangeStart(event);
+ int newRowSize = rowHeaderLayerStack.getRowHeightByPosition(resizedRowPosition);
+ Object currentRowObject = getRowElement(resizedRowPosition);
+ if (currentRowObject instanceof IAxis) {
+ IAxis currentRowIAxis = (IAxis) currentRowObject;
+ if (currentRowIAxis.eContainer() != null) {
+ IntValueStyle value = (IntValueStyle) currentRowIAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.AXIS_HEIGHT);
+ if (value != null && value.getIntValue() != newRowSize) {
+ SetRequest resizeRowRequest = new SetRequest(tableDomain, value, NattablestylePackage.eINSTANCE.getIntValueStyle_IntValue(), newRowSize);
+ SetValueCommand resizeRowCommand = new SetValueCommand(resizeRowRequest);
+ resizeCommand.add(resizeRowCommand);
+
+ } else if (value == null && newRowSize != DefaultSizeUtils.getDefaultCellHeight()) {
+ value = NattablestyleFactory.eINSTANCE.createIntValueStyle();
+ value.setIntValue(newRowSize);
+ value.setName(NamedStyleConstants.AXIS_HEIGHT);
+ SetRequest initRowSizeRequest = new SetRequest(tableDomain, currentRowIAxis, NattablestylePackage.eINSTANCE.getStyledElement_Styles(), value);
+ SetValueCommand resizeRowCommand = new SetValueCommand(initRowSizeRequest);
+ resizeCommand.add(resizeRowCommand);
+
+ }
+ }
+ }
+ }
+ if (!resizeCommand.isEmpty()) {
+ tableDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(resizeCommand));
+ }
+
+ }
+ }
+ };
+
+ bodyLayerStack.addLayerListener(resizeAxisListener);
+
+ }
+
+
+ /**
+ * This method is used to get the position of the row or column being modified
+ *
+ * @param event
+ * @return
+ */
+ private int getRangeStart(ILayerEvent event) {
+ int start = -1;
+ if (event instanceof ColumnResizeEvent) {
+ ColumnResizeEvent resizeEvent = (ColumnResizeEvent) event;
+ // only one element is handled at a time so the start value won't be overwritten
+ for (Range current : resizeEvent.getColumnPositionRanges()) {
+ start = current.start;
+ }
+ }
+ if (event instanceof RowResizeEvent) {
+ RowResizeEvent resizeEvent = (RowResizeEvent) event;
+ for (Range current : resizeEvent.getRowPositionRanges()) {
+ start = current.start;
+ }
+ }
+ return start;
+ }
+
+
+ /**
+ * Add a listener to the column's header layer in order to update the model
+ *
+ * @param columnHeaderLayerStack
+ */
+ private void addColumnHeaderResizeListener(final ColumnHeaderLayerStack columnHeaderLayerStack) {
+ resizeColumnHeaderListener = new ILayerListener() {
+
+ @Override
+ public void handleLayerEvent(ILayerEvent event) {
+ if (event instanceof RowResizeEvent) {
+ // get the new values from the index and label headers
+ int newHeaderIndexHeight = columnHeaderLayerStack.getColumnIndexDataLayer().getRowHeightByPosition(0);
+ int newHeaderLabelHeight = columnHeaderLayerStack.getColumnLabelDataLayer().getRowHeightByPosition(0);
+ // get the position of the header being modified
+ int resizedHeaderPosition = getRangeStart(event);
+
+ // verify that the event is handled properly
+ if (resizedHeaderPosition != -1) {
+ final CompositeCommand resizeColumnHeaderCommand = new CompositeCommand("resize ColumnHeader's height"); //$NON-NLS-1$
+ TransactionalEditingDomain tableDomain = TableEditingDomainUtils.getTableEditingDomain(table);
+ // create a blank variable as its contents can change if the table is inverted or not
+ LocalTableHeaderAxisConfiguration localColumnHeaderAxis = null;
+
+ if (!getTable().isInvertAxis()) {
+ if (getTable().getLocalColumnHeaderAxisConfiguration() != null) {
+ localColumnHeaderAxis = getTable().getLocalColumnHeaderAxisConfiguration();
+ } else if (newHeaderIndexHeight != DefaultSizeUtils.getDefaultCellHeight() || newHeaderLabelHeight != DefaultSizeUtils.getDefaultCellHeight()) {
+ TableHeaderAxisConfiguration columnHeaderAxis;
+ // create the blank feature that will host the new local header
+ EStructuralFeature localHeaderFeature = null;
+ columnHeaderAxis = getTable().getTableConfiguration().getColumnHeaderAxisConfiguration();
+ localColumnHeaderAxis = HeaderAxisConfigurationManagementUtils.transformToLocalHeaderConfiguration(columnHeaderAxis);
+ localHeaderFeature = NattablePackage.eINSTANCE.getTable_LocalColumnHeaderAxisConfiguration();
+
+ // commands used to modify the notation file and create the new local header
+ IEditCommandRequest initLocalColumnHeaderAxis = new SetRequest(tableDomain, table, localHeaderFeature, localColumnHeaderAxis);
+ IElementEditService localColumnHeaderAxisProvider = ElementEditServiceUtils.getCommandProvider(table);
+ resizeColumnHeaderCommand.add(localColumnHeaderAxisProvider.getEditCommand(initLocalColumnHeaderAxis));
+ }
+
+ } else {
+ if (getTable().getLocalRowHeaderAxisConfiguration() != null) {
+ // as the axis are inverted the row headers are now the column headers
+ localColumnHeaderAxis = getTable().getLocalRowHeaderAxisConfiguration();
+ } else if (newHeaderIndexHeight != DefaultSizeUtils.getDefaultCellHeight() || newHeaderLabelHeight != DefaultSizeUtils.getDefaultCellHeight()) {
+ // the behavior is now the same as usual
+ TableHeaderAxisConfiguration columnHeaderAxis;
+ EStructuralFeature localHeaderFeature = null;
+ columnHeaderAxis = getTable().getTableConfiguration().getRowHeaderAxisConfiguration();
+ localColumnHeaderAxis = HeaderAxisConfigurationManagementUtils.transformToLocalHeaderConfiguration(columnHeaderAxis);
+ localHeaderFeature = NattablePackage.eINSTANCE.getTable_LocalRowHeaderAxisConfiguration();
+
+ IEditCommandRequest initLocalColumnHeaderAxis = new SetRequest(tableDomain, table, localHeaderFeature, localColumnHeaderAxis);
+ IElementEditService localColumnHeaderAxisProvider = ElementEditServiceUtils.getCommandProvider(table);
+ resizeColumnHeaderCommand.add(localColumnHeaderAxisProvider.getEditCommand(initLocalColumnHeaderAxis));
+ }
+
+ }
+
+
+ // manipulate the index layer and as the variables are now fixed this part is common to both the inverted and not inverted case
+ if (resizedHeaderPosition == 0 && localColumnHeaderAxis != null) {
+ IntValueStyle valueIndex = (IntValueStyle) localColumnHeaderAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.COLUMN_INDEX_HEIGHT);
+ if (valueIndex != null && valueIndex.getIntValue() != newHeaderIndexHeight) {
+ // the variable to be edited already exists
+ SetRequest resizeRowHeaderIndex = new SetRequest(tableDomain, valueIndex, NattablestylePackage.eINSTANCE.getIntValueStyle_IntValue(), newHeaderIndexHeight);
+ SetValueCommand resizeColumnHeaderIndexCommand = new SetValueCommand(resizeRowHeaderIndex);
+ resizeColumnHeaderCommand.add(resizeColumnHeaderIndexCommand);
+ } else if (valueIndex == null && newHeaderIndexHeight != DefaultSizeUtils.getDefaultCellHeight()) {
+ // if the variable does not exist, it is created
+ valueIndex = NattablestyleFactory.eINSTANCE.createIntValueStyle();
+ valueIndex.setIntValue(newHeaderIndexHeight);
+ valueIndex.setName(NamedStyleConstants.COLUMN_INDEX_HEIGHT);
+
+ SetRequest initRowHeaderIndexSizeRequest = new SetRequest(tableDomain, localColumnHeaderAxis, NattablestylePackage.eINSTANCE.getStyledElement_Styles(), valueIndex);
+ SetValueCommand resizeColumnHeaderIndexCommand = new SetValueCommand(initRowHeaderIndexSizeRequest);
+ resizeColumnHeaderCommand.add(resizeColumnHeaderIndexCommand);
+ }
+ }
+
+ // manipulate the label layer and as the variables are now fixed this part is common to both the inverted and not inverted case
+ if (resizedHeaderPosition == 1 && localColumnHeaderAxis != null) {
+ IntValueStyle valueLabel = (IntValueStyle) localColumnHeaderAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.COLUMN_LABEL_HEIGHT);
+ if (valueLabel != null && valueLabel.getIntValue() != newHeaderLabelHeight) {
+ // the variable to be edited already exists
+ SetRequest resizeRowHeaderLabel = new SetRequest(tableDomain, valueLabel, NattablestylePackage.eINSTANCE.getIntValueStyle_IntValue(), newHeaderLabelHeight);
+ SetValueCommand resizeRowHeaderLabelCommand = new SetValueCommand(resizeRowHeaderLabel);
+ resizeColumnHeaderCommand.add(resizeRowHeaderLabelCommand);
+ } else if (valueLabel == null && newHeaderLabelHeight != DefaultSizeUtils.getDefaultCellHeight()) {
+ // if the variable does not exist, it is created
+ valueLabel = NattablestyleFactory.eINSTANCE.createIntValueStyle();
+ valueLabel.setIntValue(newHeaderLabelHeight);
+ valueLabel.setName(NamedStyleConstants.COLUMN_LABEL_HEIGHT);
+
+ SetRequest initRowHeaderLabelSizeRequest = new SetRequest(tableDomain, localColumnHeaderAxis, NattablestylePackage.eINSTANCE.getStyledElement_Styles(), valueLabel);
+ SetValueCommand resizeRowHeaderLabelCommand = new SetValueCommand(initRowHeaderLabelSizeRequest);
+ resizeColumnHeaderCommand.add(resizeRowHeaderLabelCommand);
+ }
+ }
+
+ // all the commands are executed and the variables and their local headers are created or updated
+ if (resizeColumnHeaderCommand.canExecute() && !resizeColumnHeaderCommand.isEmpty()) {
+ tableDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(resizeColumnHeaderCommand));
+ }
+ }
+ }
+ }
+ };
+
+ columnHeaderLayerStack.addLayerListener(resizeColumnHeaderListener);
+
+ }
+
+
+ /**
+ * Add a listener to the row's header layer in order to update the model
+ *
+ * @param rowHeaderLayerStack
+ */
+ private void addRowHeaderResizeListener(final RowHeaderLayerStack rowHeaderLayerStack) {
+ resizeRowHeaderListener = new ILayerListener() {
+
+ // the behavior of this method is exactly the same as the one before
+ @Override
+ public void handleLayerEvent(ILayerEvent event) {
+ if (event instanceof ColumnResizeEvent) {
+ int newHeaderIndexWidth = rowHeaderLayerStack.getRowIndexDataLayer().getColumnWidthByPosition(0);
+ int newHeaderLabelWidth = rowHeaderLayerStack.getRowLabelDataLayer().getColumnWidthByPosition(0);
+ int resizedHeaderPosition = getRangeStart(event);
+
+ if (resizedHeaderPosition != -1) {
+ final CompositeCommand resizeRowHeaderCommand = new CompositeCommand("resize RowHeader's width"); //$NON-NLS-1$
+ TransactionalEditingDomain tableDomain = TableEditingDomainUtils.getTableEditingDomain(table);
+ if (tableDomain == null) {
+ return;
+ }
+ LocalTableHeaderAxisConfiguration localRowHeaderAxis = null;
+
+
+ if (!getTable().isInvertAxis()) {
+ if (getTable().getLocalRowHeaderAxisConfiguration() != null) {
+ localRowHeaderAxis = getTable().getLocalRowHeaderAxisConfiguration();
+ } else if (newHeaderIndexWidth != DefaultSizeUtils.getDefaultRowHeaderWidth() || newHeaderLabelWidth != DefaultSizeUtils.getDefaultRowHeaderWidth()) {
+ TableHeaderAxisConfiguration rowHeaderAxis;
+ EStructuralFeature localHeaderFeature = null;
+ rowHeaderAxis = getTable().getTableConfiguration().getRowHeaderAxisConfiguration();
+ localRowHeaderAxis = HeaderAxisConfigurationManagementUtils.transformToLocalHeaderConfiguration(rowHeaderAxis);
+ localHeaderFeature = NattablePackage.eINSTANCE.getTable_LocalRowHeaderAxisConfiguration();
+
+ IEditCommandRequest initLocalRowHeaderAxis = new SetRequest(tableDomain, table, localHeaderFeature, localRowHeaderAxis);
+ IElementEditService localRowHeaderAxisProvider = ElementEditServiceUtils.getCommandProvider(table);
+ resizeRowHeaderCommand.add(localRowHeaderAxisProvider.getEditCommand(initLocalRowHeaderAxis));
+ }
+
+ } else {
+ if (getTable().getLocalColumnHeaderAxisConfiguration() != null) {
+ localRowHeaderAxis = getTable().getLocalColumnHeaderAxisConfiguration();
+ } else if (newHeaderIndexWidth != DefaultSizeUtils.getDefaultRowHeaderWidth() || newHeaderLabelWidth != DefaultSizeUtils.getDefaultRowHeaderWidth()) {
+ TableHeaderAxisConfiguration rowHeaderAxis;
+ EStructuralFeature localHeaderFeature = null;
+ rowHeaderAxis = getTable().getTableConfiguration().getColumnHeaderAxisConfiguration();
+ localRowHeaderAxis = HeaderAxisConfigurationManagementUtils.transformToLocalHeaderConfiguration(rowHeaderAxis);
+ localHeaderFeature = NattablePackage.eINSTANCE.getTable_LocalColumnHeaderAxisConfiguration();
+
+ IEditCommandRequest initLocalRowHeaderAxis = new SetRequest(tableDomain, table, localHeaderFeature, localRowHeaderAxis);
+ IElementEditService localRowHeaderAxisProvider = ElementEditServiceUtils.getCommandProvider(table);
+ resizeRowHeaderCommand.add(localRowHeaderAxisProvider.getEditCommand(initLocalRowHeaderAxis));
+ }
+
+ }
+
+ if (resizedHeaderPosition == 0 && localRowHeaderAxis != null) {
+ IntValueStyle valueIndex = (IntValueStyle) localRowHeaderAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.ROW_INDEX_WIDTH);
+ if (valueIndex != null && valueIndex.getIntValue() != newHeaderIndexWidth) {
+ SetRequest resizeRowHeaderIndex = new SetRequest(tableDomain, valueIndex, NattablestylePackage.eINSTANCE.getIntValueStyle_IntValue(), newHeaderIndexWidth);
+ SetValueCommand resizeRowHeaderIndexCommand = new SetValueCommand(resizeRowHeaderIndex);
+ resizeRowHeaderCommand.add(resizeRowHeaderIndexCommand);
+ } else if (valueIndex == null && newHeaderIndexWidth != DefaultSizeUtils.getDefaultRowHeaderWidth()) {
+ valueIndex = NattablestyleFactory.eINSTANCE.createIntValueStyle();
+ valueIndex.setIntValue(newHeaderIndexWidth);
+ valueIndex.setName(NamedStyleConstants.ROW_INDEX_WIDTH);
+
+ SetRequest initRowHeaderIndexSizeRequest = new SetRequest(tableDomain, localRowHeaderAxis, NattablestylePackage.eINSTANCE.getStyledElement_Styles(), valueIndex);
+ SetValueCommand resizeRowHeaderIndexCommand = new SetValueCommand(initRowHeaderIndexSizeRequest);
+ resizeRowHeaderCommand.add(resizeRowHeaderIndexCommand);
+ }
+ }
+
+ if (resizedHeaderPosition == 1 && localRowHeaderAxis != null) {
+ IntValueStyle valueLabel = (IntValueStyle) localRowHeaderAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.ROW_LABEL_WIDTH);
+ if (valueLabel != null && valueLabel.getIntValue() != newHeaderLabelWidth) {
+ SetRequest resizeRowHeaderLabel = new SetRequest(tableDomain, valueLabel, NattablestylePackage.eINSTANCE.getIntValueStyle_IntValue(), newHeaderLabelWidth);
+ SetValueCommand resizeRowHeaderLabelCommand = new SetValueCommand(resizeRowHeaderLabel);
+ resizeRowHeaderCommand.add(resizeRowHeaderLabelCommand);
+ } else if (valueLabel == null && newHeaderLabelWidth != DefaultSizeUtils.getDefaultRowHeaderWidth()) {
+ valueLabel = NattablestyleFactory.eINSTANCE.createIntValueStyle();
+ valueLabel.setIntValue(newHeaderLabelWidth);
+ valueLabel.setName(NamedStyleConstants.ROW_LABEL_WIDTH);
+
+ SetRequest initRowHeaderLabelSizeRequest = new SetRequest(tableDomain, localRowHeaderAxis, NattablestylePackage.eINSTANCE.getStyledElement_Styles(), valueLabel);
+ SetValueCommand resizeRowHeaderLabelCommand = new SetValueCommand(initRowHeaderLabelSizeRequest);
+ resizeRowHeaderCommand.add(resizeRowHeaderLabelCommand);
+ }
+ }
+
+
+ if (resizeRowHeaderCommand.canExecute() && !resizeRowHeaderCommand.isEmpty()) {
+ tableDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(resizeRowHeaderCommand));
+ }
+ }
+ }
+ }
+ };
+
+ rowHeaderLayerStack.addLayerListener(resizeRowHeaderListener);
+
+ }
+
+ /**
+ *
+ * @param event
+ * an event
+ * @return
+ * a LocationValue for the point, which contains informations about this location (TableGridRegion, row and column index, row and column
+ * elements, the cell, the point and its translation).
+ * Some of these values can be <code>null</code> or not depending of the region of the table
+ */
+ @Override
+ public LocationValue getLocationInTheTable(final Point absolutePoint) {
+ final Point widgetPoint = this.natTable.toControl(absolutePoint.x, absolutePoint.y);
+ TableGridRegion kind = TableGridRegion.UNKNOWN;
+ int columnPosition = this.natTable.getColumnPositionByX(widgetPoint.x);
+ int columnIndex = this.natTable.getColumnIndexByPosition(columnPosition);
+ int rowPosition = this.natTable.getRowPositionByY(widgetPoint.y);
+ int rowIndex = this.natTable.getRowIndexByPosition(rowPosition);
+ final ILayerCell cell = this.natTable.getCellByPosition(columnPosition, rowPosition);
+ Object columnObject = null;
+ Object rowObject = null;
+ if (rowIndex == -1 && columnIndex == -1) {
+ kind = TableGridRegion.UNKNOWN;
+ } else if (rowIndex == -1) {
+ kind = TableGridRegion.AFTER_ROW_HEADER;
+ } else if (columnIndex == -1) {
+ kind = TableGridRegion.AFTER_COLUMN_HEADER;
+ } else {
+ if (cell != null) {
+ LabelStack label = cell.getConfigLabels();
+ if (label.hasLabel(GridRegion.ROW_HEADER)) {
+ kind = TableGridRegion.ROW_HEADER;
+
+ } else if (label.hasLabel(GridRegion.COLUMN_HEADER)) {
+ kind = TableGridRegion.COLUMN_HEADER;
+
+ } else if (label.hasLabel(GridRegion.CORNER)) {
+ kind = TableGridRegion.CORNER;
+ } else if (label.hasLabel(GridRegion.BODY)) {
+ kind = TableGridRegion.CELL;
+ columnObject = getColumnElement(columnIndex);
+ rowObject = getRowElement(rowIndex);
+ }
+ }
+ }
+ return new LocationValue(absolutePoint, widgetPoint, kind, cell, columnIndex, rowIndex, columnObject, rowObject);
+ }
+
+
+ public GridLayer getGridLayer() {
+ return this.gridLayer;
+ }
+
+ /**
+ *
+ * @see org.eclipse.papyrus.infra.nattable.manager.table.INattableModelManager#print()
+ *
+ */
+ @Override
+ public void print() {
+ this.natTable.doCommand(new TurnViewportOffCommand());
+ this.natTable.doCommand(new PrintCommand(this.natTable.getConfigRegistry(), this.natTable.getShell()));
+ this.natTable.doCommand(new TurnViewportOnCommand());
+ }
+
+ /**
+ *
+ * @see org.eclipse.papyrus.infra.nattable.manager.table.INattableModelManager#selectAll()
+ *
+ */
+ @Override
+ public void selectAll() {
+ this.natTable.doCommand(new SelectAllCommand());
+ }
+
+ /**
+ *
+ * @see org.eclipse.papyrus.infra.nattable.manager.table.INattableModelManager#exportToXLS()
+ *
+ */
+ @Override
+ public void exportToXLS() {
+ this.natTable.doCommand(new ExportCommand(this.natTable.getConfigRegistry(), this.natTable.getShell()));
+ }
+
+ public void copyToClipboard() {
+ this.natTable.doCommand(new CopyDataToClipboardCommand("\t", System.getProperty("line.separator"), this.natTable.getConfigRegistry())); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ /**
+ *
+ * @see org.eclipse.papyrus.infra.nattable.manager.table.INattableModelManager#getBodyLayerStack()
+ *
+ * @return
+ */
+ @Override
+ public BodyLayerStack getBodyLayerStack() {
+ return this.bodyLayerStack;
+ }
+
+ @Override
+ public void dispose() {
+ if (this.bodyDataProvider != null) {
+ this.bodyLayerStack.removeLayerListener(resizeAxisListener);
+ this.bodyDataProvider.dispose();
+ }
+ if (this.rowHeaderDataProvider != null) {
+ this.rowHeaderLayerStack.removeLayerListener(resizeRowHeaderListener);
+ this.rowHeaderDataProvider.dispose();
+ }
+ if (this.columnHeaderDataProvider != null) {
+ this.columnHeaderLayerStack.removeLayerListener(resizeColumnHeaderListener);
+ this.columnHeaderDataProvider.dispose();
+ }
+
+
+ if (this.tableEditingDomain != null && this.resourceSetListener != null) {
+ this.tableEditingDomain.removeResourceSetListener(this.resourceSetListener);
+ }
+ if (this.filterStrategy instanceof IDisposable) {
+ ((IDisposable) this.filterStrategy).dispose();
+ }
+ this.tableEditingDomain = null;
+ this.contextEditingDomain = null;
+ this.tableContext = null;
+ }
+
+ public EObject getTableContext() {
+ return this.tableContext;
+ }
+
+ @Override
+ public Table getTable() {
+ return this.table;
+ }
+
+ /**
+ *
+ * @return
+ * the created sort model to use for
+ */
+ protected IPapyrusSortModel getRowSortModel() {
+ if (this.rowSortModel == null) {
+ this.rowSortModel = new ColumnSortModel(this);
+ }
+ return this.rowSortModel;
+ }
+
+ /**
+ *
+ * Handles the selections from the model explorer to the table when the link is activated
+ *
+ * @see org.eclipse.papyrus.infra.nattable.utils.AxisUtils
+ * @see org.eclipse.nebula.widgets.nattable.selection.SelectionLayer
+ *
+ * @param elementList
+ */
+ @Override
+ public boolean revealElement(Object element) {
+
+ return revealElement(Collections.singleton(element));
+ }
+
+ @Override
+ public boolean revealElement(Collection<?> elements) {
+
+ boolean selectObject = false;
+ SelectionLayer selectionLayer = bodyLayerStack.getSelectionLayer();
+ List<Object> rowObjects = getRowElementsList();
+ List<Object> columnObjects = getColumnElementsList();
+
+ // clear the selectionLayer to avoid the previous selections to mess with the current
+ selectionLayer.clear();
+
+ for (int rowIndex = 0; rowIndex < rowObjects.size(); rowIndex++) {
+ List<Object> toFind = new ArrayList<Object>(elements);
+ for (Object object : elements) {
+ Object realObject = AxisUtils.getRepresentedElement(object);
+ if (!realObject.equals(object)) { // getRepresentedElement can return the axis itself
+ toFind.add(realObject);
+ }
+ }
+
+ Object currentAxisObject = rowObjects.get(rowIndex);
+ Object currentRealObject = AxisUtils.getRepresentedElement(currentAxisObject);
+ if (toFind.contains(currentRealObject)) {
+ selectionLayer.doCommand(new SelectRowsCommand(selectionLayer, 0, rowIndex, false, true));
+ // we remove the found object from the cloned elementList as they are already selected
+ toFind.remove(currentRealObject);
+ selectObject = true;
+ }
+ if (toFind.isEmpty()) {
+ // all objects are selected
+ return selectObject;
+ }
+ }
+
+ for (int columnIndex = 0; columnIndex < columnObjects.size(); columnIndex++) {
+ List<Object> toFind = new ArrayList<Object>(elements);
+ for (Object object : elements) {
+ Object realObject = AxisUtils.getRepresentedElement(object);
+ if (!realObject.equals(object)) { // getRepresentedElement can return the axis itself
+ toFind.add(realObject);
+ }
+ }
+
+ Object currentAxisObject = columnObjects.get(columnIndex);
+ Object currentRealObject = AxisUtils.getRepresentedElement(currentAxisObject);
+ if (toFind.contains(currentRealObject)) {
+ selectionLayer.doCommand(new SelectColumnCommand(selectionLayer, columnIndex, 0, false, true));
+ // we remove the found object from the cloned elementList as they are already selected
+ toFind.remove(currentRealObject);
+ selectObject = true;
+ }
+ if (toFind.isEmpty()) {
+ // all objects are selected
+ return selectObject;
+ }
+ }
+
+ return selectObject;
+ }
+
+
+ /**
+ *
+ * Handles the initialization of the table's body resize styles, on opening, based on the previous changes made by the user.
+ *
+ */
+ protected void initTableAxis() {
+ DataLayer tableBodyLayer = getBodyLayerStack().getBodyDataLayer();
+ // notation lists represent the elements that are instantiated in their table instance inside the model.notation file
+ List<IAxis> notationColumnsAxisList = getTable().getCurrentColumnAxisProvider().getAxis();
+ List<IAxis> notationRowsAxisList = getTable().getCurrentRowAxisProvider().getAxis();
+ // actual number of displayed elements when looking at the table editor
+ int actualColumnAxisElements = getTableAxisElementProvider().getColumnElementsList().size();
+ int actualRowAxisElements = getTableAxisElementProvider().getRowElementsList().size();
+ // value, width or height, of the resized column or row
+ IntValueStyle value = null;
+
+ // we go through all the elements to find those which have been modified
+ for (int index = 0; index < notationColumnsAxisList.size(); index++) {
+ IAxis currentColumnAxis = notationColumnsAxisList.get(index);
+ // we need both to detect and use the correct value, width or height, of the handled element as the user could have modified the table when the axis was inverted
+ if (!getTable().isInvertAxis()) {
+ int axisWidth = tableBodyLayer.getColumnWidthByPosition(index);
+ value = (IntValueStyle) currentColumnAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.AXIS_WIDTH);
+ if (value != null) {
+ // we set the size of the axis in the graphical representation
+ tableBodyLayer.setColumnWidthByPosition(index, value.getIntValue());
+ } else if (axisWidth != DefaultSizeUtils.getDefaultCellWidth()) {
+ // resets the size in case of an undo to the default table
+ tableBodyLayer.setColumnWidthByPosition(index, DefaultSizeUtils.getDefaultCellWidth());
+ }
+ } else {
+ int axisHeight = tableBodyLayer.getRowHeightByPosition(index);
+ value = (IntValueStyle) currentColumnAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.AXIS_HEIGHT);
+ if (value != null) {
+ tableBodyLayer.setRowHeightByPosition(index, value.getIntValue());
+ } else if (axisHeight != DefaultSizeUtils.getDefaultCellHeight()) {
+ tableBodyLayer.setRowHeightByPosition(index, DefaultSizeUtils.getDefaultCellHeight());
+ }
+ }
+ }
+
+ for (int index = 0; index < notationRowsAxisList.size(); index++) {
+ IAxis currentRowAxis = notationRowsAxisList.get(index);
+ if (!getTable().isInvertAxis()) {
+ int axisHeight = tableBodyLayer.getRowHeightByPosition(index);
+ value = (IntValueStyle) currentRowAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.AXIS_HEIGHT);
+ if (value != null) {
+ tableBodyLayer.setRowHeightByPosition(index, value.getIntValue());
+ } else if (axisHeight != DefaultSizeUtils.getDefaultCellHeight()) {
+ tableBodyLayer.setRowHeightByPosition(index, DefaultSizeUtils.getDefaultCellHeight());
+ }
+ } else {
+ int axisWidth = tableBodyLayer.getColumnWidthByPosition(index);
+ value = (IntValueStyle) currentRowAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.AXIS_WIDTH);
+ if (value != null) {
+ tableBodyLayer.setColumnWidthByPosition(index, value.getIntValue());
+ } else if (axisWidth != DefaultSizeUtils.getDefaultCellWidth()) {
+ tableBodyLayer.setColumnWidthByPosition(index, DefaultSizeUtils.getDefaultCellWidth());
+ }
+ }
+ }
+
+ // this method is used to resize by default. In the actual state, only the rows, representing the table's core elements, are missing from the notation file
+ if (notationRowsAxisList.size() == 0) {
+ if (getTable().isInvertAxis()) {
+ for (int index = 0; index < actualColumnAxisElements; index++) {
+ tableBodyLayer.setColumnWidthByPosition(index, DefaultSizeUtils.getDefaultCellWidth());
+ }
+
+ } else if (!getTable().isInvertAxis()) {
+ for (int index = 0; index < actualRowAxisElements; index++) {
+ tableBodyLayer.setRowHeightByPosition(index, DefaultSizeUtils.getDefaultCellHeight());
+ }
+
+ }
+ }
+
+ }
+
+
+ /**
+ *
+ * Handles the initialization of the table's headers resize styles, on opening, based on the previous changes made by the user.
+ *
+ */
+ protected void initTableHeaders() {
+ DataLayer tableRowIndexHeaderLayer = rowHeaderLayerStack.getRowIndexDataLayer();
+ DataLayer tableRowLabelHeaderLayer = rowHeaderLayerStack.getRowLabelDataLayer();
+ DataLayer tableColumnIndexHeaderLayer = columnHeaderLayerStack.getColumnIndexDataLayer();
+ DataLayer tableColumnLabelHeaderLayer = columnHeaderLayerStack.getColumnLabelDataLayer();
+ AbstractHeaderAxisConfiguration rowHeader = HeaderAxisConfigurationManagementUtils.getRowAbstractHeaderAxisConfigurationUsedInTable(getTable());
+ AbstractHeaderAxisConfiguration columnHeader = HeaderAxisConfigurationManagementUtils.getColumnAbstractHeaderAxisConfigurationUsedInTable(getTable());
+
+ // handles the initialization for the column headers,
+ // check if the the user saved the table with an inverted axis or not as it would change the type of style required for resize,
+ // it is important to note that AbstractHeaderAxisConfigurationUsedInTable already handles the invertAxis parameter to return the correct Axis (column/row)
+ IntValueStyle valueColumnIndex = (IntValueStyle) columnHeader.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.COLUMN_INDEX_HEIGHT);
+ // check if the user has previously entered a value for it, if not resets to the default
+ if (valueColumnIndex != null) {
+ tableColumnIndexHeaderLayer.setRowHeightByPosition(0, valueColumnIndex.getIntValue());
+ } else {
+ tableColumnIndexHeaderLayer.setRowHeightByPosition(0, DefaultSizeUtils.getDefaultCellHeight());
+ }
+
+ // same here
+ IntValueStyle valueColumnLabel = (IntValueStyle) columnHeader.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.COLUMN_LABEL_HEIGHT);
+ if (valueColumnLabel != null) {
+ tableColumnLabelHeaderLayer.setRowHeightByPosition(0, valueColumnLabel.getIntValue());
+ } else {
+ tableColumnLabelHeaderLayer.setRowHeightByPosition(0, DefaultSizeUtils.getDefaultCellHeight());
+ }
+
+ // same behavior but with the row headers
+ IntValueStyle valueRowIndex = (IntValueStyle) rowHeader.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.ROW_INDEX_WIDTH);
+ if (valueRowIndex != null) {
+ tableRowIndexHeaderLayer.setColumnWidthByPosition(0, valueRowIndex.getIntValue());
+ } else {
+ tableRowIndexHeaderLayer.setColumnWidthByPosition(0, DefaultSizeUtils.getDefaultRowHeaderWidth());
+ }
+
+ IntValueStyle valueRowLabel = (IntValueStyle) rowHeader.getNamedStyle(NattablestylePackage.eINSTANCE.getIntValueStyle(), NamedStyleConstants.ROW_LABEL_WIDTH);
+ if (valueRowLabel != null) {
+ tableRowLabelHeaderLayer.setColumnWidthByPosition(0, valueRowLabel.getIntValue());
+ } else {
+ tableRowLabelHeaderLayer.setColumnWidthByPosition(0, DefaultSizeUtils.getDefaultRowHeaderWidth());
+ }
+
+ }
+
+
+ /**
+ *
+ * Handles the initialization of the table's cell merges, on opening, based on the previous changes made by the user.
+ *
+ */
+ protected void initTableMerge() {
+ // clears the previous spanning (== merge) behavior that would interfere with the new one
+ clearTableSpan();
+
+ // the four booleans that indicate the type of merge currently used in the table: all columns, all rows, selected rows, selected columns
+ BooleanValueStyle valueRow = (BooleanValueStyle) HeaderAxisConfigurationManagementUtils.getRowAbstractHeaderAxisConfigurationUsedInTable(getTable())
+ .getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_ROWS);
+ BooleanValueStyle valueColumn = (BooleanValueStyle) HeaderAxisConfigurationManagementUtils.getColumnAbstractHeaderAxisConfigurationUsedInTable(getTable())
+ .getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_COLUMNS);
+ boolean mergeSelectedRows = getToMergeRowBoolean();
+ boolean mergeSelectedColumns = getToMergeColumnBoolean();
+
+ // notation lists represent the elements that are instantiated in their table instance inside the model.notation file
+ List<IAxis> notationColumnsAxisList = getTable().getCurrentColumnAxisProvider().getAxis();
+ List<IAxis> notationRowsAxisList = getTable().getCurrentRowAxisProvider().getAxis();
+ // list of the selected Axis indexes
+ List<Integer> selectedAxisIndex = new ArrayList<Integer>();
+
+ // the two conditions below handle the merge of all the columns/rows
+ if (valueRow != null && valueRow.isBooleanValue()) {
+ // it is important to note that AbstractHeaderAxisConfigurationUsedInTable already handles the invertAxis parameter to return the correct Header (column/row)
+ bodyLayerStack.getBodyLayerSpanProvider().setAutoColumnSpan(true);
+ }
+ if (valueColumn != null && valueColumn.isBooleanValue()) {
+ bodyLayerStack.getBodyLayerSpanProvider().setAutoRowSpan(true);
+ }
+
+ // the two conditions below handle the merge of the selected columns/rows
+ if (mergeSelectedRows) {
+ // check the axis' boolean to know if it has to be merged or not in the selection
+ if (!getTable().isInvertAxis()) {
+ for (int index = 0; index < notationRowsAxisList.size(); index++) {
+ IAxis currentAxis = notationRowsAxisList.get(index);
+ BooleanValueStyle currentAxisMergeBoolean = (BooleanValueStyle) currentAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_IN_SELECTED_ROWS);
+ if (currentAxisMergeBoolean != null && currentAxisMergeBoolean.isBooleanValue()) {
+ selectedAxisIndex.add(index);
+ }
+ }
+ } else {
+ // this behavior checks the merge boolean, if any, as the rows are now columns and vice versa
+ for (int index = 0; index < notationColumnsAxisList.size(); index++) {
+ IAxis currentAxis = notationColumnsAxisList.get(index);
+ BooleanValueStyle currentAxisMergeBoolean = (BooleanValueStyle) currentAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_IN_SELECTED_ROWS);
+ if (currentAxisMergeBoolean != null && currentAxisMergeBoolean.isBooleanValue()) {
+ selectedAxisIndex.add(index);
+ }
+ }
+ }
+
+ // the spanning can now be set correctly
+ bodyLayerStack.getBodyLayerSpanProvider().setAutoColumnSpan(true);
+ bodyLayerStack.getBodyLayerSpanProvider().addAutoSpanningRowPositions(selectedAxisIndex.toArray(new Integer[selectedAxisIndex.size()]));
+ }
+ // same behavior for the column axis
+ if (mergeSelectedColumns) {
+ if (!getTable().isInvertAxis()) {
+ for (int index = 0; index < notationColumnsAxisList.size(); index++) {
+ IAxis currentAxis = notationColumnsAxisList.get(index);
+ BooleanValueStyle currentAxisMergeBoolean = (BooleanValueStyle) currentAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_IN_SELECTED_COLUMNS);
+ if (currentAxisMergeBoolean != null && currentAxisMergeBoolean.isBooleanValue()) {
+ selectedAxisIndex.add(index);
+ }
+ }
+ } else {
+ for (int index = 0; index < notationRowsAxisList.size(); index++) {
+ IAxis currentAxis = notationRowsAxisList.get(index);
+ BooleanValueStyle currentAxisMergeBoolean = (BooleanValueStyle) currentAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_IN_SELECTED_COLUMNS);
+ if (currentAxisMergeBoolean != null && currentAxisMergeBoolean.isBooleanValue()) {
+ selectedAxisIndex.add(index);
+ }
+ }
+ }
+
+ bodyLayerStack.getBodyLayerSpanProvider().setAutoRowSpan(true);
+ bodyLayerStack.getBodyLayerSpanProvider().addAutoSpanningColumnPositions(selectedAxisIndex.toArray(new Integer[selectedAxisIndex.size()]));
+ }
+ }
+
+
+ /**
+ * Clears the merge behavior currently used in the table
+ */
+ protected void clearTableSpan() {
+ bodyLayerStack.getBodyLayerSpanProvider().clearAutoSpanningColumnPositions();
+ bodyLayerStack.getBodyLayerSpanProvider().clearAutoSpanningRowPositions();
+ bodyLayerStack.getBodyLayerSpanProvider().setAutoColumnSpan(false);
+ bodyLayerStack.getBodyLayerSpanProvider().setAutoRowSpan(false);
+ }
+
+
+ /**
+ *
+ * @return
+ * The boolean indicating that some row axis are to be merged in the selection
+ */
+ protected boolean getToMergeRowBoolean() {
+ // for(IAxis currentAxis : getTable().getCurrentRowAxisProvider().getAxis()) {
+ // the above test does not allow a quick switch between invertAxis and not as the provider will deliver the same list in both states
+ for (Object currentObject : getRowElementsList()) {
+ if (currentObject instanceof IAxis) {
+ IAxis currentAxis = (IAxis) currentObject;
+ BooleanValueStyle axisToMerge = (BooleanValueStyle) currentAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_IN_SELECTED_ROWS);
+ if (axisToMerge != null && axisToMerge.isBooleanValue()) {
+ // one axis has a merge boolean to true hence the table was previously merged
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ /**
+ *
+ * @return
+ * The boolean indicating that some column axis are to be merged in the selection
+ */
+ protected boolean getToMergeColumnBoolean() {
+ // for(IAxis currentAxis : getTable().getCurrentColumnAxisProvider().getAxis()) {
+ // the above test does not allow a quick switch between invertAxis and not as the provider will deliver the same list in both states
+ for (Object currentObject : getColumnElementsList()) {
+ if (currentObject instanceof IAxis) {
+ IAxis currentAxis = (IAxis) currentObject;
+ BooleanValueStyle axisToMerge = (BooleanValueStyle) currentAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_IN_SELECTED_COLUMNS);
+ if (axisToMerge != null && axisToMerge.isBooleanValue()) {
+ // one axis has a merge boolean to true hence the table was previously merged
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ /**
+ *
+ * @return
+ * The boolean indicating if the toggle of the currently used menu is to be set to true or not.
+ * i.e. if the current selection is the same that the previously merged selection
+ */
+ protected boolean getToggleStateSelectedRows() {
+ // the size of the selection used to see if an axis has been selected
+ int selectionSize = bodyLayerStack.getSelectionLayer().getFullySelectedRowPositions().length;
+ // fetch the merge booleans of the selected rows and return false if the selection does not match the previously merged rows
+ for (int index : bodyLayerStack.getSelectionLayer().getFullySelectedRowPositions()) {
+ Object currentObject = getRowElement(index);
+ if (getRowElement(index) instanceof IAxis) {
+ IAxis currentAxis = (IAxis) currentObject;
+ BooleanValueStyle axisToMerge = (BooleanValueStyle) currentAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_IN_SELECTED_ROWS);
+ if ((axisToMerge != null && !axisToMerge.isBooleanValue()) || (axisToMerge == null)) {
+ return false;
+ }
+ }
+ }
+
+ // as the user may have selected only a cell or a column, those cases must be taken into account
+ if (selectionSize > 0) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ *
+ * @return
+ * The boolean indicating if the toggle of the currently used menu is to be set to true or not.
+ * i.e. if the current selection is the same that the previously merged selection
+ */
+ protected boolean getToggleStateSelectedColumns() {
+ // the size of the selection used to see if an axis has been selected
+ int selectionSize = bodyLayerStack.getSelectionLayer().getFullySelectedColumnPositions().length;
+ // fetch the merge booleans of the selected rows and return false if the selection does not match the previously merged columns
+ for (int index : bodyLayerStack.getSelectionLayer().getFullySelectedColumnPositions()) {
+ Object currentObject = getColumnElement(index);
+ if (getColumnElement(index) instanceof IAxis) {
+ IAxis currentAxis = (IAxis) currentObject;
+ BooleanValueStyle axisToMerge = (BooleanValueStyle) currentAxis.getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_IN_SELECTED_COLUMNS);
+ if ((axisToMerge != null && !axisToMerge.isBooleanValue()) || (axisToMerge == null)) {
+ return false;
+ }
+ }
+ }
+
+ // as the user may have selected only a cell or a column, those cases must be taken into account
+ if (selectionSize > 0) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ *
+ * @return
+ * The boolean indicating if the toggle of the currently used menu is to be set to true or not.
+ * i.e. if the current selection is the same that the previously merged selection
+ */
+ protected boolean getToggleStateAllRows() {
+ BooleanValueStyle mergeRows = (BooleanValueStyle) HeaderAxisConfigurationManagementUtils.getRowAbstractHeaderAxisConfigurationUsedInTable(getTable())
+ .getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_ROWS);
+ if (mergeRows != null && mergeRows.isBooleanValue()) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ * this method is used to update the state of the toggle actions for table
+ */
+ protected void updateToggleActionState() {
+ final ICommandService commandService = EclipseCommandUtils.getCommandService();
+ if (commandService != null) {
+ final AbstractHeaderAxisConfiguration columnAxisConfiguration = HeaderAxisConfigurationManagementUtils.getColumnAbstractHeaderAxisConfigurationUsedInTable(getTable());
+
+ // update the header configuration
+ org.eclipse.core.commands.Command command = commandService.getCommand(CommandIds.COMMAND_COLUMN_DISPLAY_FILTER_ID);
+ EclipseCommandUtils.updateToggleCommandState(command, columnAxisConfiguration.isDisplayFilter());
+ }
+ }
+
+ /**
+ *
+ * @return
+ * The boolean indicating if the toggle of the currently used menu is to be set to true or not.
+ * i.e. if the current selection is the same that the previously merged selection
+ */
+ protected boolean getToggleStateAllColumns() {
+ BooleanValueStyle mergeColumns = (BooleanValueStyle) HeaderAxisConfigurationManagementUtils.getColumnAbstractHeaderAxisConfigurationUsedInTable(getTable())
+ .getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.MERGE_COLUMNS);
+ if (mergeColumns != null && mergeColumns.isBooleanValue()) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ /**
+ *
+ * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
+ *
+ * @param adapter
+ * @return
+ */
+ @SuppressWarnings("rawtypes")
+ @Override
+ public Object getAdapter(Class adapter) {
+ if (adapter == TableSelectionProvider.class) {
+ return this.selectionProvider;
+ }
+ if (adapter == TableSelectionWrapper.class) {
+ ISelection selection = this.selectionProvider.getSelection();
+ if (selection instanceof TableStructuredSelection) {
+ return ((TableStructuredSelection) selection).getAdapter((TableSelectionWrapper.class));
+ }
+ }
+ if (adapter == TableStructuredSelection.class) {
+ ISelection selection = this.selectionProvider.getSelection();
+ if (selection instanceof TableStructuredSelection) {
+ return selection;
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ *
+ * @return
+ * a {@link TableStructuredSelection} representing the current selection of the table or <code>null</code> when there is no selection
+ */
+ protected final TableStructuredSelection getSelectionInTable() {
+ ISelection selection = this.selectionProvider.getSelection();
+ if (selection instanceof TableStructuredSelection) {
+ return (TableStructuredSelection) selection;
+ }
+ return null;
+ }
+
+ /**
+ *
+ * @return
+ * a map representing index of fully selected rows linked to the associated element
+ *
+ * The returned value can't be <code>null</code>
+ */
+ protected final Map<Integer, Object> getFullySelectedRows() {
+ TableStructuredSelection selection = getSelectionInTable();
+ if (selection != null) {
+ TableSelectionWrapper selectionWrapper = (TableSelectionWrapper) selection.getAdapter(TableSelectionWrapper.class);
+ if (selectionWrapper != null) {
+ return selectionWrapper.getFullySelectedRows();
+ }
+ }
+ return Collections.emptyMap();
+ }
+
+ /**
+ *
+ * @return
+ * a map representing index of fully selected columns linked to the associated element
+ *
+ * The returned value can't be <code>null</code>
+ */
+ protected final Map<Integer, Object> getFullySelectedColumns() {
+ TableStructuredSelection selection = getSelectionInTable();
+ if (selection != null) {
+ TableSelectionWrapper selectionWrapper = (TableSelectionWrapper) selection.getAdapter(TableSelectionWrapper.class);
+ if (selectionWrapper != null) {
+ return selectionWrapper.getFullySelectedColumns();
+ }
+ }
+ return Collections.emptyMap();
+ }
+}
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/TreeNattableModelManager.java b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/TreeNattableModelManager.java
index 2df433c7ea8..97c323d5c79 100755
--- a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/TreeNattableModelManager.java
+++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/TreeNattableModelManager.java
@@ -18,13 +18,18 @@ import java.util.List;
import org.eclipse.core.commands.Command;
import org.eclipse.core.runtime.Assert;
+import org.eclipse.emf.common.command.CompoundCommand;
+import org.eclipse.emf.transaction.RecordingCommand;
import org.eclipse.emf.transaction.ResourceSetListener;
+import org.eclipse.emf.transaction.RollbackException;
import org.eclipse.nebula.widgets.nattable.NatTable;
import org.eclipse.nebula.widgets.nattable.hideshow.ColumnHideShowLayer;
import org.eclipse.nebula.widgets.nattable.hideshow.command.MultiColumnHideCommand;
import org.eclipse.nebula.widgets.nattable.hideshow.command.MultiColumnShowCommand;
import org.eclipse.nebula.widgets.nattable.hideshow.command.ShowAllColumnsCommand;
import org.eclipse.nebula.widgets.nattable.layer.ILayer;
+import org.eclipse.papyrus.commands.Activator;
+import org.eclipse.papyrus.infra.gmfdiag.common.utils.GMFUnsafe;
import org.eclipse.papyrus.infra.nattable.command.CommandIds;
import org.eclipse.papyrus.infra.nattable.layerstack.BodyLayerStack;
import org.eclipse.papyrus.infra.nattable.layerstack.RowHeaderHierarchicalLayerStack;
@@ -38,6 +43,7 @@ import org.eclipse.papyrus.infra.nattable.manager.axis.IAxisManagerForEventList;
import org.eclipse.papyrus.infra.nattable.manager.axis.ICompositeAxisManager;
import org.eclipse.papyrus.infra.nattable.manager.axis.ITreeItemAxisManagerForEventList;
import org.eclipse.papyrus.infra.nattable.model.nattable.Table;
+import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxis.IAxis;
import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxis.ITreeItemAxis;
import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxisconfiguration.AxisManagerRepresentation;
import org.eclipse.papyrus.infra.nattable.model.nattable.nattableaxisconfiguration.TreeFillingConfiguration;
@@ -345,7 +351,7 @@ public class TreeNattableModelManager extends NattableModelManager implements IT
* the body layer stack to use
*
* @return
- * the row header layer stack to use
+ * the row header layer stack to use
*/
protected RowHeaderLayerStack createRowHeaderLayerStack(BodyLayerStack bodyLayerStack) {
return new RowHeaderHierarchicalLayerStack(bodyLayerStack, this);
@@ -370,6 +376,41 @@ public class TreeNattableModelManager extends NattableModelManager implements IT
*/
@Override
public void dispose() {
+ final List<IAxis> iAxis = getHorizontalAxisProvider().getAxis();
+
+ if (iAxis != null) {
+ //see bug 467706: [Table 2] Tree Table with no tree filling configuration on depth==0 can't be reopened
+ // we need to remove the children which are not serialized from the root of the table, to be able to reopen
+ Runnable runnable = new Runnable() {
+
+ @Override
+ public void run() {
+ for (IAxis axis : iAxis) {
+ if (axis instanceof ITreeItemAxis) {
+ boolean isDelivering = axis.eDeliver();
+ if (isDelivering) {
+ // I suppose than it is not necessary to send notification here
+ axis.eSetDeliver(false);
+ }
+ ((ITreeItemAxis) axis).getChildren().clear();
+ if (isDelivering) {
+ // I reset the initial value, because the model can be reopened
+ axis.eSetDeliver(true);
+ }
+ }
+ }
+
+ }
+ };
+ try {
+ GMFUnsafe.write(getTableEditingDomain(), runnable);
+ } catch (InterruptedException e) {
+ Activator.log.error(e);
+ } catch (RollbackException e) {
+ Activator.log.error(e);
+ }
+
+ }
if (getTableEditingDomain() != null) {
if (this.hideShowCategoriesListener != null) {
getTableEditingDomain().removeResourceSetListener(this.hideShowCategoriesListener);
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/utils/FillingConfigurationUtils.java b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/utils/FillingConfigurationUtils.java
index 1faf05d577a..9d8ce16ceb9 100644
--- a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/utils/FillingConfigurationUtils.java
+++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/utils/FillingConfigurationUtils.java
@@ -137,7 +137,7 @@ public class FillingConfigurationUtils {
Assert.isTrue(!table.isInvertAxis(), INVERT_AXIS_CASE_NOT_YET_MANAGED_FOR_TREE_TABLE);
List<TreeFillingConfiguration> confs = new ArrayList<TreeFillingConfiguration>();
LocalTableHeaderAxisConfiguration local = table.getLocalRowHeaderAxisConfiguration();
- if (local != null) {
+ if (local != null && !local.getAxisManagerConfigurations().isEmpty()) { //bug 467968: [Tree Table] Show Hide categories menu is not displayed after changing categories
for (AxisManagerConfiguration currentRep : local.getAxisManagerConfigurations()) {
for (final IAxisConfiguration current : currentRep.getLocalSpecificConfigurations()) {
if (current instanceof TreeFillingConfiguration) {
diff --git a/plugins/infra/org.eclipse.papyrus.infra.hyperlink/src/org/eclipse/papyrus/infra/hyperlink/object/HyperLinkDocument.java b/plugins/infra/org.eclipse.papyrus.infra.hyperlink/src/org/eclipse/papyrus/infra/hyperlink/object/HyperLinkDocument.java
index 511bafc9f95..665e647058c 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.hyperlink/src/org/eclipse/papyrus/infra/hyperlink/object/HyperLinkDocument.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.hyperlink/src/org/eclipse/papyrus/infra/hyperlink/object/HyperLinkDocument.java
@@ -1,88 +1,109 @@
-/*****************************************************************************
- * Copyright (c) 2009 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.hyperlink.object;
-
-import java.net.URI;
-import java.util.List;
-
-import org.eclipse.core.filesystem.EFS;
-import org.eclipse.core.filesystem.IFileStore;
-import org.eclipse.core.filesystem.URIUtil;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.infra.hyperlink.Activator;
-import org.eclipse.papyrus.infra.hyperlink.ui.EditorHyperlinkDocumentShell;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.ide.IDE;
-
-/**
- * The Class HyperLinkDocument. A container of document
- */
-public class HyperLinkDocument extends HyperLinkObject {
-
- /**
- * Gets the hyperlink document.
- *
- * @return the hyperlink document
- */
- public String getHyperlinkDocument() {
- return (String) super.getObject();
- }
-
- /**
- * Sets the hyperlink document.
- *
- * @param object
- * the new hyperlink document
- */
- public void setHyperlinkDocument(String object) {
- super.setObject(object);
- }
-
- @Override
- public void openLink() {
- try {
- // this is a file try to open it
- String fileName = getHyperlinkDocument();
-
- IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
- IWorkbenchPage page = window.getActivePage();
-
- URI uri = URIUtil.toURI(fileName, true);
-
- IFileStore fileStore = EFS.getStore(uri);
-
- IDE.openEditorOnFileStore(page, fileStore); // Let eclipse determine the better editor type for our file
- } catch (Exception e) {
- Activator.log.error(e);
- }
- }
-
- @Override
- public void executeEditMousePressed(List<HyperLinkObject> list, EObject amodel) {
- EditorHyperlinkDocumentShell editor = new EditorHyperlinkDocumentShell();
- editor.setHyperlinkDocument(this);
- editor.open();
- int index = list.indexOf(this);
- list.remove(this);
- list.add(index, editor.getHyperlinkDocument());
-
- }
-
- @Override
- public boolean needsOpenCommand() {
- return false;
- }
-}
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.hyperlink.object;
+
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.util.List;
+
+import org.eclipse.core.filesystem.EFS;
+import org.eclipse.core.filesystem.IFileStore;
+import org.eclipse.core.filesystem.URIUtil;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.papyrus.infra.hyperlink.Activator;
+import org.eclipse.papyrus.infra.hyperlink.ui.EditorHyperlinkDocumentShell;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.ide.IDE;
+
+/**
+ * The Class HyperLinkDocument. A container of document
+ */
+public class HyperLinkDocument extends HyperLinkObject {
+
+ /**
+ * Gets the hyperlink document.
+ *
+ * @return the hyperlink document
+ */
+ public String getHyperlinkDocument() {
+ return (String) super.getObject();
+ }
+
+ /**
+ * Sets the hyperlink document.
+ *
+ * @param object
+ * the new hyperlink document as a string representing an absolute file path
+ */
+ public void setHyperlinkDocument(String object) {
+ try {
+ URI originalURI = URIUtil.toURI(object);
+ URI relativeURI = null;
+
+ if (originalURI != null && originalURI.isAbsolute()) {
+ relativeURI = org.eclipse.core.runtime.URIUtil.makeRelative(originalURI, getBaseURI());
+ } else {
+ relativeURI = new URI(object);
+ }
+
+ super.setObject(relativeURI.toString());
+ } catch (Exception e) {
+ Activator.log.equals(e);
+ super.setObject("");
+ }
+ }
+
+ @Override
+ public void openLink() {
+ try {
+ // this is a file try to open it
+ String fileName = getHyperlinkDocument();
+
+ IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
+ IWorkbenchPage page = window.getActivePage();
+
+ URI relativeURI = new URI(fileName);
+ URI absoluteURI = org.eclipse.core.runtime.URIUtil.makeAbsolute(relativeURI, getBaseURI());
+
+ IFileStore fileStore = EFS.getStore(absoluteURI);
+
+ IDE.openEditorOnFileStore(page, fileStore); // Let eclipse determine the better editor type for our file
+ } catch (Exception e) {
+ Activator.log.error(e);
+ }
+ }
+
+ @Override
+ public void executeEditMousePressed(List<HyperLinkObject> list, EObject amodel) {
+ EditorHyperlinkDocumentShell editor = new EditorHyperlinkDocumentShell();
+ editor.setHyperlinkDocument(this);
+ editor.open();
+ int index = list.indexOf(this);
+ list.remove(this);
+ list.add(index, editor.getHyperlinkDocument());
+
+ }
+
+ @Override
+ public boolean needsOpenCommand() {
+ return false;
+ }
+
+ private URI getBaseURI() {
+ return ResourcesPlugin.getWorkspace().getRoot().getLocationURI();
+ }
+}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.newchild/src/org/eclipse/papyrus/infra/newchild/ui/DynamicNewChild.java b/plugins/infra/org.eclipse.papyrus.infra.newchild/src/org/eclipse/papyrus/infra/newchild/ui/DynamicNewChild.java
index 543805d310f..8356d1ea7a1 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.newchild/src/org/eclipse/papyrus/infra/newchild/ui/DynamicNewChild.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.newchild/src/org/eclipse/papyrus/infra/newchild/ui/DynamicNewChild.java
@@ -122,9 +122,12 @@ public class DynamicNewChild extends ContributionItem {
*/
protected EObject getSelection() {
ISelectionService selectionService = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSelectionService();
+ if (selectionService == null) {
+ return null;
+ }
ISelection selection = selectionService.getSelection();
- if (selection.isEmpty()) {
+ if (selection == null || selection.isEmpty()) {
return null;
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.onefile/src/org/eclipse/papyrus/infra/onefile/providers/PapyrusContentProvider.java b/plugins/infra/org.eclipse.papyrus.infra.onefile/src/org/eclipse/papyrus/infra/onefile/providers/PapyrusContentProvider.java
index 48065f9268a..587e252c4e0 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.onefile/src/org/eclipse/papyrus/infra/onefile/providers/PapyrusContentProvider.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.onefile/src/org/eclipse/papyrus/infra/onefile/providers/PapyrusContentProvider.java
@@ -87,7 +87,10 @@ public class PapyrusContentProvider extends WorkbenchContentProvider {
} else {
IResource[] members = null;
if (inputElement instanceof IContainer) {
- members = ((IContainer) inputElement).members();
+ IContainer container = (IContainer) inputElement;
+ if (container.isAccessible()) {
+ members = container.members();
+ }
}
if (members != null) {
for (IResource r : members) {
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/DeveloperDoc.html b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/DeveloperDoc.html
new file mode 100644
index 00000000000..b3d8a436264
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/DeveloperDoc.html
@@ -0,0 +1,291 @@
+<html>
+<link rel="stylesheet" href="default.css" type="text/css">
+<H1>Generic Model Synchronization Framework</H1>
+<H2 id ="_uf_BAAO4EeW8nIkIujhtCA">Table of Contents</H2>
+<ul><a href="#_ugA2MAO4EeW8nIkIujhtCA">Requirements</a></ul>
+<ul><a href="#_ugHj4AO4EeW8nIkIujhtCA">Use Cases</a><li><a href="#_uhT2sAO4EeW8nIkIujhtCA"> UML-RT Capsule State Machine Diagram Synchronization</a></li>
+<ul><li><a href="#_uhUdwQO4EeW8nIkIujhtCA"> Add elements to general state machine</a></li>
+<ul></ul>
+<li><a href="#_uhYIIQO4EeW8nIkIujhtCA"> Delete elements from general state machine</a></li>
+<ul></ul>
+<li><a href="#_uhbygAO4EeW8nIkIujhtCA"> Lay out elements in general state machine</a></li>
+<ul></ul>
+<li><a href="#_uhe10QO4EeW8nIkIujhtCA"> Hide elements in general state machine</a></li>
+<ul></ul>
+<li><a href="#_uhigMAO4EeW8nIkIujhtCA"> Add elements to special state machine</a></li>
+<ul></ul>
+<li><a href="#_uhljgQO4EeW8nIkIujhtCA"> Lay out elements in special state machine</a></li>
+<ul></ul>
+<li><a href="#_uhpN4QO4EeW8nIkIujhtCA"> Synchronization Lifecycle</a></li>
+<ul></ul>
+</ul>
+</ul>
+<ul><a href="#_uhrqIAO4EeW8nIkIujhtCA">Design</a><li><a href="#_uijz4AO4EeW8nIkIujhtCA"> Component org.eclipse.papyrus.infra.sync</a></li>
+<ul></ul>
+<li><a href="#_uilpEQO4EeW8nIkIujhtCA"> Component org.eclipse.papyrus.infra.gmfdiag.common</a></li>
+<ul></ul>
+<li><a href="#_uioFUAO4EeW8nIkIujhtCA"> Component org.eclipse.papyrus.umlrt.ui</a></li>
+<ul></ul>
+<li><a href="#_uip6gAO4EeW8nIkIujhtCA"> Package org.eclipse.papyrus.infra.sync</a></li>
+<ul><li><a href="#_um5hUAO4EeW8nIkIujhtCA"> Class SyncFeature</a></li>
+<ul></ul>
+<li><a href="#_um7WgQO4EeW8nIkIujhtCA"> Class SyncBucket</a></li>
+<ul></ul>
+<li><a href="#_um9LsQO4EeW8nIkIujhtCA"> Class SyncItem</a></li>
+<ul></ul>
+<li><a href="#_um_n8QO4EeW8nIkIujhtCA"> Class SyncRegistry</a></li>
+<ul></ul>
+<li><a href="#_unBdIQO4EeW8nIkIujhtCA"> Class MasterSlaveSyncBucket</a></li>
+<ul></ul>
+<li><a href="#_unEgcQO4EeW8nIkIujhtCA"> Class EMFListener</a></li>
+<ul></ul>
+<li><a href="#_unGVoQO4EeW8nIkIujhtCA"> Class EMFDispatch</a></li>
+<ul></ul>
+<li><a href="#_unIx4AO4EeW8nIkIujhtCA"> Collaboration Synchronization</a></li>
+<ul><li><a href="#_upSG8QO4EeW8nIkIujhtCA"> Interaction Synchronize Model Elements</a></li>
+<ul></ul>
+</ul>
+</ul>
+<li><a href="#_urPOwQO4EeW8nIkIujhtCA"> Package org.eclipse.papyrus.infra.sync.service</a></li>
+<ul><li><a href="#_uuJY0QO4EeW8nIkIujhtCA"> Interface ISyncService</a></li>
+<ul></ul>
+<li><a href="#_uuLOAQO4EeW8nIkIujhtCA"> Interface ISyncTrigger</a></li>
+<ul></ul>
+<li><a href="#_uuNqQAO4EeW8nIkIujhtCA"> Interface ISyncAction</a></li>
+<ul></ul>
+<li><a href="#_uuPfcQO4EeW8nIkIujhtCA"> Class SyncServiceRunnable</a></li>
+<ul></ul>
+<li><a href="#_uuRUoQO4EeW8nIkIujhtCA"> Class CascadeTriggers</a></li>
+<ul></ul>
+</ul>
+<li><a href="#_uuUX8QO4EeW8nIkIujhtCA"> Package org.eclipse.papyrus.infra.sync.policy</a></li>
+<ul><li><a href="#_uw_RcAO4EeW8nIkIujhtCA"> Interface ISyncPolicy</a></li>
+<ul></ul>
+<li><a href="#_uxBGoQO4EeW8nIkIujhtCA"> Interface ISyncPolicyDelegate</a></li>
+<ul></ul>
+<li><a href="#_uxDi4QO4EeW8nIkIujhtCA"> Class SyncPolicyDelegate</a></li>
+<ul></ul>
+<li><a href="#_uxHNQAO4EeW8nIkIujhtCA"> Class DefaultSyncPolicy</a></li>
+<ul></ul>
+<li><a href="#_uxKQkQO4EeW8nIkIujhtCA"> Interface ISyncPolicyDelegate.Registry</a></li>
+<ul></ul>
+<li><a href="#_uxMFwQO4EeW8nIkIujhtCA"> Collaboration Synchronization Overrides</a></li>
+<ul><li><a href="#_u0EaoQO4EeW8nIkIujhtCA"> Interaction Override Diagram Synchronization</a></li>
+<ul></ul>
+</ul>
+</ul>
+<li><a href="#_u2vUIAO4EeW8nIkIujhtCA"> Package org.eclipse.papyrus.infra.gmfdiag.common.sync</a></li>
+<ul><li><a href="#_u7Hd0QO4EeW8nIkIujhtCA"> Class ContainerChildrenSyncFeature</a></li>
+<ul></ul>
+<li><a href="#_u7KhIQO4EeW8nIkIujhtCA"> Class DiagramEdgesSyncFeature</a></li>
+<ul></ul>
+<li><a href="#_u7NkcAO4EeW8nIkIujhtCA"> Class NodePositionSyncFeature</a></li>
+<ul></ul>
+<li><a href="#_u7QAsQO4EeW8nIkIujhtCA"> Class NodeSizeSyncFeature</a></li>
+<ul></ul>
+<li><a href="#_u7TEAQO4EeW8nIkIujhtCA"> Class EditPartSyncRegistry</a></li>
+<ul></ul>
+<li><a href="#_u7WHUQO4EeW8nIkIujhtCA"> Class EditPartSyncBucket</a></li>
+<ul></ul>
+<li><a href="#_u7ZKoQO4EeW8nIkIujhtCA"> Class EditPartSyncItem</a></li>
+<ul></ul>
+<li><a href="#_u7cN8QO4EeW8nIkIujhtCA"> Collaboration Notation Synchronization</a></li>
+<ul><li><a href="#_u-Bn4QO4EeW8nIkIujhtCA"> Interaction Synchronize Notation Views</a></li>
+<ul></ul>
+</ul>
+<li><a href="#_u_7sYAO4EeW8nIkIujhtCA"> Class NodePositionSyncDispatcher</a></li>
+<ul></ul>
+<li><a href="#_u_-vsQO4EeW8nIkIujhtCA"> Class NodeSizeSyncDispatcher</a></li>
+<ul></ul>
+<li><a href="#_vACaEAO4EeW8nIkIujhtCA"> Collaboration Synchronization Exclusions</a></li>
+<ul><li><a href="#_vCtTkAO4EeW8nIkIujhtCA"> Interaction Exclude Views from Synchronization</a></li>
+<ul></ul>
+</ul>
+<li><a href="#_vE4d0QO4EeW8nIkIujhtCA"> Class NotationSyncPolicyDelegate</a></li>
+<ul></ul>
+</ul>
+</ul>
+<ul><a href="#_vE7hIAO4EeW8nIkIujhtCA">Tests</a><li><a href="#_vFMm4QO4EeW8nIkIujhtCA"> Component org.eclipse.papyrus.infra.gmfdiag.common.tests</a></li>
+<ul></ul>
+<li><a href="#_vFPDIAO4EeW8nIkIujhtCA"> Package org.eclipse.papyrus.infra.gmfdiag.common.sync.tests</a></li>
+<ul><li><a href="#_vG6eIQO4EeW8nIkIujhtCA"> Class MasterSlaveNotationSyncTest</a></li>
+<ul></ul>
+<li><a href="#_vG86YQO4EeW8nIkIujhtCA"> Class NotationSyncOverrideTest</a></li>
+<ul></ul>
+<li><a href="#_vG-vkQO4EeW8nIkIujhtCA"> Class TestSyncFixture</a></li>
+<ul></ul>
+</ul>
+</ul>
+<ul><a href="#_vHBL0AO4EeW8nIkIujhtCA">Requirements Coverage</a></ul>
+<H2 id ="_ugA2MAO4EeW8nIkIujhtCA">Requirements</H2>
+<pre id ="_ugCEUQO4EeW8nIkIujhtCA">- Model-to-Model Sync (id=R1): <BR/> The framework SHALL support the automatic synchronization of model semantics. For example, a state machine in a subclass that redefines a state machine in a superclass must always define regions, vertices, and transitions corresponding to and redefining the regions, vertices, and transitions of the superclass state machine.</pre>
+<pre id ="_ugDScQO4EeW8nIkIujhtCA">- Additional Content (id=R1.1): <BR/> The framework SHALL support the creation of additional elements in the target of a model-to-model synchronization. For example, the state machine of a UML-RT Capsule may add vertices, transitions, and regions in addition to those that are synchronized from (and redefined) the vertices, transitions, and regions of the parent Capsule. Moreover, transitions that redefine transitions in the parent Capsule may be re-targeted to (or re-sourced from) vertices that are added by the redefining state machine.</pre>
+<pre id ="_ugEgkQO4EeW8nIkIujhtCA">- Diagram-to-Diagram Sync (id=R2): <BR/> The framework SHALL support automatic synchronization of the layout of diagrams. For example, a state machine diagram in a subclass that redefines a state machine in a superclass initially presents the same layout as the superclass state machine and changes in the superclass state machine diagram layout are reflected in the subclass.</pre>
+<pre id ="_ugFusAO4EeW8nIkIujhtCA">- Sync Override (id=R2.1): <BR/> Synchronization of diagram layout SHALL be optional. Initially, a diagram is synchronized with the diagram that it redefines, but as needed to effect a sensible layout of the redefining diagram, this synchronization may be broken by the user. The semantics remain synchronized, and some graphical views may remain synchronized, but the user may freely rearrange other views as required by the redefining context.</pre>
+<H2 id ="_ugHj4AO4EeW8nIkIujhtCA">Use Cases</H2>
+<P align="middle"><img src=/Users/damus/git/Papyrus/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Use_Cases.png alt=Use Cases ></P><P align="middle">Use Cases</P></BR>
+<H3 id ="_uhT2sAO4EeW8nIkIujhtCA">UML-RT Capsule State Machine Diagram Synchronization</H3>
+<H4 id ="_uhUdwQO4EeW8nIkIujhtCA">Add elements to general state machine</H4>
+<pre id ="_uhWS8AO4EeW8nIkIujhtCA"> - traces to <a href="#_ugCEUQO4EeW8nIkIujhtCA" title="Requirement Model-to-Model Sync">Model-to-Model Sync</a><BR/><BR/> - traces from <a href="#_unIx4AO4EeW8nIkIujhtCA" title="Collaboration Synchronization">Synchronization</a></pre>
+<pre id ="_uhXhEAO4EeW8nIkIujhtCA">The UML-RT model has a Capsule that is specialized by some other Capsule<BR/>that has a state machine redefining the parent Capsule's state machine.<BR/><BR/>When the user adds states, transitions, regions, and other vertices to the<BR/>parent state machine, the system adds corresponding elements to the<BR/>child Capsule's state machine with appropriate redefinition associations.</pre>
+<H4 id ="_uhYIIQO4EeW8nIkIujhtCA">Delete elements from general state machine</H4>
+<pre id ="_uhZ9UAO4EeW8nIkIujhtCA"> - traces to <a href="#_ugCEUQO4EeW8nIkIujhtCA" title="Requirement Model-to-Model Sync">Model-to-Model Sync</a></pre>
+<pre id ="_uhakYQO4EeW8nIkIujhtCA">The UML-RT model has a Capsule that is specialized by some other Capsule<BR/>that has a state machine redefining the parent Capsule's state machine.<BR/><BR/>When the user deletes states, transitions, regions, and other vertices from<BR/>the parent state machine, the system deletes the corresponding redefining<BR/>elements from the child Capsule's state machine.</pre>
+<H4 id ="_uhbygAO4EeW8nIkIujhtCA">Lay out elements in general state machine</H4>
+<pre id ="_uhdAoAO4EeW8nIkIujhtCA"> - traces to <a href="#_ugEgkQO4EeW8nIkIujhtCA" title="Requirement Diagram-to-Diagram Sync">Diagram-to-Diagram Sync</a><BR/><BR/> - traces from <a href="#_u7cN8QO4EeW8nIkIujhtCA" title="Collaboration Notation Synchronization">Notation Synchronization</a></pre>
+<pre id ="_uheOwQO4EeW8nIkIujhtCA">The UML-RT model has a Capsule that is specialized by some other Capsule<BR/>that has a state machine redefining the parent Capsule's state machine.<BR/><BR/>When the user moves and sizes states, regions, and other vertices in the<BR/>parent state machine diagram, the system moves and sizes the<BR/>corresponding redefining elements in the child Capsule's state machine<BR/>diagram to the redefined elements' locations and sizes, respectively.</pre>
+<H4 id ="_uhe10QO4EeW8nIkIujhtCA">Hide elements in general state machine</H4>
+<pre id ="_uhgrAAO4EeW8nIkIujhtCA"> - traces to <a href="#_ugEgkQO4EeW8nIkIujhtCA" title="Requirement Diagram-to-Diagram Sync">Diagram-to-Diagram Sync</a></pre>
+<pre id ="_uhhSEQO4EeW8nIkIujhtCA">The UML-RT model has a Capsule that is specialized by some other Capsule<BR/>that has a state machine redefining the parent Capsule's state machine.<BR/><BR/>When the user hides states, regions, and other vertices from the<BR/>parent state machine diagram (deleting the views but not the model<BR/>elements, themselves), the system removes the views of the<BR/>corresponding redefining elements from the child Capsule's state<BR/>machine diagram.</pre>
+<H4 id ="_uhigMAO4EeW8nIkIujhtCA">Add elements to special state machine</H4>
+<pre id ="_uhjuUAO4EeW8nIkIujhtCA"> - traces to <a href="#_ugDScQO4EeW8nIkIujhtCA" title="Requirement Additional Content">Additional Content</a></pre>
+<pre id ="_uhkVYQO4EeW8nIkIujhtCA">The UML-RT model has a Capsule that is specialized by some other Capsule<BR/>that has a state machine redefining the parent Capsule's state machine.<BR/><BR/>The user adds states, transitions, regions, and other vertices to the child<BR/>Capsule's state machine that are new in this context, not redefining any<BR/>elements from the parent state machine. These may be positioned anywhere<BR/>in the child state machine diagram.<BR/><BR/>Also, transitions that redefine inherited transitions in the parent state machine<BR/>may be re-targeted and/or re-sourced as necessary in the child capsule. This<BR/>includes re-connecting transitions to states and other vertices that exist only<BR/>in the child capsule's state machine (that do not redefine inherited vertices).</pre>
+<H4 id ="_uhljgQO4EeW8nIkIujhtCA">Lay out elements in special state machine</H4>
+<pre id ="_uhnYsAO4EeW8nIkIujhtCA"> - traces to <a href="#_ugFusAO4EeW8nIkIujhtCA" title="Requirement Sync Override">Sync Override</a><BR/><BR/> - traces from <a href="#_uxMFwQO4EeW8nIkIujhtCA" title="Collaboration Synchronization Overrides">Synchronization Overrides</a>, <a href="#_vACaEAO4EeW8nIkIujhtCA" title="Collaboration Synchronization Exclusions">Synchronization Exclusions</a></pre>
+<pre id ="_uhn_wQO4EeW8nIkIujhtCA">The UML-RT model has a Capsule that is specialized by some other Capsule<BR/>that has a state machine redefining the parent Capsule's state machine.<BR/><BR/>When the user deliberately moves and sizes states, regions, and other<BR/>vertices in the child Capsule's state machine diagram, the system detects<BR/>this and exempts the affected views from subsequent synchronization<BR/>of the location and/or size (as appropriate) from the parent state machine<BR/>diagram. Layout changes in the redefined elements in the parent state<BR/>machine diagram are no longer propagated to these views in the child<BR/>state machine diagram.<BR/></pre>
+<H4 id ="_uhpN4QO4EeW8nIkIujhtCA">Synchronization Lifecycle</H4>
+<pre id ="_uhp08QO4EeW8nIkIujhtCA">When an editor is opened, the system initializes synchronization of<BR/>model and diagram content according to the state machine<BR/>synchronization triggers defined by the UML-RT plug-in.<BR/>The synchronization system is destroyed when the editor is closed.</pre>
+<H2 id ="_uhrqIAO4EeW8nIkIujhtCA">Design</H2>
+<P align="middle"><img src=/Users/damus/git/Papyrus/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Plug-ins.png alt=Plug-ins ></P><P align="middle">Plug-ins</P></BR>
+<H3 id ="_uijz4AO4EeW8nIkIujhtCA">Component org.eclipse.papyrus.infra.sync</H3>
+<pre id ="_uika8QO4EeW8nIkIujhtCA">The core generic synchronization framework. Provides the base abstractions and<BR/>support for synchronization of EMF-based model elements.</pre>
+<H3 id ="_uilpEQO4EeW8nIkIujhtCA">Component org.eclipse.papyrus.infra.gmfdiag.common</H3>
+<pre id ="_uim3MAO4EeW8nIkIujhtCA">An extension of the synchronization framework that provides support for<BR/>synchronization of GMF-based diagrams as implemented by EditParts.<BR/>Provides specific synchronization features for:<BR/><ul><BR/><li>nested node edit-parts</li><BR/><li>incoming and outgoing connection edit-parts on nodes</li><BR/><li>position of node edit-parts</li><BR/><li>size of node edit-parts</li><BR/></ul></pre>
+<H3 id ="_uioFUAO4EeW8nIkIujhtCA">Component org.eclipse.papyrus.umlrt.ui</H3>
+<pre id ="_uiosYQO4EeW8nIkIujhtCA">Specific implementations of synchronization triggers, registries, buckets, and features for<BR/>semantics of redefining Capsule state machines and visualization of redefining capsule<BR/>state machines in state machine diagrams.</pre>
+<H3 id ="_uip6gAO4EeW8nIkIujhtCA">Package org.eclipse.papyrus.infra.sync</H3>
+<P align="middle"><img src=/Users/damus/git/Papyrus/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Sync_Framework_Core_Classes.png alt=Sync Framework Core Classes ></P><P align="middle">Sync Framework Core Classes</P></BR>
+<pre id ="_um4TMAO4EeW8nIkIujhtCA">Core abstractions of the synchronization framework, including integration with<BR/>EMF Transactions for synchronization of EMF model elements using trigger<BR/>commands to implement follow-up changes to synchronized objects in reaction<BR/>to changes observed (as Notifications) in source objects.</pre>
+<H4 id ="_um5hUAO4EeW8nIkIujhtCA">Class SyncFeature</H4>
+<pre id ="_um6IYQO4EeW8nIkIujhtCA">A synchronization primitive representing a feature, possibly something<BR/>complex or derived, comprising any number of actual features in EMF<BR/>or Java terms, of the "back-end" object type T that is to be synchronized<BR/>from one or more other objects of the same kind matching the same<BR/>(or equivalent) "front-end" model M, on receipt from the source object<BR/>of some message of type X.</pre>
+<H4 id ="_um7WgQO4EeW8nIkIujhtCA">Class SyncBucket</H4>
+<pre id ="_um8koQO4EeW8nIkIujhtCA">A group of synchronization items that all match different "back-end" objects<BR/>of type T with the same (or logically equivalent; the matching is flexible)<BR/>"front-end" model element of type M. A bucket coordinates synchronization<BR/>of any number of featuers from the back-end of a source item that has<BR/>changed to the back-ends of the other items in the bucket.</pre>
+<H4 id ="_um9LsQO4EeW8nIkIujhtCA">Class SyncItem</H4>
+<pre id ="_um-Z0QO4EeW8nIkIujhtCA">A pairing of a "front-end" model element (of type M) with a "back-end"<BR/>object (of type T) that is synchronized from some other back-end paired<BR/>with the same front-end.</pre>
+<H4 id ="_um_n8QO4EeW8nIkIujhtCA">Class SyncRegistry</H4>
+<pre id ="_unA2EAO4EeW8nIkIujhtCA">A registry of synchronization buckets of the same type. All of the buckets in<BR/>a registry synchronize the same features of the back-ends of type T matching<BR/>front-ends of type M, on receipt of messages of type X. An instance of the<BR/>synchronization service (which is unique in a Papyrus editor) has an unique<BR/>SyncRegistry for every combination of actual front-end, back-end, and message<BR/>types.</pre>
+<H4 id ="_unBdIQO4EeW8nIkIujhtCA">Class MasterSlaveSyncBucket</H4>
+<pre id ="_unCrQQO4EeW8nIkIujhtCA"> - specializes <a href="#_um7WgQO4EeW8nIkIujhtCA" title="Class SyncBucket">SyncBucket</a></pre>
+<pre id ="_unDSUQO4EeW8nIkIujhtCA">A specialized synchronization bucket that implements a master-slave<BR/>synchronization pattern. A single SyncItem is identified as the master<BR/>and its back-end is observed for changes, which are pushed to the<BR/>back-ends of all other SyncItems in the bucket (the slaves).</pre>
+<H4 id ="_unEgcQO4EeW8nIkIujhtCA">Class EMFListener</H4>
+<pre id ="_unFukAO4EeW8nIkIujhtCA">A ResourceSetLIstener on the Papyrus editor's TransactionalEditingDomain<BR/>that observes, via EMFDispatch objects, changes in the "back-end" objects<BR/>of SyncItems in a bucket. When changes are observed, they are dispatched<BR/>to the appropriate SyncFeatures to propagate them (as appropriate) to the<BR/>back-ends of other items in the bucket.</pre>
+<H4 id ="_unGVoQO4EeW8nIkIujhtCA">Class EMFDispatch</H4>
+<pre id ="_unHjwQO4EeW8nIkIujhtCA">A mediator of the propagation of synchronizable feature changes<BR/>from sources to targets when messages are received from the sources<BR/>that trigger synchronization. In the EMF context, these messages are<BR/>Notifications.</pre>
+<H4 id ="_unIx4AO4EeW8nIkIujhtCA">Collaboration Synchronization</H4>
+<pre id ="_unKAAAO4EeW8nIkIujhtCA"> - traces to <a href="#_ugCEUQO4EeW8nIkIujhtCA" title="Requirement Model-to-Model Sync">Model-to-Model Sync</a>, <a href="#_BwcAgP_0EeScYo8tuJyy0A" title="Use Case Add elements to general state machine">Add elements to general state machine</a></pre>
+<P align="middle"><img src=/Users/damus/git/Papyrus/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization.png alt=Synchronization ></P><P align="middle">Synchronization</P></BR>
+<H5 id ="_upSG8QO4EeW8nIkIujhtCA">Interaction Synchronize Model Elements</H5>
+<P align="middle"><img src=/Users/damus/git/Papyrus/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronize_Model_Elements.png alt=Synchronize Model Elements ></P><P align="middle">Synchronize Model Elements</P></BR>
+<H3 id ="_urPOwQO4EeW8nIkIujhtCA">Package org.eclipse.papyrus.infra.sync.service</H3>
+<P align="middle"><img src=/Users/damus/git/Papyrus/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Sync_Service_Classes.png alt=Sync Service Classes ></P><P align="middle">Sync Service Classes</P></BR>
+<pre id ="_uuIxwAO4EeW8nIkIujhtCA">A Papyrus registered Service that manages the lifecycle of synchronization,<BR/>including the EMF transaction listener that reacts to changes and the<BR/>application's synchronization triggers and registries.</pre>
+<H4 id ="_uuJY0QO4EeW8nIkIujhtCA">Interface ISyncService</H4>
+<pre id ="_uuKm8QO4EeW8nIkIujhtCA">The synchronization service is a registered Papyrus Service that<BR/>manages model-to-model and diagram-to-diagram synchronization<BR/>within the context of an editor. It manages the EMF transaction<BR/>listener that triggers synchronization operations and it provides the<BR/>API for triggering the configuration of synchronization on objects<BR/>according to registered ISyncTriggers.</pre>
+<H4 id ="_uuLOAQO4EeW8nIkIujhtCA">Interface ISyncTrigger</H4>
+<pre id ="_uuMcIQO4EeW8nIkIujhtCA">Synchronization triggers are registered on an the org.eclipse.papyrus.infra.sync.triggers<BR/>extension point with enablement conditions that match objects on which they should fire. <BR/>When a trigger fires, it provides a sync action that the synchronization runs. This sync<BR/>action is expected to configure synchronization of the triggering object and/or <em>cascade</em><BR/>the trigger to related objects.</pre>
+<H4 id ="_uuNqQAO4EeW8nIkIujhtCA">Interface ISyncAction</H4>
+<pre id ="_uuORUQO4EeW8nIkIujhtCA">An action provided by a synchronization trigger that usually either<BR/>configures synchronization of the triggering object and/or cascade<BR/>the trigger to related objects.</pre>
+<H4 id ="_uuPfcQO4EeW8nIkIujhtCA">Class SyncServiceRunnable</H4>
+<pre id ="_uuQtkAO4EeW8nIkIujhtCA">An executable operation that is run in the context of an ISyncService.</pre>
+<H4 id ="_uuRUoQO4EeW8nIkIujhtCA">Class CascadeTriggers</H4>
+<pre id ="_uuSiwAO4EeW8nIkIujhtCA"> - realizes <a href="#_uuNqQAO4EeW8nIkIujhtCA" title="Interface ISyncAction">ISyncAction</a></pre>
+<pre id ="_uuTJ0QO4EeW8nIkIujhtCA">A synchronization action that cascades the trigger to related objects.<BR/>This causes triggers to be matched on those objects, and any triggers<BR/>that do fire produce further actions that are evaluated to initialize<BR/>synchronization (or induce more triggers).</pre>
+<H3 id ="_uuUX8QO4EeW8nIkIujhtCA">Package org.eclipse.papyrus.infra.sync.policy</H3>
+<P align="middle"><img src=/Users/damus/git/Papyrus/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Sync_Policy_Classes.png alt=Sync Policy Classes ></P><P align="middle">Sync Policy Classes</P></BR>
+<pre id ="_uw-DUAO4EeW8nIkIujhtCA">API for definition of sync policies providing for synchronization override.</pre>
+<H4 id ="_uw_RcAO4EeW8nIkIujhtCA">Interface ISyncPolicy</H4>
+<pre id ="_uxAfkAO4EeW8nIkIujhtCA">A policy determining whether objects are excluded from synchronization of<BR/>certain features that otherwise would be propagated to them from source objects.</pre>
+<H4 id ="_uxBGoQO4EeW8nIkIujhtCA">Interface ISyncPolicyDelegate</H4>
+<pre id ="_uxCUwQO4EeW8nIkIujhtCA">A synchronization policy delegate for a specific synchronization feature.</pre>
+<H4 id ="_uxDi4QO4EeW8nIkIujhtCA">Class SyncPolicyDelegate</H4>
+<pre id ="_uxExAQO4EeW8nIkIujhtCA"> - realizes <a href="#_uxBGoQO4EeW8nIkIujhtCA" title="Interface ISyncPolicyDelegate">ISyncPolicyDelegate</a></pre>
+<pre id ="_uxF_IQO4EeW8nIkIujhtCA">Abstract implementation of a sync policy delegate for some feature.<BR/>Subclasses are required to determine whether the feature is<BR/>synchronized for some given target object and also to react to<BR/>changes introduced by the user in a target object to disable<BR/>synchronization of the feature (if appropriate).</pre>
+<H4 id ="_uxHNQAO4EeW8nIkIujhtCA">Class DefaultSyncPolicy</H4>
+<pre id ="_uxH0UQO4EeW8nIkIujhtCA"> - realizes <a href="#_uw_RcAO4EeW8nIkIujhtCA" title="Interface ISyncPolicy">ISyncPolicy</a></pre>
+<pre id ="_uxJCcQO4EeW8nIkIujhtCA">Default realization of the ISyncPolicy interface. Clients of the synchronization<BR/>service may install a policy of their own to replace it.<BR/><BR/>This default sync policy delegates policy queries to registered policy delegates.</pre>
+<H4 id ="_uxKQkQO4EeW8nIkIujhtCA">Interface ISyncPolicyDelegate.Registry</H4>
+<pre id ="_uxLesAO4EeW8nIkIujhtCA">A registry of policy delegates by synchronization feature.</pre>
+<H4 id ="_uxMFwQO4EeW8nIkIujhtCA">Collaboration Synchronization Overrides</H4>
+<pre id ="_uxN68AO4EeW8nIkIujhtCA"> - traces to <a href="#__JdhwP_0EeScYo8tuJyy0A" title="Use Case Lay out elements in special state machine">Lay out elements in special state machine</a>, <a href="#_ugDScQO4EeW8nIkIujhtCA" title="Requirement Additional Content">Additional Content</a></pre>
+<P align="middle"><img src=/Users/damus/git/Papyrus/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization_Overrides.png alt=Synchronization Overrides ></P><P align="middle">Synchronization Overrides</P></BR>
+<H5 id ="_u0EaoQO4EeW8nIkIujhtCA">Interaction Override Diagram Synchronization</H5>
+<P align="middle"><img src=/Users/damus/git/Papyrus/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization_Overrides_1.png alt=Synchronization Overrides ></P><P align="middle">Synchronization Overrides</P></BR>
+<H3 id ="_u2vUIAO4EeW8nIkIujhtCA">Package org.eclipse.papyrus.infra.gmfdiag.common.sync</H3>
+<P align="middle"><img src=/Users/damus/git/Papyrus/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Notation_Sync_Classes.png alt=Notation Sync Classes ></P><P align="middle">Notation Sync Classes</P></BR>
+<pre id ="_u7GPsQO4EeW8nIkIujhtCA">Implementation of reusable synchronization primitives for GMF-based diagrams.</pre>
+<H4 id ="_u7Hd0QO4EeW8nIkIujhtCA">Class ContainerChildrenSyncFeature</H4>
+<pre id ="_u7Ir8AO4EeW8nIkIujhtCA"> - specializes <a href="#_um5hUAO4EeW8nIkIujhtCA" title="Class SyncFeature">SyncFeature</a></pre>
+<pre id ="_u7JTAQO4EeW8nIkIujhtCA">A specialized SyncFeature that manages synchronization of child<BR/>node EditParts for children of the front-end model element.</pre>
+<H4 id ="_u7KhIQO4EeW8nIkIujhtCA">Class DiagramEdgesSyncFeature</H4>
+<pre id ="_u7LIMQO4EeW8nIkIujhtCA"> - specializes <a href="#_um5hUAO4EeW8nIkIujhtCA" title="Class SyncFeature">SyncFeature</a></pre>
+<pre id ="_u7MWUQO4EeW8nIkIujhtCA">A specialized SyncFeature that manages synchronization of source<BR/>and target connection EditParts for relationships of the front-end<BR/>model element.</pre>
+<H4 id ="_u7NkcAO4EeW8nIkIujhtCA">Class NodePositionSyncFeature</H4>
+<pre id ="_u7OLgQO4EeW8nIkIujhtCA"> - specializes <a href="#_um5hUAO4EeW8nIkIujhtCA" title="Class SyncFeature">SyncFeature</a></pre>
+<pre id ="_u7PZoQO4EeW8nIkIujhtCA">A specialized SyncFeature that manages synchronization of the location<BR/>in the diagram of a node EditPart.</pre>
+<H4 id ="_u7QAsQO4EeW8nIkIujhtCA">Class NodeSizeSyncFeature</H4>
+<pre id ="_u7RO0QO4EeW8nIkIujhtCA"> - specializes <a href="#_um5hUAO4EeW8nIkIujhtCA" title="Class SyncFeature">SyncFeature</a></pre>
+<pre id ="_u7Sc8AO4EeW8nIkIujhtCA">A specialized SyncFeature that manages synchronization of the size<BR/>of a node EditPart.</pre>
+<H4 id ="_u7TEAQO4EeW8nIkIujhtCA">Class EditPartSyncRegistry</H4>
+<pre id ="_u7USIQO4EeW8nIkIujhtCA"> - specializes <a href="#_um_n8QO4EeW8nIkIujhtCA" title="Class SyncRegistry">SyncRegistry</a></pre>
+<pre id ="_u7VgQAO4EeW8nIkIujhtCA">A SyncRegistry that manages SyncBuckets for synchronization of diagram<BR/>EditParts that visualize EObjects in GMF-based diagrams.</pre>
+<H4 id ="_u7WHUQO4EeW8nIkIujhtCA">Class EditPartSyncBucket</H4>
+<pre id ="_u7XVcAO4EeW8nIkIujhtCA"> - specializes <a href="#_um7WgQO4EeW8nIkIujhtCA" title="Class SyncBucket">SyncBucket</a></pre>
+<pre id ="_u7X8gQO4EeW8nIkIujhtCA">A SyncBucket that manages the synchronization of diagram<BR/>EditParts that visualize EObjects in GMF-based diagrams.<BR/>By default, these buckets match edit-parts that all visualize<BR/>the same model element in different diagrams, but this is<BR/>customizable. For example, in the UML-RT case edit-parts<BR/>are matched not with edit-parts visualizing the same model<BR/>element but with edit-parts visualizing the redefined model<BR/>element.</pre>
+<H4 id ="_u7ZKoQO4EeW8nIkIujhtCA">Class EditPartSyncItem</H4>
+<pre id ="_u7aYwAO4EeW8nIkIujhtCA"> - specializes <a href="#_um9LsQO4EeW8nIkIujhtCA" title="Class SyncItem">SyncItem</a></pre>
+<pre id ="_u7a_0QO4EeW8nIkIujhtCA">A SyncItem that manages synchronization of an EditPart<BR/>that visualizes an EObjects in a GMF-based diagram.</pre>
+<H4 id ="_u7cN8QO4EeW8nIkIujhtCA">Collaboration Notation Synchronization</H4>
+<pre id ="_u7dcEAO4EeW8nIkIujhtCA"> - traces to <a href="#_ugEgkQO4EeW8nIkIujhtCA" title="Requirement Diagram-to-Diagram Sync">Diagram-to-Diagram Sync</a>, <a href="#_zJRGUP_0EeScYo8tuJyy0A" title="Use Case Lay out elements in general state machine">Lay out elements in general state machine</a></pre>
+<P align="middle"><img src=/Users/damus/git/Papyrus/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Notation_Synchronization.png alt=Notation Synchronization ></P><P align="middle">Notation Synchronization</P></BR>
+<H5 id ="_u-Bn4QO4EeW8nIkIujhtCA">Interaction Synchronize Notation Views</H5>
+<P align="middle"><img src=/Users/damus/git/Papyrus/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronize_Model_Elements_1.png alt=Synchronize Model Elements ></P><P align="middle">Synchronize Model Elements</P></BR>
+<H4 id ="_u_7sYAO4EeW8nIkIujhtCA">Class NodePositionSyncDispatcher</H4>
+<pre id ="_u_86gQO4EeW8nIkIujhtCA"> - specializes <a href="#_unGVoQO4EeW8nIkIujhtCA" title="Class EMFDispatch">EMFDispatch</a></pre>
+<pre id ="_u_-IoAO4EeW8nIkIujhtCA">A specialized dispatcher that listens to changes in the bounds of the notation view (Node)<BR/>managed by an EditPart. It tracks the bounds of the shape, firing synchronization only<BR/>when node's position actually changes from the last known position.</pre>
+<H4 id ="_u_-vsQO4EeW8nIkIujhtCA">Class NodeSizeSyncDispatcher</H4>
+<pre id ="_u__90QO4EeW8nIkIujhtCA"> - specializes <a href="#_unGVoQO4EeW8nIkIujhtCA" title="Class EMFDispatch">EMFDispatch</a></pre>
+<pre id ="_vABL8QO4EeW8nIkIujhtCA">A specialized dispatcher that listens to changes in the bounds of the notation view (Node)<BR/>managed by an EditPart. It tracks the bounds of the shape, firing synchronization only<BR/>when node's size actually changes from the last known position.</pre>
+<H4 id ="_vACaEAO4EeW8nIkIujhtCA">Collaboration Synchronization Exclusions</H4>
+<pre id ="_vADoMAO4EeW8nIkIujhtCA"> - traces to <a href="#__JdhwP_0EeScYo8tuJyy0A" title="Use Case Lay out elements in special state machine">Lay out elements in special state machine</a>, <a href="#_ugFusAO4EeW8nIkIujhtCA" title="Requirement Sync Override">Sync Override</a></pre>
+<P align="middle"><img src=/Users/damus/git/Papyrus/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization_Exclusions.png alt=Synchronization Exclusions ></P><P align="middle">Synchronization Exclusions</P></BR>
+<H5 id ="_vCtTkAO4EeW8nIkIujhtCA">Interaction Exclude Views from Synchronization</H5>
+<P align="middle"><img src=/Users/damus/git/Papyrus/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Exclude_Views_from_Synchronization.png alt=Exclude Views from Synchronization ></P><P align="middle">Exclude Views from Synchronization</P></BR>
+<H4 id ="_vE4d0QO4EeW8nIkIujhtCA">Class NotationSyncPolicyDelegate</H4>
+<pre id ="_vE5r8QO4EeW8nIkIujhtCA"> - specializes <a href="#_uxDi4QO4EeW8nIkIujhtCA" title="Class SyncPolicyDelegate">SyncPolicyDelegate</a></pre>
+<H2 id ="_vE7hIAO4EeW8nIkIujhtCA">Tests</H2>
+<P align="middle"><img src=/Users/damus/git/Papyrus/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Test_Plug-ins.png alt=Test Plug-ins ></P><P align="middle">Test Plug-ins</P></BR>
+<H3 id ="_vFMm4QO4EeW8nIkIujhtCA">Component org.eclipse.papyrus.infra.gmfdiag.common.tests</H3>
+<pre id ="_vFN1AQO4EeW8nIkIujhtCA">Test bundle for the Papyrus common diagram core plug-in.</pre>
+<H3 id ="_vFPDIAO4EeW8nIkIujhtCA">Package org.eclipse.papyrus.infra.gmfdiag.common.sync.tests</H3>
+<P align="middle"><img src=/Users/damus/git/Papyrus/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Test_Classes.png alt=Test Classes ></P><P align="middle">Test Classes</P></BR>
+<pre id ="_vG53EAO4EeW8nIkIujhtCA">Test suite for the synchronization framework, covering both model-to-model<BR/>and diagram-to-diagram synchronization use cases.</pre>
+<H4 id ="_vG6eIQO4EeW8nIkIujhtCA">Class MasterSlaveNotationSyncTest</H4>
+<pre id ="_vG7sQQO4EeW8nIkIujhtCA">Tests the synchronization framework basic synchronization use cases by way<BR/>of master/slave diagram-to-diagram synchronization.</pre>
+<H4 id ="_vG86YQO4EeW8nIkIujhtCA">Class NotationSyncOverrideTest</H4>
+<pre id ="_vG-IgAO4EeW8nIkIujhtCA">Tests the synchronization framework's support for synchronization overrides<BR/>by way of master/slave diagram-to-diagram synchronization.</pre>
+<H4 id ="_vG-vkQO4EeW8nIkIujhtCA">Class TestSyncFixture</H4>
+<pre id ="_vG_9sAO4EeW8nIkIujhtCA">A JUnit test-fixture rule that implements a synchronization registry for class<BR/>diagrams in the context of the test execution.</pre>
+<H2 id ="_vHBL0AO4EeW8nIkIujhtCA">Requirements Coverage</H2>
+<table style="border-collapse: collapse;"><caption style="caption-side: bottom;">RequirementsCoverageTable</caption><tr><th style="border: 1px solid black">Id</th><th style="border: 1px solid black">Satisfied by</th><th style="border: 1px solid black">Verified by</th></tr>
+<tr><td style="border : 1px solid black"><a href="#_ugCEUQO4EeW8nIkIujhtCA" title="Model-to-Model Sync">R1</a><BR/>
+</td><td style="border : 1px solid black"><a href="#_unIx4AO4EeW8nIkIujhtCA" title="Synchronization">Synchronization</a><BR/>
+</td><td style="border : 1px solid black"><a href="#_vG6eIQO4EeW8nIkIujhtCA" title="MasterSlaveNotationSyncTest">MasterSlaveNotationSyncTest</a><BR/>
+</td></tr>
+<tr><td style="border : 1px solid black"><a href="#_ugDScQO4EeW8nIkIujhtCA" title="Additional Content">R1.1</a><BR/>
+</td><td style="border : 1px solid black"><a href="#_uxMFwQO4EeW8nIkIujhtCA" title="Synchronization Overrides">Synchronization Overrides</a><BR/>
+</td><td style="border : 1px solid black"><a href="#_vG6eIQO4EeW8nIkIujhtCA" title="MasterSlaveNotationSyncTest">MasterSlaveNotationSyncTest</a><BR/>
+</td></tr>
+<tr><td style="border : 1px solid black"><a href="#_ugEgkQO4EeW8nIkIujhtCA" title="Diagram-to-Diagram Sync">R2</a><BR/>
+</td><td style="border : 1px solid black"><a href="#_u7cN8QO4EeW8nIkIujhtCA" title="Notation Synchronization">Notation Synchronization</a><BR/>
+</td><td style="border : 1px solid black"><a href="#_vG6eIQO4EeW8nIkIujhtCA" title="MasterSlaveNotationSyncTest">MasterSlaveNotationSyncTest,
+</a><BR/>
+<a href="#_vG86YQO4EeW8nIkIujhtCA" title="NotationSyncOverrideTest">NotationSyncOverrideTest</a><BR/>
+</td></tr>
+<tr><td style="border : 1px solid black"><a href="#_ugFusAO4EeW8nIkIujhtCA" title="Sync Override">R2.1</a><BR/>
+</td><td style="border : 1px solid black"><a href="#_vACaEAO4EeW8nIkIujhtCA" title="Synchronization Exclusions">Synchronization Exclusions</a><BR/>
+</td><td style="border : 1px solid black"><a href="#_vG86YQO4EeW8nIkIujhtCA" title="NotationSyncOverrideTest">NotationSyncOverrideTest</a><BR/>
+</td></tr>
+</table>
+<pre id ="_vHCZ8gO4EeW8nIkIujhtCA">Unsatisfied requirements (0 out of 4) : </pre>
+<pre id ="_vHDoEQO4EeW8nIkIujhtCA">Unverified requirements (0 out of 4) : </pre>
+</html>
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/default.css b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/default.css
new file mode 100644
index 00000000000..df978c5d914
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/default.css
@@ -0,0 +1,59 @@
+/*
+ * Style sheet for the CSS2 specification
+ */
+
+body {
+ padding: 2em 1em 2em 70px;
+ margin: 0;
+ font-family: sans-serif;
+ color: black;
+ background: white;
+ background-position: top left;
+ background-attachment: fixed;
+ background-repeat: no-repeat;
+}
+
+
+p {
+ margin-top: 0.6em;
+ margin-bottom: 0.6em;
+ margin-left: 2em;
+}
+
+h1, h2, h3, h4, h5, h6 { text-align: left }
+
+
+h1, h2, h3 { color: #005A9C; background: white }
+h1 { font: 170% sans-serif }
+h2 { font: 140% sans-serif }
+h3 { font: 120% sans-serif }
+h4 { font: bold 100% sans-serif }
+h5 { font: italic 100% sans-serif }
+h6 { font: small-caps 100% sans-serif }
+
+body{counter-reset: h1 h2 h3;}
+
+
+h2:before {
+ content: counter(h2) " ";
+ counter-increment: h2;
+}
+h3:before {
+ content: counter(h2) "." counter(h3) " ";
+ counter-increment: h3;
+}
+h1 {
+ counter-reset: h2;
+}
+h2 {
+ counter-reset: h3;
+}
+h1.unnumbered, h2.unnumbered {
+ counter-reset: none;
+}
+h1.unnumbered:before,
+h2.unnumbered:before,
+h3.unnumbered:before{
+ content: none;
+ counter-increment: none;
+}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/design.di b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/design.di
new file mode 100644
index 00000000000..bf9abab340f
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/design.di
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/design.notation b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/design.notation
new file mode 100644
index 00000000000..b5fc421544a
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/design.notation
@@ -0,0 +1,4042 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:configuration="http://www.eclipse.org/papyrus/infra/viewpoints/configuration" xmlns:css="http://www.eclipse.org/papyrus/infra/gmfdiag/css" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:nattable="http://www.eclipse.org/papyrus/nattable/model" xmlns:nattableaxis="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxis" xmlns:nattableaxisconfiguration="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisconfiguration" xmlns:nattableaxisprovider="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisprovider" xmlns:nattableconfiguration="http://www.eclipse.org/papyrus/nattable/model/nattableconfiguration" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/papyrus/infra/viewpoints/policy/style" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxis http://www.eclipse.org/papyrus/nattable/model#//nattableaxis http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisconfiguration http://www.eclipse.org/papyrus/nattable/model#//nattableaxisconfiguration http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisprovider http://www.eclipse.org/papyrus/nattable/model#//nattableaxisprovider http://www.eclipse.org/papyrus/nattable/model/nattableconfiguration http://www.eclipse.org/papyrus/nattable/model#//nattableconfiguration">
+ <notation:Diagram xmi:id="_y3prQACLEeWudc8agGQ04Q" type="PapyrusUMLClassDiagram" name="Overview" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_y3prQQCLEeWudc8agGQ04Q" type="2005">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_jbVU8ACQEeWudc8agGQ04Q" source="PapyrusHyperLink_Page" references="_Yn6OoACQEeWudc8agGQ04Q">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_jbVU8QCQEeWudc8agGQ04Q" key="tooltip_text" value="Requirements"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_jbVU8gCQEeWudc8agGQ04Q" key="pageName" value="Requirements"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_jbVU8wCQEeWudc8agGQ04Q" key="is_default_navigation" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_y3prQgCLEeWudc8agGQ04Q" type="5020"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_y3prQwCLEeWudc8agGQ04Q" type="7009">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_y3prRACLEeWudc8agGQ04Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_y3prRQCLEeWudc8agGQ04Q"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_4qH0oACVEeWudc8agGQ04Q" visible="false" type="StereotypeLabel">
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_4qH0oQCVEeWudc8agGQ04Q" name="stereotype" stringValue="DeveloperProcess::structure::Requirements"/>
+ <element xmi:type="uml:Stereotype" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_ZnEXUMbYEeO09JBvNFZRNw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_4qH0ogCVEeWudc8agGQ04Q"/>
+ </children>
+ <element xmi:type="uml:Model" href="design.uml#_y3pEMgCLEeWudc8agGQ04Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_y3prRgCLEeWudc8agGQ04Q" x="201" y="17"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_y3prRwCLEeWudc8agGQ04Q" type="2005">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_qZD8EACQEeWudc8agGQ04Q" source="PapyrusHyperLink_Page" references="_s1YfcACOEeWudc8agGQ04Q">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qZD8EQCQEeWudc8agGQ04Q" key="tooltip_text" value="Use Cases"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qZD8EgCQEeWudc8agGQ04Q" key="pageName" value="Use Cases"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qZD8EwCQEeWudc8agGQ04Q" key="is_default_navigation" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_y3prSACLEeWudc8agGQ04Q" type="5020"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_y3prSQCLEeWudc8agGQ04Q" type="7009">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_y3prSgCLEeWudc8agGQ04Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_y3prSwCLEeWudc8agGQ04Q"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_4qOiUACVEeWudc8agGQ04Q" visible="false" type="StereotypeLabel">
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_4qOiUQCVEeWudc8agGQ04Q" name="stereotype" stringValue="DeveloperProcess::structure::UseCases"/>
+ <element xmi:type="uml:Stereotype" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_cvzC0MbYEeO09JBvNFZRNw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_4qOiUgCVEeWudc8agGQ04Q"/>
+ </children>
+ <element xmi:type="uml:Model" href="design.uml#_y3pEMwCLEeWudc8agGQ04Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_y3prTACLEeWudc8agGQ04Q" x="204" y="173"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_y3prTQCLEeWudc8agGQ04Q" type="2005">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_vPKh0ACwEeWnE_cMzyyIKA" source="PapyrusHyperLink_Page" references="_G7-rgACoEeWnE_cMzyyIKA">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_vPKh0QCwEeWnE_cMzyyIKA" key="tooltip_text" value="Plug-ins"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_vPKh0gCwEeWnE_cMzyyIKA" key="pageName" value="Plug-ins"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_vPKh0wCwEeWnE_cMzyyIKA" key="is_default_navigation" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_y3prTgCLEeWudc8agGQ04Q" type="5020"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_y3prTwCLEeWudc8agGQ04Q" type="7009">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_y3prUACLEeWudc8agGQ04Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_y3prUQCLEeWudc8agGQ04Q"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_4qV3EACVEeWudc8agGQ04Q" visible="false" type="StereotypeLabel">
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_4qV3EQCVEeWudc8agGQ04Q" name="stereotype" stringValue="DeveloperProcess::structure::Design"/>
+ <element xmi:type="uml:Stereotype" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_bS3x0MbYEeO09JBvNFZRNw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_4qV3EgCVEeWudc8agGQ04Q"/>
+ </children>
+ <element xmi:type="uml:Model" href="design.uml#_y3pENgCLEeWudc8agGQ04Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_y3prUgCLEeWudc8agGQ04Q" x="206" y="329"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_y3prUwCLEeWudc8agGQ04Q" type="2005">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ZXwcwAM5EeWWbMjTqzYc1A" source="PapyrusHyperLink_Page" references="_aCgfYAM4EeWWbMjTqzYc1A">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ZXwcwQM5EeWWbMjTqzYc1A" key="tooltip_text" value="Test Plug-ins"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ZXwcwgM5EeWWbMjTqzYc1A" key="pageName" value="Test Plug-ins"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ZXwcwwM5EeWWbMjTqzYc1A" key="is_default_navigation" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_y3prVACLEeWudc8agGQ04Q" type="5020"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_y3prVQCLEeWudc8agGQ04Q" type="7009">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_y3prVgCLEeWudc8agGQ04Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_y3prVwCLEeWudc8agGQ04Q"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_4qckwACVEeWudc8agGQ04Q" visible="false" type="StereotypeLabel">
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_4qckwQCVEeWudc8agGQ04Q" name="stereotype" stringValue="DeveloperProcess::structure::Tests"/>
+ <element xmi:type="uml:Stereotype" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_f1LfYMbYEeO09JBvNFZRNw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_4qckwgCVEeWudc8agGQ04Q"/>
+ </children>
+ <element xmi:type="uml:Model" href="design.uml#_y3pEOACLEeWudc8agGQ04Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_y3prWACLEeWudc8agGQ04Q" x="553" y="328"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_hWJRcACNEeWudc8agGQ04Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_hWJRcQCNEeWudc8agGQ04Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_hWJRcwCNEeWudc8agGQ04Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Model" href="design.uml#_y3pEMgCLEeWudc8agGQ04Q"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_hWJRcgCNEeWudc8agGQ04Q" x="401" y="38"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_hWTCcACNEeWudc8agGQ04Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_hWTCcQCNEeWudc8agGQ04Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_hWTCcwCNEeWudc8agGQ04Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Model" href="design.uml#_y3pEMwCLEeWudc8agGQ04Q"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_hWTCcgCNEeWudc8agGQ04Q" x="404" y="173"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_hWdagACNEeWudc8agGQ04Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_hWdagQCNEeWudc8agGQ04Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_hWdagwCNEeWudc8agGQ04Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Model" href="design.uml#_y3pENgCLEeWudc8agGQ04Q"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_hWdaggCNEeWudc8agGQ04Q" x="406" y="329"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_hWoZoACNEeWudc8agGQ04Q" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_hWoZoQCNEeWudc8agGQ04Q" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_hWoZowCNEeWudc8agGQ04Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Model" href="design.uml#_y3pEOACLEeWudc8agGQ04Q"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_hWoZogCNEeWudc8agGQ04Q" x="835" y="324"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_y3prWQCLEeWudc8agGQ04Q"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_y3prWgCLEeWudc8agGQ04Q">
+ <owner xmi:type="uml:Model" href="design.uml#_y3pEMACLEeWudc8agGQ04Q"/>
+ <configuration xmi:type="configuration:PapyrusDiagram" href="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#_7wLmpNxhEeOqHvRyiN87hA"/>
+ </styles>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_hVLBEACNEeWudc8agGQ04Q" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <element xmi:type="uml:Model" href="design.uml#_y3pEMACLEeWudc8agGQ04Q"/>
+ <edges xmi:type="notation:Connector" xmi:id="_y3prWwCLEeWudc8agGQ04Q" type="4006" source="_y3prRwCLEeWudc8agGQ04Q" target="_y3prQQCLEeWudc8agGQ04Q">
+ <children xmi:type="notation:DecorationNode" xmi:id="_y3prXACLEeWudc8agGQ04Q" type="6014">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_HcN-swCQEeWudc8agGQ04Q" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_HcN-tACQEeWudc8agGQ04Q" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_y3prXQCLEeWudc8agGQ04Q" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_y3prXgCLEeWudc8agGQ04Q" visible="false" type="6015">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_HcNXoACQEeWudc8agGQ04Q" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_HcNXoQCQEeWudc8agGQ04Q" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_y3prXwCLEeWudc8agGQ04Q" x="1" y="-53"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_y3prYACLEeWudc8agGQ04Q"/>
+ <element xmi:type="uml:Abstraction" href="design.uml#_y3pENACLEeWudc8agGQ04Q"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_y3prYQCLEeWudc8agGQ04Q" points="[-2, -10, 8, 48]$[-27, -45, -17, 13]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_y3prYgCLEeWudc8agGQ04Q" id="(0.295,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_y3prYwCLEeWudc8agGQ04Q" id="(0.31,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_y3prZACLEeWudc8agGQ04Q" type="4006" source="_y3prTQCLEeWudc8agGQ04Q" target="_y3prRwCLEeWudc8agGQ04Q">
+ <children xmi:type="notation:DecorationNode" xmi:id="_y3prZQCLEeWudc8agGQ04Q" type="6014">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_HcMwkACQEeWudc8agGQ04Q" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_HcMwkQCQEeWudc8agGQ04Q" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_y3prZgCLEeWudc8agGQ04Q" x="-6" y="32"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_y3prZwCLEeWudc8agGQ04Q" visible="false" type="6015">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_HcNXpACQEeWudc8agGQ04Q" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_HcNXpQCQEeWudc8agGQ04Q" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_y3praACLEeWudc8agGQ04Q" x="-2" y="-48"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_y3praQCLEeWudc8agGQ04Q"/>
+ <element xmi:type="uml:Abstraction" href="design.uml#_y3pENwCLEeWudc8agGQ04Q"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_y3pragCLEeWudc8agGQ04Q" points="[-9, -16, 0, 67]$[-24, -72, -15, 11]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_y3prawCLEeWudc8agGQ04Q" id="(0.27,0.16)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_y3prbACLEeWudc8agGQ04Q" id="(0.235,0.89)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_y3prbQCLEeWudc8agGQ04Q" type="4008" source="_y3prUwCLEeWudc8agGQ04Q" target="_y3prRwCLEeWudc8agGQ04Q">
+ <children xmi:type="notation:DecorationNode" xmi:id="_y3prbgCLEeWudc8agGQ04Q" type="6026">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_HcNXpgCQEeWudc8agGQ04Q" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_HcN-sACQEeWudc8agGQ04Q" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_y3prbwCLEeWudc8agGQ04Q" x="1" y="23"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_y3prcACLEeWudc8agGQ04Q" visible="false" type="6027">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_HcN-tQCQEeWudc8agGQ04Q" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_HcN-tgCQEeWudc8agGQ04Q" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_y3prcQCLEeWudc8agGQ04Q" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_y3prcgCLEeWudc8agGQ04Q"/>
+ <element xmi:type="uml:Dependency" href="design.uml#_y3pEOQCLEeWudc8agGQ04Q"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_y3prcwCLEeWudc8agGQ04Q" points="[-46, -20, 265, 113]$[-275, -135, 36, -2]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_y3prdACLEeWudc8agGQ04Q" id="(0.0,0.24)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_y3prdQCLEeWudc8agGQ04Q" id="(1.0,0.65)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_y3prdgCLEeWudc8agGQ04Q" type="4008" source="_y3prUwCLEeWudc8agGQ04Q" target="_y3prTQCLEeWudc8agGQ04Q">
+ <children xmi:type="notation:DecorationNode" xmi:id="_y3prdwCLEeWudc8agGQ04Q" type="6026">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_HcN-sQCQEeWudc8agGQ04Q" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_HcN-sgCQEeWudc8agGQ04Q" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_y3preACLEeWudc8agGQ04Q" x="1" y="18"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_y3preQCLEeWudc8agGQ04Q" visible="false" type="6027">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_HcNXogCQEeWudc8agGQ04Q" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_HcNXowCQEeWudc8agGQ04Q" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_y3pregCLEeWudc8agGQ04Q" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_y3prewCLEeWudc8agGQ04Q"/>
+ <element xmi:type="uml:Dependency" href="design.uml#_y3pEOgCLEeWudc8agGQ04Q"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_y3prfACLEeWudc8agGQ04Q" points="[-40, 1, 262, -12]$[-267, 20, 35, 7]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_y3prfQCLEeWudc8agGQ04Q" id="(0.0,0.65)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_y3prfgCLEeWudc8agGQ04Q" id="(1.0,0.64)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_hWJRdACNEeWudc8agGQ04Q" type="StereotypeCommentLink" source="_y3prQQCLEeWudc8agGQ04Q" target="_hWJRcACNEeWudc8agGQ04Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_hWJRdQCNEeWudc8agGQ04Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_hWJ4gACNEeWudc8agGQ04Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Model" href="design.uml#_y3pEMgCLEeWudc8agGQ04Q"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_hWJRdgCNEeWudc8agGQ04Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_hWJRdwCNEeWudc8agGQ04Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_hWJReACNEeWudc8agGQ04Q"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_hWTCdACNEeWudc8agGQ04Q" type="StereotypeCommentLink" source="_y3prRwCLEeWudc8agGQ04Q" target="_hWTCcACNEeWudc8agGQ04Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_hWTCdQCNEeWudc8agGQ04Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_hWTCeQCNEeWudc8agGQ04Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Model" href="design.uml#_y3pEMwCLEeWudc8agGQ04Q"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_hWTCdgCNEeWudc8agGQ04Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_hWTCdwCNEeWudc8agGQ04Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_hWTCeACNEeWudc8agGQ04Q"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_hWdahACNEeWudc8agGQ04Q" type="StereotypeCommentLink" source="_y3prTQCLEeWudc8agGQ04Q" target="_hWdagACNEeWudc8agGQ04Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_hWdahQCNEeWudc8agGQ04Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_hWeBkgCNEeWudc8agGQ04Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Model" href="design.uml#_y3pENgCLEeWudc8agGQ04Q"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_hWdahgCNEeWudc8agGQ04Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_hWeBkACNEeWudc8agGQ04Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_hWeBkQCNEeWudc8agGQ04Q"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_hWoZpACNEeWudc8agGQ04Q" type="StereotypeCommentLink" source="_y3prUwCLEeWudc8agGQ04Q" target="_hWoZoACNEeWudc8agGQ04Q">
+ <styles xmi:type="notation:FontStyle" xmi:id="_hWoZpQCNEeWudc8agGQ04Q"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_hWpAsACNEeWudc8agGQ04Q" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Model" href="design.uml#_y3pEOACLEeWudc8agGQ04Q"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_hWoZpgCNEeWudc8agGQ04Q" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_hWoZpwCNEeWudc8agGQ04Q"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_hWoZqACNEeWudc8agGQ04Q"/>
+ </edges>
+ </notation:Diagram>
+ <css:ModelStyleSheets xmi:id="_kFsLcACOEeWudc8agGQ04Q"/>
+ <notation:Diagram xmi:id="_s1YfcACOEeWudc8agGQ04Q" type="UseCase" name="Use Cases" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_vQlWkACOEeWudc8agGQ04Q" type="2015">
+ <children xmi:type="notation:DecorationNode" xmi:id="_vQlWkgCOEeWudc8agGQ04Q" type="5019"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_vQlWkwCOEeWudc8agGQ04Q" type="6047">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_vQlWlACOEeWudc8agGQ04Q" y="5"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_vQlWlQCOEeWudc8agGQ04Q" type="7011">
+ <children xmi:type="notation:Shape" xmi:id="_6GrWYACOEeWudc8agGQ04Q" type="3009">
+ <children xmi:type="notation:DecorationNode" xmi:id="_6Gr9cACOEeWudc8agGQ04Q" type="5018"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_6Gr9cQCOEeWudc8agGQ04Q" type="6045">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_6Gr9cgCOEeWudc8agGQ04Q" y="5"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_6Gr9cwCOEeWudc8agGQ04Q" type="7012">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_6Gr9dACOEeWudc8agGQ04Q"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_6Gr9dQCOEeWudc8agGQ04Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_6Gr9dgCOEeWudc8agGQ04Q"/>
+ </children>
+ <element xmi:type="uml:UseCase" href="design.uml#_BwcAgP_0EeScYo8tuJyy0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_6GrWYQCOEeWudc8agGQ04Q" x="24" y="11"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_6nbTAACOEeWudc8agGQ04Q" type="3009">
+ <children xmi:type="notation:DecorationNode" xmi:id="_6nbTAgCOEeWudc8agGQ04Q" type="5018"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_6nbTAwCOEeWudc8agGQ04Q" type="6045">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_6nbTBACOEeWudc8agGQ04Q" y="5"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_6nb6EACOEeWudc8agGQ04Q" type="7012">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_6nb6EQCOEeWudc8agGQ04Q"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_6nb6EgCOEeWudc8agGQ04Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_6nb6EwCOEeWudc8agGQ04Q"/>
+ </children>
+ <element xmi:type="uml:UseCase" href="design.uml#_xdObQP_0EeScYo8tuJyy0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_6nbTAQCOEeWudc8agGQ04Q" x="136" y="93"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_-SDKoACOEeWudc8agGQ04Q" type="3009">
+ <children xmi:type="notation:DecorationNode" xmi:id="_-SDxsACOEeWudc8agGQ04Q" type="5018"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_-SDxsQCOEeWudc8agGQ04Q" type="6045">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_-SDxsgCOEeWudc8agGQ04Q" y="5"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_-SDxswCOEeWudc8agGQ04Q" type="7012">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_-SDxtACOEeWudc8agGQ04Q"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_-SDxtQCOEeWudc8agGQ04Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_-SDxtgCOEeWudc8agGQ04Q"/>
+ </children>
+ <element xmi:type="uml:UseCase" href="design.uml#_zJRGUP_0EeScYo8tuJyy0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_-SDKoQCOEeWudc8agGQ04Q" x="74" y="173"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_-83CMACOEeWudc8agGQ04Q" type="3009">
+ <children xmi:type="notation:DecorationNode" xmi:id="_-83CMgCOEeWudc8agGQ04Q" type="5018"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_-83CMwCOEeWudc8agGQ04Q" type="6045">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_-83CNACOEeWudc8agGQ04Q" y="5"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_-83CNQCOEeWudc8agGQ04Q" type="7012">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_-83CNgCOEeWudc8agGQ04Q"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_-83CNwCOEeWudc8agGQ04Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_-83COACOEeWudc8agGQ04Q"/>
+ </children>
+ <element xmi:type="uml:UseCase" href="design.uml#_226cwP_0EeScYo8tuJyy0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_-83CMQCOEeWudc8agGQ04Q" x="180" y="268"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="__hbu4ACOEeWudc8agGQ04Q" type="3009">
+ <children xmi:type="notation:DecorationNode" xmi:id="__hcV8ACOEeWudc8agGQ04Q" type="5018"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="__hcV8QCOEeWudc8agGQ04Q" type="6045">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="__hcV8gCOEeWudc8agGQ04Q" y="5"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="__hcV8wCOEeWudc8agGQ04Q" type="7012">
+ <styles xmi:type="notation:SortingStyle" xmi:id="__hcV9ACOEeWudc8agGQ04Q"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="__hcV9QCOEeWudc8agGQ04Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="__hcV9gCOEeWudc8agGQ04Q"/>
+ </children>
+ <element xmi:type="uml:UseCase" href="design.uml#_5w1QMP_0EeScYo8tuJyy0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="__hbu4QCOEeWudc8agGQ04Q" x="193" y="345"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_AAIdEACPEeWudc8agGQ04Q" type="3009">
+ <children xmi:type="notation:DecorationNode" xmi:id="_AAIdEgCPEeWudc8agGQ04Q" type="5018"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_AAIdEwCPEeWudc8agGQ04Q" type="6045">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_AAIdFACPEeWudc8agGQ04Q" y="5"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_AAIdFQCPEeWudc8agGQ04Q" type="7012">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_AAIdFgCPEeWudc8agGQ04Q"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_AAIdFwCPEeWudc8agGQ04Q"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_AAIdGACPEeWudc8agGQ04Q"/>
+ </children>
+ <element xmi:type="uml:UseCase" href="design.uml#__JdhwP_0EeScYo8tuJyy0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_AAIdEQCPEeWudc8agGQ04Q" x="26" y="395"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_J0SmUACxEeWnE_cMzyyIKA" type="3009">
+ <children xmi:type="notation:DecorationNode" xmi:id="_J0T0cACxEeWnE_cMzyyIKA" type="5018"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_J0T0cQCxEeWnE_cMzyyIKA" type="6045">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_J0T0cgCxEeWnE_cMzyyIKA" y="5"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_J0T0cwCxEeWnE_cMzyyIKA" type="7012">
+ <styles xmi:type="notation:SortingStyle" xmi:id="_J0T0dACxEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_J0T0dQCxEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_J0T0dgCxEeWnE_cMzyyIKA"/>
+ </children>
+ <element xmi:type="uml:UseCase" href="design.uml#_J0AScACxEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_J0SmUQCxEeWnE_cMzyyIKA" x="163" y="478"/>
+ </children>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_vQlWlgCOEeWudc8agGQ04Q"/>
+ </children>
+ <element xmi:type="uml:Component" href="design.uml#_xS4T0P_xEeScYo8tuJyy0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_vQlWkQCOEeWudc8agGQ04Q" x="254" y="27" height="578"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_DHi58ACPEeWudc8agGQ04Q" type="2011">
+ <children xmi:type="notation:DecorationNode" xmi:id="_DHi58gCPEeWudc8agGQ04Q" type="5014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_DHi58wCPEeWudc8agGQ04Q" x="20" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_DHi59ACPEeWudc8agGQ04Q" type="6029">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_DHi59QCPEeWudc8agGQ04Q" x="20" y="100"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_DHi59gCPEeWudc8agGQ04Q" type="6037">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_DHi59wCPEeWudc8agGQ04Q" x="20" y="80"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_DHjhAACPEeWudc8agGQ04Q" type="6048">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_DHjhAQCPEeWudc8agGQ04Q" y="5"/>
+ </children>
+ <element xmi:type="uml:Actor" href="design.uml#_B0KNcP_1EeScYo8tuJyy0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_DHi58QCPEeWudc8agGQ04Q" x="79" y="267"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_UoiMAACxEeWnE_cMzyyIKA" type="2011">
+ <children xmi:type="notation:DecorationNode" xmi:id="_UoizEACxEeWnE_cMzyyIKA" type="5014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_UoizEQCxEeWnE_cMzyyIKA" x="20" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_UoizEgCxEeWnE_cMzyyIKA" type="6029">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_UoizEwCxEeWnE_cMzyyIKA" x="20" y="100"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_UoizFACxEeWnE_cMzyyIKA" type="6037">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_UoizFQCxEeWnE_cMzyyIKA" x="20" y="80"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_UoizFgCxEeWnE_cMzyyIKA" type="6048">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_UoizFwCxEeWnE_cMzyyIKA" y="5"/>
+ </children>
+ <element xmi:type="uml:Actor" href="design.uml#_UobeUACxEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_UoiMAQCxEeWnE_cMzyyIKA" x="706" y="461"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_s1YfcQCOEeWudc8agGQ04Q" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_s1YfcgCOEeWudc8agGQ04Q"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_s1YfcwCOEeWudc8agGQ04Q">
+ <owner xmi:type="uml:Model" href="design.uml#_y3pEMwCLEeWudc8agGQ04Q"/>
+ </styles>
+ <element xmi:type="uml:Model" href="design.uml#_y3pEMwCLEeWudc8agGQ04Q"/>
+ <edges xmi:type="notation:Connector" xmi:id="_FNONAACPEeWudc8agGQ04Q" type="4011" source="_DHi58ACPEeWudc8agGQ04Q" target="_6GrWYACOEeWudc8agGQ04Q">
+ <children xmi:type="notation:DecorationNode" xmi:id="_FNONAwCPEeWudc8agGQ04Q" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_FNONBACPEeWudc8agGQ04Q" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_FNO0EACPEeWudc8agGQ04Q" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_FNO0EQCPEeWudc8agGQ04Q" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_FNONAQCPEeWudc8agGQ04Q"/>
+ <element xmi:type="uml:Association" href="design.uml#_C7VQ4P_1EeScYo8tuJyy0A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_FNONAgCPEeWudc8agGQ04Q" points="[15, -11, -271, 187]$[246, -171, -40, 27]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_FNddkACPEeWudc8agGQ04Q" type="4011" source="_DHi58ACPEeWudc8agGQ04Q" target="_6nbTAACOEeWudc8agGQ04Q">
+ <children xmi:type="notation:DecorationNode" xmi:id="_FNddkwCPEeWudc8agGQ04Q" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_FNddlACPEeWudc8agGQ04Q" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_FNddlQCPEeWudc8agGQ04Q" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_FNddlgCPEeWudc8agGQ04Q" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_FNddkQCPEeWudc8agGQ04Q"/>
+ <element xmi:type="uml:Association" href="design.uml#_EvogEP_1EeScYo8tuJyy0A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_FNddkgCPEeWudc8agGQ04Q" points="[15, -5, -394, 111]$[333, -95, -76, 21]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_FNtVMACPEeWudc8agGQ04Q" type="4011" source="_DHi58ACPEeWudc8agGQ04Q" target="_-SDKoACOEeWudc8agGQ04Q">
+ <children xmi:type="notation:DecorationNode" xmi:id="_FNt8QACPEeWudc8agGQ04Q" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_FNt8QQCPEeWudc8agGQ04Q" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_FNt8QgCPEeWudc8agGQ04Q" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_FNt8QwCPEeWudc8agGQ04Q" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_FNtVMQCPEeWudc8agGQ04Q"/>
+ <element xmi:type="uml:Association" href="design.uml#_FkGp8P_1EeScYo8tuJyy0A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_FNtVMgCPEeWudc8agGQ04Q" points="[15, -2, -328, 34]$[245, -26, -98, 10]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_FN-a8ACPEeWudc8agGQ04Q" type="4011" source="_DHi58ACPEeWudc8agGQ04Q" target="_-83CMACOEeWudc8agGQ04Q">
+ <children xmi:type="notation:DecorationNode" xmi:id="_FN-a8wCPEeWudc8agGQ04Q" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_FN-a9ACPEeWudc8agGQ04Q" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_FN-a9QCPEeWudc8agGQ04Q" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_FN-a9gCPEeWudc8agGQ04Q" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_FN-a8QCPEeWudc8agGQ04Q"/>
+ <element xmi:type="uml:Association" href="design.uml#_GJo_8P_1EeScYo8tuJyy0A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_FN-a8gCPEeWudc8agGQ04Q" points="[15, 1, -428, -58]$[353, 47, -90, -12]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_FORV4ACPEeWudc8agGQ04Q" type="4011" source="_DHi58ACPEeWudc8agGQ04Q" target="__hbu4ACOEeWudc8agGQ04Q">
+ <children xmi:type="notation:DecorationNode" xmi:id="_FORV4wCPEeWudc8agGQ04Q" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_FORV5ACPEeWudc8agGQ04Q" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_FORV5QCPEeWudc8agGQ04Q" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_FORV5gCPEeWudc8agGQ04Q" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_FORV4QCPEeWudc8agGQ04Q"/>
+ <element xmi:type="uml:Association" href="design.uml#_GuxtUP_1EeScYo8tuJyy0A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_FORV4gCPEeWudc8agGQ04Q" points="[15, 4, -439, -132]$[384, 115, -70, -21]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_FOiboACPEeWudc8agGQ04Q" type="4011" source="_DHi58ACPEeWudc8agGQ04Q" target="_AAIdEACPEeWudc8agGQ04Q">
+ <children xmi:type="notation:DecorationNode" xmi:id="_FOibowCPEeWudc8agGQ04Q" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_FOibpACPEeWudc8agGQ04Q" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_FOibpQCPEeWudc8agGQ04Q" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_FOibpgCPEeWudc8agGQ04Q" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_FOiboQCPEeWudc8agGQ04Q"/>
+ <element xmi:type="uml:Association" href="design.uml#_HgO_cP_1EeScYo8tuJyy0A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_FOibogCPEeWudc8agGQ04Q" points="[15, 9, -279, -177]$[251, 158, -43, -28]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_mRAekACxEeWnE_cMzyyIKA" type="4011" source="_UoiMAACxEeWnE_cMzyyIKA" target="_J0SmUACxEeWnE_cMzyyIKA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_mRAekwCxEeWnE_cMzyyIKA" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_mRAelACxEeWnE_cMzyyIKA" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_mRBFoACxEeWnE_cMzyyIKA" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_mRBFoQCxEeWnE_cMzyyIKA" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_mRAekQCxEeWnE_cMzyyIKA"/>
+ <element xmi:type="uml:Association" href="design.uml#_mQ37sACxEeWnE_cMzyyIKA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_mRAekgCxEeWnE_cMzyyIKA" points="[-15, 5, 160, -64]$[-159, 75, 16, 6]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_mRveYACxEeWnE_cMzyyIKA" id="(0.0,0.64)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_mRveYQCxEeWnE_cMzyyIKA" id="(1.0,0.2833333333333333)"/>
+ </edges>
+ </notation:Diagram>
+ <nattable:Table xmi:id="_Yn6OoACQEeWudc8agGQ04Q" name="Requirements" currentRowAxisProvider="_Yn6OpQCQEeWudc8agGQ04Q" currentColumnAxisProvider="_Yn6OoQCQEeWudc8agGQ04Q">
+ <context xmi:type="uml:Model" href="design.uml#_y3pEMgCLEeWudc8agGQ04Q"/>
+ <owner xmi:type="uml:Model" href="design.uml#_y3pEMgCLEeWudc8agGQ04Q"/>
+ <prototype xmi:type="configuration:PapyrusSyncTable" href="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#_7wNb3txhEeOqHvRyiN87hA"/>
+ <tableConfiguration xmi:type="nattableconfiguration:TableConfiguration" href="platform:/plugin/org.eclipse.papyrus.sysml.nattable.requirement.config/configs/requirement.nattableconfiguration#/"/>
+ <columnAxisProvidersHistory xmi:type="nattableaxisprovider:SlaveObjectAxisProvider" xmi:id="_Yn6OoQCQEeWudc8agGQ04Q" description="Provides the columns of the tables with a default configuration" name="Requirements Feature Columns Provider">
+ <axis xmi:type="nattableaxis:FeatureIdAxis" xmi:id="_Yn6OogCQEeWudc8agGQ04Q" element="property_of_stereotype:/SysML::Requirements::Requirement::id">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.sysml.nattable.requirement.config/configs/requirement.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.1"/>
+ </axis>
+ <axis xmi:type="nattableaxis:EStructuralFeatureAxis" xmi:id="_Yn6OowCQEeWudc8agGQ04Q">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.sysml.nattable.requirement.config/configs/requirement.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.0"/>
+ <element xmi:type="ecore:EAttribute" href="http://www.eclipse.org/uml2/5.0.0/UML#//NamedElement/name"/>
+ </axis>
+ <axis xmi:type="nattableaxis:FeatureIdAxis" xmi:id="_Yn6OpACQEeWudc8agGQ04Q" element="property_of_stereotype:/SysML::Requirements::Requirement::text">
+ <manager xmi:type="nattableaxisconfiguration:AxisManagerRepresentation" href="platform:/plugin/org.eclipse.papyrus.sysml.nattable.requirement.config/configs/requirement.nattableconfiguration#//@columnHeaderAxisConfiguration/@axisManagers.1"/>
+ </axis>
+ </columnAxisProvidersHistory>
+ <rowAxisProvidersHistory xmi:type="nattableaxisprovider:MasterObjectAxisProvider" xmi:id="_Yn6OpQCQEeWudc8agGQ04Q" description="Provides the requirements directly owned by the context of the table" name="Requirement Axis Provider" disconnectSlave="true"/>
+ </nattable:Table>
+ <notation:Diagram xmi:id="_G7-rgACoEeWnE_cMzyyIKA" type="PapyrusUMLClassDiagram" name="Plug-ins" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_KlVX0ACoEeWnE_cMzyyIKA" type="2002">
+ <children xmi:type="notation:DecorationNode" xmi:id="_KlVX0gCoEeWnE_cMzyyIKA" type="5005"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_KlVX0wCoEeWnE_cMzyyIKA" type="8503">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_KlVX1ACoEeWnE_cMzyyIKA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_KlV-4ACoEeWnE_cMzyyIKA" visible="false" type="7002">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_KlV-4QCoEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_KlV-4gCoEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_KlV-4wCoEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_KlV-5ACoEeWnE_cMzyyIKA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_KlV-5QCoEeWnE_cMzyyIKA" visible="false" type="7003">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_KlV-5gCoEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_KlV-5wCoEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_KlV-6ACoEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_KlV-6QCoEeWnE_cMzyyIKA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_KlV-6gCoEeWnE_cMzyyIKA" visible="false" type="7004">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_KlV-6wCoEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_KlV-7ACoEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_KlV-7QCoEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_KlV-7gCoEeWnE_cMzyyIKA"/>
+ </children>
+ <element xmi:type="uml:Component" href="design.uml#_hTJT4AClEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_KlVX0QCoEeWnE_cMzyyIKA" x="145" y="62" height="52"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_Kl0gAACoEeWnE_cMzyyIKA" type="2002">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Kl1HEACoEeWnE_cMzyyIKA" type="5005"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Kl1HEQCoEeWnE_cMzyyIKA" type="8503">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Kl1HEgCoEeWnE_cMzyyIKA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Kl1HEwCoEeWnE_cMzyyIKA" visible="false" type="7002">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Kl1HFACoEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Kl1HFQCoEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Kl1HFgCoEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Kl1HFwCoEeWnE_cMzyyIKA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Kl1HGACoEeWnE_cMzyyIKA" visible="false" type="7003">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Kl1HGQCoEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Kl1HGgCoEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Kl1HGwCoEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Kl1HHACoEeWnE_cMzyyIKA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Kl1HHQCoEeWnE_cMzyyIKA" visible="false" type="7004">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Kl1HHgCoEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Kl1HHwCoEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Kl1HIACoEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Kl1HIQCoEeWnE_cMzyyIKA"/>
+ </children>
+ <element xmi:type="uml:Component" href="design.uml#_i-pMYAClEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Kl0gAQCoEeWnE_cMzyyIKA" x="404" y="195" height="52"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_KmCicACoEeWnE_cMzyyIKA" type="2002">
+ <children xmi:type="notation:DecorationNode" xmi:id="_KmCicgCoEeWnE_cMzyyIKA" type="5005"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_KmCicwCoEeWnE_cMzyyIKA" type="8503">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_KmCidACoEeWnE_cMzyyIKA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_KmCidQCoEeWnE_cMzyyIKA" visible="false" type="7002">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_KmCidgCoEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_KmCidwCoEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_KmCieACoEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_KmCieQCoEeWnE_cMzyyIKA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_KmCiegCoEeWnE_cMzyyIKA" visible="false" type="7003">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_KmCiewCoEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_KmCifACoEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_KmCifQCoEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_KmCifgCoEeWnE_cMzyyIKA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_KmCifwCoEeWnE_cMzyyIKA" visible="false" type="7004">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_KmCigACoEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_KmCigQCoEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_KmCiggCoEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_KmCigwCoEeWnE_cMzyyIKA"/>
+ </children>
+ <element xmi:type="uml:Component" href="design.uml#_murvgAClEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_KmCicQCoEeWnE_cMzyyIKA" x="479" y="44" height="52"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_KmTBIACoEeWnE_cMzyyIKA" type="2007">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_C7njsADEEeWt3cohpcF8rA" source="PapyrusHyperLink_Page" references="_qHdGgADDEeWt3cohpcF8rA">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_C7njsQDEEeWt3cohpcF8rA" key="tooltip_text" value="Sync Framework Core Classes"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_C7njsgDEEeWt3cohpcF8rA" key="pageName" value="Sync Framework Core Classes"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_C7njswDEEeWt3cohpcF8rA" key="is_default_navigation" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_KmToMACoEeWnE_cMzyyIKA" type="5026"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_KmToMQCoEeWnE_cMzyyIKA" type="7016">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_KmToMgCoEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_KmToMwCoEeWnE_cMzyyIKA"/>
+ </children>
+ <element xmi:type="uml:Package" href="design.uml#_AtaF4ACnEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_KmTBIQCoEeWnE_cMzyyIKA" x="-13" y="284"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_KmnxQACoEeWnE_cMzyyIKA" type="2007">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_76OpwACxEeWnE_cMzyyIKA" source="PapyrusHyperLink_Page" references="_6WeYAACxEeWnE_cMzyyIKA">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_76OpwQCxEeWnE_cMzyyIKA" key="tooltip_text" value="Sync Service Classes"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_76OpwgCxEeWnE_cMzyyIKA" key="pageName" value="Sync Service Classes"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_76OpwwCxEeWnE_cMzyyIKA" key="is_default_navigation" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_KmoYUACoEeWnE_cMzyyIKA" type="5026"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_KmoYUQCoEeWnE_cMzyyIKA" type="7016">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_KmoYUgCoEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_KmoYUwCoEeWnE_cMzyyIKA"/>
+ </children>
+ <element xmi:type="uml:Package" href="design.uml#_DEZLYACnEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_KmnxQQCoEeWnE_cMzyyIKA" x="249" y="277"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_QlQ58ACoEeWnE_cMzyyIKA" type="2014">
+ <children xmi:type="notation:DecorationNode" xmi:id="_QlRhAACoEeWnE_cMzyyIKA" type="1">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_QlRhAQCoEeWnE_cMzyyIKA" y="5"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_QlRhAgCoEeWnE_cMzyyIKA" type="8522">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_QlRhAwCoEeWnE_cMzyyIKA" y="5"/>
+ </children>
+ <element xmi:type="uml:Realization" href="design.uml#_OjDxoACoEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_QlRhBACoEeWnE_cMzyyIKA" x="187" y="234"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_hKtCMACoEeWnE_cMzyyIKA" type="2007">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_vCTOcAFIEeWqpuSzEVw8LA" source="PapyrusHyperLink_Page" references="_hZpaIADJEeWt3cohpcF8rA">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_vCTOcQFIEeWqpuSzEVw8LA" key="tooltip_text" value="Notation Sync Classes"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_vCTOcgFIEeWqpuSzEVw8LA" key="pageName" value="Notation Sync Classes"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_vCTOcwFIEeWqpuSzEVw8LA" key="is_default_navigation" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_hKtCMgCoEeWnE_cMzyyIKA" type="5026"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_hKtCMwCoEeWnE_cMzyyIKA" type="7016">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_hKtCNACoEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_hKtCNQCoEeWnE_cMzyyIKA"/>
+ </children>
+ <element xmi:type="uml:Package" href="design.uml#_hKj4QACoEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_hKtCMQCoEeWnE_cMzyyIKA" x="518" y="313"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_Jy_oAADAEeWt3cohpcF8rA" type="2007">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_mp9zUADAEeWt3cohpcF8rA" source="PapyrusHyperLink_Page" references="_hvNJgADAEeWt3cohpcF8rA">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_mp9zUQDAEeWt3cohpcF8rA" key="tooltip_text" value="Sync Policy Classes"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_mp9zUgDAEeWt3cohpcF8rA" key="pageName" value="Sync Policy Classes"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_mp9zUwDAEeWt3cohpcF8rA" key="is_default_navigation" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_JzBdMADAEeWt3cohpcF8rA" type="5026"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_JzBdMQDAEeWt3cohpcF8rA" type="7016">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_JzBdMgDAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_JzBdMwDAEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Package" href="design.uml#_Jxw48ADAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Jy_oAQDAEeWt3cohpcF8rA" x="150" y="399"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_G7-rgQCoEeWnE_cMzyyIKA" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_G7-rggCoEeWnE_cMzyyIKA"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_G7-rgwCoEeWnE_cMzyyIKA">
+ <owner xmi:type="uml:Model" href="design.uml#_y3pENgCLEeWudc8agGQ04Q"/>
+ </styles>
+ <element xmi:type="uml:Model" href="design.uml#_y3pENgCLEeWudc8agGQ04Q"/>
+ <edges xmi:type="notation:Connector" xmi:id="_QluM8ACoEeWnE_cMzyyIKA" type="4018" source="_KmTBIACoEeWnE_cMzyyIKA" target="_QlQ58ACoEeWnE_cMzyyIKA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_QluM8QCoEeWnE_cMzyyIKA"/>
+ <element xmi:type="uml:Realization" href="design.uml#_OjDxoACoEeWnE_cMzyyIKA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_QluM8gCoEeWnE_cMzyyIKA" points="[-18, -50, 101, 285]$[-119, -335, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_T9jrcACoEeWnE_cMzyyIKA" id="(0.57,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_T9jrcQCoEeWnE_cMzyyIKA" id="(0.3,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_Ql5zIACoEeWnE_cMzyyIKA" type="4018" source="_QlQ58ACoEeWnE_cMzyyIKA" target="_KlVX0ACoEeWnE_cMzyyIKA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_Ql5zIQCoEeWnE_cMzyyIKA"/>
+ <element xmi:type="uml:Realization" href="design.uml#_OjDxoACoEeWnE_cMzyyIKA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Ql5zIgCoEeWnE_cMzyyIKA" points="[0, 0, -29, 72]$[29, -72, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_T9kSgQCoEeWnE_cMzyyIKA" id="(0.5,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_T9kSggCoEeWnE_cMzyyIKA" id="(0.4774193548387097,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_QmDkIACoEeWnE_cMzyyIKA" type="4018" source="_KmnxQACoEeWnE_cMzyyIKA" target="_QlQ58ACoEeWnE_cMzyyIKA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_QmDkIQCoEeWnE_cMzyyIKA"/>
+ <element xmi:type="uml:Realization" href="design.uml#_OjDxoACoEeWnE_cMzyyIKA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_QmDkIgCoEeWnE_cMzyyIKA" points="[-47, -50, 357, 383]$[-404, -433, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_T9jrcgCoEeWnE_cMzyyIKA" id="(0.17,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_T9kSgACoEeWnE_cMzyyIKA" id="(1.0,0.8)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_kqh_EACoEeWnE_cMzyyIKA" type="4007" source="_Kl0gAACoEeWnE_cMzyyIKA" target="_KlVX0ACoEeWnE_cMzyyIKA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_kqimIACoEeWnE_cMzyyIKA" type="6016">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_kqimIQCoEeWnE_cMzyyIKA" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_kqimIgCoEeWnE_cMzyyIKA" type="6017">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_kqimIwCoEeWnE_cMzyyIKA" x="-10" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_kqh_EQCoEeWnE_cMzyyIKA"/>
+ <element xmi:type="uml:Usage" href="design.uml#_q-QHQAClEeWnE_cMzyyIKA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_kqh_EgCoEeWnE_cMzyyIKA" points="[-76, -50, 154, 101]$[-154, -101, 76, 50]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_kX3WMACyEeWnE_cMzyyIKA" id="(0.23222748815165878,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_kX3WMQCyEeWnE_cMzyyIKA" id="(0.8580645161290322,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_kq5ygACoEeWnE_cMzyyIKA" type="4007" source="_KmCicACoEeWnE_cMzyyIKA" target="_KlVX0ACoEeWnE_cMzyyIKA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_kq6ZkACoEeWnE_cMzyyIKA" type="6016">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_kq6ZkQCoEeWnE_cMzyyIKA" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_kq6ZkgCoEeWnE_cMzyyIKA" type="6017">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_kq6ZkwCoEeWnE_cMzyyIKA" x="2" y="19"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_kq5ygQCoEeWnE_cMzyyIKA"/>
+ <element xmi:type="uml:Usage" href="design.uml#_ppcQcAClEeWnE_cMzyyIKA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_kq5yggCoEeWnE_cMzyyIKA" points="[-72, 3, 257, -15]$[-251, 13, 78, -5]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_krKRMACoEeWnE_cMzyyIKA" type="4007" source="_KmCicACoEeWnE_cMzyyIKA" target="_Kl0gAACoEeWnE_cMzyyIKA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_krKRMwCoEeWnE_cMzyyIKA" type="6016">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_krKRNACoEeWnE_cMzyyIKA" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_krK4QACoEeWnE_cMzyyIKA" type="6017">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_krK4QQCoEeWnE_cMzyyIKA" x="5" y="21"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_krKRMQCoEeWnE_cMzyyIKA"/>
+ <element xmi:type="uml:Usage" href="design.uml#_qOZ-sAClEeWnE_cMzyyIKA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_krKRMgCoEeWnE_cMzyyIKA" points="[-29, 50, 70, -119]$[-70, 119, 29, -50]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_kX2vIACyEeWnE_cMzyyIKA" id="(0.4482758620689655,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_kX2vIQCyEeWnE_cMzyyIKA" id="(0.5308056872037915,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_nd0mEACoEeWnE_cMzyyIKA" type="4005" source="_hKtCMACoEeWnE_cMzyyIKA" target="_Kl0gAACoEeWnE_cMzyyIKA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nd0mEwCoEeWnE_cMzyyIKA" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nd0mFACoEeWnE_cMzyyIKA" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nd0mFQCoEeWnE_cMzyyIKA" type="6013">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nd0mFgCoEeWnE_cMzyyIKA" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_nd0mEQCoEeWnE_cMzyyIKA"/>
+ <element xmi:type="uml:Realization" href="design.uml#_ndmjoACoEeWnE_cMzyyIKA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_nd0mEgCoEeWnE_cMzyyIKA" points="[-17, -19, 83, 95]$[-60, -111, 40, 3]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_neZ04ACoEeWnE_cMzyyIKA" id="(0.3142857142857143,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_neZ04QCoEeWnE_cMzyyIKA" id="(0.7488151658767772,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_VakvIADAEeWt3cohpcF8rA" type="4018" source="_Jy_oAADAEeWt3cohpcF8rA" target="_QlQ58ACoEeWnE_cMzyyIKA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_VakvIQDAEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Realization" href="design.uml#_OjDxoACoEeWnE_cMzyyIKA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_VakvIgDAEeWt3cohpcF8rA" points="[-13, -50, 45, 181]$[-57, -226, 1, 5]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_WmGuIADAEeWt3cohpcF8rA" id="(0.43,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_WmHVMADAEeWt3cohpcF8rA" id="(0.6,1.0)"/>
+ </edges>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_6WeYAACxEeWnE_cMzyyIKA" type="PapyrusUMLClassDiagram" name="Sync Service Classes" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_BDaxIACyEeWnE_cMzyyIKA" type="2004">
+ <children xmi:type="notation:DecorationNode" xmi:id="_BDaxIgCyEeWnE_cMzyyIKA" type="5011"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_BDaxIwCyEeWnE_cMzyyIKA" type="8507">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_BDaxJACyEeWnE_cMzyyIKA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_BDaxJQCyEeWnE_cMzyyIKA" type="7006">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_BDaxJgCyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_BDaxJwCyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_BDaxKACyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_BDaxKQCyEeWnE_cMzyyIKA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_BDaxKgCyEeWnE_cMzyyIKA" type="7007">
+ <children xmi:type="notation:Shape" xmi:id="_2Gn28ACyEeWnE_cMzyyIKA" type="3007">
+ <element xmi:type="uml:Operation" href="design.uml#_2Gde4ACyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2Gn28QCyEeWnE_cMzyyIKA"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_BDaxKwCyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_BDaxLACyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_BDaxLQCyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_BDaxLgCyEeWnE_cMzyyIKA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_BDaxLwCyEeWnE_cMzyyIKA" type="7008">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_BDaxMACyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_BDaxMQCyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_BDaxMgCyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_BDaxMwCyEeWnE_cMzyyIKA"/>
+ </children>
+ <element xmi:type="uml:Interface" href="design.uml#_BDQZEACyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_BDaxIQCyEeWnE_cMzyyIKA" x="39" y="96"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_CbL1UACyEeWnE_cMzyyIKA" type="2004">
+ <children xmi:type="notation:DecorationNode" xmi:id="_CbL1UgCyEeWnE_cMzyyIKA" type="5011"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_CbL1UwCyEeWnE_cMzyyIKA" type="8507">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_CbL1VACyEeWnE_cMzyyIKA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_CbMcYACyEeWnE_cMzyyIKA" type="7006">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_CbMcYQCyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_CbMcYgCyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_CbMcYwCyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_CbMcZACyEeWnE_cMzyyIKA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_CbMcZQCyEeWnE_cMzyyIKA" type="7007">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_CbMcZgCyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_CbMcZwCyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_CbMcaACyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_CbMcaQCyEeWnE_cMzyyIKA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_CbMcagCyEeWnE_cMzyyIKA" type="7008">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_CbMcawCyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_CbMcbACyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_CbMcbQCyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_CbMcbgCyEeWnE_cMzyyIKA"/>
+ </children>
+ <element xmi:type="uml:Interface" href="design.uml#_CbCEUACyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_CbL1UQCyEeWnE_cMzyyIKA" x="482" y="77"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_E997IACyEeWnE_cMzyyIKA" type="2004">
+ <children xmi:type="notation:DecorationNode" xmi:id="_E997IgCyEeWnE_cMzyyIKA" type="5011"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_E997IwCyEeWnE_cMzyyIKA" type="8507">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_E997JACyEeWnE_cMzyyIKA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_E997JQCyEeWnE_cMzyyIKA" type="7006">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_E997JgCyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_E997JwCyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_E997KACyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_E997KQCyEeWnE_cMzyyIKA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_E997KgCyEeWnE_cMzyyIKA" type="7007">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_E997KwCyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_E997LACyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_E997LQCyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_E997LgCyEeWnE_cMzyyIKA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_E997LwCyEeWnE_cMzyyIKA" type="7008">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_E997MACyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_E997MQCyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_E997MgCyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_E997MwCyEeWnE_cMzyyIKA"/>
+ </children>
+ <element xmi:type="uml:Interface" href="design.uml#_E9y8AACyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_E997IQCyEeWnE_cMzyyIKA" x="453" y="292"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_KiabIACyEeWnE_cMzyyIKA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_KibCMACyEeWnE_cMzyyIKA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_KibCMQCyEeWnE_cMzyyIKA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_KibCMgCyEeWnE_cMzyyIKA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_KibCMwCyEeWnE_cMzyyIKA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_KibCNACyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_KibCNQCyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_KibCNgCyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_KibCNwCyEeWnE_cMzyyIKA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_KibCOACyEeWnE_cMzyyIKA" type="7018">
+ <children xmi:type="notation:Shape" xmi:id="_dbjYcAC_EeWnc73YHF_Igw" type="3013">
+ <element xmi:type="uml:Operation" href="design.uml#_da-wsAC_EeWnc73YHF_Igw"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_dbjYcQC_EeWnc73YHF_Igw"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_KibCOQCyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_KibCOgCyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_KibCOwCyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_KibCPACyEeWnE_cMzyyIKA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_KibCPQCyEeWnE_cMzyyIKA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_KibCPgCyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_KibCPwCyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_KibCQACyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_KibCQQCyEeWnE_cMzyyIKA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Kit9IACyEeWnE_cMzyyIKA" type="compartment_shape_display">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Kit9IQCyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Kit9IgCyEeWnE_cMzyyIKA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_L1Fj8ACyEeWnE_cMzyyIKA" type="3015">
+ <children xmi:type="notation:DecorationNode" xmi:id="_L1Fj8gCyEeWnE_cMzyyIKA" type="7014">
+ <children xmi:type="notation:Shape" xmi:id="_OKOPUACyEeWnE_cMzyyIKA" type="3031">
+ <element xmi:type="uml:ClassifierTemplateParameter" href="design.uml#_OKGTgACyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_OKOPUQCyEeWnE_cMzyyIKA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_SuKUkACyEeWnE_cMzyyIKA" type="3031">
+ <element xmi:type="uml:ClassifierTemplateParameter" href="design.uml#_SuCYwACyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_SuKUkQCyEeWnE_cMzyyIKA"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_L1Fj8wCyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_L1Fj9ACyEeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_L1Fj9QCyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_L1Fj9gCyEeWnE_cMzyyIKA"/>
+ </children>
+ <element xmi:type="uml:RedefinableTemplateSignature" href="design.uml#_L09oIACyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_L1Fj8QCyEeWnE_cMzyyIKA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_KiQqIACyEeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_KiabIQCyEeWnE_cMzyyIKA" x="52" y="317" width="206"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_8aQGQAC0EeWnE_cMzyyIKA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_8aQGQgC0EeWnE_cMzyyIKA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_8aQGQwC0EeWnE_cMzyyIKA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_8aQGRAC0EeWnE_cMzyyIKA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_8aQGRQC0EeWnE_cMzyyIKA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_8aQGRgC0EeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_8aQGRwC0EeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_8aQGSAC0EeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_8aQGSQC0EeWnE_cMzyyIKA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_8aQGSgC0EeWnE_cMzyyIKA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_8aQGSwC0EeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_8aQGTAC0EeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_8aQGTQC0EeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_8aQGTgC0EeWnE_cMzyyIKA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_8aQGTwC0EeWnE_cMzyyIKA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_8aQGUAC0EeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_8aQGUQC0EeWnE_cMzyyIKA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_8aQGUgC0EeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_8aQGUwC0EeWnE_cMzyyIKA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_8aHjYAC0EeWnE_cMzyyIKA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_8aQGQQC0EeWnE_cMzyyIKA" x="454" y="445"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_6WeYAQCxEeWnE_cMzyyIKA" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_6WeYAgCxEeWnE_cMzyyIKA"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_6WeYAwCxEeWnE_cMzyyIKA">
+ <owner xmi:type="uml:Package" href="design.uml#_DEZLYACnEeWnE_cMzyyIKA"/>
+ </styles>
+ <element xmi:type="uml:Package" href="design.uml#_DEZLYACnEeWnE_cMzyyIKA"/>
+ <edges xmi:type="notation:Connector" xmi:id="_ob3-MACyEeWnE_cMzyyIKA" type="4001" source="_KiabIACyEeWnE_cMzyyIKA" target="_BDaxIACyEeWnE_cMzyyIKA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ob3-MwCyEeWnE_cMzyyIKA" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ob3-NACyEeWnE_cMzyyIKA" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ob3-NQCyEeWnE_cMzyyIKA" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ob3-NgCyEeWnE_cMzyyIKA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ob3-NwCyEeWnE_cMzyyIKA" visible="false" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ob3-OACyEeWnE_cMzyyIKA" x="1" y="-75"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ob3-OQCyEeWnE_cMzyyIKA" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ob3-OgCyEeWnE_cMzyyIKA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ob3-OwCyEeWnE_cMzyyIKA" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ob3-PACyEeWnE_cMzyyIKA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ob4lQACyEeWnE_cMzyyIKA" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ob4lQQCyEeWnE_cMzyyIKA" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_ob3-MQCyEeWnE_cMzyyIKA"/>
+ <element xmi:type="uml:Association" href="design.uml#_obmRYACyEeWnE_cMzyyIKA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_ob3-MgCyEeWnE_cMzyyIKA" points="[-1, -15, 13, 171]$[14, -136, 28, 50]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ocZioACyEeWnE_cMzyyIKA" id="(0.5048543689320388,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ocZioQCyEeWnE_cMzyyIKA" id="(0.527027027027027,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_WbVfAAC0EeWnE_cMzyyIKA" type="4007" source="_BDaxIACyEeWnE_cMzyyIKA" target="_CbL1UACyEeWnE_cMzyyIKA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_WbWGEAC0EeWnE_cMzyyIKA" type="6016">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_WbWGEQC0EeWnE_cMzyyIKA" x="-2" y="-18"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_WbWGEgC0EeWnE_cMzyyIKA" type="6017">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_WbWGEwC0EeWnE_cMzyyIKA" y="25"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_WbVfAQC0EeWnE_cMzyyIKA"/>
+ <element xmi:type="uml:Usage" href="design.uml#_WbM8IAC0EeWnE_cMzyyIKA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_WbVfAgC0EeWnE_cMzyyIKA" points="[22, 5, -232, 0]$[231, -1, -23, -6]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Wb2cYAC0EeWnE_cMzyyIKA" id="(1.0,0.18691588785046728)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Wb2cYQC0EeWnE_cMzyyIKA" id="(0.0,0.43)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_eakmcAC0EeWnE_cMzyyIKA" type="4007" source="_CbL1UACyEeWnE_cMzyyIKA" target="_E997IACyEeWnE_cMzyyIKA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ealNgAC0EeWnE_cMzyyIKA" type="6016">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ealNgQC0EeWnE_cMzyyIKA" x="4" y="-29"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ealNggC0EeWnE_cMzyyIKA" type="6017">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ealNgwC0EeWnE_cMzyyIKA" x="4" y="28"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_eakmcQC0EeWnE_cMzyyIKA"/>
+ <element xmi:type="uml:Usage" href="design.uml#_eacDkAC0EeWnE_cMzyyIKA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_eakmcgC0EeWnE_cMzyyIKA" points="[-3, 18, 25, -165]$[-21, 133, 7, -50]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ebB5cAC0EeWnE_cMzyyIKA" id="(0.46,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ebB5cQC0EeWnE_cMzyyIKA" id="(0.61,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_gpDQMAC0EeWnE_cMzyyIKA" type="4007" source="_BDaxIACyEeWnE_cMzyyIKA" target="_E997IACyEeWnE_cMzyyIKA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_gpDQMwC0EeWnE_cMzyyIKA" type="6016">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_gpDQNAC0EeWnE_cMzyyIKA" x="-16" y="-15"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_gpDQNQC0EeWnE_cMzyyIKA" type="6017">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_gpDQNgC0EeWnE_cMzyyIKA" x="-8" y="17"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_gpDQMQC0EeWnE_cMzyyIKA"/>
+ <element xmi:type="uml:Usage" href="design.uml#_go6tUAC0EeWnE_cMzyyIKA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_gpDQMgC0EeWnE_cMzyyIKA" points="[15, 12, -193, -165]$[195, 177, -13, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_gphxUAC0EeWnE_cMzyyIKA" id="(1.0,0.7663551401869159)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_gphxUQC0EeWnE_cMzyyIKA" id="(0.0,0.39)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_IXT4sAC2EeWnE_cMzyyIKA" type="4003" source="_8aQGQAC0EeWnE_cMzyyIKA" target="_E997IACyEeWnE_cMzyyIKA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_IXT4swC2EeWnE_cMzyyIKA" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_IXT4tAC2EeWnE_cMzyyIKA" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_IXUfwAC2EeWnE_cMzyyIKA" type="6009">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_IXUfwQC2EeWnE_cMzyyIKA" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_IXT4sQC2EeWnE_cMzyyIKA"/>
+ <element xmi:type="uml:InterfaceRealization" href="design.uml#_IXISgAC2EeWnE_cMzyyIKA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_IXT4sgC2EeWnE_cMzyyIKA" points="[-6, -22, 2, 103]$[-6, -75, 2, 50]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_IYC4gAC2EeWnE_cMzyyIKA" id="(0.55,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_IYC4gQC2EeWnE_cMzyyIKA" id="(0.53,1.0)"/>
+ </edges>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_hvNJgADAEeWt3cohpcF8rA" type="PapyrusUMLClassDiagram" name="Sync Policy Classes" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_rrsn0ADAEeWt3cohpcF8rA" type="2004">
+ <children xmi:type="notation:DecorationNode" xmi:id="_rrtO4ADAEeWt3cohpcF8rA" type="5011"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_rrtO4QDAEeWt3cohpcF8rA" type="8507">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_rrtO4gDAEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_rrtO4wDAEeWt3cohpcF8rA" type="7006">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_rrtO5ADAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_rrtO5QDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_rrtO5gDAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_rrtO5wDAEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_rrtO6ADAEeWt3cohpcF8rA" type="7007">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_rrtO6QDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_rrtO6gDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_rrtO6wDAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_rrtO7ADAEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_rrtO7QDAEeWt3cohpcF8rA" type="7008">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_rrtO7gDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_rrtO7wDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_rrtO8ADAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_rrtO8QDAEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Interface" href="design.uml#_rrfMcADAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_rrsn0QDAEeWt3cohpcF8rA" x="76" y="78"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_tDAZAADAEeWt3cohpcF8rA" type="2004">
+ <children xmi:type="notation:DecorationNode" xmi:id="_tDBAEADAEeWt3cohpcF8rA" type="5011"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_tDBAEQDAEeWt3cohpcF8rA" type="8507">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_tDBAEgDAEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_tDBAEwDAEeWt3cohpcF8rA" type="7006">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_tDBAFADAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_tDBAFQDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_tDBAFgDAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_tDBAFwDAEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_tDBAGADAEeWt3cohpcF8rA" type="7007">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_tDBAGQDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_tDBAGgDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_tDBAGwDAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_tDBAHADAEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_tDBAHQDAEeWt3cohpcF8rA" type="7008">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_tDBAHgDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_tDBAHwDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_tDBAIADAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_tDBAIQDAEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Interface" href="design.uml#_tC0LwADAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_tDAZAQDAEeWt3cohpcF8rA" x="418" y="109"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_v6HJAADAEeWt3cohpcF8rA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_v6HJAgDAEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_v6HJAwDAEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_v6HJBADAEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_v6HJBQDAEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_v6HJBgDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_v6HJBwDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_v6HJCADAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_v6HJCQDAEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_v6HJCgDAEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_v6HJCwDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_v6HJDADAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_v6HJDQDAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_v6HJDgDAEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_v6HwEADAEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_v6HwEQDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_v6HwEgDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_v6HwEwDAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_v6HwFADAEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_v56UsADAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_v6HJAQDAEeWt3cohpcF8rA" x="496" y="305"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_3hpiIADAEeWt3cohpcF8rA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3hqJMADAEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3hqJMQDAEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3hqJMgDAEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_3hqJMwDAEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_3hqJNADAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_3hqJNQDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_3hqJNgDAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3hqJNwDAEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_3hqJOADAEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_3hqJOQDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_3hqJOgDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_3hqJOwDAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3hqJPADAEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_3hqJPQDAEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_3hqJPgDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_3hqJPwDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_3hqJQADAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3hqJQQDAEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_3hd78ADAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3hpiIQDAEeWt3cohpcF8rA" x="70" y="247"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_61EasADAEeWt3cohpcF8rA" type="2004">
+ <children xmi:type="notation:DecorationNode" xmi:id="_61EasgDAEeWt3cohpcF8rA" type="5011"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_61EaswDAEeWt3cohpcF8rA" type="8507">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_61EatADAEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_61EatQDAEeWt3cohpcF8rA" type="7006">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_61EatgDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_61EatwDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_61EauADAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_61EauQDAEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_61EaugDAEeWt3cohpcF8rA" type="7007">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_61EauwDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_61EavADAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_61EavQDAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_61EavgDAEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_61FBwADAEeWt3cohpcF8rA" type="7008">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_61FBwQDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_61FBwgDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_61FBwwDAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_61FBxADAEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Interface" href="design.uml#_603mYADAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_61EasQDAEeWt3cohpcF8rA" x="241" y="310"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_Ggv3UADEEeWt3cohpcF8rA" type="2008" fillColor="12632256">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_PXfOgADEEeWt3cohpcF8rA" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_PXfOgQDEEeWt3cohpcF8rA" key="QualifiedNameDepth" value="2"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Ggv3UgDEEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Ggv3UwDEEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Ggv3VADEEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Ggv3VQDEEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Ggv3VgDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Ggv3VwDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Ggv3WADEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Ggv3WQDEEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Ggv3WgDEEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Ggv3WwDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Ggv3XADEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Ggv3XQDEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Ggv3XgDEEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_GgweYADEEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_GgweYQDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_GgweYgDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_GgweYwDEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_GgweZADEEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_sVtGwADDEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Ggv3UQDEEeWt3cohpcF8rA" x="638" y="109"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_hvNJgQDAEeWt3cohpcF8rA" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_hvNJggDAEeWt3cohpcF8rA"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_hvNJgwDAEeWt3cohpcF8rA">
+ <owner xmi:type="uml:Package" href="design.uml#_Jxw48ADAEeWt3cohpcF8rA"/>
+ </styles>
+ <element xmi:type="uml:Package" href="design.uml#_Jxw48ADAEeWt3cohpcF8rA"/>
+ <edges xmi:type="notation:Connector" xmi:id="_yf_mIADAEeWt3cohpcF8rA" type="4003" source="_v6HJAADAEeWt3cohpcF8rA" target="_tDAZAADAEeWt3cohpcF8rA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ygANMADAEeWt3cohpcF8rA" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ygANMQDAEeWt3cohpcF8rA" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ygANMgDAEeWt3cohpcF8rA" type="6009">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ygANMwDAEeWt3cohpcF8rA" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_yf_mIQDAEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:InterfaceRealization" href="design.uml#_yffP0ADAEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_yf_mIgDAEeWt3cohpcF8rA" points="[7, -14, 0, 119]$[3, -113, -4, 20]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_yghxoADAEeWt3cohpcF8rA" id="(0.46153846153846156,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_yghxoQDAEeWt3cohpcF8rA" id="(0.5892857142857143,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_0HHU8ADAEeWt3cohpcF8rA" type="4007" source="_3hpiIADAEeWt3cohpcF8rA" target="_tDAZAADAEeWt3cohpcF8rA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_0HH8AADAEeWt3cohpcF8rA" type="6016">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_0HH8AQDAEeWt3cohpcF8rA" x="-10" y="-25"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_0HH8AgDAEeWt3cohpcF8rA" type="6017">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_4WWDkADCEeWt3cohpcF8rA" source="PapyrusCSSForceValue">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_4WWDkQDCEeWt3cohpcF8rA" key="visible" value="true"/>
+ </eAnnotations>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_0HH8AwDAEeWt3cohpcF8rA" y="18"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_0HHU8QDAEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Usage" href="design.uml#_0G55kADAEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0HHU8gDAEeWt3cohpcF8rA" points="[30, 5, -193, -23]$[192, -22, -31, -50]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_0HkA4ADAEeWt3cohpcF8rA" id="(1.0,0.32)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_0HkA4QDAEeWt3cohpcF8rA" id="(0.0,0.25)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_5QfCgADAEeWt3cohpcF8rA" type="4003" source="_3hpiIADAEeWt3cohpcF8rA" target="_rrsn0ADAEeWt3cohpcF8rA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_5QfpkADAEeWt3cohpcF8rA" type="6008">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_5QfpkQDAEeWt3cohpcF8rA" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_5QfpkgDAEeWt3cohpcF8rA" type="6009">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_5QfpkwDAEeWt3cohpcF8rA" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_5QfCgQDAEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:InterfaceRealization" href="design.uml#_5P9eEADAEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_5QfCggDAEeWt3cohpcF8rA" points="[2, -12, -23, 155]$[75, -158, 50, 9]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_5Q9joADAEeWt3cohpcF8rA" id="(0.5490196078431373,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_5Q9joQDAEeWt3cohpcF8rA" id="(0.5,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_e4LckADBEeWt3cohpcF8rA" type="4001" source="_61EasADAEeWt3cohpcF8rA" target="_tDAZAADAEeWt3cohpcF8rA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_e4MDoADBEeWt3cohpcF8rA" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_e4MDoQDBEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_e4MDogDBEeWt3cohpcF8rA" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_e4MDowDBEeWt3cohpcF8rA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_e4MDpADBEeWt3cohpcF8rA" visible="false" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_e4MDpQDBEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_e4MDpgDBEeWt3cohpcF8rA" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_e4MDpwDBEeWt3cohpcF8rA" x="-8" y="31"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_e4MDqADBEeWt3cohpcF8rA" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_e4MDqQDBEeWt3cohpcF8rA" x="14" y="11"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_e4MqsADBEeWt3cohpcF8rA" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_e4MqsQDBEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_e4LckQDBEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Association" href="design.uml#_e3wl0ADBEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_e4LckgDBEeWt3cohpcF8rA" points="[11, -11, -133, 118]$[88, -122, -56, 7]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_e41j4ADBEeWt3cohpcF8rA" id="(0.7236842105263158,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_e41j4QDBEeWt3cohpcF8rA" id="(0.0,0.91)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_zuQ6oADBEeWt3cohpcF8rA" type="4001" source="_3hpiIADAEeWt3cohpcF8rA" target="_61EasADAEeWt3cohpcF8rA" routing="Rectilinear">
+ <children xmi:type="notation:DecorationNode" xmi:id="_zuRhsADBEeWt3cohpcF8rA" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_zuRhsQDBEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_zuRhsgDBEeWt3cohpcF8rA" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_zuRhswDBEeWt3cohpcF8rA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_zuRhtADBEeWt3cohpcF8rA" visible="false" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_zuRhtQDBEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_zuRhtgDBEeWt3cohpcF8rA" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_zuRhtwDBEeWt3cohpcF8rA" x="-22" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_zuSIwADBEeWt3cohpcF8rA" visible="false" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_zuSIwQDBEeWt3cohpcF8rA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_zuSIwgDBEeWt3cohpcF8rA" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_zuSIwwDBEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_zuQ6oQDBEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Association" href="design.uml#_zt35EADBEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_zuQ6ogDBEeWt3cohpcF8rA" points="[-20, 82, -89, 18]$[-27, 112, -96, 48]$[69, 64, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_zu_TYADBEeWt3cohpcF8rA" id="(1.0,0.18)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_zu_6cADBEeWt3cohpcF8rA" id="(0.0,0.19)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_Fq2cAADCEeWt3cohpcF8rA" type="4008" source="_v6HJAADAEeWt3cohpcF8rA" target="_61EasADAEeWt3cohpcF8rA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Fq3DEADCEeWt3cohpcF8rA" type="6026">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Fq3DEQDCEeWt3cohpcF8rA" x="-3" y="17"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Fq3DEgDCEeWt3cohpcF8rA" type="6027">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Fq3DEwDCEeWt3cohpcF8rA" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_Fq2cAQDCEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Dependency" href="design.uml#_FqOw8ADCEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Fq2cAgDCEeWt3cohpcF8rA" points="[-52, -9, 122, 19]$[-155, -30, 19, -2]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Frf8QADCEeWt3cohpcF8rA" id="(0.0,0.38)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Frf8QQDCEeWt3cohpcF8rA" id="(1.0,0.46)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_I04dIADEEeWt3cohpcF8rA" type="4008" source="_tDAZAADAEeWt3cohpcF8rA" target="_Ggv3UADEEeWt3cohpcF8rA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_I05EMADEEeWt3cohpcF8rA" type="6026">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_I05EMQDEEeWt3cohpcF8rA" x="-2" y="-12"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_I05EMgDEEeWt3cohpcF8rA" type="6027">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_I05EMwDEEeWt3cohpcF8rA" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_I04dIQDEEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Dependency" href="design.uml#_I0sP4ADEEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_I04dIgDEEeWt3cohpcF8rA" points="[34, 4, -128, -18]$[142, 11, -20, -11]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_I1rHUADEEeWt3cohpcF8rA" id="(1.0,0.31)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_I1rHUQDEEeWt3cohpcF8rA" id="(0.0,0.31)"/>
+ </edges>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_qHdGgADDEeWt3cohpcF8rA" type="PapyrusUMLClassDiagram" name="Sync Framework Core Classes" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_sV4F4ADDEeWt3cohpcF8rA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_sV4s8ADDEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_sV4s8QDDEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_sV4s8gDDEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_sV4s8wDDEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_sV4s9ADDEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_sV4s9QDDEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_sV4s9gDDEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_sV4s9wDDEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_sV4s-ADDEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_sV4s-QDDEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_sV4s-gDDEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_sV4s-wDDEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_sV4s_ADDEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_sV4s_QDDEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_sV4s_gDDEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_sV4s_wDDEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_sV4tAADDEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_sV4tAQDDEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_sV8-YADDEeWt3cohpcF8rA" type="compartment_shape_display">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_sV8-YQDDEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_sV8-YgDDEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_tv_TcADDEeWt3cohpcF8rA" type="3015">
+ <children xmi:type="notation:DecorationNode" xmi:id="_tv_6gADDEeWt3cohpcF8rA" type="7014">
+ <children xmi:type="notation:Shape" xmi:id="_uUCbsADDEeWt3cohpcF8rA" type="3031">
+ <element xmi:type="uml:ClassifierTemplateParameter" href="design.uml#_uT-xUADDEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_uUCbsQDDEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ztSYUADDEeWt3cohpcF8rA" type="3031">
+ <element xmi:type="uml:ClassifierTemplateParameter" href="design.uml#_ztOt8ADDEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ztSYUQDDEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_43hokADDEeWt3cohpcF8rA" type="3031">
+ <element xmi:type="uml:ClassifierTemplateParameter" href="design.uml#_43dXIADDEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_43hokQDDEeWt3cohpcF8rA"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_tv_6gQDDEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_tv_6ggDDEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_tv_6gwDDEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_tv_6hADDEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:RedefinableTemplateSignature" href="design.uml#_tv7CAADDEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_tv_TcQDDEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_sVtGwADDEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_sV4F4QDDEeWt3cohpcF8rA" x="469" y="182" width="179"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ny2xMADEEeWt3cohpcF8rA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ny3YQADEEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ny3YQQDEEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ny3YQgDEEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ny3YQwDEEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ny3YRADEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ny3YRQDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ny3YRgDEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ny3YRwDEEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ny3YSADEEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ny3YSQDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ny3YSgDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ny3YSwDEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ny3YTADEEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ny3YTQDEEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ny3YTgDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ny3YTwDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ny3YUADEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ny3YUQDEEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ny830ADEEeWt3cohpcF8rA" type="compartment_shape_display">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ny830QDEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ny830gDEEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_zyzfkADFEeWt3cohpcF8rA" type="3015">
+ <children xmi:type="notation:DecorationNode" xmi:id="_zyzfkgDFEeWt3cohpcF8rA" type="7014">
+ <children xmi:type="notation:Shape" xmi:id="_0N0AkADFEeWt3cohpcF8rA" type="3031">
+ <element xmi:type="uml:ClassifierTemplateParameter" href="design.uml#_jJG-4gDEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_0N0AkQDFEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_0pqPEADFEeWt3cohpcF8rA" type="3031">
+ <element xmi:type="uml:ClassifierTemplateParameter" href="design.uml#_jJG-5ADEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_0pqPEQDFEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_1GTHwADFEeWt3cohpcF8rA" type="3031">
+ <element xmi:type="uml:ClassifierTemplateParameter" href="design.uml#_jJG-5gDEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_1GTHwQDFEeWt3cohpcF8rA"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_zyzfkwDFEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_zyzflADFEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_zyzflQDFEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_zyzflgDFEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:RedefinableTemplateSignature" href="design.uml#_jJG-4QDEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_zyzfkQDFEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_jJG-4ADEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ny2xMQDEEeWt3cohpcF8rA" x="27" y="202" width="172"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_nzH28ADEEeWt3cohpcF8rA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nzH28gDEEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nzH28wDEEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nzH29ADEEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_nzIeAADEEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_nzIeAQDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_nzIeAgDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_nzIeAwDEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nzIeBADEEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_nzIeBQDEEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_nzIeBgDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_nzIeBwDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_nzIeCADEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nzIeCQDEEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_nzIeCgDEEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_nzIeCwDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_nzIeDADEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_nzIeDQDEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nzIeDgDEEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_nzNWgADEEeWt3cohpcF8rA" type="compartment_shape_display">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_nzNWgQDEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nzNWggDEEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_74ZtsADFEeWt3cohpcF8rA" type="3015">
+ <children xmi:type="notation:DecorationNode" xmi:id="_74ZtsgDFEeWt3cohpcF8rA" type="7014">
+ <children xmi:type="notation:Shape" xmi:id="_8UudUADFEeWt3cohpcF8rA" type="3031">
+ <element xmi:type="uml:ClassifierTemplateParameter" href="design.uml#_jW6KUgDEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_8UudUQDFEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_9JN1UADFEeWt3cohpcF8rA" type="3031">
+ <element xmi:type="uml:ClassifierTemplateParameter" href="design.uml#_jW6KVADEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_9JN1UQDFEeWt3cohpcF8rA"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_74ZtswDFEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_74ZttADFEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_74ZttQDFEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_74ZttgDFEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:RedefinableTemplateSignature" href="design.uml#_jW6KUQDEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_74ZtsQDFEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_jW6KUADEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nzH28QDEEeWt3cohpcF8rA" x="303" y="372" width="151"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_nzaK0ADEEeWt3cohpcF8rA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nzaK0gDEEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nzaK0wDEEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nzaK1ADEEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_nzaK1QDEEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_nzaK1gDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_nzaK1wDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_nzaK2ADEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nzaK2QDEEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_nzaK2gDEEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_nzaK2wDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_nzaK3ADEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_nzaK3QDEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nzaK3gDEEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_nzax4ADEEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_nzax4QDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_nzax4gDEEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_nzax4wDEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nzax5ADEEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_nzfqYADEEeWt3cohpcF8rA" type="compartment_shape_display">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_nzfqYQDEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nzfqYgDEEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_AP55cADGEeWt3cohpcF8rA" type="3015">
+ <children xmi:type="notation:DecorationNode" xmi:id="_AP55cgDGEeWt3cohpcF8rA" type="7014">
+ <children xmi:type="notation:Shape" xmi:id="_BO6fYADGEeWt3cohpcF8rA" type="3031">
+ <element xmi:type="uml:ClassifierTemplateParameter" href="design.uml#_kHf5wgDEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_BO6fYQDGEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_BPKXAADGEeWt3cohpcF8rA" type="3031">
+ <element xmi:type="uml:ClassifierTemplateParameter" href="design.uml#_kHf5xADEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_BPKXAQDGEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_BPcD0ADGEeWt3cohpcF8rA" type="3031">
+ <element xmi:type="uml:ClassifierTemplateParameter" href="design.uml#_kHf5xgDEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_BPcD0QDGEeWt3cohpcF8rA"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_AP55cwDGEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_AP55dADGEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_AP55dQDGEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_AP55dgDGEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:RedefinableTemplateSignature" href="design.uml#_kHf5wQDEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_AP55cQDGEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_kHf5wADEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nzaK0QDEEeWt3cohpcF8rA" x="254" y="41" width="180"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_VNuzsADFEeWt3cohpcF8rA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_VNvawADFEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_VNvawQDFEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_VNvawgDFEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_VNvawwDFEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_VNvaxADFEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_VNvaxQDFEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_VNvaxgDFEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_VNvaxwDFEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_VNvayADFEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_VNvayQDFEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_VNvaygDFEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_VNvaywDFEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_VNvazADFEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_VNvazQDFEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_VNvazgDFEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_VNvazwDFEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_VNva0ADFEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_VNva0QDFEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_VN06UADFEeWt3cohpcF8rA" type="compartment_shape_display">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_VN06UQDFEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_VN06UgDFEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_kmClAADGEeWt3cohpcF8rA" type="3015">
+ <children xmi:type="notation:DecorationNode" xmi:id="_kmClAgDGEeWt3cohpcF8rA" type="7014">
+ <children xmi:type="notation:Shape" xmi:id="_lWDssADGEeWt3cohpcF8rA" type="3031">
+ <element xmi:type="uml:ClassifierTemplateParameter" href="design.uml#_O9-F0gDFEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lWDssQDGEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_lWXOsADGEeWt3cohpcF8rA" type="3031">
+ <element xmi:type="uml:ClassifierTemplateParameter" href="design.uml#_O9-F1ADFEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lWXOsQDGEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_lWtM8ADGEeWt3cohpcF8rA" type="3031">
+ <element xmi:type="uml:ClassifierTemplateParameter" href="design.uml#_O9-F1gDFEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lWtM8QDGEeWt3cohpcF8rA"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_kmClAwDGEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_kmClBADGEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_kmClBQDGEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_kmClBgDGEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:RedefinableTemplateSignature" href="design.uml#_O9-F0QDFEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_kmClAQDGEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_O9-F0ADFEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_VNuzsQDFEeWt3cohpcF8rA" x="-3" y="374" width="218"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_HIEEEADGEeWt3cohpcF8rA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_HIErIADGEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_HIErIQDGEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_HIErIgDGEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_HIErIwDGEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_HIErJADGEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_HIErJQDGEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_HIErJgDGEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_HIErJwDGEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_HIErKADGEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_HIErKQDGEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_HIErKgDGEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_HIErKwDGEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_HIErLADGEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_HIErLQDGEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_HIErLgDGEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_HIErLwDGEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_HIErMADGEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_HIErMQDGEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_HH6TEADGEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_HIEEEQDGEeWt3cohpcF8rA" x="503" y="379"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ISq2AADGEeWt3cohpcF8rA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ISrdEADGEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ISrdEQDGEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ISrdEgDGEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ISrdEwDGEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ISrdFADGEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ISrdFQDGEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ISrdFgDGEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ISrdFwDGEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ISrdGADGEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ISrdGQDGEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ISrdGgDGEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ISrdGwDGEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ISrdHADGEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ISrdHQDGEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ISrdHgDGEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ISrdHwDGEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ISrdIADGEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ISrdIQDGEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_IShFAADGEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ISq2AQDGEeWt3cohpcF8rA" x="667" y="376"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_qHdGgQDDEeWt3cohpcF8rA" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_qHdGggDDEeWt3cohpcF8rA"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_qHdGgwDDEeWt3cohpcF8rA">
+ <owner xmi:type="uml:Package" href="design.uml#_AtaF4ACnEeWnE_cMzyyIKA"/>
+ </styles>
+ <element xmi:type="uml:Package" href="design.uml#_AtaF4ACnEeWnE_cMzyyIKA"/>
+ <edges xmi:type="notation:Connector" xmi:id="_u7BtwADEEeWt3cohpcF8rA" type="4001" source="_nzaK0ADEEeWt3cohpcF8rA" target="_ny2xMADEEeWt3cohpcF8rA" routing="Rectilinear">
+ <children xmi:type="notation:DecorationNode" xmi:id="_u7BtwwDEEeWt3cohpcF8rA" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_u7CU0ADEEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_u7CU0QDEEeWt3cohpcF8rA" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_u7CU0gDEEeWt3cohpcF8rA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_u7CU0wDEEeWt3cohpcF8rA" visible="false" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_u7CU1ADEEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_u7CU1QDEEeWt3cohpcF8rA" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_u7CU1gDEEeWt3cohpcF8rA" x="-1" y="32"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_u7CU1wDEEeWt3cohpcF8rA" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_u7CU2ADEEeWt3cohpcF8rA" x="3" y="-12"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_u7CU2QDEEeWt3cohpcF8rA" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_u7CU2gDEEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_u7BtwQDEEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Association" href="design.uml#_u6uLwADEEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_u7BtwgDEEeWt3cohpcF8rA" points="[0, 3, 121, -107]$[-136, 3, -15, -107]$[-136, 110, -15, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_u7irIADEEeWt3cohpcF8rA" id="(0.0,0.51)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_u7jSMADEEeWt3cohpcF8rA" id="(0.6162790697674418,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_D80skADFEeWt3cohpcF8rA" type="4001" source="_ny2xMADEEeWt3cohpcF8rA" target="_nzH28ADEEeWt3cohpcF8rA" routing="Rectilinear">
+ <children xmi:type="notation:DecorationNode" xmi:id="_D80skwDFEeWt3cohpcF8rA" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_D80slADFEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_D80slQDFEeWt3cohpcF8rA" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_D80slgDFEeWt3cohpcF8rA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_D81ToADFEeWt3cohpcF8rA" visible="false" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_D81ToQDFEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_D81TogDFEeWt3cohpcF8rA" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_D81TowDFEeWt3cohpcF8rA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_D81TpADFEeWt3cohpcF8rA" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_D81TpQDFEeWt3cohpcF8rA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_D81TpgDFEeWt3cohpcF8rA" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_D81TpwDFEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_D80skQDFEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Association" href="design.uml#_D8euUADFEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_D80skgDFEeWt3cohpcF8rA" points="[0, 13, -141, -66]$[149, 13, 8, -66]$[149, 79, 8, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_D9VC4ADFEeWt3cohpcF8rA" id="(1.0,0.92)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_D9VC4QDFEeWt3cohpcF8rA" id="(0.2913907284768212,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_WWnuYADFEeWt3cohpcF8rA" type="4001" source="_VNuzsADFEeWt3cohpcF8rA" target="_nzH28ADEEeWt3cohpcF8rA" routing="Rectilinear">
+ <children xmi:type="notation:DecorationNode" xmi:id="_WWnuYwDFEeWt3cohpcF8rA" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_WWnuZADFEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_WWnuZQDFEeWt3cohpcF8rA" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_WWnuZgDFEeWt3cohpcF8rA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_WWnuZwDFEeWt3cohpcF8rA" visible="false" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_WWnuaADFEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_WWnuaQDFEeWt3cohpcF8rA" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_WWoVcADFEeWt3cohpcF8rA" x="-11" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_WWoVcQDFEeWt3cohpcF8rA" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_WWoVcgDFEeWt3cohpcF8rA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_WWoVcwDFEeWt3cohpcF8rA" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_WWoVdADFEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_WWnuYQDFEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Association" href="design.uml#_WWQiAADFEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_WWnuYgDFEeWt3cohpcF8rA" points="[0, 32, -88, -20]$[88, 32, 0, -20]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_WXVgEADFEeWt3cohpcF8rA" id="(1.0,0.13)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_WXVgEQDFEeWt3cohpcF8rA" id="(0.0,0.67)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_jIxLMADFEeWt3cohpcF8rA" type="4002" source="_VNuzsADFEeWt3cohpcF8rA" target="_ny2xMADEEeWt3cohpcF8rA" routing="Rectilinear">
+ <children xmi:type="notation:DecorationNode" xmi:id="_jIxyQADFEeWt3cohpcF8rA" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jIxyQQDFEeWt3cohpcF8rA" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_jIxLMQDFEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Generalization" href="design.uml#_jIihsADFEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_jIxLMgDFEeWt3cohpcF8rA" points="[-2, 0, 8, 72]$[-2, -72, 8, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_jJeV0ADFEeWt3cohpcF8rA" id="(0.5254237288135594,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_jJeV0QDFEeWt3cohpcF8rA" id="(0.43023255813953487,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_Nnha0ADGEeWt3cohpcF8rA" type="4001" source="_HIEEEADGEeWt3cohpcF8rA" target="_ISq2AADGEeWt3cohpcF8rA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_NniB4ADGEeWt3cohpcF8rA" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_NniB4QDGEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_NniB4gDGEeWt3cohpcF8rA" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_NniB4wDGEeWt3cohpcF8rA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_NniB5ADGEeWt3cohpcF8rA" visible="false" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_NniB5QDGEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_NniB5gDGEeWt3cohpcF8rA" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_NniB5wDGEeWt3cohpcF8rA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_NniB6ADGEeWt3cohpcF8rA" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_NniB6QDGEeWt3cohpcF8rA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Nnio8ADGEeWt3cohpcF8rA" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Nnio8QDGEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_Nnha0QDGEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Association" href="design.uml#_NnC5sADGEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Nnha0gDGEeWt3cohpcF8rA" points="[24, -1, -114, -19]$[132, -32, -6, -50]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Nog5UADGEeWt3cohpcF8rA" id="(1.0,0.28)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Nog5UQDGEeWt3cohpcF8rA" id="(0.0,0.31)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_VrRO0ADGEeWt3cohpcF8rA" type="4007" source="_sV4F4ADDEeWt3cohpcF8rA" target="_ISq2AADGEeWt3cohpcF8rA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_VrRO0wDGEeWt3cohpcF8rA" type="6016">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_VrRO1ADGEeWt3cohpcF8rA" x="10" y="-31"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_VrRO1QDGEeWt3cohpcF8rA" type="6017">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_VrR14ADGEeWt3cohpcF8rA" x="-4" y="21"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_VrRO0QDGEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Usage" href="design.uml#_Vq2_IADGEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_VrRO0gDGEeWt3cohpcF8rA" points="[13, 15, -101, -115]$[121, 109, 7, -21]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_VsMb4ADGEeWt3cohpcF8rA" id="(0.8770949720670391,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_VsMb4QDGEeWt3cohpcF8rA" id="(0.41,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_jGEKkADHEeWt3cohpcF8rA" type="4001" source="_ny2xMADEEeWt3cohpcF8rA" target="_sV4F4ADDEeWt3cohpcF8rA" routing="Rectilinear">
+ <children xmi:type="notation:DecorationNode" xmi:id="_jGExoADHEeWt3cohpcF8rA" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jGExoQDHEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_jGExogDHEeWt3cohpcF8rA" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jGExowDHEeWt3cohpcF8rA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_jGExpADHEeWt3cohpcF8rA" visible="false" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jGExpQDHEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_jGExpgDHEeWt3cohpcF8rA" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jGExpwDHEeWt3cohpcF8rA" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_jGExqADHEeWt3cohpcF8rA" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jGExqQDHEeWt3cohpcF8rA" y="-9"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_jGFYsADHEeWt3cohpcF8rA" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jGFYsQDHEeWt3cohpcF8rA" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_jGEKkQDHEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Association" href="design.uml#_jFlpcADHEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_jGEKkgDHEeWt3cohpcF8rA" points="[0, 5, -270, 13]$[270, 5, 0, 13]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_jHE3MADHEeWt3cohpcF8rA" id="(1.0,0.37)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_jHE3MQDHEeWt3cohpcF8rA" id="(0.0,0.49)"/>
+ </edges>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_hZpaIADJEeWt3cohpcF8rA" type="PapyrusUMLClassDiagram" name="Notation Sync Classes" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_kPsaMADJEeWt3cohpcF8rA" type="2008" fillColor="12632256">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_onQ3YADJEeWt3cohpcF8rA" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_onQ3YQDJEeWt3cohpcF8rA" key="QualifiedNameDepth" value="2"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_kPsaMgDJEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_kPtBQADJEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_kPtBQQDJEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_kPtBQgDJEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_kPtBQwDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_kPtBRADJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_kPtBRQDJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_kPtBRgDJEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_kPtBRwDJEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_kPtBSADJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_kPtBSQDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_kPtBSgDJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_kPtBSwDJEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_kPtBTADJEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_kPtBTQDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_kPtBTgDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_kPtBTwDJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_kPtBUADJEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_sVtGwADDEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_kPsaMQDJEeWt3cohpcF8rA" x="240" y="298"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_runp4ADJEeWt3cohpcF8rA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_runp4gDJEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ruoQ8ADJEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ruoQ8QDJEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ruoQ8gDJEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ruoQ8wDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ruoQ9ADJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ruoQ9QDJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ruoQ9gDJEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ruoQ9wDJEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ruoQ-ADJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ruoQ-QDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ruoQ-gDJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ruoQ-wDJEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ruoQ_ADJEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ruoQ_QDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ruoQ_gDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ruoQ_wDJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ruoRAADJEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_rud44ADJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_runp4QDJEeWt3cohpcF8rA" x="11" y="481"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_2uEaAADJEeWt3cohpcF8rA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_2uEaAgDJEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2uEaAwDJEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2uEaBADJEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_2uEaBQDJEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_2uEaBgDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_2uEaBwDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_2uEaCADJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2uEaCQDJEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_2uEaCgDJEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_2uEaCwDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_2uEaDADJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_2uEaDQDJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2uEaDgDJEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_2uEaDwDJEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_2uEaEADJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_2uEaEQDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_2uEaEgDJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2uEaEwDJEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_2t6pAADJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_2uEaAQDJEeWt3cohpcF8rA" x="187" y="481"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_7_nMIADJEeWt3cohpcF8rA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_7_nMIgDJEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_7_nMIwDJEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7_nMJADJEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_7_nMJQDJEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_7_nMJgDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_7_nMJwDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_7_nMKADJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7_nMKQDJEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_7_nzMADJEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_7_nzMQDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_7_nzMgDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_7_nzMwDJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7_nzNADJEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_7_nzNQDJEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_7_nzNgDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_7_nzNwDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_7_nzOADJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7_nzOQDJEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_7_dbIADJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7_nMIQDJEeWt3cohpcF8rA" x="345" y="481"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_9TEYEADJEeWt3cohpcF8rA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_9TEYEgDJEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_9TEYEwDJEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_9TEYFADJEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_9TE_IADJEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_9TE_IQDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_9TE_IgDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_9TE_IwDJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_9TE_JADJEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_9TE_JQDJEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_9TE_JgDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_9TE_JwDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_9TE_KADJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_9TE_KQDJEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_9TE_KgDJEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_9TE_KwDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_9TE_LADJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_9TE_LQDJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_9TE_LgDJEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_9S6nEADJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_9TEYEQDJEeWt3cohpcF8rA" x="501" y="481"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="__13E8ADJEeWt3cohpcF8rA" type="2008" fillColor="12632256">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_DOi4AADKEeWt3cohpcF8rA" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_DOi4AQDKEeWt3cohpcF8rA" key="QualifiedNameDepth" value="2"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="__13sAADJEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="__13sAQDJEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="__13sAgDJEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="__13sAwDJEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="__13sBADJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="__13sBQDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="__13sBgDJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="__13sBwDJEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="__13sCADJEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="__13sCQDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="__13sCgDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="__13sCwDJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="__13sDADJEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="__13sDQDJEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="__13sDgDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="__13sDwDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="__13sEADJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="__13sEQDJEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_jJG-4ADEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="__13E8QDJEeWt3cohpcF8rA" x="331" y="17"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="__2PfcADJEeWt3cohpcF8rA" type="2008" fillColor="12632256">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_DOjfEADKEeWt3cohpcF8rA" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_DOjfEQDKEeWt3cohpcF8rA" key="QualifiedNameDepth" value="2"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="__2PfcgDJEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="__2PfcwDJEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="__2QGgADJEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="__2QGgQDJEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="__2QGggDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="__2QGgwDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="__2QGhADJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="__2QGhQDJEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="__2QGhgDJEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="__2QGhwDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="__2QGiADJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="__2QGiQDJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="__2QGigDJEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="__2QGiwDJEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="__2QGjADJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="__2QGjQDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="__2QGjgDJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="__2QGjwDJEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_jW6KUADEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="__2PfcQDJEeWt3cohpcF8rA" x="535" y="17"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="__2ohAADJEeWt3cohpcF8rA" type="2008" fillColor="12632256">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_DOjfEgDKEeWt3cohpcF8rA" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_DOjfEwDKEeWt3cohpcF8rA" key="QualifiedNameDepth" value="2"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="__2ohAgDJEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="__2ohAwDJEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="__2ohBADJEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="__2pIEADJEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="__2pIEQDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="__2pIEgDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="__2pIEwDJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="__2pIFADJEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="__2pIFQDJEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="__2pIFgDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="__2pIFwDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="__2pIGADJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="__2pIGQDJEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="__2pIGgDJEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="__2pIGwDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="__2pIHADJEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="__2pIHQDJEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="__2pIHgDJEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_kHf5wADEEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="__2ohAQDJEeWt3cohpcF8rA" x="105" y="17"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_aB-zkADKEeWt3cohpcF8rA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_aB-zkgDKEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_aB-zkwDKEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_aB-zlADKEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_aB_aoADKEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_aB_aoQDKEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_aB_aogDKEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_aB_aowDKEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_aB_apADKEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_aB_apQDKEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_aB_apgDKEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_aB_apwDKEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_aB_aqADKEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_aB_aqQDKEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_aB_aqgDKEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_aB_aqwDKEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_aB_arADKEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_aB_arQDKEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_aB_argDKEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_aB0bgADKEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_aB-zkQDKEeWt3cohpcF8rA" x="111" y="163"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_bPRGEADKEeWt3cohpcF8rA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_bPRGEgDKEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_bPRGEwDKEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bPRGFADKEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_bPRGFQDKEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bPRGFgDKEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_bPRGFwDKEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_bPRGGADKEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bPRGGQDKEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_bPRGGgDKEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bPRGGwDKEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_bPRGHADKEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_bPRGHQDKEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bPRGHgDKEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_bPRGHwDKEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bPRGIADKEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_bPRGIQDKEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_bPRGIgDKEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bPRGIwDKEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_bPHVEADKEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bPRGEQDKEeWt3cohpcF8rA" x="347" y="163"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ccJv8ADKEeWt3cohpcF8rA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ccKXAADKEeWt3cohpcF8rA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ccKXAQDKEeWt3cohpcF8rA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ccKXAgDKEeWt3cohpcF8rA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ccKXAwDKEeWt3cohpcF8rA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ccKXBADKEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ccKXBQDKEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ccKXBgDKEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ccKXBwDKEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ccKXCADKEeWt3cohpcF8rA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ccKXCQDKEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ccKXCgDKEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ccKXCwDKEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ccKXDADKEeWt3cohpcF8rA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ccKXDQDKEeWt3cohpcF8rA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ccKXDgDKEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ccKXDwDKEeWt3cohpcF8rA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ccKXEADKEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ccKXEQDKEeWt3cohpcF8rA"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_ccAmAADKEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ccJv8QDKEeWt3cohpcF8rA" x="550" y="163"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_kuGeMAMeEeWWbMjTqzYc1A" type="2008" fillColor="12632256">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_na_iQAMeEeWWbMjTqzYc1A" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_na_iQQMeEeWWbMjTqzYc1A" key="QualifiedNameDepth" value="2"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_kuHFQAMeEeWWbMjTqzYc1A" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_kuHFQQMeEeWWbMjTqzYc1A" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_kuHFQgMeEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_kuHFQwMeEeWWbMjTqzYc1A" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_kuHFRAMeEeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_kuHFRQMeEeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_kuHFRgMeEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_kuHFRwMeEeWWbMjTqzYc1A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_kuHFSAMeEeWWbMjTqzYc1A" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_kuHFSQMeEeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_kuHFSgMeEeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_kuHFSwMeEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_kuHFTAMeEeWWbMjTqzYc1A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_kuHFTQMeEeWWbMjTqzYc1A" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_kuHFTgMeEeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_kuHFTwMeEeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_kuHFUAMeEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_kuHFUQMeEeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_IShFAADGEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_kuGeMQMeEeWWbMjTqzYc1A" x="750" y="294"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_omQbgAMeEeWWbMjTqzYc1A" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_omQbggMeEeWWbMjTqzYc1A" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_omQbgwMeEeWWbMjTqzYc1A" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_omQbhAMeEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_omQbhQMeEeWWbMjTqzYc1A" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_omQbhgMeEeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_omQbhwMeEeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_omQbiAMeEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_omQbiQMeEeWWbMjTqzYc1A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_omQbigMeEeWWbMjTqzYc1A" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_omQbiwMeEeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_omQbjAMeEeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_omQbjQMeEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_omQbjgMeEeWWbMjTqzYc1A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_omQbjwMeEeWWbMjTqzYc1A" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_omQbkAMeEeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_omQbkQMeEeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_omQbkgMeEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_omQbkwMeEeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_omByAAMeEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_omQbgQMeEeWWbMjTqzYc1A" x="673" y="483"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_CU15kAMfEeWWbMjTqzYc1A" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_CU15kgMfEeWWbMjTqzYc1A" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_CU2goAMfEeWWbMjTqzYc1A" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_CU2goQMfEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_CU2gogMfEeWWbMjTqzYc1A" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_CU2gowMfEeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_CU2gpAMfEeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_CU2gpQMfEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_CU2gpgMfEeWWbMjTqzYc1A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_CU2gpwMfEeWWbMjTqzYc1A" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_CU2gqAMfEeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_CU2gqQMfEeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_CU2gqgMfEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_CU2gqwMfEeWWbMjTqzYc1A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_CU2grAMfEeWWbMjTqzYc1A" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_CU2grQMfEeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_CU2grgMfEeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_CU2grwMfEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_CU2gsAMfEeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#__ruiQAMeEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_CU15kQMfEeWWbMjTqzYc1A" x="843" y="483"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_8MwCgAM1EeWWbMjTqzYc1A" type="2008" fillColor="12632256">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="__USbMAM1EeWWbMjTqzYc1A" source="QualifiedName">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="__USbMQM1EeWWbMjTqzYc1A" key="QualifiedNameDepth" value="2"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_8MwpkAM1EeWWbMjTqzYc1A" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_8MwpkQM1EeWWbMjTqzYc1A" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_8MwpkgM1EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_8MwpkwM1EeWWbMjTqzYc1A" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_8MwplAM1EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_8MwplQM1EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_8MwplgM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_8MwplwM1EeWWbMjTqzYc1A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_8MwpmAM1EeWWbMjTqzYc1A" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_8MwpmQM1EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_8MwpmgM1EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_8MwpmwM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_8MwpnAM1EeWWbMjTqzYc1A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_8MwpnQM1EeWWbMjTqzYc1A" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_8MwpngM1EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_8MwpnwM1EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_8MwpoAM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_8MwpoQM1EeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_v56UsADAEeWt3cohpcF8rA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_8MwCgQM1EeWWbMjTqzYc1A" x="779" y="17"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ANKj8AM2EeWWbMjTqzYc1A" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ANKj8gM2EeWWbMjTqzYc1A" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ANKj8wM2EeWWbMjTqzYc1A" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ANKj9AM2EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ANKj9QM2EeWWbMjTqzYc1A" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ANKj9gM2EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ANKj9wM2EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ANKj-AM2EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ANKj-QM2EeWWbMjTqzYc1A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ANKj-gM2EeWWbMjTqzYc1A" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ANKj-wM2EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ANKj_AM2EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ANKj_QM2EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ANKj_gM2EeWWbMjTqzYc1A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ANKj_wM2EeWWbMjTqzYc1A" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ANKkAAM2EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ANKkAQM2EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ANKkAgM2EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ANKkAwM2EeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_ANAy8AM2EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ANKj8QM2EeWWbMjTqzYc1A" x="776" y="169"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_hZpaIQDJEeWt3cohpcF8rA" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_hZpaIgDJEeWt3cohpcF8rA"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_hZpaIwDJEeWt3cohpcF8rA">
+ <owner xmi:type="uml:Package" href="design.uml#_hKj4QACoEeWnE_cMzyyIKA"/>
+ </styles>
+ <element xmi:type="uml:Package" href="design.uml#_hKj4QACoEeWnE_cMzyyIKA"/>
+ <edges xmi:type="notation:Connector" xmi:id="_K2lAYADKEeWt3cohpcF8rA" type="4002" source="_runp4ADJEeWt3cohpcF8rA" target="_kPsaMADJEeWt3cohpcF8rA" routing="Tree">
+ <children xmi:type="notation:DecorationNode" xmi:id="_K2lAYwDKEeWt3cohpcF8rA" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_K2lAZADKEeWt3cohpcF8rA" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_K2lAYQDKEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Generalization" href="design.uml#_K2ZaMADKEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_K2lAYgDKEeWt3cohpcF8rA" points="[-74, -9, -179, 83]$[-74, -60, -179, 32]$[141, -60, 36, 32]$[141, -92, 36, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_K3JBEADKEeWt3cohpcF8rA" id="(1.0,0.09)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_K3JBEQDKEeWt3cohpcF8rA" id="(0.23741007194244604,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_LRaiQADKEeWt3cohpcF8rA" type="4002" source="_2uEaAADJEeWt3cohpcF8rA" target="_kPsaMADJEeWt3cohpcF8rA" routing="Tree">
+ <children xmi:type="notation:DecorationNode" xmi:id="_LRaiQwDKEeWt3cohpcF8rA" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_LRaiRADKEeWt3cohpcF8rA" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_LRaiQQDKEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Generalization" href="design.uml#_LROVAADKEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_LRaiQgDKEeWt3cohpcF8rA" points="[0, 0, -37, 83]$[0, -51, -37, 32]$[81, -51, 44, 32]$[81, -83, 44, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_LR-i8ADKEeWt3cohpcF8rA" id="(0.2907801418439716,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_LR-i8QDKEeWt3cohpcF8rA" id="(0.17985611510791366,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_LrfPIADKEeWt3cohpcF8rA" type="4002" source="_7_nMIADJEeWt3cohpcF8rA" target="_kPsaMADJEeWt3cohpcF8rA" routing="Tree">
+ <children xmi:type="notation:DecorationNode" xmi:id="_LrfPIwDKEeWt3cohpcF8rA" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_LrfPJADKEeWt3cohpcF8rA" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_LrfPIQDKEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Generalization" href="design.uml#_LrTB4ADKEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_LrfPIgDKEeWt3cohpcF8rA" points="[-2, -3, 68, 102]$[-61, -86, 9, 19]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_LsD24ADKEeWt3cohpcF8rA" id="(0.35294117647058826,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_LsD24QDKEeWt3cohpcF8rA" id="(0.697841726618705,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_MEp9EADKEeWt3cohpcF8rA" type="4002" source="_9TEYEADJEeWt3cohpcF8rA" target="_kPsaMADJEeWt3cohpcF8rA" routing="Tree">
+ <children xmi:type="notation:DecorationNode" xmi:id="_MEp9EwDKEeWt3cohpcF8rA" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_MEp9FADKEeWt3cohpcF8rA" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_MEp9EQDKEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Generalization" href="design.uml#_MEdIwADKEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_MEp9EgDKEeWt3cohpcF8rA" points="[-24, -12, 205, 107]$[-216, -95, 13, 24]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_MFUEYADKEeWt3cohpcF8rA" id="(0.29411764705882354,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_MFUEYQDKEeWt3cohpcF8rA" id="(0.49640287769784175,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_g6SIIADKEeWt3cohpcF8rA" type="4002" source="_ccJv8ADKEeWt3cohpcF8rA" target="__2PfcADJEeWt3cohpcF8rA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_g6SvMADKEeWt3cohpcF8rA" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_g6SvMQDKEeWt3cohpcF8rA" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_g6SIIQDKEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Generalization" href="design.uml#_g5kWcADKEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_g6SIIgDKEeWt3cohpcF8rA" points="[4, -11, -12, 114]$[-10, -75, -26, 50]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_g7ELQADKEeWt3cohpcF8rA" id="(0.4,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_g7EyUADKEeWt3cohpcF8rA" id="(0.39568345323741005,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_hY4vsADKEeWt3cohpcF8rA" type="4002" source="_bPRGEADKEeWt3cohpcF8rA" target="__13E8ADJEeWt3cohpcF8rA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_hY5WwADKEeWt3cohpcF8rA" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_hY5WwQDKEeWt3cohpcF8rA" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_hY4vsQDKEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Generalization" href="design.uml#_hYnp8ADKEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_hY4vsgDKEeWt3cohpcF8rA" points="[-5, -50, -3, 114]$[-5, -114, -3, 50]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_hZdXcADKEeWt3cohpcF8rA" id="(0.4818181818181818,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_hZdXcQDKEeWt3cohpcF8rA" id="(0.49640287769784175,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_h0a1IADKEeWt3cohpcF8rA" type="4002" source="_aB-zkADKEeWt3cohpcF8rA" target="__2ohAADJEeWt3cohpcF8rA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_h0bcMADKEeWt3cohpcF8rA" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_h0bcMQDKEeWt3cohpcF8rA" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_h0a1IQDKEeWt3cohpcF8rA"/>
+ <element xmi:type="uml:Generalization" href="design.uml#_h0K9gADKEeWt3cohpcF8rA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_h0a1IgDKEeWt3cohpcF8rA" points="[0, -21, 1, 114]$[0, -85, 1, 50]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_h10jUADKEeWt3cohpcF8rA" id="(0.5517241379310345,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_h10jUQDKEeWt3cohpcF8rA" id="(0.5035971223021583,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_JXjHUAMfEeWWbMjTqzYc1A" type="4002" source="_omQbgAMeEeWWbMjTqzYc1A" target="_kuGeMAMeEeWWbMjTqzYc1A" routing="Tree">
+ <children xmi:type="notation:DecorationNode" xmi:id="_JXjuYAMfEeWWbMjTqzYc1A" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_JXjuYQMfEeWWbMjTqzYc1A" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_JXjHUQMfEeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Generalization" href="design.uml#_JXKFwAMfEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_JXjHUgMfEeWWbMjTqzYc1A" points="[3, -11, -38, 111]$[34, -100, -7, 22]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_JYoFYAMfEeWWbMjTqzYc1A" id="(0.6622516556291391,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_JYoscAMfEeWWbMjTqzYc1A" id="(0.381294964028777,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_Jz5FEAMfEeWWbMjTqzYc1A" type="4002" source="_CU15kAMfEeWWbMjTqzYc1A" target="_kuGeMAMeEeWWbMjTqzYc1A" routing="Tree">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Jz5FEwMfEeWWbMjTqzYc1A" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Jz5sIAMfEeWWbMjTqzYc1A" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_Jz5FEQMfEeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Generalization" href="design.uml#_Jzjt4AMfEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Jz5FEgMfEeWWbMjTqzYc1A" points="[-26, -50, 65, 139]$[-85, -139, 6, 50]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_J0oE4AMfEeWWbMjTqzYc1A" id="(0.43283582089552236,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_J0oE4QMfEeWWbMjTqzYc1A" id="(0.6546762589928058,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_CT61EAM2EeWWbMjTqzYc1A" type="4002" source="_ANKj8AM2EeWWbMjTqzYc1A" target="_8MwCgAM1EeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_CT7cIAM2EeWWbMjTqzYc1A" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_CT7cIQM2EeWWbMjTqzYc1A" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_CT61EQM2EeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Generalization" href="design.uml#_CS6vgAM2EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_CT61EgM2EeWWbMjTqzYc1A" points="[-7, -14, -8, 95]$[-7, -159, -8, -50]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_CU_MEAM2EeWWbMjTqzYc1A" id="(0.5034013605442177,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_CU_MEQM2EeWWbMjTqzYc1A" id="(0.46405228758169936,1.0)"/>
+ </edges>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_NrAiYALkEeWy2L7kEYTJVw" type="CompositeStructure" name="Synchronization" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_NrAiYQLkEeWy2L7kEYTJVw" type="2075">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_g3PQQALwEeW1-e4oerqxMg" source="PapyrusHyperLink_Page" references="_zXyJYALnEeW1-e4oerqxMg">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_g3PQQQLwEeW1-e4oerqxMg" key="tooltip_text" value="Synchronize Model Elements"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_g3PQQgLwEeW1-e4oerqxMg" key="pageName" value="Synchronize Model Elements"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_g3PQQwLwEeW1-e4oerqxMg" key="is_default_navigation" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_NrAiYgLkEeWy2L7kEYTJVw" type="5158"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_NrAiYwLkEeWy2L7kEYTJVw" type="6090">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_NrAiZALkEeWy2L7kEYTJVw" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_NrAiZQLkEeWy2L7kEYTJVw" type="7075">
+ <children xmi:type="notation:Shape" xmi:id="_Sm-GEALkEeWy2L7kEYTJVw" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Sm-tIALkEeWy2L7kEYTJVw" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Sm-tIQLkEeWy2L7kEYTJVw" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Sm-tIgLkEeWy2L7kEYTJVw" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Sm-tIwLkEeWy2L7kEYTJVw" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Sm-tJALkEeWy2L7kEYTJVw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Sm-tJQLkEeWy2L7kEYTJVw"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_SmVz8ALkEeWy2L7kEYTJVw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Sm-GEQLkEeWy2L7kEYTJVw" x="46" y="34"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_U9_AwALkEeWy2L7kEYTJVw" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_U9_n0ALkEeWy2L7kEYTJVw" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_U9_n0QLkEeWy2L7kEYTJVw" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_U9_n0gLkEeWy2L7kEYTJVw" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_U9_n0wLkEeWy2L7kEYTJVw" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_U9_n1ALkEeWy2L7kEYTJVw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_U9_n1QLkEeWy2L7kEYTJVw"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_U96IQALkEeWy2L7kEYTJVw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_U9_AwQLkEeWy2L7kEYTJVw" x="44" y="123"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_XQrcIALkEeWy2L7kEYTJVw" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XQsDMALkEeWy2L7kEYTJVw" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XQsDMQLkEeWy2L7kEYTJVw" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XQsDMgLkEeWy2L7kEYTJVw" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_XQsDMwLkEeWy2L7kEYTJVw" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_XQsDNALkEeWy2L7kEYTJVw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XQsDNQLkEeWy2L7kEYTJVw"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_XQkHYALkEeWy2L7kEYTJVw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XQrcIQLkEeWy2L7kEYTJVw" x="399" y="240"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_X-qjgALkEeWy2L7kEYTJVw" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_X-qjggLkEeWy2L7kEYTJVw" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_X-qjgwLkEeWy2L7kEYTJVw" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_X-qjhALkEeWy2L7kEYTJVw" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_X-qjhQLkEeWy2L7kEYTJVw" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_X-qjhgLkEeWy2L7kEYTJVw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_X-qjhwLkEeWy2L7kEYTJVw"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_X-insALkEeWy2L7kEYTJVw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_X-qjgQLkEeWy2L7kEYTJVw" x="326" y="24"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_Ye-bQALkEeWy2L7kEYTJVw" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Ye-bQgLkEeWy2L7kEYTJVw" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Ye-bQwLkEeWy2L7kEYTJVw" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Ye-bRALkEeWy2L7kEYTJVw" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Ye-bRQLkEeWy2L7kEYTJVw" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Ye-bRgLkEeWy2L7kEYTJVw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Ye-bRwLkEeWy2L7kEYTJVw"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_Ye1RUALkEeWy2L7kEYTJVw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Ye-bQQLkEeWy2L7kEYTJVw" x="325" y="140"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_Y6boMALkEeWy2L7kEYTJVw" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Y6cPQALkEeWy2L7kEYTJVw" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Y6cPQQLkEeWy2L7kEYTJVw" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Y6cPQgLkEeWy2L7kEYTJVw" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Y6cPQwLkEeWy2L7kEYTJVw" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Y6cPRALkEeWy2L7kEYTJVw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Y6cPRQLkEeWy2L7kEYTJVw"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_Y53ngALkEeWy2L7kEYTJVw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Y6boMQLkEeWy2L7kEYTJVw" x="163" y="241"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_NrAiZgLkEeWy2L7kEYTJVw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_NrAiZwLkEeWy2L7kEYTJVw"/>
+ </children>
+ <element xmi:type="uml:Collaboration" href="design.uml#_FNBpcALkEeWy2L7kEYTJVw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_NrAiaALkEeWy2L7kEYTJVw" x="40" y="40" width="670" height="377"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_NrAiaQLkEeWy2L7kEYTJVw" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_NrAiagLkEeWy2L7kEYTJVw"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_NrAiawLkEeWy2L7kEYTJVw">
+ <owner xmi:type="uml:Collaboration" href="design.uml#_FNBpcALkEeWy2L7kEYTJVw"/>
+ </styles>
+ <element xmi:type="uml:Collaboration" href="design.uml#_FNBpcALkEeWy2L7kEYTJVw"/>
+ <edges xmi:type="notation:Connector" xmi:id="_guASMALkEeWy2L7kEYTJVw" type="4013" source="_Sm-GEALkEeWy2L7kEYTJVw" target="_U9_AwALkEeWy2L7kEYTJVw">
+ <children xmi:type="notation:DecorationNode" xmi:id="_guA5QALkEeWy2L7kEYTJVw" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_guA5QQLkEeWy2L7kEYTJVw" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_guA5QgLkEeWy2L7kEYTJVw" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_guA5QwLkEeWy2L7kEYTJVw" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_guA5RALkEeWy2L7kEYTJVw" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_guA5RQLkEeWy2L7kEYTJVw" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_guA5RgLkEeWy2L7kEYTJVw" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_guA5RwLkEeWy2L7kEYTJVw" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_guASMQLkEeWy2L7kEYTJVw"/>
+ <element xmi:type="uml:Connector" href="design.uml#_gtxBoALkEeWy2L7kEYTJVw"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_guASMgLkEeWy2L7kEYTJVw" points="[-7, 23, -13, -66]$[-82, 80, -88, -9]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_gurnoALkEeWy2L7kEYTJVw" id="(0.43125,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_gurnoQLkEeWy2L7kEYTJVw" id="(0.4011299435028249,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_if34cALkEeWy2L7kEYTJVw" type="4013" source="_X-qjgALkEeWy2L7kEYTJVw" target="_Ye-bQALkEeWy2L7kEYTJVw">
+ <children xmi:type="notation:DecorationNode" xmi:id="_if34cwLkEeWy2L7kEYTJVw" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_if34dALkEeWy2L7kEYTJVw" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_if34dQLkEeWy2L7kEYTJVw" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_if34dgLkEeWy2L7kEYTJVw" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_if34dwLkEeWy2L7kEYTJVw" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_if34eALkEeWy2L7kEYTJVw" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_if4fgALkEeWy2L7kEYTJVw" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_if4fgQLkEeWy2L7kEYTJVw" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_if34cQLkEeWy2L7kEYTJVw"/>
+ <element xmi:type="uml:Connector" href="design.uml#_ifsSQALkEeWy2L7kEYTJVw"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_if34cgLkEeWy2L7kEYTJVw" points="[-9, 23, 0, -75]$[-10, 93, -1, -5]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_igcgMALkEeWy2L7kEYTJVw" id="(0.449438202247191,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_igcgMQLkEeWy2L7kEYTJVw" id="(0.48502994011976047,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_jLMtYALkEeWy2L7kEYTJVw" type="4013" source="_Ye-bQALkEeWy2L7kEYTJVw" target="_Y6boMALkEeWy2L7kEYTJVw">
+ <children xmi:type="notation:DecorationNode" xmi:id="_jLNUcALkEeWy2L7kEYTJVw" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jLNUcQLkEeWy2L7kEYTJVw" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_jLNUcgLkEeWy2L7kEYTJVw" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jLNUcwLkEeWy2L7kEYTJVw" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_jLNUdALkEeWy2L7kEYTJVw" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jLNUdQLkEeWy2L7kEYTJVw" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_jLNUdgLkEeWy2L7kEYTJVw" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jLNUdwLkEeWy2L7kEYTJVw" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_jLMtYQLkEeWy2L7kEYTJVw"/>
+ <element xmi:type="uml:Connector" href="design.uml#_jKlpYALkEeWy2L7kEYTJVw"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_jLMtYgLkEeWy2L7kEYTJVw" points="[-40, 23, 119, -78]$[-165, 78, -6, -23]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_jLscoALkEeWy2L7kEYTJVw" id="(0.281437125748503,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_jLscoQLkEeWy2L7kEYTJVw" id="(0.6395348837209303,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_jzUdUALkEeWy2L7kEYTJVw" type="4013" source="_Ye-bQALkEeWy2L7kEYTJVw" target="_XQrcIALkEeWy2L7kEYTJVw">
+ <children xmi:type="notation:DecorationNode" xmi:id="_jzUdUwLkEeWy2L7kEYTJVw" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jzUdVALkEeWy2L7kEYTJVw" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_jzUdVQLkEeWy2L7kEYTJVw" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jzUdVgLkEeWy2L7kEYTJVw" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_jzVEYALkEeWy2L7kEYTJVw" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jzVEYQLkEeWy2L7kEYTJVw" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_jzVEYgLkEeWy2L7kEYTJVw" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jzVEYwLkEeWy2L7kEYTJVw" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_jzUdUQLkEeWy2L7kEYTJVw"/>
+ <element xmi:type="uml:Connector" href="design.uml#_jzDXkALkEeWy2L7kEYTJVw"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_jzUdUgLkEeWy2L7kEYTJVw" points="[16, 23, -47, -77]$[66, 77, 3, -23]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_jz8vcALkEeWy2L7kEYTJVw" id="(0.718562874251497,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_jz8vcQLkEeWy2L7kEYTJVw" id="(0.4652777777777778,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_gIF6YAM0EeWWbMjTqzYc1A" type="4013" source="_U9_AwALkEeWy2L7kEYTJVw" target="_Y6boMALkEeWy2L7kEYTJVw">
+ <children xmi:type="notation:DecorationNode" xmi:id="_gIF6YwM0EeWWbMjTqzYc1A" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_gIF6ZAM0EeWWbMjTqzYc1A" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_gIF6ZQM0EeWWbMjTqzYc1A" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_gIF6ZgM0EeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_gIGhcAM0EeWWbMjTqzYc1A" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_gIGhcQM0EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_gIGhcgM0EeWWbMjTqzYc1A" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_gIGhcwM0EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_gIF6YQM0EeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Connector" href="design.uml#_gH8wcAM0EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_gIF6YgM0EeWWbMjTqzYc1A" points="[13, 20, -104, -98]$[31, 113, -86, -5]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_gIdt0AM0EeWWbMjTqzYc1A" id="(0.615819209039548,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_gIdt0QM0EeWWbMjTqzYc1A" id="(0.20930232558139536,0.0)"/>
+ </edges>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_zXyJYALnEeW1-e4oerqxMg" type="PapyrusUMLCommunicationDiagram" name="Synchronize Model Elements" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_zXyJYQLnEeW1-e4oerqxMg" type="8002">
+ <children xmi:type="notation:DecorationNode" xmi:id="_zXyJYgLnEeW1-e4oerqxMg" type="5001"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_zXyJYwLnEeW1-e4oerqxMg" type="6013">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_zXyJZALnEeW1-e4oerqxMg" x="50"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_zXyJZQLnEeW1-e4oerqxMg" type="7001">
+ <children xmi:type="notation:Shape" xmi:id="_A4rtIALpEeW1-e4oerqxMg" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_A4sUMALpEeW1-e4oerqxMg" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_A4sUMQLpEeW1-e4oerqxMg" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_A4sUMgLpEeW1-e4oerqxMg" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_A4nbsALpEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_A4rtIQLpEeW1-e4oerqxMg" x="81" y="38"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_xO6mIALsEeW1-e4oerqxMg" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_xO7NMALsEeW1-e4oerqxMg" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_xO7NMQLsEeW1-e4oerqxMg" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_xO7NMgLsEeW1-e4oerqxMg" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_xO2UsALsEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xO6mIQLsEeW1-e4oerqxMg" x="340" y="43"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_QVDXsALtEeW1-e4oerqxMg" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_QVDXsgLtEeW1-e4oerqxMg" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_QVDXswLtEeW1-e4oerqxMg" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_QVDXtALtEeW1-e4oerqxMg" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_QU94IALtEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QVDXsQLtEeW1-e4oerqxMg" x="75" y="124"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_J_QoYALvEeW1-e4oerqxMg" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_J_RPcALvEeW1-e4oerqxMg" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_J_RPcQLvEeW1-e4oerqxMg" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_J_RPcgLvEeW1-e4oerqxMg" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_J_Cl8ALvEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_J_QoYQLvEeW1-e4oerqxMg" x="89" y="251"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_P6ScYALvEeW1-e4oerqxMg" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_P6TDcALvEeW1-e4oerqxMg" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_P6TDcQLvEeW1-e4oerqxMg" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_P6TDcgLvEeW1-e4oerqxMg" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_P5ytIALvEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_P6ScYQLvEeW1-e4oerqxMg" x="346" y="199"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_Rhqp4ALvEeW1-e4oerqxMg" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Rhqp4gLvEeW1-e4oerqxMg" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Rhqp4wLvEeW1-e4oerqxMg" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Rhqp5ALvEeW1-e4oerqxMg" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_Rhhf8ALvEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Rhqp4QLvEeW1-e4oerqxMg" x="336" y="299"/>
+ </children>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_zXyJZgLnEeW1-e4oerqxMg"/>
+ </children>
+ <element xmi:type="uml:Interaction" href="design.uml#_mC8rsALmEeWy2L7kEYTJVw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_zXyJZwLnEeW1-e4oerqxMg" width="592" height="401"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_zXyJaALnEeW1-e4oerqxMg" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_zXyJaQLnEeW1-e4oerqxMg"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_zXyJagLnEeW1-e4oerqxMg">
+ <owner xmi:type="uml:Interaction" href="design.uml#_mC8rsALmEeWy2L7kEYTJVw"/>
+ </styles>
+ <element xmi:type="uml:Interaction" href="design.uml#_mC8rsALmEeWy2L7kEYTJVw"/>
+ <edges xmi:type="notation:Connector" xmi:id="_ZV73cALvEeW1-e4oerqxMg" type="8009" source="_A4rtIALpEeW1-e4oerqxMg" target="_xO6mIALsEeW1-e4oerqxMg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ZV8egALvEeW1-e4oerqxMg" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_ZUlMkALvEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ZV8egQLvEeW1-e4oerqxMg" x="1" y="-23"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ZV8eggLvEeW1-e4oerqxMg" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ZV8egwLvEeW1-e4oerqxMg" x="1" y="-53"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3R1DcALvEeW1-e4oerqxMg" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_3RFckALvEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3R1DcQLvEeW1-e4oerqxMg" x="-7" y="16"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_ZV73cQLvEeW1-e4oerqxMg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_ZV73cgLvEeW1-e4oerqxMg" points="[60, 7, -203, 2]$[200, 7, -63, 2]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_dusAYALvEeW1-e4oerqxMg" type="8009" source="_xO6mIALsEeW1-e4oerqxMg" target="_P6ScYALvEeW1-e4oerqxMg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_dusncALvEeW1-e4oerqxMg" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_dttI8ALvEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_dusncQLvEeW1-e4oerqxMg" x="-5" y="23"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_dusncgLvEeW1-e4oerqxMg" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_dusncwLvEeW1-e4oerqxMg" x="1" y="-53"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_dusAYQLvEeW1-e4oerqxMg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_dusAYgLvEeW1-e4oerqxMg" points="[-1, 13, 13, -178]$[-14, 188, 0, -3]"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_dvAwgALvEeW1-e4oerqxMg" id="(0.512396694214876,0.12)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_pBgYcALvEeW1-e4oerqxMg" type="8009" source="_xO6mIALsEeW1-e4oerqxMg" target="_J_QoYALvEeW1-e4oerqxMg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_pBgYcwLvEeW1-e4oerqxMg" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_pAz04ALvEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_pBg_gALvEeW1-e4oerqxMg" x="-10" y="39"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_pBg_gQLvEeW1-e4oerqxMg" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_pBg_ggLvEeW1-e4oerqxMg" x="1" y="-53"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_pBgYcQLvEeW1-e4oerqxMg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_pBgYcgLvEeW1-e4oerqxMg" points="[-15, 6, 92, -41]$[-86, 44, 21, -3]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pBz6cALvEeW1-e4oerqxMg" id="(0.29365079365079366,0.24)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_pBz6cQLvEeW1-e4oerqxMg" id="(0.7844827586206896,0.44)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_rsCsEALvEeW1-e4oerqxMg" type="8009" source="_P6ScYALvEeW1-e4oerqxMg" target="_Rhqp4ALvEeW1-e4oerqxMg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_rsDTIALvEeW1-e4oerqxMg" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_rrYkwALvEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_rsDTIQLvEeW1-e4oerqxMg" x="-9" y="33"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_rsDTIgLvEeW1-e4oerqxMg" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_rsDTIwLvEeW1-e4oerqxMg" x="1" y="-53"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_rsCsEQLvEeW1-e4oerqxMg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_rsCsEgLvEeW1-e4oerqxMg" points="[17, 7, -97, -46]$[94, 56, -20, 3]"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_rsXcMQLvEeW1-e4oerqxMg" id="(0.63,0.2)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_vuGMQALvEeW1-e4oerqxMg" type="8009" source="_J_QoYALvEeW1-e4oerqxMg" target="_QVDXsALtEeW1-e4oerqxMg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_vuGMQwLvEeW1-e4oerqxMg" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_vta20ALvEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_vuGMRALvEeW1-e4oerqxMg" x="21" y="-23"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_vuGzUALvEeW1-e4oerqxMg" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_vuGzUQLvEeW1-e4oerqxMg" x="1" y="-53"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_vuGMQQLvEeW1-e4oerqxMg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_vuGMQgLvEeW1-e4oerqxMg" points="[-6, -12, 57, 115]$[-53, -114, 10, 13]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_fq-9EAMzEeWWbMjTqzYc1A" type="8009" source="_J_QoYALvEeW1-e4oerqxMg" target="_P6ScYALvEeW1-e4oerqxMg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_fq-9EwMzEeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_fp27sAMzEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_fq-9FAMzEeWWbMjTqzYc1A" x="16" y="-29"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_fq-9FQMzEeWWbMjTqzYc1A" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_fq-9FgMzEeWWbMjTqzYc1A" x="1" y="-53"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_vhwBcAMzEeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_vgkVsAMzEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_vhwBcQMzEeWWbMjTqzYc1A" x="-21" y="23"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_fq-9EQMzEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_fq-9EgMzEeWWbMjTqzYc1A" points="[16, -5, -160, 49]$[157, -57, -19, -3]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_frTtMAMzEeWWbMjTqzYc1A" id="(0.8620689655172413,0.4)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_frTtMQMzEeWWbMjTqzYc1A" id="(0.15702479338842976,0.32)"/>
+ </edges>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_3_KlYAMBEeW1-e4oerqxMg" type="CompositeStructure" name="Synchronization Overrides" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_3_KlYQMBEeW1-e4oerqxMg" type="2075">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_LuzLMAMiEeWWbMjTqzYc1A" source="PapyrusHyperLink_Page" references="_3_NosAMBEeW1-e4oerqxMg">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_LuzLMQMiEeWWbMjTqzYc1A" key="tooltip_text" value="Synchronization Overrides"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_LuzLMgMiEeWWbMjTqzYc1A" key="pageName" value="Synchronization Overrides"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_LuzLMwMiEeWWbMjTqzYc1A" key="is_default_navigation" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LMcgMBEeW1-e4oerqxMg" type="5158"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LMcwMBEeW1-e4oerqxMg" type="6090">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LMdAMBEeW1-e4oerqxMg" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_3_LMdQMBEeW1-e4oerqxMg" type="7075">
+ <children xmi:type="notation:Shape" xmi:id="_3_LMdgMBEeW1-e4oerqxMg" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LMdwMBEeW1-e4oerqxMg" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LMeAMBEeW1-e4oerqxMg" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LMeQMBEeW1-e4oerqxMg" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_3_LMegMBEeW1-e4oerqxMg" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_3_LMewMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_LMfAMBEeW1-e4oerqxMg"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_3_HiEQMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_LMgAMBEeW1-e4oerqxMg" x="289" y="32"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_3_LMgQMBEeW1-e4oerqxMg" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LMggMBEeW1-e4oerqxMg" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LMgwMBEeW1-e4oerqxMg" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LMhAMBEeW1-e4oerqxMg" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_3_LMhQMBEeW1-e4oerqxMg" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_3_LMhgMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_LMhwMBEeW1-e4oerqxMg"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_3_HiEgMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_LMiwMBEeW1-e4oerqxMg" x="288" y="123"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_3_LMjAMBEeW1-e4oerqxMg" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LMjQMBEeW1-e4oerqxMg" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LMjgMBEeW1-e4oerqxMg" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LMjwMBEeW1-e4oerqxMg" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_3_LMkAMBEeW1-e4oerqxMg" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_3_LMkQMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_LMkgMBEeW1-e4oerqxMg"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_3_HiFQMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_LMlgMBEeW1-e4oerqxMg" x="20" y="230"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_3_LMlwMBEeW1-e4oerqxMg" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LMmAMBEeW1-e4oerqxMg" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LMmQMBEeW1-e4oerqxMg" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LMmgMBEeW1-e4oerqxMg" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_3_LMmwMBEeW1-e4oerqxMg" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_3_LMnAMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_LMnQMBEeW1-e4oerqxMg"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_3_HiGAMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_LMoQMBEeW1-e4oerqxMg" x="56" y="33"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_3_LMogMBEeW1-e4oerqxMg" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LMowMBEeW1-e4oerqxMg" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LMpAMBEeW1-e4oerqxMg" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LMpQMBEeW1-e4oerqxMg" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_3_LMpgMBEeW1-e4oerqxMg" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_3_LMpwMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_LMqAMBEeW1-e4oerqxMg"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_3_HiGwMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_LMrAMBEeW1-e4oerqxMg" x="54" y="122"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_3_LMrQMBEeW1-e4oerqxMg" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LMrgMBEeW1-e4oerqxMg" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LMrwMBEeW1-e4oerqxMg" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LMsAMBEeW1-e4oerqxMg" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_3_LMsQMBEeW1-e4oerqxMg" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_3_LMsgMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_LMswMBEeW1-e4oerqxMg"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_3_HiHgMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_LMtwMBEeW1-e4oerqxMg" x="185" y="230"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_tHh8YAMgEeWWbMjTqzYc1A" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_tHijcAMgEeWWbMjTqzYc1A" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_tHijcQMgEeWWbMjTqzYc1A" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_tHijcgMgEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_tHijcwMgEeWWbMjTqzYc1A" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_tHijdAMgEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_tHijdQMgEeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_tGurIAMgEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_tHh8YQMgEeWWbMjTqzYc1A" x="530" y="119"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_xDVDkAMgEeWWbMjTqzYc1A" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_xDVqoAMgEeWWbMjTqzYc1A" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_xDVqoQMgEeWWbMjTqzYc1A" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_xDVqogMgEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_xDVqowMgEeWWbMjTqzYc1A" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_xDVqpAMgEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xDVqpQMgEeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_xDKrgAMgEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xDVDkQMgEeWWbMjTqzYc1A" x="493" y="272"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_z2yCoAMgEeWWbMjTqzYc1A" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_z2yCogMgEeWWbMjTqzYc1A" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_z2yCowMgEeWWbMjTqzYc1A" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_z2yCpAMgEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_z2yCpQMgEeWWbMjTqzYc1A" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_z2yCpgMgEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_z2yCpwMgEeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_z2B0sAMgEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_z2yCoQMgEeWWbMjTqzYc1A" x="478" y="203"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_3_LMuAMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_LMuQMBEeW1-e4oerqxMg"/>
+ </children>
+ <element xmi:type="uml:Collaboration" href="design.uml#_3_HiEAMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_LMvQMBEeW1-e4oerqxMg" x="40" y="40" width="758" height="367"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_3_LMvgMBEeW1-e4oerqxMg" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_3_LMvwMBEeW1-e4oerqxMg"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_3_LMwAMBEeW1-e4oerqxMg">
+ <owner xmi:type="uml:Collaboration" href="design.uml#_3_HiEAMBEeW1-e4oerqxMg"/>
+ </styles>
+ <element xmi:type="uml:Collaboration" href="design.uml#_3_HiEAMBEeW1-e4oerqxMg"/>
+ <edges xmi:type="notation:Connector" xmi:id="_3_LMwQMBEeW1-e4oerqxMg" type="4013" source="_3_LMdgMBEeW1-e4oerqxMg" target="_3_LMgQMBEeW1-e4oerqxMg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LMwgMBEeW1-e4oerqxMg" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LMwwMBEeW1-e4oerqxMg" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LMxAMBEeW1-e4oerqxMg" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LMxQMBEeW1-e4oerqxMg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LMxgMBEeW1-e4oerqxMg" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LMxwMBEeW1-e4oerqxMg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LMyAMBEeW1-e4oerqxMg" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LMyQMBEeW1-e4oerqxMg" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_3_LMygMBEeW1-e4oerqxMg"/>
+ <element xmi:type="uml:Connector" href="design.uml#_3_HiIQMBEeW1-e4oerqxMg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_3_LMywMBEeW1-e4oerqxMg" points="[-7, 23, -13, -66]$[-82, 80, -88, -9]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_3_LMzAMBEeW1-e4oerqxMg" id="(0.4375,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_3_LMzQMBEeW1-e4oerqxMg" id="(0.4011299435028249,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_3_LMzgMBEeW1-e4oerqxMg" type="4013" source="_3_LMlwMBEeW1-e4oerqxMg" target="_3_LMogMBEeW1-e4oerqxMg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LMzwMBEeW1-e4oerqxMg" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LM0AMBEeW1-e4oerqxMg" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LM0QMBEeW1-e4oerqxMg" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LM0gMBEeW1-e4oerqxMg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LM0wMBEeW1-e4oerqxMg" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LM1AMBEeW1-e4oerqxMg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LM1QMBEeW1-e4oerqxMg" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LM1gMBEeW1-e4oerqxMg" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_3_LM1wMBEeW1-e4oerqxMg"/>
+ <element xmi:type="uml:Connector" href="design.uml#_3_HiJAMBEeW1-e4oerqxMg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_3_LM2AMBEeW1-e4oerqxMg" points="[-9, 23, 0, -75]$[-10, 93, -1, -5]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_3_LM2QMBEeW1-e4oerqxMg" id="(0.449438202247191,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_3_LM2gMBEeW1-e4oerqxMg" id="(0.48502994011976047,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_3_LM2wMBEeW1-e4oerqxMg" type="4013" source="_3_LMogMBEeW1-e4oerqxMg" target="_3_LMrQMBEeW1-e4oerqxMg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LM3AMBEeW1-e4oerqxMg" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LM3QMBEeW1-e4oerqxMg" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LM3gMBEeW1-e4oerqxMg" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LM3wMBEeW1-e4oerqxMg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LM4AMBEeW1-e4oerqxMg" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LM4QMBEeW1-e4oerqxMg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LM4gMBEeW1-e4oerqxMg" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LM4wMBEeW1-e4oerqxMg" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_3_LM5AMBEeW1-e4oerqxMg"/>
+ <element xmi:type="uml:Connector" href="design.uml#_3_HiJwMBEeW1-e4oerqxMg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_3_LM5QMBEeW1-e4oerqxMg" points="[-40, 23, 119, -78]$[-165, 78, -6, -23]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_3_LM5gMBEeW1-e4oerqxMg" id="(0.592814371257485,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_3_LM5wMBEeW1-e4oerqxMg" id="(0.6395348837209303,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_3_LM6AMBEeW1-e4oerqxMg" type="4013" source="_3_LMogMBEeW1-e4oerqxMg" target="_3_LMjAMBEeW1-e4oerqxMg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LM6QMBEeW1-e4oerqxMg" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LM6gMBEeW1-e4oerqxMg" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LM6wMBEeW1-e4oerqxMg" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LM7AMBEeW1-e4oerqxMg" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LM7QMBEeW1-e4oerqxMg" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LM7gMBEeW1-e4oerqxMg" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_LM7wMBEeW1-e4oerqxMg" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_LM8AMBEeW1-e4oerqxMg" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_3_LM8QMBEeW1-e4oerqxMg"/>
+ <element xmi:type="uml:Connector" href="design.uml#_3_HiKgMBEeW1-e4oerqxMg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_3_LM8gMBEeW1-e4oerqxMg" points="[16, 23, -47, -77]$[66, 77, 3, -23]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_cqR04AMiEeWWbMjTqzYc1A" id="(0.4311377245508982,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_3_LM9AMBEeW1-e4oerqxMg" id="(0.4652777777777778,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_F08RUAMhEeWWbMjTqzYc1A" type="4013" source="_tHh8YAMgEeWWbMjTqzYc1A" target="_z2yCoAMgEeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_F084YAMhEeWWbMjTqzYc1A" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_F084YQMhEeWWbMjTqzYc1A" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_F084YgMhEeWWbMjTqzYc1A" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_F084YwMhEeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_F084ZAMhEeWWbMjTqzYc1A" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_F084ZQMhEeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_F084ZgMhEeWWbMjTqzYc1A" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_F084ZwMhEeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_F08RUQMhEeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Connector" href="design.uml#_F0uO4AMhEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_F08RUgMhEeWWbMjTqzYc1A" points="[-4, 23, 9, -64]$[-15, 64, -2, -23]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_F1aLYAMhEeWWbMjTqzYc1A" id="(0.39226519337016574,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_F1aLYQMhEeWWbMjTqzYc1A" id="(0.4844961240310077,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_GbEdMAMhEeWWbMjTqzYc1A" type="4013" source="_z2yCoAMgEeWWbMjTqzYc1A" target="_xDVDkAMgEeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_GbEdMwMhEeWWbMjTqzYc1A" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_GbEdNAMhEeWWbMjTqzYc1A" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_GbEdNQMhEeWWbMjTqzYc1A" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_GbEdNgMhEeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_GbFEQAMhEeWWbMjTqzYc1A" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_GbFEQQMhEeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_GbFEQgMhEeWWbMjTqzYc1A" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_GbFEQwMhEeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_GbEdMQMhEeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Connector" href="design.uml#_Ga2awAMhEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_GbEdMgMhEeWWbMjTqzYc1A" points="[-3, 23, 9, -69]$[-25, 82, -13, -10]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Gbt9cAMhEeWWbMjTqzYc1A" id="(0.43023255813953487,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Gbt9cQMhEeWWbMjTqzYc1A" id="(0.4247787610619469,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_gSstEAMiEeWWbMjTqzYc1A" type="4013" source="_3_LMgQMBEeW1-e4oerqxMg" target="_tHh8YAMgEeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_gStUIAMiEeWWbMjTqzYc1A" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_gStUIQMiEeWWbMjTqzYc1A" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_gStUIgMiEeWWbMjTqzYc1A" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_gStUIwMiEeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_gStUJAMiEeWWbMjTqzYc1A" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_gStUJQMiEeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_gStUJgMiEeWWbMjTqzYc1A" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_gStUJwMiEeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_gSstEQMiEeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Connector" href="design.uml#_gSgf0AMiEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_gSstEgMiEeWWbMjTqzYc1A" points="[34, -16, -134, 61]$[137, -74, -31, 3]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_gTZQoAMiEeWWbMjTqzYc1A" id="(1.0,0.475)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_gTZQoQMiEeWWbMjTqzYc1A" id="(0.0,0.575)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_KqABIAM0EeWWbMjTqzYc1A" type="4013" source="_3_LMgQMBEeW1-e4oerqxMg" target="_3_LMrQMBEeW1-e4oerqxMg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_KqAoMAM0EeWWbMjTqzYc1A" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_KqAoMQM0EeWWbMjTqzYc1A" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_KqAoMgM0EeWWbMjTqzYc1A" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_KqAoMwM0EeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_KqAoNAM0EeWWbMjTqzYc1A" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_KqAoNQM0EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_KqAoNgM0EeWWbMjTqzYc1A" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_KqAoNwM0EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_KqABIQM0EeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Connector" href="design.uml#_KpMI0AM0EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_KqABIgM0EeWWbMjTqzYc1A" points="[-6, 9, 49, -78]$[-33, 83, 22, -4]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Kqty0AM0EeWWbMjTqzYc1A" id="(0.4180790960451977,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Kqty0QM0EeWWbMjTqzYc1A" id="(0.9069767441860465,0.0)"/>
+ </edges>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_3_NosAMBEeW1-e4oerqxMg" type="PapyrusUMLCommunicationDiagram" name="Synchronization Overrides" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_3_NosQMBEeW1-e4oerqxMg" type="8002">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_NosgMBEeW1-e4oerqxMg" type="5001"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_NoswMBEeW1-e4oerqxMg" type="6013">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_NotAMBEeW1-e4oerqxMg" x="50"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_3_NotQMBEeW1-e4oerqxMg" type="7001">
+ <children xmi:type="notation:Shape" xmi:id="_3_NotgMBEeW1-e4oerqxMg" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_NotwMBEeW1-e4oerqxMg" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_NouAMBEeW1-e4oerqxMg" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_NouQMBEeW1-e4oerqxMg" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_3_HiLgMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_NovQMBEeW1-e4oerqxMg" x="301" y="27"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_3_NovgMBEeW1-e4oerqxMg" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_NovwMBEeW1-e4oerqxMg" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_NowAMBEeW1-e4oerqxMg" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_NowQMBEeW1-e4oerqxMg" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_3_HiLwMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_NoxQMBEeW1-e4oerqxMg" x="72" y="27"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_3_NoxgMBEeW1-e4oerqxMg" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_NoxwMBEeW1-e4oerqxMg" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_NoyAMBEeW1-e4oerqxMg" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_NoyQMBEeW1-e4oerqxMg" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_3_HiMAMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_NozQMBEeW1-e4oerqxMg" x="259" y="141"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_3_NozgMBEeW1-e4oerqxMg" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_NozwMBEeW1-e4oerqxMg" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_No0AMBEeW1-e4oerqxMg" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_No0QMBEeW1-e4oerqxMg" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_3_HiMQMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_No1QMBEeW1-e4oerqxMg" x="76" y="240"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_3_No1gMBEeW1-e4oerqxMg" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_No1wMBEeW1-e4oerqxMg" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_No2AMBEeW1-e4oerqxMg" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_No2QMBEeW1-e4oerqxMg" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_3_HiMgMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_No3QMBEeW1-e4oerqxMg" x="80" y="129"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_3_No3gMBEeW1-e4oerqxMg" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_No3wMBEeW1-e4oerqxMg" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_No4AMBEeW1-e4oerqxMg" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_No4QMBEeW1-e4oerqxMg" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_3_HiMwMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_No5QMBEeW1-e4oerqxMg" x="75" y="331"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_xgRMUAMiEeWWbMjTqzYc1A" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_xgRzYAMiEeWWbMjTqzYc1A" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_xgRzYQMiEeWWbMjTqzYc1A" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_xgRzYgMiEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_xgDJ4AMiEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xgRMUQMiEeWWbMjTqzYc1A" x="416" y="235"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_1GCZIAMiEeWWbMjTqzYc1A" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_1GCZIgMiEeWWbMjTqzYc1A" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_1GCZIwMiEeWWbMjTqzYc1A" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_1GCZJAMiEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_1F52QAMiEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_1GCZIQMiEeWWbMjTqzYc1A" x="410" y="371"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_6T9PgAMiEeWWbMjTqzYc1A" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_6T92kAMiEeWWbMjTqzYc1A" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_6T92kQMiEeWWbMjTqzYc1A" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_6T92kgMiEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_6TzegAMiEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_6T9PgQMiEeWWbMjTqzYc1A" x="235" y="337"/>
+ </children>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_No5gMBEeW1-e4oerqxMg"/>
+ </children>
+ <element xmi:type="uml:Interaction" href="design.uml#_3_HiLQMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_3_No6gMBEeW1-e4oerqxMg" width="669" height="463"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_3_No6wMBEeW1-e4oerqxMg" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_3_No7AMBEeW1-e4oerqxMg"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_3_No7QMBEeW1-e4oerqxMg">
+ <owner xmi:type="uml:Interaction" href="design.uml#_3_HiLQMBEeW1-e4oerqxMg"/>
+ </styles>
+ <element xmi:type="uml:Interaction" href="design.uml#_3_HiLQMBEeW1-e4oerqxMg"/>
+ <edges xmi:type="notation:Connector" xmi:id="_3_No7gMBEeW1-e4oerqxMg" type="8009" source="_3_NotgMBEeW1-e4oerqxMg" target="_3_NovgMBEeW1-e4oerqxMg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_No7wMBEeW1-e4oerqxMg" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_3_HiQAMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_No8AMBEeW1-e4oerqxMg" x="1" y="-23"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_No8QMBEeW1-e4oerqxMg" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_No8gMBEeW1-e4oerqxMg" x="1" y="-53"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_No8wMBEeW1-e4oerqxMg" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_3_HiRQMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_No9AMBEeW1-e4oerqxMg" x="2" y="24"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_3_No9QMBEeW1-e4oerqxMg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_3_No9gMBEeW1-e4oerqxMg" points="[60, 7, -203, 2]$[200, 7, -63, 2]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_3_No9wMBEeW1-e4oerqxMg" type="8009" source="_3_NovgMBEeW1-e4oerqxMg" target="_3_No1gMBEeW1-e4oerqxMg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_No-AMBEeW1-e4oerqxMg" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_3_HiQQMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_No-QMBEeW1-e4oerqxMg" x="-13" y="33"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_No-gMBEeW1-e4oerqxMg" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_No-wMBEeW1-e4oerqxMg" x="1" y="-53"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_-Q9dUAMyEeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_-QSH4AMyEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_-Q-EYAMyEeWWbMjTqzYc1A" x="-10" y="-26"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_3_No_AMBEeW1-e4oerqxMg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_3_No_QMBEeW1-e4oerqxMg" points="[-1, 13, 13, -178]$[-14, 188, 0, -3]"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_3_No_gMBEeW1-e4oerqxMg" id="(0.512396694214876,0.12)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_3_OPwgMBEeW1-e4oerqxMg" type="8009" source="_3_NozgMBEeW1-e4oerqxMg" target="_3_NoxgMBEeW1-e4oerqxMg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_OPwwMBEeW1-e4oerqxMg" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_3_HiRAMBEeW1-e4oerqxMg"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_OPxAMBEeW1-e4oerqxMg" x="1" y="-31"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_3_OPxQMBEeW1-e4oerqxMg" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_3_OPxgMBEeW1-e4oerqxMg" x="1" y="-53"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_3_OPxwMBEeW1-e4oerqxMg"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_3_OPyAMBEeW1-e4oerqxMg" points="[-6, -12, 57, 115]$[-53, -114, 10, 13]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_O5ODUAMjEeWWbMjTqzYc1A" type="8009" source="_xgRMUAMiEeWWbMjTqzYc1A" target="_1GCZIAMiEeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_O5OqYAMjEeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_O3dIwAMjEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_O5OqYQMjEeWWbMjTqzYc1A" x="3" y="-32"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_O5OqYgMjEeWWbMjTqzYc1A" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_O5OqYwMjEeWWbMjTqzYc1A" x="1" y="-53"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_O5ODUQMjEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_O5ODUgMjEeWWbMjTqzYc1A" points="[-9, 13, 64, -89]$[-74, 115, -1, 13]"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_vSOyAAMjEeWWbMjTqzYc1A" id="(0.8425925925925926,0.28)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_V1_oMAMjEeWWbMjTqzYc1A" type="8009" source="_xgRMUAMiEeWWbMjTqzYc1A" target="_6T9PgAMiEeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_V1_oMwMjEeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_V1OMIAMjEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_V1_oNAMjEeWWbMjTqzYc1A" x="-13" y="19"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_V1_oNQMjEeWWbMjTqzYc1A" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_V1_oNgMjEeWWbMjTqzYc1A" x="1" y="-53"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lDGrkAMjEeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_lCUBYAMjEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lDGrkQMjEeWWbMjTqzYc1A" x="46" y="47"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_V1_oMQMjEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_V1_oMgMjEeWWbMjTqzYc1A" points="[1, 10, 10, -136]$[84, 142, 93, -4]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_V2btEAMjEeWWbMjTqzYc1A" id="(0.2158273381294964,0.24)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_nR5eYAMjEeWWbMjTqzYc1A" type="8009" source="_3_NozgMBEeW1-e4oerqxMg" target="_xgRMUAMiEeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nR5eYwMjEeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_nROI8AMjEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nR5eZAMjEeWWbMjTqzYc1A" x="21" y="-21"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nR5eZQMjEeWWbMjTqzYc1A" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nR6FcAMjEeWWbMjTqzYc1A" x="1" y="-53"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_nR5eYQMjEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_nR5eYgMjEeWWbMjTqzYc1A" points="[61, 0, -145, 2]$[137, 0, -69, 2]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_VkkjMAMyEeWWbMjTqzYc1A" id="(0.8879310344827587,0.48)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_2GQDgAMjEeWWbMjTqzYc1A" type="8009" source="_3_NozgMBEeW1-e4oerqxMg" target="_3_No1gMBEeW1-e4oerqxMg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_2GQqkAMjEeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_2FoYcAMjEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2GQqkQMjEeWWbMjTqzYc1A" x="7" y="-19"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_2GQqkgMjEeWWbMjTqzYc1A" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_2GQqkwMjEeWWbMjTqzYc1A" x="1" y="-53"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_OcwzAAMyEeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_OcDBUAMyEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_OcwzAQMyEeWWbMjTqzYc1A" x="7" y="33"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_2GQDgQMjEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_2GQDggMjEeWWbMjTqzYc1A" points="[8, -5, -78, 48]$[64, -54, -22, -1]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_2HYE4AMjEeWWbMjTqzYc1A" id="(0.2672413793103448,0.24)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_2HYr8AMjEeWWbMjTqzYc1A" id="(0.18181818181818182,0.44)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_dlaNIAMyEeWWbMjTqzYc1A" type="8009" source="_3_NozgMBEeW1-e4oerqxMg" target="_3_No3gMBEeW1-e4oerqxMg">
+ <children xmi:type="notation:DecorationNode" xmi:id="_dlaNIwMyEeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_dkuQoAMyEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_dlaNJAMyEeWWbMjTqzYc1A" x="-12" y="34"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_dlaNJQMyEeWWbMjTqzYc1A" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_dlaNJgMyEeWWbMjTqzYc1A" x="1" y="-53"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_dlaNIQMyEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_dlaNIgMyEeWWbMjTqzYc1A" points="[-7, 13, 2, -78]$[-7, 79, 2, -12]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_0naJIAMyEeWWbMjTqzYc1A" type="8009" source="_3_NoxgMBEeW1-e4oerqxMg" target="_xgRMUAMiEeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_0naJIwMyEeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_0mEsYAMyEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_0naJJAMyEeWWbMjTqzYc1A" x="1" y="-23"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_0naJJQMyEeWWbMjTqzYc1A" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_0naJJgMyEeWWbMjTqzYc1A" x="1" y="-53"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_0naJIQMyEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_0naJIgMyEeWWbMjTqzYc1A" points="[12, 11, -106, -81]$[49, 87, -69, -5]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_0n1m8AMyEeWWbMjTqzYc1A" id="(0.8503937007874016,0.56)"/>
+ </edges>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_nvhdQAMdEeWWbMjTqzYc1A" type="CompositeStructure" name="Notation Synchronization" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_nvhdQQMdEeWWbMjTqzYc1A" type="2075">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_6psrcAMhEeWWbMjTqzYc1A" source="PapyrusHyperLink_Page" references="_nvmVwAMdEeWWbMjTqzYc1A">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_6psrcQMhEeWWbMjTqzYc1A" key="tooltip_text" value="Synchronize Model Elements"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_6psrcgMhEeWWbMjTqzYc1A" key="pageName" value="Synchronize Model Elements"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_6psrcwMhEeWWbMjTqzYc1A" key="is_default_navigation" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvhdRgMdEeWWbMjTqzYc1A" type="5158"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvhdRwMdEeWWbMjTqzYc1A" type="6090">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvhdSAMdEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_nvhdSQMdEeWWbMjTqzYc1A" type="7075">
+ <children xmi:type="notation:Shape" xmi:id="_nvhdSgMdEeWWbMjTqzYc1A" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvhdSwMdEeWWbMjTqzYc1A" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvhdTAMdEeWWbMjTqzYc1A" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvhdTQMdEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_nvhdTgMdEeWWbMjTqzYc1A" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_nvhdTwMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nvhdUAMdEeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_nvdy4QMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nvhdVAMdEeWWbMjTqzYc1A" x="46" y="34"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_nvhdVQMdEeWWbMjTqzYc1A" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvhdVgMdEeWWbMjTqzYc1A" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvhdVwMdEeWWbMjTqzYc1A" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvhdWAMdEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_nvhdWQMdEeWWbMjTqzYc1A" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_nvhdWgMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nvhdWwMdEeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_nvdy4gMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nvhdXwMdEeWWbMjTqzYc1A" x="32" y="123"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_nvhdYAMdEeWWbMjTqzYc1A" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvhdYQMdEeWWbMjTqzYc1A" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvhdYgMdEeWWbMjTqzYc1A" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvhdYwMdEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_nvhdZAMdEeWWbMjTqzYc1A" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_nvhdZQMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nvhdZgMdEeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_nvdy5QMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nviEUwMdEeWWbMjTqzYc1A" x="464" y="245"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_nviEVAMdEeWWbMjTqzYc1A" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEVQMdEeWWbMjTqzYc1A" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEVgMdEeWWbMjTqzYc1A" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nviEVwMdEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_nviEWAMdEeWWbMjTqzYc1A" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_nviEWQMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nviEWgMdEeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_nvdy6AMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nviEXgMdEeWWbMjTqzYc1A" x="326" y="24"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_nviEXwMdEeWWbMjTqzYc1A" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEYAMdEeWWbMjTqzYc1A" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEYQMdEeWWbMjTqzYc1A" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nviEYgMdEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_nviEYwMdEeWWbMjTqzYc1A" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_nviEZAMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nviEZQMdEeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_nvdy6wMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nviEaQMdEeWWbMjTqzYc1A" x="325" y="140"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_nviEagMdEeWWbMjTqzYc1A" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEawMdEeWWbMjTqzYc1A" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEbAMdEeWWbMjTqzYc1A" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nviEbQMdEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_nviEbgMdEeWWbMjTqzYc1A" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_nviEbwMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nviEcAMdEeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_nvdy7gMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nviEdAMdEeWWbMjTqzYc1A" x="92" y="238"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_nviEdQMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nviEdgMdEeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Collaboration" href="design.uml#_nvdy4AMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nviEegMdEeWWbMjTqzYc1A" x="40" y="40" width="670" height="377"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_nviEewMdEeWWbMjTqzYc1A" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_nviEfAMdEeWWbMjTqzYc1A"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_nviEfQMdEeWWbMjTqzYc1A">
+ <owner xmi:type="uml:Collaboration" href="design.uml#_nvdy4AMdEeWWbMjTqzYc1A"/>
+ </styles>
+ <element xmi:type="uml:Collaboration" href="design.uml#_nvdy4AMdEeWWbMjTqzYc1A"/>
+ <edges xmi:type="notation:Connector" xmi:id="_nviEfgMdEeWWbMjTqzYc1A" type="4013" source="_nvhdSgMdEeWWbMjTqzYc1A" target="_nvhdVQMdEeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEfwMdEeWWbMjTqzYc1A" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nviEgAMdEeWWbMjTqzYc1A" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEgQMdEeWWbMjTqzYc1A" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nviEggMdEeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEgwMdEeWWbMjTqzYc1A" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nviEhAMdEeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEhQMdEeWWbMjTqzYc1A" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nviEhgMdEeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_nviEhwMdEeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Connector" href="design.uml#_nvdy8QMdEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_nviEiAMdEeWWbMjTqzYc1A" points="[-7, 23, -13, -66]$[-82, 80, -88, -9]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_nviEiQMdEeWWbMjTqzYc1A" id="(0.5,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_nviEigMdEeWWbMjTqzYc1A" id="(0.3533834586466165,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_nviEiwMdEeWWbMjTqzYc1A" type="4013" source="_nviEVAMdEeWWbMjTqzYc1A" target="_nviEXwMdEeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEjAMdEeWWbMjTqzYc1A" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nviEjQMdEeWWbMjTqzYc1A" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEjgMdEeWWbMjTqzYc1A" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nviEjwMdEeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEkAMdEeWWbMjTqzYc1A" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nviEkQMdEeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEkgMdEeWWbMjTqzYc1A" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nviEkwMdEeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_nviElAMdEeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Connector" href="design.uml#_nvdy9AMdEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_nviElQMdEeWWbMjTqzYc1A" points="[-9, 23, 0, -75]$[-10, 93, -1, -5]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_nviElgMdEeWWbMjTqzYc1A" id="(0.449438202247191,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_nviElwMdEeWWbMjTqzYc1A" id="(0.48502994011976047,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_nviEmAMdEeWWbMjTqzYc1A" type="4013" source="_nviEXwMdEeWWbMjTqzYc1A" target="_nviEagMdEeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEmQMdEeWWbMjTqzYc1A" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nviEmgMdEeWWbMjTqzYc1A" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEmwMdEeWWbMjTqzYc1A" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nviEnAMdEeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEnQMdEeWWbMjTqzYc1A" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nviEngMdEeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEnwMdEeWWbMjTqzYc1A" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nviEoAMdEeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_nviEoQMdEeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Connector" href="design.uml#_nvdy9wMdEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_nviEogMdEeWWbMjTqzYc1A" points="[-40, 23, 119, -78]$[-165, 78, -6, -23]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_nviEowMdEeWWbMjTqzYc1A" id="(0.281437125748503,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_nviEpAMdEeWWbMjTqzYc1A" id="(0.6395348837209303,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_nviEpQMdEeWWbMjTqzYc1A" type="4013" source="_nviEXwMdEeWWbMjTqzYc1A" target="_nvhdYAMdEeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEpgMdEeWWbMjTqzYc1A" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nviEpwMdEeWWbMjTqzYc1A" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEqAMdEeWWbMjTqzYc1A" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nviEqQMdEeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviEqgMdEeWWbMjTqzYc1A" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nviEqwMdEeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nviErAMdEeWWbMjTqzYc1A" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nviErQMdEeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_nviErgMdEeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Connector" href="design.uml#_nvdy-gMdEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_nviErwMdEeWWbMjTqzYc1A" points="[16, 23, -47, -77]$[66, 77, 3, -23]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_nviEsAMdEeWWbMjTqzYc1A" id="(0.718562874251497,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_nviEsQMdEeWWbMjTqzYc1A" id="(0.4652777777777778,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_Ql6l8AM0EeWWbMjTqzYc1A" type="4013" source="_nvhdVQMdEeWWbMjTqzYc1A" target="_nviEagMdEeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Ql7NAAM0EeWWbMjTqzYc1A" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Ql7NAQM0EeWWbMjTqzYc1A" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Ql7NAgM0EeWWbMjTqzYc1A" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Ql7NAwM0EeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Ql7NBAM0EeWWbMjTqzYc1A" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Ql7NBQM0EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Ql7NBgM0EeWWbMjTqzYc1A" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Ql7NBwM0EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_Ql6l8QM0EeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Connector" href="design.uml#_Qlw08AM0EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Ql6l8gM0EeWWbMjTqzYc1A" points="[1, 20, -44, -95]$[-73, 114, -118, -1]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_QmTngAM0EeWWbMjTqzYc1A" id="(0.40977443609022557,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_QmTngQM0EeWWbMjTqzYc1A" id="(0.2911392405063291,0.0)"/>
+ </edges>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_nvmVwAMdEeWWbMjTqzYc1A" type="PapyrusUMLCommunicationDiagram" name="Synchronize Model Elements" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_nvmVwQMdEeWWbMjTqzYc1A" type="8002">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmVwgMdEeWWbMjTqzYc1A" type="5001"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmVwwMdEeWWbMjTqzYc1A" type="6013">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvmVxAMdEeWWbMjTqzYc1A" x="50"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_nvmVxQMdEeWWbMjTqzYc1A" type="7001">
+ <children xmi:type="notation:Shape" xmi:id="_nvmVxgMdEeWWbMjTqzYc1A" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmVxwMdEeWWbMjTqzYc1A" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmVyAMdEeWWbMjTqzYc1A" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvmVyQMdEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_nvdy_gMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nvmVzQMdEeWWbMjTqzYc1A" x="81" y="38"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_nvmVzgMdEeWWbMjTqzYc1A" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmVzwMdEeWWbMjTqzYc1A" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmV0AMdEeWWbMjTqzYc1A" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvmV0QMdEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_nvdy_wMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nvmV1QMdEeWWbMjTqzYc1A" x="340" y="43"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_nvmV1gMdEeWWbMjTqzYc1A" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmV1wMdEeWWbMjTqzYc1A" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmV2AMdEeWWbMjTqzYc1A" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvmV2QMdEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_nvdzAAMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nvmV3QMdEeWWbMjTqzYc1A" x="75" y="124"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_nvmV3gMdEeWWbMjTqzYc1A" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmV3wMdEeWWbMjTqzYc1A" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmV4AMdEeWWbMjTqzYc1A" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvmV4QMdEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_nvdzAQMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nvmV5QMdEeWWbMjTqzYc1A" x="94" y="251"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_nvmV5gMdEeWWbMjTqzYc1A" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmV5wMdEeWWbMjTqzYc1A" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmV6AMdEeWWbMjTqzYc1A" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvmV6QMdEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_nvdzAgMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nvmV7QMdEeWWbMjTqzYc1A" x="330" y="199"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_nvmV7gMdEeWWbMjTqzYc1A" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmV7wMdEeWWbMjTqzYc1A" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmV8AMdEeWWbMjTqzYc1A" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvmV8QMdEeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_nvdzAwMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nvmV9QMdEeWWbMjTqzYc1A" x="336" y="299"/>
+ </children>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nvmV9gMdEeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Interaction" href="design.uml#_nvdy_QMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nvmV-gMdEeWWbMjTqzYc1A" width="592" height="401"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_nvmV-wMdEeWWbMjTqzYc1A" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_nvmV_AMdEeWWbMjTqzYc1A"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_nvmV_QMdEeWWbMjTqzYc1A">
+ <owner xmi:type="uml:Interaction" href="design.uml#_nvdy_QMdEeWWbMjTqzYc1A"/>
+ </styles>
+ <element xmi:type="uml:Interaction" href="design.uml#_nvdy_QMdEeWWbMjTqzYc1A"/>
+ <edges xmi:type="notation:Connector" xmi:id="_nvmV_gMdEeWWbMjTqzYc1A" type="8009" source="_nvmVxgMdEeWWbMjTqzYc1A" target="_nvmVzgMdEeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmV_wMdEeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_nvdzEAMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvmWAAMdEeWWbMjTqzYc1A" x="1" y="-23"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmWAQMdEeWWbMjTqzYc1A" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvmWAgMdEeWWbMjTqzYc1A" x="1" y="-53"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmWAwMdEeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_nvdzFQMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvmWBAMdEeWWbMjTqzYc1A" x="-7" y="16"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_nvmWBQMdEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_nvmWBgMdEeWWbMjTqzYc1A" points="[60, 7, -203, 2]$[200, 7, -63, 2]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_nvmWBwMdEeWWbMjTqzYc1A" type="8009" source="_nvmVzgMdEeWWbMjTqzYc1A" target="_nvmV5gMdEeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmWCAMdEeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_nvdzEQMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvmWCQMdEeWWbMjTqzYc1A" x="-10" y="-39"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmWCgMdEeWWbMjTqzYc1A" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvmWCwMdEeWWbMjTqzYc1A" x="1" y="-53"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Vk-tgAMfEeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_VjrF8AMfEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Vk-tgQMfEeWWbMjTqzYc1A" x="-5" y="34"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_nvmWDAMdEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_nvmWDQMdEeWWbMjTqzYc1A" points="[-1, 13, 13, -178]$[-14, 188, 0, -3]"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_nvmWDgMdEeWWbMjTqzYc1A" id="(0.512396694214876,0.12)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_nvmWDwMdEeWWbMjTqzYc1A" type="8009" source="_nvmV5gMdEeWWbMjTqzYc1A" target="_nvmV3gMdEeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmWEAMdEeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_nvdzEgMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvmWEQMdEeWWbMjTqzYc1A" x="9" y="39"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmWEgMdEeWWbMjTqzYc1A" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvmWEwMdEeWWbMjTqzYc1A" x="1" y="-53"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_nvmWFAMdEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_nvmWFQMdEeWWbMjTqzYc1A" points="[-15, 6, 92, -41]$[-86, 44, 21, -3]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_nvmWFgMdEeWWbMjTqzYc1A" id="(0.12396694214876033,0.52)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_nvmWFwMdEeWWbMjTqzYc1A" id="(0.8189655172413793,0.32)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_nvmWGAMdEeWWbMjTqzYc1A" type="8009" source="_nvmV3gMdEeWWbMjTqzYc1A" target="_nvmV7gMdEeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmWGQMdEeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_nvdzEwMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvmWGgMdEeWWbMjTqzYc1A" x="1" y="-23"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmWGwMdEeWWbMjTqzYc1A" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvmWHAMdEeWWbMjTqzYc1A" x="1" y="-53"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_nvmWHQMdEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_nvmWHgMdEeWWbMjTqzYc1A" points="[17, 7, -97, -46]$[94, 56, -20, 3]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_nvmWHwMdEeWWbMjTqzYc1A" id="(0.853448275862069,0.48)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_nvmWIAMdEeWWbMjTqzYc1A" id="(0.2,0.68)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_nvmWIQMdEeWWbMjTqzYc1A" type="8009" source="_nvmV3gMdEeWWbMjTqzYc1A" target="_nvmV1gMdEeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmWIgMdEeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_nvdzFAMdEeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvmWIwMdEeWWbMjTqzYc1A" x="21" y="-23"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nvmWJAMdEeWWbMjTqzYc1A" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nvmWJQMdEeWWbMjTqzYc1A" x="1" y="-53"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_nvmWJgMdEeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_nvmWJwMdEeWWbMjTqzYc1A" points="[-6, -12, 57, 115]$[-53, -114, 10, 13]"/>
+ </edges>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_XpaocAM1EeWWbMjTqzYc1A" type="CompositeStructure" name="Synchronization Exclusions" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_XpaocQM1EeWWbMjTqzYc1A" type="2075">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_uvpkMAM1EeWWbMjTqzYc1A" source="PapyrusHyperLink_Page" references="_XpdrwAM1EeWWbMjTqzYc1A">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_uvpkMQM1EeWWbMjTqzYc1A" key="tooltip_text" value="Exclude Views from Synchronization"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_uvpkMgM1EeWWbMjTqzYc1A" key="pageName" value="Exclude Views from Synchronization"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_uvpkMwM1EeWWbMjTqzYc1A" key="is_default_navigation" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpaodgM1EeWWbMjTqzYc1A" type="5158"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpaodwM1EeWWbMjTqzYc1A" type="6090">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpaoeAM1EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_XpaoeQM1EeWWbMjTqzYc1A" type="7075">
+ <children xmi:type="notation:Shape" xmi:id="_XpaoegM1EeWWbMjTqzYc1A" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpaoewM1EeWWbMjTqzYc1A" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpaofAM1EeWWbMjTqzYc1A" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpaofQM1EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_XpaofgM1EeWWbMjTqzYc1A" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_XpaofwM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpaogAM1EeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_XpZaUQM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpaohAM1EeWWbMjTqzYc1A" x="289" y="32"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_XpaohQM1EeWWbMjTqzYc1A" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpaohgM1EeWWbMjTqzYc1A" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpaohwM1EeWWbMjTqzYc1A" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpaoiAM1EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_XpaoiQM1EeWWbMjTqzYc1A" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_XpaoigM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpaoiwM1EeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_XpZaUgM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpaojwM1EeWWbMjTqzYc1A" x="266" y="123"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_XpaokAM1EeWWbMjTqzYc1A" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpaokQM1EeWWbMjTqzYc1A" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpaokgM1EeWWbMjTqzYc1A" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpaokwM1EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_XpaolAM1EeWWbMjTqzYc1A" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_XpaolQM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpaolgM1EeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_XpZaVQM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpaomgM1EeWWbMjTqzYc1A" x="10" y="213"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_XpaomwM1EeWWbMjTqzYc1A" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpaonAM1EeWWbMjTqzYc1A" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpaonQM1EeWWbMjTqzYc1A" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpaongM1EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_XpaonwM1EeWWbMjTqzYc1A" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_XpaooAM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpaooQM1EeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_XpZaWAM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpaopQM1EeWWbMjTqzYc1A" x="56" y="33"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_XpaopgM1EeWWbMjTqzYc1A" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpaopwM1EeWWbMjTqzYc1A" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpaoqAM1EeWWbMjTqzYc1A" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpaoqQM1EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_XpaoqgM1EeWWbMjTqzYc1A" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_XpaoqwM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpaorAM1EeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_XpZaWwM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpaosAM1EeWWbMjTqzYc1A" x="43" y="122"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_XpaosQM1EeWWbMjTqzYc1A" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpaosgM1EeWWbMjTqzYc1A" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpaoswM1EeWWbMjTqzYc1A" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpaotAM1EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_XpaotQM1EeWWbMjTqzYc1A" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_XpaotgM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpaotwM1EeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_XpZaXgM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpaouwM1EeWWbMjTqzYc1A" x="131" y="270"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_XpaovAM1EeWWbMjTqzYc1A" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpaovQM1EeWWbMjTqzYc1A" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpaovgM1EeWWbMjTqzYc1A" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpaovwM1EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_XpaowAM1EeWWbMjTqzYc1A" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_XpaowQM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpaowgM1EeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_XpZaYQM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpaoxgM1EeWWbMjTqzYc1A" x="547" y="121"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_XpaoxwM1EeWWbMjTqzYc1A" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpaoyAM1EeWWbMjTqzYc1A" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpaoyQM1EeWWbMjTqzYc1A" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpaoygM1EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_XpaoywM1EeWWbMjTqzYc1A" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_XpaozAM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpaozQM1EeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_XpZaYgM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Xpao0QM1EeWWbMjTqzYc1A" x="416" y="272"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_Xpao0gM1EeWWbMjTqzYc1A" type="3070">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Xpao0wM1EeWWbMjTqzYc1A" type="5126"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Xpao1AM1EeWWbMjTqzYc1A" type="6054">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Xpao1QM1EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Xpao1gM1EeWWbMjTqzYc1A" visible="false" type="7077">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Xpao1wM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Xpao2AM1EeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Property" href="design.uml#_XpZaZQM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Xpao3AM1EeWWbMjTqzYc1A" x="478" y="203"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Xpao3QM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Xpao3gM1EeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Collaboration" href="design.uml#_XpZaUAM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Xpao4gM1EeWWbMjTqzYc1A" x="40" y="40" width="758" height="367"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_Xpao4wM1EeWWbMjTqzYc1A" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_Xpao5AM1EeWWbMjTqzYc1A"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_Xpao5QM1EeWWbMjTqzYc1A">
+ <owner xmi:type="uml:Collaboration" href="design.uml#_XpZaUAM1EeWWbMjTqzYc1A"/>
+ </styles>
+ <element xmi:type="uml:Collaboration" href="design.uml#_XpZaUAM1EeWWbMjTqzYc1A"/>
+ <edges xmi:type="notation:Connector" xmi:id="_Xpao5gM1EeWWbMjTqzYc1A" type="4013" source="_XpaoegM1EeWWbMjTqzYc1A" target="_XpaohQM1EeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Xpao5wM1EeWWbMjTqzYc1A" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Xpao6AM1EeWWbMjTqzYc1A" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Xpao6QM1EeWWbMjTqzYc1A" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Xpao6gM1EeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Xpao6wM1EeWWbMjTqzYc1A" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Xpao7AM1EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Xpao7QM1EeWWbMjTqzYc1A" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Xpao7gM1EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_Xpao7wM1EeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Connector" href="design.uml#_XpZaZgM1EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Xpao8AM1EeWWbMjTqzYc1A" points="[-7, 23, -13, -66]$[-82, 80, -88, -9]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Xpao8QM1EeWWbMjTqzYc1A" id="(0.4375,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Xpao8gM1EeWWbMjTqzYc1A" id="(0.4011299435028249,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_Xpao8wM1EeWWbMjTqzYc1A" type="4013" source="_XpaomwM1EeWWbMjTqzYc1A" target="_XpaopgM1EeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Xpao9AM1EeWWbMjTqzYc1A" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Xpao9QM1EeWWbMjTqzYc1A" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Xpao9gM1EeWWbMjTqzYc1A" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Xpao9wM1EeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Xpao-AM1EeWWbMjTqzYc1A" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Xpao-QM1EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Xpao-gM1EeWWbMjTqzYc1A" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Xpao-wM1EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_Xpao_AM1EeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Connector" href="design.uml#_XpZaaQM1EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Xpao_QM1EeWWbMjTqzYc1A" points="[-9, 23, 0, -75]$[-10, 93, -1, -5]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Xpao_gM1EeWWbMjTqzYc1A" id="(0.449438202247191,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Xpao_wM1EeWWbMjTqzYc1A" id="(0.48502994011976047,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_XpapAAM1EeWWbMjTqzYc1A" type="4013" source="_XpaopgM1EeWWbMjTqzYc1A" target="_XpaosQM1EeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpapAQM1EeWWbMjTqzYc1A" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpapAgM1EeWWbMjTqzYc1A" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpapAwM1EeWWbMjTqzYc1A" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpapBAM1EeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpapBQM1EeWWbMjTqzYc1A" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpapBgM1EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpapBwM1EeWWbMjTqzYc1A" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpapCAM1EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_XpapCQM1EeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Connector" href="design.uml#_XpZabAM1EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_XpapCgM1EeWWbMjTqzYc1A" points="[-40, 23, 119, -78]$[-165, 78, -6, -23]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_XpapCwM1EeWWbMjTqzYc1A" id="(0.592814371257485,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_XpapDAM1EeWWbMjTqzYc1A" id="(0.6395348837209303,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_XpapDQM1EeWWbMjTqzYc1A" type="4013" source="_XpaopgM1EeWWbMjTqzYc1A" target="_XpaokAM1EeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpapDgM1EeWWbMjTqzYc1A" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpapDwM1EeWWbMjTqzYc1A" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpapEAM1EeWWbMjTqzYc1A" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpapEQM1EeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpapEgM1EeWWbMjTqzYc1A" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpapEwM1EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpapFAM1EeWWbMjTqzYc1A" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpapFQM1EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_XpapFgM1EeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Connector" href="design.uml#_XpZabwM1EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_XpapFwM1EeWWbMjTqzYc1A" points="[16, 23, -47, -77]$[66, 77, 3, -23]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_XpapGAM1EeWWbMjTqzYc1A" id="(0.4311377245508982,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_XpapGQM1EeWWbMjTqzYc1A" id="(0.4652777777777778,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_XpapGgM1EeWWbMjTqzYc1A" type="4013" source="_XpaovAM1EeWWbMjTqzYc1A" target="_Xpao0gM1EeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpapGwM1EeWWbMjTqzYc1A" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpbPgAM1EeWWbMjTqzYc1A" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpbPgQM1EeWWbMjTqzYc1A" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpbPggM1EeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpbPgwM1EeWWbMjTqzYc1A" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpbPhAM1EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpbPhQM1EeWWbMjTqzYc1A" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpbPhgM1EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_XpbPhwM1EeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Connector" href="design.uml#_XpZacgM1EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_XpbPiAM1EeWWbMjTqzYc1A" points="[-4, 23, 9, -64]$[-15, 64, -2, -23]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_XpbPiQM1EeWWbMjTqzYc1A" id="(0.39226519337016574,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_XpbPigM1EeWWbMjTqzYc1A" id="(0.4844961240310077,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_XpbPiwM1EeWWbMjTqzYc1A" type="4013" source="_Xpao0gM1EeWWbMjTqzYc1A" target="_XpaoxwM1EeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpbPjAM1EeWWbMjTqzYc1A" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpbPjQM1EeWWbMjTqzYc1A" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpbPjgM1EeWWbMjTqzYc1A" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpbPjwM1EeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpbPkAM1EeWWbMjTqzYc1A" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpbPkQM1EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpbPkgM1EeWWbMjTqzYc1A" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpbPkwM1EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_XpbPlAM1EeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Connector" href="design.uml#_XpZadQM1EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_XpbPlQM1EeWWbMjTqzYc1A" points="[-3, 23, 9, -69]$[-25, 82, -13, -10]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_XpbPlgM1EeWWbMjTqzYc1A" id="(0.2596899224806202,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_XpbPlwM1EeWWbMjTqzYc1A" id="(0.4867924528301887,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_XpbPmAM1EeWWbMjTqzYc1A" type="4013" source="_XpaohQM1EeWWbMjTqzYc1A" target="_XpaovAM1EeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpbPmQM1EeWWbMjTqzYc1A" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpbPmgM1EeWWbMjTqzYc1A" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpbPmwM1EeWWbMjTqzYc1A" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpbPnAM1EeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpbPnQM1EeWWbMjTqzYc1A" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpbPngM1EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpbPnwM1EeWWbMjTqzYc1A" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpbPoAM1EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_XpbPoQM1EeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Connector" href="design.uml#_XpZaeAM1EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_XpbPogM1EeWWbMjTqzYc1A" points="[34, -16, -134, 61]$[137, -74, -31, 3]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_XpbPowM1EeWWbMjTqzYc1A" id="(1.0,0.475)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_XpbPpAM1EeWWbMjTqzYc1A" id="(0.0,0.575)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_XpbPpQM1EeWWbMjTqzYc1A" type="4013" source="_XpaohQM1EeWWbMjTqzYc1A" target="_XpaoxwM1EeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpbPpgM1EeWWbMjTqzYc1A" visible="false" type="6025">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpbPpwM1EeWWbMjTqzYc1A" y="60"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpbPqAM1EeWWbMjTqzYc1A" visible="false" type="6050">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpbPqQM1EeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpbPqgM1EeWWbMjTqzYc1A" visible="false" type="6051">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpbPqwM1EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpbPrAM1EeWWbMjTqzYc1A" visible="false" type="6052">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpbPrQM1EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_XpbPrgM1EeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Connector" href="design.uml#_XpZaewM1EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_XpbPrwM1EeWWbMjTqzYc1A" points="[-6, 9, 49, -78]$[-33, 83, 22, -4]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_XpbPsAM1EeWWbMjTqzYc1A" id="(0.41700404858299595,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_XpbPsQM1EeWWbMjTqzYc1A" id="(0.06415094339622641,0.0)"/>
+ </edges>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_XpdrwAM1EeWWbMjTqzYc1A" type="PapyrusUMLCommunicationDiagram" name="Exclude Views from Synchronization" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_XpdrwQM1EeWWbMjTqzYc1A" type="8002">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpdrwgM1EeWWbMjTqzYc1A" type="5001"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpdrwwM1EeWWbMjTqzYc1A" type="6013">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpdrxAM1EeWWbMjTqzYc1A" x="50"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_XpdrxQM1EeWWbMjTqzYc1A" type="7001">
+ <children xmi:type="notation:Shape" xmi:id="_XpdrxgM1EeWWbMjTqzYc1A" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpdrxwM1EeWWbMjTqzYc1A" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpdryAM1EeWWbMjTqzYc1A" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpdryQM1EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_XpZafwM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpdrzQM1EeWWbMjTqzYc1A" x="118" y="41"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_XpdrzgM1EeWWbMjTqzYc1A" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpdrzwM1EeWWbMjTqzYc1A" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Xpdr0AM1EeWWbMjTqzYc1A" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Xpdr0QM1EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_XpZagAM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Xpdr1QM1EeWWbMjTqzYc1A" x="71" y="170"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_Xpdr1gM1EeWWbMjTqzYc1A" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Xpdr1wM1EeWWbMjTqzYc1A" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Xpdr2AM1EeWWbMjTqzYc1A" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Xpdr2QM1EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_XpZagQM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Xpdr3QM1EeWWbMjTqzYc1A" x="312" y="82"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_Xpdr9gM1EeWWbMjTqzYc1A" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Xpdr9wM1EeWWbMjTqzYc1A" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Xpdr-AM1EeWWbMjTqzYc1A" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Xpdr-QM1EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_XpZahQM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Xpdr_QM1EeWWbMjTqzYc1A" x="413" y="192"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_Xpdr_gM1EeWWbMjTqzYc1A" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Xpdr_wM1EeWWbMjTqzYc1A" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpdsAAM1EeWWbMjTqzYc1A" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpdsAQM1EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_XpZahgM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpdsBQM1EeWWbMjTqzYc1A" x="407" y="328"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_XpdsBgM1EeWWbMjTqzYc1A" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpdsBwM1EeWWbMjTqzYc1A" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpdsCAM1EeWWbMjTqzYc1A" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpdsCQM1EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_XpZahwM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpdsDQM1EeWWbMjTqzYc1A" x="207" y="275"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_MHRwEAM3EeWWbMjTqzYc1A" type="8001">
+ <children xmi:type="notation:DecorationNode" xmi:id="_MHRwEgM3EeWWbMjTqzYc1A" type="5002"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_MHRwEwM3EeWWbMjTqzYc1A" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_MHRwFAM3EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <element xmi:type="uml:Lifeline" href="design.uml#_MHImIAM3EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_MHRwEQM3EeWWbMjTqzYc1A" x="168" y="384"/>
+ </children>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpdsDgM1EeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Interaction" href="design.uml#_XpZafgM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_XpdsEgM1EeWWbMjTqzYc1A" width="669" height="463"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_XpdsEwM1EeWWbMjTqzYc1A" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_XpdsFAM1EeWWbMjTqzYc1A"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_XpdsFQM1EeWWbMjTqzYc1A">
+ <owner xmi:type="uml:Interaction" href="design.uml#_XpZafgM1EeWWbMjTqzYc1A"/>
+ </styles>
+ <element xmi:type="uml:Interaction" href="design.uml#_XpZafgM1EeWWbMjTqzYc1A"/>
+ <edges xmi:type="notation:Connector" xmi:id="_XpdsFgM1EeWWbMjTqzYc1A" type="8009" source="_XpdrxgM1EeWWbMjTqzYc1A" target="_XpdrzgM1EeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpdsGQM1EeWWbMjTqzYc1A" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpdsGgM1EeWWbMjTqzYc1A" x="1" y="-53"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_BcscsAM3EeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_BcHN4AM3EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_BcscsQM3EeWWbMjTqzYc1A" x="-3" y="25"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_EH7T4AM3EeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_EGr9wAM3EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_EH7T4QM3EeWWbMjTqzYc1A" x="-3" y="-43"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_XpdsHQM1EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_XpdsHgM1EeWWbMjTqzYc1A" points="[60, 7, -203, 2]$[200, 7, -63, 2]"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_XpdsMAM1EeWWbMjTqzYc1A" type="8009" source="_Xpdr9gM1EeWWbMjTqzYc1A" target="_Xpdr_gM1EeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpdsMQM1EeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_XpZaqgM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpdsMgM1EeWWbMjTqzYc1A" x="-40" y="26"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpdsMwM1EeWWbMjTqzYc1A" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpdsNAM1EeWWbMjTqzYc1A" x="1" y="-53"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_XpdsNQM1EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_XpdsNgM1EeWWbMjTqzYc1A" points="[-9, 13, 64, -89]$[-74, 115, -1, 13]"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_XpdsNwM1EeWWbMjTqzYc1A" id="(0.8425925925925926,0.28)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_XpdsOAM1EeWWbMjTqzYc1A" type="8009" source="_Xpdr9gM1EeWWbMjTqzYc1A" target="_XpdsBgM1EeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpdsOQM1EeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_XpZaqwM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpdsOgM1EeWWbMjTqzYc1A" x="-13" y="19"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpdsOwM1EeWWbMjTqzYc1A" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpdsPAM1EeWWbMjTqzYc1A" x="1" y="-53"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_XpdsPwM1EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_XpdsQAM1EeWWbMjTqzYc1A" points="[1, 10, 10, -136]$[84, 142, 93, -4]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_XpdsQQM1EeWWbMjTqzYc1A" id="(0.2158273381294964,0.24)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_XpdsXAM1EeWWbMjTqzYc1A" type="8009" source="_Xpdr1gM1EeWWbMjTqzYc1A" target="_Xpdr9gM1EeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpdsXQM1EeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_XpZasQM1EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpdsXgM1EeWWbMjTqzYc1A" x="-27" y="28"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_XpdsXwM1EeWWbMjTqzYc1A" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_XpdsYAM1EeWWbMjTqzYc1A" x="1" y="-53"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_XpdsYQM1EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_XpdsYgM1EeWWbMjTqzYc1A" points="[12, 11, -106, -81]$[49, 87, -69, -5]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_XpdsYwM1EeWWbMjTqzYc1A" id="(0.8503937007874016,0.56)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="__exXcAM2EeWWbMjTqzYc1A" type="8009" source="_XpdsBgM1EeWWbMjTqzYc1A" target="_XpdrzgM1EeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="__ex-gAM2EeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#__dgzMAM2EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="__ex-gQM2EeWWbMjTqzYc1A" x="28" y="-23"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="__ex-ggM2EeWWbMjTqzYc1A" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="__ex-gwM2EeWWbMjTqzYc1A" x="1" y="-53"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_IIbU4AM3EeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_IH2GEAM3EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_IIbU4QM3EeWWbMjTqzYc1A" x="-17" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="__exXcQM2EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="__exXcgM2EeWWbMjTqzYc1A" points="[-6, -11, 97, 99]$[-5, -110, 98, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="__fDEQAM2EeWWbMjTqzYc1A" id="(0.16964285714285715,0.44)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_Q8bhIAM3EeWWbMjTqzYc1A" type="8009" source="_XpdsBgM1EeWWbMjTqzYc1A" target="_MHRwEAM3EeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Q8bhIwM3EeWWbMjTqzYc1A" type="6001">
+ <element xmi:type="uml:Message" href="design.uml#_Q7yA4AM3EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Q8bhJAM3EeWWbMjTqzYc1A" x="26" y="46"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Q8bhJQM3EeWWbMjTqzYc1A" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Q8bhJgM3EeWWbMjTqzYc1A" x="1" y="-53"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_Q8bhIQM3EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_Q8bhIgM3EeWWbMjTqzYc1A" points="[-38, 13, 135, -40]$[-109, 48, 64, -5]"/>
+ </edges>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_aCgfYAM4EeWWbMjTqzYc1A" type="PapyrusUMLClassDiagram" name="Test Plug-ins" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_bQShIAM4EeWWbMjTqzYc1A" type="2002">
+ <children xmi:type="notation:DecorationNode" xmi:id="_bQShIgM4EeWWbMjTqzYc1A" type="5005"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_bQTIMAM4EeWWbMjTqzYc1A" type="8503">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_bQTIMQM4EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_bQTIMgM4EeWWbMjTqzYc1A" visible="false" type="7002">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bQTIMwM4EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_bQTINAM4EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_bQTINQM4EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bQTINgM4EeWWbMjTqzYc1A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_bQTINwM4EeWWbMjTqzYc1A" visible="false" type="7003">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bQTIOAM4EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_bQTIOQM4EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_bQTIOgM4EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bQTIOwM4EeWWbMjTqzYc1A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_bQTIPAM4EeWWbMjTqzYc1A" visible="false" type="7004">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_bQTIPQM4EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_bQTIPgM4EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_bQTIPwM4EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bQTIQAM4EeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Component" href="design.uml#_bQLMYAM4EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_bQShIQM4EeWWbMjTqzYc1A" x="151" y="106" height="72"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_qBAjcAM4EeWWbMjTqzYc1A" type="2007">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_ih54IAM5EeWWbMjTqzYc1A" source="PapyrusHyperLink_Page" references="_hbcmYAM5EeWWbMjTqzYc1A">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ih54IQM5EeWWbMjTqzYc1A" key="tooltip_text" value="Test Classes"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ih54IgM5EeWWbMjTqzYc1A" key="pageName" value="Test Classes"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_ih54IwM5EeWWbMjTqzYc1A" key="is_default_navigation" value="true"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_qBAjcgM4EeWWbMjTqzYc1A" type="5026"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_qBAjcwM4EeWWbMjTqzYc1A" type="7016">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_qBAjdAM4EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_qBAjdQM4EeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Package" href="design.uml#_qA5OsAM4EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_qBAjcQM4EeWWbMjTqzYc1A" x="141" y="289"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_aCgfYQM4EeWWbMjTqzYc1A" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_aCgfYgM4EeWWbMjTqzYc1A"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_aCgfYwM4EeWWbMjTqzYc1A">
+ <owner xmi:type="uml:Model" href="design.uml#_y3pEOACLEeWudc8agGQ04Q"/>
+ </styles>
+ <element xmi:type="uml:Model" href="design.uml#_y3pEOACLEeWudc8agGQ04Q"/>
+ <edges xmi:type="notation:Connector" xmi:id="_xQ7t0AM4EeWWbMjTqzYc1A" type="4005" source="_qBAjcAM4EeWWbMjTqzYc1A" target="_bQShIAM4EeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_xQ7t0wM4EeWWbMjTqzYc1A" type="6012">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_xQ7t1AM4EeWWbMjTqzYc1A" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_xQ7t1QM4EeWWbMjTqzYc1A" type="6013">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_xQ7t1gM4EeWWbMjTqzYc1A" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_xQ7t0QM4EeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Realization" href="design.uml#_xQPxUAM4EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_xQ7t0gM4EeWWbMjTqzYc1A" points="[1, -6, -10, 147]$[-107, -147, -118, 6]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_xRHUAAM4EeWWbMjTqzYc1A" id="(0.4349442379182156,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_xRHUAQM4EeWWbMjTqzYc1A" id="(0.4533898305084746,1.0)"/>
+ </edges>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_hbcmYAM5EeWWbMjTqzYc1A" type="PapyrusUMLClassDiagram" name="Test Classes" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_juC7IAM5EeWWbMjTqzYc1A" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_juC7IgM5EeWWbMjTqzYc1A" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_juC7IwM5EeWWbMjTqzYc1A" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_juC7JAM5EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_juC7JQM5EeWWbMjTqzYc1A" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_juC7JgM5EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_juC7JwM5EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_juC7KAM5EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_juC7KQM5EeWWbMjTqzYc1A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_juC7KgM5EeWWbMjTqzYc1A" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_juC7KwM5EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_juC7LAM5EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_juC7LQM5EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_juC7LgM5EeWWbMjTqzYc1A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_juC7LwM5EeWWbMjTqzYc1A" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_juC7MAM5EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_juC7MQM5EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_juC7MgM5EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_juC7MwM5EeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_jt_QwAM5EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_juC7IQM5EeWWbMjTqzYc1A" x="95" y="118"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_lhPXEAM5EeWWbMjTqzYc1A" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_lhPXEgM5EeWWbMjTqzYc1A" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lhPXEwM5EeWWbMjTqzYc1A" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lhPXFAM5EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_lhPXFQM5EeWWbMjTqzYc1A" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_lhPXFgM5EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_lhPXFwM5EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_lhPXGAM5EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lhPXGQM5EeWWbMjTqzYc1A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_lhPXGgM5EeWWbMjTqzYc1A" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_lhPXGwM5EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_lhPXHAM5EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_lhPXHQM5EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lhPXHgM5EeWWbMjTqzYc1A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_lhPXHwM5EeWWbMjTqzYc1A" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_lhPXIAM5EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_lhPXIQM5EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_lhPXIgM5EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lhPXIwM5EeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_lhLFoAM5EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lhPXEQM5EeWWbMjTqzYc1A" x="341" y="117"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_nzcDMAM5EeWWbMjTqzYc1A" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_nzcqQAM5EeWWbMjTqzYc1A" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_nzcqQQM5EeWWbMjTqzYc1A" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_nzcqQgM5EeWWbMjTqzYc1A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_nzcqQwM5EeWWbMjTqzYc1A" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_nzcqRAM5EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_nzcqRQM5EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_nzcqRgM5EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nzcqRwM5EeWWbMjTqzYc1A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_nzcqSAM5EeWWbMjTqzYc1A" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_nzcqSQM5EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_nzcqSgM5EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_nzcqSwM5EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nzcqTAM5EeWWbMjTqzYc1A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_nzcqTQM5EeWWbMjTqzYc1A" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_nzcqTgM5EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_nzcqTwM5EeWWbMjTqzYc1A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_nzcqUAM5EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nzcqUQM5EeWWbMjTqzYc1A"/>
+ </children>
+ <element xmi:type="uml:Class" href="design.uml#_nytqcAM5EeWWbMjTqzYc1A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_nzcDMQM5EeWWbMjTqzYc1A" x="227" y="315"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_hbcmYQM5EeWWbMjTqzYc1A" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_hbcmYgM5EeWWbMjTqzYc1A"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_hbcmYwM5EeWWbMjTqzYc1A">
+ <owner xmi:type="uml:Package" href="design.uml#_qA5OsAM4EeWWbMjTqzYc1A"/>
+ </styles>
+ <element xmi:type="uml:Package" href="design.uml#_qA5OsAM4EeWWbMjTqzYc1A"/>
+ <edges xmi:type="notation:Connector" xmi:id="_sIeJwAM5EeWWbMjTqzYc1A" type="4001" source="_lhPXEAM5EeWWbMjTqzYc1A" target="_nzcDMAM5EeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_sIeJwwM5EeWWbMjTqzYc1A" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_sIeJxAM5EeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_sIeJxQM5EeWWbMjTqzYc1A" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_sIeJxgM5EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_sIeJxwM5EeWWbMjTqzYc1A" visible="false" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_sIeJyAM5EeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_sIeJyQM5EeWWbMjTqzYc1A" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_sIeJygM5EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_sIeJywM5EeWWbMjTqzYc1A" visible="false" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_sIeJzAM5EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_sIew0AM5EeWWbMjTqzYc1A" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_sIew0QM5EeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_sIeJwQM5EeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Association" href="design.uml#_sIEhIAM5EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_sIeJwgM5EeWWbMjTqzYc1A" points="[-16, 23, 100, -148]$[-81, 121, 35, -50]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_sI7cwAM5EeWWbMjTqzYc1A" id="(0.26277372262773724,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_sI7cwQM5EeWWbMjTqzYc1A" id="(0.84,0.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_spRJsAM5EeWWbMjTqzYc1A" type="4001" source="_juC7IAM5EeWWbMjTqzYc1A" target="_nzcDMAM5EeWWbMjTqzYc1A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_spRwwAM5EeWWbMjTqzYc1A" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_spRwwQM5EeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_spRwwgM5EeWWbMjTqzYc1A" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_spRwwwM5EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_spRwxAM5EeWWbMjTqzYc1A" visible="false" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_spRwxQM5EeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_spRwxgM5EeWWbMjTqzYc1A" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_spRwxwM5EeWWbMjTqzYc1A" x="-18" y="24"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_spRwyAM5EeWWbMjTqzYc1A" visible="false" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_spRwyQM5EeWWbMjTqzYc1A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_spRwygM5EeWWbMjTqzYc1A" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_spRwywM5EeWWbMjTqzYc1A" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_spRJsQM5EeWWbMjTqzYc1A"/>
+ <element xmi:type="uml:Association" href="design.uml#_spH_wAM5EeWWbMjTqzYc1A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_spRJsgM5EeWWbMjTqzYc1A" points="[15, 21, -106, -147]$[114, 118, -7, -50]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_spwR4AM5EeWWbMjTqzYc1A" id="(0.4935064935064935,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_spwR4QM5EeWWbMjTqzYc1A" id="(0.18,0.0)"/>
+ </edges>
+ </notation:Diagram>
+</xmi:XMI>
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/design.uml b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/design.uml
new file mode 100644
index 00000000000..72e6bbd71c9
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/design.uml
@@ -0,0 +1,1139 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:Requirements="http://www.eclipse.org/papyrus/0.7.0/SysML/Requirements" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:standard="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard" xmlns:structure="http://DeveloperProcess/schemas/structure/_rpmLUHVxEeSZ-fQGFkyJeQ/6" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.eclipse.org/papyrus/0.7.0/SysML/Requirements http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements http://DeveloperProcess/schemas/structure/_rpmLUHVxEeSZ-fQGFkyJeQ/6 pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_rpmyYHVxEeSZ-fQGFkyJeQ">
+ <uml:Model xmi:id="_y3pEMACLEeWudc8agGQ04Q" name="diagram-sync">
+ <packageImport xmi:type="uml:PackageImport" xmi:id="_y3pEMQCLEeWudc8agGQ04Q">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Model" xmi:id="_y3pEMgCLEeWudc8agGQ04Q" name="Requirements">
+ <packagedElement xmi:type="uml:Class" xmi:id="_H3xwAP_lEeScYo8tuJyy0A" name="Model-to-Model Sync"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_NlpXIP_4EeScYo8tuJyy0A" name="Additional Content"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_e-QjYP_lEeScYo8tuJyy0A" name="Diagram-to-Diagram Sync"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_lWa_UP_lEeScYo8tuJyy0A" name="Sync Override"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_obO-sP_mEeScYo8tuJyy0A" client="_lWa_UP_lEeScYo8tuJyy0A" supplier="_e-QjYP_lEeScYo8tuJyy0A"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_h2TbYACREeWudc8agGQ04Q" client="_NlpXIP_4EeScYo8tuJyy0A" supplier="_H3xwAP_lEeScYo8tuJyy0A"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Model" xmi:id="_y3pEMwCLEeWudc8agGQ04Q" name="Use Cases">
+ <packagedElement xmi:type="uml:Component" xmi:id="_xS4T0P_xEeScYo8tuJyy0A" name="UML-RT Capsule State Machine Diagram Synchronization" useCase="_BwcAgP_0EeScYo8tuJyy0A _xdObQP_0EeScYo8tuJyy0A _zJRGUP_0EeScYo8tuJyy0A _226cwP_0EeScYo8tuJyy0A _5w1QMP_0EeScYo8tuJyy0A __JdhwP_0EeScYo8tuJyy0A _J0AScACxEeWnE_cMzyyIKA">
+ <ownedUseCase xmi:type="uml:UseCase" xmi:id="_BwcAgP_0EeScYo8tuJyy0A" name="Add elements to general state machine" subject="_xS4T0P_xEeScYo8tuJyy0A">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_Ydm7wACTEeWudc8agGQ04Q" annotatedElement="_BwcAgP_0EeScYo8tuJyy0A">
+ <body>The UML-RT model has a Capsule that is specialized by some other Capsule
+that has a state machine redefining the parent Capsule's state machine.
+
+When the user adds states, transitions, regions, and other vertices to the
+parent state machine, the system adds corresponding elements to the
+child Capsule's state machine with appropriate redefinition associations.</body>
+ </ownedComment>
+ </ownedUseCase>
+ <ownedUseCase xmi:type="uml:UseCase" xmi:id="_xdObQP_0EeScYo8tuJyy0A" name="Delete elements from general state machine" subject="_xS4T0P_xEeScYo8tuJyy0A">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_tLJh0ACTEeWudc8agGQ04Q" annotatedElement="_xdObQP_0EeScYo8tuJyy0A">
+ <body>The UML-RT model has a Capsule that is specialized by some other Capsule
+that has a state machine redefining the parent Capsule's state machine.
+
+When the user deletes states, transitions, regions, and other vertices from
+the parent state machine, the system deletes the corresponding redefining
+elements from the child Capsule's state machine.</body>
+ </ownedComment>
+ </ownedUseCase>
+ <ownedUseCase xmi:type="uml:UseCase" xmi:id="_zJRGUP_0EeScYo8tuJyy0A" name="Lay out elements in general state machine" subject="_xS4T0P_xEeScYo8tuJyy0A">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_MH8xMACUEeWudc8agGQ04Q" annotatedElement="_zJRGUP_0EeScYo8tuJyy0A">
+ <body>The UML-RT model has a Capsule that is specialized by some other Capsule
+that has a state machine redefining the parent Capsule's state machine.
+
+When the user moves and sizes states, regions, and other vertices in the
+parent state machine diagram, the system moves and sizes the
+corresponding redefining elements in the child Capsule's state machine
+diagram to the redefined elements' locations and sizes, respectively.</body>
+ </ownedComment>
+ </ownedUseCase>
+ <ownedUseCase xmi:type="uml:UseCase" xmi:id="_226cwP_0EeScYo8tuJyy0A" name="Hide elements in general state machine" subject="_xS4T0P_xEeScYo8tuJyy0A">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_UhkHgACUEeWudc8agGQ04Q" annotatedElement="_226cwP_0EeScYo8tuJyy0A">
+ <body>The UML-RT model has a Capsule that is specialized by some other Capsule
+that has a state machine redefining the parent Capsule's state machine.
+
+When the user hides states, regions, and other vertices from the
+parent state machine diagram (deleting the views but not the model
+elements, themselves), the system removes the views of the
+corresponding redefining elements from the child Capsule's state
+machine diagram.</body>
+ </ownedComment>
+ </ownedUseCase>
+ <ownedUseCase xmi:type="uml:UseCase" xmi:id="_5w1QMP_0EeScYo8tuJyy0A" name="Add elements to special state machine" subject="_xS4T0P_xEeScYo8tuJyy0A">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_xMn9wACUEeWudc8agGQ04Q" annotatedElement="_5w1QMP_0EeScYo8tuJyy0A">
+ <body>The UML-RT model has a Capsule that is specialized by some other Capsule
+that has a state machine redefining the parent Capsule's state machine.
+
+The user adds states, transitions, regions, and other vertices to the child
+Capsule's state machine that are new in this context, not redefining any
+elements from the parent state machine. These may be positioned anywhere
+in the child state machine diagram.
+
+Also, transitions that redefine inherited transitions in the parent state machine
+may be re-targeted and/or re-sourced as necessary in the child capsule. This
+includes re-connecting transitions to states and other vertices that exist only
+in the child capsule's state machine (that do not redefine inherited vertices).</body>
+ </ownedComment>
+ </ownedUseCase>
+ <ownedUseCase xmi:type="uml:UseCase" xmi:id="__JdhwP_0EeScYo8tuJyy0A" name="Lay out elements in special state machine" subject="_xS4T0P_xEeScYo8tuJyy0A">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_A29vsACVEeWudc8agGQ04Q" annotatedElement="__JdhwP_0EeScYo8tuJyy0A">
+ <body>The UML-RT model has a Capsule that is specialized by some other Capsule
+that has a state machine redefining the parent Capsule's state machine.
+
+When the user deliberately moves and sizes states, regions, and other
+vertices in the child Capsule's state machine diagram, the system detects
+this and exempts the affected views from subsequent synchronization
+of the location and/or size (as appropriate) from the parent state machine
+diagram. Layout changes in the redefined elements in the parent state
+machine diagram are no longer propagated to these views in the child
+state machine diagram.
+</body>
+ </ownedComment>
+ </ownedUseCase>
+ <ownedUseCase xmi:type="uml:UseCase" xmi:id="_J0AScACxEeWnE_cMzyyIKA" name="Synchronization Lifecycle" subject="_xS4T0P_xEeScYo8tuJyy0A">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_lM4vIACxEeWnE_cMzyyIKA" annotatedElement="_J0AScACxEeWnE_cMzyyIKA">
+ <body>When an editor is opened, the system initializes synchronization of
+model and diagram content according to the state machine
+synchronization triggers defined by the UML-RT plug-in.
+The synchronization system is destroyed when the editor is closed.</body>
+ </ownedComment>
+ </ownedUseCase>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Actor" xmi:id="_B0KNcP_1EeScYo8tuJyy0A" name="User"/>
+ <packagedElement xmi:type="uml:Association" xmi:id="_C7VQ4P_1EeScYo8tuJyy0A" memberEnd="_C7aJYP_1EeScYo8tuJyy0A _C7awcP_1EeScYo8tuJyy0A">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_C7Y7QP_1EeScYo8tuJyy0A" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_C7Y7Qf_1EeScYo8tuJyy0A" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_C7aJYP_1EeScYo8tuJyy0A" name="add elements to general state machine" type="_BwcAgP_0EeScYo8tuJyy0A" association="_C7VQ4P_1EeScYo8tuJyy0A"/>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_C7awcP_1EeScYo8tuJyy0A" name="user" type="_B0KNcP_1EeScYo8tuJyy0A" association="_C7VQ4P_1EeScYo8tuJyy0A"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_EvogEP_1EeScYo8tuJyy0A" name="" memberEnd="_EvpHIf_1EeScYo8tuJyy0A _EvpHIv_1EeScYo8tuJyy0A">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_EvogEf_1EeScYo8tuJyy0A" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_EvpHIP_1EeScYo8tuJyy0A" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_EvpHIf_1EeScYo8tuJyy0A" name="delete elements from general state machine" type="_xdObQP_0EeScYo8tuJyy0A" association="_EvogEP_1EeScYo8tuJyy0A"/>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_EvpHIv_1EeScYo8tuJyy0A" name="user" type="_B0KNcP_1EeScYo8tuJyy0A" association="_EvogEP_1EeScYo8tuJyy0A"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_FkGp8P_1EeScYo8tuJyy0A" name="" memberEnd="_FkHRAv_1EeScYo8tuJyy0A _FkH4EP_1EeScYo8tuJyy0A">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_FkHRAP_1EeScYo8tuJyy0A" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_FkHRAf_1EeScYo8tuJyy0A" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_FkHRAv_1EeScYo8tuJyy0A" name="lay out elements in general state machine" type="_zJRGUP_0EeScYo8tuJyy0A" association="_FkGp8P_1EeScYo8tuJyy0A"/>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_FkH4EP_1EeScYo8tuJyy0A" name="user" type="_B0KNcP_1EeScYo8tuJyy0A" association="_FkGp8P_1EeScYo8tuJyy0A"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_GJo_8P_1EeScYo8tuJyy0A" name="" memberEnd="_GJpnAP_1EeScYo8tuJyy0A _GJpnAf_1EeScYo8tuJyy0A">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_GJo_8f_1EeScYo8tuJyy0A" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_GJo_8v_1EeScYo8tuJyy0A" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_GJpnAP_1EeScYo8tuJyy0A" name="hide elements in general state machine" type="_226cwP_0EeScYo8tuJyy0A" association="_GJo_8P_1EeScYo8tuJyy0A"/>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_GJpnAf_1EeScYo8tuJyy0A" name="user" type="_B0KNcP_1EeScYo8tuJyy0A" association="_GJo_8P_1EeScYo8tuJyy0A"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_GuxtUP_1EeScYo8tuJyy0A" name="" memberEnd="_GuyUYf_1EeScYo8tuJyy0A _GuyUYv_1EeScYo8tuJyy0A">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_GuxtUf_1EeScYo8tuJyy0A" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_GuyUYP_1EeScYo8tuJyy0A" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_GuyUYf_1EeScYo8tuJyy0A" name="add elements to special state machine" type="_5w1QMP_0EeScYo8tuJyy0A" association="_GuxtUP_1EeScYo8tuJyy0A"/>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_GuyUYv_1EeScYo8tuJyy0A" name="user" type="_B0KNcP_1EeScYo8tuJyy0A" association="_GuxtUP_1EeScYo8tuJyy0A"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_HgO_cP_1EeScYo8tuJyy0A" name="" memberEnd="_HgPmgv_1EeScYo8tuJyy0A _HgPmg__1EeScYo8tuJyy0A">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_HgPmgP_1EeScYo8tuJyy0A" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_HgPmgf_1EeScYo8tuJyy0A" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_HgPmgv_1EeScYo8tuJyy0A" name="lay out elements in special state machine" type="__JdhwP_0EeScYo8tuJyy0A" association="_HgO_cP_1EeScYo8tuJyy0A"/>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_HgPmg__1EeScYo8tuJyy0A" name="user" type="_B0KNcP_1EeScYo8tuJyy0A" association="_HgO_cP_1EeScYo8tuJyy0A"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_ZPkSgP_2EeScYo8tuJyy0A" client="_BwcAgP_0EeScYo8tuJyy0A" supplier="_H3xwAP_lEeScYo8tuJyy0A"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_PQN4AP_3EeScYo8tuJyy0A" client="_xdObQP_0EeScYo8tuJyy0A" supplier="_H3xwAP_lEeScYo8tuJyy0A"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_vHLCgP_3EeScYo8tuJyy0A" client="_zJRGUP_0EeScYo8tuJyy0A" supplier="_e-QjYP_lEeScYo8tuJyy0A"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_1OBsAP_3EeScYo8tuJyy0A" client="_226cwP_0EeScYo8tuJyy0A" supplier="_e-QjYP_lEeScYo8tuJyy0A"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_8iwBYP_4EeScYo8tuJyy0A" client="_5w1QMP_0EeScYo8tuJyy0A" supplier="_NlpXIP_4EeScYo8tuJyy0A"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_-hv6IP_3EeScYo8tuJyy0A" client="__JdhwP_0EeScYo8tuJyy0A" supplier="_lWa_UP_lEeScYo8tuJyy0A"/>
+ <packagedElement xmi:type="uml:Actor" xmi:id="_UobeUACxEeWnE_cMzyyIKA" name="Editor"/>
+ <packagedElement xmi:type="uml:Association" xmi:id="_mQ37sACxEeWnE_cMzyyIKA" memberEnd="_mQ4iwACxEeWnE_cMzyyIKA _mQ4iwQCxEeWnE_cMzyyIKA">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_mQ37sQCxEeWnE_cMzyyIKA" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_mQ37sgCxEeWnE_cMzyyIKA" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_mQ4iwACxEeWnE_cMzyyIKA" name="initialize synchronization" type="_J0AScACxEeWnE_cMzyyIKA" association="_mQ37sACxEeWnE_cMzyyIKA"/>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_mQ4iwQCxEeWnE_cMzyyIKA" name="editor" type="_UobeUACxEeWnE_cMzyyIKA" association="_mQ37sACxEeWnE_cMzyyIKA"/>
+ </packagedElement>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Model" xmi:id="_y3pENgCLEeWudc8agGQ04Q" name="Design">
+ <packagedElement xmi:type="uml:Realization" xmi:id="_OjDxoACoEeWnE_cMzyyIKA" client="_AtaF4ACnEeWnE_cMzyyIKA _DEZLYACnEeWnE_cMzyyIKA _Jxw48ADAEeWt3cohpcF8rA" supplier="_hTJT4AClEeWnE_cMzyyIKA"/>
+ <packagedElement xmi:type="uml:Realization" xmi:id="_ndmjoACoEeWnE_cMzyyIKA" client="_hKj4QACoEeWnE_cMzyyIKA" supplier="_i-pMYAClEeWnE_cMzyyIKA"/>
+ <packagedElement xmi:type="uml:Component" xmi:id="_hTJT4AClEeWnE_cMzyyIKA" name="org.eclipse.papyrus.infra.sync">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_6WKFYAClEeWnE_cMzyyIKA" annotatedElement="_hTJT4AClEeWnE_cMzyyIKA">
+ <body>The core generic synchronization framework. Provides the base abstractions and
+support for synchronization of EMF-based model elements.</body>
+ </ownedComment>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Component" xmi:id="_i-pMYAClEeWnE_cMzyyIKA" name="org.eclipse.papyrus.infra.gmfdiag.common">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_M5nZgACmEeWnE_cMzyyIKA" annotatedElement="_i-pMYAClEeWnE_cMzyyIKA">
+ <body>An extension of the synchronization framework that provides support for
+synchronization of GMF-based diagrams as implemented by EditParts.
+Provides specific synchronization features for:
+&lt;ul>
+&lt;li>nested node edit-parts&lt;/li>
+&lt;li>incoming and outgoing connection edit-parts on nodes&lt;/li>
+&lt;li>position of node edit-parts&lt;/li>
+&lt;li>size of node edit-parts&lt;/li>
+&lt;/ul></body>
+ </ownedComment>
+ <packagedElement xmi:type="uml:Usage" xmi:id="_q-QHQAClEeWnE_cMzyyIKA" client="_i-pMYAClEeWnE_cMzyyIKA" supplier="_hTJT4AClEeWnE_cMzyyIKA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Component" xmi:id="_murvgAClEeWnE_cMzyyIKA" name="org.eclipse.papyrus.umlrt.ui">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_Xd0YEACmEeWnE_cMzyyIKA" annotatedElement="_murvgAClEeWnE_cMzyyIKA">
+ <body>Specific implementations of synchronization triggers, registries, buckets, and features for
+semantics of redefining Capsule state machines and visualization of redefining capsule
+state machines in state machine diagrams.</body>
+ </ownedComment>
+ <packagedElement xmi:type="uml:Usage" xmi:id="_ppcQcAClEeWnE_cMzyyIKA" client="_murvgAClEeWnE_cMzyyIKA" supplier="_hTJT4AClEeWnE_cMzyyIKA"/>
+ <packagedElement xmi:type="uml:Usage" xmi:id="_qOZ-sAClEeWnE_cMzyyIKA" client="_murvgAClEeWnE_cMzyyIKA" supplier="_i-pMYAClEeWnE_cMzyyIKA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Package" xmi:id="_AtaF4ACnEeWnE_cMzyyIKA" name="org.eclipse.papyrus.infra.sync">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_uUrhcACuEeWnE_cMzyyIKA" annotatedElement="_AtaF4ACnEeWnE_cMzyyIKA">
+ <body>Core abstractions of the synchronization framework, including integration with
+EMF Transactions for synchronization of EMF model elements using trigger
+commands to implement follow-up changes to synchronized objects in reaction
+to changes observed (as Notifications) in source objects.</body>
+ </ownedComment>
+ <packagedElement xmi:type="uml:Class" xmi:id="_sVtGwADDEeWt3cohpcF8rA" name="SyncFeature">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_CkBmQADIEeWt3cohpcF8rA" annotatedElement="_sVtGwADDEeWt3cohpcF8rA">
+ <body>A synchronization primitive representing a feature, possibly something
+complex or derived, comprising any number of actual features in EMF
+or Java terms, of the &quot;back-end&quot; object type T that is to be synchronized
+from one or more other objects of the same kind matching the same
+(or equivalent) &quot;front-end&quot; model M, on receipt from the source object
+of some message of type X.</body>
+ </ownedComment>
+ <ownedTemplateSignature xmi:type="uml:RedefinableTemplateSignature" xmi:id="_tv7CAADDEeWt3cohpcF8rA" name="RedefinableTemplateSignature1" parameter="_uT-xUADDEeWt3cohpcF8rA _ztOt8ADDEeWt3cohpcF8rA _43dXIADDEeWt3cohpcF8rA">
+ <ownedParameter xmi:type="uml:ClassifierTemplateParameter" xmi:id="_uT-xUADDEeWt3cohpcF8rA" parameteredElement="_yu2aIADDEeWt3cohpcF8rA">
+ <ownedParameteredElement xmi:type="uml:Class" xmi:id="_yu2aIADDEeWt3cohpcF8rA" name="M" templateParameter="_uT-xUADDEeWt3cohpcF8rA"/>
+ </ownedParameter>
+ <ownedParameter xmi:type="uml:ClassifierTemplateParameter" xmi:id="_ztOt8ADDEeWt3cohpcF8rA" parameteredElement="_3vj68ADDEeWt3cohpcF8rA">
+ <ownedParameteredElement xmi:type="uml:Class" xmi:id="_3vj68ADDEeWt3cohpcF8rA" name="T" templateParameter="_ztOt8ADDEeWt3cohpcF8rA"/>
+ </ownedParameter>
+ <ownedParameter xmi:type="uml:ClassifierTemplateParameter" xmi:id="_43dXIADDEeWt3cohpcF8rA" parameteredElement="_6qn94ADDEeWt3cohpcF8rA">
+ <ownedParameteredElement xmi:type="uml:Class" xmi:id="_6qn94ADDEeWt3cohpcF8rA" name="X" templateParameter="_43dXIADDEeWt3cohpcF8rA"/>
+ </ownedParameter>
+ </ownedTemplateSignature>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_jJG-4ADEEeWt3cohpcF8rA" name="SyncBucket">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_XKJyMADHEeWt3cohpcF8rA" annotatedElement="_jJG-4ADEEeWt3cohpcF8rA">
+ <body>A group of synchronization items that all match different &quot;back-end&quot; objects
+of type T with the same (or logically equivalent; the matching is flexible)
+&quot;front-end&quot; model element of type M. A bucket coordinates synchronization
+of any number of featuers from the back-end of a source item that has
+changed to the back-ends of the other items in the bucket.</body>
+ </ownedComment>
+ <ownedTemplateSignature xmi:type="uml:RedefinableTemplateSignature" xmi:id="_jJG-4QDEEeWt3cohpcF8rA" name="RedefinableTemplateSignature1" parameter="_jJG-4gDEEeWt3cohpcF8rA _jJG-5ADEEeWt3cohpcF8rA _jJG-5gDEEeWt3cohpcF8rA">
+ <ownedParameter xmi:type="uml:ClassifierTemplateParameter" xmi:id="_jJG-4gDEEeWt3cohpcF8rA" parameteredElement="_jJG-4wDEEeWt3cohpcF8rA">
+ <ownedParameteredElement xmi:type="uml:Class" xmi:id="_jJG-4wDEEeWt3cohpcF8rA" name="M" templateParameter="_jJG-4gDEEeWt3cohpcF8rA"/>
+ </ownedParameter>
+ <ownedParameter xmi:type="uml:ClassifierTemplateParameter" xmi:id="_jJG-5ADEEeWt3cohpcF8rA" parameteredElement="_jJG-5QDEEeWt3cohpcF8rA">
+ <ownedParameteredElement xmi:type="uml:Class" xmi:id="_jJG-5QDEEeWt3cohpcF8rA" name="T" templateParameter="_jJG-5ADEEeWt3cohpcF8rA"/>
+ </ownedParameter>
+ <ownedParameter xmi:type="uml:ClassifierTemplateParameter" xmi:id="_jJG-5gDEEeWt3cohpcF8rA" parameteredElement="_jJG-5wDEEeWt3cohpcF8rA">
+ <ownedParameteredElement xmi:type="uml:Class" xmi:id="_jJG-5wDEEeWt3cohpcF8rA" name="X" templateParameter="_jJG-5gDEEeWt3cohpcF8rA"/>
+ </ownedParameter>
+ </ownedTemplateSignature>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_D8fVYgDFEeWt3cohpcF8rA" name="item" type="_jW6KUADEEeWt3cohpcF8rA" aggregation="composite" association="_D8euUADFEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_L8obwADFEeWt3cohpcF8rA"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_L8pp4ADFEeWt3cohpcF8rA" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_jFmQggDHEeWt3cohpcF8rA" name="feature" type="_sVtGwADDEeWt3cohpcF8rA" aggregation="composite" association="_jFlpcADHEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_m6YJsADHEeWt3cohpcF8rA"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_m6ZX0ADHEeWt3cohpcF8rA" value="*"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_jW6KUADEEeWt3cohpcF8rA" name="SyncItem">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_7gzQkADGEeWt3cohpcF8rA" annotatedElement="_jW6KUADEEeWt3cohpcF8rA">
+ <body>A pairing of a &quot;front-end&quot; model element (of type M) with a &quot;back-end&quot;
+object (of type T) that is synchronized from some other back-end paired
+with the same front-end.</body>
+ </ownedComment>
+ <ownedTemplateSignature xmi:type="uml:RedefinableTemplateSignature" xmi:id="_jW6KUQDEEeWt3cohpcF8rA" name="RedefinableTemplateSignature1" parameter="_jW6KUgDEEeWt3cohpcF8rA _jW6KVADEEeWt3cohpcF8rA">
+ <ownedParameter xmi:type="uml:ClassifierTemplateParameter" xmi:id="_jW6KUgDEEeWt3cohpcF8rA" parameteredElement="_jW6KUwDEEeWt3cohpcF8rA">
+ <ownedParameteredElement xmi:type="uml:Class" xmi:id="_jW6KUwDEEeWt3cohpcF8rA" name="M" templateParameter="_jW6KUgDEEeWt3cohpcF8rA"/>
+ </ownedParameter>
+ <ownedParameter xmi:type="uml:ClassifierTemplateParameter" xmi:id="_jW6KVADEEeWt3cohpcF8rA" parameteredElement="_jW6KVQDEEeWt3cohpcF8rA">
+ <ownedParameteredElement xmi:type="uml:Class" xmi:id="_jW6KVQDEEeWt3cohpcF8rA" name="T" templateParameter="_jW6KVADEEeWt3cohpcF8rA"/>
+ </ownedParameter>
+ </ownedTemplateSignature>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_kHf5wADEEeWt3cohpcF8rA" name="SyncRegistry">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_cUf6sADIEeWt3cohpcF8rA" annotatedElement="_kHf5wADEEeWt3cohpcF8rA">
+ <body>A registry of synchronization buckets of the same type. All of the buckets in
+a registry synchronize the same features of the back-ends of type T matching
+front-ends of type M, on receipt of messages of type X. An instance of the
+synchronization service (which is unique in a Papyrus editor) has an unique
+SyncRegistry for every combination of actual front-end, back-end, and message
+types.</body>
+ </ownedComment>
+ <ownedTemplateSignature xmi:type="uml:RedefinableTemplateSignature" xmi:id="_kHf5wQDEEeWt3cohpcF8rA" name="RedefinableTemplateSignature1" parameter="_kHf5wgDEEeWt3cohpcF8rA _kHf5xADEEeWt3cohpcF8rA _kHf5xgDEEeWt3cohpcF8rA">
+ <ownedParameter xmi:type="uml:ClassifierTemplateParameter" xmi:id="_kHf5wgDEEeWt3cohpcF8rA" parameteredElement="_kHf5wwDEEeWt3cohpcF8rA">
+ <ownedParameteredElement xmi:type="uml:Class" xmi:id="_kHf5wwDEEeWt3cohpcF8rA" name="M" templateParameter="_kHf5wgDEEeWt3cohpcF8rA"/>
+ </ownedParameter>
+ <ownedParameter xmi:type="uml:ClassifierTemplateParameter" xmi:id="_kHf5xADEEeWt3cohpcF8rA" parameteredElement="_kHf5xQDEEeWt3cohpcF8rA">
+ <ownedParameteredElement xmi:type="uml:Class" xmi:id="_kHf5xQDEEeWt3cohpcF8rA" name="T" templateParameter="_kHf5xADEEeWt3cohpcF8rA"/>
+ </ownedParameter>
+ <ownedParameter xmi:type="uml:ClassifierTemplateParameter" xmi:id="_kHf5xgDEEeWt3cohpcF8rA" parameteredElement="_kHf5xwDEEeWt3cohpcF8rA">
+ <ownedParameteredElement xmi:type="uml:Class" xmi:id="_kHf5xwDEEeWt3cohpcF8rA" name="X" templateParameter="_kHf5xgDEEeWt3cohpcF8rA"/>
+ </ownedParameter>
+ </ownedTemplateSignature>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_u6uy0QDEEeWt3cohpcF8rA" name="bucket" type="_jJG-4ADEEeWt3cohpcF8rA" aggregation="composite" association="_u6uLwADEEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_2nUEAADEEeWt3cohpcF8rA"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_2nVSIADEEeWt3cohpcF8rA" value="*"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_u6uLwADEEeWt3cohpcF8rA" memberEnd="_u6uy0QDEEeWt3cohpcF8rA _u6vZ4ADEEeWt3cohpcF8rA">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_u6uLwQDEEeWt3cohpcF8rA" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_u6uy0ADEEeWt3cohpcF8rA" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_u6vZ4ADEEeWt3cohpcF8rA" name="syncregistry" type="_kHf5wADEEeWt3cohpcF8rA" association="_u6uLwADEEeWt3cohpcF8rA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_D8euUADFEeWt3cohpcF8rA" memberEnd="_D8fVYgDFEeWt3cohpcF8rA _D8f8cADFEeWt3cohpcF8rA">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_D8fVYADFEeWt3cohpcF8rA" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_D8fVYQDFEeWt3cohpcF8rA" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_D8f8cADFEeWt3cohpcF8rA" name="syncbucket" type="_jJG-4ADEEeWt3cohpcF8rA" association="_D8euUADFEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_ck51kADFEeWt3cohpcF8rA"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_ck7DsADFEeWt3cohpcF8rA" value="1"/>
+ </ownedEnd>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_O9-F0ADFEeWt3cohpcF8rA" name="MasterSlaveSyncBucket">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_prMPAADIEeWt3cohpcF8rA" annotatedElement="_O9-F0ADFEeWt3cohpcF8rA">
+ <body>A specialized synchronization bucket that implements a master-slave
+synchronization pattern. A single SyncItem is identified as the master
+and its back-end is observed for changes, which are pushed to the
+back-ends of all other SyncItems in the bucket (the slaves).</body>
+ </ownedComment>
+ <ownedTemplateSignature xmi:type="uml:RedefinableTemplateSignature" xmi:id="_O9-F0QDFEeWt3cohpcF8rA" name="RedefinableTemplateSignature1" parameter="_O9-F0gDFEeWt3cohpcF8rA _O9-F1ADFEeWt3cohpcF8rA _O9-F1gDFEeWt3cohpcF8rA">
+ <ownedParameter xmi:type="uml:ClassifierTemplateParameter" xmi:id="_O9-F0gDFEeWt3cohpcF8rA" parameteredElement="_O9-F0wDFEeWt3cohpcF8rA">
+ <ownedParameteredElement xmi:type="uml:Class" xmi:id="_O9-F0wDFEeWt3cohpcF8rA" name="M" templateParameter="_O9-F0gDFEeWt3cohpcF8rA"/>
+ </ownedParameter>
+ <ownedParameter xmi:type="uml:ClassifierTemplateParameter" xmi:id="_O9-F1ADFEeWt3cohpcF8rA" parameteredElement="_O9-F1QDFEeWt3cohpcF8rA">
+ <ownedParameteredElement xmi:type="uml:Class" xmi:id="_O9-F1QDFEeWt3cohpcF8rA" name="T" templateParameter="_O9-F1ADFEeWt3cohpcF8rA"/>
+ </ownedParameter>
+ <ownedParameter xmi:type="uml:ClassifierTemplateParameter" xmi:id="_O9-F1gDFEeWt3cohpcF8rA" parameteredElement="_O9-F1wDFEeWt3cohpcF8rA">
+ <ownedParameteredElement xmi:type="uml:Class" xmi:id="_O9-F1wDFEeWt3cohpcF8rA" name="X" templateParameter="_O9-F1gDFEeWt3cohpcF8rA"/>
+ </ownedParameter>
+ </ownedTemplateSignature>
+ <generalization xmi:type="uml:Generalization" xmi:id="_jIihsADFEeWt3cohpcF8rA" general="_jJG-4ADEEeWt3cohpcF8rA"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_O9-F2ADFEeWt3cohpcF8rA" name="item" type="_jW6KUADEEeWt3cohpcF8rA" aggregation="composite">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_O9-F2QDFEeWt3cohpcF8rA"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_O9-F2gDFEeWt3cohpcF8rA" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_WWRJEQDFEeWt3cohpcF8rA" name="master" type="_jW6KUADEEeWt3cohpcF8rA" aggregation="composite" association="_WWQiAADFEeWt3cohpcF8rA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_WWQiAADFEeWt3cohpcF8rA" memberEnd="_WWRJEQDFEeWt3cohpcF8rA _WWSXMADFEeWt3cohpcF8rA">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_WWQiAQDFEeWt3cohpcF8rA" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_WWRJEADFEeWt3cohpcF8rA" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_WWSXMADFEeWt3cohpcF8rA" name="masterslavesyncbucket" type="_O9-F0ADFEeWt3cohpcF8rA" association="_WWQiAADFEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_Z1isUADFEeWt3cohpcF8rA"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_Z1j6cADFEeWt3cohpcF8rA" value="1"/>
+ </ownedEnd>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_HH6TEADGEeWt3cohpcF8rA" name="EMFListener">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_A9NkAADJEeWt3cohpcF8rA" annotatedElement="_HH6TEADGEeWt3cohpcF8rA">
+ <body>A ResourceSetLIstener on the Papyrus editor's TransactionalEditingDomain
+that observes, via EMFDispatch objects, changes in the &quot;back-end&quot; objects
+of SyncItems in a bucket. When changes are observed, they are dispatched
+to the appropriate SyncFeatures to propagate them (as appropriate) to the
+back-ends of other items in the bucket.</body>
+ </ownedComment>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_NnDgwgDGEeWt3cohpcF8rA" name="dispatch" type="_IShFAADGEeWt3cohpcF8rA" aggregation="composite" association="_NnC5sADGEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_b777oADGEeWt3cohpcF8rA"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_b79JwADGEeWt3cohpcF8rA" value="*"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_IShFAADGEeWt3cohpcF8rA" name="EMFDispatch">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_KZB-MADJEeWt3cohpcF8rA" annotatedElement="_IShFAADGEeWt3cohpcF8rA">
+ <body>A mediator of the propagation of synchronizable feature changes
+from sources to targets when messages are received from the sources
+that trigger synchronization. In the EMF context, these messages are
+Notifications.</body>
+ </ownedComment>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_NnC5sADGEeWt3cohpcF8rA" memberEnd="_NnDgwgDGEeWt3cohpcF8rA _NnEH0ADGEeWt3cohpcF8rA">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_NnDgwADGEeWt3cohpcF8rA" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_NnDgwQDGEeWt3cohpcF8rA" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_NnEH0ADGEeWt3cohpcF8rA" name="emflistener" type="_HH6TEADGEeWt3cohpcF8rA" association="_NnC5sADGEeWt3cohpcF8rA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Usage" xmi:id="_Vq2_IADGEeWt3cohpcF8rA" name="propagates" client="_sVtGwADDEeWt3cohpcF8rA" supplier="_IShFAADGEeWt3cohpcF8rA"/>
+ <packagedElement xmi:type="uml:Association" xmi:id="_jFlpcADHEeWt3cohpcF8rA" memberEnd="_jFmQggDHEeWt3cohpcF8rA _jFm3kADHEeWt3cohpcF8rA">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_jFmQgADHEeWt3cohpcF8rA" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_jFmQgQDHEeWt3cohpcF8rA" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_jFm3kADHEeWt3cohpcF8rA" name="syncbucket" type="_jJG-4ADEEeWt3cohpcF8rA" association="_jFlpcADHEeWt3cohpcF8rA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Collaboration" xmi:id="_FNBpcALkEeWy2L7kEYTJVw" name="Synchronization">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_SmVz8ALkEeWy2L7kEYTJVw" name="emfListener" type="_HH6TEADGEeWt3cohpcF8rA"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_U96IQALkEeWy2L7kEYTJVw" name="emfDispatch" type="_IShFAADGEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_f3uKcALkEeWy2L7kEYTJVw" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_f3uxgALkEeWy2L7kEYTJVw" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_XQkHYALkEeWy2L7kEYTJVw" name="syncItem" type="_jW6KUADEEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_dcpPIALkEeWy2L7kEYTJVw" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_dcp2MALkEeWy2L7kEYTJVw" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_X-insALkEeWy2L7kEYTJVw" name="syncRegistry" type="_kHf5wADEEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_fLevgALkEeWy2L7kEYTJVw" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_fLfWkALkEeWy2L7kEYTJVw" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_Ye1RUALkEeWy2L7kEYTJVw" name="syncBucket" type="_jJG-4ADEEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_eIOiwALkEeWy2L7kEYTJVw" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_eIPJ0ALkEeWy2L7kEYTJVw" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_Y53ngALkEeWy2L7kEYTJVw" name="syncFeature" type="_sVtGwADDEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_cpTGoALkEeWy2L7kEYTJVw" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_cpUUwALkEeWy2L7kEYTJVw" value="*"/>
+ </ownedAttribute>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_gtxBoALkEeWy2L7kEYTJVw">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_gt0sAALkEeWy2L7kEYTJVw" role="_SmVz8ALkEeWy2L7kEYTJVw"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_gt1TEALkEeWy2L7kEYTJVw" role="_U96IQALkEeWy2L7kEYTJVw"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_ifsSQALkEeWy2L7kEYTJVw">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_ifs5UALkEeWy2L7kEYTJVw" role="_X-insALkEeWy2L7kEYTJVw"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_ifs5UQLkEeWy2L7kEYTJVw" role="_Ye1RUALkEeWy2L7kEYTJVw"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_jKlpYALkEeWy2L7kEYTJVw">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_jKmQcALkEeWy2L7kEYTJVw" role="_Ye1RUALkEeWy2L7kEYTJVw"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_jKmQcQLkEeWy2L7kEYTJVw" role="_Y53ngALkEeWy2L7kEYTJVw"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_jzDXkALkEeWy2L7kEYTJVw">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_jzD-oALkEeWy2L7kEYTJVw" role="_Ye1RUALkEeWy2L7kEYTJVw"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_jzD-oQLkEeWy2L7kEYTJVw" role="_XQkHYALkEeWy2L7kEYTJVw"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_gH8wcAM0EeWWbMjTqzYc1A">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_gH9XgAM0EeWWbMjTqzYc1A" role="_U96IQALkEeWy2L7kEYTJVw"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_gH9XgQM0EeWWbMjTqzYc1A" role="_Y53ngALkEeWy2L7kEYTJVw"/>
+ </ownedConnector>
+ <ownedBehavior xmi:type="uml:Interaction" xmi:id="_mC8rsALmEeWy2L7kEYTJVw" name="Synchronize Model Elements">
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_A4nbsALpEeW1-e4oerqxMg" name="emfListener" represents="_SmVz8ALkEeWy2L7kEYTJVw" coveredBy="_ZVJNQALvEeW1-e4oerqxMg _3RVUMALvEeW1-e4oerqxMg"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_xO2UsALsEeW1-e4oerqxMg" name="emfDispatch" represents="_U96IQALkEeWy2L7kEYTJVw" coveredBy="_ZVJ0UALvEeW1-e4oerqxMg _3RUtIALvEeW1-e4oerqxMg _pA_bEALvEeW1-e4oerqxMg _dt_c0ALvEeW1-e4oerqxMg"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_QU94IALtEeW1-e4oerqxMg" name="syncRegistry" represents="_X-insALkEeWy2L7kEYTJVw" coveredBy="_vtl18ALvEeW1-e4oerqxMg"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_J_Cl8ALvEeW1-e4oerqxMg" name="syncBucket" represents="_Ye1RUALkEeWy2L7kEYTJVw" coveredBy="_pA_bEQLvEeW1-e4oerqxMg _vtlO4ALvEeW1-e4oerqxMg _fp-3gAMzEeWWbMjTqzYc1A _vgs4kAMzEeWWbMjTqzYc1A"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_P5ytIALvEeW1-e4oerqxMg" name="syncFeature" represents="_Y53ngALkEeWy2L7kEYTJVw" coveredBy="_fp_ekAMzEeWWbMjTqzYc1A _dt-1wALvEeW1-e4oerqxMg _vgtfoAMzEeWWbMjTqzYc1A _rrkK8ALvEeW1-e4oerqxMg"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_Rhhf8ALvEeW1-e4oerqxMg" name="syncItem" represents="_XQkHYALkEeWy2L7kEYTJVw" coveredBy="_rrkyAALvEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_ZVJNQALvEeW1-e4oerqxMg" name="Message0Send0" covered="_A4nbsALpEeW1-e4oerqxMg" message="_ZUlMkALvEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_ZVJ0UALvEeW1-e4oerqxMg" name="Message0Recv0" covered="_xO2UsALsEeW1-e4oerqxMg" message="_ZUlMkALvEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_dt-1wALvEeW1-e4oerqxMg" name="Message0Send1" covered="_P5ytIALvEeW1-e4oerqxMg" message="_dttI8ALvEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_dt_c0ALvEeW1-e4oerqxMg" name="Message0Recv1" covered="_xO2UsALsEeW1-e4oerqxMg" message="_dttI8ALvEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_pA_bEALvEeW1-e4oerqxMg" name="Message0Send2" covered="_xO2UsALsEeW1-e4oerqxMg" message="_pAz04ALvEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_pA_bEQLvEeW1-e4oerqxMg" name="Message0Recv2" covered="_J_Cl8ALvEeW1-e4oerqxMg" message="_pAz04ALvEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_rrkK8ALvEeW1-e4oerqxMg" name="Message0Send3" covered="_P5ytIALvEeW1-e4oerqxMg" message="_rrYkwALvEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_rrkyAALvEeW1-e4oerqxMg" name="Message0Recv3" covered="_Rhhf8ALvEeW1-e4oerqxMg" message="_rrYkwALvEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_vtlO4ALvEeW1-e4oerqxMg" name="Message0Send4" covered="_J_Cl8ALvEeW1-e4oerqxMg" message="_vta20ALvEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_vtl18ALvEeW1-e4oerqxMg" name="Message0Recv4" covered="_QU94IALtEeW1-e4oerqxMg" message="_vta20ALvEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_3RUtIALvEeW1-e4oerqxMg" name="Message0Send5" covered="_xO2UsALsEeW1-e4oerqxMg" message="_3RFckALvEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_3RVUMALvEeW1-e4oerqxMg" name="Message0Recv5" covered="_A4nbsALpEeW1-e4oerqxMg" message="_3RFckALvEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_fp-3gAMzEeWWbMjTqzYc1A" name="Message0Send6" covered="_J_Cl8ALvEeW1-e4oerqxMg" message="_fp27sAMzEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_fp_ekAMzEeWWbMjTqzYc1A" name="Message0Recv6" covered="_P5ytIALvEeW1-e4oerqxMg" message="_fp27sAMzEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_vgs4kAMzEeWWbMjTqzYc1A" name="Message0Send7" covered="_J_Cl8ALvEeW1-e4oerqxMg" message="_vgkVsAMzEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_vgtfoAMzEeWWbMjTqzYc1A" name="Message0Recv7" covered="_P5ytIALvEeW1-e4oerqxMg" message="_vgkVsAMzEeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_ZUlMkALvEeW1-e4oerqxMg" name="5:notifications" receiveEvent="_ZVJ0UALvEeW1-e4oerqxMg" sendEvent="_ZVJNQALvEeW1-e4oerqxMg"/>
+ <message xmi:type="uml:Message" xmi:id="_dttI8ALvEeW1-e4oerqxMg" name="3:create" receiveEvent="_dt_c0ALvEeW1-e4oerqxMg" sendEvent="_dt-1wALvEeW1-e4oerqxMg"/>
+ <message xmi:type="uml:Message" xmi:id="_pAz04ALvEeW1-e4oerqxMg" name="6:propagate" receiveEvent="_pA_bEQLvEeW1-e4oerqxMg" sendEvent="_pA_bEALvEeW1-e4oerqxMg"/>
+ <message xmi:type="uml:Message" xmi:id="_rrYkwALvEeW1-e4oerqxMg" name="8:synchronize" receiveEvent="_rrkyAALvEeW1-e4oerqxMg" sendEvent="_rrkK8ALvEeW1-e4oerqxMg"/>
+ <message xmi:type="uml:Message" xmi:id="_vta20ALvEeW1-e4oerqxMg" name="1:register" receiveEvent="_vtl18ALvEeW1-e4oerqxMg" sendEvent="_vtlO4ALvEeW1-e4oerqxMg"/>
+ <message xmi:type="uml:Message" xmi:id="_3RFckALvEeW1-e4oerqxMg" name="4:add" receiveEvent="_3RVUMALvEeW1-e4oerqxMg" sendEvent="_3RUtIALvEeW1-e4oerqxMg"/>
+ <message xmi:type="uml:Message" xmi:id="_fp27sAMzEeWWbMjTqzYc1A" name="2:add" receiveEvent="_fp_ekAMzEeWWbMjTqzYc1A" sendEvent="_fp-3gAMzEeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_vgkVsAMzEeWWbMjTqzYc1A" name="7:synchronize" receiveEvent="_vgtfoAMzEeWWbMjTqzYc1A" sendEvent="_vgs4kAMzEeWWbMjTqzYc1A"/>
+ </ownedBehavior>
+ </packagedElement>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Package" xmi:id="_DEZLYACnEeWnE_cMzyyIKA" name="org.eclipse.papyrus.infra.sync.service">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_5c2IsACuEeWnE_cMzyyIKA" annotatedElement="_DEZLYACnEeWnE_cMzyyIKA">
+ <body>A Papyrus registered Service that manages the lifecycle of synchronization,
+including the EMF transaction listener that reacts to changes and the
+application's synchronization triggers and registries.</body>
+ </ownedComment>
+ <packagedElement xmi:type="uml:Interface" xmi:id="_BDQZEACyEeWnE_cMzyyIKA" name="ISyncService">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_js_F0AC1EeWnE_cMzyyIKA" annotatedElement="_BDQZEACyEeWnE_cMzyyIKA">
+ <body>The synchronization service is a registered Papyrus Service that
+manages model-to-model and diagram-to-diagram synchronization
+within the context of an editor. It manages the EMF transaction
+listener that triggers synchronization operations and it provides the
+API for triggering the configuration of synchronization on objects
+according to registered ISyncTriggers.</body>
+ </ownedComment>
+ <ownedOperation xmi:type="uml:Operation" xmi:id="_2Gde4ACyEeWnE_cMzyyIKA" name="run" raisedException="_5aY4UACzEeWnE_cMzyyIKA">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_zyyrwAC1EeWnE_cMzyyIKA" annotatedElement="_2Gde4ACyEeWnE_cMzyyIKA">
+ <body>Runs a SyncServiceRunnable operation in the context of the service. This context
+is required for all manipulations of the synchronization framework, including
+creation and association of SyncRegistry instances, SyncBuckets, and SyncItems.</body>
+ </ownedComment>
+ <ownedParameter xmi:type="uml:Parameter" xmi:id="_7AcsoACyEeWnE_cMzyyIKA" name="operation" type="_KiQqIACyEeWnE_cMzyyIKA" effect="read"/>
+ <ownedParameter xmi:type="uml:Parameter" xmi:id="_BXSdcAC0EeWnE_cMzyyIKA" type="_0Nk1MACzEeWnE_cMzyyIKA" direction="return"/>
+ <ownedTemplateSignature xmi:type="uml:TemplateSignature" xmi:id="_wvSwcACzEeWnE_cMzyyIKA" parameter="_x-Fe0ACzEeWnE_cMzyyIKA _4YTwQACzEeWnE_cMzyyIKA">
+ <ownedParameter xmi:type="uml:ClassifierTemplateParameter" xmi:id="_x-Fe0ACzEeWnE_cMzyyIKA" parameteredElement="_0Nk1MACzEeWnE_cMzyyIKA">
+ <ownedParameteredElement xmi:type="uml:Class" xmi:id="_0Nk1MACzEeWnE_cMzyyIKA" name="V" templateParameter="_x-Fe0ACzEeWnE_cMzyyIKA"/>
+ </ownedParameter>
+ <ownedParameter xmi:type="uml:ClassifierTemplateParameter" xmi:id="_4YTwQACzEeWnE_cMzyyIKA" parameteredElement="_5aY4UACzEeWnE_cMzyyIKA">
+ <ownedParameteredElement xmi:type="uml:Class" xmi:id="_5aY4UACzEeWnE_cMzyyIKA" name="X" templateParameter="_4YTwQACzEeWnE_cMzyyIKA"/>
+ </ownedParameter>
+ </ownedTemplateSignature>
+ </ownedOperation>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Interface" xmi:id="_CbCEUACyEeWnE_cMzyyIKA" name="ISyncTrigger">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_52WmIAC0EeWnE_cMzyyIKA" annotatedElement="_CbCEUACyEeWnE_cMzyyIKA">
+ <body>Synchronization triggers are registered on an the org.eclipse.papyrus.infra.sync.triggers
+extension point with enablement conditions that match objects on which they should fire.
+When a trigger fires, it provides a sync action that the synchronization runs. This sync
+action is expected to configure synchronization of the triggering object and/or &lt;em>cascade&lt;/em>
+the trigger to related objects.</body>
+ </ownedComment>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Interface" xmi:id="_E9y8AACyEeWnE_cMzyyIKA" name="ISyncAction">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_T887kAC1EeWnE_cMzyyIKA" annotatedElement="_E9y8AACyEeWnE_cMzyyIKA">
+ <body>An action provided by a synchronization trigger that usually either
+configures synchronization of the triggering object and/or cascade
+the trigger to related objects.</body>
+ </ownedComment>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_KiQqIACyEeWnE_cMzyyIKA" name="SyncServiceRunnable" isAbstract="true">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_cERccAC_EeWnc73YHF_Igw" annotatedElement="_KiQqIACyEeWnE_cMzyyIKA">
+ <body>An executable operation that is run in the context of an ISyncService.</body>
+ </ownedComment>
+ <ownedTemplateSignature xmi:type="uml:RedefinableTemplateSignature" xmi:id="_L09oIACyEeWnE_cMzyyIKA" name="RedefinableTemplateSignature1" parameter="_OKGTgACyEeWnE_cMzyyIKA _SuCYwACyEeWnE_cMzyyIKA">
+ <ownedParameter xmi:type="uml:ClassifierTemplateParameter" xmi:id="_OKGTgACyEeWnE_cMzyyIKA" parameteredElement="_RVX8sACyEeWnE_cMzyyIKA">
+ <ownedParameteredElement xmi:type="uml:Class" xmi:id="_RVX8sACyEeWnE_cMzyyIKA" name="V" templateParameter="_OKGTgACyEeWnE_cMzyyIKA"/>
+ </ownedParameter>
+ <ownedParameter xmi:type="uml:ClassifierTemplateParameter" xmi:id="_SuCYwACyEeWnE_cMzyyIKA" parameteredElement="_UEgccACyEeWnE_cMzyyIKA">
+ <ownedParameteredElement xmi:type="uml:Class" xmi:id="_UEgccACyEeWnE_cMzyyIKA" name="X" templateParameter="_SuCYwACyEeWnE_cMzyyIKA"/>
+ </ownedParameter>
+ </ownedTemplateSignature>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_obm4cgCyEeWnE_cMzyyIKA" name="context" type="_BDQZEACyEeWnE_cMzyyIKA" association="_obmRYACyEeWnE_cMzyyIKA"/>
+ <ownedOperation xmi:type="uml:Operation" xmi:id="_da-wsAC_EeWnc73YHF_Igw" name="run">
+ <ownedParameter xmi:type="uml:Parameter" xmi:id="_icIWYAC_EeWnc73YHF_Igw" name="syncService" type="_BDQZEACyEeWnE_cMzyyIKA" effect="read"/>
+ </ownedOperation>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_obmRYACyEeWnE_cMzyyIKA" memberEnd="_obm4cgCyEeWnE_cMzyyIKA _obotoACyEeWnE_cMzyyIKA">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_obm4cACyEeWnE_cMzyyIKA" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_obm4cQCyEeWnE_cMzyyIKA" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_obotoACyEeWnE_cMzyyIKA" name="syncservicerunnable" type="_KiQqIACyEeWnE_cMzyyIKA" association="_obmRYACyEeWnE_cMzyyIKA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_zNLkoACyEeWnE_cMzyyIKA"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_zNOA4ACyEeWnE_cMzyyIKA" value="*"/>
+ </ownedEnd>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Usage" xmi:id="_WbM8IAC0EeWnE_cMzyyIKA" name="invoke" client="_BDQZEACyEeWnE_cMzyyIKA" supplier="_CbCEUACyEeWnE_cMzyyIKA"/>
+ <packagedElement xmi:type="uml:Usage" xmi:id="_eacDkAC0EeWnE_cMzyyIKA" name="provide" client="_CbCEUACyEeWnE_cMzyyIKA" supplier="_E9y8AACyEeWnE_cMzyyIKA"/>
+ <packagedElement xmi:type="uml:Usage" xmi:id="_go6tUAC0EeWnE_cMzyyIKA" name="run" client="_BDQZEACyEeWnE_cMzyyIKA" supplier="_E9y8AACyEeWnE_cMzyyIKA"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_8aHjYAC0EeWnE_cMzyyIKA" name="CascadeTriggers">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_KHxmMAC1EeWnE_cMzyyIKA" annotatedElement="_8aHjYAC0EeWnE_cMzyyIKA">
+ <body>A synchronization action that cascades the trigger to related objects.
+This causes triggers to be matched on those objects, and any triggers
+that do fire produce further actions that are evaluated to initialize
+synchronization (or induce more triggers).</body>
+ </ownedComment>
+ <interfaceRealization xmi:type="uml:InterfaceRealization" xmi:id="_IXISgAC2EeWnE_cMzyyIKA" client="_8aHjYAC0EeWnE_cMzyyIKA" supplier="_E9y8AACyEeWnE_cMzyyIKA" contract="_E9y8AACyEeWnE_cMzyyIKA"/>
+ </packagedElement>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Package" xmi:id="_Jxw48ADAEeWt3cohpcF8rA" name="org.eclipse.papyrus.infra.sync.policy">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_UW5EkADAEeWt3cohpcF8rA" annotatedElement="_Jxw48ADAEeWt3cohpcF8rA">
+ <body>API for definition of sync policies providing for synchronization override.</body>
+ </ownedComment>
+ <packagedElement xmi:type="uml:Interface" xmi:id="_rrfMcADAEeWt3cohpcF8rA" name="ISyncPolicy">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_q1cDUADCEeWt3cohpcF8rA" annotatedElement="_rrfMcADAEeWt3cohpcF8rA">
+ <body>A policy determining whether objects are excluded from synchronization of
+certain features that otherwise would be propagated to them from source objects.</body>
+ </ownedComment>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Interface" xmi:id="_tC0LwADAEeWt3cohpcF8rA" name="ISyncPolicyDelegate">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_NmV2cADDEeWt3cohpcF8rA" annotatedElement="_tC0LwADAEeWt3cohpcF8rA">
+ <body>A synchronization policy delegate for a specific synchronization feature.</body>
+ </ownedComment>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_v56UsADAEeWt3cohpcF8rA" name="SyncPolicyDelegate" isAbstract="true">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_d6VCUADDEeWt3cohpcF8rA" annotatedElement="_v56UsADAEeWt3cohpcF8rA">
+ <body>Abstract implementation of a sync policy delegate for some feature.
+Subclasses are required to determine whether the feature is
+synchronized for some given target object and also to react to
+changes introduced by the user in a target object to disable
+synchronization of the feature (if appropriate).</body>
+ </ownedComment>
+ <interfaceRealization xmi:type="uml:InterfaceRealization" xmi:id="_yffP0ADAEeWt3cohpcF8rA" client="_v56UsADAEeWt3cohpcF8rA" supplier="_tC0LwADAEeWt3cohpcF8rA" contract="_tC0LwADAEeWt3cohpcF8rA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Usage" xmi:id="_0G55kADAEeWt3cohpcF8rA" name="delegates" client="_3hd78ADAEeWt3cohpcF8rA" supplier="_tC0LwADAEeWt3cohpcF8rA"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_3hd78ADAEeWt3cohpcF8rA" name="DefaultSyncPolicy">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_I380sADDEeWt3cohpcF8rA" annotatedElement="_3hd78ADAEeWt3cohpcF8rA">
+ <body>Default realization of the ISyncPolicy interface. Clients of the synchronization
+service may install a policy of their own to replace it.
+
+This default sync policy delegates policy queries to registered policy delegates.</body>
+ </ownedComment>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_zt4gIgDBEeWt3cohpcF8rA" name="registry" type="_603mYADAEeWt3cohpcF8rA" association="_zt35EADBEeWt3cohpcF8rA"/>
+ <interfaceRealization xmi:type="uml:InterfaceRealization" xmi:id="_5P9eEADAEeWt3cohpcF8rA" client="_3hd78ADAEeWt3cohpcF8rA" supplier="_rrfMcADAEeWt3cohpcF8rA" contract="_rrfMcADAEeWt3cohpcF8rA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Interface" xmi:id="_603mYADAEeWt3cohpcF8rA" name="ISyncPolicyDelegate.Registry">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_QcyfIADDEeWt3cohpcF8rA" annotatedElement="_603mYADAEeWt3cohpcF8rA">
+ <body>A registry of policy delegates by synchronization feature.</body>
+ </ownedComment>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_e30QMADBEeWt3cohpcF8rA" name="delegate" type="_tC0LwADAEeWt3cohpcF8rA" association="_e3wl0ADBEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_pnv9oADBEeWt3cohpcF8rA"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_pnzoAADBEeWt3cohpcF8rA" value="*"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_e3wl0ADBEeWt3cohpcF8rA" memberEnd="_e30QMADBEeWt3cohpcF8rA _e32scADBEeWt3cohpcF8rA">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_e3ybAADBEeWt3cohpcF8rA" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_e3ybAQDBEeWt3cohpcF8rA" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_e32scADBEeWt3cohpcF8rA" type="_603mYADAEeWt3cohpcF8rA" association="_e3wl0ADBEeWt3cohpcF8rA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_zt35EADBEeWt3cohpcF8rA" memberEnd="_zt4gIgDBEeWt3cohpcF8rA _zt5HMADBEeWt3cohpcF8rA">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_zt4gIADBEeWt3cohpcF8rA" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_zt4gIQDBEeWt3cohpcF8rA" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_zt5HMADBEeWt3cohpcF8rA" type="_3hd78ADAEeWt3cohpcF8rA" association="_zt35EADBEeWt3cohpcF8rA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_FqOw8ADCEeWt3cohpcF8rA" name="registers" client="_v56UsADAEeWt3cohpcF8rA" supplier="_603mYADAEeWt3cohpcF8rA"/>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_I0sP4ADEEeWt3cohpcF8rA" name="governs" client="_tC0LwADAEeWt3cohpcF8rA" supplier="_sVtGwADDEeWt3cohpcF8rA"/>
+ <packagedElement xmi:type="uml:Collaboration" xmi:id="_3_HiEAMBEeW1-e4oerqxMg" name="Synchronization Overrides">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_3_HiEQMBEeW1-e4oerqxMg" name="emfListener" type="_HH6TEADGEeWt3cohpcF8rA"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_3_HiEgMBEeW1-e4oerqxMg" name="emfDispatch" type="_IShFAADGEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_3_HiEwMBEeW1-e4oerqxMg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_3_HiFAMBEeW1-e4oerqxMg" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_3_HiFQMBEeW1-e4oerqxMg" name="syncItem" type="_jW6KUADEEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_3_HiFgMBEeW1-e4oerqxMg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_3_HiFwMBEeW1-e4oerqxMg" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_3_HiGAMBEeW1-e4oerqxMg" name="syncRegistry" type="_kHf5wADEEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_3_HiGQMBEeW1-e4oerqxMg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_3_HiGgMBEeW1-e4oerqxMg" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_3_HiGwMBEeW1-e4oerqxMg" name="syncBucket" type="_jJG-4ADEEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_3_HiHAMBEeW1-e4oerqxMg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_3_HiHQMBEeW1-e4oerqxMg" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_3_HiHgMBEeW1-e4oerqxMg" name="syncFeature" type="_sVtGwADDEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_3_HiHwMBEeW1-e4oerqxMg" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_3_HiIAMBEeW1-e4oerqxMg" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_tGurIAMgEeWWbMjTqzYc1A" name="syncPolicy" type="_3hd78ADAEeWt3cohpcF8rA"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_xDKrgAMgEeWWbMjTqzYc1A" name="syncPolicyDelegate" type="_v56UsADAEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_ElL5oAMhEeWWbMjTqzYc1A"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_ElMgsAMhEeWWbMjTqzYc1A" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_z2B0sAMgEeWWbMjTqzYc1A" name="delegateRegistry" type="_603mYADAEeWt3cohpcF8rA"/>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_3_HiIQMBEeW1-e4oerqxMg">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_3_HiIgMBEeW1-e4oerqxMg" role="_3_HiEQMBEeW1-e4oerqxMg"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_3_HiIwMBEeW1-e4oerqxMg" role="_3_HiEgMBEeW1-e4oerqxMg"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_3_HiJAMBEeW1-e4oerqxMg">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_3_HiJQMBEeW1-e4oerqxMg" role="_3_HiGAMBEeW1-e4oerqxMg"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_3_HiJgMBEeW1-e4oerqxMg" role="_3_HiGwMBEeW1-e4oerqxMg"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_3_HiJwMBEeW1-e4oerqxMg">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_3_HiKAMBEeW1-e4oerqxMg" role="_3_HiGwMBEeW1-e4oerqxMg"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_3_HiKQMBEeW1-e4oerqxMg" role="_3_HiHgMBEeW1-e4oerqxMg"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_3_HiKgMBEeW1-e4oerqxMg">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_3_HiKwMBEeW1-e4oerqxMg" role="_3_HiGwMBEeW1-e4oerqxMg"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_3_HiLAMBEeW1-e4oerqxMg" role="_3_HiFQMBEeW1-e4oerqxMg"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_F0uO4AMhEeWWbMjTqzYc1A">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_F0wEEAMhEeWWbMjTqzYc1A" role="_tGurIAMgEeWWbMjTqzYc1A"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_F0wEEQMhEeWWbMjTqzYc1A" role="_z2B0sAMgEeWWbMjTqzYc1A"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_Ga2awAMhEeWWbMjTqzYc1A">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_Ga3B0AMhEeWWbMjTqzYc1A" role="_z2B0sAMgEeWWbMjTqzYc1A"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_Ga3o4AMhEeWWbMjTqzYc1A" role="_xDKrgAMgEeWWbMjTqzYc1A"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_gSgf0AMiEeWWbMjTqzYc1A">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_gShG4AMiEeWWbMjTqzYc1A" role="_3_HiEgMBEeW1-e4oerqxMg"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_gShG4QMiEeWWbMjTqzYc1A" role="_tGurIAMgEeWWbMjTqzYc1A"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_KpMI0AM0EeWWbMjTqzYc1A">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_KpMv4AM0EeWWbMjTqzYc1A" role="_3_HiEgMBEeW1-e4oerqxMg"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_KpMv4QM0EeWWbMjTqzYc1A" role="_3_HiHgMBEeW1-e4oerqxMg"/>
+ </ownedConnector>
+ <ownedBehavior xmi:type="uml:Interaction" xmi:id="_3_HiLQMBEeW1-e4oerqxMg" name="Override Diagram Synchronization">
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_3_HiLgMBEeW1-e4oerqxMg" name="emfListener" represents="_3_HiEQMBEeW1-e4oerqxMg" coveredBy="_3_HiNAMBEeW1-e4oerqxMg _3_HiPwMBEeW1-e4oerqxMg"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_3_HiLwMBEeW1-e4oerqxMg" name="emfDispatch" represents="_3_HiEgMBEeW1-e4oerqxMg" coveredBy="_3_HiNQMBEeW1-e4oerqxMg _3_HiNgMBEeW1-e4oerqxMg _3_HiPgMBEeW1-e4oerqxMg _-QdHAQMyEeWWbMjTqzYc1A"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_3_HiMAMBEeW1-e4oerqxMg" name="syncRegistry" represents="_3_HiGAMBEeW1-e4oerqxMg" coveredBy="_3_HiPQMBEeW1-e4oerqxMg _0mPEcAMyEeWWbMjTqzYc1A"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_3_HiMQMBEeW1-e4oerqxMg" name="syncBucket" represents="_3_HiGwMBEeW1-e4oerqxMg" coveredBy="_3_HiOQMBEeW1-e4oerqxMg _3_HiOgMBEeW1-e4oerqxMg _3_HiPAMBEeW1-e4oerqxMg _2FzXkAMjEeWWbMjTqzYc1A _OcNZYQMyEeWWbMjTqzYc1A _nRZvIAMjEeWWbMjTqzYc1A _dk520AMyEeWWbMjTqzYc1A"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_3_HiMgMBEeW1-e4oerqxMg" name="syncFeature" represents="_3_HiHgMBEeW1-e4oerqxMg" coveredBy="_3_HiNwMBEeW1-e4oerqxMg _3_HiOAMBEeW1-e4oerqxMg _2FzXkQMjEeWWbMjTqzYc1A _OcNZYAMyEeWWbMjTqzYc1A _-QdHAAMyEeWWbMjTqzYc1A"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_3_HiMwMBEeW1-e4oerqxMg" name="syncItem" represents="_3_HiFQMBEeW1-e4oerqxMg" coveredBy="_3_HiOwMBEeW1-e4oerqxMg _dk6d4AMyEeWWbMjTqzYc1A"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_xgDJ4AMiEeWWbMjTqzYc1A" name="syncPolicy" represents="_tGurIAMgEeWWbMjTqzYc1A" coveredBy="_O3wqwAMjEeWWbMjTqzYc1A _V1bAcAMjEeWWbMjTqzYc1A _lCoxgAMjEeWWbMjTqzYc1A _nRZvIQMjEeWWbMjTqzYc1A _0mPrgAMyEeWWbMjTqzYc1A"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_1F52QAMiEeWWbMjTqzYc1A" name="delegateRegistry" represents="_z2B0sAMgEeWWbMjTqzYc1A" coveredBy="_O3x44AMjEeWWbMjTqzYc1A"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_6TzegAMiEeWWbMjTqzYc1A" name="policyDelegate" represents="_xDKrgAMgEeWWbMjTqzYc1A" coveredBy="_V1bAcQMjEeWWbMjTqzYc1A _lCpYkAMjEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_3_HiNAMBEeW1-e4oerqxMg" name="Message0Send0" covered="_3_HiLgMBEeW1-e4oerqxMg" message="_3_HiQAMBEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_3_HiNQMBEeW1-e4oerqxMg" name="Message0Recv0" covered="_3_HiLwMBEeW1-e4oerqxMg" message="_3_HiQAMBEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_3_HiNgMBEeW1-e4oerqxMg" name="Message0Send1" covered="_3_HiLwMBEeW1-e4oerqxMg" message="_3_HiQQMBEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_3_HiNwMBEeW1-e4oerqxMg" name="Message0Recv1" covered="_3_HiMgMBEeW1-e4oerqxMg" message="_3_HiQQMBEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_3_HiOAMBEeW1-e4oerqxMg" name="Message0Send2" covered="_3_HiMgMBEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_3_HiOQMBEeW1-e4oerqxMg" name="Message0Recv2" covered="_3_HiMQMBEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_3_HiOgMBEeW1-e4oerqxMg" name="Message0Send3" covered="_3_HiMQMBEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_3_HiOwMBEeW1-e4oerqxMg" name="Message0Recv3" covered="_3_HiMwMBEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_3_HiPAMBEeW1-e4oerqxMg" name="Message0Send4" covered="_3_HiMQMBEeW1-e4oerqxMg" message="_3_HiRAMBEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_3_HiPQMBEeW1-e4oerqxMg" name="Message0Recv4" covered="_3_HiMAMBEeW1-e4oerqxMg" message="_3_HiRAMBEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_3_HiPgMBEeW1-e4oerqxMg" name="Message0Send5" covered="_3_HiLwMBEeW1-e4oerqxMg" message="_3_HiRQMBEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_3_HiPwMBEeW1-e4oerqxMg" name="Message0Recv5" covered="_3_HiLgMBEeW1-e4oerqxMg" message="_3_HiRQMBEeW1-e4oerqxMg"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_O3wqwAMjEeWWbMjTqzYc1A" name="Message0Send6" covered="_xgDJ4AMiEeWWbMjTqzYc1A" message="_O3dIwAMjEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_O3x44AMjEeWWbMjTqzYc1A" name="Message0Recv6" covered="_1F52QAMiEeWWbMjTqzYc1A" message="_O3dIwAMjEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_V1bAcAMjEeWWbMjTqzYc1A" name="Message0Send7" covered="_xgDJ4AMiEeWWbMjTqzYc1A" message="_V1OMIAMjEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_V1bAcQMjEeWWbMjTqzYc1A" name="Message0Recv7" covered="_6TzegAMiEeWWbMjTqzYc1A" message="_V1OMIAMjEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_lCoxgAMjEeWWbMjTqzYc1A" name="Message0Send8" covered="_xgDJ4AMiEeWWbMjTqzYc1A" message="_lCUBYAMjEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_lCpYkAMjEeWWbMjTqzYc1A" name="Message0Recv8" covered="_6TzegAMiEeWWbMjTqzYc1A" message="_lCUBYAMjEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_nRZvIAMjEeWWbMjTqzYc1A" name="Message0Send9" covered="_3_HiMQMBEeW1-e4oerqxMg" message="_nROI8AMjEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_nRZvIQMjEeWWbMjTqzYc1A" name="Message0Recv9" covered="_xgDJ4AMiEeWWbMjTqzYc1A" message="_nROI8AMjEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_2FzXkAMjEeWWbMjTqzYc1A" name="Message0Send10" covered="_3_HiMQMBEeW1-e4oerqxMg" message="_2FoYcAMjEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_2FzXkQMjEeWWbMjTqzYc1A" name="Message0Recv10" covered="_3_HiMgMBEeW1-e4oerqxMg" message="_2FoYcAMjEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_OcNZYAMyEeWWbMjTqzYc1A" name="Message0Send101" covered="_3_HiMgMBEeW1-e4oerqxMg" message="_OcDBUAMyEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_OcNZYQMyEeWWbMjTqzYc1A" name="Message0Recv101" covered="_3_HiMQMBEeW1-e4oerqxMg" message="_OcDBUAMyEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_dk520AMyEeWWbMjTqzYc1A" name="Message0Send1011" covered="_3_HiMQMBEeW1-e4oerqxMg" message="_dkuQoAMyEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_dk6d4AMyEeWWbMjTqzYc1A" name="Message0Recv1011" covered="_3_HiMwMBEeW1-e4oerqxMg" message="_dkuQoAMyEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_0mPEcAMyEeWWbMjTqzYc1A" name="Message0Send10111" covered="_3_HiMAMBEeW1-e4oerqxMg" message="_0mEsYAMyEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_0mPrgAMyEeWWbMjTqzYc1A" name="Message0Recv10111" covered="_xgDJ4AMiEeWWbMjTqzYc1A" message="_0mEsYAMyEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_-QdHAAMyEeWWbMjTqzYc1A" name="Message0Send101111" covered="_3_HiMgMBEeW1-e4oerqxMg" message="_-QSH4AMyEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_-QdHAQMyEeWWbMjTqzYc1A" name="Message0Recv101111" covered="_3_HiLwMBEeW1-e4oerqxMg" message="_-QSH4AMyEeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_3_HiQAMBEeW1-e4oerqxMg" name="7:notifications" receiveEvent="_3_HiNQMBEeW1-e4oerqxMg" sendEvent="_3_HiNAMBEeW1-e4oerqxMg"/>
+ <message xmi:type="uml:Message" xmi:id="_3_HiQQMBEeW1-e4oerqxMg" name="8:synchronize" receiveEvent="_3_HiNwMBEeW1-e4oerqxMg" sendEvent="_3_HiNgMBEeW1-e4oerqxMg"/>
+ <message xmi:type="uml:Message" xmi:id="_3_HiRAMBEeW1-e4oerqxMg" name="4:register" receiveEvent="_3_HiPQMBEeW1-e4oerqxMg" sendEvent="_3_HiPAMBEeW1-e4oerqxMg"/>
+ <message xmi:type="uml:Message" xmi:id="_3_HiRQMBEeW1-e4oerqxMg" name="3:add" receiveEvent="_3_HiPwMBEeW1-e4oerqxMg" sendEvent="_3_HiPgMBEeW1-e4oerqxMg"/>
+ <message xmi:type="uml:Message" xmi:id="_O3dIwAMjEeWWbMjTqzYc1A" name="11:getDelegate" receiveEvent="_O3x44AMjEeWWbMjTqzYc1A" sendEvent="_O3wqwAMjEeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_V1OMIAMjEeWWbMjTqzYc1A" name="6:observe" receiveEvent="_V1bAcQMjEeWWbMjTqzYc1A" sendEvent="_V1bAcAMjEeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_lCUBYAMjEeWWbMjTqzYc1A" name="12:shouldSynchronize" receiveEvent="_lCpYkAMjEeWWbMjTqzYc1A" sendEvent="_lCoxgAMjEeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_nROI8AMjEeWWbMjTqzYc1A" name="10:shouldSynchronize" receiveEvent="_nRZvIQMjEeWWbMjTqzYc1A" sendEvent="_nRZvIAMjEeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_2FoYcAMjEeWWbMjTqzYc1A" name="1:add" receiveEvent="_2FzXkQMjEeWWbMjTqzYc1A" sendEvent="_2FzXkAMjEeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_OcDBUAMyEeWWbMjTqzYc1A" name="9:propagate" receiveEvent="_OcNZYQMyEeWWbMjTqzYc1A" sendEvent="_OcNZYAMyEeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_dkuQoAMyEeWWbMjTqzYc1A" name="13:synchronize" receiveEvent="_dk6d4AMyEeWWbMjTqzYc1A" sendEvent="_dk520AMyEeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_0mEsYAMyEeWWbMjTqzYc1A" name="5:register" receiveEvent="_0mPrgAMyEeWWbMjTqzYc1A" sendEvent="_0mPEcAMyEeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_-QSH4AMyEeWWbMjTqzYc1A" name="2:create" receiveEvent="_-QdHAQMyEeWWbMjTqzYc1A" sendEvent="_-QdHAAMyEeWWbMjTqzYc1A"/>
+ </ownedBehavior>
+ </packagedElement>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Package" xmi:id="_hKj4QACoEeWnE_cMzyyIKA" name="org.eclipse.papyrus.infra.gmfdiag.common.sync">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_BVQPYACvEeWnE_cMzyyIKA" annotatedElement="_hKj4QACoEeWnE_cMzyyIKA">
+ <body>Implementation of reusable synchronization primitives for GMF-based diagrams.</body>
+ </ownedComment>
+ <packagedElement xmi:type="uml:Class" xmi:id="_rud44ADJEeWt3cohpcF8rA" name="ContainerChildrenSyncFeature">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_iLc_oADLEeWt3cohpcF8rA" annotatedElement="_rud44ADJEeWt3cohpcF8rA">
+ <body>A specialized SyncFeature that manages synchronization of child
+node EditParts for children of the front-end model element.</body>
+ </ownedComment>
+ <generalization xmi:type="uml:Generalization" xmi:id="_K2ZaMADKEeWt3cohpcF8rA" general="_sVtGwADDEeWt3cohpcF8rA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_2t6pAADJEeWt3cohpcF8rA" name="DiagramEdgesSyncFeature">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_oP8RoADLEeWt3cohpcF8rA" annotatedElement="_2t6pAADJEeWt3cohpcF8rA">
+ <body>A specialized SyncFeature that manages synchronization of source
+and target connection EditParts for relationships of the front-end
+model element.</body>
+ </ownedComment>
+ <generalization xmi:type="uml:Generalization" xmi:id="_LROVAADKEeWt3cohpcF8rA" general="_sVtGwADDEeWt3cohpcF8rA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_7_dbIADJEeWt3cohpcF8rA" name="NodePositionSyncFeature">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_sCf9QADLEeWt3cohpcF8rA" annotatedElement="_7_dbIADJEeWt3cohpcF8rA">
+ <body>A specialized SyncFeature that manages synchronization of the location
+in the diagram of a node EditPart.</body>
+ </ownedComment>
+ <generalization xmi:type="uml:Generalization" xmi:id="_LrTB4ADKEeWt3cohpcF8rA" general="_sVtGwADDEeWt3cohpcF8rA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_9S6nEADJEeWt3cohpcF8rA" name="NodeSizeSyncFeature">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_uMuZIADLEeWt3cohpcF8rA" annotatedElement="_9S6nEADJEeWt3cohpcF8rA">
+ <body>A specialized SyncFeature that manages synchronization of the size
+of a node EditPart.</body>
+ </ownedComment>
+ <generalization xmi:type="uml:Generalization" xmi:id="_MEdIwADKEeWt3cohpcF8rA" general="_sVtGwADDEeWt3cohpcF8rA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_aB0bgADKEeWt3cohpcF8rA" name="EditPartSyncRegistry">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_v5cPEADKEeWt3cohpcF8rA" annotatedElement="_aB0bgADKEeWt3cohpcF8rA">
+ <body>A SyncRegistry that manages SyncBuckets for synchronization of diagram
+EditParts that visualize EObjects in GMF-based diagrams.</body>
+ </ownedComment>
+ <generalization xmi:type="uml:Generalization" xmi:id="_h0K9gADKEeWt3cohpcF8rA" general="_kHf5wADEEeWt3cohpcF8rA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_bPHVEADKEeWt3cohpcF8rA" name="EditPartSyncBucket">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_DbvKAADLEeWt3cohpcF8rA" annotatedElement="_bPHVEADKEeWt3cohpcF8rA">
+ <body>A SyncBucket that manages the synchronization of diagram
+EditParts that visualize EObjects in GMF-based diagrams.
+By default, these buckets match edit-parts that all visualize
+the same model element in different diagrams, but this is
+customizable. For example, in the UML-RT case edit-parts
+are matched not with edit-parts visualizing the same model
+element but with edit-parts visualizing the redefined model
+element.</body>
+ </ownedComment>
+ <generalization xmi:type="uml:Generalization" xmi:id="_hYnp8ADKEeWt3cohpcF8rA" general="_jJG-4ADEEeWt3cohpcF8rA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_ccAmAADKEeWt3cohpcF8rA" name="EditPartSyncItem">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_JpGrMADLEeWt3cohpcF8rA" annotatedElement="_ccAmAADKEeWt3cohpcF8rA">
+ <body>A SyncItem that manages synchronization of an EditPart
+that visualizes an EObjects in a GMF-based diagram.</body>
+ </ownedComment>
+ <generalization xmi:type="uml:Generalization" xmi:id="_g5kWcADKEeWt3cohpcF8rA" general="_jW6KUADEEeWt3cohpcF8rA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Collaboration" xmi:id="_nvdy4AMdEeWWbMjTqzYc1A" name="Notation Synchronization">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_nvdy4QMdEeWWbMjTqzYc1A" name="emfListener" type="_HH6TEADGEeWt3cohpcF8rA"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_nvdy4gMdEeWWbMjTqzYc1A" name="positionDispatch" type="_omByAAMeEeWWbMjTqzYc1A">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_nvdy4wMdEeWWbMjTqzYc1A" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_nvdy5AMdEeWWbMjTqzYc1A" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_nvdy5QMdEeWWbMjTqzYc1A" name="syncItem" type="_ccAmAADKEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_nvdy5gMdEeWWbMjTqzYc1A" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_nvdy5wMdEeWWbMjTqzYc1A" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_nvdy6AMdEeWWbMjTqzYc1A" name="syncRegistry" type="_aB0bgADKEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_nvdy6QMdEeWWbMjTqzYc1A" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_nvdy6gMdEeWWbMjTqzYc1A" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_nvdy6wMdEeWWbMjTqzYc1A" name="syncBucket" type="_bPHVEADKEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_nvdy7AMdEeWWbMjTqzYc1A" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_nvdy7QMdEeWWbMjTqzYc1A" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_nvdy7gMdEeWWbMjTqzYc1A" name="positionFeature" type="_7_dbIADJEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_nvdy7wMdEeWWbMjTqzYc1A" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_nvdy8AMdEeWWbMjTqzYc1A" value="1"/>
+ </ownedAttribute>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_nvdy8QMdEeWWbMjTqzYc1A">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_nvdy8gMdEeWWbMjTqzYc1A" role="_nvdy4QMdEeWWbMjTqzYc1A"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_nvdy8wMdEeWWbMjTqzYc1A" role="_nvdy4gMdEeWWbMjTqzYc1A"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_nvdy9AMdEeWWbMjTqzYc1A">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_nvdy9QMdEeWWbMjTqzYc1A" role="_nvdy6AMdEeWWbMjTqzYc1A"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_nvdy9gMdEeWWbMjTqzYc1A" role="_nvdy6wMdEeWWbMjTqzYc1A"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_nvdy9wMdEeWWbMjTqzYc1A">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_nvdy-AMdEeWWbMjTqzYc1A" role="_nvdy6wMdEeWWbMjTqzYc1A"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_nvdy-QMdEeWWbMjTqzYc1A" role="_nvdy7gMdEeWWbMjTqzYc1A"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_nvdy-gMdEeWWbMjTqzYc1A">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_nvdy-wMdEeWWbMjTqzYc1A" role="_nvdy6wMdEeWWbMjTqzYc1A"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_nvdy_AMdEeWWbMjTqzYc1A" role="_nvdy5QMdEeWWbMjTqzYc1A"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_Qlw08AM0EeWWbMjTqzYc1A">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_QlxcAAM0EeWWbMjTqzYc1A" role="_nvdy4gMdEeWWbMjTqzYc1A"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_QlxcAQM0EeWWbMjTqzYc1A" role="_nvdy7gMdEeWWbMjTqzYc1A"/>
+ </ownedConnector>
+ <ownedBehavior xmi:type="uml:Interaction" xmi:id="_nvdy_QMdEeWWbMjTqzYc1A" name="Synchronize Notation Views">
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_nvdy_gMdEeWWbMjTqzYc1A" name="emfListener" represents="_nvdy4QMdEeWWbMjTqzYc1A" coveredBy="_nvdzBAMdEeWWbMjTqzYc1A _nvdzDwMdEeWWbMjTqzYc1A"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_nvdy_wMdEeWWbMjTqzYc1A" name="emfDispatch" represents="_nvdy4gMdEeWWbMjTqzYc1A" coveredBy="_nvdzBQMdEeWWbMjTqzYc1A _nvdzBgMdEeWWbMjTqzYc1A _nvdzDgMdEeWWbMjTqzYc1A _VkMDUAMfEeWWbMjTqzYc1A"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_nvdzAAMdEeWWbMjTqzYc1A" name="syncRegistry" represents="_nvdy6AMdEeWWbMjTqzYc1A" coveredBy="_nvdzDQMdEeWWbMjTqzYc1A"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_nvdzAQMdEeWWbMjTqzYc1A" name="syncBucket" represents="_nvdy6wMdEeWWbMjTqzYc1A" coveredBy="_nvdzCQMdEeWWbMjTqzYc1A _nvdzCgMdEeWWbMjTqzYc1A _nvdzDAMdEeWWbMjTqzYc1A"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_nvdzAgMdEeWWbMjTqzYc1A" name="positionFeature" represents="_nvdy7gMdEeWWbMjTqzYc1A" coveredBy="_nvdzBwMdEeWWbMjTqzYc1A _nvdzCAMdEeWWbMjTqzYc1A _VkMDUQMfEeWWbMjTqzYc1A"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_nvdzAwMdEeWWbMjTqzYc1A" name="syncItem" represents="_nvdy5QMdEeWWbMjTqzYc1A" coveredBy="_nvdzCwMdEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_nvdzBAMdEeWWbMjTqzYc1A" name="Message0Send0" covered="_nvdy_gMdEeWWbMjTqzYc1A" message="_nvdzEAMdEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_nvdzBQMdEeWWbMjTqzYc1A" name="Message0Recv0" covered="_nvdy_wMdEeWWbMjTqzYc1A" message="_nvdzEAMdEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_nvdzBgMdEeWWbMjTqzYc1A" name="Message0Send1" covered="_nvdy_wMdEeWWbMjTqzYc1A" message="_nvdzEQMdEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_nvdzBwMdEeWWbMjTqzYc1A" name="Message0Recv1" covered="_nvdzAgMdEeWWbMjTqzYc1A" message="_nvdzEQMdEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_nvdzCAMdEeWWbMjTqzYc1A" name="Message0Send2" covered="_nvdzAgMdEeWWbMjTqzYc1A" message="_nvdzEgMdEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_nvdzCQMdEeWWbMjTqzYc1A" name="Message0Recv2" covered="_nvdzAQMdEeWWbMjTqzYc1A" message="_nvdzEgMdEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_nvdzCgMdEeWWbMjTqzYc1A" name="Message0Send3" covered="_nvdzAQMdEeWWbMjTqzYc1A" message="_nvdzEwMdEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_nvdzCwMdEeWWbMjTqzYc1A" name="Message0Recv3" covered="_nvdzAwMdEeWWbMjTqzYc1A" message="_nvdzEwMdEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_nvdzDAMdEeWWbMjTqzYc1A" name="Message0Send4" covered="_nvdzAQMdEeWWbMjTqzYc1A" message="_nvdzFAMdEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_nvdzDQMdEeWWbMjTqzYc1A" name="Message0Recv4" covered="_nvdzAAMdEeWWbMjTqzYc1A" message="_nvdzFAMdEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_nvdzDgMdEeWWbMjTqzYc1A" name="Message0Send5" covered="_nvdy_wMdEeWWbMjTqzYc1A" message="_nvdzFQMdEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_nvdzDwMdEeWWbMjTqzYc1A" name="Message0Recv5" covered="_nvdy_gMdEeWWbMjTqzYc1A" message="_nvdzFQMdEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_VkMDUAMfEeWWbMjTqzYc1A" name="Message0Send6" covered="_nvdy_wMdEeWWbMjTqzYc1A" message="_VjrF8AMfEeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_VkMDUQMfEeWWbMjTqzYc1A" name="Message0Recv6" covered="_nvdzAgMdEeWWbMjTqzYc1A" message="_VjrF8AMfEeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_nvdzEAMdEeWWbMjTqzYc1A" name="4:notifications" receiveEvent="_nvdzBQMdEeWWbMjTqzYc1A" sendEvent="_nvdzBAMdEeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_nvdzEQMdEeWWbMjTqzYc1A" name="5:synchronize" receiveEvent="_nvdzBwMdEeWWbMjTqzYc1A" sendEvent="_nvdzBgMdEeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_nvdzEgMdEeWWbMjTqzYc1A" name="6:propagate" receiveEvent="_nvdzCQMdEeWWbMjTqzYc1A" sendEvent="_nvdzCAMdEeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_nvdzEwMdEeWWbMjTqzYc1A" name="7:synchronize" receiveEvent="_nvdzCwMdEeWWbMjTqzYc1A" sendEvent="_nvdzCgMdEeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_nvdzFAMdEeWWbMjTqzYc1A" name="1:register" receiveEvent="_nvdzDQMdEeWWbMjTqzYc1A" sendEvent="_nvdzDAMdEeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_nvdzFQMdEeWWbMjTqzYc1A" name="3:add" receiveEvent="_nvdzDwMdEeWWbMjTqzYc1A" sendEvent="_nvdzDgMdEeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_VjrF8AMfEeWWbMjTqzYc1A" name="2:getNotifier" receiveEvent="_VkMDUQMfEeWWbMjTqzYc1A" sendEvent="_VkMDUAMfEeWWbMjTqzYc1A"/>
+ </ownedBehavior>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_omByAAMeEeWWbMjTqzYc1A" name="NodePositionSyncDispatcher">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_5AgAYAMeEeWWbMjTqzYc1A" annotatedElement="_omByAAMeEeWWbMjTqzYc1A">
+ <body>A specialized dispatcher that listens to changes in the bounds of the notation view (Node)
+managed by an EditPart. It tracks the bounds of the shape, firing synchronization only
+when node's position actually changes from the last known position.</body>
+ </ownedComment>
+ <generalization xmi:type="uml:Generalization" xmi:id="_JXKFwAMfEeWWbMjTqzYc1A" general="_IShFAADGEeWt3cohpcF8rA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="__ruiQAMeEeWWbMjTqzYc1A" name="NodeSizeSyncDispatcher">
+ <ownedComment xmi:type="uml:Comment" xmi:id="__ruiQQMeEeWWbMjTqzYc1A" annotatedElement="__ruiQAMeEeWWbMjTqzYc1A">
+ <body>A specialized dispatcher that listens to changes in the bounds of the notation view (Node)
+managed by an EditPart. It tracks the bounds of the shape, firing synchronization only
+when node's size actually changes from the last known position.</body>
+ </ownedComment>
+ <generalization xmi:type="uml:Generalization" xmi:id="_Jzjt4AMfEeWWbMjTqzYc1A" general="_IShFAADGEeWt3cohpcF8rA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Collaboration" xmi:id="_XpZaUAM1EeWWbMjTqzYc1A" name="Synchronization Exclusions">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_XpZaUQM1EeWWbMjTqzYc1A" name="emfListener" type="_HH6TEADGEeWt3cohpcF8rA"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_XpZaUgM1EeWWbMjTqzYc1A" name="emfDispatch" type="_omByAAMeEeWWbMjTqzYc1A">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_XpZaUwM1EeWWbMjTqzYc1A" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_XpZaVAM1EeWWbMjTqzYc1A" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_XpZaVQM1EeWWbMjTqzYc1A" name="syncItem" type="_ccAmAADKEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_XpZaVgM1EeWWbMjTqzYc1A" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_XpZaVwM1EeWWbMjTqzYc1A" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_XpZaWAM1EeWWbMjTqzYc1A" name="syncRegistry" type="_aB0bgADKEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_XpZaWQM1EeWWbMjTqzYc1A" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_XpZaWgM1EeWWbMjTqzYc1A" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_XpZaWwM1EeWWbMjTqzYc1A" name="syncBucket" type="_bPHVEADKEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_XpZaXAM1EeWWbMjTqzYc1A" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_XpZaXQM1EeWWbMjTqzYc1A" value="*"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_XpZaXgM1EeWWbMjTqzYc1A" name="syncFeature" type="_7_dbIADJEeWt3cohpcF8rA">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_XpZaXwM1EeWWbMjTqzYc1A" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_XpZaYAM1EeWWbMjTqzYc1A" value="1"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_XpZaYQM1EeWWbMjTqzYc1A" name="syncPolicy" type="_3hd78ADAEeWt3cohpcF8rA"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_XpZaYgM1EeWWbMjTqzYc1A" name="syncPolicyDelegate" type="_ANAy8AM2EeWWbMjTqzYc1A">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_XpZaYwM1EeWWbMjTqzYc1A" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_XpZaZAM1EeWWbMjTqzYc1A" value="1"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_XpZaZQM1EeWWbMjTqzYc1A" name="delegateRegistry" type="_603mYADAEeWt3cohpcF8rA"/>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_XpZaZgM1EeWWbMjTqzYc1A">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_XpZaZwM1EeWWbMjTqzYc1A" role="_XpZaUQM1EeWWbMjTqzYc1A"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_XpZaaAM1EeWWbMjTqzYc1A" role="_XpZaUgM1EeWWbMjTqzYc1A"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_XpZaaQM1EeWWbMjTqzYc1A">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_XpZaagM1EeWWbMjTqzYc1A" role="_XpZaWAM1EeWWbMjTqzYc1A"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_XpZaawM1EeWWbMjTqzYc1A" role="_XpZaWwM1EeWWbMjTqzYc1A"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_XpZabAM1EeWWbMjTqzYc1A">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_XpZabQM1EeWWbMjTqzYc1A" role="_XpZaWwM1EeWWbMjTqzYc1A"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_XpZabgM1EeWWbMjTqzYc1A" role="_XpZaXgM1EeWWbMjTqzYc1A"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_XpZabwM1EeWWbMjTqzYc1A">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_XpZacAM1EeWWbMjTqzYc1A" role="_XpZaWwM1EeWWbMjTqzYc1A"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_XpZacQM1EeWWbMjTqzYc1A" role="_XpZaVQM1EeWWbMjTqzYc1A"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_XpZacgM1EeWWbMjTqzYc1A">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_XpZacwM1EeWWbMjTqzYc1A" role="_XpZaYQM1EeWWbMjTqzYc1A"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_XpZadAM1EeWWbMjTqzYc1A" role="_XpZaZQM1EeWWbMjTqzYc1A"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_XpZadQM1EeWWbMjTqzYc1A">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_XpZadgM1EeWWbMjTqzYc1A" role="_XpZaZQM1EeWWbMjTqzYc1A"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_XpZadwM1EeWWbMjTqzYc1A" role="_XpZaYgM1EeWWbMjTqzYc1A"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_XpZaeAM1EeWWbMjTqzYc1A">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_XpZaeQM1EeWWbMjTqzYc1A" role="_XpZaUgM1EeWWbMjTqzYc1A"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_XpZaegM1EeWWbMjTqzYc1A" role="_XpZaYQM1EeWWbMjTqzYc1A"/>
+ </ownedConnector>
+ <ownedConnector xmi:type="uml:Connector" xmi:id="_XpZaewM1EeWWbMjTqzYc1A">
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_XpZafAM1EeWWbMjTqzYc1A" role="_XpZaUgM1EeWWbMjTqzYc1A"/>
+ <end xmi:type="uml:ConnectorEnd" xmi:id="_XpZafQM1EeWWbMjTqzYc1A" role="_XpZaYgM1EeWWbMjTqzYc1A"/>
+ </ownedConnector>
+ <ownedBehavior xmi:type="uml:Interaction" xmi:id="_XpZafgM1EeWWbMjTqzYc1A" name="Exclude Views from Synchronization">
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_XpZafwM1EeWWbMjTqzYc1A" name="emfListener" represents="_XpZaUQM1EeWWbMjTqzYc1A" coveredBy="_XpZaiAM1EeWWbMjTqzYc1A _XpZakwM1EeWWbMjTqzYc1A _BcRl8AM3EeWWbMjTqzYc1A _EG1HsAM3EeWWbMjTqzYc1A"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_XpZagAM1EeWWbMjTqzYc1A" name="emfDispatch" represents="_XpZaUgM1EeWWbMjTqzYc1A" coveredBy="_XpZaiQM1EeWWbMjTqzYc1A _XpZaigM1EeWWbMjTqzYc1A _XpZakgM1EeWWbMjTqzYc1A _XpZapQM1EeWWbMjTqzYc1A __dqkMQM2EeWWbMjTqzYc1A _BcQ-4AM3EeWWbMjTqzYc1A _EG1uwAM3EeWWbMjTqzYc1A _IH_3EAM3EeWWbMjTqzYc1A"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_XpZagQM1EeWWbMjTqzYc1A" name="syncRegistry" represents="_XpZaWAM1EeWWbMjTqzYc1A" coveredBy="_XpZakQM1EeWWbMjTqzYc1A _XpZaogM1EeWWbMjTqzYc1A"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_XpZahQM1EeWWbMjTqzYc1A" name="syncPolicy" represents="_XpZaYQM1EeWWbMjTqzYc1A" coveredBy="_XpZalAM1EeWWbMjTqzYc1A _XpZalgM1EeWWbMjTqzYc1A _XpZamAM1EeWWbMjTqzYc1A _XpZamwM1EeWWbMjTqzYc1A _XpZaowM1EeWWbMjTqzYc1A"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_XpZahgM1EeWWbMjTqzYc1A" name="delegateRegistry" represents="_XpZaZQM1EeWWbMjTqzYc1A" coveredBy="_XpZalQM1EeWWbMjTqzYc1A"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_XpZahwM1EeWWbMjTqzYc1A" name="policyDelegate" represents="_XpZaYgM1EeWWbMjTqzYc1A" coveredBy="_XpZalwM1EeWWbMjTqzYc1A _XpZamQM1EeWWbMjTqzYc1A __dqkMAM2EeWWbMjTqzYc1A _IIAeIAM3EeWWbMjTqzYc1A _Q77x4AM3EeWWbMjTqzYc1A"/>
+ <lifeline xmi:type="uml:Lifeline" xmi:id="_MHImIAM3EeWWbMjTqzYc1A" name="editPartSyncItem" represents="_XpZaVQM1EeWWbMjTqzYc1A" coveredBy="_Q78Y8AM3EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZaiAM1EeWWbMjTqzYc1A" name="Message0Send0" covered="_XpZafwM1EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZaiQM1EeWWbMjTqzYc1A" name="Message0Recv0" covered="_XpZagAM1EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZaigM1EeWWbMjTqzYc1A" name="Message0Send1" covered="_XpZagAM1EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZaiwM1EeWWbMjTqzYc1A" name="Message0Recv1"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZajAM1EeWWbMjTqzYc1A" name="Message0Send2"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZajQM1EeWWbMjTqzYc1A" name="Message0Recv2"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZajgM1EeWWbMjTqzYc1A" name="Message0Send3"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZajwM1EeWWbMjTqzYc1A" name="Message0Recv3"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZakAM1EeWWbMjTqzYc1A" name="Message0Send4" message="_XpZaqAM1EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZakQM1EeWWbMjTqzYc1A" name="Message0Recv4" covered="_XpZagQM1EeWWbMjTqzYc1A" message="_XpZaqAM1EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZakgM1EeWWbMjTqzYc1A" name="Message0Send5" covered="_XpZagAM1EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZakwM1EeWWbMjTqzYc1A" name="Message0Recv5" covered="_XpZafwM1EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZalAM1EeWWbMjTqzYc1A" name="Message0Send6" covered="_XpZahQM1EeWWbMjTqzYc1A" message="_XpZaqgM1EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZalQM1EeWWbMjTqzYc1A" name="Message0Recv6" covered="_XpZahgM1EeWWbMjTqzYc1A" message="_XpZaqgM1EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZalgM1EeWWbMjTqzYc1A" name="Message0Send7" covered="_XpZahQM1EeWWbMjTqzYc1A" message="_XpZaqwM1EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZalwM1EeWWbMjTqzYc1A" name="Message0Recv7" covered="_XpZahwM1EeWWbMjTqzYc1A" message="_XpZaqwM1EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZamAM1EeWWbMjTqzYc1A" name="Message0Send8" covered="_XpZahQM1EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZamQM1EeWWbMjTqzYc1A" name="Message0Recv8" covered="_XpZahwM1EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZamgM1EeWWbMjTqzYc1A" name="Message0Send9" message="_XpZarQM1EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZamwM1EeWWbMjTqzYc1A" name="Message0Recv9" covered="_XpZahQM1EeWWbMjTqzYc1A" message="_XpZarQM1EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZanAM1EeWWbMjTqzYc1A" name="Message0Send10"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZanQM1EeWWbMjTqzYc1A" name="Message0Recv10"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZangM1EeWWbMjTqzYc1A" name="Message0Send101"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZanwM1EeWWbMjTqzYc1A" name="Message0Recv101"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZaoAM1EeWWbMjTqzYc1A" name="Message0Send1011"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZaoQM1EeWWbMjTqzYc1A" name="Message0Recv1011"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZaogM1EeWWbMjTqzYc1A" name="Message0Send10111" covered="_XpZagQM1EeWWbMjTqzYc1A" message="_XpZasQM1EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZaowM1EeWWbMjTqzYc1A" name="Message0Recv10111" covered="_XpZahQM1EeWWbMjTqzYc1A" message="_XpZasQM1EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZapAM1EeWWbMjTqzYc1A" name="Message0Send101111"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_XpZapQM1EeWWbMjTqzYc1A" name="Message0Recv101111" covered="_XpZagAM1EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="__dqkMAM2EeWWbMjTqzYc1A" name="Message0Send1011111" covered="_XpZahwM1EeWWbMjTqzYc1A" message="__dgzMAM2EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="__dqkMQM2EeWWbMjTqzYc1A" name="Message0Recv1011111" covered="_XpZagAM1EeWWbMjTqzYc1A" message="__dgzMAM2EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_BcQ-4AM3EeWWbMjTqzYc1A" name="Message0Send10111111" covered="_XpZagAM1EeWWbMjTqzYc1A" message="_BcHN4AM3EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_BcRl8AM3EeWWbMjTqzYc1A" name="Message0Recv10111111" covered="_XpZafwM1EeWWbMjTqzYc1A" message="_BcHN4AM3EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_EG1HsAM3EeWWbMjTqzYc1A" name="Message0Send101111111" covered="_XpZafwM1EeWWbMjTqzYc1A" message="_EGr9wAM3EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_EG1uwAM3EeWWbMjTqzYc1A" name="Message0Recv101111111" covered="_XpZagAM1EeWWbMjTqzYc1A" message="_EGr9wAM3EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_IH_3EAM3EeWWbMjTqzYc1A" name="Message0Send1011111111" covered="_XpZagAM1EeWWbMjTqzYc1A" message="_IH2GEAM3EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_IIAeIAM3EeWWbMjTqzYc1A" name="Message0Recv1011111111" covered="_XpZahwM1EeWWbMjTqzYc1A" message="_IH2GEAM3EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_Q77x4AM3EeWWbMjTqzYc1A" name="Message0Send10111111111" covered="_XpZahwM1EeWWbMjTqzYc1A" message="_Q7yA4AM3EeWWbMjTqzYc1A"/>
+ <fragment xmi:type="uml:MessageOccurrenceSpecification" xmi:id="_Q78Y8AM3EeWWbMjTqzYc1A" name="Message0Recv10111111111" covered="_MHImIAM3EeWWbMjTqzYc1A" message="_Q7yA4AM3EeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_XpZaqAM1EeWWbMjTqzYc1A" name="1:register" receiveEvent="_XpZakQM1EeWWbMjTqzYc1A" sendEvent="_XpZakAM1EeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_XpZaqgM1EeWWbMjTqzYc1A" name="3:register" receiveEvent="_XpZalQM1EeWWbMjTqzYc1A" sendEvent="_XpZalAM1EeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_XpZaqwM1EeWWbMjTqzYc1A" name="4:observe" receiveEvent="_XpZalwM1EeWWbMjTqzYc1A" sendEvent="_XpZalgM1EeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_XpZarQM1EeWWbMjTqzYc1A" name="10:shouldSynchronize" receiveEvent="_XpZamwM1EeWWbMjTqzYc1A" sendEvent="_XpZamgM1EeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_XpZasQM1EeWWbMjTqzYc1A" name="2:register" receiveEvent="_XpZaowM1EeWWbMjTqzYc1A" sendEvent="_XpZaogM1EeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="__dgzMAM2EeWWbMjTqzYc1A" name="5:create" receiveEvent="__dqkMQM2EeWWbMjTqzYc1A" sendEvent="__dqkMAM2EeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_BcHN4AM3EeWWbMjTqzYc1A" name="6:add" receiveEvent="_BcRl8AM3EeWWbMjTqzYc1A" sendEvent="_BcQ-4AM3EeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_EGr9wAM3EeWWbMjTqzYc1A" name="7:notifications" receiveEvent="_EG1uwAM3EeWWbMjTqzYc1A" sendEvent="_EG1HsAM3EeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_IH2GEAM3EeWWbMjTqzYc1A" name="8:overrideOccurred" receiveEvent="_IIAeIAM3EeWWbMjTqzYc1A" sendEvent="_IH_3EAM3EeWWbMjTqzYc1A"/>
+ <message xmi:type="uml:Message" xmi:id="_Q7yA4AM3EeWWbMjTqzYc1A" name="9:stopSynchronizing" receiveEvent="_Q78Y8AM3EeWWbMjTqzYc1A" sendEvent="_Q77x4AM3EeWWbMjTqzYc1A"/>
+ </ownedBehavior>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_ANAy8AM2EeWWbMjTqzYc1A" name="NotationSyncPolicyDelegate">
+ <generalization xmi:type="uml:Generalization" xmi:id="_CS6vgAM2EeWWbMjTqzYc1A" general="_v56UsADAEeWt3cohpcF8rA"/>
+ </packagedElement>
+ </packagedElement>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Model" xmi:id="_y3pEOACLEeWudc8agGQ04Q" name="Tests">
+ <packagedElement xmi:type="uml:Component" xmi:id="_bQLMYAM4EeWWbMjTqzYc1A" name="org.eclipse.papyrus.infra.gmfdiag.common.tests">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_5LGnsAM7EeWWbMjTqzYc1A" annotatedElement="_bQLMYAM4EeWWbMjTqzYc1A">
+ <body>Test bundle for the Papyrus common diagram core plug-in.</body>
+ </ownedComment>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Package" xmi:id="_qA5OsAM4EeWWbMjTqzYc1A" name="org.eclipse.papyrus.infra.gmfdiag.common.sync.tests">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_AvGkoAM8EeWWbMjTqzYc1A" annotatedElement="_qA5OsAM4EeWWbMjTqzYc1A">
+ <body>Test suite for the synchronization framework, covering both model-to-model
+and diagram-to-diagram synchronization use cases.</body>
+ </ownedComment>
+ <packagedElement xmi:type="uml:Class" xmi:id="_jt_QwAM5EeWWbMjTqzYc1A" name="MasterSlaveNotationSyncTest">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_ORw4YAM8EeWWbMjTqzYc1A" annotatedElement="_jt_QwAM5EeWWbMjTqzYc1A">
+ <body>Tests the synchronization framework basic synchronization use cases by way
+of master/slave diagram-to-diagram synchronization.</body>
+ </ownedComment>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_spIm0gM5EeWWbMjTqzYc1A" name="fixture" type="_nytqcAM5EeWWbMjTqzYc1A" association="_spH_wAM5EeWWbMjTqzYc1A"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_lhLFoAM5EeWWbMjTqzYc1A" name="NotationSyncOverrideTest">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_R59HEAM8EeWWbMjTqzYc1A" annotatedElement="_lhLFoAM5EeWWbMjTqzYc1A">
+ <body>Tests the synchronization framework's support for synchronization overrides
+by way of master/slave diagram-to-diagram synchronization.</body>
+ </ownedComment>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_sIWN8AM5EeWWbMjTqzYc1A" name="fixture" type="_nytqcAM5EeWWbMjTqzYc1A" association="_sIEhIAM5EeWWbMjTqzYc1A"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_nytqcAM5EeWWbMjTqzYc1A" name="TestSyncFixture">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_ZYyQIAM8EeWWbMjTqzYc1A" annotatedElement="_nytqcAM5EeWWbMjTqzYc1A">
+ <body>A JUnit test-fixture rule that implements a synchronization registry for class
+diagrams in the context of the test execution.</body>
+ </ownedComment>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_sIEhIAM5EeWWbMjTqzYc1A" memberEnd="_sIWN8AM5EeWWbMjTqzYc1A _sIWN8QM5EeWWbMjTqzYc1A">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_sIMc8AM5EeWWbMjTqzYc1A" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_sIMc8QM5EeWWbMjTqzYc1A" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_sIWN8QM5EeWWbMjTqzYc1A" type="_lhLFoAM5EeWWbMjTqzYc1A" association="_sIEhIAM5EeWWbMjTqzYc1A"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Association" xmi:id="_spH_wAM5EeWWbMjTqzYc1A" memberEnd="_spIm0gM5EeWWbMjTqzYc1A _spIm0wM5EeWWbMjTqzYc1A">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_spIm0AM5EeWWbMjTqzYc1A" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_spIm0QM5EeWWbMjTqzYc1A" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_spIm0wM5EeWWbMjTqzYc1A" type="_jt_QwAM5EeWWbMjTqzYc1A" association="_spH_wAM5EeWWbMjTqzYc1A"/>
+ </packagedElement>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Realization" xmi:id="_xQPxUAM4EeWWbMjTqzYc1A" client="_qA5OsAM4EeWWbMjTqzYc1A" supplier="_bQLMYAM4EeWWbMjTqzYc1A"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_y3pENACLEeWudc8agGQ04Q" name="illustrates" client="_y3pEMwCLEeWudc8agGQ04Q" supplier="_y3pEMgCLEeWudc8agGQ04Q"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_y3pENwCLEeWudc8agGQ04Q" name="realizes" client="_y3pENgCLEeWudc8agGQ04Q" supplier="_y3pEMwCLEeWudc8agGQ04Q"/>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_y3pEOQCLEeWudc8agGQ04Q" name="verifies" client="_y3pEOACLEeWudc8agGQ04Q" supplier="_y3pEMwCLEeWudc8agGQ04Q"/>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_y3pEOgCLEeWudc8agGQ04Q" name="tests" client="_y3pEOACLEeWudc8agGQ04Q" supplier="_y3pENgCLEeWudc8agGQ04Q"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_nKpIAALwEeW1-e4oerqxMg" client="_FNBpcALkEeWy2L7kEYTJVw" supplier="_H3xwAP_lEeScYo8tuJyy0A"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_LFAN0AMCEeW1-e4oerqxMg" client="_FNBpcALkEeWy2L7kEYTJVw" supplier="_BwcAgP_0EeScYo8tuJyy0A"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_6GeUgAMfEeWWbMjTqzYc1A" client="_nvdy4AMdEeWWbMjTqzYc1A" supplier="_e-QjYP_lEeScYo8tuJyy0A"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_JseZAAMgEeWWbMjTqzYc1A" client="_nvdy4AMdEeWWbMjTqzYc1A" supplier="_zJRGUP_0EeScYo8tuJyy0A"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_3uMpAAM0EeWWbMjTqzYc1A" client="_3_HiEAMBEeW1-e4oerqxMg" supplier="__JdhwP_0EeScYo8tuJyy0A"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_OLiYwAM1EeWWbMjTqzYc1A" client="_3_HiEAMBEeW1-e4oerqxMg" supplier="_NlpXIP_4EeScYo8tuJyy0A"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_etPloAM3EeWWbMjTqzYc1A" client="_XpZaUAM1EeWWbMjTqzYc1A" supplier="__JdhwP_0EeScYo8tuJyy0A"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_kY4SwAM3EeWWbMjTqzYc1A" client="_XpZaUAM1EeWWbMjTqzYc1A" supplier="_lWa_UP_lEeScYo8tuJyy0A"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_EtQuMAM6EeWWbMjTqzYc1A" client="_jt_QwAM5EeWWbMjTqzYc1A" supplier="_H3xwAP_lEeScYo8tuJyy0A _e-QjYP_lEeScYo8tuJyy0A _NlpXIP_4EeScYo8tuJyy0A"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_4X_lMAM6EeWWbMjTqzYc1A" client="_lhLFoAM5EeWWbMjTqzYc1A" supplier="_lWa_UP_lEeScYo8tuJyy0A _e-QjYP_lEeScYo8tuJyy0A"/>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_y3pEOwCLEeWudc8agGQ04Q">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_y3pEPACLEeWudc8agGQ04Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pEPQCLEeWudc8agGQ04Q" key="Version" value="0.0.7"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pEPgCLEeWudc8agGQ04Q" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pEPwCLEeWudc8agGQ04Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pEQACLEeWudc8agGQ04Q" key="Date" value="2014-11-26"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pEQQCLEeWudc8agGQ04Q" key="Author" value=""/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_y3pEQgCLEeWudc8agGQ04Q" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_rplkQXVxEeSZ-fQGFkyJeQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_kWqjAMbXEeO09JBvNFZRNw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_y3pEQwCLEeWudc8agGQ04Q">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_y3pERACLEeWudc8agGQ04Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pERQCLEeWudc8agGQ04Q" key="Version" value="0.0.7"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pERgCLEeWudc8agGQ04Q" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pERwCLEeWudc8agGQ04Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pESACLEeWudc8agGQ04Q" key="Date" value="2014-11-26"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pESQCLEeWudc8agGQ04Q" key="Author" value=""/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_y3pESgCLEeWudc8agGQ04Q" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_rpmyYHVxEeSZ-fQGFkyJeQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_qCT3MMbXEeO09JBvNFZRNw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_y3pESwCLEeWudc8agGQ04Q">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_y3pETACLEeWudc8agGQ04Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pETQCLEeWudc8agGQ04Q" key="Version" value="0.0.7"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pETgCLEeWudc8agGQ04Q" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pETwCLEeWudc8agGQ04Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pEUACLEeWudc8agGQ04Q" key="Date" value="2014-11-26"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pEUQCLEeWudc8agGQ04Q" key="Author" value=""/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_y3pEUgCLEeWudc8agGQ04Q" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_rpnZcXVxEeSZ-fQGFkyJeQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/developerprocess.profile.uml#_2LNtQMbYEeO09JBvNFZRNw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_y3pEUwCLEeWudc8agGQ04Q">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_y3pEVACLEeWudc8agGQ04Q" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_OOJC4LX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_y3pEVQCLEeWudc8agGQ04Q">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_y3pEVgCLEeWudc8agGQ04Q" source="PapyrusVersion">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pEVwCLEeWudc8agGQ04Q" key="Version" value="0.0.11"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pEWACLEeWudc8agGQ04Q" key="Comment" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pEWQCLEeWudc8agGQ04Q" key="Copyright" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pEWgCLEeWudc8agGQ04Q" key="Date" value="2014-11-14"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_y3pEWwCLEeWudc8agGQ04Q" key="Author" value=""/>
+ </eAnnotations>
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_y3pEXACLEeWudc8agGQ04Q" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://DEVELOPER_PROFILES/Document.profile.uml#_RQrLoWwBEeSIYu1Ih2FYyQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://DEVELOPER_PROFILES/Document.profile.uml#_D0JcUMnzEeO9CYUoXDRplw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_w2fvAACPEeWudc8agGQ04Q">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_w2gWEACPEeWudc8agGQ04Q" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_aR0Q4ALvEeW1-e4oerqxMg">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_aR1fAALvEeW1-e4oerqxMg" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_Kv8EIKFXEeS_KNX0nfvIVQ"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/>
+ </profileApplication>
+ </uml:Model>
+ <structure:Project xmi:id="_y3pEXQCLEeWudc8agGQ04Q" author="Christian W. Damus" version="1.1" base_Model="_y3pEMACLEeWudc8agGQ04Q" title="Generic Model Synchronization Framework"/>
+ <structure:Requirements xmi:id="_y3pEXgCLEeWudc8agGQ04Q" base_Model="_y3pEMgCLEeWudc8agGQ04Q"/>
+ <structure:UseCases xmi:id="_y3pEXwCLEeWudc8agGQ04Q" base_Model="_y3pEMwCLEeWudc8agGQ04Q"/>
+ <structure:Design xmi:id="_y3pEYACLEeWudc8agGQ04Q" base_Model="_y3pENgCLEeWudc8agGQ04Q"/>
+ <structure:Tests xmi:id="_y3pEYQCLEeWudc8agGQ04Q" base_Model="_y3pEOACLEeWudc8agGQ04Q"/>
+ <Requirements:Requirement xmi:id="_H33PkP_lEeScYo8tuJyy0A" text="The framework SHALL support the automatic synchronization of model semantics. For example, a state machine in a subclass that redefines a state machine in a superclass must always define regions, vertices, and transitions corresponding to and redefining the regions, vertices, and transitions of the superclass state machine." id="R1" base_Class="_H3xwAP_lEeScYo8tuJyy0A"/>
+ <Requirements:Requirement xmi:id="_e-RxgP_lEeScYo8tuJyy0A" text="The framework SHALL support automatic synchronization of the layout of diagrams. For example, a state machine diagram in a subclass that redefines a state machine in a superclass initially presents the same layout as the superclass state machine and changes in the superclass state machine diagram layout are reflected in the subclass." id="R2" base_Class="_e-QjYP_lEeScYo8tuJyy0A"/>
+ <Requirements:Requirement xmi:id="_lWbmYP_lEeScYo8tuJyy0A" text="Synchronization of diagram layout SHALL be optional. Initially, a diagram is synchronized with the diagram that it redefines, but as needed to effect a sensible layout of the redefining diagram, this synchronization may be broken by the user. The semantics remain synchronized, and some graphical views may remain synchronized, but the user may freely rearrange other views as required by the redefining context." id="R2.1" base_Class="_lWa_UP_lEeScYo8tuJyy0A"/>
+ <Requirements:Requirement xmi:id="_NlqlQP_4EeScYo8tuJyy0A" text="The framework SHALL support the creation of additional elements in the target of a model-to-model synchronization. For example, the state machine of a UML-RT Capsule may add vertices, transitions, and regions in addition to those that are synchronized from (and redefined) the vertices, transitions, and regions of the parent Capsule. Moreover, transitions that redefine transitions in the parent Capsule may be re-targeted to (or re-sourced from) vertices that are added by the redefining state machine." id="R1.1" base_Class="_NlpXIP_4EeScYo8tuJyy0A"/>
+ <standard:Refine xmi:id="_vaOv4ACQEeWudc8agGQ04Q" base_Abstraction="_obO-sP_mEeScYo8tuJyy0A"/>
+ <standard:Trace xmi:id="_zvkN4ACPEeWudc8agGQ04Q" base_Abstraction="_ZPkSgP_2EeScYo8tuJyy0A"/>
+ <standard:Trace xmi:id="_0ntW0ACPEeWudc8agGQ04Q" base_Abstraction="_PQN4AP_3EeScYo8tuJyy0A"/>
+ <standard:Trace xmi:id="_1crP8ACPEeWudc8agGQ04Q" base_Abstraction="_vHLCgP_3EeScYo8tuJyy0A"/>
+ <standard:Trace xmi:id="_2JZMAACPEeWudc8agGQ04Q" base_Abstraction="_1OBsAP_3EeScYo8tuJyy0A"/>
+ <standard:Trace xmi:id="_239iMACPEeWudc8agGQ04Q" base_Abstraction="_8iwBYP_4EeScYo8tuJyy0A"/>
+ <standard:Trace xmi:id="_3pwLgACPEeWudc8agGQ04Q" base_Abstraction="_-hv6IP_3EeScYo8tuJyy0A"/>
+ <standard:Refine xmi:id="_h2XFwACREeWudc8agGQ04Q" base_Abstraction="_h2TbYACREeWudc8agGQ04Q"/>
+ <Requirements:Satisfy xmi:id="_pdy2YALwEeW1-e4oerqxMg" base_Abstraction="_nKpIAALwEeW1-e4oerqxMg"/>
+ <standard:Trace xmi:id="_PzZ2oAMCEeW1-e4oerqxMg" base_Abstraction="_LFAN0AMCEeW1-e4oerqxMg"/>
+ <standard:Trace xmi:id="_MlxhYAMgEeWWbMjTqzYc1A" base_Abstraction="_JseZAAMgEeWWbMjTqzYc1A"/>
+ <Requirements:Satisfy xmi:id="_R-KiYAMgEeWWbMjTqzYc1A" base_Abstraction="_6GeUgAMfEeWWbMjTqzYc1A"/>
+ <standard:Trace xmi:id="_6RtuoAM0EeWWbMjTqzYc1A" base_Abstraction="_3uMpAAM0EeWWbMjTqzYc1A"/>
+ <Requirements:Satisfy xmi:id="_RtbLIAM1EeWWbMjTqzYc1A" base_Abstraction="_OLiYwAM1EeWWbMjTqzYc1A"/>
+ <standard:Trace xmi:id="_hhyJ0AM3EeWWbMjTqzYc1A" base_Abstraction="_etPloAM3EeWWbMjTqzYc1A"/>
+ <Requirements:Satisfy xmi:id="_la5wcAM3EeWWbMjTqzYc1A" base_Abstraction="_kY4SwAM3EeWWbMjTqzYc1A"/>
+ <Requirements:Verify xmi:id="_K9D4UAM6EeWWbMjTqzYc1A" base_Abstraction="_EtQuMAM6EeWWbMjTqzYc1A"/>
+ <Requirements:Verify xmi:id="_5zUTsAM6EeWWbMjTqzYc1A" base_Abstraction="_4X_lMAM6EeWWbMjTqzYc1A"/>
+</xmi:XMI>
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Exclude_Views_from_Synchronization.png b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Exclude_Views_from_Synchronization.png
new file mode 100644
index 00000000000..80030133ecb
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Exclude_Views_from_Synchronization.png
Binary files differ
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Notation_Sync_Classes.png b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Notation_Sync_Classes.png
new file mode 100644
index 00000000000..a558e2841c8
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Notation_Sync_Classes.png
Binary files differ
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Notation_Synchronization.png b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Notation_Synchronization.png
new file mode 100644
index 00000000000..70e1576cc00
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Notation_Synchronization.png
Binary files differ
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Plug-ins.png b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Plug-ins.png
new file mode 100644
index 00000000000..f0b376c2a85
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Plug-ins.png
Binary files differ
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Sync_Framework_Core_Classes.png b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Sync_Framework_Core_Classes.png
new file mode 100644
index 00000000000..6c18db39cb2
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Sync_Framework_Core_Classes.png
Binary files differ
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Sync_Policy_Classes.png b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Sync_Policy_Classes.png
new file mode 100644
index 00000000000..636c1cfd706
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Sync_Policy_Classes.png
Binary files differ
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Sync_Service_Classes.png b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Sync_Service_Classes.png
new file mode 100644
index 00000000000..6a6c5d6b1d5
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Sync_Service_Classes.png
Binary files differ
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization.png b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization.png
new file mode 100644
index 00000000000..8a21d85bb58
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization.png
Binary files differ
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization_Exclusions.png b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization_Exclusions.png
new file mode 100644
index 00000000000..b9f09845954
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization_Exclusions.png
Binary files differ
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization_Overrides.png b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization_Overrides.png
new file mode 100644
index 00000000000..7ab3fd2cef9
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization_Overrides.png
Binary files differ
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization_Overrides_1.png b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization_Overrides_1.png
new file mode 100644
index 00000000000..4f6992aec2c
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronization_Overrides_1.png
Binary files differ
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronize_Model_Elements.png b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronize_Model_Elements.png
new file mode 100644
index 00000000000..622f7b1366c
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronize_Model_Elements.png
Binary files differ
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronize_Model_Elements_1.png b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronize_Model_Elements_1.png
new file mode 100644
index 00000000000..90e874d8234
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Synchronize_Model_Elements_1.png
Binary files differ
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Test_Classes.png b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Test_Classes.png
new file mode 100644
index 00000000000..68f728225d4
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Test_Classes.png
Binary files differ
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Test_Plug-ins.png b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Test_Plug-ins.png
new file mode 100644
index 00000000000..b3edbe62911
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Test_Plug-ins.png
Binary files differ
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Use_Cases.png b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Use_Cases.png
new file mode 100644
index 00000000000..cf91d7830d1
--- /dev/null
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/doc/imgDOC/Use_Cases.png
Binary files differ
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/EStructuralFeatureSyncFeature.java b/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/EStructuralFeatureSyncFeature.java
index 7350c313829..f47ca4a5ecc 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/EStructuralFeatureSyncFeature.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/EStructuralFeatureSyncFeature.java
@@ -196,7 +196,13 @@ public abstract class EStructuralFeatureSyncFeature<M extends EObject, T> extend
}
// add the missing ones
for (int i = 0; i < toAdd.size(); i++) {
- compound.append(getAddCommand(from, to, toAdd.get(i)));
+ EObject newSource = toAdd.get(i);
+ if (shouldAdd(from, to, newSource)) {
+ Command add = getAddCommand(from, to, newSource);
+ if (add != null) {
+ compound.append(add);
+ }
+ }
}
}
@@ -255,6 +261,23 @@ public abstract class EStructuralFeatureSyncFeature<M extends EObject, T> extend
}
/**
+ * Queries whether a new source object should be added {@code to} the synchronization target in synchronization
+ * {@code from} a synchronization source. The default implementation always adds.
+ *
+ * @param from
+ * the source of a synchronization operation
+ * @param to
+ * the target of a synchronization operation
+ * @param newSource
+ * the new element added to the source
+ *
+ * @return whether the new element should be synchronized to the target
+ */
+ protected boolean shouldAdd(SyncItem<M, T> from, SyncItem<M, T> to, EObject newSource) {
+ return true;
+ }
+
+ /**
* Gets the synchronization command for adding a new back-end to the specified target to correspond to a new source model element.
*
* @param from
@@ -482,8 +505,11 @@ public abstract class EStructuralFeatureSyncFeature<M extends EObject, T> extend
result = !match(model, EStructuralFeatureSyncFeature.this.getModelOf(potential));
}
- if (result) {
- react(getAddCommand(from, to, model));
+ if (result && shouldAdd(from, to, model)) {
+ Command add = getAddCommand(from, to, model);
+ if (add != null) {
+ react(add);
+ }
}
return result;
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/ISyncObject.java b/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/ISyncObject.java
index ab38770b378..a7e5de27462 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/ISyncObject.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/ISyncObject.java
@@ -18,6 +18,8 @@ import org.eclipse.emf.transaction.TransactionalEditingDomain;
import org.eclipse.papyrus.infra.sync.service.ISyncService;
import org.eclipse.papyrus.infra.sync.service.SyncServiceRunnable;
+import com.google.common.util.concurrent.CheckedFuture;
+
/**
* Common interface of objects in the synchronization framework.
*/
@@ -57,6 +59,18 @@ public interface ISyncObject {
*/
<V, X extends Exception> V run(SyncServiceRunnable<V, X> operation) throws X;
+ /**
+ * Asynchronously runs an operation in the context of the {@link ISyncService} that owns me.
+ * The {@link SyncServiceRunnable.Safe Safe} variant does not throw a checked exception.
+ *
+ * @param operation
+ * a sync-service operation
+ * @return the future result of the {@code operation}
+ *
+ * @see SyncServiceRunnable.Safe
+ */
+ <V, X extends Exception> CheckedFuture<V, X> runAsync(SyncServiceRunnable<V, X> operation);
+
TransactionalEditingDomain getEditingDomain();
/**
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/SyncObject.java b/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/SyncObject.java
index e81977ce1e6..091749e718b 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/SyncObject.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/SyncObject.java
@@ -19,6 +19,8 @@ import org.eclipse.papyrus.infra.sync.internal.SyncService;
import org.eclipse.papyrus.infra.sync.service.ISyncService;
import org.eclipse.papyrus.infra.sync.service.SyncServiceRunnable;
+import com.google.common.util.concurrent.CheckedFuture;
+
/**
* A core synchronization framework object.
*/
@@ -63,4 +65,11 @@ public abstract class SyncObject implements ISyncObject {
public void execute(Command command) {
getSyncService().execute(command);
}
+
+ @Override
+ public <V, X extends Exception> CheckedFuture<V, X> runAsync(SyncServiceRunnable<V, X> operation) {
+ CheckedFuture<V, X> result = operation.asFuture(this);
+ getSyncService().getAsyncExecutor().execute((Runnable) result);
+ return result;
+ }
}
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/internal/SyncService.java b/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/internal/SyncService.java
index c2f317414bf..1d461d6f1a1 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/internal/SyncService.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/internal/SyncService.java
@@ -16,6 +16,8 @@ package org.eclipse.papyrus.infra.sync.internal;
import java.lang.reflect.InvocationTargetException;
import java.util.Collections;
import java.util.Map;
+import java.util.concurrent.Executor;
+import java.util.concurrent.ExecutorService;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.MultiStatus;
@@ -33,6 +35,7 @@ import org.eclipse.papyrus.infra.core.resource.ResourceAdapter;
import org.eclipse.papyrus.infra.core.services.ServiceException;
import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
import org.eclipse.papyrus.infra.core.utils.ServiceUtils;
+import org.eclipse.papyrus.infra.core.utils.TransactionHelper;
import org.eclipse.papyrus.infra.sync.Activator;
import org.eclipse.papyrus.infra.sync.EMFDispatch;
import org.eclipse.papyrus.infra.sync.EMFDispatchManager;
@@ -48,6 +51,8 @@ import org.eclipse.papyrus.infra.sync.service.SyncServiceRunnable;
import org.eclipse.papyrus.infra.tools.util.TypeUtils;
import com.google.common.collect.Maps;
+import com.google.common.util.concurrent.CheckedFuture;
+import com.google.common.util.concurrent.MoreExecutors;
/**
* Default implementation of the synchronization service.
@@ -68,6 +73,8 @@ public class SyncService implements ISyncService {
private ISyncPolicy policy;
+ private Executor executor;
+
private final Map<Class<? extends SyncRegistry<?, ?, ?>>, SyncRegistry<?, ?, ?>> syncRegistries = Maps.newHashMap();
public SyncService() {
@@ -87,6 +94,8 @@ public class SyncService implements ISyncService {
public void startService() throws ServiceException {
editingDomain = ServiceUtils.getInstance().getTransactionalEditingDomain(services);
+ setAsyncExecutor(TransactionHelper.createTransactionExecutor(editingDomain, MoreExecutors.sameThreadExecutor()));
+
policy = new SyncServiceOperation<ISyncPolicy>(this) {
@Override
protected ISyncPolicy doCall() throws Exception {
@@ -119,6 +128,12 @@ public class SyncService implements ISyncService {
rootTrigger.uninstall(editingDomain);
}
editingDomain = null;
+
+ if (executor instanceof ExecutorService) {
+ // No sense in running any pending operations because the whole editing environment is gone
+ ((ExecutorService) executor).shutdownNow();
+ }
+ executor = null;
}
@Override
@@ -326,6 +341,32 @@ public class SyncService implements ISyncService {
policyDelegates.deregister(policyDelegate, featureType);
}
+ @Override
+ public synchronized Executor getAsyncExecutor() {
+ return executor;
+ }
+
+ @Override
+ public synchronized void setAsyncExecutor(Executor executor) {
+ if (executor == null) {
+ throw new IllegalArgumentException("null executor");
+ }
+
+ if (executor != this.executor) {
+ if (this.executor instanceof ExecutorService) {
+ ((ExecutorService) this.executor).shutdown();
+ }
+ this.executor = executor;
+ }
+ }
+
+ @Override
+ public <V, X extends Exception> CheckedFuture<V, X> runAsync(SyncServiceRunnable<V, X> operation) {
+ CheckedFuture<V, X> result = operation.asFuture(this);
+ getAsyncExecutor().execute((Runnable) result);
+ return result;
+ }
+
//
// Nested types
//
diff --git a/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/service/ISyncService.java b/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/service/ISyncService.java
index 03152f5838f..1a77cc4a86c 100644
--- a/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/service/ISyncService.java
+++ b/plugins/infra/org.eclipse.papyrus.infra.sync/src/org/eclipse/papyrus/infra/sync/service/ISyncService.java
@@ -13,6 +13,9 @@
package org.eclipse.papyrus.infra.sync.service;
+import java.util.concurrent.Executor;
+import java.util.concurrent.ExecutorService;
+
import org.eclipse.core.runtime.IStatus;
import org.eclipse.papyrus.infra.core.services.IService;
import org.eclipse.papyrus.infra.sync.EMFDispatch;
@@ -44,4 +47,25 @@ public interface ISyncService extends ISyncObject, IService {
* the new sync policy, or {@code null} to install a non-policy (meaning that everything is always synchronized)
*/
void setSyncPolicy(ISyncPolicy syncPolicy);
+
+ /**
+ * Obtains the executor service on which to schedule asynchronous {@link SyncServiceRunnable}s.
+ *
+ * @return the asynchronous execution service; never {@code null}
+ *
+ * @see #setAsyncExecutor(Executor)
+ */
+ Executor getAsyncExecutor();
+
+ /**
+ * Sets the executor service on which to schedule asynchronous {@link SyncServiceRunnable}s.
+ * If different from the {@linkplain #getAsyncExecutor() current executor}, the current executor will be
+ * {@linkplain ExecutorService#shutdown() shut down} if it is an {@link ExecutorService}.
+ *
+ * @param executor
+ * the asynchronous execution service; must not be {@code null}
+ *
+ * @see #getAsyncExecutor()
+ */
+ void setAsyncExecutor(Executor executor);
}
diff --git a/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/META-INF/MANIFEST.MF b/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/META-INF/MANIFEST.MF
index beadc3ddac2..549dcbfc378 100755
--- a/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/META-INF/MANIFEST.MF
+++ b/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/META-INF/MANIFEST.MF
@@ -28,9 +28,7 @@ Bundle-Version: 1.1.0.qualifier
Bundle-Localization: plugin
Bundle-Name: %pluginName
Bundle-ManifestVersion: 2
-Bundle-Activator: org.eclipse.papyrus.infra.viewpoints.policy.Activato
- r
-Bundle-SymbolicName: org.eclipse.papyrus.infra.viewpoints.policy;singl
- eton:=true
+Bundle-Activator: org.eclipse.papyrus.infra.viewpoints.policy.Activator
+Bundle-SymbolicName: org.eclipse.papyrus.infra.viewpoints.policy;singleton:=true
Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/model/style.ecore b/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/model/style.ecore
index 8c1d4d3616d..e5b84a950e0 100755
--- a/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/model/style.ecore
+++ b/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/model/style.ecore
@@ -3,8 +3,7 @@
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="style" nsURI="http://www.eclipse.org/papyrus/infra/viewpoints/policy/style"
nsPrefix="style">
<eClassifiers xsi:type="ecore:EClass" name="PapyrusViewStyle" eSuperTypes="../../org.eclipse.gmf.runtime.notation/model/notation.ecore#//Style">
- <eStructuralFeatures xsi:type="ecore:EReference" name="owner" lowerBound="1" eType="ecore:EClass ../../org.eclipse.emf.ecore/model/Ecore.ecore#//EObject"/>
- <eStructuralFeatures xsi:type="ecore:EReference" name="configuration" lowerBound="1"
- eType="ecore:EClass ../../org.eclipse.papyrus.infra.viewpoints.configuration/model/configuration.ecore#//PapyrusView"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="owner" lowerBound="1" eType="ecore:EClass platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EObject"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="configuration" eType="ecore:EClass ../../org.eclipse.papyrus.infra.viewpoints.configuration/model/configuration.ecore#//PapyrusView"/>
</eClassifiers>
</ecore:EPackage>
diff --git a/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/model/style.genmodel b/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/model/style.genmodel
index 0a33165e081..0ee548a293e 100755
--- a/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/model/style.genmodel
+++ b/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/model/style.genmodel
@@ -4,7 +4,7 @@
modelDirectory="/org.eclipse.papyrus.infra.viewpoints.policy/src-gen" modelPluginID="org.eclipse.papyrus.infra.viewpoints.policy"
modelName="Style" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
importerID="org.eclipse.emf.importer.ecore" complianceLevel="6.0" copyrightFields="false"
- language="" usedGenPackages="../../org.eclipse.papyrus.infra.viewpoints.configuration/model/configuration.genmodel#//configuration platform:/plugin/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore platform:/plugin/org.eclipse.papyrus.infra.viewpoints.iso42010/model/iso42010.genmodel#//iso42010 ../../org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation"
+ language="" usedGenPackages="../../org.eclipse.papyrus.infra.viewpoints.configuration/model/configuration.genmodel#//configuration platform:/plugin/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore platform:/plugin/org.eclipse.papyrus.infra.viewpoints.iso42010/model/iso42010.genmodel#//iso42010 ../../org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation ../../org.eclipse.papyrus.infra.constraints/Model/Constraints.genmodel#//constraints"
operationReflection="true" importOrganizing="true">
<foreignModel>style.ecore</foreignModel>
<genPackages prefix="Style" basePackage="org.eclipse.papyrus.infra.viewpoints" resource="XMI"
diff --git a/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/PapyrusViewStyle.java b/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/PapyrusViewStyle.java
index 18e66e3544d..6691161a5ae 100755
--- a/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/PapyrusViewStyle.java
+++ b/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/PapyrusViewStyle.java
@@ -24,11 +24,11 @@ import org.eclipse.papyrus.infra.viewpoints.configuration.PapyrusView;
*
* <p>
* The following features are supported:
+ * </p>
* <ul>
* <li>{@link org.eclipse.papyrus.infra.viewpoints.style.PapyrusViewStyle#getOwner <em>Owner</em>}</li>
* <li>{@link org.eclipse.papyrus.infra.viewpoints.style.PapyrusViewStyle#getConfiguration <em>Configuration</em>}</li>
* </ul>
- * </p>
*
* @see org.eclipse.papyrus.infra.viewpoints.style.StylePackage#getPapyrusViewStyle()
* @model
@@ -74,7 +74,7 @@ public interface PapyrusViewStyle extends Style {
* @return the value of the '<em>Configuration</em>' reference.
* @see #setConfiguration(PapyrusView)
* @see org.eclipse.papyrus.infra.viewpoints.style.StylePackage#getPapyrusViewStyle_Configuration()
- * @model required="true"
+ * @model
* @generated
*/
PapyrusView getConfiguration();
diff --git a/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/impl/PapyrusViewStyleImpl.java b/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/impl/PapyrusViewStyleImpl.java
index 99ded0b51f3..626aaccdb61 100755
--- a/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/impl/PapyrusViewStyleImpl.java
+++ b/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/impl/PapyrusViewStyleImpl.java
@@ -29,11 +29,11 @@ import org.eclipse.papyrus.infra.viewpoints.style.StylePackage;
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
+ * </p>
* <ul>
* <li>{@link org.eclipse.papyrus.infra.viewpoints.style.impl.PapyrusViewStyleImpl#getOwner <em>Owner</em>}</li>
* <li>{@link org.eclipse.papyrus.infra.viewpoints.style.impl.PapyrusViewStyleImpl#getConfiguration <em>Configuration</em>}</li>
* </ul>
- * </p>
*
* @generated
*/
diff --git a/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/impl/StylePackageImpl.java b/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/impl/StylePackageImpl.java
index e887babc919..f1239025ea5 100755
--- a/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/impl/StylePackageImpl.java
+++ b/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/impl/StylePackageImpl.java
@@ -41,10 +41,15 @@ public class StylePackageImpl extends EPackageImpl implements StylePackage {
private EClass papyrusViewStyleEClass = null;
/**
- * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
* package URI value.
* <p>
- * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also performs initialization of the package, or returns the registered package, if one already exists. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @see org.eclipse.emf.ecore.EPackage.Registry
* @see org.eclipse.papyrus.infra.viewpoints.style.StylePackage#eNS_URI
@@ -67,7 +72,9 @@ public class StylePackageImpl extends EPackageImpl implements StylePackage {
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
* <p>
- * This method is used to initialize {@link StylePackage#eINSTANCE} when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * This method is used to initialize {@link StylePackage#eINSTANCE} when that field is accessed.
+ * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @see #eNS_URI
* @see #createPackageContents()
@@ -214,7 +221,7 @@ public class StylePackageImpl extends EPackageImpl implements StylePackage {
initEClass(papyrusViewStyleEClass, PapyrusViewStyle.class, "PapyrusViewStyle", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getPapyrusViewStyle_Owner(), theEcorePackage.getEObject(), null, "owner", null, 1, 1, PapyrusViewStyle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
IS_ORDERED);
- initEReference(getPapyrusViewStyle_Configuration(), theConfigurationPackage.getPapyrusView(), null, "configuration", null, 1, 1, PapyrusViewStyle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
+ initEReference(getPapyrusViewStyle_Configuration(), theConfigurationPackage.getPapyrusView(), null, "configuration", null, 0, 1, PapyrusViewStyle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
// Create resource
diff --git a/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/util/StyleAdapterFactory.java b/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/util/StyleAdapterFactory.java
index 41de55be99e..7232969113e 100755
--- a/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/util/StyleAdapterFactory.java
+++ b/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/util/StyleAdapterFactory.java
@@ -80,23 +80,22 @@ public class StyleAdapterFactory extends AdapterFactoryImpl {
*
* @generated
*/
- protected StyleSwitch<Adapter> modelSwitch =
- new StyleSwitch<Adapter>() {
- @Override
- public Adapter casePapyrusViewStyle(PapyrusViewStyle object) {
- return createPapyrusViewStyleAdapter();
- }
+ protected StyleSwitch<Adapter> modelSwitch = new StyleSwitch<Adapter>() {
+ @Override
+ public Adapter casePapyrusViewStyle(PapyrusViewStyle object) {
+ return createPapyrusViewStyleAdapter();
+ }
- @Override
- public Adapter caseStyle(Style object) {
- return createStyleAdapter();
- }
+ @Override
+ public Adapter caseStyle(Style object) {
+ return createStyleAdapter();
+ }
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
+ @Override
+ public Adapter defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
/**
* Creates an adapter for the <code>target</code>.
diff --git a/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/util/StyleSwitch.java b/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/util/StyleSwitch.java
index 1360b53bf54..a4f548f64aa 100755
--- a/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/util/StyleSwitch.java
+++ b/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src-gen/org/eclipse/papyrus/infra/viewpoints/style/util/StyleSwitch.java
@@ -61,7 +61,8 @@ public class StyleSwitch<T> extends Switch<T> {
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
- * @parameter ePackage the package in question.
+ * @param ePackage
+ * the package in question.
* @return whether this is a switch for the given package.
* @generated
*/
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf.common/.launch/Generate Language Infrastructure (org.eclipse.papyrus.uml.alf.common).launch b/plugins/uml/alf/org.eclipse.papyrus.uml.alf.common/.launch/Generate Language Infrastructure (org.eclipse.papyrus.uml.alf.common).launch
index 71d45a0fe96..81ac1ec66ff 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf.common/.launch/Generate Language Infrastructure (org.eclipse.papyrus.uml.alf.common).launch
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf.common/.launch/Generate Language Infrastructure (org.eclipse.papyrus.uml.alf.common).launch
@@ -7,10 +7,6 @@
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
-<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
-<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
-</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="src/org/eclipse/papyrus/uml/alf/GenerateCommon.mwe2"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.papyrus.uml.alf.common"/>
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf.common/.launch/Launch Runtime Eclipse.launch b/plugins/uml/alf/org.eclipse.papyrus.uml.alf.common/.launch/Launch Runtime Eclipse.launch
index b0859bd4c72..eeeb40bab6e 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf.common/.launch/Launch Runtime Eclipse.launch
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf.common/.launch/Launch Runtime Eclipse.launch
@@ -14,10 +14,6 @@
<booleanAttribute key="default" value="true"/>
<booleanAttribute key="includeOptional" value="true"/>
<stringAttribute key="location" value="${workspace_loc}/../runtime-EclipseXtext"/>
-<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
-<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
-</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/.launch/Generate Language Infrastructure (org.eclipse.papyrus.alf.integration).launch b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/.launch/Generate Language Infrastructure (org.eclipse.papyrus.alf.integration).launch
index 566f3fac967..8713927691d 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/.launch/Generate Language Infrastructure (org.eclipse.papyrus.alf.integration).launch
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/.launch/Generate Language Infrastructure (org.eclipse.papyrus.alf.integration).launch
@@ -7,10 +7,6 @@
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
-<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
-<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
-</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="src/org/eclipse/papyrus/alf/integration/GenerateAlf.mwe2"/>
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/ActivityGroup/CustomLoopNodeStructuredActivityNodeContentCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/ActivityGroup/CustomLoopNodeStructuredActivityNodeContentCompartmentEditPart.java
index f48af29b966..8ea1e027ed9 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/ActivityGroup/CustomLoopNodeStructuredActivityNodeContentCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/ActivityGroup/CustomLoopNodeStructuredActivityNodeContentCompartmentEditPart.java
@@ -14,9 +14,6 @@
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.activity.edit.part.ActivityGroup;
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.ScrollPane;
-import org.eclipse.gmf.runtime.diagram.ui.figures.ResizableCompartmentFigure;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.uml.diagram.activity.edit.parts.LoopNodeStructuredActivityNodeContentCompartmentEditPart;
@@ -33,23 +30,6 @@ public class CustomLoopNodeStructuredActivityNodeContentCompartmentEditPart exte
}
/**
- * remove the top border,hide scrollbar
- */
- @Override
- public IFigure createFigure() {
- ResizableCompartmentFigure result = (ResizableCompartmentFigure) super.createFigure();
- result.setTitleVisibility(false);
- // remove the top border
- result.setBorder(null);
- // Hide scrollBar
- result.getScrollPane().setEnabled(false);
- result.getScrollPane().setHorizontalScrollBar(null);
- result.getScrollPane().setVerticalScrollBar(null);
- result.getScrollPane().setScrollBarVisibility(ScrollPane.NEVER);
- return result;
- }
-
- /**
* Unselectable Compartment
*/
@Override
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/ActivityGroup/CustomSequenceNodeStructuredActivityNodeContentCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/ActivityGroup/CustomSequenceNodeStructuredActivityNodeContentCompartmentEditPart.java
index d8ee7539da0..1ecf657c8d1 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/ActivityGroup/CustomSequenceNodeStructuredActivityNodeContentCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/ActivityGroup/CustomSequenceNodeStructuredActivityNodeContentCompartmentEditPart.java
@@ -14,9 +14,6 @@
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.activity.edit.part.ActivityGroup;
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.ScrollPane;
-import org.eclipse.gmf.runtime.diagram.ui.figures.ResizableCompartmentFigure;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.uml.diagram.activity.edit.parts.SequenceNodeStructuredActivityNodeContentCompartmentEditPart;
@@ -33,23 +30,6 @@ public class CustomSequenceNodeStructuredActivityNodeContentCompartmentEditPart
}
/**
- * remove the top border,hide scrollbar
- */
- @Override
- public IFigure createFigure() {
- ResizableCompartmentFigure result = (ResizableCompartmentFigure) super.createFigure();
- result.setTitleVisibility(false);
- // remove the top border
- result.setBorder(null);
- // Hide scrollBar
- result.getScrollPane().setEnabled(false);
- result.getScrollPane().setHorizontalScrollBar(null);
- result.getScrollPane().setVerticalScrollBar(null);
- result.getScrollPane().setScrollBarVisibility(ScrollPane.NEVER);
- return result;
- }
-
- /**
* Unselectable EditPart
*/
@Override
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/ActivityGroup/CustomStructuredActivityNodeStructuredActivityNodeContentCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/ActivityGroup/CustomStructuredActivityNodeStructuredActivityNodeContentCompartmentEditPart.java
index 8ae422547cf..fcd99bb86b6 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/ActivityGroup/CustomStructuredActivityNodeStructuredActivityNodeContentCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/ActivityGroup/CustomStructuredActivityNodeStructuredActivityNodeContentCompartmentEditPart.java
@@ -14,9 +14,6 @@
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.activity.edit.part.ActivityGroup;
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.ScrollPane;
-import org.eclipse.gmf.runtime.diagram.ui.figures.ResizableCompartmentFigure;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.uml.diagram.activity.edit.parts.StructuredActivityNodeStructuredActivityNodeContentCompartmentEditPart;
@@ -33,23 +30,6 @@ public class CustomStructuredActivityNodeStructuredActivityNodeContentCompartmen
}
/**
- * Remove polluting scroll bar
- */
- @Override
- public IFigure createFigure() {
- ResizableCompartmentFigure result = (ResizableCompartmentFigure) super.createFigure();
- result.setTitleVisibility(false);
- // remove the top border
- result.setBorder(null);
- // Hide scrollBar
- result.getScrollPane().setEnabled(false);
- result.getScrollPane().setHorizontalScrollBar(null);
- result.getScrollPane().setVerticalScrollBar(null);
- result.getScrollPane().setScrollBarVisibility(ScrollPane.NEVER);
- return result;
- }
-
- /**
* Make this compartment unselectable
*/
@Override
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/ShapeCompartmentWithoutScrollbarsEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/ShapeCompartmentWithoutScrollbarsEditPart.java
new file mode 100644
index 00000000000..2600edfafae
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/ShapeCompartmentWithoutScrollbarsEditPart.java
@@ -0,0 +1,35 @@
+package org.eclipse.papyrus.uml.diagram.activity.edit.part;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.ScrollPane;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.figures.ShapeCompartmentFigure;
+import org.eclipse.gmf.runtime.notation.View;
+
+public class ShapeCompartmentWithoutScrollbarsEditPart extends ShapeCompartmentEditPart {
+
+ public ShapeCompartmentWithoutScrollbarsEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * remove the bottom border, remove scrollbars
+ */
+ @Override
+ public IFigure createFigure() {
+ return setupNoScrolls((ShapeCompartmentFigure) super.createFigure());
+ }
+
+ private IFigure setupNoScrolls(ShapeCompartmentFigure figure) {
+ figure.setTitleVisibility(false);
+ // remove the top border
+ figure.setBorder(null);
+ // remove scrollbars
+ figure.getScrollPane().setHorizontalScrollBar(null);
+ figure.getScrollPane().setVerticalScrollBar(null);
+ figure.getScrollPane().setScrollBarVisibility(ScrollPane.NEVER);
+ // result.getScrollPane().getViewport().setContentsTracksHeight(true);
+ return figure;
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/policies/CustomDiagramDragDropEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/policies/CustomDiagramDragDropEditPolicy.java
index 971a97c1765..c7ead58d52b 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/policies/CustomDiagramDragDropEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/policies/CustomDiagramDragDropEditPolicy.java
@@ -48,6 +48,9 @@ import org.eclipse.gmf.runtime.emf.type.core.IHintedType;
import org.eclipse.gmf.runtime.notation.Edge;
import org.eclipse.gmf.runtime.notation.Node;
import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.adapter.SemanticAdapter;
+import org.eclipse.papyrus.infra.gmfdiag.common.commands.CommonDeferredCreateConnectionViewCommand;
+import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramEditPartsUtil;
import org.eclipse.papyrus.uml.diagram.activity.edit.parts.ActionLocalPostconditionEditPart;
import org.eclipse.papyrus.uml.diagram.activity.edit.parts.ActionLocalPreconditionEditPart;
import org.eclipse.papyrus.uml.diagram.activity.edit.parts.CallBehaviorActionEditPart;
@@ -68,14 +71,12 @@ import org.eclipse.papyrus.uml.diagram.activity.edit.parts.ValueSpecificationAct
import org.eclipse.papyrus.uml.diagram.activity.helper.ActivityLinkMappingHelper;
import org.eclipse.papyrus.uml.diagram.activity.part.UMLVisualIDRegistry;
import org.eclipse.papyrus.uml.diagram.activity.providers.UMLElementTypes;
-import org.eclipse.papyrus.infra.gmfdiag.common.commands.CommonDeferredCreateConnectionViewCommand;
-import org.eclipse.papyrus.infra.gmfdiag.common.adapter.SemanticAdapter;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.CommonDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramEditPartsUtil;
import org.eclipse.uml2.uml.Action;
import org.eclipse.uml2.uml.Activity;
import org.eclipse.uml2.uml.ActivityEdge;
import org.eclipse.uml2.uml.ActivityNode;
+import org.eclipse.uml2.uml.ActivityPartition;
import org.eclipse.uml2.uml.Behavior;
import org.eclipse.uml2.uml.Constraint;
import org.eclipse.uml2.uml.Element;
@@ -205,6 +206,10 @@ public class CustomDiagramDragDropEditPolicy extends CommonDiagramDragDropEditPo
if (!((StructuredActivityNode) graphicalParent).getNodes().contains(semanticElement)) {
return UnexecutableCommand.INSTANCE;
}
+ } else if (graphicalParent instanceof ActivityPartition) {
+ if (false == semanticElement.eContainer() instanceof Activity) {
+ return UnexecutableCommand.INSTANCE;
+ }
} else if (graphicalParent instanceof Element) {
if (!((Element) graphicalParent).getOwnedElements().contains(semanticElement)) {
return UnexecutableCommand.INSTANCE;
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/figures/ActivityFigure.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/figures/ActivityFigure.java
index 2397dddcd86..6fcf49ed5b7 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/figures/ActivityFigure.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/figures/ActivityFigure.java
@@ -41,7 +41,7 @@ public class ActivityFigure extends RoundedCompartmentFigure {
* this is the layout manager in charge to place element in the enumeration
*
*/
- private class ActivityLayoutManager extends AbstractLayout {
+ protected class ActivityLayoutManager extends AbstractLayout {
/**
* ---------------------------------------------------| |sterotypeLabel|
@@ -56,7 +56,7 @@ public class ActivityFigure extends RoundedCompartmentFigure {
* {@inheritDoc}
*/
@Override
- protected Dimension calculatePreferredSize(IFigure container, int hint, int hint2) {
+ protected Dimension calculatePreferredSize(IFigure container, int wHint, int hHint) {
int minimumWith = 0;
int minimumHeight = 0;
// take in account the content of the figure activity
@@ -77,6 +77,7 @@ public class ActivityFigure extends RoundedCompartmentFigure {
minimumWith = getHeaderSingleExecution().getBounds().getTopRight().x;
}
}
+
return new Dimension(minimumWith, minimumHeight);
}
@@ -191,34 +192,16 @@ public class ActivityFigure extends RoundedCompartmentFigure {
}
}
- /**
- * @generated
- */
private WrappingLabel fHeaderLabel;
- /**
- * @generated
- */
private RectangleFigure fActivityParametersCompartment;
- /**
- * @generated
- */
private RectangleFigure fActivityPreconditionsCompartment;
- /**
- * @generated
- */
private RectangleFigure fActivityPostconditionsCompartment;
- /**
- * @generated
- */
protected WrappingLabel fHeaderSingleExecution;
- /**
- * @generated
- */
private RectangleFigure fCompartmentFigure;
private RectangleFigure shapeCompartment;
@@ -229,9 +212,6 @@ public class ActivityFigure extends RoundedCompartmentFigure {
private RectangleFigure parameterFigure;
- /**
- * @generated
- */
public ActivityFigure() {
super();
setLayoutManager(new ActivityLayoutManager());
@@ -294,9 +274,6 @@ public class ActivityFigure extends RoundedCompartmentFigure {
return null;
}
- /**
- * @generated
- */
private void createContents() {
RoundedRectangle activityBorderFigure0 = new RoundedRectangle();
this.add(activityBorderFigure0, BorderLayout.CENTER);
@@ -430,44 +407,26 @@ public class ActivityFigure extends RoundedCompartmentFigure {
activityBorderFigure0.add(fCompartmentFigure, constraintFCompartmentFigure);
}
- /**
- * @generated
- */
public WrappingLabel getHeaderLabel() {
return fHeaderLabel;
}
- /**
- * @generated
- */
public RectangleFigure getActivityParametersCompartment() {
return fActivityParametersCompartment;
}
- /**
- * @generated
- */
public RectangleFigure getActivityPreconditionsCompartment() {
return fActivityPreconditionsCompartment;
}
- /**
- * @generated
- */
public RectangleFigure getActivityPostconditionsCompartment() {
return fActivityPostconditionsCompartment;
}
- /**
- * @generated
- */
public WrappingLabel getHeaderSingleExecution() {
return fHeaderSingleExecution;
}
- /**
- * @generated
- */
public RectangleFigure getCompartmentFigure() {
return fCompartmentFigure;
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/figures/ActivityFigureCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/figures/ActivityFigureCN.java
new file mode 100644
index 00000000000..a785f66e2ef
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/figures/ActivityFigureCN.java
@@ -0,0 +1,27 @@
+package org.eclipse.papyrus.uml.diagram.activity.figures;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.geometry.Dimension;
+
+public class ActivityFigureCN extends ActivityFigure {
+
+ private class ActivityLayoutManagerCN extends ActivityLayoutManager {
+
+ /**
+ * For preferred size computation considers only the name label size
+ */
+ @Override
+ protected Dimension calculatePreferredSize(IFigure container, int wHint, int hHint) {
+ return getNameLabel() != null ? getNameLabel().getPreferredSize().getCopy() : new Dimension(10, 10);
+ }
+ }
+
+ /**
+ * Overrides layout manager because child activity nodes have less restricted minimum sizes
+ * see bug 465804: [Activity] Cannot resizing "nested" Activity (it only gets larger and larger)
+ */
+ public ActivityFigureCN() {
+ super();
+ setLayoutManager(new ActivityLayoutManagerCN());
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/model/activityDiagram.gmfgen b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/model/activityDiagram.gmfgen
index 829f09d6c87..a72a05a5306 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/model/activityDiagram.gmfgen
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/model/activityDiagram.gmfgen
@@ -8498,7 +8498,7 @@
</elementType>
<viewmap
xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.activity.figures.ActivityFigure">
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.activity.figures.ActivityFigureCN">
<attributes
xsi:type="gmfgen:DefaultSizeAttributes"
width="200"
@@ -20925,5 +20925,10 @@
genExternalNodeLabel="/0/@diagram/@childNodes.81/@labels.0 /0/@diagram/@childNodes.3/@labels.1 /0/@diagram/@childNodes.4/@labels.1 /0/@diagram/@childNodes.5/@labels.1 /0/@diagram/@childNodes.7/@labels.2 /0/@diagram/@childNodes.8/@labels.2 /0/@diagram/@childNodes.9/@labels.1 /0/@diagram/@childNodes.10/@labels.1 /0/@diagram/@childNodes.12/@labels.2 /0/@diagram/@childNodes.13/@labels.2 /0/@diagram/@childNodes.14/@labels.1 /0/@diagram/@childNodes.15/@labels.1 /0/@diagram/@childNodes.17/@labels.2 /0/@diagram/@childNodes.18/@labels.2 /0/@diagram/@childNodes.19/@labels.1 /0/@diagram/@childNodes.20/@labels.1 /0/@diagram/@childNodes.21/@labels.2 /0/@diagram/@childNodes.22/@labels.2 /0/@diagram/@childNodes.23/@labels.1 /0/@diagram/@childNodes.32/@labels.2 /0/@diagram/@childNodes.33/@labels.1 /0/@diagram/@childNodes.34/@labels.1 /0/@diagram/@childNodes.35/@labels.2 /0/@diagram/@childNodes.38/@labels.2 /0/@diagram/@childNodes.39/@labels.2 /0/@diagram/@childNodes.40/@labels.1 /0/@diagram/@childNodes.41/@labels.2 /0/@diagram/@childNodes.42/@labels.2 /0/@diagram/@childNodes.43/@labels.1 /0/@diagram/@childNodes.45/@labels.2 /0/@diagram/@childNodes.46/@labels.2 /0/@diagram/@childNodes.47/@labels.1 /0/@diagram/@childNodes.48/@labels.2 /0/@diagram/@childNodes.49/@labels.2 /0/@diagram/@childNodes.50/@labels.1 /0/@diagram/@childNodes.52/@labels.2 /0/@diagram/@childNodes.53/@labels.1 /0/@diagram/@childNodes.55/@labels.1 /0/@diagram/@childNodes.77/@labels.1 /0/@diagram/@childNodes.80/@labels.1 /0/@diagram/@childNodes.83/@labels.1 /0/@diagram/@childNodes.101/@labels.1 /0/@diagram/@childNodes.53/@labels.0 /0/@diagram/@childNodes.7/@labels.0 /0/@diagram/@childNodes.7/@labels.1 /0/@diagram/@childNodes.8/@labels.0 /0/@diagram/@childNodes.8/@labels.1 /0/@diagram/@childNodes.9/@labels.0 /0/@diagram/@childNodes.10/@labels.0 /0/@diagram/@childNodes.12/@labels.0 /0/@diagram/@childNodes.12/@labels.1 /0/@diagram/@childNodes.13/@labels.0 /0/@diagram/@childNodes.13/@labels.1 /0/@diagram/@childNodes.14/@labels.0 /0/@diagram/@childNodes.15/@labels.0 /0/@diagram/@childNodes.17/@labels.0 /0/@diagram/@childNodes.17/@labels.1 /0/@diagram/@childNodes.18/@labels.0 /0/@diagram/@childNodes.18/@labels.1 /0/@diagram/@childNodes.19/@labels.0 /0/@diagram/@childNodes.20/@labels.0 /0/@diagram/@childNodes.21/@labels.0 /0/@diagram/@childNodes.21/@labels.1 /0/@diagram/@childNodes.22/@labels.0 /0/@diagram/@childNodes.22/@labels.1 /0/@diagram/@childNodes.23/@labels.0 /0/@diagram/@childNodes.32/@labels.1 /0/@diagram/@childNodes.35/@labels.1 /0/@diagram/@childNodes.36/@labels.1 /0/@diagram/@childNodes.38/@labels.0 /0/@diagram/@childNodes.38/@labels.1 /0/@diagram/@childNodes.39/@labels.0 /0/@diagram/@childNodes.39/@labels.1 /0/@diagram/@childNodes.40/@labels.0 /0/@diagram/@childNodes.41/@labels.0 /0/@diagram/@childNodes.41/@labels.1 /0/@diagram/@childNodes.42/@labels.0 /0/@diagram/@childNodes.42/@labels.1 /0/@diagram/@childNodes.43/@labels.0 /0/@diagram/@childNodes.45/@labels.0 /0/@diagram/@childNodes.45/@labels.1 /0/@diagram/@childNodes.46/@labels.0 /0/@diagram/@childNodes.46/@labels.1 /0/@diagram/@childNodes.47/@labels.0 /0/@diagram/@childNodes.48/@labels.0 /0/@diagram/@childNodes.48/@labels.1 /0/@diagram/@childNodes.49/@labels.0 /0/@diagram/@childNodes.49/@labels.1 /0/@diagram/@childNodes.50/@labels.0 /0/@diagram/@childNodes.52/@labels.1 /0/@diagram/@childNodes.55/@labels.0 /0/@diagram/@childNodes.77/@labels.0 /0/@diagram/@childNodes.80/@labels.0 /0/@diagram/@childNodes.83/@labels.0 /0/@diagram/@childNodes.84/@labels.0 /0/@diagram/@childNodes.84/@labels.1 /0/@diagram/@childNodes.101/@labels.0 /0/@diagram/@childNodes.113/@labels.1 /0/@diagram/@childNodes.116/@labels.0 /0/@diagram/@childNodes.116/@labels.1 /0/@diagram/@childNodes.117/@labels.0 /0/@diagram/@childNodes.117/@labels.1 /0/@diagram/@childNodes.118/@labels.0 /0/@diagram/@childNodes.118/@labels.1 /0/@diagram/@childNodes.118/@labels.2 /0/@diagram/@childNodes.119/@labels.0 /0/@diagram/@childNodes.119/@labels.1 /0/@diagram/@childNodes.119/@labels.2 /0/@diagram/@childNodes.120/@labels.0 /0/@diagram/@childNodes.120/@labels.1 /0/@diagram/@childNodes.121/@labels.0 /0/@diagram/@childNodes.121/@labels.1 /0/@diagram/@childNodes.121/@labels.2 /0/@diagram/@childNodes.122/@labels.0 /0/@diagram/@childNodes.122/@labels.1 /0/@diagram/@childNodes.122/@labels.2 /0/@diagram/@childNodes.124/@labels.1 /0/@diagram/@childNodes.125/@labels.1 /0/@diagram/@childNodes.126/@labels.1 /0/@diagram/@childNodes.127/@labels.2 /0/@diagram/@childNodes.128/@labels.2 /0/@diagram/@childNodes.129/@labels.2 /0/@diagram/@childNodes.130/@labels.2 /0/@diagram/@childNodes.124/@labels.0 /0/@diagram/@childNodes.125/@labels.0 /0/@diagram/@childNodes.126/@labels.0 /0/@diagram/@childNodes.127/@labels.0 /0/@diagram/@childNodes.127/@labels.1 /0/@diagram/@childNodes.128/@labels.0 /0/@diagram/@childNodes.128/@labels.1 /0/@diagram/@childNodes.129/@labels.0 /0/@diagram/@childNodes.129/@labels.1 /0/@diagram/@childNodes.130/@labels.0 /0/@diagram/@childNodes.130/@labels.1 /0/@diagram/@childNodes.132/@labels.1 /0/@diagram/@childNodes.133/@labels.1 /0/@diagram/@childNodes.134/@labels.2 /0/@diagram/@childNodes.135/@labels.2 /0/@diagram/@childNodes.132/@labels.0 /0/@diagram/@childNodes.133/@labels.0 /0/@diagram/@childNodes.134/@labels.0 /0/@diagram/@childNodes.134/@labels.1 /0/@diagram/@childNodes.135/@labels.0 /0/@diagram/@childNodes.135/@labels.1 /0/@diagram/@childNodes.137/@labels.1 /0/@diagram/@childNodes.138/@labels.2 /0/@diagram/@childNodes.139/@labels.2 /0/@diagram/@childNodes.141/@labels.1 /0/@diagram/@childNodes.142/@labels.1 /0/@diagram/@childNodes.143/@labels.2 /0/@diagram/@childNodes.144/@labels.2 /0/@diagram/@childNodes.146/@labels.1 /0/@diagram/@childNodes.147/@labels.2 /0/@diagram/@childNodes.148/@labels.2 /0/@diagram/@childNodes.137/@labels.0 /0/@diagram/@childNodes.138/@labels.0 /0/@diagram/@childNodes.138/@labels.1 /0/@diagram/@childNodes.139/@labels.0 /0/@diagram/@childNodes.139/@labels.1 /0/@diagram/@childNodes.141/@labels.0 /0/@diagram/@childNodes.142/@labels.0 /0/@diagram/@childNodes.143/@labels.0 /0/@diagram/@childNodes.143/@labels.1 /0/@diagram/@childNodes.144/@labels.0 /0/@diagram/@childNodes.144/@labels.1 /0/@diagram/@childNodes.146/@labels.0 /0/@diagram/@childNodes.147/@labels.0 /0/@diagram/@childNodes.147/@labels.1 /0/@diagram/@childNodes.148/@labels.0 /0/@diagram/@childNodes.148/@labels.1 /0/@diagram/@childNodes.150/@labels.1 /0/@diagram/@childNodes.151/@labels.2 /0/@diagram/@childNodes.152/@labels.2 /0/@diagram/@childNodes.150/@labels.0 /0/@diagram/@childNodes.151/@labels.0 /0/@diagram/@childNodes.151/@labels.1 /0/@diagram/@childNodes.152/@labels.0 /0/@diagram/@childNodes.152/@labels.1 /0/@diagram/@childNodes.154/@labels.0 /0/@diagram/@childNodes.154/@labels.1 /0/@diagram/@childNodes.156/@labels.1 /0/@diagram/@childNodes.157/@labels.2 /0/@diagram/@childNodes.158/@labels.2 /0/@diagram/@childNodes.160/@labels.1 /0/@diagram/@childNodes.161/@labels.1 /0/@diagram/@childNodes.162/@labels.2 /0/@diagram/@childNodes.163/@labels.2 /0/@diagram/@childNodes.156/@labels.0 /0/@diagram/@childNodes.157/@labels.0 /0/@diagram/@childNodes.157/@labels.1 /0/@diagram/@childNodes.158/@labels.0 /0/@diagram/@childNodes.158/@labels.1 /0/@diagram/@childNodes.160/@labels.0 /0/@diagram/@childNodes.161/@labels.0 /0/@diagram/@childNodes.162/@labels.0 /0/@diagram/@childNodes.162/@labels.1 /0/@diagram/@childNodes.163/@labels.0 /0/@diagram/@childNodes.163/@labels.1 /0/@diagram/@childNodes.165/@labels.1 /0/@diagram/@childNodes.166/@labels.1 /0/@diagram/@childNodes.167/@labels.2 /0/@diagram/@childNodes.168/@labels.2 /0/@diagram/@childNodes.165/@labels.0 /0/@diagram/@childNodes.166/@labels.0 /0/@diagram/@childNodes.167/@labels.0 /0/@diagram/@childNodes.167/@labels.1 /0/@diagram/@childNodes.168/@labels.0 /0/@diagram/@childNodes.168/@labels.1 /0/@diagram/@childNodes.169/@labels.1 /0/@diagram/@childNodes.170/@labels.1 /0/@diagram/@childNodes.171/@labels.2 /0/@diagram/@childNodes.172/@labels.2 /0/@diagram/@childNodes.170/@labels.0 /0/@diagram/@childNodes.171/@labels.0 /0/@diagram/@childNodes.171/@labels.1 /0/@diagram/@childNodes.172/@labels.0 /0/@diagram/@childNodes.172/@labels.1 /0/@diagram/@childNodes.97/@labels.1 /0/@diagram/@childNodes.98/@labels.2 /0/@diagram/@childNodes.99/@labels.2 /0/@diagram/@childNodes.103/@labels.1 /0/@diagram/@childNodes.104/@labels.1 /0/@diagram/@childNodes.105/@labels.2 /0/@diagram/@childNodes.106/@labels.2 /0/@diagram/@childNodes.107/@labels.2 /0/@diagram/@childNodes.108/@labels.2 /0/@diagram/@childNodes.110/@labels.2 /0/@diagram/@childNodes.111/@labels.2 /0/@diagram/@childNodes.112/@labels.2 /0/@diagram/@childNodes.97/@labels.0 /0/@diagram/@childNodes.98/@labels.0 /0/@diagram/@childNodes.98/@labels.1 /0/@diagram/@childNodes.99/@labels.0 /0/@diagram/@childNodes.99/@labels.1 /0/@diagram/@childNodes.103/@labels.0 /0/@diagram/@childNodes.104/@labels.0 /0/@diagram/@childNodes.105/@labels.0 /0/@diagram/@childNodes.105/@labels.1 /0/@diagram/@childNodes.106/@labels.0 /0/@diagram/@childNodes.106/@labels.1 /0/@diagram/@childNodes.107/@labels.0 /0/@diagram/@childNodes.107/@labels.1 /0/@diagram/@childNodes.108/@labels.0 /0/@diagram/@childNodes.108/@labels.1 /0/@diagram/@childNodes.110/@labels.0 /0/@diagram/@childNodes.110/@labels.1 /0/@diagram/@childNodes.111/@labels.0 /0/@diagram/@childNodes.111/@labels.1 /0/@diagram/@childNodes.112/@labels.0 /0/@diagram/@childNodes.112/@labels.1 /0/@diagram/@childNodes.86/@labels.1 /0/@diagram/@childNodes.87/@labels.1 /0/@diagram/@childNodes.88/@labels.1 /0/@diagram/@childNodes.89/@labels.2 /0/@diagram/@childNodes.90/@labels.2 /0/@diagram/@childNodes.91/@labels.2 /0/@diagram/@childNodes.92/@labels.2 /0/@diagram/@childNodes.93/@labels.2 /0/@diagram/@childNodes.94/@labels.2 /0/@diagram/@childNodes.95/@labels.1 /0/@diagram/@childNodes.86/@labels.0 /0/@diagram/@childNodes.87/@labels.0 /0/@diagram/@childNodes.88/@labels.0 /0/@diagram/@childNodes.89/@labels.0 /0/@diagram/@childNodes.89/@labels.1 /0/@diagram/@childNodes.90/@labels.0 /0/@diagram/@childNodes.90/@labels.1 /0/@diagram/@childNodes.91/@labels.0 /0/@diagram/@childNodes.91/@labels.1 /0/@diagram/@childNodes.92/@labels.0 /0/@diagram/@childNodes.92/@labels.1 /0/@diagram/@childNodes.93/@labels.0 /0/@diagram/@childNodes.93/@labels.1 /0/@diagram/@childNodes.94/@labels.0 /0/@diagram/@childNodes.94/@labels.1 /0/@diagram/@childNodes.95/@labels.0 /0/@diagram/@childNodes.61/@labels.1 /0/@diagram/@childNodes.62/@labels.2 /0/@diagram/@childNodes.63/@labels.2 /0/@diagram/@childNodes.64/@labels.1 /0/@diagram/@childNodes.65/@labels.1 /0/@diagram/@childNodes.66/@labels.1 /0/@diagram/@childNodes.70/@labels.2 /0/@diagram/@childNodes.71/@labels.2 /0/@diagram/@childNodes.72/@labels.1 /0/@diagram/@childNodes.61/@labels.0 /0/@diagram/@childNodes.62/@labels.0 /0/@diagram/@childNodes.62/@labels.1 /0/@diagram/@childNodes.63/@labels.0 /0/@diagram/@childNodes.63/@labels.1 /0/@diagram/@childNodes.64/@labels.0 /0/@diagram/@childNodes.65/@labels.0 /0/@diagram/@childNodes.66/@labels.0 /0/@diagram/@childNodes.70/@labels.0 /0/@diagram/@childNodes.70/@labels.1 /0/@diagram/@childNodes.71/@labels.0 /0/@diagram/@childNodes.71/@labels.1 /0/@diagram/@childNodes.72/@labels.0 /0/@diagram/@childNodes.69/@labels.1 /0/@diagram/@childNodes.69/@labels.0 /0/@diagram/@childNodes.174/@labels.1 /0/@diagram/@childNodes.175/@labels.2 /0/@diagram/@childNodes.176/@labels.2 /0/@diagram/@childNodes.177/@labels.1 /0/@diagram/@childNodes.174/@labels.0 /0/@diagram/@childNodes.175/@labels.0 /0/@diagram/@childNodes.175/@labels.1 /0/@diagram/@childNodes.176/@labels.0 /0/@diagram/@childNodes.176/@labels.1 /0/@diagram/@childNodes.177/@labels.0"/>
<extensionNodes
xsi:type="papyrusgmfgenextension:GenerateUsingElementTypeCreationCommand"/>
+ <extensionNodes
+ xsi:type="papyrusgmfgenextension:ExtendedGenView"
+ genView="/0/@diagram/@compartments.9 /0/@diagram/@compartments.10 /0/@diagram/@compartments.6 /0/@diagram/@compartments.7 /0/@diagram/@compartments.8"
+ name="ShapeCompartmentWithoutScrollbarsEditPart"
+ superOwnedEditPart="org.eclipse.papyrus.uml.diagram.activity.edit.part.ShapeCompartmentWithoutScrollbarsEditPart"/>
</papyrusgmfgenextension:PapyrusExtensionRootNode>
</xmi:XMI>
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/ActivityEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/ActivityEditPartCN.java
index c10428d8064..d6ba2ec229b 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/ActivityEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/ActivityEditPartCN.java
@@ -30,7 +30,7 @@ import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNode
import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
import org.eclipse.papyrus.uml.diagram.activity.edit.policies.ActivityDiagramChangeStereotypedShapeEditpolicy;
import org.eclipse.papyrus.uml.diagram.activity.edit.policies.DeleteActionViewEditPolicy;
-import org.eclipse.papyrus.uml.diagram.activity.figures.ActivityFigure;
+import org.eclipse.papyrus.uml.diagram.activity.figures.ActivityFigureCN;
import org.eclipse.papyrus.uml.diagram.activity.locator.ParameterNodeLocator;
import org.eclipse.papyrus.uml.diagram.activity.part.UMLVisualIDRegistry;
import org.eclipse.papyrus.uml.diagram.activity.providers.UMLElementTypes;
@@ -140,15 +140,15 @@ public class ActivityEditPartCN extends RoundedCompartmentEditPart {
*/
@Override
protected IFigure createNodeShape() {
- return primaryShape = new ActivityFigure();
+ return primaryShape = new ActivityFigureCN();
}
/**
* @generated
*/
@Override
- public ActivityFigure getPrimaryShape() {
- return (ActivityFigure) primaryShape;
+ public ActivityFigureCN getPrimaryShape() {
+ return (ActivityFigureCN) primaryShape;
}
/**
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/ActivityPartitionActivityPartitionContentCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/ActivityPartitionActivityPartitionContentCompartmentEditPart.java
index 53768f3a225..c6a99066469 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/ActivityPartitionActivityPartitionContentCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/ActivityPartitionActivityPartitionContentCompartmentEditPart.java
@@ -14,7 +14,6 @@
package org.eclipse.papyrus.uml.diagram.activity.edit.parts;
import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.ScrollPane;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.draw2d.geometry.Rectangle;
@@ -22,16 +21,15 @@ import org.eclipse.emf.common.notify.Notification;
import org.eclipse.gef.EditPart;
import org.eclipse.gef.GraphicalEditPart;
import org.eclipse.gef.Request;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.diagram.ui.figures.ResizableCompartmentFigure;
import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentSemanticEditPolicy;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.activity.activitygroup.editpolicy.ActivityPartitionCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.uml.diagram.activity.edit.part.ShapeCompartmentWithoutScrollbarsEditPart;
import org.eclipse.papyrus.uml.diagram.activity.edit.policies.ActivityGroupCustomDragAndDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.activity.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.activity.part.Messages;
@@ -40,7 +38,7 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
/**
* @generated
*/
-public class ActivityPartitionActivityPartitionContentCompartmentEditPart extends ShapeCompartmentEditPart {
+public class ActivityPartitionActivityPartitionContentCompartmentEditPart extends ShapeCompartmentWithoutScrollbarsEditPart {
/**
* @generated
@@ -63,21 +61,11 @@ public class ActivityPartitionActivityPartitionContentCompartmentEditPart extend
}
/**
- * @generated NOT (remove the bottom border, remove scrollbars)
+ * @generated
*/
@Override
public IFigure createFigure() {
- ResizableCompartmentFigure result = (ResizableCompartmentFigure) super.createFigure();
- result.setTitleVisibility(false);
- // remove the top border
- result.setBorder(null);
- // remove scrollbars
- result.getScrollPane().setEnabled(false);
- result.getScrollPane().setHorizontalScrollBar(null);
- result.getScrollPane().setVerticalScrollBar(null);
- result.getScrollPane().setScrollBarVisibility(ScrollPane.NEVER);
- // result.getScrollPane().getViewport().setContentsTracksHeight(true);
- return result;
+ return super.createFigure();
}
/**
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/InterruptibleActivityRegionInterruptibleActivityRegionContentCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/InterruptibleActivityRegionInterruptibleActivityRegionContentCompartmentEditPart.java
index 51902e40cb7..d7ce81e2dcb 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/InterruptibleActivityRegionInterruptibleActivityRegionContentCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/InterruptibleActivityRegionInterruptibleActivityRegionContentCompartmentEditPart.java
@@ -14,7 +14,6 @@
package org.eclipse.papyrus.uml.diagram.activity.edit.parts;
import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.ScrollPane;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.draw2d.geometry.Rectangle;
@@ -22,16 +21,15 @@ import org.eclipse.emf.common.notify.Notification;
import org.eclipse.gef.EditPart;
import org.eclipse.gef.GraphicalEditPart;
import org.eclipse.gef.Request;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.diagram.ui.figures.ResizableCompartmentFigure;
import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentSemanticEditPolicy;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.activity.activitygroup.editpolicy.InterruptibleActivityRegionCompartmentCreationEditPolicy;
+import org.eclipse.papyrus.uml.diagram.activity.edit.part.ShapeCompartmentWithoutScrollbarsEditPart;
import org.eclipse.papyrus.uml.diagram.activity.edit.policies.ActivityGroupCustomDragAndDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.activity.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.activity.part.Messages;
@@ -40,7 +38,7 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
/**
* @generated
*/
-public class InterruptibleActivityRegionInterruptibleActivityRegionContentCompartmentEditPart extends ShapeCompartmentEditPart {
+public class InterruptibleActivityRegionInterruptibleActivityRegionContentCompartmentEditPart extends ShapeCompartmentWithoutScrollbarsEditPart {
/**
* @generated
@@ -63,20 +61,11 @@ public class InterruptibleActivityRegionInterruptibleActivityRegionContentCompar
}
/**
- * @generated NOT (remove the top border,hide scrollbar)
+ * @generated
*/
@Override
public IFigure createFigure() {
- ResizableCompartmentFigure result = (ResizableCompartmentFigure) super.createFigure();
- result.setTitleVisibility(false);
- // remove the top border
- result.setBorder(null);
- // Hide scrollBar
- result.getScrollPane().setEnabled(false);
- result.getScrollPane().setHorizontalScrollBar(null);
- result.getScrollPane().setVerticalScrollBar(null);
- result.getScrollPane().setScrollBarVisibility(ScrollPane.NEVER);
- return result;
+ return super.createFigure();
}
/**
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/LoopNodeStructuredActivityNodeContentCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/LoopNodeStructuredActivityNodeContentCompartmentEditPart.java
index 8cf73f3527d..d89656953f1 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/LoopNodeStructuredActivityNodeContentCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/LoopNodeStructuredActivityNodeContentCompartmentEditPart.java
@@ -14,7 +14,6 @@
package org.eclipse.papyrus.uml.diagram.activity.edit.parts;
import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.ScrollPane;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.draw2d.geometry.Rectangle;
@@ -22,15 +21,14 @@ import org.eclipse.emf.common.notify.Notification;
import org.eclipse.gef.EditPart;
import org.eclipse.gef.GraphicalEditPart;
import org.eclipse.gef.Request;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.diagram.ui.figures.ResizableCompartmentFigure;
import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentSemanticEditPolicy;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
+import org.eclipse.papyrus.uml.diagram.activity.edit.part.ShapeCompartmentWithoutScrollbarsEditPart;
import org.eclipse.papyrus.uml.diagram.activity.edit.policies.ActivityGroupCustomDragAndDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.activity.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.activity.part.Messages;
@@ -39,7 +37,7 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
/**
* @generated
*/
-public class LoopNodeStructuredActivityNodeContentCompartmentEditPart extends ShapeCompartmentEditPart {
+public class LoopNodeStructuredActivityNodeContentCompartmentEditPart extends ShapeCompartmentWithoutScrollbarsEditPart {
/**
* @generated
@@ -62,20 +60,11 @@ public class LoopNodeStructuredActivityNodeContentCompartmentEditPart extends Sh
}
/**
- * @generated NOT (remove the top border,hide scrollbar)
+ * @generated
*/
@Override
public IFigure createFigure() {
- ResizableCompartmentFigure result = (ResizableCompartmentFigure) super.createFigure();
- result.setTitleVisibility(false);
- // remove the top border
- result.setBorder(null);
- // Hide scrollBar
- result.getScrollPane().setEnabled(false);
- result.getScrollPane().setHorizontalScrollBar(null);
- result.getScrollPane().setVerticalScrollBar(null);
- result.getScrollPane().setScrollBarVisibility(ScrollPane.NEVER);
- return result;
+ return super.createFigure();
}
/**
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/SequenceNodeStructuredActivityNodeContentCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/SequenceNodeStructuredActivityNodeContentCompartmentEditPart.java
index 7132964e686..a52e3d67ee6 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/SequenceNodeStructuredActivityNodeContentCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/SequenceNodeStructuredActivityNodeContentCompartmentEditPart.java
@@ -14,7 +14,6 @@
package org.eclipse.papyrus.uml.diagram.activity.edit.parts;
import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.ScrollPane;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.draw2d.geometry.Rectangle;
@@ -22,15 +21,14 @@ import org.eclipse.emf.common.notify.Notification;
import org.eclipse.gef.EditPart;
import org.eclipse.gef.GraphicalEditPart;
import org.eclipse.gef.Request;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.diagram.ui.figures.ResizableCompartmentFigure;
import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentSemanticEditPolicy;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
+import org.eclipse.papyrus.uml.diagram.activity.edit.part.ShapeCompartmentWithoutScrollbarsEditPart;
import org.eclipse.papyrus.uml.diagram.activity.edit.policies.ActivityGroupCustomDragAndDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.activity.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.activity.part.Messages;
@@ -39,7 +37,7 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
/**
* @generated
*/
-public class SequenceNodeStructuredActivityNodeContentCompartmentEditPart extends ShapeCompartmentEditPart {
+public class SequenceNodeStructuredActivityNodeContentCompartmentEditPart extends ShapeCompartmentWithoutScrollbarsEditPart {
/**
* @generated
@@ -62,20 +60,11 @@ public class SequenceNodeStructuredActivityNodeContentCompartmentEditPart extend
}
/**
- * @generated NOT (remove the top border,hide scrollbar)
+ * @generated
*/
@Override
public IFigure createFigure() {
- ResizableCompartmentFigure result = (ResizableCompartmentFigure) super.createFigure();
- result.setTitleVisibility(false);
- // remove the top border
- result.setBorder(null);
- // Hide scrollBar
- result.getScrollPane().setEnabled(false);
- result.getScrollPane().setHorizontalScrollBar(null);
- result.getScrollPane().setVerticalScrollBar(null);
- result.getScrollPane().setScrollBarVisibility(ScrollPane.NEVER);
- return result;
+ return super.createFigure();
}
/**
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/StructuredActivityNodeStructuredActivityNodeContentCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/StructuredActivityNodeStructuredActivityNodeContentCompartmentEditPart.java
index 6e4223c29fe..2cc547317f8 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/StructuredActivityNodeStructuredActivityNodeContentCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/StructuredActivityNodeStructuredActivityNodeContentCompartmentEditPart.java
@@ -14,7 +14,6 @@
package org.eclipse.papyrus.uml.diagram.activity.edit.parts;
import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.ScrollPane;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.draw2d.geometry.Rectangle;
@@ -22,15 +21,14 @@ import org.eclipse.emf.common.notify.Notification;
import org.eclipse.gef.EditPart;
import org.eclipse.gef.GraphicalEditPart;
import org.eclipse.gef.Request;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.diagram.ui.figures.ResizableCompartmentFigure;
import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentSemanticEditPolicy;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
+import org.eclipse.papyrus.uml.diagram.activity.edit.part.ShapeCompartmentWithoutScrollbarsEditPart;
import org.eclipse.papyrus.uml.diagram.activity.edit.policies.ActivityGroupCustomDragAndDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.activity.edit.policies.RemoveOrphanViewPolicy;
import org.eclipse.papyrus.uml.diagram.activity.part.Messages;
@@ -39,7 +37,7 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
/**
* @generated
*/
-public class StructuredActivityNodeStructuredActivityNodeContentCompartmentEditPart extends ShapeCompartmentEditPart {
+public class StructuredActivityNodeStructuredActivityNodeContentCompartmentEditPart extends ShapeCompartmentWithoutScrollbarsEditPart {
/**
* @generated
@@ -62,20 +60,11 @@ public class StructuredActivityNodeStructuredActivityNodeContentCompartmentEditP
}
/**
- * @generated NOT (remove the top border,hide scrollbar)
+ * @generated
*/
@Override
public IFigure createFigure() {
- ResizableCompartmentFigure result = (ResizableCompartmentFigure) super.createFigure();
- result.setTitleVisibility(false);
- // remove the top border
- result.setBorder(null);
- // Hide scrollBar
- result.getScrollPane().setEnabled(false);
- result.getScrollPane().setHorizontalScrollBar(null);
- result.getScrollPane().setVerticalScrollBar(null);
- result.getScrollPane().setScrollBarVisibility(ScrollPane.NEVER);
- return result;
+ return super.createFigure();
}
/**
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/edit/part/AbstractAssociationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/edit/part/AbstractAssociationEditPart.java
index 8ac8c8f1f08..0ffc4d324d8 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/edit/part/AbstractAssociationEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/edit/part/AbstractAssociationEditPart.java
@@ -1,172 +1,175 @@
-/*****************************************************************************
- * Copyright (c) 2009 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.diagram.clazz.custom.edit.part;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.clazz.custom.figure.AssociationFigure;
-import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart;
-import org.eclipse.uml2.uml.AggregationKind;
-import org.eclipse.uml2.uml.Association;
-import org.eclipse.uml2.uml.Element;
-import org.eclipse.uml2.uml.Property;
-
-/**
- * this a abstract editpart use to add listeners
- */
-public abstract class AbstractAssociationEditPart extends UMLConnectionNodeEditPart {
-
- protected static final String ASSOCIATION_END_LISTENERS_SOURCE = "AssociationEndListenersSource";
-
- protected static final String ASSOCIATION_END_LISTENERS_TARGET = "AssociationEndListenersTarget";
-
- public AbstractAssociationEditPart(View view) {
- super(view);
- }
-
- /**
- *
- * {@inheritDoc}
- */
- @Override
- public void activate() {
- super.activate();
- addAssociationEndListeners();
- }
-
- /**
- * this methods add listeners on targets and sources
- */
- protected void addAssociationEndListeners() {
- EObject semanticElement = resolveSemanticElement();
- if (semanticElement instanceof Association) {
- Association association = (Association) semanticElement;
- if (association.getMemberEnds().size() >= 2) {
- EObject sourceEnd = association.getMemberEnds().get(0);
- EObject targetEnd = association.getMemberEnds().get(1);
- addListenerFilter(ASSOCIATION_END_LISTENERS_SOURCE, this, sourceEnd);
- addListenerFilter(ASSOCIATION_END_LISTENERS_TARGET, this, targetEnd);
- }
- }
- }
-
- /**
- *
- * {@inheritDoc}
- */
- @Override
- public void deactivate() {
- removeAssociationEndListeners();
- super.deactivate();
- }
-
- /**
- *
- * {@inheritDoc}
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- super.handleNotificationEvent(event);
- // set the good ends for the association figure
- if (resolveSemanticElement() != null) {
- refreshVisuals();
- }
- }
-
- /**
- *
- * {@inheritDoc}
- */
- @Override
- protected void refreshVisuals() {
- if (resolveSemanticElement() != null) {
- if (getSource() == null || getTarget() == null) {
- return;
- }
- if (!(getSource() instanceof GraphicalEditPart && getTarget() instanceof GraphicalEditPart)) {
- return;
- }
- // FIXME: This is a quick fix to avoid model corruption when an associationClass is drawn between an association and a Class.
- // A better solution would probably be to forbid this behavior. Currently, it is not possible to draw directly an Association Class between
- // an association and a class, but it is possible to retarget an AssociationClass' end to an Association (Which would lead to a diagram corruption)
- if (((GraphicalEditPart) getSource()).resolveSemanticElement() == null || ((GraphicalEditPart) getTarget()).resolveSemanticElement() == null) {
- return;
- }
- Property source = null;
- Property target = null;
- // Get the association
- Element umlElement = getUMLElement();
- if (umlElement instanceof Association) {
- Association association = (Association) getUMLElement();
- assert (association.getMemberEnds().size() >= 2);
- if (association.getMemberEnds() != null && association.getMemberEnds().size() >= 2) {
- if ((association.getMemberEnds().get(0)).getType().equals(((GraphicalEditPart) getSource()).resolveSemanticElement())) {
- source = ((association.getMemberEnds().get(0)));
- target = ((association.getMemberEnds().get(1)));
- } else {
- source = ((association.getMemberEnds().get(1)));
- target = ((association.getMemberEnds().get(0)));
- }
- int sourceType = 0;
- int targetType = 0;
- // to display the dot.
- // owned?
- if (!source.getOwner().equals(resolveSemanticElement())) {
- sourceType += AssociationFigure.owned;
- sourceType += AssociationFigure.navigable;
- }
- if (!target.getOwner().equals(resolveSemanticElement())) {
- targetType += AssociationFigure.owned;
- targetType += AssociationFigure.navigable;
- }
- // aggregation? for it the opposite is changed
- if (source.getAggregation() == AggregationKind.SHARED_LITERAL) {
- targetType += AssociationFigure.aggregation;
- }
- if (target.getAggregation() == AggregationKind.SHARED_LITERAL) {
- sourceType += AssociationFigure.aggregation;
- }
- // composite? for it the opposite is changed
- if (source.getAggregation() == AggregationKind.COMPOSITE_LITERAL) {
- targetType += AssociationFigure.composition;
- }
- if (target.getAggregation() == AggregationKind.COMPOSITE_LITERAL) {
- sourceType += AssociationFigure.composition;
- }
- // navigable?
- if (association.getNavigableOwnedEnds().contains(source)) {
- sourceType += AssociationFigure.navigable;
- }
- if (association.getNavigableOwnedEnds().contains(target)) {
- targetType += AssociationFigure.navigable;
- }
- if (getPrimaryShape() instanceof AssociationFigure) {
- ((AssociationFigure) getPrimaryShape()).setEnd(sourceType, targetType);
- }
- }
- }
- }
- super.refreshVisuals();
- }
-
- /**
- * this method is used to remove listener on ends
- */
- protected void removeAssociationEndListeners() {
- removeListenerFilter(ASSOCIATION_END_LISTENERS_SOURCE);
- removeListenerFilter(ASSOCIATION_END_LISTENERS_TARGET);
- }
-}
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ * Benoit Maggi (CEA LIST) - Bug 468026
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.diagram.clazz.custom.edit.part;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.uml.diagram.clazz.custom.figure.AssociationFigure;
+import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.uml2.uml.AggregationKind;
+import org.eclipse.uml2.uml.Association;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.Property;
+import org.eclipse.uml2.uml.Type;
+
+/**
+ * this abstract editpart is used to add listeners
+ */
+public abstract class AbstractAssociationEditPart extends UMLConnectionNodeEditPart {
+
+ protected static final String ASSOCIATION_END_LISTENERS_SOURCE = "AssociationEndListenersSource"; //$NON-NLS-1$
+
+ protected static final String ASSOCIATION_END_LISTENERS_TARGET = "AssociationEndListenersTarget"; //$NON-NLS-1$
+
+ public AbstractAssociationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ *
+ * {@inheritDoc}
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addAssociationEndListeners();
+ }
+
+ /**
+ * this methods add listeners on targets and sources
+ */
+ protected void addAssociationEndListeners() {
+ EObject semanticElement = resolveSemanticElement();
+ if (semanticElement instanceof Association) {
+ Association association = (Association) semanticElement;
+ if (association.getMemberEnds().size() >= 2) {
+ EObject sourceEnd = association.getMemberEnds().get(0);
+ EObject targetEnd = association.getMemberEnds().get(1);
+ addListenerFilter(ASSOCIATION_END_LISTENERS_SOURCE, this, sourceEnd);
+ addListenerFilter(ASSOCIATION_END_LISTENERS_TARGET, this, targetEnd);
+ }
+ }
+ }
+
+ /**
+ *
+ * {@inheritDoc}
+ */
+ @Override
+ public void deactivate() {
+ removeAssociationEndListeners();
+ super.deactivate();
+ }
+
+ /**
+ *
+ * {@inheritDoc}
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+ // set the good ends for the association figure
+ if (resolveSemanticElement() != null) {
+ refreshVisuals();
+ }
+ }
+
+ /**
+ *
+ * {@inheritDoc}
+ */
+ @Override
+ protected void refreshVisuals() {
+ if (resolveSemanticElement() != null) {
+ if (getSource() == null || getTarget() == null) {
+ return;
+ }
+ if (!(getSource() instanceof GraphicalEditPart && getTarget() instanceof GraphicalEditPart)) {
+ return;
+ }
+ // FIXME: This is a quick fix to avoid model corruption when an associationClass is drawn between an association and a Class.
+ // A better solution would probably be to forbid this behavior. Currently, it is not possible to draw directly an Association Class between
+ // an association and a class, but it is possible to retarget an AssociationClass' end to an Association (Which would lead to a diagram corruption)
+ if (((GraphicalEditPart) getSource()).resolveSemanticElement() == null || ((GraphicalEditPart) getTarget()).resolveSemanticElement() == null) {
+ return;
+ }
+ Property source = null;
+ Property target = null;
+ // Get the association
+ Element umlElement = getUMLElement();
+ if (umlElement instanceof Association) {
+ Association association = (Association) getUMLElement();
+ assert (association.getMemberEnds().size() >= 2);
+ if (association.getMemberEnds() != null && association.getMemberEnds().size() >= 2) {
+ Property firstProperty = association.getMemberEnds().get(0);
+ Type firstPropertyType = firstProperty.getType();
+ if (firstPropertyType!= null && firstPropertyType.equals(((GraphicalEditPart) getSource()).resolveSemanticElement())) {
+ source = (firstProperty);
+ target = ((association.getMemberEnds().get(1)));
+ } else {
+ source = ((association.getMemberEnds().get(1)));
+ target = (firstProperty);
+ }
+ int sourceType = 0;
+ int targetType = 0;
+ // to display the dot.
+ // owned?
+ if (!source.getOwner().equals(resolveSemanticElement())) {
+ sourceType += AssociationFigure.owned;
+ sourceType += AssociationFigure.navigable;
+ }
+ if (!target.getOwner().equals(resolveSemanticElement())) {
+ targetType += AssociationFigure.owned;
+ targetType += AssociationFigure.navigable;
+ }
+ // aggregation? for it the opposite is changed
+ if (source.getAggregation() == AggregationKind.SHARED_LITERAL) {
+ targetType += AssociationFigure.aggregation;
+ }
+ if (target.getAggregation() == AggregationKind.SHARED_LITERAL) {
+ sourceType += AssociationFigure.aggregation;
+ }
+ // composite? for it the opposite is changed
+ if (source.getAggregation() == AggregationKind.COMPOSITE_LITERAL) {
+ targetType += AssociationFigure.composition;
+ }
+ if (target.getAggregation() == AggregationKind.COMPOSITE_LITERAL) {
+ sourceType += AssociationFigure.composition;
+ }
+ // navigable?
+ if (association.getNavigableOwnedEnds().contains(source)) {
+ sourceType += AssociationFigure.navigable;
+ }
+ if (association.getNavigableOwnedEnds().contains(target)) {
+ targetType += AssociationFigure.navigable;
+ }
+ if (getPrimaryShape() instanceof AssociationFigure) {
+ ((AssociationFigure) getPrimaryShape()).setEnd(sourceType, targetType);
+ }
+ }
+ }
+ }
+ super.refreshVisuals();
+ }
+
+ /**
+ * this method is used to remove listener on ends
+ */
+ protected void removeAssociationEndListeners() {
+ removeListenerFilter(ASSOCIATION_END_LISTENERS_SOURCE);
+ removeListenerFilter(ASSOCIATION_END_LISTENERS_TARGET);
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/policies/ClassDiagramDragDropEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/policies/ClassDiagramDragDropEditPolicy.java
index 8947345a8da..3ff36c1c451 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/policies/ClassDiagramDragDropEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/policies/ClassDiagramDragDropEditPolicy.java
@@ -19,7 +19,6 @@ import java.util.Iterator;
import java.util.List;
import java.util.Set;
-import org.eclipse.draw2d.geometry.Point;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gef.EditPart;
import org.eclipse.gef.commands.Command;
@@ -33,7 +32,6 @@ import org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ListCompartmentEditPart;
import org.eclipse.gmf.runtime.diagram.ui.requests.DropObjectsRequest;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.gmf.runtime.notation.Diagram;
@@ -442,39 +440,4 @@ public class ClassDiagramDragDropEditPolicy extends CommonDiagramDragDropEditPol
return cmd;
}
}
-
- /**
- * @Overrided org.eclipse.papyrus.uml.diagram.common.editpolicies.CommonDiagramDragDropEditPolicy to resolve cause of repeated definition
- * of attributes shown outside classes when dragged back
- *
- * @param hostEP
- * The host edit part which will be the parent of the new node
- * @param semanticHint
- * the semantic hint of the view to create
- * @param location
- * the drop location
- * @param droppedObject
- * the object to drop
- * @param request
- * the drop request (use to test ctrl key)
- * @return the creation node command
- */
- @Override
- protected ICommand getDefaultDropNodeCommand(EditPart hostEP, String semanticHint, Point absoluteLocation, EObject droppedObject, DropObjectsRequest request) {
- GraphicalEditPart parent = (GraphicalEditPart) getHost();
- if (parent instanceof ListCompartmentEditPart) {
- @SuppressWarnings("unchecked")
- List<EditPart> allChildren = parent.getChildren();
- for (EditPart nextChild : allChildren) {
- if (!(nextChild instanceof GraphicalEditPart)) {
- continue;
- }
- EObject nextChildSemantic = ((GraphicalEditPart) nextChild).resolveSemanticElement();
- if (nextChildSemantic == droppedObject) {
- return org.eclipse.gmf.runtime.common.core.command.UnexecutableCommand.INSTANCE;
- }
- }
- }
- return super.getDefaultDropNodeCommand(hostEP, semanticHint, absoluteLocation, droppedObject, request);
- }
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/model/UMLRepresentationKind.xmi b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/model/UMLRepresentationKind.xmi
index c4e23f63b60..d65b25989b5 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/model/UMLRepresentationKind.xmi
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/model/UMLRepresentationKind.xmi
@@ -28,5 +28,13 @@
editPartQualifiedName="org.eclipse.papyrus.uml.diagram.common.editparts.BorderItemNameEditPart"
name="NameLabel for BorderItem"
viewFactory="org.eclipse.gmf.runtime.diagram.ui.view.factories.optimal.ShapeViewFactory"/>
+ <representationkinds
+ editPartQualifiedName="org.eclipse.papyrus.uml.diagram.common.editparts.ContainerNodeEditPart"
+ name="Container as a Node"
+ viewFactory="org.eclipse.papyrus.gmf.diagram.common.factory.ShapeViewFactory"/>
+ <representationkinds
+ editPartQualifiedName="org.eclipse.papyrus.uml.diagram.common.editparts.EditableLabelForNodeEditPart"
+ name="Editable Label representing the name of a Node"
+ viewFactory="org.eclipse.papyrus.gmf.diagram.common.factory.ShapeViewFactory"/>
</libraries>
</expansionmodel:DiagramExpansion>
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/Activator.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/Activator.java
index 0fe6d5fb10f..e1747112cc7 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/Activator.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/Activator.java
@@ -149,7 +149,7 @@ public class Activator extends AbstractUIPlugin {
* @return the image descriptor.
*/
public ImageDescriptor getItemImageDescriptor(Object item) {
- IItemLabelProvider labelProvider = (IItemLabelProvider) adapterFactory.adapt(item, IItemLabelProvider.class);
+ IItemLabelProvider labelProvider = (IItemLabelProvider) getItemProvidersAdapterFactory().adapt(item, IItemLabelProvider.class);
if (labelProvider != null) {
return ExtendedImageRegistry.getInstance().getImageDescriptor(labelProvider.getImage(item));
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/ContainerNodeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/ContainerNodeEditPart.java
new file mode 100644
index 00000000000..a78007adfbc
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/ContainerNodeEditPart.java
@@ -0,0 +1,160 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.common.editparts;
+
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.BasicCompartment;
+import org.eclipse.gmf.runtime.notation.Edge;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.GetChildLayoutEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.RoundedCompartmentFigure;
+import org.eclipse.swt.graphics.Color;
+
+public class ContainerNodeEditPart extends RoundedCompartmentEditPart {
+
+
+ protected IFigure contentPane;
+
+ protected IFigure primaryShape;
+
+ public ContainerNodeEditPart(View view) {
+ super(view);
+ }
+
+ @Override
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new GetChildLayoutEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ /*
+ * when a node have external node labels, the methods refreshChildren() remove the EditPart corresponding to the Label from the EditPart
+ * Registry. After that, we can't reset the visibility to true (using the Show/Hide Label Action)!
+ */
+ if (NotationPackage.eINSTANCE.getView_Visible().equals(event.getFeature())) {
+ Object notifier = event.getNotifier();
+ List<?> modelChildren = ((View) getModel()).getChildren();
+ if (false == notifier instanceof Edge
+ && false == notifier instanceof BasicCompartment) {
+ if (modelChildren.contains(event.getNotifier())) {
+ return;
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+
+ }
+
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new RoundedCompartmentFigure();
+ }
+
+ @Override
+ public RoundedCompartmentFigure getPrimaryShape() {
+ return (RoundedCompartmentFigure) primaryShape;
+ }
+
+
+
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(100, 100);
+ return result;
+ }
+
+ @Override
+ protected NodeFigure createMainFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/EditableLabelForNodeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/EditableLabelForNodeEditPart.java
new file mode 100644
index 00000000000..85147591c21
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/EditableLabelForNodeEditPart.java
@@ -0,0 +1,737 @@
+/**
+ * Copyright (c) 2015 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.common.editparts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.CellEditorLocator;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.directedit.locator.CellEditorLocatorAccess;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.emf.appearance.helper.AppearanceHelper;
+import org.eclipse.papyrus.infra.emf.appearance.helper.VisualInformationPapyrusConstants;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.PapyrusWrappingLabel;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.IMultilineEditableFigure;
+import org.eclipse.papyrus.uml.diagram.common.locator.MultilineCellEditorLocator;
+import org.eclipse.papyrus.uml.diagram.common.parser.NamedElementLabelParser;
+import org.eclipse.papyrus.uml.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+public class EditableLabelForNodeEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+
+ private DirectEditManager manager;
+
+ private IParser parser;
+
+ private List<?> parserElements;
+
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ protected IDirectEditorConfiguration configuration;
+
+ public EditableLabelForNodeEditPart(View view) {
+ super(view);
+ }
+
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ public void setLabel(IFigure
+ figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if(parserElement == null) {
+ return null;
+ }
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for(View view : views) {
+ if(AppearanceHelper.showElementIcon(view)) {
+ return org.eclipse.papyrus.uml.diagram.common.Activator.getDefault().getImage(parserElement.eClass());
+ }
+ }
+ return null;
+ }
+
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid =
+ (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ public IParser getParser() {
+ if(parser == null) {
+ parser = new NamedElementLabelParser();
+
+ }
+ return parser;
+ }
+
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this), getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ public static CellEditorLocator getTextCellEditorLocator(ITextAwareEditPart source) {
+ if (source.getFigure() instanceof IMultilineEditableFigure) {
+ return new MultilineCellEditorLocator(
+ (IMultilineEditableFigure) source.getFigure());
+ }
+ else {
+ return CellEditorLocatorAccess.INSTANCE.getTextCellEditorLocator(source);
+
+ }
+ }
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this, MultilineLabelDirectEditManager.getTextCellEditorClass(this),getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ }
+ else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ }
+ else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ protected void refreshUnderline() {
+ FontStyle style =
+ (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ }
+ else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ protected void refreshStrikeThrough() {
+ FontStyle style =
+ (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ @Override
+ protected void refreshFont() {
+ FontStyle style =
+ (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
+ (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
+ .eClass().getInstanceClassName());
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
+ NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
+ NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
+ NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser =
+ (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if (event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstants.DISPLAY_NAMELABELICON.equals(((EAnnotation) event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ protected IFigure createFigure() {
+ IFigure label=null;
+ if(getParent() instanceof ContainerNodeEditPart){
+ label= ((ContainerNodeEditPart)getParent()).getPrimaryShape().getNameLabel();
+ }
+ else{
+ label = createFigurePrim();
+ }
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ protected IFigure createFigurePrim() {
+ return new PapyrusWrappingLabel();
+ }
+
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/UMLNodeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/UMLNodeEditPart.java
index edad8f3d61d..217df2b72bb 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/UMLNodeEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/UMLNodeEditPart.java
@@ -226,7 +226,8 @@ public abstract class UMLNodeEditPart extends NodeEditPart implements IUMLEditPa
//look for accepted element in compartments to find good compartment
for (String compartmentHint : possibleChildreenIDs) {
List<String> compartmentChildreenIDs=diagramExpansionRegistry.mapChildreen.get(diagramType).parentChildrenRelation.get(compartmentHint);
- if( compartmentChildreenIDs.contains(elementHint)){
+
+ if( compartmentChildreenIDs!=null &&compartmentChildreenIDs.contains(elementHint)){
//find the edipart that can respond to this accepted hint
List<?> subEditParts=getChildren();
for (Object object : subEditParts) {
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/CommonDiagramDragDropEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/CommonDiagramDragDropEditPolicy.java
index 12389e39c95..27c43400eed 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/CommonDiagramDragDropEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/CommonDiagramDragDropEditPolicy.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2009, 2014 CEA LIST and others.
+ * Copyright (c) 2009, 2015 CEA LIST, Christian W. Damus, and others.
*
*
* All rights reserved. This program and the accompanying materials
@@ -13,6 +13,7 @@
* Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - add the line ViewServiceUtil.forceLoad();
* Christian W. Damus (CEA) - bug 430726
* Benoit Maggi (CEA LIST) benoit.maggi@cea.fr - bug 450341
+ * Christian W. Damus - bug 450944
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.common.editpolicies;
@@ -20,7 +21,6 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
-import java.util.Set;
import org.eclipse.core.commands.operations.IUndoableOperation;
import org.eclipse.core.runtime.IAdaptable;
@@ -45,7 +45,7 @@ import org.eclipse.gmf.runtime.diagram.ui.editparts.CompartmentEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DiagramDragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ListCompartmentEditPart;
import org.eclipse.gmf.runtime.diagram.ui.requests.CreateConnectionViewRequest;
import org.eclipse.gmf.runtime.diagram.ui.requests.CreateConnectionViewRequest.ConnectionViewDescriptor;
import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
@@ -58,15 +58,15 @@ import org.eclipse.gmf.runtime.notation.Diagram;
import org.eclipse.gmf.runtime.notation.Node;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.commands.wrappers.CommandProxyWithResult;
+import org.eclipse.papyrus.infra.gmfdiag.common.adapter.SemanticAdapter;
import org.eclipse.papyrus.infra.gmfdiag.common.commands.CommonDeferredCreateConnectionViewCommand;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.AbstractDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramEditPartsUtil;
+import org.eclipse.papyrus.infra.gmfdiag.common.utils.ViewServiceUtil;
import org.eclipse.papyrus.uml.diagram.common.commands.DeferredCreateCommand;
-import org.eclipse.papyrus.infra.gmfdiag.common.adapter.SemanticAdapter;
import org.eclipse.papyrus.uml.diagram.common.helper.Element2IAdaptableRegistryHelper;
import org.eclipse.papyrus.uml.diagram.common.helper.ILinkMappingHelper;
import org.eclipse.papyrus.uml.diagram.common.listeners.DropTargetListener;
-import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramEditPartsUtil;
-import org.eclipse.papyrus.infra.gmfdiag.common.utils.ViewServiceUtil;
import org.eclipse.swt.dnd.DND;
import org.eclipse.uml2.uml.Comment;
import org.eclipse.uml2.uml.Constraint;
@@ -259,10 +259,14 @@ public abstract class CommonDiagramDragDropEditPolicy extends AbstractDiagramDra
protected IUndoableOperation getDropObjectCommand(DropObjectsRequest dropRequest, EObject droppedObject) {
Point location = dropRequest.getLocation().getCopy();
-
- int nodeVISUALID = getNodeVisualID(((IGraphicalEditPart) getHost()).getNotationView(), droppedObject);
+ IGraphicalEditPart parent = (IGraphicalEditPart) getHost();
+ boolean isParentDiagram = getHost().getModel() instanceof Diagram;
+ int nodeVISUALID = getNodeVisualID(parent.getNotationView(), droppedObject);
int linkVISUALID = getLinkWithClassVisualID(droppedObject);
if (getSpecificDrop().contains(nodeVISUALID) || getSpecificDrop().contains(linkVISUALID)) {
+ if (!isParentDiagram && !isDropNonCanvasNodeAllowed(parent, droppedObject)) {
+ return org.eclipse.gmf.runtime.common.core.command.UnexecutableCommand.INSTANCE;
+ }
Command specificDropCommand = getSpecificDropCommand(dropRequest, (Element) droppedObject, nodeVISUALID, linkVISUALID);
CompositeCommand cc = new CompositeCommand("Drop command");
cc.compose(new CommandProxy(specificDropCommand));
@@ -291,9 +295,9 @@ public abstract class CommonDiagramDragDropEditPolicy extends AbstractDiagramDra
// Restrict the default node creation to the following cases:
// . Take the containment relationship into consideration
// . Release the constraint when GraphicalParent is a diagram
- if (getHost().getModel() instanceof Diagram) {
+ if (isParentDiagram) {
return getDefaultDropNodeCommand(nodeVISUALID, location, droppedObject, dropRequest);
- } else if ((graphicalParent instanceof Element) && ((Element) graphicalParent).getOwnedElements().contains(droppedObject)) {
+ } else if (((graphicalParent instanceof Element) && ((Element) graphicalParent).getOwnedElements().contains(droppedObject)) && isDropNonCanvasNodeAllowed(parent, droppedObject)) {
return getDefaultDropNodeCommand(nodeVISUALID, location, droppedObject, dropRequest);
}
return org.eclipse.gmf.runtime.common.core.command.UnexecutableCommand.INSTANCE;
@@ -316,6 +320,38 @@ public abstract class CommonDiagramDragDropEditPolicy extends AbstractDiagramDra
}
/**
+ * Is dropping allowed for the non-canvas parent
+ *
+ * @param parent
+ * @param droppedObject
+ * @return true or false
+ */
+ protected boolean isDropNonCanvasNodeAllowed(IGraphicalEditPart parent, EObject droppedObject) {
+ if (isListCompartmentContainsDroppedObject(parent, droppedObject)) {
+ return false;
+ }
+ return true;
+ }
+
+ private boolean isListCompartmentContainsDroppedObject(IGraphicalEditPart parent, EObject droppedObject) {
+ if (false == parent instanceof ListCompartmentEditPart) {
+ return false;
+ }
+ @SuppressWarnings("unchecked")
+ List<EditPart> childs = parent.getChildren();
+ for (EditPart nextChild : childs) {
+ if (!(nextChild instanceof GraphicalEditPart)) {
+ continue;
+ }
+ EObject nextChildSemantic = ((GraphicalEditPart) nextChild).resolveSemanticElement();
+ if (nextChildSemantic == droppedObject) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ /**
* Get a command proxy from the compound command
*
* @param cc
@@ -556,7 +592,7 @@ public abstract class CommonDiagramDragDropEditPolicy extends AbstractDiagramDra
// set the viewdescriptor as result
// it then can be used as an adaptable to retrieve the View
ICommand result = new CommandProxyWithResult(command, descriptor);
- if (droppedObject instanceof Element){
+ if (droppedObject instanceof Element) {
getElement2IAdaptableRegistryHelper().registerAdapter((Element) droppedObject, (IAdaptable) result.getCommandResult().getReturnValue());
}
return result;
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationBranchEndEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationBranchEndEditPolicy.java
index e74a056a9de..1c7ae487c37 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationBranchEndEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationBranchEndEditPolicy.java
@@ -14,6 +14,7 @@
package org.eclipse.papyrus.uml.diagram.common.editpolicies;
import org.eclipse.papyrus.uml.diagram.common.helper.AssociationBranchEndLabelHelper;
+import org.eclipse.papyrus.uml.diagram.common.helper.PropertyLabelHelper;
/**
* Mask Managed label edit policy for association ends (target role)
@@ -34,6 +35,15 @@ public class DisplayAssociationBranchEndEditPolicy extends DisplayAssociationEnd
*/
public DisplayAssociationBranchEndEditPolicy() {
super();
- propertyLabelHelper = AssociationBranchEndLabelHelper.getInstance();
+ }
+
+ /**
+ * @see org.eclipse.papyrus.uml.diagram.common.editpolicies.DisplayAssociationEndEditPolicy#createPropertyLabelHelper()
+ *
+ * @return
+ */
+ @Override
+ protected PropertyLabelHelper createPropertyLabelHelper() {
+ return AssociationBranchEndLabelHelper.getInstance();
}
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndEditPolicy.java
index 8338126ed98..ac1549752bf 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndEditPolicy.java
@@ -34,16 +34,17 @@ import org.eclipse.uml2.uml.UMLPackage;
/**
* I is used to display the label of an association branch
*/
-public class DisplayAssociationEndEditPolicy extends AbstractMaskManagedEditPolicy {
+public abstract class DisplayAssociationEndEditPolicy extends AbstractMaskManagedEditPolicy {
/** label helper for the property */
- protected PropertyLabelHelper propertyLabelHelper;
+ private final PropertyLabelHelper propertyLabelHelper;
/**
* Creates a new PropertyLabelEditPolicy
*/
public DisplayAssociationEndEditPolicy() {
super();
+ propertyLabelHelper = createPropertyLabelHelper();
}
@Override
@@ -160,7 +161,7 @@ public class DisplayAssociationEndEditPolicy extends AbstractMaskManagedEditPoli
break;
case UMLPackage.PROPERTY__TYPE:
switch (notification.getEventType()) {
- // if it is added => adds listener to the type element
+ // if it is added => adds listener to the type element
case Notification.ADD:
getDiagramEventBroker().addNotificationListener((EObject) notification.getNewValue(), this);
refreshDisplay();
@@ -250,6 +251,9 @@ public class DisplayAssociationEndEditPolicy extends AbstractMaskManagedEditPoli
getDiagramEventBroker().removeNotificationListener(getUMLElement().getType(), this);
}
}
+
+ protected abstract PropertyLabelHelper createPropertyLabelHelper();
+
// /**
// * {@inheritDoc}
// */
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndSourceEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndSourceEditPolicy.java
index a1e80050618..9b4dc1e0b52 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndSourceEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndSourceEditPolicy.java
@@ -14,6 +14,7 @@
package org.eclipse.papyrus.uml.diagram.common.editpolicies;
import org.eclipse.papyrus.uml.diagram.common.helper.AssociationEndSourceLabelHelper;
+import org.eclipse.papyrus.uml.diagram.common.helper.PropertyLabelHelper;
/**
* Mask Managed label edit policy for association ends (source role)
@@ -34,6 +35,15 @@ public class DisplayAssociationEndSourceEditPolicy extends DisplayAssociationEnd
*/
public DisplayAssociationEndSourceEditPolicy() {
super();
- propertyLabelHelper = AssociationEndSourceLabelHelper.getInstance();
+ }
+
+ /**
+ * @see org.eclipse.papyrus.uml.diagram.common.editpolicies.DisplayAssociationEndEditPolicy#createPropertyLabelHelper()
+ *
+ * @return
+ */
+ @Override
+ protected PropertyLabelHelper createPropertyLabelHelper() {
+ return AssociationEndSourceLabelHelper.getInstance();
}
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndSourceMultiplicityEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndSourceMultiplicityEditPolicy.java
index cc0c6ac55e4..56ea86d29b8 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndSourceMultiplicityEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndSourceMultiplicityEditPolicy.java
@@ -16,6 +16,8 @@ package org.eclipse.papyrus.uml.diagram.common.editpolicies;
import java.util.Collection;
import java.util.Collections;
+import org.eclipse.papyrus.uml.diagram.common.helper.AssociationEndSourceMultiplicityLabelHelper;
+import org.eclipse.papyrus.uml.diagram.common.helper.PropertyLabelHelper;
import org.eclipse.papyrus.uml.tools.utils.ICustomAppearance;
/**
@@ -31,6 +33,16 @@ public class DisplayAssociationEndSourceMultiplicityEditPolicy extends DisplayAs
*/
@Override
public Collection<String> getDefaultDisplayValue() {
- return Collections.singleton(ICustomAppearance.DISP_MULTIPLICITY);
+ return Collections.singleton(ICustomAppearance.DISP_MULTIPLICITY_NO_BRACKETS);
+ }
+
+ /**
+ * @see org.eclipse.papyrus.uml.diagram.common.editpolicies.DisplayAssociationEndEditPolicy#createPropertyLabelHelper()
+ *
+ * @return
+ */
+ @Override
+ protected PropertyLabelHelper createPropertyLabelHelper() {
+ return AssociationEndSourceMultiplicityLabelHelper.getInstance();
}
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndTargetEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndTargetEditPolicy.java
index 23e0ede0713..d31b81588dd 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndTargetEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndTargetEditPolicy.java
@@ -14,6 +14,7 @@
package org.eclipse.papyrus.uml.diagram.common.editpolicies;
import org.eclipse.papyrus.uml.diagram.common.helper.AssociationEndTargetLabelHelper;
+import org.eclipse.papyrus.uml.diagram.common.helper.PropertyLabelHelper;
/**
* Mask Managed label edit policy for association ends (target role)
@@ -34,6 +35,15 @@ public class DisplayAssociationEndTargetEditPolicy extends DisplayAssociationEnd
*/
public DisplayAssociationEndTargetEditPolicy() {
super();
- propertyLabelHelper = AssociationEndTargetLabelHelper.getInstance();
+ }
+
+ /**
+ * @see org.eclipse.papyrus.uml.diagram.common.editpolicies.DisplayAssociationEndEditPolicy#createPropertyLabelHelper()
+ *
+ * @return
+ */
+ @Override
+ protected PropertyLabelHelper createPropertyLabelHelper() {
+ return AssociationEndTargetLabelHelper.getInstance();
}
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndTargetMultiplicityEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndTargetMultiplicityEditPolicy.java
index 309ce17ba9e..fb87645288c 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndTargetMultiplicityEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editpolicies/DisplayAssociationEndTargetMultiplicityEditPolicy.java
@@ -16,6 +16,8 @@ package org.eclipse.papyrus.uml.diagram.common.editpolicies;
import java.util.Collection;
import java.util.Collections;
+import org.eclipse.papyrus.uml.diagram.common.helper.AssociationEndTargetMultiplicityLabelHelper;
+import org.eclipse.papyrus.uml.diagram.common.helper.PropertyLabelHelper;
import org.eclipse.papyrus.uml.tools.utils.ICustomAppearance;
/**
@@ -31,6 +33,16 @@ public class DisplayAssociationEndTargetMultiplicityEditPolicy extends DisplayAs
*/
@Override
public Collection<String> getDefaultDisplayValue() {
- return Collections.singleton(ICustomAppearance.DISP_MULTIPLICITY);
+ return Collections.singleton(ICustomAppearance.DISP_MULTIPLICITY_NO_BRACKETS);
+ }
+
+ /**
+ * @see org.eclipse.papyrus.uml.diagram.common.editpolicies.DisplayAssociationEndEditPolicy#createPropertyLabelHelper()
+ *
+ * @return
+ */
+ @Override
+ protected PropertyLabelHelper createPropertyLabelHelper() {
+ return AssociationEndTargetMultiplicityLabelHelper.getInstance();
}
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/AssociationEndSourceLabelHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/AssociationEndSourceLabelHelper.java
index d9a994074c8..dd3045d0d61 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/AssociationEndSourceLabelHelper.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/AssociationEndSourceLabelHelper.java
@@ -1,83 +1,88 @@
-/*****************************************************************************
- * Copyright (c) 2008 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Patrick Tessier (CEA LIST) - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.diagram.common.helper;
-
-import java.util.Iterator;
-
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.gef.GraphicalEditPart;
-import org.eclipse.gmf.runtime.notation.Edge;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.uml2.uml.Association;
-import org.eclipse.uml2.uml.Classifier;
-import org.eclipse.uml2.uml.Property;
-
-/**
- * Helper for labels displaying {@link Property}
- */
-public class AssociationEndSourceLabelHelper extends AssociationEndPropertyLabelHelper {
-
- private static AssociationEndSourceLabelHelper labelHelper;
-
- public static AssociationEndSourceLabelHelper getInstance() {
- if (labelHelper == null) {
- labelHelper = new AssociationEndSourceLabelHelper();
- }
- return labelHelper;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Property getUMLElement(GraphicalEditPart editPart) {
- if ((View) editPart.getModel() != null && ((View) editPart.getModel()).eContainer() != null) {
- if (((Edge) ((View) editPart.getModel()).eContainer()).getSource() == null) {
- return null;
- }
- Classifier source = (Classifier) ((Edge) ((View) editPart.getModel()).eContainer()).getSource().getElement();
- Property propertyToDisplay = null;
- if (((View) editPart.getModel()) != null && (((View) editPart.getModel()).getElement() instanceof Association)) {
- // look for the property that is typed by the classifier
- Iterator<Property> propertiesIterator = ((Association) ((View) editPart.getModel()).getElement()).getMemberEnds().iterator();
- // find the first
- while (propertiesIterator.hasNext() && propertyToDisplay == null) {
- Property currentProperty = propertiesIterator.next();
- if (EcoreUtil.equals(currentProperty.getType(), source)) {
- propertyToDisplay = currentProperty;
- }
- }
- }
- if (propertyToDisplay != null) {
- return propertyToDisplay;
- }
- // /in the case of reorient the property must be not found,
- // so we have to find the property that is different from the source.
- Classifier target = (Classifier) ((Edge) ((View) editPart.getModel()).eContainer()).getSource().getElement();
- if (((View) editPart.getModel()) != null && (((View) editPart.getModel()).getElement() instanceof Association)) {
- // look for the property that is typed by the classifier
- Iterator<Property> propertiesIterator = ((Association) ((View) editPart.getModel()).getElement()).getMemberEnds().iterator();
- // find the last
- while (propertiesIterator.hasNext()) {
- Property currentProperty = propertiesIterator.next();
- if (!EcoreUtil.equals(currentProperty.getType(), target)) {
- propertyToDisplay = currentProperty;
- }
- }
- }
- return propertyToDisplay;
- }
- return null;
- }
-}
+/*****************************************************************************
+ * Copyright (c) 2008 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Patrick Tessier (CEA LIST) - Initial API and implementation
+ * Benoit Maggi (CEA LIST) - Bug 468026
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.diagram.common.helper;
+
+import java.util.Iterator;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.notation.Edge;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.uml2.uml.Association;
+import org.eclipse.uml2.uml.Property;
+
+/**
+ * Helper for labels displaying {@link Property}
+ */
+public class AssociationEndSourceLabelHelper extends AssociationEndPropertyLabelHelper {
+
+ private static AssociationEndSourceLabelHelper labelHelper;
+
+ public static AssociationEndSourceLabelHelper getInstance() {
+ if (labelHelper == null) {
+ labelHelper = new AssociationEndSourceLabelHelper();
+ }
+ return labelHelper;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Property getUMLElement(GraphicalEditPart editPart) {
+ View model = (View) editPart.getModel();
+ if (model != null && model.eContainer() != null) {
+ Edge eContainer = (Edge) model.eContainer();
+ View sourceContainer = eContainer.getSource();
+ if (sourceContainer == null) {
+ return null;
+ }
+
+ Property propertyToDisplay = null;
+ if (model != null && (model.getElement() instanceof Association)) {
+ // look for the property that is typed by the classifier
+ Iterator<Property> propertiesIterator = ((Association) model.getElement()).getMemberEnds().iterator();
+ // find the first
+ EObject source = sourceContainer.getElement();
+ while (propertiesIterator.hasNext() && propertyToDisplay == null) {
+ Property currentProperty = propertiesIterator.next();
+ if (EcoreUtil.equals(currentProperty.getType(), source)) {
+ propertyToDisplay = currentProperty;
+ }
+ }
+ }
+ if (propertyToDisplay != null) {
+ return propertyToDisplay;
+ }
+ // /in the case of reorient the property must be not found,
+ // so we have to find the property that is different from the source.
+
+ if (model != null && (model.getElement() instanceof Association)) {
+ // look for the property that is typed by the classifier
+ Iterator<Property> propertiesIterator = ((Association) model.getElement()).getMemberEnds().iterator();
+ // find the last
+ EObject target = sourceContainer.getElement();
+ while (propertiesIterator.hasNext()) {
+ Property currentProperty = propertiesIterator.next();
+ if (!EcoreUtil.equals(currentProperty.getType(), target)) {
+ propertyToDisplay = currentProperty;
+ }
+ }
+ }
+ return propertyToDisplay;
+ }
+ return null;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/AssociationEndSourceMultiplicityLabelHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/AssociationEndSourceMultiplicityLabelHelper.java
new file mode 100644
index 00000000000..811956e6769
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/AssociationEndSourceMultiplicityLabelHelper.java
@@ -0,0 +1,20 @@
+package org.eclipse.papyrus.uml.diagram.common.helper;
+
+import java.util.Map;
+
+public class AssociationEndSourceMultiplicityLabelHelper extends AssociationEndSourceLabelHelper {
+
+ private static AssociationEndSourceMultiplicityLabelHelper labelHelper;
+
+ public static AssociationEndSourceMultiplicityLabelHelper getInstance() {
+ if (labelHelper == null) {
+ labelHelper = new AssociationEndSourceMultiplicityLabelHelper();
+ }
+ return labelHelper;
+ }
+
+ @Override
+ protected void setupMasks(Map<String, String> masks) {
+ // masks list is empty for the single multiplicity symbol
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/AssociationEndTargetLabelHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/AssociationEndTargetLabelHelper.java
index e8cc9d6f0f3..7b5452f6848 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/AssociationEndTargetLabelHelper.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/AssociationEndTargetLabelHelper.java
@@ -1,88 +1,93 @@
-/*****************************************************************************
- * Copyright (c) 2008 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Patrick Tessier (CEA LIST) - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.diagram.common.helper;
-
-import java.util.Iterator;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.gef.GraphicalEditPart;
-import org.eclipse.gmf.runtime.notation.Edge;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.uml2.uml.Association;
-import org.eclipse.uml2.uml.Classifier;
-import org.eclipse.uml2.uml.Property;
-
-/**
- * Helper for labels displaying {@link Property}
- */
-public class AssociationEndTargetLabelHelper extends AssociationEndPropertyLabelHelper {
-
- private static AssociationEndTargetLabelHelper labelHelper;
-
- public static AssociationEndTargetLabelHelper getInstance() {
- if (labelHelper == null) {
- labelHelper = new AssociationEndTargetLabelHelper();
- }
- return labelHelper;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Property getUMLElement(GraphicalEditPart editPart) {
- if ((View) editPart.getModel() != null && ((View) editPart.getModel()).eContainer() != null) {
- EObject container = ((View) editPart.getModel()).eContainer();
- if (!(container instanceof Edge)) {
- return null; // Happens e.g. when redoing the suppression of an association's end. The association is contained in a ChangeDescription
- }
- if (((Edge) ((View) editPart.getModel()).eContainer()).getTarget() == null) {
- return null;
- }
- Classifier target = (Classifier) ((Edge) ((View) editPart.getModel()).eContainer()).getTarget().getElement();
- Property propertyToDisplay = null;
- if (((View) editPart.getModel()) != null && (((View) editPart.getModel()).getElement() instanceof Association)) {
- // look for the property that is typed by the classifier
- Iterator<Property> propertiesIterator = ((Association) ((View) editPart.getModel()).getElement()).getMemberEnds().iterator();
- // find the last
- while (propertiesIterator.hasNext()) {
- Property currentProperty = propertiesIterator.next();
- if (EcoreUtil.equals(currentProperty.getType(), target)) {
- propertyToDisplay = currentProperty;
- }
- }
- }
- if (propertyToDisplay != null) {
- return propertyToDisplay;
- }
- // /in the case of reorient the property must be not found,
- // so we have to find the property that is different from the source.
- Classifier source = (Classifier) ((Edge) ((View) editPart.getModel()).eContainer()).getSource().getElement();
- if (((View) editPart.getModel()) != null && (((View) editPart.getModel()).getElement() instanceof Association)) {
- // look for the property that is typed by the classifier
- Iterator<Property> propertiesIterator = ((Association) ((View) editPart.getModel()).getElement()).getMemberEnds().iterator();
- // find the last
- while (propertiesIterator.hasNext()) {
- Property currentProperty = propertiesIterator.next();
- if (!EcoreUtil.equals(currentProperty.getType(), source)) {
- propertyToDisplay = currentProperty;
- }
- }
- }
- return propertyToDisplay;
- }
- return null;
- }
-}
+/*****************************************************************************
+ * Copyright (c) 2008 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Patrick Tessier (CEA LIST) - Initial API and implementation
+ * Benoit Maggi (CEA LIST) - Bug 468026
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.diagram.common.helper;
+
+import java.util.Iterator;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.notation.Edge;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.uml2.uml.Association;
+import org.eclipse.uml2.uml.Property;
+
+/**
+ * Helper for labels displaying {@link Property}
+ */
+public class AssociationEndTargetLabelHelper extends AssociationEndPropertyLabelHelper {
+
+ private static AssociationEndTargetLabelHelper labelHelper;
+
+ public static AssociationEndTargetLabelHelper getInstance() {
+ if (labelHelper == null) {
+ labelHelper = new AssociationEndTargetLabelHelper();
+ }
+ return labelHelper;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Property getUMLElement(GraphicalEditPart editPart) {
+ View model = (View) editPart.getModel();
+ if (model != null && model.eContainer() != null) {
+ EObject container = model.eContainer();
+ if (!(container instanceof Edge)) {
+ return null; // Happens e.g. when redoing the suppression of an association's end. The association is contained in a ChangeDescription
+ }
+ Edge eContainer = (Edge) model.eContainer();
+ View targetContainer = eContainer.getTarget();
+ if (targetContainer == null) {
+ return null;
+ }
+
+ Property propertyToDisplay = null;
+ if (model != null && (model.getElement() instanceof Association)) {
+ // look for the property that is typed by the classifier
+ Iterator<Property> propertiesIterator = ((Association) model.getElement()).getMemberEnds().iterator();
+ // find the last
+ EObject element = targetContainer.getElement();
+ while (propertiesIterator.hasNext()) {
+ Property currentProperty = propertiesIterator.next();
+ if (EcoreUtil.equals(currentProperty.getType(), element)) {
+ propertyToDisplay = currentProperty;
+ }
+ }
+ }
+ if (propertyToDisplay != null) {
+ return propertyToDisplay;
+ }
+ // in the case of reorient the property must be not found,
+ // so we have to find the property that is different from the source.
+
+ if (model != null && (model.getElement() instanceof Association)) {
+ // look for the property that is typed by the classifier
+ Iterator<Property> propertiesIterator = ((Association) model.getElement()).getMemberEnds().iterator();
+ // find the last
+ View sourceContainer = eContainer.getSource();
+ EObject element = sourceContainer.getElement();
+ while (propertiesIterator.hasNext()) {
+ Property currentProperty = propertiesIterator.next();
+ if (!EcoreUtil.equals(currentProperty.getType(), element)) {
+ propertyToDisplay = currentProperty;
+ }
+ }
+ }
+ return propertyToDisplay;
+ }
+ return null;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/AssociationEndTargetMultiplicityLabelHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/AssociationEndTargetMultiplicityLabelHelper.java
new file mode 100644
index 00000000000..a7b2e66e3b4
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/AssociationEndTargetMultiplicityLabelHelper.java
@@ -0,0 +1,20 @@
+package org.eclipse.papyrus.uml.diagram.common.helper;
+
+import java.util.Map;
+
+public class AssociationEndTargetMultiplicityLabelHelper extends AssociationEndTargetLabelHelper {
+
+ private static AssociationEndTargetMultiplicityLabelHelper labelHelper;
+
+ public static AssociationEndTargetMultiplicityLabelHelper getInstance() {
+ if (labelHelper == null) {
+ labelHelper = new AssociationEndTargetMultiplicityLabelHelper();
+ }
+ return labelHelper;
+ }
+
+ @Override
+ protected void setupMasks(Map<String, String> masks) {
+ // masks list is empty for the single multiplicity symbol
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/PropertyLabelHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/PropertyLabelHelper.java
index 07d3d42a4b1..62a2e0f25c7 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/PropertyLabelHelper.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/PropertyLabelHelper.java
@@ -46,6 +46,10 @@ public class PropertyLabelHelper extends StereotypedElementLabelHelper {
protected PropertyLabelHelper() {
// initialize the map
+ setupMasks(masks);
+ }
+
+ protected void setupMasks(Map<String, String> masks) {
masks.put(ICustomAppearance.DISP_VISIBILITY, "Visibility");
masks.put(ICustomAppearance.DISP_DERIVE, "Is Derived");
masks.put(ICustomAppearance.DISP_NAME, "Name");
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/custom-src/org/eclipse/papyrus/uml/diagram/communication/custom/commands/CustomLifelineCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/custom-src/org/eclipse/papyrus/uml/diagram/communication/custom/commands/CustomLifelineCreateCommandCN.java
new file mode 100644
index 00000000000..5ea95211db5
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/custom-src/org/eclipse/papyrus/uml/diagram/communication/custom/commands/CustomLifelineCreateCommandCN.java
@@ -0,0 +1,51 @@
+/*****************************************************************************
+ * Copyright (c) 2015 Christian W. Damus and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Christian W. Damus - Initial API and implementation
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.uml.diagram.communication.custom.commands;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.papyrus.infra.tools.util.TypeUtils;
+import org.eclipse.papyrus.uml.diagram.communication.custom.helper.CommunicationRequestConstant;
+import org.eclipse.papyrus.uml.diagram.communication.edit.commands.LifelineCreateCommandCN;
+import org.eclipse.uml2.uml.ConnectableElement;
+import org.eclipse.uml2.uml.Lifeline;
+
+/**
+ * Custom lifeline creation command.
+ */
+public class CustomLifelineCreateCommandCN extends LifelineCreateCommandCN {
+
+ public CustomLifelineCreateCommandCN(CreateElementRequest req, Diagram diagram) {
+ super(req, diagram);
+ }
+
+ /**
+ * Extend the superclass implementation to additionally set associate the new lifeline with the connectable
+ * element that it represents, if the request specifies it.
+ *
+ * {@inheritDoc}
+ */
+ @Override
+ protected void doConfigure(Lifeline newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ super.doConfigure(newElement, monitor, info);
+
+ ConnectableElement represents = TypeUtils.as(getRequest().getParameters().get(CommunicationRequestConstant.REPRESENTS), ConnectableElement.class);
+ if (represents != null) {
+ newElement.setRepresents(represents);
+ }
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/custom-src/org/eclipse/papyrus/uml/diagram/communication/custom/edit/policies/CustomDiagramDragDropEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/custom-src/org/eclipse/papyrus/uml/diagram/communication/custom/edit/policies/CustomDiagramDragDropEditPolicy.java
index e310326380b..99d565c5a9a 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/custom-src/org/eclipse/papyrus/uml/diagram/communication/custom/edit/policies/CustomDiagramDragDropEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/custom-src/org/eclipse/papyrus/uml/diagram/communication/custom/edit/policies/CustomDiagramDragDropEditPolicy.java
@@ -10,6 +10,7 @@
* Saadia DHOUIB (CEA LIST) saadia.dhouib@cea.fr - Initial API and implementation
* Vincent LORENZO (CEA-LIST) vincent.lorenzo@cea.fr
* Christian W. Damus - bug 462958
+ * Christian W. Damus - bug 468175
*
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.communication.custom.edit.policies;
@@ -21,6 +22,7 @@ import java.util.Iterator;
import java.util.List;
import java.util.Set;
+import org.eclipse.core.commands.operations.IUndoableOperation;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.emf.ecore.EObject;
@@ -28,6 +30,7 @@ import org.eclipse.gef.EditPart;
import org.eclipse.gef.commands.Command;
import org.eclipse.gef.commands.UnexecutableCommand;
import org.eclipse.gmf.runtime.common.core.command.CompositeCommand;
+import org.eclipse.gmf.runtime.diagram.core.edithelpers.CreateElementRequestAdapter;
import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
import org.eclipse.gmf.runtime.diagram.ui.commands.CommandProxy;
import org.eclipse.gmf.runtime.diagram.ui.commands.CreateCommand;
@@ -37,11 +40,14 @@ import org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
import org.eclipse.gmf.runtime.diagram.ui.requests.CreateConnectionViewRequest;
+import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest.ViewDescriptor;
+import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequestFactory;
import org.eclipse.gmf.runtime.diagram.ui.requests.DropObjectsRequest;
import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.gmf.runtime.emf.type.core.IHintedType;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
import org.eclipse.gmf.runtime.notation.Diagram;
import org.eclipse.gmf.runtime.notation.Node;
import org.eclipse.gmf.runtime.notation.View;
@@ -51,6 +57,7 @@ import org.eclipse.papyrus.uml.diagram.common.editpolicies.CommonDiagramDragDrop
import org.eclipse.papyrus.uml.diagram.communication.custom.commands.CommunicationDeferredCreateConnectionViewCommand;
import org.eclipse.papyrus.uml.diagram.communication.custom.commands.CustomMessageViewCreateCommand;
import org.eclipse.papyrus.uml.diagram.communication.custom.helper.CommunicationLinkMappingHelper;
+import org.eclipse.papyrus.uml.diagram.communication.custom.helper.CommunicationRequestConstant;
import org.eclipse.papyrus.uml.diagram.communication.custom.helper.CommunicationUtil;
import org.eclipse.papyrus.uml.diagram.communication.custom.helper.DiagramShortCutHelper;
import org.eclipse.papyrus.uml.diagram.communication.custom.helper.DurationObservationHelper;
@@ -62,9 +69,11 @@ import org.eclipse.papyrus.uml.diagram.communication.edit.parts.LifelineEditPart
import org.eclipse.papyrus.uml.diagram.communication.edit.parts.MessageEditPart;
import org.eclipse.papyrus.uml.diagram.communication.edit.parts.ShortCutDiagramEditPart;
import org.eclipse.papyrus.uml.diagram.communication.edit.parts.TimeObservationEditPartCN;
+import org.eclipse.papyrus.uml.diagram.communication.part.UMLDiagramEditorPlugin;
import org.eclipse.papyrus.uml.diagram.communication.part.UMLVisualIDRegistry;
import org.eclipse.papyrus.uml.diagram.communication.providers.UMLElementTypes;
import org.eclipse.uml2.uml.Comment;
+import org.eclipse.uml2.uml.ConnectableElement;
import org.eclipse.uml2.uml.Constraint;
import org.eclipse.uml2.uml.DurationObservation;
import org.eclipse.uml2.uml.Element;
@@ -143,10 +152,10 @@ public class CustomDiagramDragDropEditPolicy extends CommonDiagramDragDropEditPo
switch (nodeVISUALID) {
case LifelineEditPartCN.VISUAL_ID:
return dropChildNode(dropRequest, semanticElement, nodeVISUALID);
- // case CommentEditPartCN.VISUAL_ID:
- // return dropChildNode(dropRequest, semanticElement, nodeVISUALID);
- // case ConstraintEditPartCN.VISUAL_ID:
- // return dropChildNode(dropRequest, semanticElement, nodeVISUALID);
+ // case CommentEditPartCN.VISUAL_ID:
+ // return dropChildNode(dropRequest, semanticElement, nodeVISUALID);
+ // case ConstraintEditPartCN.VISUAL_ID:
+ // return dropChildNode(dropRequest, semanticElement, nodeVISUALID);
case TimeObservationEditPartCN.VISUAL_ID:
return dropTimeObservation(dropRequest, (TimeObservation) semanticElement, nodeVISUALID);
case DurationObservationEditPartCN.VISUAL_ID:
@@ -339,7 +348,7 @@ public class CustomDiagramDragDropEditPolicy extends CommonDiagramDragDropEditPo
}
}
// System.err.println("Messages edit parts on the link :" + messagesEP);
- // System.err.println("Semantic messages on the link :" + messages);
+ // System.err.println("Semantic messages on the link :" + messages);
// 2. Create the drop commands
if (messagesEP == null) {// There is no graphical connection between the two lifelines (in this diagram)
// create a dropMessageAsConnector Command
@@ -468,6 +477,9 @@ public class CustomDiagramDragDropEditPolicy extends CommonDiagramDragDropEditPo
// TODO: add to composite command ?
if (nodeVISUALID == -1 && linkVISUALID == -1 && (droppedObject instanceof Diagram)) {// if the dropped element is the diagram short cut
cc.add(new CommandProxy(dropShortCutDiagram(dropRequest, (Diagram) droppedObject, nodeVISUALID)));
+ } else if ((nodeVISUALID == -1) && (linkVISUALID == -1) && (droppedObject instanceof ConnectableElement)) {
+ // Bug 468175: Create lifelines for dropped connectables
+ cc.add(dropConnectableElement(dropRequest, (ConnectableElement) droppedObject));
} else {
cc.add(new CommandProxy(getSpecificDropCommand(dropRequest, (Element) droppedObject, nodeVISUALID, linkVISUALID)));
}
@@ -506,4 +518,24 @@ public class CustomDiagramDragDropEditPolicy extends CommonDiagramDragDropEditPo
}
return new ICommandProxy(cc);
}
+
+ private IUndoableOperation dropConnectableElement(DropObjectsRequest dropRequest, ConnectableElement droppedObject) {
+ // Let's actually create a lifeline representing this connectable
+ Point location = dropRequest.getLocation();
+ CreateViewRequest createShapeRequest = CreateViewRequestFactory.getCreateShapeRequest(UMLElementTypes.Lifeline_8001, UMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT);
+ createShapeRequest.setLocation(location);
+ ViewDescriptor viewDescriptor = createShapeRequest.getViewDescriptors().get(0);
+ CreateElementRequestAdapter elementAdapter = (CreateElementRequestAdapter) viewDescriptor.getElementAdapter();
+ CreateElementRequest createElementRequest = (CreateElementRequest) elementAdapter.getAdapter(CreateElementRequest.class);
+
+ // Configure the lifeline creation with the connectable that it represents
+ createElementRequest.setParameter(CommunicationRequestConstant.REPRESENTS, droppedObject);
+
+ // Compute and return the drop command
+ EditPart host = getHost();
+ Command result = ((IGraphicalEditPart) host).getCommand(createShapeRequest);
+ return ((result != null) && result.canExecute())
+ ? new CommandProxy(result)
+ : org.eclipse.gmf.runtime.common.core.command.UnexecutableCommand.INSTANCE;
+ }
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/custom-src/org/eclipse/papyrus/uml/diagram/communication/custom/helper/CommunicationRequestConstant.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/custom-src/org/eclipse/papyrus/uml/diagram/communication/custom/helper/CommunicationRequestConstant.java
index 8aeec6eee1f..a9a16f55c03 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/custom-src/org/eclipse/papyrus/uml/diagram/communication/custom/helper/CommunicationRequestConstant.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/custom-src/org/eclipse/papyrus/uml/diagram/communication/custom/helper/CommunicationRequestConstant.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2010 CEA
+ * Copyright (c) 2010, 2015 CEA, Christian W. Damus, and others
*
*
* All rights reserved. This program and the accompanying materials
@@ -10,6 +10,7 @@
* Contributors:
* Atos Origin - Initial API and implementation
* Saadia DHOUIB (CEA LIST) saadia.dhouib@cea.fr - adapted from sequence diagram
+ * Christian W. Damus - bug 468175
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.communication.custom.helper;
@@ -25,12 +26,15 @@ public interface CommunicationRequestConstant {
public static final String INTERACTIONFRAGMENT_CONTAINER = "InteractionFragment Container"; //$NON-NLS-1$
/**
- *
- */
+ *
+ */
public static final String SOURCE_MODEL_CONTAINER = "Source model container"; //$NON-NLS-1$
/**
- *
- */
+ *
+ */
public static final String TARGET_MODEL_CONTAINER = "Target model container"; //$NON-NLS-1$
+
+ /** A request parameter indicating the connectable element that a lifeline represents. */
+ public static final String REPRESENTS = "Lifeline::represents"; //$NON-NLS-1$
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/custom-src/org/eclipse/papyrus/uml/diagram/communication/custom/policies/itemsemantic/CustomInteractionCompartmentSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/custom-src/org/eclipse/papyrus/uml/diagram/communication/custom/policies/itemsemantic/CustomInteractionCompartmentSemanticEditPolicy.java
index 04861f94541..a6d1b37cc22 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/custom-src/org/eclipse/papyrus/uml/diagram/communication/custom/policies/itemsemantic/CustomInteractionCompartmentSemanticEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication/custom-src/org/eclipse/papyrus/uml/diagram/communication/custom/policies/itemsemantic/CustomInteractionCompartmentSemanticEditPolicy.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
+ * Copyright (c) 2010, 2015 CEA LIST, Christian W. Damus, and others.
*
*
* All rights reserved. This program and the accompanying materials
@@ -9,15 +9,18 @@
*
* Contributors:
* Saadia DHOUIB (CEA LIST) saadia.dhouib@cea.fr - Initial API and implementation
+ * Christian W. Damus - bug 468175
*
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.communication.custom.policies.itemsemantic;
import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramUtils;
import org.eclipse.papyrus.uml.diagram.communication.custom.commands.CustomDurationObservationCreateCommandCN;
+import org.eclipse.papyrus.uml.diagram.communication.custom.commands.CustomLifelineCreateCommandCN;
import org.eclipse.papyrus.uml.diagram.communication.custom.commands.CustomTimeObservationCreateCommandCN;
import org.eclipse.papyrus.uml.diagram.communication.edit.policies.InteractionCompartmentItemSemanticEditPolicy;
import org.eclipse.papyrus.uml.diagram.communication.providers.UMLElementTypes;
@@ -34,12 +37,18 @@ public class CustomInteractionCompartmentSemanticEditPolicy extends InteractionC
@Override
protected Command getCreateCommand(CreateElementRequest req) {
- if (UMLElementTypes.TimeObservation_8006 == req.getElementType()) {
+ final IElementType requestElementType = req.getElementType();
+
+ if (UMLElementTypes.Lifeline_8001 == requestElementType) {
+ return getGEFWrapper(new CustomLifelineCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
+ }
+ if (UMLElementTypes.TimeObservation_8006 == requestElementType) {
return getGEFWrapper(new CustomTimeObservationCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
}
- if (UMLElementTypes.DurationObservation_8007 == req.getElementType()) {
+ if (UMLElementTypes.DurationObservation_8007 == requestElementType) {
return getGEFWrapper(new CustomDurationObservationCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
}
+
return super.getCreateCommand(req);
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/src/org/eclipse/papyrus/uml/diagram/css/dom/GMFUMLElementAdapter.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/src/org/eclipse/papyrus/uml/diagram/css/dom/GMFUMLElementAdapter.java
index 248e0bcc748..e29ea75df43 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/src/org/eclipse/papyrus/uml/diagram/css/dom/GMFUMLElementAdapter.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/src/org/eclipse/papyrus/uml/diagram/css/dom/GMFUMLElementAdapter.java
@@ -8,7 +8,8 @@
*
* Contributors:
* Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Celine Janssens (ALL4TEC) celine.janssens@all4tec.net - Bug 455311 : Refactor Stereotypes Display
+ * Celine Janssens (ALL4TEC) celine.janssens@all4tec.net - Bug 455311 : Refactor Stereotypes Display
+ * Mickaël ADAM (ALL4TEC) mickael.adam@all4tec.net - bug 461489: add supports of AcceptEventAction
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.css.dom;
@@ -29,10 +30,14 @@ import org.eclipse.papyrus.infra.tools.util.ListHelper;
import org.eclipse.papyrus.uml.diagram.common.stereotype.display.helper.StereotypeDisplayConstant;
import org.eclipse.papyrus.uml.diagram.common.stereotype.display.helper.StereotypeDisplayUtil;
import org.eclipse.papyrus.uml.diagram.css.helper.CSSDOMUMLSemanticElementHelper;
+import org.eclipse.uml2.uml.AcceptEventAction;
import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.Event;
import org.eclipse.uml2.uml.NamedElement;
import org.eclipse.uml2.uml.Property;
import org.eclipse.uml2.uml.Stereotype;
+import org.eclipse.uml2.uml.TimeEvent;
+import org.eclipse.uml2.uml.Trigger;
/**
* DOM Element Adapter for UML Elements
@@ -50,11 +55,13 @@ public class GMFUMLElementAdapter extends GMFElementAdapter {
*/
private static final String STEREOTYPE_COMMENT = "StereotypeComment"; //$NON-NLS-1$
-
- // Helpers
+ /** The stereotype helper. */
public final StereotypeDisplayUtil stereotypeHelper = StereotypeDisplayUtil.getInstance();
+ /** The Constant IS_TIME_EVENT_ACTION. */
+ private static final String IS_TIME_EVENT_ACTION_PROPERTY = "isTimeEventAction"; //$NON-NLS-1$
+ /** The Constant APPLIED_STEREOTYPES_PROPERTY. */
public static final String APPLIED_STEREOTYPES_PROPERTY = "appliedStereotypes"; //$NON-NLS-1$
@@ -162,14 +169,46 @@ public class GMFUMLElementAdapter extends GMFElementAdapter {
}
}
}
+ // manage of isTimeEventAction=true attribute for AcceptEventAction
+ if (IS_TIME_EVENT_ACTION_PROPERTY.equals(attr)) {
+ if (semanticElement instanceof AcceptEventAction) {
+ return String.valueOf(isAcceptTimeEventAction((AcceptEventAction) semanticElement));
+ }
+ }
}
return null;
}
+ /**
+ * Checks if is accept time event action.
+ *
+ * @param action
+ * the action
+ * @return true, if is accept time event action
+ */
+ public static boolean isAcceptTimeEventAction(AcceptEventAction action) {
+ boolean hasTimeEvent = false;
+ boolean hasOthersTriggers = false;
+ // Get triggers
+ if (action.getTriggers() != null) {
+ for (Trigger trigger : action.getTriggers()) {
+ if (trigger != null) {
+ Event event = trigger.getEvent();
+ if (event instanceof TimeEvent) {
+ hasTimeEvent = true;
+ } else {
+ hasOthersTriggers = true;
+ }
+ }
+ }
+ }
+ // only time events have been encountered.
+ return hasTimeEvent && !hasOthersTriggers;
+ }
/**
* Retrieve the Matching String Value for the StereotypeCompartment Element
- *
+ *
* @param attr
* Attribute of the String to match with
* @return The matching value for this Attribute
@@ -181,12 +220,12 @@ public class GMFUMLElementAdapter extends GMFElementAdapter {
return stereotypeHelper.getName(propertyCompartment);
}
- return "";
+ return "";//$NON-NLS-1$
}
/**
* Retrieve the Matching String Value for the StereotypeCompartment Element
- *
+ *
* @param attr
* Attribute of the String to match with
* @return The matching value for this Attribute
@@ -211,13 +250,13 @@ public class GMFUMLElementAdapter extends GMFElementAdapter {
}
}
- return "";
+ return "";//$NON-NLS-1$
}
/**
* Get the matching Value of the Attribute
- *
+ *
* @param attr
* Attribute of the String to match with
* @return The matching value for this Attribute
@@ -241,17 +280,15 @@ public class GMFUMLElementAdapter extends GMFElementAdapter {
return null;
}
-
-
@Override
protected String getCSSValue(EStructuralFeature feature, Object value) {
if (feature instanceof EReference && value instanceof NamedElement) {
- return ((NamedElement) value).getName();
+ String name = ((NamedElement) value).getName();
+ return name == null || name.isEmpty() ? EMPTY_VALUE : name; // Bug 467716: Never return null or empty string if the value is not null
}
return super.getCSSValue(feature, value);
}
-
/**
* @see org.eclipse.papyrus.infra.gmfdiag.css.dom.GMFElementAdapter#getLocalName()
*
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/theme/umlBase.css b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/theme/umlBase.css
index 72386d80e77..a9ab0af0ada 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/theme/umlBase.css
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css/theme/umlBase.css
@@ -57,30 +57,45 @@ StateMachineDiagram Pseudostate[kind="junction"],
ActivityDiagram InitialNode,
InteractionOverviewDiagram InitialNode
{
-svgFile:"platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/round_full.svg";
+ svgFile:"platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/round_full.svg";
}
ActivityDiagram ActivityFinalNode,
InteractionOverviewDiagram ActivityFinalNode,
StateMachineDiagram FinalState
{
-svgFile:"platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/round_with_dot.svg";
+ svgFile:"platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/round_with_dot.svg";
}
ActivityDiagram FlowFinalNode,
InteractionOverviewDiagram FlowFinalNode
{
-svgFile:"platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/round_with_cross.svg";
+ svgFile:"platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/round_with_cross.svg";
}
ActivityDiagram SendSignalAction
{
-svgFile:"platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/arrow.svg";
+ svgFile:"platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/arrow.svg";
}
+ActivityDiagram AcceptEventAction[isTimeEventAction=true]
+{
+ svgFile:"platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/hourglass.svg";
+ maintainSymbolRatio:true;
+ displayName:true;
+}
+
+ActivityDiagram AcceptEventAction[isTimeEventAction=false]
+{
+ svgFile:"platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/flag.svg";
+ maintainSymbolRatio:false;
+ displayName:true;
+}
+
+
StateMachineDiagram Pseudostate[kind="terminate"]
{
-svgFile:"platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/cross.svg";
+ svgFile:"platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/cross.svg";
}
ActivityDiagram MergeNode,
@@ -90,32 +105,32 @@ InteractionOverviewDiagram DecisionNode,
StateMachineDiagram Pseudostate[kind="choice"],
ClassDiagram Association
{
-svgFile:"platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/diamond.svg";
+ svgFile:"platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/diamond.svg";
}
Actor
{
-svgFile:"platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/stickman.svg";
+ svgFile:"platform:/plugin/org.eclipse.papyrus.infra.gmfdiag.common/icons/symbols/stickman.svg";
}
DurationObservation
{
-svgFile:"platform:/plugin/org.eclipse.papyrus.uml.diagram.common/icons/symbols/durationObservation.svg";
+ svgFile:"platform:/plugin/org.eclipse.papyrus.uml.diagram.common/icons/symbols/durationObservation.svg";
}
TimeObservation
{
-svgFile:"platform:/plugin/org.eclipse.papyrus.uml.diagram.common/icons/symbols/timeObservation.svg";
+ svgFile:"platform:/plugin/org.eclipse.papyrus.uml.diagram.common/icons/symbols/timeObservation.svg";
}
StateMachineDiagram Pseudostate[kind="shallowHistory"]
{
-svgFile:"platform:/plugin/org.eclipse.papyrus.uml.diagram.common/icons/symbols/shallowHistory.svg";
+ svgFile:"platform:/plugin/org.eclipse.papyrus.uml.diagram.common/icons/symbols/shallowHistory.svg";
}
StateMachineDiagram Pseudostate[kind="deepHistory"]
{
-svgFile:"platform:/plugin/org.eclipse.papyrus.uml.diagram.common/icons/symbols/deepHistory.svg";
+ svgFile:"platform:/plugin/org.eclipse.papyrus.uml.diagram.common/icons/symbols/deepHistory.svg";
}
/*---------- Activity Diagram ----------*/
@@ -175,11 +190,13 @@ ActivityDiagram JoinNode > Label
visible:true;
}
-ActivityDiagram SendSignalAction,
-ActivityDiagram AcceptEventAction
+ActivityDiagram SendSignalAction
{
maintainSymbolRatio:false;
- displayName:true;
+}
+
+ActivityDiagram AcceptEventAction[isTimeEventAction=true]{
+ displayName: false;
}
ActivityDiagram Activity
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/.options b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/.options
index d46c2109fee..e88b9d08501 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/.options
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/.options
@@ -1,7 +1,7 @@
-# Tracing options for the org.eclipse.papyrus.uml.diagram.deployment plug-in
-
-# Common issues
-org.eclipse.papyrus.uml.diagram.deployment/debug=false
-
-# Visual IDs
-org.eclipse.papyrus.uml.diagram.deployment/debug/visualID=false
+# Tracing options for the org.eclipse.papyrus.uml.diagram.deployment plug-in
+
+# Common issues
+org.eclipse.papyrus.uml.diagram.deployment/debug=false
+
+# Visual IDs
+org.eclipse.papyrus.uml.diagram.deployment/debug/visualID=false
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/META-INF/MANIFEST.MF b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/META-INF/MANIFEST.MF
index 3ff4147cf1e..1f540403447 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/META-INF/MANIFEST.MF
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/META-INF/MANIFEST.MF
@@ -1,78 +1,77 @@
-Manifest-Version: 1.0
-Export-Package: org.eclipse.papyrus.uml.diagram.deployment,
- org.eclipse.papyrus.uml.diagram.deployment.custom.actions,
- org.eclipse.papyrus.uml.diagram.deployment.custom.edit.command,
- org.eclipse.papyrus.uml.diagram.deployment.custom.edit.helpers,
- org.eclipse.papyrus.uml.diagram.deployment.custom.edit.part,
- org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies,
- org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.itemsemantic,
- org.eclipse.papyrus.uml.diagram.deployment.custom.factory,
- org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes,
- org.eclipse.papyrus.uml.diagram.deployment.custom.messages,
- org.eclipse.papyrus.uml.diagram.deployment.custom.providers,
- org.eclipse.papyrus.uml.diagram.deployment.edit.commands,
- org.eclipse.papyrus.uml.diagram.deployment.edit.helpers,
- org.eclipse.papyrus.uml.diagram.deployment.edit.parts,
- org.eclipse.papyrus.uml.diagram.deployment.edit.policies,
- org.eclipse.papyrus.uml.diagram.deployment.expressions,
- org.eclipse.papyrus.uml.diagram.deployment.parsers,
- org.eclipse.papyrus.uml.diagram.deployment.part,
- org.eclipse.papyrus.uml.diagram.deployment.preferences,
- org.eclipse.papyrus.uml.diagram.deployment.providers,
- org.eclipse.papyrus.uml.diagram.deployment.sheet
-Bundle-ActivationPolicy: lazy
-Bundle-ClassPath: .
-Bundle-Name: %pluginName
-Bundle-Localization: plugin
-Bundle-RequiredExecutionEnvironment: JavaSE-1.6
-Require-Bundle: org.eclipse.gmf.runtime.diagram.ui.properties,
- org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide,
- org.eclipse.ocl.ecore,
- org.eclipse.papyrus.infra.gmfdiag.preferences;bundle-version="1.1.0",
- org.eclipse.papyrus.extensionpoints.editors;bundle-version="1.1.0",
- org.eclipse.papyrus.infra.services.edit;bundle-version="1.1.0",
- org.eclipse.papyrus.uml.diagram.common;bundle-version="1.1.0",
- org.eclipse.papyrus.infra.gmfdiag.common;bundle-version="1.1.0",
- org.eclipse.papyrus.infra.gmfdiag.navigation;bundle-version="1.1.0",
- org.eclipse.papyrus.infra.core;bundle-version="1.1.0",
- org.eclipse.papyrus.infra.gmfdiag.commands;bundle-version="1.1.0",
- org.eclipse.ui.ide;bundle-version="3.8.0",
- org.eclipse.papyrus.infra.extendedtypes;bundle-version="1.1.0",
- org.eclipse.uml2.uml.edit;bundle-version="4.0.0",
- org.eclipse.gmf.tooling.runtime;bundle-version="3.0.0",
- org.eclipse.papyrus.infra.widgets;bundle-version="1.1.0",
- org.eclipse.gmf.runtime.diagram.ui.providers;bundle-version="1.7.0",
- org.eclipse.core.runtime,
- org.eclipse.core.resources,
- org.eclipse.jface,
- org.eclipse.ui.views,
- org.eclipse.emf.ecore,
- org.eclipse.emf.ecore.xmi,
- org.eclipse.emf.edit.ui,
- org.eclipse.gmf.runtime.emf.core,
- org.eclipse.gmf.runtime.emf.commands.core,
- org.eclipse.gmf.runtime.emf.ui.properties,
- org.eclipse.gmf.runtime.diagram.ui,
- org.eclipse.papyrus.uml.service.types;bundle-version="1.1.0",
- org.eclipse.gmf.runtime.diagram.ui.providers.ide,
- org.eclipse.gmf.runtime.diagram.ui.render,
- org.eclipse.gmf.runtime.diagram.ui.resources.editor,
- org.eclipse.draw2d,
- org.eclipse.gmf.runtime.draw2d.ui,
- org.eclipse.uml2.uml,
- org.eclipse.emf.ecore,
- org.eclipse.emf.ecore.edit,
- org.eclipse.emf.validation,
- org.eclipse.gef,
- org.eclipse.papyrus.infra.emf.appearance;bundle-version="1.1.0",
- org.eclipse.papyrus.infra.viewpoints.policy;bundle-version="1.1.0",
- org.eclipse.papyrus.infra.viewpoints.configuration;bundle-version="1.1.0",
- org.eclipse.papyrus.uml.tools.utils;bundle-version="1.1.0",
- org.eclipse.papyrus.infra.core.log;bundle-version="1.1.0",
- org.eclipse.core.databinding.observable
-Bundle-Vendor: %providerName
-Eclipse-LazyStart: true
-Bundle-Version: 1.1.0.qualifier
-Bundle-Activator: org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin
-Bundle-ManifestVersion: 2
-Bundle-SymbolicName: org.eclipse.papyrus.uml.diagram.deployment; singleton:=true
+Manifest-Version: 1.0
+Export-Package: org.eclipse.papyrus.uml.diagram.deployment,
+ org.eclipse.papyrus.uml.diagram.deployment.custom.actions,
+ org.eclipse.papyrus.uml.diagram.deployment.custom.edit.command,
+ org.eclipse.papyrus.uml.diagram.deployment.custom.edit.helpers,
+ org.eclipse.papyrus.uml.diagram.deployment.custom.edit.part,
+ org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies,
+ org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.itemsemantic,
+ org.eclipse.papyrus.uml.diagram.deployment.custom.factory,
+ org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes,
+ org.eclipse.papyrus.uml.diagram.deployment.custom.messages,
+ org.eclipse.papyrus.uml.diagram.deployment.custom.providers,
+ org.eclipse.papyrus.uml.diagram.deployment.edit.helpers,
+ org.eclipse.papyrus.uml.diagram.deployment.edit.parts,
+ org.eclipse.papyrus.uml.diagram.deployment.edit.policies,
+ org.eclipse.papyrus.uml.diagram.deployment.expressions,
+ org.eclipse.papyrus.uml.diagram.deployment.parsers,
+ org.eclipse.papyrus.uml.diagram.deployment.part,
+ org.eclipse.papyrus.uml.diagram.deployment.preferences,
+ org.eclipse.papyrus.uml.diagram.deployment.providers,
+ org.eclipse.papyrus.uml.diagram.deployment.sheet
+Bundle-ActivationPolicy: lazy
+Bundle-ClassPath: .
+Bundle-Name: %pluginName
+Bundle-Localization: plugin
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Require-Bundle: org.eclipse.gmf.runtime.diagram.ui.properties,
+ org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide,
+ org.eclipse.ocl.ecore,
+ org.eclipse.papyrus.infra.gmfdiag.preferences;bundle-version="1.1.0",
+ org.eclipse.papyrus.extensionpoints.editors;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.services.edit;bundle-version="1.1.0",
+ org.eclipse.papyrus.uml.diagram.common;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.gmfdiag.common;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.gmfdiag.navigation;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.core;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.gmfdiag.commands;bundle-version="1.1.0",
+ org.eclipse.ui.ide;bundle-version="3.8.0",
+ org.eclipse.papyrus.infra.extendedtypes;bundle-version="1.1.0",
+ org.eclipse.uml2.uml.edit;bundle-version="4.0.0",
+ org.eclipse.gmf.tooling.runtime;bundle-version="3.0.0",
+ org.eclipse.papyrus.infra.widgets;bundle-version="1.1.0",
+ org.eclipse.gmf.runtime.diagram.ui.providers;bundle-version="1.7.0",
+ org.eclipse.core.runtime,
+ org.eclipse.core.resources,
+ org.eclipse.jface,
+ org.eclipse.ui.views,
+ org.eclipse.emf.ecore,
+ org.eclipse.emf.ecore.xmi,
+ org.eclipse.emf.edit.ui,
+ org.eclipse.gmf.runtime.emf.core,
+ org.eclipse.gmf.runtime.emf.commands.core,
+ org.eclipse.gmf.runtime.emf.ui.properties,
+ org.eclipse.gmf.runtime.diagram.ui,
+ org.eclipse.papyrus.uml.service.types;bundle-version="1.1.0",
+ org.eclipse.gmf.runtime.diagram.ui.providers.ide,
+ org.eclipse.gmf.runtime.diagram.ui.render,
+ org.eclipse.gmf.runtime.diagram.ui.resources.editor,
+ org.eclipse.draw2d,
+ org.eclipse.gmf.runtime.draw2d.ui,
+ org.eclipse.uml2.uml,
+ org.eclipse.emf.ecore,
+ org.eclipse.emf.ecore.edit,
+ org.eclipse.emf.validation,
+ org.eclipse.gef,
+ org.eclipse.papyrus.infra.emf.appearance;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.viewpoints.policy;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.viewpoints.configuration;bundle-version="1.1.0",
+ org.eclipse.papyrus.uml.tools.utils;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.core.log;bundle-version="1.1.0",
+ org.eclipse.core.databinding.observable
+Bundle-Vendor: %providerName
+Eclipse-LazyStart: true
+Bundle-Version: 1.1.0.qualifier
+Bundle-Activator: org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: org.eclipse.papyrus.uml.diagram.deployment; singleton:=true
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/build.properties b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/build.properties
index 458902002a5..e9b85873dee 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/build.properties
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/build.properties
@@ -1,7 +1,14 @@
#
#Mon Sep 12 09:29:46 CEST 2011
output..=bin/
-bin.includes=.,icons/,META-INF/,plugin.xml,plugin.properties,messages.properties,about.html
+bin.includes = .,\
+ icons/,\
+ META-INF/,\
+ plugin.xml,\
+ plugin.properties,\
+ messages.properties,\
+ about.html,\
+ model/
jars.compile.order=.
src.includes = about.html
source..=src/,custom-src/
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/command/BranchDependenctReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/command/BranchDependenctReorientCommand.java
index e4902e35c62..f5b2526a2bb 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/command/BranchDependenctReorientCommand.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/command/BranchDependenctReorientCommand.java
@@ -14,30 +14,51 @@
package org.eclipse.papyrus.uml.diagram.deployment.custom.edit.command;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchReorientCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRequest;
import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.uml2.uml.Dependency;
import org.eclipse.uml2.uml.NamedElement;
import org.eclipse.uml2.uml.Package;
-
+import org.eclipse.core.commands.ExecutionException;
/**
* because of the nature of this relation the test about can execute has to be change
*
*/
-public class BranchDependenctReorientCommand extends DependencyBranchReorientCommand {
+public class BranchDependenctReorientCommand extends EditElementCommand {
private EObject oldNamedElementEnd;
private EObject newNamedElementEnd;
+ private final int reorientDirection;
+
public BranchDependenctReorientCommand(ReorientRelationshipRequest request) {
- super(request);
+ super(request.getLabel(), request.getRelationship(), request);
+ reorientDirection = request.getDirection();
oldNamedElementEnd = request.getOldRelationshipEnd();
newNamedElementEnd = request.getNewRelationshipEnd();
}
@Override
+ public boolean canExecute() {
+ if (false == getElementToEdit() instanceof Dependency) {
+ return false;
+ }
+ if (reorientDirection == ReorientRequest.REORIENT_SOURCE) {
+ return canReorientSource();
+ }
+ if (reorientDirection == ReorientRequest.REORIENT_TARGET) {
+ return canReorientTarget();
+ }
+ return false;
+ }
+
protected boolean canReorientSource() {
if (!(oldNamedElementEnd instanceof NamedElement && newNamedElementEnd instanceof NamedElement)) {
return false;
@@ -55,7 +76,6 @@ public class BranchDependenctReorientCommand extends DependencyBranchReorientCom
}
- @Override
protected boolean canReorientTarget() {
if (!(oldNamedElementEnd instanceof NamedElement && newNamedElementEnd instanceof NamedElement)) {
return false;
@@ -72,4 +92,54 @@ public class BranchDependenctReorientCommand extends DependencyBranchReorientCom
return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistDependency_4010(container, getLink(), source, getNewTarget());
}
+
+ protected CommandResult reorientSource() throws ExecutionException {
+ getLink().getClients()
+ .remove(getOldSource());
+ getLink().getClients()
+ .add(getNewSource());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ protected CommandResult reorientTarget() throws ExecutionException {
+ getLink().getSuppliers()
+ .remove(getOldTarget());
+ getLink().getSuppliers()
+ .add(getNewTarget());
+ return CommandResult.newOKCommandResult(getLink());
+ }
+
+ @Override
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ if (!canExecute()) {
+ throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
+ }
+ if (reorientDirection == ReorientRequest.REORIENT_SOURCE) {
+ return reorientSource();
+ }
+ if (reorientDirection == ReorientRequest.REORIENT_TARGET) {
+ return reorientTarget();
+ }
+ throw new IllegalStateException();
+ }
+
+ protected Dependency getLink() {
+ return (Dependency) getElementToEdit();
+ }
+
+ protected NamedElement getOldSource() {
+ return (NamedElement) oldNamedElementEnd;
+ }
+
+ protected NamedElement getNewSource() {
+ return (NamedElement) newNamedElementEnd;
+ }
+
+ protected NamedElement getOldTarget() {
+ return (NamedElement) oldNamedElementEnd;
+ }
+
+ protected NamedElement getNewTarget() {
+ return (NamedElement) newNamedElementEnd;
+ }
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/itemsemantic/CustomDefaultNamedElementItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/itemsemantic/CustomDefaultNamedElementItemSemanticEditPolicy.java
index 08a57038d0b..c515f90a556 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/itemsemantic/CustomDefaultNamedElementItemSemanticEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/itemsemantic/CustomDefaultNamedElementItemSemanticEditPolicy.java
@@ -14,23 +14,33 @@
package org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.itemsemantic;
import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.papyrus.commands.wrappers.GMFtoGEFCommandWrapper;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.command.BranchDependenctReorientCommand;
import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DefaultNamedElementItemSemanticEditPolicy;
/**
* this class has been specialized in order to manage reconnection of multidependency
*
*/
-public class CustomDefaultNamedElementItemSemanticEditPolicy extends DefaultNamedElementItemSemanticEditPolicy {
+public class CustomDefaultNamedElementItemSemanticEditPolicy extends DefaultSemanticEditPolicy {
+
+ public static final String VISUAL_ID_KEY = "visual_id";
@Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DependencyBranchEditPart.VISUAL_ID:
- return getGEFWrapper(new BranchDependenctReorientCommand(req));
+ protected Command getSemanticCommand(IEditCommandRequest request) {
+ if (request instanceof ReorientRelationshipRequest) {
+ if (DependencyBranchEditPart.VISUAL_ID == getVisualID(request)) {
+ return new GMFtoGEFCommandWrapper(new BranchDependenctReorientCommand((ReorientRelationshipRequest)request));
+ }
}
- return super.getReorientRelationshipCommand(req);
+ return super.getSemanticCommand(request);
+ }
+
+ protected int getVisualID(IEditCommandRequest request) {
+ Object id = request.getParameter(VISUAL_ID_KEY);
+ return id instanceof Integer ? ((Integer) id).intValue() : -1;
}
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/itemsemantic/CustomDependencyBranchSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/itemsemantic/CustomDependencyBranchSemanticEditPolicy.java
index e6dd796a8d8..eba8d8e123a 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/itemsemantic/CustomDependencyBranchSemanticEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/custom-src/org/eclipse/papyrus/uml/diagram/deployment/custom/edit/policies/itemsemantic/CustomDependencyBranchSemanticEditPolicy.java
@@ -14,8 +14,10 @@ package org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.itemsema
import org.eclipse.gef.commands.Command;
import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DependencyBranchItemSemanticEditPolicy;
+import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
@@ -23,16 +25,17 @@ import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
* this class is used to forbid the creation of a dependency branch on a dependency branch.
*
*/
-public class CustomDependencyBranchSemanticEditPolicy extends DependencyBranchItemSemanticEditPolicy {
+public class CustomDependencyBranchSemanticEditPolicy extends DefaultSemanticEditPolicy {
@Override
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
-
- if (UMLElementTypes.Dependency_4010 == req.getElementType()) {
- return UnexecutableCommand.INSTANCE;
+ protected Command getSemanticCommand(IEditCommandRequest request) {
+ if (request instanceof CreateRelationshipRequest) {
+ IElementType type = ((CreateRelationshipRequest) request).getElementType();
+ if (UMLElementTypes.Dependency_4010 == type) {
+ return UnexecutableCommand.INSTANCE;
+ }
}
-
- return super.getStartCreateRelationshipCommand(req);
+ return super.getSemanticCommand(request);
}
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram-notation.elementtypesconfigurations b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram-notation.elementtypesconfigurations
new file mode 100644
index 00000000000..d24aef12af7
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram-notation.elementtypesconfigurations
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="ASCII"?>
+<elementtypesconfigurations:ElementTypeSetConfiguration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:elementtypesconfigurations="http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/1.0" xmi:id="_rcmpgv_cEeS2GcUTq58BKg" metamodelNsURI="http://www.eclipse.org/gmf/runtime/1.0.2/notation">
+ <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_rcnQkP_cEeS2GcUTq58BKg" name="Undefined" identifier="org.eclipse.papyrus.uml.diagram.deployment.Link_4005" hint="4005" kind="org.eclipse.gmf.runtime.diagram.ui.util.INotationType">
+ <specializedTypesID>org.eclipse.gmf.runtime.emf.type.core.null</specializedTypesID>
+ </elementTypeConfigurations>
+</elementtypesconfigurations:ElementTypeSetConfiguration>
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.elementtypesconfigurations b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.elementtypesconfigurations
new file mode 100644
index 00000000000..b1588616912
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.elementtypesconfigurations
@@ -0,0 +1,374 @@
+<?xml version="1.0" encoding="ASCII"?>
+<elementtypesconfigurations:ElementTypeSetConfiguration
+ xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:elementtypesconfigurations="http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/1.0"
+ xmi:id="_gvIwYP8PEeS2nvlxgM4H8g"
+ name="PapyrusUMLDeploymentDiagram"
+ metamodelNsURI="http://www.eclipse.org/uml2/5.0.0/UML">
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwBhMP8PEeS2nvlxgM4H8g"
+ name="Artifact"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Artifact_25"
+ hint="25">
+ <iconEntry
+ xmi:id="_gwBhMf8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Artifact.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Artifact</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwCIQP8PEeS2nvlxgM4H8g"
+ name="Artifact"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Artifact_28"
+ hint="28">
+ <iconEntry
+ xmi:id="_gwCIQf8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Artifact.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Artifact</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwCIQv8PEeS2nvlxgM4H8g"
+ name="Artifact"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Artifact_40"
+ hint="40">
+ <iconEntry
+ xmi:id="_gwCIQ_8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Artifact.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Artifact</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwGZsv8PEeS2nvlxgM4H8g"
+ name="Artifact"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Artifact_2006"
+ hint="2006">
+ <iconEntry
+ xmi:id="_gwGZs_8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Artifact.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Artifact</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwCvUP8PEeS2nvlxgM4H8g"
+ name="Comment"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Comment_54"
+ hint="54">
+ <iconEntry
+ xmi:id="_gwCvUf8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Comment.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Comment</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwFLkv8PEeS2nvlxgM4H8g"
+ name="Comment"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Comment_2001"
+ hint="2001">
+ <iconEntry
+ xmi:id="_gwFLk_8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Comment.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Comment</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwHn0P8PEeS2nvlxgM4H8g"
+ name="Comment Annotated Element"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.CommentAnnotatedElement_4006"
+ hint="4008">
+ <specializedTypesID>org.eclipse.papyrus.uml.Comment.AnnotatedElements</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwDWYP8PEeS2nvlxgM4H8g"
+ name="Constraint"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Constraint_56"
+ hint="56">
+ <iconEntry
+ xmi:id="_gwDWYf8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Constraint.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Constraint</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwFLkP8PEeS2nvlxgM4H8g"
+ name="Constraint"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Constraint_2005"
+ hint="2005">
+ <iconEntry
+ xmi:id="_gwFLkf8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Constraint.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Constraint</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwHn0f8PEeS2nvlxgM4H8g"
+ name="Constraint Constrained Element"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.ConstraintConstrainedElement_4007"
+ hint="4009">
+ <specializedTypesID>org.eclipse.papyrus.uml.Constraint.ConstrainedElements</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwHAwv8PEeS2nvlxgM4H8g"
+ name="Default Named Element"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.NamedElement_2012"
+ hint="2012">
+ <iconEntry
+ xmi:id="_gwHAw_8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/NamedElement.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.NamedElement</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwI18v8PEeS2nvlxgM4H8g"
+ name="Dependency Branch Link"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Dependency_4010"
+ hint="4010">
+ <iconEntry
+ xmi:id="_gwI18_8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Dependency.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Dependency</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwI18P8PEeS2nvlxgM4H8g"
+ name="Dependency Link"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Dependency_4004"
+ hint="4004">
+ <iconEntry
+ xmi:id="_gwI18f8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Dependency.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Dependency</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwD9cP8PEeS2nvlxgM4H8g"
+ name="Dependency Node"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Dependency_2011"
+ hint="2011">
+ <iconEntry
+ xmi:id="_gwD9cf8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Dependency.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Dependency</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwHn0v8PEeS2nvlxgM4H8g"
+ name="Deployment"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Deployment_4001"
+ hint="4001">
+ <iconEntry
+ xmi:id="_gwHn0_8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Deployment.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Deployment</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gv-d4P8PEeS2nvlxgM4H8g"
+ name="Device"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Device_16"
+ hint="16">
+ <iconEntry
+ xmi:id="_gv-d4f8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Device.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.um.Device_As_UML::Node::nestedNode</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gv_E8P8PEeS2nvlxgM4H8g"
+ name="Device"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Device_44"
+ hint="44">
+ <iconEntry
+ xmi:id="_gv_E8f8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Device.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Device</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwGZsP8PEeS2nvlxgM4H8g"
+ name="Device"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Device_2003"
+ hint="2003">
+ <iconEntry
+ xmi:id="_gwGZsf8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Device.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Device</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gv_sAP8PEeS2nvlxgM4H8g"
+ name="Execution Environment"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.ExecutionEnvironment_21"
+ hint="21">
+ <iconEntry
+ xmi:id="_gv_sAf8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/ExecutionEnvironment.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.um.ExecutionEnvironment_As_UML::Node::nestedNode</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gv_sAv8PEeS2nvlxgM4H8g"
+ name="Execution Environment"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.ExecutionEnvironment_46"
+ hint="46">
+ <iconEntry
+ xmi:id="_gv_sA_8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/ExecutionEnvironment.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.ExecutionEnvironment</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwFyoP8PEeS2nvlxgM4H8g"
+ name="Execution Environment"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.ExecutionEnvironment_2002"
+ hint="2002">
+ <iconEntry
+ xmi:id="_gwFyof8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/ExecutionEnvironment.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.ExecutionEnvironment</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwIO4P8PEeS2nvlxgM4H8g"
+ name="Generalization"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Generalization_4003"
+ hint="4003">
+ <iconEntry
+ xmi:id="_gwIO4f8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Generalization.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Generalization</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwHn1P8PEeS2nvlxgM4H8g"
+ name="Manifestation"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Manifestation_4002"
+ hint="4002">
+ <iconEntry
+ xmi:id="_gwHn1f8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Manifestation.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Manifestation</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gv9PwP8PEeS2nvlxgM4H8g"
+ name="Model"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Model_49"
+ hint="49">
+ <iconEntry
+ xmi:id="_gv9Pwf8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Model.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Model</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwD9cv8PEeS2nvlxgM4H8g"
+ name="Model"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Model_2010"
+ hint="2010">
+ <iconEntry
+ xmi:id="_gwD9c_8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Model.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Model</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwATEP8PEeS2nvlxgM4H8g"
+ name="Node"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Node_23"
+ hint="23">
+ <iconEntry
+ xmi:id="_gwATEf8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Node.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.um.Node_As_UML::Node::nestedNode</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwA6IP8PEeS2nvlxgM4H8g"
+ name="Node"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Node_42"
+ hint="42">
+ <iconEntry
+ xmi:id="_gwA6If8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Node.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Node</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwHAwP8PEeS2nvlxgM4H8g"
+ name="Node"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Node_2008"
+ hint="2008">
+ <iconEntry
+ xmi:id="_gwHAwf8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Node.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Node</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gv0s4P8PEeS2nvlxgM4H8g"
+ name="Package"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Package_1000"
+ hint="PapyrusUMLDeploymentDiagram">
+ <iconEntry
+ xmi:id="_gv0s4f8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Package.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Package</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gv920P8PEeS2nvlxgM4H8g"
+ name="Package"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Package_36"
+ hint="36">
+ <iconEntry
+ xmi:id="_gv920f8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Package.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Package</specializedTypesID>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_gwEkgP8PEeS2nvlxgM4H8g"
+ name="Package"
+ identifier="org.eclipse.papyrus.uml.diagram.deployment.Package_2009"
+ hint="2009">
+ <iconEntry
+ xmi:id="_gwEkgf8PEeS2nvlxgM4H8g"
+ iconPath="/icons/full/obj16/Package.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Package</specializedTypesID>
+ </elementTypeConfigurations>
+</elementtypesconfigurations:ElementTypeSetConfiguration>
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.gmfgen b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.gmfgen
index 67b9607f16c..d98b1c8ba18 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.gmfgen
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/model/DeploymentDiagram.gmfgen
@@ -1,3142 +1,3174 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI
- xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:gmfgen="http://www.eclipse.org/gmf/2009/GenModel"
- xmlns:papyrusgmfgenextension="http://www.eclipse.org/papyrus/2009/papyrusgmfgenextension">
- <gmfgen:GenEditorGenerator
- packageNamePrefix="org.eclipse.papyrus.uml.diagram.deployment"
- modelID="PapyrusUMLDeploymentDiagram"
- diagramFileExtension="PapyrusUMLDeployment_diagram"
- domainFileExtension="umlDeployment"
- dynamicTemplates="true"
- templateDirectory="/org.eclipse.papyrus.def/xtend/"
- copyrightText="Copyright (c) 2014 CEA LIST.&#xD;&#xA;&#xD;&#xA;All rights reserved. This program and the accompanying materials&#xD;&#xA;are made available under the terms of the Eclipse Public License v1.0&#xD;&#xA;which accompanies this distribution, and is available at&#xD;&#xA;http://www.eclipse.org/legal/epl-v10.html&#xD;&#xA;&#xD;&#xA;Contributors:&#xD;&#xA; CEA LIST - Initial API and implementation"
- pluginDirectory="/org.eclipse.papyrus.uml.diagram.deployment/src">
- <diagram
- visualID="1000"
- editPartClassName="DeploymentDiagramEditPart"
- itemSemanticEditPolicyClassName="DeploymentDiagramItemSemanticEditPolicy"
- canonicalEditPolicyClassName="ModelCanonicalEditPolicy"
- iconProviderPriority="Low"
- creationWizardIconPath="icons/obj16/DeploymentDiagram.gif"
- validationProviderPriority="Low"
- validationEnabled="true"
- validationDecorators="true"
- liveValidationUIFeedback="true">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Diagram"/>
- <elementType
- xsi:type="gmfgen:MetamodelType"
- uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.Package_1000"
- displayName="DeploymentDiagram"
- editHelperClassName="ModelEditHelper"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.draw2d.FreeformLayer"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <domainDiagramElement
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package"/>
- <childNodes
- visualID="49"
- editPartClassName="ModelEditPartCN"
- itemSemanticEditPolicyClassName="ModelItemSemanticEditPolicyCN"
- canonicalEditPolicyClassName="ModelCanonicalEditPolicyCN"
- compartments="/0/@diagram/@compartments.6"
- graphicalNodeEditPolicyClassName="ModelGraphicalNodeEditPolicyCN"
- createCommandClassName="ModelCreateCommandCN"
- containers="/0/@diagram/@compartments.0 /0/@diagram/@compartments.6 /0/@diagram/@compartments.1">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:SpecializationType"
- uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.Model_49"
- displayName="Model"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure">
- <attributes
- xsi:type="gmfgen:DefaultSizeAttributes"
- width="150"
- height="150"/>
- </viewmap>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;RESIZE_BORDER_ITEMS&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Model"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="50"
- editPartClassName="ModelNameEditPartCN"
- itemSemanticEditPolicyClassName="ModelNameItemSemanticEditPolicyCN"
- elementIcon="true">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </childNodes>
- <childNodes
- visualID="36"
- editPartClassName="PackageEditPartCN"
- itemSemanticEditPolicyClassName="PackageItemSemanticEditPolicyCN"
- canonicalEditPolicyClassName="PackageCanonicalEditPolicyCN"
- compartments="/0/@diagram/@compartments.7"
- graphicalNodeEditPolicyClassName="PackageGraphicalNodeEditPolicyCN"
- createCommandClassName="PackageCreateCommandCN"
- containers="/0/@diagram/@compartments.1 /0/@diagram/@compartments.7 /0/@diagram/@compartments.0 /0/@diagram/@compartments.6">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:SpecializationType"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure">
- <attributes
- xsi:type="gmfgen:DefaultSizeAttributes"
- width="150"
- height="150"/>
- </viewmap>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;RESIZE_BORDER_ITEMS&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="37"
- editPartClassName="PackageNameEditPartCN"
- itemSemanticEditPolicyClassName="PackageNameItemSemanticEditPolicyCN"
- elementIcon="true">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0"
- editPattern="">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </childNodes>
- <childNodes
- visualID="16"
- editPartClassName="DeviceEditPartCN"
- itemSemanticEditPolicyClassName="DeviceItemSemanticEditPolicyCN"
- canonicalEditPolicyClassName="DeviceCanonicalEditPolicyCN"
- graphicalNodeEditPolicyClassName="DeviceGraphicalNodeEditPolicyCN"
- createCommandClassName="DeviceCreateCommandCN"
- containers="/0/@diagram/@compartments.4 /0/@diagram/@compartments.10 /0/@diagram/@compartments.2 /0/@diagram/@compartments.8">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:SpecializationType"
- uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.Device_16"
- displayName="Device"
- metamodelType="/0/@diagram/@topLevelNodes.6/@elementType"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure">
- <attributes
- xsi:type="gmfgen:DefaultSizeAttributes"
- width="150"
- height="100"/>
- </viewmap>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;RESIZE_BORDER_ITEMS&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Device"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node/nestedNode"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node/nestedNode"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="20"
- editPartClassName="DeviceNameEditPartCN"
- itemSemanticEditPolicyClassName="DeviceNameItemSemanticEditPolicyCN">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </childNodes>
- <childNodes
- visualID="44"
- editPartClassName="NestedDeviceEditPartCN"
- itemSemanticEditPolicyClassName="NestedDeviceItemSemanticEditPolicyCN"
- canonicalEditPolicyClassName="NestedDeviceCanonicalEditPolicyCN"
- compartments="/0/@diagram/@compartments.8"
- graphicalNodeEditPolicyClassName="NestedDeviceGraphicalNodeEditPolicyCN"
- createCommandClassName="NestedDeviceCreateCommandCN"
- containers="/0/@diagram/@compartments.1 /0/@diagram/@compartments.7 /0/@diagram/@compartments.0 /0/@diagram/@compartments.6">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:SpecializationType"
- uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.Device_44"
- displayName="Device"
- metamodelType="/0/@diagram/@topLevelNodes.6/@elementType"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure">
- <attributes
- xsi:type="gmfgen:DefaultSizeAttributes"
- width="150"
- height="100"/>
- </viewmap>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;RESIZE_BORDER_ITEMS&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Device"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="45"
- editPartClassName="NestedDeviceNameEditPartCN"
- itemSemanticEditPolicyClassName="NestedDeviceNameItemSemanticEditPolicyCN">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </childNodes>
- <childNodes
- visualID="21"
- editPartClassName="ExecutionEnvironmentEditPartCN"
- itemSemanticEditPolicyClassName="ExecutionEnvironmentItemSemanticEditPolicyCN"
- canonicalEditPolicyClassName="ExecutionEnvironmentCanonicalEditPolicyCN"
- graphicalNodeEditPolicyClassName="ExecutionEnvironmentGraphicalNodeEditPolicyCN"
- createCommandClassName="ExecutionEnvironmentCreateCommandCN"
- containers="/0/@diagram/@compartments.4 /0/@diagram/@compartments.2 /0/@diagram/@compartments.3 /0/@diagram/@compartments.8 /0/@diagram/@compartments.9 /0/@diagram/@compartments.10">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:SpecializationType"
- uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.ExecutionEnvironment_21"
- displayName="ExecutionEnvironment"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure">
- <attributes
- xsi:type="gmfgen:DefaultSizeAttributes"
- width="150"
- height="100"/>
- </viewmap>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;RESIZE_BORDER_ITEMS&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/ExecutionEnvironment"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node/nestedNode"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node/nestedNode"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="22"
- editPartClassName="ExecutionEnvironmentNameEditPartCN"
- itemSemanticEditPolicyClassName="ExecutionEnvironmentNameItemSemanticEditPolicyCN">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </childNodes>
- <childNodes
- visualID="46"
- editPartClassName="NestedExecutionEnvironmentEditPartCN"
- itemSemanticEditPolicyClassName="NestedExecutionEnvironmentItemSemanticEditPolicyCN"
- canonicalEditPolicyClassName="NestedExecutionEnvironmentCanonicalEditPolicyCN"
- compartments="/0/@diagram/@compartments.9"
- graphicalNodeEditPolicyClassName="NestedExecutionEnvironmentGraphicalNodeEditPolicyCN"
- createCommandClassName="NestedExecutionEnvironmentCreateCommandCN"
- containers="/0/@diagram/@compartments.1 /0/@diagram/@compartments.7 /0/@diagram/@compartments.0 /0/@diagram/@compartments.6">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:SpecializationType"
- uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.ExecutionEnvironment_46"
- displayName="ExecutionEnvironment"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure">
- <attributes
- xsi:type="gmfgen:DefaultSizeAttributes"
- width="150"
- height="100"/>
- </viewmap>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;RESIZE_BORDER_ITEMS&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/ExecutionEnvironment"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="47"
- editPartClassName="NestedExecutionEnvironmentNameEditPartCN"
- itemSemanticEditPolicyClassName="NestedExecutionEnvironmentNameItemSemanticEditPolicyCN">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </childNodes>
- <childNodes
- visualID="23"
- editPartClassName="NodeEditPartCN"
- itemSemanticEditPolicyClassName="NodeItemSemanticEditPolicyCN"
- canonicalEditPolicyClassName="NodeCanonicalEditPolicyCN"
- graphicalNodeEditPolicyClassName="NodeGraphicalNodeEditPolicyCN"
- createCommandClassName="NodeCreateCommandCN"
- containers="/0/@diagram/@compartments.4 /0/@diagram/@compartments.10 /0/@diagram/@compartments.2 /0/@diagram/@compartments.8">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:SpecializationType"
- displayName="Node"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure">
- <attributes
- xsi:type="gmfgen:DefaultSizeAttributes"
- width="150"
- height="150"/>
- </viewmap>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;RESIZE_BORDER_ITEMS&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node/nestedNode"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node/nestedNode"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="24"
- editPartClassName="NodeNameEditPartCN"
- itemSemanticEditPolicyClassName="NodeNameItemSemanticEditPolicyCN">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </childNodes>
- <childNodes
- visualID="42"
- editPartClassName="NestedNodeEditPartCN"
- itemSemanticEditPolicyClassName="NestedNodeItemSemanticEditPolicyCN"
- canonicalEditPolicyClassName="NestedNodeCanonicalEditPolicyCN"
- compartments="/0/@diagram/@compartments.10"
- graphicalNodeEditPolicyClassName="NestedNodeGraphicalNodeEditPolicyCN"
- createCommandClassName="NestedNodeCreateCommandCN"
- containers="/0/@diagram/@compartments.1 /0/@diagram/@compartments.7 /0/@diagram/@compartments.0 /0/@diagram/@compartments.6">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:SpecializationType"
- displayName="Node"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure">
- <attributes
- xsi:type="gmfgen:DefaultSizeAttributes"
- width="150"
- height="150"/>
- </viewmap>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;RESIZE_BORDER_ITEMS&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="43"
- editPartClassName="NestedNodeNameEditPart"
- itemSemanticEditPolicyClassName="NestedNodeNameItemSemanticEditPolicy">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </childNodes>
- <childNodes
- visualID="25"
- editPartClassName="ArtifactEditPartCN"
- itemSemanticEditPolicyClassName="ArtifactItemSemanticEditPolicyCN"
- canonicalEditPolicyClassName="ArtifactCanonicalEditPolicyCN"
- compartments="/0/@diagram/@compartments.11"
- graphicalNodeEditPolicyClassName="ArtifactGraphicalNodeEditPolicyCN"
- createCommandClassName="ArtifactCreateCommandCN"
- containers="/0/@diagram/@compartments.3 /0/@diagram/@compartments.4 /0/@diagram/@compartments.9 /0/@diagram/@compartments.10">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:SpecializationType"
- uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.Artifact_25"
- displayName="Artifact"
- metamodelType="/0/@diagram/@topLevelNodes.7/@elementType"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure">
- <attributes
- xsi:type="gmfgen:DefaultSizeAttributes"
- width="150"
- height="70"/>
- </viewmap>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.LAYOUT_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.GetChildLayoutEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Class/nestedClassifier"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Class/nestedClassifier"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.0/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact/fileName"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="27"
- editPartClassName="ArtifactNameEditPartCN"
- itemSemanticEditPolicyClassName="ArtifactNameItemSemanticEditPolicyCN">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- <labels
- xsi:type="gmfgen:GenExternalNodeLabel"
- visualID="59"
- editPartClassName="ArtifactFloatingLabelEditPartCN"
- itemSemanticEditPolicyClassName="ArtifactFloatingLabelItemSemanticEditPolicy">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.figure.node.PapyrusWrappingLabel">
- <attributes
- xsi:type="gmfgen:LabelOffsetAttributes"
- x="25"/>
- </viewmap>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0"
- viewPattern=""
- editorPattern=""
- editPattern="">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </childNodes>
- <childNodes
- visualID="28"
- editPartClassName="ArtifactEditPartACN"
- itemSemanticEditPolicyClassName="ArtifactItemSemanticEditPolicyACN"
- canonicalEditPolicyClassName="ArtifactCanonicalEditPolicyACN"
- compartments="/0/@diagram/@compartments.12"
- graphicalNodeEditPolicyClassName="ArtifactGraphicalNodeEditPolicyACN"
- createCommandClassName="ArtifactCreateCommandACN"
- containers="/0/@diagram/@compartments.5 /0/@diagram/@compartments.11 /0/@diagram/@compartments.12">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:SpecializationType"
- displayName="Artifact"
- metamodelType="/0/@diagram/@topLevelNodes.7/@elementType"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure">
- <attributes
- xsi:type="gmfgen:DefaultSizeAttributes"
- width="150"
- height="70"/>
- </viewmap>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.LAYOUT_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.GetChildLayoutEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact/nestedArtifact"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.0/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact/fileName"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="29"
- editPartClassName="ArtifactNameEditPartACN"
- itemSemanticEditPolicyClassName="ArtifactNameItemSemanticEditPolicyACN">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- <labels
- xsi:type="gmfgen:GenExternalNodeLabel"
- visualID="60"
- editPartClassName="ArtifactFloatingLabelEditPartACN"
- itemSemanticEditPolicyClassName="ArtifactFloatingLabelItemSemanticEditPolicy">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.figure.node.PapyrusWrappingLabel">
- <attributes
- xsi:type="gmfgen:LabelOffsetAttributes"
- x="25"/>
- </viewmap>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0"
- viewPattern=""
- editorPattern=""
- editPattern="">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </childNodes>
- <childNodes
- visualID="40"
- editPartClassName="NestedArtifactNodeEditPartCN"
- itemSemanticEditPolicyClassName="NestedArtifactNodeItemSemanticEditPolicyCN"
- canonicalEditPolicyClassName="NestedArtifactCanonicalEditPolicyCN"
- graphicalNodeEditPolicyClassName="NestedArtifactNodeGraphicalNodeEditPolicyCN"
- createCommandClassName="NestedArtifactNodeCreateCommandCN"
- containers="/0/@diagram/@compartments.1 /0/@diagram/@compartments.7 /0/@diagram/@compartments.0 /0/@diagram/@compartments.6">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:SpecializationType"
- displayName="Artifact"
- metamodelType="/0/@diagram/@topLevelNodes.7/@elementType"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure">
- <attributes
- xsi:type="gmfgen:DefaultSizeAttributes"
- width="150"
- height="70"/>
- </viewmap>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.0/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact/fileName"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="41"
- editPartClassName="NestedArtifactNameEditPart"
- itemSemanticEditPolicyClassName="NestedArtifactNameItemSemanticEditPolicy">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0"
- editPattern="">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </childNodes>
- <childNodes
- visualID="54"
- editPartClassName="CommentEditPartCN"
- itemSemanticEditPolicyClassName="CommentItemSemanticEditPolicyCN"
- canonicalEditPolicyClassName="CommentCanonicalEditPolicyCN"
- graphicalNodeEditPolicyClassName="CommentGraphicalNodeEditPolicyCN"
- createCommandClassName="CommentCreateCommandCN"
- containers="/0/@diagram/@compartments.0 /0/@diagram/@compartments.1 /0/@diagram/@compartments.6 /0/@diagram/@compartments.7">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:MetamodelType"
- editHelperClassName="CommentEditHelper"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.PRIMARY_DRAG_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusReflowableShapeEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Comment"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Element/ownedComment"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Element/ownedComment"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.2">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Comment/body"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="55"
- editPartClassName="CommentBodyEditPartCN"
- itemSemanticEditPolicyClassName="CommentBodyEditPartCN">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getCornerBentFigure"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.1">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Comment/body"/>
- </modelFacet>
- </labels>
- </childNodes>
- <childNodes
- visualID="56"
- editPartClassName="ConstraintEditPartCN"
- itemSemanticEditPolicyClassName="ConstraintItemSemanticEditPolicyCN"
- canonicalEditPolicyClassName="ConstraintCanonicalEditPolicyCN"
- graphicalNodeEditPolicyClassName="ConstraintGraphicalNodeEditPolicyCN"
- createCommandClassName="ConstraintCreateCommandCN"
- containers="/0/@diagram/@compartments.0 /0/@diagram/@compartments.1 /0/@diagram/@compartments.6 /0/@diagram/@compartments.7">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:MetamodelType"
- editHelperClassName="ConstraintEditHelper"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.ConstraintFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Namespace/ownedRule"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Namespace/ownedRule"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.1">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint/specification"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="57"
- editPartClassName="ConstraintNameEditPartCN"
- itemSemanticEditPolicyClassName="ConstraintNameItemSemanticEditPolicyCN">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- <labels
- visualID="58"
- editPartClassName="ConstraintSpecificationEditPartCN"
- itemSemanticEditPolicyClassName="ConstraintSpecificationItemSemanticEditPolicyCN">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getConstraintFigure"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.ConstraintFigure"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.3">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint/specification"/>
- <editableMetaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint/specification"/>
- </modelFacet>
- </labels>
- </childNodes>
- <topLevelNodes
- visualID="2011"
- editPartClassName="DependencyNodeEditPart"
- itemSemanticEditPolicyClassName="DependencyNodeItemSemanticEditPolicy"
- canonicalEditPolicyClassName="DependencyNodeCanonicalEditPolicy"
- graphicalNodeEditPolicyClassName="DependencyNodeGraphicalNodeEditPolicy"
- createCommandClassName="DependencyNodeCreateCommand">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:MetamodelType"
- uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.Dependency_2011"
- displayName="DependencyNode"
- editHelperClassName="DependencyEditHelper"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.DependencyNodeFigure">
- <attributes
- xsi:type="gmfgen:DefaultSizeAttributes"
- width="10"
- height="10"/>
- </viewmap>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- </modelFacet>
- <labels
- xsi:type="gmfgen:GenExternalNodeLabel"
- visualID="7"
- editPartClassName="MultiDependencyLabelEditPart"
- itemSemanticEditPolicyClassName="MultiDependencyLabelItemSemanticEditPolicy">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </topLevelNodes>
- <topLevelNodes
- visualID="2010"
- compartments="/0/@diagram/@compartments.0">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:SpecializationType"
- uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.Model_2010"
- displayName="Model"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure">
- <attributes
- xsi:type="gmfgen:DefaultSizeAttributes"
- width="150"
- height="150"/>
- </viewmap>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;RESIZE_BORDER_ITEMS&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Model"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="48"
- editPartClassName="ModelNameEditPart"
- itemSemanticEditPolicyClassName="ModelNameItemSemanticEditPolicy"
- elementIcon="true">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </topLevelNodes>
- <topLevelNodes
- visualID="2009"
- editPartClassName="PackageEditPart"
- itemSemanticEditPolicyClassName="PackageItemSemanticEditPolicy"
- canonicalEditPolicyClassName="PackageCanonicalEditPolicy"
- compartments="/0/@diagram/@compartments.1"
- graphicalNodeEditPolicyClassName="PackageGraphicalNodeEditPolicy"
- createCommandClassName="PackageCreateCommand">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:SpecializationType"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure">
- <attributes
- xsi:type="gmfgen:DefaultSizeAttributes"
- width="150"
- height="150"/>
- </viewmap>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;RESIZE_BORDER_ITEMS&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="35"
- editPartClassName="PackageNameEditPart"
- itemSemanticEditPolicyClassName="PackageNameItemSemanticEditPolicy"
- elementIcon="true">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </topLevelNodes>
- <topLevelNodes
- visualID="2005"
- editPartClassName="ConstraintEditPart"
- itemSemanticEditPolicyClassName="ConstraintItemSemanticEditPolicy"
- canonicalEditPolicyClassName="ConstraintCanonicalEditPolicy"
- graphicalNodeEditPolicyClassName="ConstraintGraphicalNodeEditPolicy"
- createCommandClassName="ConstraintCreateCommand">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:MetamodelType"
- editHelperClassName="ConstraintEditHelper"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.ConstraintFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Namespace/ownedRule"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.1">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint/specification"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="2"
- editPartClassName="ConstraintNameEditPart"
- itemSemanticEditPolicyClassName="ConstraintNameItemSemanticEditPolicy">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- <labels
- visualID="3"
- editPartClassName="ConstraintSpecificationEditPart"
- itemSemanticEditPolicyClassName="ConstraintSpecificationItemSemanticEditPolicy">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getConstraintFigure"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.ConstraintFigure"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.3">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint/specification"/>
- <editableMetaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint/specification"/>
- </modelFacet>
- </labels>
- </topLevelNodes>
- <topLevelNodes
- visualID="2001"
- editPartClassName="CommentEditPart"
- itemSemanticEditPolicyClassName="CommentItemSemanticEditPolicy"
- canonicalEditPolicyClassName="CommentCanonicalEditPolicy"
- graphicalNodeEditPolicyClassName="CommentGraphicalNodeEditPolicy"
- createCommandClassName="CommentCreateCommand">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:MetamodelType"
- editHelperClassName="CommentEditHelper"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.PRIMARY_DRAG_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusReflowableShapeEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Comment"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Element/ownedComment"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Element/ownedComment"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.2">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Comment/body"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="1"
- editPartClassName="CommentBodyEditPart"
- itemSemanticEditPolicyClassName="CommentBodyEditPart">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getCornerBentFigure"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.1">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Comment/body"/>
- </modelFacet>
- </labels>
- </topLevelNodes>
- <topLevelNodes
- visualID="2002"
- editPartClassName="ExecutionEnvironmentEditPart"
- itemSemanticEditPolicyClassName="ExecutionEnvironmentItemSemanticEditPolicy"
- canonicalEditPolicyClassName="ExecutionEnvironmentCanonicalEditPolicy"
- compartments="/0/@diagram/@compartments.3"
- graphicalNodeEditPolicyClassName="ExecutionEnvironmentGraphicalNodeEditPolicy"
- createCommandClassName="ExecutionEnvironmentCreateCommand">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:MetamodelType"
- editHelperClassName="ExecutionEnvironmentEditHelper"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure">
- <attributes
- xsi:type="gmfgen:DefaultSizeAttributes"
- width="150"
- height="100"/>
- </viewmap>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;RESIZE_BORDER_ITEMS&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/ExecutionEnvironment"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="5"
- editPartClassName="ExecutionEnvironmentNameEditPart"
- itemSemanticEditPolicyClassName="ExecutionEnvironmentNameItemSemanticEditPolicy">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </topLevelNodes>
- <topLevelNodes
- visualID="2003"
- editPartClassName="DeviceEditPart"
- itemSemanticEditPolicyClassName="DeviceItemSemanticEditPolicy"
- canonicalEditPolicyClassName="DeviceCanonicalEditPolicy"
- compartments="/0/@diagram/@compartments.2"
- graphicalNodeEditPolicyClassName="DeviceGraphicalNodeEditPolicy"
- createCommandClassName="DeviceCreateCommand">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:MetamodelType"
- editHelperClassName="DeviceEditHelper"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure">
- <attributes
- xsi:type="gmfgen:DefaultSizeAttributes"
- width="150"
- height="100"/>
- </viewmap>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;RESIZE_BORDER_ITEMS&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Device"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="6"
- editPartClassName="DeviceNameEditPart"
- itemSemanticEditPolicyClassName="DeviceNameItemSemanticEditPolicy">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </topLevelNodes>
- <topLevelNodes
- visualID="2006"
- editPartClassName="ArtifactEditPart"
- itemSemanticEditPolicyClassName="ArtifactItemSemanticEditPolicy"
- canonicalEditPolicyClassName="ArtifactCanonicalEditPolicy"
- compartments="/0/@diagram/@compartments.5"
- graphicalNodeEditPolicyClassName="ArtifactGraphicalNodeEditPolicy"
- createCommandClassName="ArtifactCreateCommand">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:MetamodelType"
- editHelperClassName="ArtifactEditHelper"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure">
- <attributes
- xsi:type="gmfgen:DefaultSizeAttributes"
- width="150"
- height="70"/>
- </viewmap>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.LAYOUT_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.GetChildLayoutEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.0/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact/fileName"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="8"
- editPartClassName="ArtifactNameEditPart"
- itemSemanticEditPolicyClassName="ArtifactNameItemSemanticEditPolicy">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- <labels
- xsi:type="gmfgen:GenExternalNodeLabel"
- visualID="61"
- editPartClassName="ArtifactFloatingLabelEditPart"
- itemSemanticEditPolicyClassName="ArtifactFloatingLabelItemSemanticEditPolicy">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.figure.node.PapyrusWrappingLabel">
- <attributes
- xsi:type="gmfgen:LabelOffsetAttributes"
- x="25"/>
- </viewmap>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0"
- viewPattern=""
- editorPattern=""
- editPattern="">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </topLevelNodes>
- <topLevelNodes
- visualID="2008"
- compartments="/0/@diagram/@compartments.4">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:MetamodelType"
- editHelperClassName="NodeEditHelper"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure">
- <attributes
- xsi:type="gmfgen:DefaultSizeAttributes"
- width="150"
- height="150"/>
- </viewmap>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;REMOVE_ORPHAN_VIEW&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="&quot;RESIZE_BORDER_ITEMS&quot;"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- </modelElementInitializer>
- </modelFacet>
- <labels
- visualID="9"
- editPartClassName="NodeNameEditPart"
- itemSemanticEditPolicyClassName="NodeNameItemSemanticEditPolicy">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0"
- editPattern="">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </topLevelNodes>
- <topLevelNodes
- visualID="2012"
- editPartClassName="DefaultNamedElementEditPart"
- itemSemanticEditPolicyClassName="DefaultNamedElementItemSemanticEditPolicy"
- canonicalEditPolicyClassName="DefaultNamedElementCanonicalEditPolicy"
- graphicalNodeEditPolicyClassName="DefaultNamedElementGraphicalNodeEditPolicy"
- createCommandClassName="DefaultNamedElementCreateCommand">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <elementType
- xsi:type="gmfgen:MetamodelType"
- uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.NamedElement_2012"
- displayName="DefaultNamedElement"
- editHelperClassName="DefaultNamedElementEditHelper"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.NodeNamedElementFigure">
- <attributes
- xsi:type="gmfgen:DefaultSizeAttributes"
- width="100"
- height="50"/>
- </viewmap>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ChangeStereotypedShapeEditPolicy.CHANGE_SHAPE_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.DeploymentDiagramChangeStereotypedShapeEditpolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.SEMANTIC_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.itemsemantic.CustomDefaultNamedElementItemSemanticEditPolicy"/>
- <modelFacet>
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- </modelFacet>
- <labels
- visualID="53"
- editPartClassName="DefaultNamedElementNameEditPart"
- itemSemanticEditPolicyClassName="DefaultNamedElementNameItemSemanticEditPolicy"
- elementIcon="true">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0"
- editPattern="">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </topLevelNodes>
- <links
- visualID="4005"
- editPartClassName="LinkDescriptorEditPart"
- itemSemanticEditPolicyClassName="LinkDescriptorItemSemanticEditPolicy"
- createCommandClassName="LinkDescriptorCreateCommand"
- reorientCommandClassName="LinkDescriptorReorientCommand">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Edge"/>
- <elementType
- xsi:type="gmfgen:NotationType"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.edge.SimpleDashedEdgeFigure"/>
- </links>
- <links
- visualID="4008"
- editPartClassName="CommentAnnotatedElementEditPart"
- itemSemanticEditPolicyClassName="CommentAnnotatedElementItemSemanticEditPolicy"
- createCommandClassName="CommentAnnotatedElementCreateCommand"
- reorientCommandClassName="CommentAnnotatedElementReorientCommand">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Edge"/>
- <elementType
- xsi:type="gmfgen:SpecializationType"
- uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.CommentAnnotatedElement_4006"
- displayName="CommentAnnotatedElement"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.edge.SimpleDashedEdgeFigure"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLinkModelFacet">
- <metaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Comment/annotatedElement"/>
- </modelFacet>
- </links>
- <links
- visualID="4009"
- editPartClassName="ConstraintConstrainedElementEditPart"
- itemSemanticEditPolicyClassName="ConstraintConstrainedElementItemSemanticEditPolicy"
- createCommandClassName="ConstraintConstrainedElementCreateCommand"
- reorientCommandClassName="ConstraintConstrainedElementReorientCommand">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Edge"/>
- <elementType
- xsi:type="gmfgen:SpecializationType"
- uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.ConstraintConstrainedElement_4007"
- displayName="ConstraintConstrainedElement"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.edge.SimpleDashedEdgeFigure"/>
- <modelFacet
- xsi:type="gmfgen:FeatureLinkModelFacet">
- <metaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint/constrainedElement"/>
- </modelFacet>
- </links>
- <links
- visualID="4001"
- editPartClassName="DeploymentEditPart"
- itemSemanticEditPolicyClassName="DeploymentItemSemanticEditPolicy"
- createCommandClassName="DeploymentCreateCommand"
- reorientCommandClassName="DeploymentReorientCommand">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Edge"/>
- <elementType
- xsi:type="gmfgen:MetamodelType"
- editHelperClassName="DeploymentEditHelper"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy"/>
- <modelFacet
- xsi:type="gmfgen:TypeLinkModelFacet">
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Deployment"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/DeploymentTarget/deployment"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/DeploymentTarget/deployment"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- </modelElementInitializer>
- <sourceMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency/client"/>
- <targetMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency/supplier"/>
- </modelFacet>
- <labels
- visualID="13"
- editPartClassName="DeploymentNameEditPart"
- itemSemanticEditPolicyClassName="DeploymentNameItemSemanticEditPolicy">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
- <attributes
- xsi:type="gmfgen:LabelOffsetAttributes"
- y="60"/>
- </viewmap>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- <labels
- visualID="14"
- editPartClassName="DeploymentAppliedStereotypeEditPart"
- itemSemanticEditPolicyClassName="DeploymentAppliedStereotypeItemSemanticEditPolicy">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getAppliedStereotypeLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
- <attributes
- xsi:type="gmfgen:LabelOffsetAttributes"
- y="60"/>
- </viewmap>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.2"
- viewPattern="&lt;&lt;{0}>>"
- editorPattern="&lt;&lt;{0}>>"
- editPattern="&lt;&lt;{0}>>">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </links>
- <links
- visualID="4002"
- editPartClassName="ManifestationEditPart"
- itemSemanticEditPolicyClassName="ManifestationItemSemanticEditPolicy"
- createCommandClassName="ManifestationCreateCommand"
- reorientCommandClassName="ManifestationReorientCommand">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Edge"/>
- <elementType
- xsi:type="gmfgen:MetamodelType"
- editHelperClassName="ManifestationEditHelper"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy"/>
- <modelFacet
- xsi:type="gmfgen:TypeLinkModelFacet">
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Manifestation"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact/manifestation"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact/manifestation"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- </modelElementInitializer>
- <sourceMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency/client"/>
- <targetMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency/supplier"/>
- </modelFacet>
- <labels
- visualID="10"
- editPartClassName="ManifestationNameEditPart"
- itemSemanticEditPolicyClassName="ManifestationNameItemSemanticEditPolicy">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
- <attributes
- xsi:type="gmfgen:LabelOffsetAttributes"
- y="60"/>
- </viewmap>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- <labels
- visualID="11"
- editPartClassName="ManifestationAppliedStereotypeEditPart"
- itemSemanticEditPolicyClassName="ManifestationAppliedStereotypeItemSemanticEditPolicy">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getAppliedStereotypeLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
- <attributes
- xsi:type="gmfgen:LabelOffsetAttributes"
- y="30"/>
- </viewmap>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.2"
- viewPattern="&lt;&lt;{0}>>"
- editorPattern="&lt;&lt;{0}>>"
- editPattern="&lt;&lt;{0}>>">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </links>
- <links
- visualID="4003"
- editPartClassName="GeneralizationEditPart"
- itemSemanticEditPolicyClassName="GeneralizationItemSemanticEditPolicy"
- createCommandClassName="GeneralizationCreateCommand"
- reorientCommandClassName="GeneralizationReorientCommand">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Edge"/>
- <elementType
- xsi:type="gmfgen:MetamodelType"
- editHelperClassName="GeneralizationEditHelper"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.edge.GeneralizationFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy"/>
- <modelFacet
- xsi:type="gmfgen:TypeLinkModelFacet">
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Generalization"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Classifier/generalization"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Classifier/generalization"/>
- <sourceMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Generalization/specific"/>
- <targetMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Generalization/general"/>
- </modelFacet>
- <labels
- visualID="4"
- editPartClassName="GeneralizationAppliedStereotypeEditPart"
- itemSemanticEditPolicyClassName="GeneralizationAppliedStereotypeItemSemanticEditPolicy"
- readOnly="true">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getAppliedStereotypeLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
- <attributes
- xsi:type="gmfgen:LabelOffsetAttributes"
- y="60"/>
- </viewmap>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.2"
- viewPattern="&lt;&lt;{0}>>"
- editorPattern="&lt;&lt;{0}>>"
- editPattern="&lt;&lt;{0}>>">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Generalization/isSubstitutable"/>
- </modelFacet>
- </labels>
- </links>
- <links
- visualID="4004"
- editPartClassName="DependencyEditPart"
- itemSemanticEditPolicyClassName="DependencyItemSemanticEditPolicy"
- createCommandClassName="DependencyCreateCommand"
- reorientCommandClassName="DependencyReorientCommand">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Edge"/>
- <elementType
- xsi:type="gmfgen:SpecializationType"
- displayName="DependencyLink"
- metamodelType="/0/@diagram/@topLevelNodes.0/@elementType"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <modelFacet
- xsi:type="gmfgen:TypeLinkModelFacet">
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- </modelElementInitializer>
- <sourceMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency/client"/>
- <targetMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency/supplier"/>
- </modelFacet>
- <labels
- visualID="12"
- editPartClassName="DependencyNameEditPart"
- itemSemanticEditPolicyClassName="DependencyNameItemSemanticEditPolicy">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getNameLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
- <attributes
- xsi:type="gmfgen:LabelOffsetAttributes"
- y="40"/>
- </viewmap>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.0"
- editorPattern="">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- <labels
- visualID="15"
- editPartClassName="DependencyAppliedStereotypeEditPart"
- itemSemanticEditPolicyClassName="DependencyAppliedStereotypeItemSemanticEditPolicy">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getAppliedStereotypeLabel"
- figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
- <attributes
- xsi:type="gmfgen:LabelOffsetAttributes"
- y="60"/>
- </viewmap>
- <modelFacet
- xsi:type="gmfgen:FeatureLabelModelFacet"
- parser="/0/@labelParsers/@implementations.2"
- viewPattern="&lt;&lt;{0}>>"
- editorPattern="&lt;&lt;{0}>>"
- editPattern="&lt;&lt;{0}>>">
- <metaFeatures
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </modelFacet>
- </labels>
- </links>
- <links
- visualID="4010"
- editPartClassName="DependencyBranchEditPart"
- itemSemanticEditPolicyClassName="DependencyBranchItemSemanticEditPolicy"
- createCommandClassName="DependencyBranchCreateCommand"
- reorientCommandClassName="DependencyBranchReorientCommand">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Edge"/>
- <elementType
- xsi:type="gmfgen:SpecializationType"
- uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.Dependency_4010"
- displayName="DependencyBranchLink"
- metamodelType="/0/@diagram/@topLevelNodes.0/@elementType"/>
- <viewmap
- xsi:type="gmfgen:FigureViewmap"
- figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
- <modelFacet
- xsi:type="gmfgen:TypeLinkModelFacet">
- <metaClass
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency"/>
- <containmentMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <childMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
- <modelElementInitializer
- xsi:type="gmfgen:GenFeatureSeqInitializer">
- <initializers
- xsi:type="gmfgen:GenFeatureValueSpec"
- value="/0/@expressionProviders/@providers.1/@expressions.0">
- <feature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
- </initializers>
- </modelElementInitializer>
- <sourceMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency/client"/>
- <targetMetaFeature
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency/supplier"/>
- </modelFacet>
- </links>
- <compartments
- visualID="51"
- editPartClassName="ModelPackageableElementCompartmentEditPart"
- itemSemanticEditPolicyClassName="ModelPackageableElementCompartmentItemSemanticEditPolicy"
- canonicalEditPolicyClassName="ModelPackageableElementCompartmentCanonicalEditPolicy"
- childNodes="/0/@diagram/@childNodes.0 /0/@diagram/@childNodes.1 /0/@diagram/@childNodes.3 /0/@diagram/@childNodes.5 /0/@diagram/@childNodes.7 /0/@diagram/@childNodes.10 /0/@diagram/@childNodes.11 /0/@diagram/@childNodes.12"
- title="ModelCompartment"
- canCollapse="false"
- node="/0/@diagram/@topLevelNodes.1"
- listLayout="false">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getPackageableElementFigure"
- figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- </compartments>
- <compartments
- visualID="38"
- editPartClassName="PackagePackageableElementCompartmentEditPart"
- itemSemanticEditPolicyClassName="PackagePackageableElementCompartmentItemSemanticEditPolicy"
- canonicalEditPolicyClassName="PackagePackageableElementCompartmentCanonicalEditPolicy"
- childNodes="/0/@diagram/@childNodes.0 /0/@diagram/@childNodes.1 /0/@diagram/@childNodes.10 /0/@diagram/@childNodes.3 /0/@diagram/@childNodes.5 /0/@diagram/@childNodes.7 /0/@diagram/@childNodes.11 /0/@diagram/@childNodes.12"
- title="PackageableElementCompartment"
- canCollapse="false"
- node="/0/@diagram/@topLevelNodes.2"
- listLayout="false">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getPackageableElementFigure"
- figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- </compartments>
- <compartments
- visualID="17"
- editPartClassName="DeviceCompositeCompartmentEditPart"
- itemSemanticEditPolicyClassName="DeviceCompositeCompartmentItemSemanticEditPolicy"
- canonicalEditPolicyClassName="DeviceCompositeCompartmentCanonicalEditPolicy"
- childNodes="/0/@diagram/@childNodes.4 /0/@diagram/@childNodes.2 /0/@diagram/@childNodes.6"
- title="DeviceCompositeCompartment"
- canCollapse="false"
- node="/0/@diagram/@topLevelNodes.6"
- listLayout="false">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getCompositeCompartmentFigure"
- figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- </compartments>
- <compartments
- visualID="18"
- editPartClassName="ExecutionEnvironmentCompositeCompartmentEditPart"
- itemSemanticEditPolicyClassName="ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy"
- canonicalEditPolicyClassName="ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicy"
- childNodes="/0/@diagram/@childNodes.4 /0/@diagram/@childNodes.8"
- title="ExecutionEnvironmentCompositeCompartment"
- canCollapse="false"
- node="/0/@diagram/@topLevelNodes.5"
- listLayout="false">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getCompositeCompartmentFigure"
- figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- </compartments>
- <compartments
- visualID="19"
- editPartClassName="NodeCompositeCompartmentEditPart"
- itemSemanticEditPolicyClassName="NodeCompositeCompartmentItemSemanticEditPolicy"
- canonicalEditPolicyClassName="NodeCompositeCompartmentCanonicalEditPolicy"
- childNodes="/0/@diagram/@childNodes.2 /0/@diagram/@childNodes.4 /0/@diagram/@childNodes.8 /0/@diagram/@childNodes.6"
- title="CompositeCompartment"
- canCollapse="false"
- node="/0/@diagram/@topLevelNodes.8"
- listLayout="false">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getCompositeCompartmentFigure"
- figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- </compartments>
- <compartments
- visualID="26"
- editPartClassName="ArtifactCompositeCompartmentEditPart"
- itemSemanticEditPolicyClassName="ArtifactCompositeCompartmentItemSemanticEditPolicy"
- canonicalEditPolicyClassName="ArtifactCompositeCompartmentCanonicalEditPolicy"
- childNodes="/0/@diagram/@childNodes.9"
- title="ArtifactCompositeCompartment"
- node="/0/@diagram/@topLevelNodes.7"
- listLayout="false">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getCompositeCompartmentFigure"
- figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.BorderDisplayEditPolicy.BORDER_DISPLAY_EDITPOLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.BorderDisplayEditPolicy"/>
- </compartments>
- <compartments
- visualID="52"
- editPartClassName="ModelPackageableElementCompartmentEditPartCN"
- itemSemanticEditPolicyClassName="ModelPackageableElementCompartmentItemSemanticEditPolicyCN"
- canonicalEditPolicyClassName="ModelPackageableElementCompartmentCanonicalEditPolicyCN"
- childNodes="/0/@diagram/@childNodes.0 /0/@diagram/@childNodes.1 /0/@diagram/@childNodes.3 /0/@diagram/@childNodes.5 /0/@diagram/@childNodes.7 /0/@diagram/@childNodes.10 /0/@diagram/@childNodes.11 /0/@diagram/@childNodes.12"
- title="ModelCompartment"
- canCollapse="false"
- node="/0/@diagram/@childNodes.0"
- listLayout="false">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getPackageableElementFigure"
- figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- </compartments>
- <compartments
- visualID="39"
- editPartClassName="PackagePackageableElementCompartmentEditPartCN"
- itemSemanticEditPolicyClassName="PackagePackageableElementCompartmentItemSemanticEditPolicyCN"
- canonicalEditPolicyClassName="PackagePackageableElementCompartmentCanonicalEditPolicyCN"
- childNodes="/0/@diagram/@childNodes.1 /0/@diagram/@childNodes.10 /0/@diagram/@childNodes.3 /0/@diagram/@childNodes.5 /0/@diagram/@childNodes.7 /0/@diagram/@childNodes.11 /0/@diagram/@childNodes.12"
- title="PackageableElementCompartment"
- canCollapse="false"
- node="/0/@diagram/@childNodes.1"
- listLayout="false">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getPackageableElementFigure"
- figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- </compartments>
- <compartments
- visualID="30"
- editPartClassName="DeviceCompositeCompartmentEditPartCN"
- itemSemanticEditPolicyClassName="DeviceCompositeCompartmentItemSemanticEditPolicyCN"
- canonicalEditPolicyClassName="DeviceCompositeCompartmentCanonicalEditPolicyCN"
- childNodes="/0/@diagram/@childNodes.4 /0/@diagram/@childNodes.2 /0/@diagram/@childNodes.6"
- title="DeviceCompositeCompartment"
- node="/0/@diagram/@childNodes.3"
- listLayout="false">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getCompositeCompartmentFigure"
- figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- </compartments>
- <compartments
- visualID="31"
- editPartClassName="ExecutionEnvironmentCompositeCompartmentEditPartCN"
- itemSemanticEditPolicyClassName="ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicyCN"
- canonicalEditPolicyClassName="ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicyCN"
- childNodes="/0/@diagram/@childNodes.8 /0/@diagram/@childNodes.4"
- title="ExecutionEnvironmentCompositeCompartment"
- node="/0/@diagram/@childNodes.5"
- listLayout="false">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getCompositeCompartmentFigure"
- figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- </compartments>
- <compartments
- visualID="32"
- editPartClassName="NodeCompositeCompartmentEditPartCN"
- itemSemanticEditPolicyClassName="NodeCompositeCompartmentItemSemanticEditPolicyCN"
- canonicalEditPolicyClassName="NodeCompositeCompartmentCanonicalEditPolicyCN"
- childNodes="/0/@diagram/@childNodes.2 /0/@diagram/@childNodes.4 /0/@diagram/@childNodes.6 /0/@diagram/@childNodes.8"
- title="CompositeCompartment"
- node="/0/@diagram/@childNodes.7"
- listLayout="false">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getCompositeCompartmentFigure"
- figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- </compartments>
- <compartments
- visualID="33"
- editPartClassName="ArtifactCompositeCompartmentEditPartCN"
- itemSemanticEditPolicyClassName="ArtifactCompositeCompartmentItemSemanticEditPolicyCN"
- canonicalEditPolicyClassName="ArtifactCompositeCompartmentCanonicalEditPolicyCN"
- childNodes="/0/@diagram/@childNodes.9"
- title="ArtifactCompositeCompartment"
- node="/0/@diagram/@childNodes.8"
- listLayout="false">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getCompositeCompartmentFigure"
- figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.BorderDisplayEditPolicy.BORDER_DISPLAY_EDITPOLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.BorderDisplayEditPolicy"/>
- </compartments>
- <compartments
- visualID="34"
- editPartClassName="ArtifactCompositeCompartmentEditPartACN"
- itemSemanticEditPolicyClassName="ArtifactCompositeCompartmentItemSemanticEditPolicyACN"
- canonicalEditPolicyClassName="ArtifactCompositeCompartmentCanonicalEditPolicyACN"
- childNodes="/0/@diagram/@childNodes.9"
- title="ArtifactCompositeCompartment"
- node="/0/@diagram/@childNodes.9"
- listLayout="false">
- <diagramRunTimeClass
- href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
- <viewmap
- xsi:type="gmfgen:ParentAssignedViewmap"
- getterName="getCompositeCompartmentFigure"
- figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
- editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
- <behaviour
- xsi:type="gmfgen:CustomBehaviour"
- key="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.BorderDisplayEditPolicy.BORDER_DISPLAY_EDITPOLICY"
- editPolicyQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.BorderDisplayEditPolicy"/>
- </compartments>
- <palette>
- <groups
- title="Nodes"
- description="Nodes"
- largeIconPath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
- smallIconPath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
- createMethodName="createNodesGroup"
- id="&quot;deployment.group.nodes&quot;"
- collapse="true">
- <entries
- xsi:type="gmfgen:ToolEntry"
- title="Artifact"
- description="Create new Artifact"
- largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Artifact.gif"
- smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Artifact.gif"
- createMethodName="createArtifactCreationTool"
- id="&quot;deployment.tool.artifact&quot;"
- genNodes="/0/@diagram/@topLevelNodes.7 /0/@diagram/@childNodes.8 /0/@diagram/@childNodes.9 /0/@diagram/@childNodes.10"/>
- <entries
- xsi:type="gmfgen:ToolEntry"
- title="Comment"
- description="Create new Comment"
- largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Comment.gif"
- smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Comment.gif"
- createMethodName="createCommentCreationTool"
- id="&quot;deployment.tool.comment&quot;"
- genNodes="/0/@diagram/@topLevelNodes.4 /0/@diagram/@childNodes.11"/>
- <entries
- xsi:type="gmfgen:ToolEntry"
- title="Constraint"
- description="Create new Constraint"
- largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Constraint.gif"
- smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Constraint.gif"
- createMethodName="createConstraintCreationTool"
- id="&quot;deployment.tool.constraint&quot;"
- genNodes="/0/@diagram/@topLevelNodes.3 /0/@diagram/@childNodes.12"/>
- <entries
- xsi:type="gmfgen:ToolEntry"
- title="Device"
- description="Create new Device"
- largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Device.gif"
- smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Device.gif"
- createMethodName="createDeviceCreationTool"
- id="&quot;deployment.tool.device&quot;"
- genNodes="/0/@diagram/@topLevelNodes.6 /0/@diagram/@childNodes.2 /0/@diagram/@childNodes.3"/>
- <entries
- xsi:type="gmfgen:ToolEntry"
- title="Execution Environment"
- description="Create new ExecutionEnvironment"
- largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/ExecutionEnvironment.gif"
- smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/ExecutionEnvironment.gif"
- createMethodName="createExecutionEnvironmentCreationTool"
- id="&quot;deployment.tool.executionEnvironment&quot;"
- genNodes="/0/@diagram/@topLevelNodes.5 /0/@diagram/@childNodes.4 /0/@diagram/@childNodes.5"/>
- <entries
- xsi:type="gmfgen:ToolEntry"
- title="Model"
- description="Create a model"
- largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Model.gif"
- smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Model.gif"
- createMethodName="createModelCreationTool"
- genNodes="/0/@diagram/@childNodes.0 /0/@diagram/@topLevelNodes.1"/>
- <entries
- xsi:type="gmfgen:ToolEntry"
- title="Node"
- description="Create new Node"
- largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Node.gif"
- smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Node.gif"
- createMethodName="createNodeCreationTool"
- id="&quot;deployment.tool.node&quot;"
- genNodes="/0/@diagram/@topLevelNodes.8 /0/@diagram/@childNodes.6 /0/@diagram/@childNodes.7"/>
- <entries
- xsi:type="gmfgen:ToolEntry"
- title="Package"
- description="Create a Package"
- largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Package.gif"
- smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Package.gif"
- createMethodName="createPackageCreationTool"
- id="&quot;deployment.tool.package&quot;"
- genNodes="/0/@diagram/@topLevelNodes.2 /0/@diagram/@childNodes.1"/>
- </groups>
- <groups
- title="Links"
- description="Links"
- largeIconPath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
- smallIconPath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
- createMethodName="createLinksGroup"
- id="&quot;deployment.group.links&quot;"
- collapse="true">
- <entries
- xsi:type="gmfgen:ToolEntry"
- title="Dependency"
- description="Create new Dependency"
- largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Dependency.gif"
- smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Dependency.gif"
- createMethodName="createDependencyCreationTool"
- id="&quot;deployment.tool.dependency&quot;"
- genLinks="/0/@diagram/@links.6"/>
- <entries
- xsi:type="gmfgen:ToolEntry"
- title="DependencyBranch"
- description="Create a dependency branch"
- largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Dependency.gif"
- smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Dependency.gif"
- createMethodName="createDependencyBranchCreationTool"
- id="&quot;deployment.tool.dependencybranch&quot;"
- genLinks="/0/@diagram/@links.7"/>
- <entries
- xsi:type="gmfgen:ToolEntry"
- title="Deployment"
- description="Create new Deployment"
- largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Deployment.gif"
- smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Deployment.gif"
- createMethodName="createDeploymentCreationTool"
- id="&quot;deployment.tool.deployment&quot;"
- genLinks="/0/@diagram/@links.3"/>
- <entries
- xsi:type="gmfgen:ToolEntry"
- title="Generalization"
- description="Create new Generalization"
- largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Generalization.gif"
- smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Generalization.gif"
- createMethodName="createGeneralizationCreationTool"
- id="&quot;deployment.tool.generalization&quot;"
- genLinks="/0/@diagram/@links.5"/>
- <entries
- xsi:type="gmfgen:ToolEntry"
- title="Link"
- description="Create new Link (Comment / Constraint)"
- largeIconPath="icons/obj16/Link.gif"
- smallIconPath="icons/obj16/Link.gif"
- createMethodName="createLinkCreationTool"
- id="&quot;deployment.tool.link&quot;"
- genLinks="/0/@diagram/@links.1 /0/@diagram/@links.2"/>
- <entries
- xsi:type="gmfgen:ToolEntry"
- title="Manifestation"
- description="Create new Manifestation"
- largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Manifestation.gif"
- smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Manifestation.gif"
- createMethodName="createManifestationCreationTool"
- id="&quot;deployment.tool.manifestation&quot;"
- genLinks="/0/@diagram/@links.4"/>
- </groups>
- </palette>
- <preferencePages
- xsi:type="gmfgen:GenStandardPreferencePage"
- iD="org.eclipse.uml2.uml.diagram.general"
- name="UML Diagram">
- <children
- xsi:type="gmfgen:GenStandardPreferencePage"
- iD="org.eclipse.uml2.uml.diagram.appearance"
- name="Appearance"
- kind="Appearance"/>
- <children
- xsi:type="gmfgen:GenStandardPreferencePage"
- iD="org.eclipse.uml2.uml.diagram.connections"
- name="Connections"
- kind="Connections"/>
- <children
- xsi:type="gmfgen:GenStandardPreferencePage"
- iD="org.eclipse.uml2.uml.diagram.printing"
- name="Printing"
- kind="Printing"/>
- <children
- xsi:type="gmfgen:GenStandardPreferencePage"
- iD="org.eclipse.uml2.uml.diagram.rulersAndGrid"
- name="Rulers And Grid"
- kind="RulersAndGrid"/>
- </preferencePages>
- </diagram>
- <plugin
- iD="org.eclipse.papyrus.uml.diagram.deployment"
- name="Papyrus Deployment Diagram "
- provider="Eclipse Modeling Project"
- version="1.1.0.qualifier">
- <requiredPlugins>org.eclipse.draw2d</requiredPlugins>
- <requiredPlugins>org.eclipse.gmf.runtime.draw2d.ui</requiredPlugins>
- </plugin>
- <editor
- iconPath="icons/obj16/DeploymentDiagram.gif"/>
- <diagramUpdater/>
- <propertySheet>
- <tabs
- xsi:type="gmfgen:GenStandardPropertyTab"
- iD="appearance"/>
- <tabs
- xsi:type="gmfgen:GenStandardPropertyTab"
- iD="diagram"/>
- <tabs
- xsi:type="gmfgen:GenCustomPropertyTab"
- iD="domain"
- label="Core">
- <filter
- xsi:type="gmfgen:TypeTabFilter">
- <types>org.eclipse.gmf.runtime.notation.View</types>
- <types>org.eclipse.gef.EditPart</types>
- <generatedTypes>abstractNavigatorItem</generatedTypes>
- </filter>
- </tabs>
- </propertySheet>
- <domainGenModel
- href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#/"/>
- <expressionProviders>
- <providers
- xsi:type="gmfgen:GenExpressionInterpreter">
- <expressions
- body="self.name.concat('.file') "/>
- </providers>
- <providers
- xsi:type="gmfgen:GenJavaExpressionProvider"
- injectExpressionBody="true">
- <expressions
- body="return org.eclipse.papyrus.uml.tools.utils.NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());"/>
- <expressions
- body="// Constraint specification init&#xD;&#xA;org.eclipse.uml2.uml.LiteralString value = org.eclipse.uml2.uml.UMLFactory.eINSTANCE.createLiteralString();&#xD;&#xA;value.setValue(&quot;&quot;);&#xD;&#xA;return value;"/>
- <expressions
- body="// Comment body init&#xD;&#xA;return &quot;&quot;;"/>
- <expressions
- xsi:type="gmfgen:GenConstraint"
- body="// Creation constraint for TopLevelNodes&#xD;&#xA;&#x9;if(! (getElementToEdit() instanceof org.eclipse.uml2.uml.Package)) {&#xD;&#xA;&#x9;&#x9;return false;&#xD;&#xA;&#x9;}&#xD;&#xA;&#xD;&#xA;&#x9;return true;"/>
- </providers>
- </expressionProviders>
- <labelParsers
- extensibleViaService="true">
- <implementations
- xsi:type="gmfgen:PredefinedParser"
- uses="/0/@diagram/@topLevelNodes.3/@labels.0/@modelFacet /0/@diagram/@topLevelNodes.5/@labels.0/@modelFacet /0/@diagram/@topLevelNodes.6/@labels.0/@modelFacet /0/@diagram/@topLevelNodes.7/@labels.0/@modelFacet /0/@diagram/@topLevelNodes.8/@labels.0/@modelFacet /0/@diagram/@links.4/@labels.0/@modelFacet /0/@diagram/@links.6/@labels.0/@modelFacet /0/@diagram/@links.3/@labels.0/@modelFacet /0/@diagram/@childNodes.2/@labels.0/@modelFacet /0/@diagram/@childNodes.4/@labels.0/@modelFacet /0/@diagram/@childNodes.6/@labels.0/@modelFacet /0/@diagram/@childNodes.8/@labels.0/@modelFacet /0/@diagram/@childNodes.9/@labels.0/@modelFacet /0/@diagram/@topLevelNodes.2/@labels.0/@modelFacet /0/@diagram/@childNodes.1/@labels.0/@modelFacet /0/@diagram/@childNodes.10/@labels.0/@modelFacet /0/@diagram/@childNodes.7/@labels.0/@modelFacet /0/@diagram/@childNodes.3/@labels.0/@modelFacet /0/@diagram/@childNodes.5/@labels.0/@modelFacet /0/@diagram/@topLevelNodes.1/@labels.0/@modelFacet /0/@diagram/@childNodes.0/@labels.0/@modelFacet /0/@diagram/@topLevelNodes.0/@labels.0/@modelFacet /0/@diagram/@topLevelNodes.9/@labels.0/@modelFacet /0/@diagram/@childNodes.12/@labels.0/@modelFacet /0/@diagram/@childNodes.8/@labels.1/@modelFacet /0/@diagram/@childNodes.9/@labels.1/@modelFacet /0/@diagram/@topLevelNodes.7/@labels.1/@modelFacet"/>
- <implementations
- xsi:type="gmfgen:CustomParser"
- uses="/0/@diagram/@topLevelNodes.4/@labels.0/@modelFacet /0/@diagram/@childNodes.11/@labels.0/@modelFacet"
- qualifiedName="org.eclipse.papyrus.uml.diagram.common.parser.CommentParser"/>
- <implementations
- xsi:type="gmfgen:CustomParser"
- uses="/0/@diagram/@links.5/@labels.0/@modelFacet /0/@diagram/@links.4/@labels.1/@modelFacet /0/@diagram/@links.6/@labels.1/@modelFacet /0/@diagram/@links.3/@labels.1/@modelFacet"
- qualifiedName="org.eclipse.papyrus.uml.diagram.common.parser.stereotype.AppliedStereotypeParser"/>
- <implementations
- xsi:type="gmfgen:CustomParser"
- uses="/0/@diagram/@topLevelNodes.3/@labels.1/@modelFacet /0/@diagram/@childNodes.12/@labels.1/@modelFacet"
- qualifiedName="org.eclipse.papyrus.uml.diagram.common.parser.ConstraintParser"/>
- </labelParsers>
- <contextMenus
- context="/0/@diagram">
- <items
- xsi:type="gmfgen:LoadResourceAction"/>
- </contextMenus>
- </gmfgen:GenEditorGenerator>
- <papyrusgmfgenextension:PapyrusExtensionRootNode
- comment="Papyrus specific extension for GMFGen">
- <extensionNodes
- xsi:type="papyrusgmfgenextension:ExtendedGenView"
- comment="Manages stereotype shown with External Label"
- genView="/0/@diagram/@links.5/@labels.0 /0/@diagram/@links.3/@labels.1 /0/@diagram/@links.4/@labels.1 /0/@diagram/@links.6/@labels.1"
- name="EP_Stereotypes_EXT_NODE"
- superOwnedEditPart="org.eclipse.papyrus.uml.diagram.common.editparts.AbstractLabelEditPart"/>
- <extensionNodes
- xsi:type="papyrusgmfgenextension:ExtendedGenView"
- comment="Add super class to a Comment edit parts"
- genView="/0/@diagram/@childNodes.11 /0/@diagram/@topLevelNodes.4"
- name="EP_Comment_NODE"
- superOwnedEditPart="org.eclipse.papyrus.uml.diagram.common.editparts.AbstractCommentEditPart"/>
- <extensionNodes
- xsi:type="papyrusgmfgenextension:ExtendedGenView"
- comment="Add super class to a Constraint edit parts"
- genView="/0/@diagram/@childNodes.12 /0/@diagram/@topLevelNodes.3"
- name="EP_Constraint_NODE"
- superOwnedEditPart="org.eclipse.papyrus.uml.diagram.common.editparts.AbstractConstraintEditPart"/>
- <extensionNodes
- xsi:type="papyrusgmfgenextension:ExtendedGenView"
- comment="Label in charge to display applied stereotypes on links"
- genView="/0/@diagram/@links.3 /0/@diagram/@links.4 /0/@diagram/@links.6 /0/@diagram/@links.5 /0/@diagram/@links.7 /0/@diagram/@links.2"
- name="ExtendedUMLLinks"
- superOwnedEditPart="org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart"/>
- <extensionNodes
- xsi:type="papyrusgmfgenextension:ExtendedGenView"
- comment="adding to manange NamedElement"
- genView="/0/@diagram /0/@diagram/@topLevelNodes.9 /0/@diagram/@topLevelNodes.8 /0/@diagram/@childNodes.6 /0/@diagram/@topLevelNodes.6 /0/@diagram/@childNodes.2 /0/@diagram/@topLevelNodes.5 /0/@diagram/@childNodes.4"
- name="NamedElementEditPart"
- superOwnedEditPart="org.eclipse.papyrus.uml.diagram.common.editparts.NamedElementEditPart"/>
- <extensionNodes
- xsi:type="papyrusgmfgenextension:GenNodeConstraint"
- comment="Creation constraint for TopLevelNode in virtual canvas"
- genNode="/0/@diagram/@topLevelNodes.2 /0/@diagram/@topLevelNodes.4 /0/@diagram/@topLevelNodes.3 /0/@diagram/@topLevelNodes.5 /0/@diagram/@topLevelNodes.6 /0/@diagram/@topLevelNodes.7 /0/@diagram/@topLevelNodes.8"
- genConstraint="/0/@expressionProviders/@providers.1/@expressions.3"/>
- <extensionNodes
- xsi:type="papyrusgmfgenextension:AdditionalEditPartCandies"
- comment="Indicate specific BaseEditHelper in place of generated EditHelper"
- baseEditHelperPackage="org.eclipse.papyrus.uml.diagram.common.helper"/>
- <extensionNodes
- xsi:type="papyrusgmfgenextension:EditPartUsingDeleteService"
- comment="The delete service is used on every TopNode Childnode and Link"
- name="Every TopNode ChildNode Link"
- genView="/0/@diagram/@topLevelNodes.0 /0/@diagram/@topLevelNodes.2 /0/@diagram/@topLevelNodes.4 /0/@diagram/@topLevelNodes.3 /0/@diagram/@topLevelNodes.5 /0/@diagram/@topLevelNodes.6 /0/@diagram/@topLevelNodes.7 /0/@diagram/@topLevelNodes.8 /0/@diagram/@childNodes.1 /0/@diagram/@links.3 /0/@diagram/@links.4 /0/@diagram/@links.5 /0/@diagram/@links.6 /0/@diagram/@links.7 /0/@diagram/@links.1 /0/@diagram/@links.2"/>
- <extensionNodes
- xsi:type="papyrusgmfgenextension:EditPartUsingReorientService"
- comment="Use the edit service for reorient command (All DirectedRelationship)"
- name="DirectedRelationship"
- genView="/0/@diagram/@links.3 /0/@diagram/@links.4 /0/@diagram/@links.5 /0/@diagram/@links.6 /0/@diagram/@links.7"/>
- <extensionNodes
- xsi:type="papyrusgmfgenextension:LabelVisibilityPreference"
- comment="Name"
- role="Name"
- linkLabels="/0/@diagram/@links.3/@labels.0 /0/@diagram/@links.4/@labels.0 /0/@diagram/@links.6/@labels.0"/>
- <extensionNodes
- xsi:type="papyrusgmfgenextension:LabelVisibilityPreference"
- comment="Stereotype"
- role="Stereotype"
- linkLabels="/0/@diagram/@links.5/@labels.0 /0/@diagram/@links.3/@labels.1 /0/@diagram/@links.4/@labels.1 /0/@diagram/@links.6/@labels.1"/>
- <extensionNodes
- xsi:type="papyrusgmfgenextension:CompartmentTitleVisibilityPreference"
- comment="Hidden Compartments Titles"
- visibleByDefault="false"
- compartments="/0/@diagram/@compartments.2 /0/@diagram/@compartments.3 /0/@diagram/@compartments.4 /0/@diagram/@compartments.5 /0/@diagram/@compartments.8 /0/@diagram/@compartments.9 /0/@diagram/@compartments.10 /0/@diagram/@compartments.11 /0/@diagram/@compartments.12 /0/@diagram/@compartments.1 /0/@diagram/@compartments.7 /0/@diagram/@compartments.0 /0/@diagram/@compartments.6"/>
- <extensionNodes
- xsi:type="papyrusgmfgenextension:CompartmentVisibilityPreference"
- comment="Hidden Compartments"
- visibleByDefault="false"
- compartments="/0/@diagram/@compartments.5 /0/@diagram/@compartments.11 /0/@diagram/@compartments.12"/>
- <extensionNodes
- xsi:type="papyrusgmfgenextension:ExtendedGenView"
- comment="add superclass for floating Label"
- genView="/0/@diagram/@childNodes.9/@labels.1 /0/@diagram/@topLevelNodes.7/@labels.1 /0/@diagram/@childNodes.8/@labels.1"
- name="FloatingLabelEditPart"
- superOwnedEditPart="org.eclipse.papyrus.uml.diagram.common.editparts.FloatingLabelEditPart"/>
- <extensionNodes
- xsi:type="papyrusgmfgenextension:ExtendedGenView"
- comment=""
- genView="/0/@diagram/@topLevelNodes.7 /0/@diagram/@childNodes.9 /0/@diagram/@childNodes.8"
- name="RoundedCompartmentEditPart"
- superOwnedEditPart="org.eclipse.papyrus.uml.diagram.common.editparts.RoundedCompartmentEditPart"/>
- <extensionNodes
- xsi:type="papyrusgmfgenextension:SpecificLocatorExternalLabel"
- comment="Locator for external Floating label of RoundedCompartment EP"
- classpath="org.eclipse.papyrus.uml.diagram.common.locator.RoundedRectangleLabelPositionLocator"
- genExternalNodeLabel="/0/@diagram/@topLevelNodes.7/@labels.1 /0/@diagram/@childNodes.9/@labels.1 /0/@diagram/@childNodes.8/@labels.1"/>
- <extensionNodes
- xsi:type="papyrusgmfgenextension:ExtendedGenView"
- genView="/0/@diagram/@childNodes.1 /0/@diagram/@topLevelNodes.2 /0/@diagram/@childNodes.0 /0/@diagram/@topLevelNodes.1"
- name="PackageEditPart"
- superOwnedEditPart="org.eclipse.papyrus.uml.diagram.common.editparts.PackageEditPart"/>
- </papyrusgmfgenextension:PapyrusExtensionRootNode>
-</xmi:XMI>
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI
+ xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:gmfgen="http://www.eclipse.org/gmf/2009/GenModel"
+ xmlns:papyrusgmfgenextension="http://www.eclipse.org/papyrus/2009/papyrusgmfgenextension">
+ <gmfgen:GenEditorGenerator
+ packageNamePrefix="org.eclipse.papyrus.uml.diagram.deployment"
+ modelID="PapyrusUMLDeploymentDiagram"
+ diagramFileExtension="PapyrusUMLDeployment_diagram"
+ domainFileExtension="umlDeployment"
+ dynamicTemplates="true"
+ templateDirectory="/org.eclipse.papyrus.def/xtend/"
+ copyrightText="Copyright (c) 2014 CEA LIST.&#xD;&#xA;&#xD;&#xA;All rights reserved. This program and the accompanying materials&#xD;&#xA;are made available under the terms of the Eclipse Public License v1.0&#xD;&#xA;which accompanies this distribution, and is available at&#xD;&#xA;http://www.eclipse.org/legal/epl-v10.html&#xD;&#xA;&#xD;&#xA;Contributors:&#xD;&#xA; CEA LIST - Initial API and implementation"
+ pluginDirectory="/org.eclipse.papyrus.uml.diagram.deployment/src">
+ <diagram
+ visualID="1000"
+ editPartClassName="DeploymentDiagramEditPart"
+ itemSemanticEditPolicyClassName="DeploymentDiagramItemSemanticEditPolicy"
+ canonicalEditPolicyClassName="ModelCanonicalEditPolicy"
+ iconProviderPriority="Low"
+ creationWizardIconPath="icons/obj16/DeploymentDiagram.gif"
+ validationProviderPriority="Low"
+ validationEnabled="true"
+ validationDecorators="true"
+ liveValidationUIFeedback="true">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Diagram"/>
+ <elementType
+ xsi:type="gmfgen:MetamodelType"
+ uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.Package_1000"
+ displayName="DeploymentDiagram"
+ definedExternally="true"
+ editHelperClassName="ModelEditHelper"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.draw2d.FreeformLayer"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;REMOVE_ORPHAN_VIEW&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <domainDiagramElement
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package"/>
+ <childNodes
+ visualID="49"
+ editPartClassName="ModelEditPartCN"
+ itemSemanticEditPolicyClassName="ModelItemSemanticEditPolicyCN"
+ canonicalEditPolicyClassName="ModelCanonicalEditPolicyCN"
+ compartments="/0/@diagram/@compartments.6"
+ graphicalNodeEditPolicyClassName="ModelGraphicalNodeEditPolicyCN"
+ createCommandClassName="ModelCreateCommandCN"
+ containers="/0/@diagram/@compartments.0 /0/@diagram/@compartments.6 /0/@diagram/@compartments.1">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:SpecializationType"
+ uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.Model_49"
+ displayName="Model"
+ definedExternally="true"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure">
+ <attributes
+ xsi:type="gmfgen:DefaultSizeAttributes"
+ width="150"
+ height="150"/>
+ </viewmap>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;RESIZE_BORDER_ITEMS&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Model"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="50"
+ editPartClassName="ModelNameEditPartCN"
+ itemSemanticEditPolicyClassName="ModelNameItemSemanticEditPolicyCN"
+ elementIcon="true">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </childNodes>
+ <childNodes
+ visualID="36"
+ editPartClassName="PackageEditPartCN"
+ itemSemanticEditPolicyClassName="PackageItemSemanticEditPolicyCN"
+ canonicalEditPolicyClassName="PackageCanonicalEditPolicyCN"
+ compartments="/0/@diagram/@compartments.7"
+ graphicalNodeEditPolicyClassName="PackageGraphicalNodeEditPolicyCN"
+ createCommandClassName="PackageCreateCommandCN"
+ containers="/0/@diagram/@compartments.1 /0/@diagram/@compartments.7 /0/@diagram/@compartments.0 /0/@diagram/@compartments.6">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:SpecializationType"
+ definedExternally="true"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure">
+ <attributes
+ xsi:type="gmfgen:DefaultSizeAttributes"
+ width="150"
+ height="150"/>
+ </viewmap>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;RESIZE_BORDER_ITEMS&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="37"
+ editPartClassName="PackageNameEditPartCN"
+ itemSemanticEditPolicyClassName="PackageNameItemSemanticEditPolicyCN"
+ elementIcon="true">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0"
+ editPattern="">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </childNodes>
+ <childNodes
+ visualID="16"
+ editPartClassName="DeviceEditPartCN"
+ itemSemanticEditPolicyClassName="DeviceItemSemanticEditPolicyCN"
+ canonicalEditPolicyClassName="DeviceCanonicalEditPolicyCN"
+ graphicalNodeEditPolicyClassName="DeviceGraphicalNodeEditPolicyCN"
+ createCommandClassName="DeviceCreateCommandCN"
+ containers="/0/@diagram/@compartments.4 /0/@diagram/@compartments.10 /0/@diagram/@compartments.2 /0/@diagram/@compartments.8">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:SpecializationType"
+ uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.Device_16"
+ displayName="Device"
+ definedExternally="true"
+ metamodelType="/0/@diagram/@topLevelNodes.6/@elementType"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure">
+ <attributes
+ xsi:type="gmfgen:DefaultSizeAttributes"
+ width="150"
+ height="100"/>
+ </viewmap>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;REMOVE_ORPHAN_VIEW&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;RESIZE_BORDER_ITEMS&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Device"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node/nestedNode"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node/nestedNode"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="20"
+ editPartClassName="DeviceNameEditPartCN"
+ itemSemanticEditPolicyClassName="DeviceNameItemSemanticEditPolicyCN">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </childNodes>
+ <childNodes
+ visualID="44"
+ editPartClassName="NestedDeviceEditPartCN"
+ itemSemanticEditPolicyClassName="NestedDeviceItemSemanticEditPolicyCN"
+ canonicalEditPolicyClassName="NestedDeviceCanonicalEditPolicyCN"
+ compartments="/0/@diagram/@compartments.8"
+ graphicalNodeEditPolicyClassName="NestedDeviceGraphicalNodeEditPolicyCN"
+ createCommandClassName="NestedDeviceCreateCommandCN"
+ containers="/0/@diagram/@compartments.1 /0/@diagram/@compartments.7 /0/@diagram/@compartments.0 /0/@diagram/@compartments.6">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:SpecializationType"
+ uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.Device_44"
+ displayName="Device"
+ definedExternally="true"
+ metamodelType="/0/@diagram/@topLevelNodes.6/@elementType"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure">
+ <attributes
+ xsi:type="gmfgen:DefaultSizeAttributes"
+ width="150"
+ height="100"/>
+ </viewmap>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;REMOVE_ORPHAN_VIEW&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;RESIZE_BORDER_ITEMS&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Device"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="45"
+ editPartClassName="NestedDeviceNameEditPartCN"
+ itemSemanticEditPolicyClassName="NestedDeviceNameItemSemanticEditPolicyCN">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </childNodes>
+ <childNodes
+ visualID="21"
+ editPartClassName="ExecutionEnvironmentEditPartCN"
+ itemSemanticEditPolicyClassName="ExecutionEnvironmentItemSemanticEditPolicyCN"
+ canonicalEditPolicyClassName="ExecutionEnvironmentCanonicalEditPolicyCN"
+ graphicalNodeEditPolicyClassName="ExecutionEnvironmentGraphicalNodeEditPolicyCN"
+ createCommandClassName="ExecutionEnvironmentCreateCommandCN"
+ containers="/0/@diagram/@compartments.4 /0/@diagram/@compartments.2 /0/@diagram/@compartments.3 /0/@diagram/@compartments.8 /0/@diagram/@compartments.9 /0/@diagram/@compartments.10">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:SpecializationType"
+ uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.ExecutionEnvironment_21"
+ displayName="ExecutionEnvironment"
+ definedExternally="true"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure">
+ <attributes
+ xsi:type="gmfgen:DefaultSizeAttributes"
+ width="150"
+ height="100"/>
+ </viewmap>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;REMOVE_ORPHAN_VIEW&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;RESIZE_BORDER_ITEMS&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/ExecutionEnvironment"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node/nestedNode"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node/nestedNode"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="22"
+ editPartClassName="ExecutionEnvironmentNameEditPartCN"
+ itemSemanticEditPolicyClassName="ExecutionEnvironmentNameItemSemanticEditPolicyCN">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </childNodes>
+ <childNodes
+ visualID="46"
+ editPartClassName="NestedExecutionEnvironmentEditPartCN"
+ itemSemanticEditPolicyClassName="NestedExecutionEnvironmentItemSemanticEditPolicyCN"
+ canonicalEditPolicyClassName="NestedExecutionEnvironmentCanonicalEditPolicyCN"
+ compartments="/0/@diagram/@compartments.9"
+ graphicalNodeEditPolicyClassName="NestedExecutionEnvironmentGraphicalNodeEditPolicyCN"
+ createCommandClassName="NestedExecutionEnvironmentCreateCommandCN"
+ containers="/0/@diagram/@compartments.1 /0/@diagram/@compartments.7 /0/@diagram/@compartments.0 /0/@diagram/@compartments.6">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:SpecializationType"
+ uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.ExecutionEnvironment_46"
+ displayName="ExecutionEnvironment"
+ definedExternally="true"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure">
+ <attributes
+ xsi:type="gmfgen:DefaultSizeAttributes"
+ width="150"
+ height="100"/>
+ </viewmap>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;REMOVE_ORPHAN_VIEW&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;RESIZE_BORDER_ITEMS&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/ExecutionEnvironment"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="47"
+ editPartClassName="NestedExecutionEnvironmentNameEditPartCN"
+ itemSemanticEditPolicyClassName="NestedExecutionEnvironmentNameItemSemanticEditPolicyCN">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </childNodes>
+ <childNodes
+ visualID="23"
+ editPartClassName="NodeEditPartCN"
+ itemSemanticEditPolicyClassName="NodeItemSemanticEditPolicyCN"
+ canonicalEditPolicyClassName="NodeCanonicalEditPolicyCN"
+ graphicalNodeEditPolicyClassName="NodeGraphicalNodeEditPolicyCN"
+ createCommandClassName="NodeCreateCommandCN"
+ containers="/0/@diagram/@compartments.4 /0/@diagram/@compartments.10 /0/@diagram/@compartments.2 /0/@diagram/@compartments.8">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:SpecializationType"
+ displayName="Node"
+ definedExternally="true"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure">
+ <attributes
+ xsi:type="gmfgen:DefaultSizeAttributes"
+ width="150"
+ height="150"/>
+ </viewmap>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;REMOVE_ORPHAN_VIEW&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;RESIZE_BORDER_ITEMS&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node/nestedNode"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node/nestedNode"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="24"
+ editPartClassName="NodeNameEditPartCN"
+ itemSemanticEditPolicyClassName="NodeNameItemSemanticEditPolicyCN">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </childNodes>
+ <childNodes
+ visualID="42"
+ editPartClassName="NestedNodeEditPartCN"
+ itemSemanticEditPolicyClassName="NestedNodeItemSemanticEditPolicyCN"
+ canonicalEditPolicyClassName="NestedNodeCanonicalEditPolicyCN"
+ compartments="/0/@diagram/@compartments.10"
+ graphicalNodeEditPolicyClassName="NestedNodeGraphicalNodeEditPolicyCN"
+ createCommandClassName="NestedNodeCreateCommandCN"
+ containers="/0/@diagram/@compartments.1 /0/@diagram/@compartments.7 /0/@diagram/@compartments.0 /0/@diagram/@compartments.6">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:SpecializationType"
+ displayName="Node"
+ definedExternally="true"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure">
+ <attributes
+ xsi:type="gmfgen:DefaultSizeAttributes"
+ width="150"
+ height="150"/>
+ </viewmap>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;REMOVE_ORPHAN_VIEW&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;RESIZE_BORDER_ITEMS&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="43"
+ editPartClassName="NestedNodeNameEditPart"
+ itemSemanticEditPolicyClassName="NestedNodeNameItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </childNodes>
+ <childNodes
+ visualID="25"
+ editPartClassName="ArtifactEditPartCN"
+ itemSemanticEditPolicyClassName="ArtifactItemSemanticEditPolicyCN"
+ canonicalEditPolicyClassName="ArtifactCanonicalEditPolicyCN"
+ compartments="/0/@diagram/@compartments.11"
+ graphicalNodeEditPolicyClassName="ArtifactGraphicalNodeEditPolicyCN"
+ createCommandClassName="ArtifactCreateCommandCN"
+ containers="/0/@diagram/@compartments.3 /0/@diagram/@compartments.4 /0/@diagram/@compartments.9 /0/@diagram/@compartments.10">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:SpecializationType"
+ uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.Artifact_25"
+ displayName="Artifact"
+ definedExternally="true"
+ metamodelType="/0/@diagram/@topLevelNodes.7/@elementType"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure">
+ <attributes
+ xsi:type="gmfgen:DefaultSizeAttributes"
+ width="150"
+ height="70"/>
+ </viewmap>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;REMOVE_ORPHAN_VIEW&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.LAYOUT_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.GetChildLayoutEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Class/nestedClassifier"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Class/nestedClassifier"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.0/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact/fileName"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="27"
+ editPartClassName="ArtifactNameEditPartCN"
+ itemSemanticEditPolicyClassName="ArtifactNameItemSemanticEditPolicyCN">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ <labels
+ xsi:type="gmfgen:GenExternalNodeLabel"
+ visualID="59"
+ editPartClassName="ArtifactFloatingLabelEditPartCN"
+ itemSemanticEditPolicyClassName="ArtifactFloatingLabelItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.figure.node.PapyrusWrappingLabel">
+ <attributes
+ xsi:type="gmfgen:LabelOffsetAttributes"
+ x="25"/>
+ </viewmap>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0"
+ viewPattern=""
+ editorPattern=""
+ editPattern="">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </childNodes>
+ <childNodes
+ visualID="28"
+ editPartClassName="ArtifactEditPartACN"
+ itemSemanticEditPolicyClassName="ArtifactItemSemanticEditPolicyACN"
+ canonicalEditPolicyClassName="ArtifactCanonicalEditPolicyACN"
+ compartments="/0/@diagram/@compartments.12"
+ graphicalNodeEditPolicyClassName="ArtifactGraphicalNodeEditPolicyACN"
+ createCommandClassName="ArtifactCreateCommandACN"
+ containers="/0/@diagram/@compartments.5 /0/@diagram/@compartments.11 /0/@diagram/@compartments.12">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:SpecializationType"
+ displayName="Artifact"
+ definedExternally="true"
+ metamodelType="/0/@diagram/@topLevelNodes.7/@elementType"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure">
+ <attributes
+ xsi:type="gmfgen:DefaultSizeAttributes"
+ width="150"
+ height="70"/>
+ </viewmap>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;REMOVE_ORPHAN_VIEW&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.LAYOUT_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.GetChildLayoutEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact/nestedArtifact"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.0/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact/fileName"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="29"
+ editPartClassName="ArtifactNameEditPartACN"
+ itemSemanticEditPolicyClassName="ArtifactNameItemSemanticEditPolicyACN">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ <labels
+ xsi:type="gmfgen:GenExternalNodeLabel"
+ visualID="60"
+ editPartClassName="ArtifactFloatingLabelEditPartACN"
+ itemSemanticEditPolicyClassName="ArtifactFloatingLabelItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.figure.node.PapyrusWrappingLabel">
+ <attributes
+ xsi:type="gmfgen:LabelOffsetAttributes"
+ x="25"/>
+ </viewmap>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0"
+ viewPattern=""
+ editorPattern=""
+ editPattern="">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </childNodes>
+ <childNodes
+ visualID="40"
+ editPartClassName="NestedArtifactNodeEditPartCN"
+ itemSemanticEditPolicyClassName="NestedArtifactNodeItemSemanticEditPolicyCN"
+ canonicalEditPolicyClassName="NestedArtifactCanonicalEditPolicyCN"
+ graphicalNodeEditPolicyClassName="NestedArtifactNodeGraphicalNodeEditPolicyCN"
+ createCommandClassName="NestedArtifactNodeCreateCommandCN"
+ containers="/0/@diagram/@compartments.1 /0/@diagram/@compartments.7 /0/@diagram/@compartments.0 /0/@diagram/@compartments.6">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:SpecializationType"
+ displayName="Artifact"
+ definedExternally="true"
+ metamodelType="/0/@diagram/@topLevelNodes.7/@elementType"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure">
+ <attributes
+ xsi:type="gmfgen:DefaultSizeAttributes"
+ width="150"
+ height="70"/>
+ </viewmap>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;REMOVE_ORPHAN_VIEW&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.0/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact/fileName"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="41"
+ editPartClassName="NestedArtifactNameEditPart"
+ itemSemanticEditPolicyClassName="NestedArtifactNameItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0"
+ editPattern="">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </childNodes>
+ <childNodes
+ visualID="54"
+ editPartClassName="CommentEditPartCN"
+ itemSemanticEditPolicyClassName="CommentItemSemanticEditPolicyCN"
+ canonicalEditPolicyClassName="CommentCanonicalEditPolicyCN"
+ graphicalNodeEditPolicyClassName="CommentGraphicalNodeEditPolicyCN"
+ createCommandClassName="CommentCreateCommandCN"
+ containers="/0/@diagram/@compartments.0 /0/@diagram/@compartments.1 /0/@diagram/@compartments.6 /0/@diagram/@compartments.7">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:MetamodelType"
+ definedExternally="true"
+ editHelperClassName="CommentEditHelper"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.PRIMARY_DRAG_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusReflowableShapeEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Comment"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Element/ownedComment"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Element/ownedComment"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.2">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Comment/body"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="55"
+ editPartClassName="CommentBodyEditPartCN"
+ itemSemanticEditPolicyClassName="CommentBodyEditPartCN">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getCornerBentFigure"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.1">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Comment/body"/>
+ </modelFacet>
+ </labels>
+ </childNodes>
+ <childNodes
+ visualID="56"
+ editPartClassName="ConstraintEditPartCN"
+ itemSemanticEditPolicyClassName="ConstraintItemSemanticEditPolicyCN"
+ canonicalEditPolicyClassName="ConstraintCanonicalEditPolicyCN"
+ graphicalNodeEditPolicyClassName="ConstraintGraphicalNodeEditPolicyCN"
+ createCommandClassName="ConstraintCreateCommandCN"
+ containers="/0/@diagram/@compartments.0 /0/@diagram/@compartments.1 /0/@diagram/@compartments.6 /0/@diagram/@compartments.7">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:MetamodelType"
+ definedExternally="true"
+ editHelperClassName="ConstraintEditHelper"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.ConstraintFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Namespace/ownedRule"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Namespace/ownedRule"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.1">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint/specification"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="57"
+ editPartClassName="ConstraintNameEditPartCN"
+ itemSemanticEditPolicyClassName="ConstraintNameItemSemanticEditPolicyCN">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ <labels
+ visualID="58"
+ editPartClassName="ConstraintSpecificationEditPartCN"
+ itemSemanticEditPolicyClassName="ConstraintSpecificationItemSemanticEditPolicyCN">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getConstraintFigure"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.ConstraintFigure"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.3">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint/specification"/>
+ <editableMetaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint/specification"/>
+ </modelFacet>
+ </labels>
+ </childNodes>
+ <topLevelNodes
+ visualID="2011"
+ editPartClassName="DependencyNodeEditPart"
+ itemSemanticEditPolicyClassName="DependencyNodeItemSemanticEditPolicy"
+ canonicalEditPolicyClassName="DependencyNodeCanonicalEditPolicy"
+ graphicalNodeEditPolicyClassName="DependencyNodeGraphicalNodeEditPolicy"
+ createCommandClassName="DependencyNodeCreateCommand">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:MetamodelType"
+ uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.Dependency_2011"
+ displayName="DependencyNode"
+ definedExternally="true"
+ editHelperClassName="DependencyEditHelper"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.DependencyNodeFigure">
+ <attributes
+ xsi:type="gmfgen:DefaultSizeAttributes"
+ width="10"
+ height="10"/>
+ </viewmap>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ </modelFacet>
+ <labels
+ xsi:type="gmfgen:GenExternalNodeLabel"
+ visualID="7"
+ editPartClassName="MultiDependencyLabelEditPart"
+ itemSemanticEditPolicyClassName="MultiDependencyLabelItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </topLevelNodes>
+ <topLevelNodes
+ visualID="2010"
+ compartments="/0/@diagram/@compartments.0">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:SpecializationType"
+ uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.Model_2010"
+ displayName="Model"
+ definedExternally="true"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure">
+ <attributes
+ xsi:type="gmfgen:DefaultSizeAttributes"
+ width="150"
+ height="150"/>
+ </viewmap>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;RESIZE_BORDER_ITEMS&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Model"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="48"
+ editPartClassName="ModelNameEditPart"
+ itemSemanticEditPolicyClassName="ModelNameItemSemanticEditPolicy"
+ elementIcon="true">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </topLevelNodes>
+ <topLevelNodes
+ visualID="2009"
+ editPartClassName="PackageEditPart"
+ itemSemanticEditPolicyClassName="PackageItemSemanticEditPolicy"
+ canonicalEditPolicyClassName="PackageCanonicalEditPolicy"
+ compartments="/0/@diagram/@compartments.1"
+ graphicalNodeEditPolicyClassName="PackageGraphicalNodeEditPolicy"
+ createCommandClassName="PackageCreateCommand">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:SpecializationType"
+ definedExternally="true"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure">
+ <attributes
+ xsi:type="gmfgen:DefaultSizeAttributes"
+ width="150"
+ height="150"/>
+ </viewmap>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;RESIZE_BORDER_ITEMS&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="35"
+ editPartClassName="PackageNameEditPart"
+ itemSemanticEditPolicyClassName="PackageNameItemSemanticEditPolicy"
+ elementIcon="true">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </topLevelNodes>
+ <topLevelNodes
+ visualID="2005"
+ editPartClassName="ConstraintEditPart"
+ itemSemanticEditPolicyClassName="ConstraintItemSemanticEditPolicy"
+ canonicalEditPolicyClassName="ConstraintCanonicalEditPolicy"
+ graphicalNodeEditPolicyClassName="ConstraintGraphicalNodeEditPolicy"
+ createCommandClassName="ConstraintCreateCommand">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:MetamodelType"
+ definedExternally="true"
+ editHelperClassName="ConstraintEditHelper"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.ConstraintFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Namespace/ownedRule"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.1">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint/specification"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="2"
+ editPartClassName="ConstraintNameEditPart"
+ itemSemanticEditPolicyClassName="ConstraintNameItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ <labels
+ visualID="3"
+ editPartClassName="ConstraintSpecificationEditPart"
+ itemSemanticEditPolicyClassName="ConstraintSpecificationItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getConstraintFigure"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.ConstraintFigure"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.3">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint/specification"/>
+ <editableMetaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint/specification"/>
+ </modelFacet>
+ </labels>
+ </topLevelNodes>
+ <topLevelNodes
+ visualID="2001"
+ editPartClassName="CommentEditPart"
+ itemSemanticEditPolicyClassName="CommentItemSemanticEditPolicy"
+ canonicalEditPolicyClassName="CommentCanonicalEditPolicy"
+ graphicalNodeEditPolicyClassName="CommentGraphicalNodeEditPolicy"
+ createCommandClassName="CommentCreateCommand">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:MetamodelType"
+ definedExternally="true"
+ editHelperClassName="CommentEditHelper"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.PRIMARY_DRAG_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusReflowableShapeEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Comment"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Element/ownedComment"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Element/ownedComment"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.2">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Comment/body"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="1"
+ editPartClassName="CommentBodyEditPart"
+ itemSemanticEditPolicyClassName="CommentBodyEditPart">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getCornerBentFigure"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.1">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Comment/body"/>
+ </modelFacet>
+ </labels>
+ </topLevelNodes>
+ <topLevelNodes
+ visualID="2002"
+ editPartClassName="ExecutionEnvironmentEditPart"
+ itemSemanticEditPolicyClassName="ExecutionEnvironmentItemSemanticEditPolicy"
+ canonicalEditPolicyClassName="ExecutionEnvironmentCanonicalEditPolicy"
+ compartments="/0/@diagram/@compartments.3"
+ graphicalNodeEditPolicyClassName="ExecutionEnvironmentGraphicalNodeEditPolicy"
+ createCommandClassName="ExecutionEnvironmentCreateCommand">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:MetamodelType"
+ definedExternally="true"
+ editHelperClassName="ExecutionEnvironmentEditHelper"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure">
+ <attributes
+ xsi:type="gmfgen:DefaultSizeAttributes"
+ width="150"
+ height="100"/>
+ </viewmap>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;REMOVE_ORPHAN_VIEW&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;RESIZE_BORDER_ITEMS&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/ExecutionEnvironment"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="5"
+ editPartClassName="ExecutionEnvironmentNameEditPart"
+ itemSemanticEditPolicyClassName="ExecutionEnvironmentNameItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </topLevelNodes>
+ <topLevelNodes
+ visualID="2003"
+ editPartClassName="DeviceEditPart"
+ itemSemanticEditPolicyClassName="DeviceItemSemanticEditPolicy"
+ canonicalEditPolicyClassName="DeviceCanonicalEditPolicy"
+ compartments="/0/@diagram/@compartments.2"
+ graphicalNodeEditPolicyClassName="DeviceGraphicalNodeEditPolicy"
+ createCommandClassName="DeviceCreateCommand">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:MetamodelType"
+ definedExternally="true"
+ editHelperClassName="DeviceEditHelper"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure">
+ <attributes
+ xsi:type="gmfgen:DefaultSizeAttributes"
+ width="150"
+ height="100"/>
+ </viewmap>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;REMOVE_ORPHAN_VIEW&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;RESIZE_BORDER_ITEMS&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Device"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="6"
+ editPartClassName="DeviceNameEditPart"
+ itemSemanticEditPolicyClassName="DeviceNameItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </topLevelNodes>
+ <topLevelNodes
+ visualID="2006"
+ editPartClassName="ArtifactEditPart"
+ itemSemanticEditPolicyClassName="ArtifactItemSemanticEditPolicy"
+ canonicalEditPolicyClassName="ArtifactCanonicalEditPolicy"
+ compartments="/0/@diagram/@compartments.5"
+ graphicalNodeEditPolicyClassName="ArtifactGraphicalNodeEditPolicy"
+ createCommandClassName="ArtifactCreateCommand">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:MetamodelType"
+ definedExternally="true"
+ editHelperClassName="ArtifactEditHelper"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure">
+ <attributes
+ xsi:type="gmfgen:DefaultSizeAttributes"
+ width="150"
+ height="70"/>
+ </viewmap>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;REMOVE_ORPHAN_VIEW&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.LAYOUT_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.GetChildLayoutEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.0/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact/fileName"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="8"
+ editPartClassName="ArtifactNameEditPart"
+ itemSemanticEditPolicyClassName="ArtifactNameItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ <labels
+ xsi:type="gmfgen:GenExternalNodeLabel"
+ visualID="61"
+ editPartClassName="ArtifactFloatingLabelEditPart"
+ itemSemanticEditPolicyClassName="ArtifactFloatingLabelItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.figure.node.PapyrusWrappingLabel">
+ <attributes
+ xsi:type="gmfgen:LabelOffsetAttributes"
+ x="25"/>
+ </viewmap>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0"
+ viewPattern=""
+ editorPattern=""
+ editPattern="">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </topLevelNodes>
+ <topLevelNodes
+ visualID="2008"
+ compartments="/0/@diagram/@compartments.4">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:MetamodelType"
+ definedExternally="true"
+ editHelperClassName="NodeEditHelper"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure">
+ <attributes
+ xsi:type="gmfgen:DefaultSizeAttributes"
+ width="150"
+ height="150"/>
+ </viewmap>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;REMOVE_ORPHAN_VIEW&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="&quot;RESIZE_BORDER_ITEMS&quot;"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Node"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ </modelElementInitializer>
+ </modelFacet>
+ <labels
+ visualID="9"
+ editPartClassName="NodeNameEditPart"
+ itemSemanticEditPolicyClassName="NodeNameItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0"
+ editPattern="">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </topLevelNodes>
+ <topLevelNodes
+ visualID="2012"
+ editPartClassName="DefaultNamedElementEditPart"
+ itemSemanticEditPolicyClassName="DefaultNamedElementItemSemanticEditPolicy"
+ canonicalEditPolicyClassName="DefaultNamedElementCanonicalEditPolicy"
+ graphicalNodeEditPolicyClassName="DefaultNamedElementGraphicalNodeEditPolicy"
+ createCommandClassName="DefaultNamedElementCreateCommand">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <elementType
+ xsi:type="gmfgen:MetamodelType"
+ uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.NamedElement_2012"
+ displayName="DefaultNamedElement"
+ definedExternally="true"
+ editHelperClassName="DefaultNamedElementEditHelper"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.node.NodeNamedElementFigure">
+ <attributes
+ xsi:type="gmfgen:DefaultSizeAttributes"
+ width="100"
+ height="50"/>
+ </viewmap>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ChangeStereotypedShapeEditPolicy.CHANGE_SHAPE_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.DeploymentDiagramChangeStereotypedShapeEditpolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.SEMANTIC_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.itemsemantic.CustomDefaultNamedElementItemSemanticEditPolicy"/>
+ <modelFacet>
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ </modelFacet>
+ <labels
+ visualID="53"
+ editPartClassName="DefaultNamedElementNameEditPart"
+ itemSemanticEditPolicyClassName="DefaultNamedElementNameItemSemanticEditPolicy"
+ elementIcon="true">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0"
+ editPattern="">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </topLevelNodes>
+ <links
+ visualID="4005"
+ editPartClassName="LinkDescriptorEditPart"
+ itemSemanticEditPolicyClassName="LinkDescriptorItemSemanticEditPolicy"
+ createCommandClassName="LinkDescriptorCreateCommand"
+ reorientCommandClassName="LinkDescriptorReorientCommand">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Edge"/>
+ <elementType
+ xsi:type="gmfgen:NotationType"
+ definedExternally="true"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.edge.SimpleDashedEdgeFigure"/>
+ </links>
+ <links
+ visualID="4008"
+ editPartClassName="CommentAnnotatedElementEditPart"
+ itemSemanticEditPolicyClassName="CommentAnnotatedElementItemSemanticEditPolicy"
+ createCommandClassName="CommentAnnotatedElementCreateCommand"
+ reorientCommandClassName="CommentAnnotatedElementReorientCommand">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Edge"/>
+ <elementType
+ xsi:type="gmfgen:SpecializationType"
+ uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.CommentAnnotatedElement_4006"
+ displayName="CommentAnnotatedElement"
+ definedExternally="true"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.edge.SimpleDashedEdgeFigure"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLinkModelFacet">
+ <metaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Comment/annotatedElement"/>
+ </modelFacet>
+ </links>
+ <links
+ visualID="4009"
+ editPartClassName="ConstraintConstrainedElementEditPart"
+ itemSemanticEditPolicyClassName="ConstraintConstrainedElementItemSemanticEditPolicy"
+ createCommandClassName="ConstraintConstrainedElementCreateCommand"
+ reorientCommandClassName="ConstraintConstrainedElementReorientCommand">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Edge"/>
+ <elementType
+ xsi:type="gmfgen:SpecializationType"
+ uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.ConstraintConstrainedElement_4007"
+ displayName="ConstraintConstrainedElement"
+ definedExternally="true"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.edge.SimpleDashedEdgeFigure"/>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLinkModelFacet">
+ <metaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Constraint/constrainedElement"/>
+ </modelFacet>
+ </links>
+ <links
+ visualID="4001"
+ editPartClassName="DeploymentEditPart"
+ itemSemanticEditPolicyClassName="DeploymentItemSemanticEditPolicy"
+ createCommandClassName="DeploymentCreateCommand"
+ reorientCommandClassName="DeploymentReorientCommand">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Edge"/>
+ <elementType
+ xsi:type="gmfgen:MetamodelType"
+ definedExternally="true"
+ editHelperClassName="DeploymentEditHelper"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy"/>
+ <modelFacet
+ xsi:type="gmfgen:TypeLinkModelFacet">
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Deployment"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/DeploymentTarget/deployment"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/DeploymentTarget/deployment"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ </modelElementInitializer>
+ <sourceMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency/client"/>
+ <targetMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency/supplier"/>
+ </modelFacet>
+ <labels
+ visualID="13"
+ editPartClassName="DeploymentNameEditPart"
+ itemSemanticEditPolicyClassName="DeploymentNameItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
+ <attributes
+ xsi:type="gmfgen:LabelOffsetAttributes"
+ y="60"/>
+ </viewmap>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ <labels
+ visualID="14"
+ editPartClassName="DeploymentAppliedStereotypeEditPart"
+ itemSemanticEditPolicyClassName="DeploymentAppliedStereotypeItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getAppliedStereotypeLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
+ <attributes
+ xsi:type="gmfgen:LabelOffsetAttributes"
+ y="60"/>
+ </viewmap>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.2"
+ viewPattern="&lt;&lt;{0}>>"
+ editorPattern="&lt;&lt;{0}>>"
+ editPattern="&lt;&lt;{0}>>">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </links>
+ <links
+ visualID="4002"
+ editPartClassName="ManifestationEditPart"
+ itemSemanticEditPolicyClassName="ManifestationItemSemanticEditPolicy"
+ createCommandClassName="ManifestationCreateCommand"
+ reorientCommandClassName="ManifestationReorientCommand">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Edge"/>
+ <elementType
+ xsi:type="gmfgen:MetamodelType"
+ definedExternally="true"
+ editHelperClassName="ManifestationEditHelper"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy"/>
+ <modelFacet
+ xsi:type="gmfgen:TypeLinkModelFacet">
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Manifestation"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact/manifestation"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Artifact/manifestation"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ </modelElementInitializer>
+ <sourceMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency/client"/>
+ <targetMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency/supplier"/>
+ </modelFacet>
+ <labels
+ visualID="10"
+ editPartClassName="ManifestationNameEditPart"
+ itemSemanticEditPolicyClassName="ManifestationNameItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
+ <attributes
+ xsi:type="gmfgen:LabelOffsetAttributes"
+ y="60"/>
+ </viewmap>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ <labels
+ visualID="11"
+ editPartClassName="ManifestationAppliedStereotypeEditPart"
+ itemSemanticEditPolicyClassName="ManifestationAppliedStereotypeItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getAppliedStereotypeLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
+ <attributes
+ xsi:type="gmfgen:LabelOffsetAttributes"
+ y="30"/>
+ </viewmap>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.2"
+ viewPattern="&lt;&lt;{0}>>"
+ editorPattern="&lt;&lt;{0}>>"
+ editPattern="&lt;&lt;{0}>>">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </links>
+ <links
+ visualID="4003"
+ editPartClassName="GeneralizationEditPart"
+ itemSemanticEditPolicyClassName="GeneralizationItemSemanticEditPolicy"
+ createCommandClassName="GeneralizationCreateCommand"
+ reorientCommandClassName="GeneralizationReorientCommand">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Edge"/>
+ <elementType
+ xsi:type="gmfgen:MetamodelType"
+ definedExternally="true"
+ editHelperClassName="GeneralizationEditHelper"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.edge.GeneralizationFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy"/>
+ <modelFacet
+ xsi:type="gmfgen:TypeLinkModelFacet">
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Generalization"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Classifier/generalization"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Classifier/generalization"/>
+ <sourceMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Generalization/specific"/>
+ <targetMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Generalization/general"/>
+ </modelFacet>
+ <labels
+ visualID="4"
+ editPartClassName="GeneralizationAppliedStereotypeEditPart"
+ itemSemanticEditPolicyClassName="GeneralizationAppliedStereotypeItemSemanticEditPolicy"
+ readOnly="true">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getAppliedStereotypeLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
+ <attributes
+ xsi:type="gmfgen:LabelOffsetAttributes"
+ y="60"/>
+ </viewmap>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.2"
+ viewPattern="&lt;&lt;{0}>>"
+ editorPattern="&lt;&lt;{0}>>"
+ editPattern="&lt;&lt;{0}>>">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Generalization/isSubstitutable"/>
+ </modelFacet>
+ </labels>
+ </links>
+ <links
+ visualID="4004"
+ editPartClassName="DependencyEditPart"
+ itemSemanticEditPolicyClassName="DependencyItemSemanticEditPolicy"
+ createCommandClassName="DependencyCreateCommand"
+ reorientCommandClassName="DependencyReorientCommand">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Edge"/>
+ <elementType
+ xsi:type="gmfgen:SpecializationType"
+ displayName="DependencyLink"
+ definedExternally="true"
+ metamodelType="/0/@diagram/@topLevelNodes.0/@elementType"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <modelFacet
+ xsi:type="gmfgen:TypeLinkModelFacet">
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ </modelElementInitializer>
+ <sourceMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency/client"/>
+ <targetMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency/supplier"/>
+ </modelFacet>
+ <labels
+ visualID="12"
+ editPartClassName="DependencyNameEditPart"
+ itemSemanticEditPolicyClassName="DependencyNameItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getNameLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
+ <attributes
+ xsi:type="gmfgen:LabelOffsetAttributes"
+ y="40"/>
+ </viewmap>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.0"
+ editorPattern="">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ <labels
+ visualID="15"
+ editPartClassName="DependencyAppliedStereotypeEditPart"
+ itemSemanticEditPolicyClassName="DependencyAppliedStereotypeItemSemanticEditPolicy">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getAppliedStereotypeLabel"
+ figureQualifiedClassName="org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel">
+ <attributes
+ xsi:type="gmfgen:LabelOffsetAttributes"
+ y="60"/>
+ </viewmap>
+ <modelFacet
+ xsi:type="gmfgen:FeatureLabelModelFacet"
+ parser="/0/@labelParsers/@implementations.2"
+ viewPattern="&lt;&lt;{0}>>"
+ editorPattern="&lt;&lt;{0}>>"
+ editPattern="&lt;&lt;{0}>>">
+ <metaFeatures
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </modelFacet>
+ </labels>
+ </links>
+ <links
+ visualID="4010"
+ editPartClassName="DependencyBranchEditPart"
+ itemSemanticEditPolicyClassName="DependencyBranchItemSemanticEditPolicy"
+ createCommandClassName="DependencyBranchCreateCommand"
+ reorientCommandClassName="DependencyBranchReorientCommand">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Edge"/>
+ <elementType
+ xsi:type="gmfgen:SpecializationType"
+ uniqueIdentifier="org.eclipse.papyrus.uml.diagram.deployment.Dependency_4010"
+ displayName="DependencyBranchLink"
+ definedExternally="true"
+ metamodelType="/0/@diagram/@topLevelNodes.0/@elementType"/>
+ <viewmap
+ xsi:type="gmfgen:FigureViewmap"
+ figureQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy"/>
+ <modelFacet
+ xsi:type="gmfgen:TypeLinkModelFacet">
+ <metaClass
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency"/>
+ <containmentMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <childMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Package/packagedElement"/>
+ <modelElementInitializer
+ xsi:type="gmfgen:GenFeatureSeqInitializer">
+ <initializers
+ xsi:type="gmfgen:GenFeatureValueSpec"
+ value="/0/@expressionProviders/@providers.1/@expressions.0">
+ <feature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/NamedElement/name"/>
+ </initializers>
+ </modelElementInitializer>
+ <sourceMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency/client"/>
+ <targetMetaFeature
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml/Dependency/supplier"/>
+ </modelFacet>
+ </links>
+ <compartments
+ visualID="51"
+ editPartClassName="ModelPackageableElementCompartmentEditPart"
+ itemSemanticEditPolicyClassName="ModelPackageableElementCompartmentItemSemanticEditPolicy"
+ canonicalEditPolicyClassName="ModelPackageableElementCompartmentCanonicalEditPolicy"
+ childNodes="/0/@diagram/@childNodes.0 /0/@diagram/@childNodes.1 /0/@diagram/@childNodes.3 /0/@diagram/@childNodes.5 /0/@diagram/@childNodes.7 /0/@diagram/@childNodes.10 /0/@diagram/@childNodes.11 /0/@diagram/@childNodes.12"
+ title="ModelCompartment"
+ canCollapse="false"
+ node="/0/@diagram/@topLevelNodes.1"
+ listLayout="false">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getPackageableElementFigure"
+ figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ </compartments>
+ <compartments
+ visualID="38"
+ editPartClassName="PackagePackageableElementCompartmentEditPart"
+ itemSemanticEditPolicyClassName="PackagePackageableElementCompartmentItemSemanticEditPolicy"
+ canonicalEditPolicyClassName="PackagePackageableElementCompartmentCanonicalEditPolicy"
+ childNodes="/0/@diagram/@childNodes.0 /0/@diagram/@childNodes.1 /0/@diagram/@childNodes.10 /0/@diagram/@childNodes.3 /0/@diagram/@childNodes.5 /0/@diagram/@childNodes.7 /0/@diagram/@childNodes.11 /0/@diagram/@childNodes.12"
+ title="PackageableElementCompartment"
+ canCollapse="false"
+ node="/0/@diagram/@topLevelNodes.2"
+ listLayout="false">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getPackageableElementFigure"
+ figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ </compartments>
+ <compartments
+ visualID="17"
+ editPartClassName="DeviceCompositeCompartmentEditPart"
+ itemSemanticEditPolicyClassName="DeviceCompositeCompartmentItemSemanticEditPolicy"
+ canonicalEditPolicyClassName="DeviceCompositeCompartmentCanonicalEditPolicy"
+ childNodes="/0/@diagram/@childNodes.4 /0/@diagram/@childNodes.2 /0/@diagram/@childNodes.6"
+ title="DeviceCompositeCompartment"
+ canCollapse="false"
+ node="/0/@diagram/@topLevelNodes.6"
+ listLayout="false">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getCompositeCompartmentFigure"
+ figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ </compartments>
+ <compartments
+ visualID="18"
+ editPartClassName="ExecutionEnvironmentCompositeCompartmentEditPart"
+ itemSemanticEditPolicyClassName="ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy"
+ canonicalEditPolicyClassName="ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicy"
+ childNodes="/0/@diagram/@childNodes.4 /0/@diagram/@childNodes.8"
+ title="ExecutionEnvironmentCompositeCompartment"
+ canCollapse="false"
+ node="/0/@diagram/@topLevelNodes.5"
+ listLayout="false">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getCompositeCompartmentFigure"
+ figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ </compartments>
+ <compartments
+ visualID="19"
+ editPartClassName="NodeCompositeCompartmentEditPart"
+ itemSemanticEditPolicyClassName="NodeCompositeCompartmentItemSemanticEditPolicy"
+ canonicalEditPolicyClassName="NodeCompositeCompartmentCanonicalEditPolicy"
+ childNodes="/0/@diagram/@childNodes.2 /0/@diagram/@childNodes.4 /0/@diagram/@childNodes.8 /0/@diagram/@childNodes.6"
+ title="CompositeCompartment"
+ canCollapse="false"
+ node="/0/@diagram/@topLevelNodes.8"
+ listLayout="false">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getCompositeCompartmentFigure"
+ figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ </compartments>
+ <compartments
+ visualID="26"
+ editPartClassName="ArtifactCompositeCompartmentEditPart"
+ itemSemanticEditPolicyClassName="ArtifactCompositeCompartmentItemSemanticEditPolicy"
+ canonicalEditPolicyClassName="ArtifactCompositeCompartmentCanonicalEditPolicy"
+ childNodes="/0/@diagram/@childNodes.9"
+ title="ArtifactCompositeCompartment"
+ node="/0/@diagram/@topLevelNodes.7"
+ listLayout="false">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getCompositeCompartmentFigure"
+ figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.BorderDisplayEditPolicy.BORDER_DISPLAY_EDITPOLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.BorderDisplayEditPolicy"/>
+ </compartments>
+ <compartments
+ visualID="52"
+ editPartClassName="ModelPackageableElementCompartmentEditPartCN"
+ itemSemanticEditPolicyClassName="ModelPackageableElementCompartmentItemSemanticEditPolicyCN"
+ canonicalEditPolicyClassName="ModelPackageableElementCompartmentCanonicalEditPolicyCN"
+ childNodes="/0/@diagram/@childNodes.0 /0/@diagram/@childNodes.1 /0/@diagram/@childNodes.3 /0/@diagram/@childNodes.5 /0/@diagram/@childNodes.7 /0/@diagram/@childNodes.10 /0/@diagram/@childNodes.11 /0/@diagram/@childNodes.12"
+ title="ModelCompartment"
+ canCollapse="false"
+ node="/0/@diagram/@childNodes.0"
+ listLayout="false">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getPackageableElementFigure"
+ figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ </compartments>
+ <compartments
+ visualID="39"
+ editPartClassName="PackagePackageableElementCompartmentEditPartCN"
+ itemSemanticEditPolicyClassName="PackagePackageableElementCompartmentItemSemanticEditPolicyCN"
+ canonicalEditPolicyClassName="PackagePackageableElementCompartmentCanonicalEditPolicyCN"
+ childNodes="/0/@diagram/@childNodes.1 /0/@diagram/@childNodes.10 /0/@diagram/@childNodes.3 /0/@diagram/@childNodes.5 /0/@diagram/@childNodes.7 /0/@diagram/@childNodes.11 /0/@diagram/@childNodes.12"
+ title="PackageableElementCompartment"
+ canCollapse="false"
+ node="/0/@diagram/@childNodes.1"
+ listLayout="false">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getPackageableElementFigure"
+ figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ </compartments>
+ <compartments
+ visualID="30"
+ editPartClassName="DeviceCompositeCompartmentEditPartCN"
+ itemSemanticEditPolicyClassName="DeviceCompositeCompartmentItemSemanticEditPolicyCN"
+ canonicalEditPolicyClassName="DeviceCompositeCompartmentCanonicalEditPolicyCN"
+ childNodes="/0/@diagram/@childNodes.4 /0/@diagram/@childNodes.2 /0/@diagram/@childNodes.6"
+ title="DeviceCompositeCompartment"
+ node="/0/@diagram/@childNodes.3"
+ listLayout="false">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getCompositeCompartmentFigure"
+ figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ </compartments>
+ <compartments
+ visualID="31"
+ editPartClassName="ExecutionEnvironmentCompositeCompartmentEditPartCN"
+ itemSemanticEditPolicyClassName="ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicyCN"
+ canonicalEditPolicyClassName="ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicyCN"
+ childNodes="/0/@diagram/@childNodes.8 /0/@diagram/@childNodes.4"
+ title="ExecutionEnvironmentCompositeCompartment"
+ node="/0/@diagram/@childNodes.5"
+ listLayout="false">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getCompositeCompartmentFigure"
+ figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ </compartments>
+ <compartments
+ visualID="32"
+ editPartClassName="NodeCompositeCompartmentEditPartCN"
+ itemSemanticEditPolicyClassName="NodeCompositeCompartmentItemSemanticEditPolicyCN"
+ canonicalEditPolicyClassName="NodeCompositeCompartmentCanonicalEditPolicyCN"
+ childNodes="/0/@diagram/@childNodes.2 /0/@diagram/@childNodes.4 /0/@diagram/@childNodes.6 /0/@diagram/@childNodes.8"
+ title="CompositeCompartment"
+ node="/0/@diagram/@childNodes.7"
+ listLayout="false">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getCompositeCompartmentFigure"
+ figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ </compartments>
+ <compartments
+ visualID="33"
+ editPartClassName="ArtifactCompositeCompartmentEditPartCN"
+ itemSemanticEditPolicyClassName="ArtifactCompositeCompartmentItemSemanticEditPolicyCN"
+ canonicalEditPolicyClassName="ArtifactCompositeCompartmentCanonicalEditPolicyCN"
+ childNodes="/0/@diagram/@childNodes.9"
+ title="ArtifactCompositeCompartment"
+ node="/0/@diagram/@childNodes.8"
+ listLayout="false">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getCompositeCompartmentFigure"
+ figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.BorderDisplayEditPolicy.BORDER_DISPLAY_EDITPOLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.BorderDisplayEditPolicy"/>
+ </compartments>
+ <compartments
+ visualID="34"
+ editPartClassName="ArtifactCompositeCompartmentEditPartACN"
+ itemSemanticEditPolicyClassName="ArtifactCompositeCompartmentItemSemanticEditPolicyACN"
+ canonicalEditPolicyClassName="ArtifactCompositeCompartmentCanonicalEditPolicyACN"
+ childNodes="/0/@diagram/@childNodes.9"
+ title="ArtifactCompositeCompartment"
+ node="/0/@diagram/@childNodes.9"
+ listLayout="false">
+ <diagramRunTimeClass
+ href="../../../plugin/org.eclipse.gmf.runtime.notation/model/notation.genmodel#//notation/Node"/>
+ <viewmap
+ xsi:type="gmfgen:ParentAssignedViewmap"
+ getterName="getCompositeCompartmentFigure"
+ figureQualifiedClassName="org.eclipse.draw2d.RectangleFigure"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gef.EditPolicy.GRAPHICAL_NODE_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.DRAG_DROP_ROLE"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy"/>
+ <behaviour
+ xsi:type="gmfgen:CustomBehaviour"
+ key="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.BorderDisplayEditPolicy.BORDER_DISPLAY_EDITPOLICY"
+ editPolicyQualifiedClassName="org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.BorderDisplayEditPolicy"/>
+ </compartments>
+ <palette>
+ <groups
+ title="Nodes"
+ description="Nodes"
+ largeIconPath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
+ smallIconPath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
+ createMethodName="createNodesGroup"
+ id="&quot;deployment.group.nodes&quot;"
+ collapse="true">
+ <entries
+ xsi:type="gmfgen:ToolEntry"
+ title="Artifact"
+ description="Create new Artifact"
+ largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Artifact.gif"
+ smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Artifact.gif"
+ createMethodName="createArtifactCreationTool"
+ id="&quot;deployment.tool.artifact&quot;"
+ genNodes="/0/@diagram/@topLevelNodes.7 /0/@diagram/@childNodes.8 /0/@diagram/@childNodes.9 /0/@diagram/@childNodes.10"/>
+ <entries
+ xsi:type="gmfgen:ToolEntry"
+ title="Comment"
+ description="Create new Comment"
+ largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Comment.gif"
+ smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Comment.gif"
+ createMethodName="createCommentCreationTool"
+ id="&quot;deployment.tool.comment&quot;"
+ genNodes="/0/@diagram/@topLevelNodes.4 /0/@diagram/@childNodes.11"/>
+ <entries
+ xsi:type="gmfgen:ToolEntry"
+ title="Constraint"
+ description="Create new Constraint"
+ largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Constraint.gif"
+ smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Constraint.gif"
+ createMethodName="createConstraintCreationTool"
+ id="&quot;deployment.tool.constraint&quot;"
+ genNodes="/0/@diagram/@topLevelNodes.3 /0/@diagram/@childNodes.12"/>
+ <entries
+ xsi:type="gmfgen:ToolEntry"
+ title="Device"
+ description="Create new Device"
+ largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Device.gif"
+ smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Device.gif"
+ createMethodName="createDeviceCreationTool"
+ id="&quot;deployment.tool.device&quot;"
+ genNodes="/0/@diagram/@topLevelNodes.6 /0/@diagram/@childNodes.2 /0/@diagram/@childNodes.3"/>
+ <entries
+ xsi:type="gmfgen:ToolEntry"
+ title="Execution Environment"
+ description="Create new ExecutionEnvironment"
+ largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/ExecutionEnvironment.gif"
+ smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/ExecutionEnvironment.gif"
+ createMethodName="createExecutionEnvironmentCreationTool"
+ id="&quot;deployment.tool.executionEnvironment&quot;"
+ genNodes="/0/@diagram/@topLevelNodes.5 /0/@diagram/@childNodes.4 /0/@diagram/@childNodes.5"/>
+ <entries
+ xsi:type="gmfgen:ToolEntry"
+ title="Model"
+ description="Create a model"
+ largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Model.gif"
+ smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Model.gif"
+ createMethodName="createModelCreationTool"
+ genNodes="/0/@diagram/@childNodes.0 /0/@diagram/@topLevelNodes.1"/>
+ <entries
+ xsi:type="gmfgen:ToolEntry"
+ title="Node"
+ description="Create new Node"
+ largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Node.gif"
+ smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Node.gif"
+ createMethodName="createNodeCreationTool"
+ id="&quot;deployment.tool.node&quot;"
+ genNodes="/0/@diagram/@topLevelNodes.8 /0/@diagram/@childNodes.6 /0/@diagram/@childNodes.7"/>
+ <entries
+ xsi:type="gmfgen:ToolEntry"
+ title="Package"
+ description="Create a Package"
+ largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Package.gif"
+ smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Package.gif"
+ createMethodName="createPackageCreationTool"
+ id="&quot;deployment.tool.package&quot;"
+ genNodes="/0/@diagram/@topLevelNodes.2 /0/@diagram/@childNodes.1"/>
+ </groups>
+ <groups
+ title="Links"
+ description="Links"
+ largeIconPath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
+ smallIconPath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
+ createMethodName="createLinksGroup"
+ id="&quot;deployment.group.links&quot;"
+ collapse="true">
+ <entries
+ xsi:type="gmfgen:ToolEntry"
+ title="Dependency"
+ description="Create new Dependency"
+ largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Dependency.gif"
+ smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Dependency.gif"
+ createMethodName="createDependencyCreationTool"
+ id="&quot;deployment.tool.dependency&quot;"
+ genLinks="/0/@diagram/@links.6"/>
+ <entries
+ xsi:type="gmfgen:ToolEntry"
+ title="DependencyBranch"
+ description="Create a dependency branch"
+ largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Dependency.gif"
+ smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Dependency.gif"
+ createMethodName="createDependencyBranchCreationTool"
+ id="&quot;deployment.tool.dependencybranch&quot;"
+ genLinks="/0/@diagram/@links.7"/>
+ <entries
+ xsi:type="gmfgen:ToolEntry"
+ title="Deployment"
+ description="Create new Deployment"
+ largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Deployment.gif"
+ smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Deployment.gif"
+ createMethodName="createDeploymentCreationTool"
+ id="&quot;deployment.tool.deployment&quot;"
+ genLinks="/0/@diagram/@links.3"/>
+ <entries
+ xsi:type="gmfgen:ToolEntry"
+ title="Generalization"
+ description="Create new Generalization"
+ largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Generalization.gif"
+ smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Generalization.gif"
+ createMethodName="createGeneralizationCreationTool"
+ id="&quot;deployment.tool.generalization&quot;"
+ genLinks="/0/@diagram/@links.5"/>
+ <entries
+ xsi:type="gmfgen:ToolEntry"
+ title="Link"
+ description="Create new Link (Comment / Constraint)"
+ largeIconPath="icons/obj16/Link.gif"
+ smallIconPath="icons/obj16/Link.gif"
+ createMethodName="createLinkCreationTool"
+ id="&quot;deployment.tool.link&quot;"
+ genLinks="/0/@diagram/@links.1 /0/@diagram/@links.2"/>
+ <entries
+ xsi:type="gmfgen:ToolEntry"
+ title="Manifestation"
+ description="Create new Manifestation"
+ largeIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Manifestation.gif"
+ smallIconPath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Manifestation.gif"
+ createMethodName="createManifestationCreationTool"
+ id="&quot;deployment.tool.manifestation&quot;"
+ genLinks="/0/@diagram/@links.4"/>
+ </groups>
+ </palette>
+ <preferencePages
+ xsi:type="gmfgen:GenStandardPreferencePage"
+ iD="org.eclipse.uml2.uml.diagram.general"
+ name="UML Diagram">
+ <children
+ xsi:type="gmfgen:GenStandardPreferencePage"
+ iD="org.eclipse.uml2.uml.diagram.appearance"
+ name="Appearance"
+ kind="Appearance"/>
+ <children
+ xsi:type="gmfgen:GenStandardPreferencePage"
+ iD="org.eclipse.uml2.uml.diagram.connections"
+ name="Connections"
+ kind="Connections"/>
+ <children
+ xsi:type="gmfgen:GenStandardPreferencePage"
+ iD="org.eclipse.uml2.uml.diagram.printing"
+ name="Printing"
+ kind="Printing"/>
+ <children
+ xsi:type="gmfgen:GenStandardPreferencePage"
+ iD="org.eclipse.uml2.uml.diagram.rulersAndGrid"
+ name="Rulers And Grid"
+ kind="RulersAndGrid"/>
+ </preferencePages>
+ </diagram>
+ <plugin
+ iD="org.eclipse.papyrus.uml.diagram.deployment"
+ name="Papyrus Deployment Diagram "
+ provider="Eclipse Modeling Project"
+ version="1.1.0.qualifier">
+ <requiredPlugins>org.eclipse.draw2d</requiredPlugins>
+ <requiredPlugins>org.eclipse.gmf.runtime.draw2d.ui</requiredPlugins>
+ </plugin>
+ <editor
+ iconPath="icons/obj16/DeploymentDiagram.gif"/>
+ <diagramUpdater/>
+ <propertySheet>
+ <tabs
+ xsi:type="gmfgen:GenStandardPropertyTab"
+ iD="appearance"/>
+ <tabs
+ xsi:type="gmfgen:GenStandardPropertyTab"
+ iD="diagram"/>
+ <tabs
+ xsi:type="gmfgen:GenCustomPropertyTab"
+ iD="domain"
+ label="Core">
+ <filter
+ xsi:type="gmfgen:TypeTabFilter">
+ <types>org.eclipse.gmf.runtime.notation.View</types>
+ <types>org.eclipse.gef.EditPart</types>
+ <generatedTypes>abstractNavigatorItem</generatedTypes>
+ </filter>
+ </tabs>
+ </propertySheet>
+ <domainGenModel
+ href="../../../plugin/org.eclipse.uml2.uml/model/UML.genmodel#/"/>
+ <expressionProviders>
+ <providers
+ xsi:type="gmfgen:GenExpressionInterpreter">
+ <expressions
+ body="self.name.concat('.file') "/>
+ </providers>
+ <providers
+ xsi:type="gmfgen:GenJavaExpressionProvider"
+ injectExpressionBody="true">
+ <expressions
+ body="return org.eclipse.papyrus.uml.tools.utils.NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());"/>
+ <expressions
+ body="// Constraint specification init&#xD;&#xA;org.eclipse.uml2.uml.LiteralString value = org.eclipse.uml2.uml.UMLFactory.eINSTANCE.createLiteralString();&#xD;&#xA;value.setValue(&quot;&quot;);&#xD;&#xA;return value;"/>
+ <expressions
+ body="// Comment body init&#xD;&#xA;return &quot;&quot;;"/>
+ <expressions
+ xsi:type="gmfgen:GenConstraint"
+ body="// Creation constraint for TopLevelNodes&#xD;&#xA;&#x9;if(! (getElementToEdit() instanceof org.eclipse.uml2.uml.Package)) {&#xD;&#xA;&#x9;&#x9;return false;&#xD;&#xA;&#x9;}&#xD;&#xA;&#xD;&#xA;&#x9;return true;"/>
+ </providers>
+ </expressionProviders>
+ <labelParsers
+ extensibleViaService="true">
+ <implementations
+ xsi:type="gmfgen:PredefinedParser"
+ uses="/0/@diagram/@topLevelNodes.3/@labels.0/@modelFacet /0/@diagram/@topLevelNodes.5/@labels.0/@modelFacet /0/@diagram/@topLevelNodes.6/@labels.0/@modelFacet /0/@diagram/@topLevelNodes.7/@labels.0/@modelFacet /0/@diagram/@topLevelNodes.8/@labels.0/@modelFacet /0/@diagram/@links.4/@labels.0/@modelFacet /0/@diagram/@links.6/@labels.0/@modelFacet /0/@diagram/@links.3/@labels.0/@modelFacet /0/@diagram/@childNodes.2/@labels.0/@modelFacet /0/@diagram/@childNodes.4/@labels.0/@modelFacet /0/@diagram/@childNodes.6/@labels.0/@modelFacet /0/@diagram/@childNodes.8/@labels.0/@modelFacet /0/@diagram/@childNodes.9/@labels.0/@modelFacet /0/@diagram/@topLevelNodes.2/@labels.0/@modelFacet /0/@diagram/@childNodes.1/@labels.0/@modelFacet /0/@diagram/@childNodes.10/@labels.0/@modelFacet /0/@diagram/@childNodes.7/@labels.0/@modelFacet /0/@diagram/@childNodes.3/@labels.0/@modelFacet /0/@diagram/@childNodes.5/@labels.0/@modelFacet /0/@diagram/@topLevelNodes.1/@labels.0/@modelFacet /0/@diagram/@childNodes.0/@labels.0/@modelFacet /0/@diagram/@topLevelNodes.0/@labels.0/@modelFacet /0/@diagram/@topLevelNodes.9/@labels.0/@modelFacet /0/@diagram/@childNodes.12/@labels.0/@modelFacet /0/@diagram/@childNodes.8/@labels.1/@modelFacet /0/@diagram/@childNodes.9/@labels.1/@modelFacet /0/@diagram/@topLevelNodes.7/@labels.1/@modelFacet"/>
+ <implementations
+ xsi:type="gmfgen:CustomParser"
+ uses="/0/@diagram/@topLevelNodes.4/@labels.0/@modelFacet /0/@diagram/@childNodes.11/@labels.0/@modelFacet"
+ qualifiedName="org.eclipse.papyrus.uml.diagram.common.parser.CommentParser"/>
+ <implementations
+ xsi:type="gmfgen:CustomParser"
+ uses="/0/@diagram/@links.5/@labels.0/@modelFacet /0/@diagram/@links.4/@labels.1/@modelFacet /0/@diagram/@links.6/@labels.1/@modelFacet /0/@diagram/@links.3/@labels.1/@modelFacet"
+ qualifiedName="org.eclipse.papyrus.uml.diagram.common.parser.stereotype.AppliedStereotypeParser"/>
+ <implementations
+ xsi:type="gmfgen:CustomParser"
+ uses="/0/@diagram/@topLevelNodes.3/@labels.1/@modelFacet /0/@diagram/@childNodes.12/@labels.1/@modelFacet"
+ qualifiedName="org.eclipse.papyrus.uml.diagram.common.parser.ConstraintParser"/>
+ </labelParsers>
+ <contextMenus
+ context="/0/@diagram">
+ <items
+ xsi:type="gmfgen:LoadResourceAction"/>
+ </contextMenus>
+ </gmfgen:GenEditorGenerator>
+ <papyrusgmfgenextension:PapyrusExtensionRootNode
+ comment="Papyrus specific extension for GMFGen">
+ <extensionNodes
+ xsi:type="papyrusgmfgenextension:ExtendedGenView"
+ comment="Manages stereotype shown with External Label"
+ genView="/0/@diagram/@links.5/@labels.0 /0/@diagram/@links.3/@labels.1 /0/@diagram/@links.4/@labels.1 /0/@diagram/@links.6/@labels.1"
+ name="EP_Stereotypes_EXT_NODE"
+ superOwnedEditPart="org.eclipse.papyrus.uml.diagram.common.editparts.AbstractLabelEditPart"/>
+ <extensionNodes
+ xsi:type="papyrusgmfgenextension:ExtendedGenView"
+ comment="Add super class to a Comment edit parts"
+ genView="/0/@diagram/@childNodes.11 /0/@diagram/@topLevelNodes.4"
+ name="EP_Comment_NODE"
+ superOwnedEditPart="org.eclipse.papyrus.uml.diagram.common.editparts.AbstractCommentEditPart"/>
+ <extensionNodes
+ xsi:type="papyrusgmfgenextension:ExtendedGenView"
+ comment="Add super class to a Constraint edit parts"
+ genView="/0/@diagram/@childNodes.12 /0/@diagram/@topLevelNodes.3"
+ name="EP_Constraint_NODE"
+ superOwnedEditPart="org.eclipse.papyrus.uml.diagram.common.editparts.AbstractConstraintEditPart"/>
+ <extensionNodes
+ xsi:type="papyrusgmfgenextension:ExtendedGenView"
+ comment="Label in charge to display applied stereotypes on links"
+ genView="/0/@diagram/@links.3 /0/@diagram/@links.4 /0/@diagram/@links.6 /0/@diagram/@links.5 /0/@diagram/@links.7 /0/@diagram/@links.2"
+ name="ExtendedUMLLinks"
+ superOwnedEditPart="org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart"/>
+ <extensionNodes
+ xsi:type="papyrusgmfgenextension:ExtendedGenView"
+ comment="adding to manange NamedElement"
+ genView="/0/@diagram /0/@diagram/@topLevelNodes.9 /0/@diagram/@topLevelNodes.8 /0/@diagram/@childNodes.6 /0/@diagram/@topLevelNodes.6 /0/@diagram/@childNodes.2 /0/@diagram/@topLevelNodes.5 /0/@diagram/@childNodes.4"
+ name="NamedElementEditPart"
+ superOwnedEditPart="org.eclipse.papyrus.uml.diagram.common.editparts.NamedElementEditPart"/>
+ <extensionNodes
+ xsi:type="papyrusgmfgenextension:GenNodeConstraint"
+ comment="Creation constraint for TopLevelNode in virtual canvas"
+ genNode="/0/@diagram/@topLevelNodes.2 /0/@diagram/@topLevelNodes.4 /0/@diagram/@topLevelNodes.3 /0/@diagram/@topLevelNodes.5 /0/@diagram/@topLevelNodes.6 /0/@diagram/@topLevelNodes.7 /0/@diagram/@topLevelNodes.8"
+ genConstraint="/0/@expressionProviders/@providers.1/@expressions.3"/>
+ <extensionNodes
+ xsi:type="papyrusgmfgenextension:AdditionalEditPartCandies"
+ comment="Indicate specific BaseEditHelper in place of generated EditHelper"
+ baseEditHelperPackage="org.eclipse.papyrus.uml.diagram.common.helper"/>
+ <extensionNodes
+ xsi:type="papyrusgmfgenextension:EditPartUsingDeleteService"
+ comment="The delete service is used on every TopNode Childnode and Link"
+ name="Every TopNode ChildNode Link"
+ genView="/0/@diagram/@topLevelNodes.0 /0/@diagram/@topLevelNodes.2 /0/@diagram/@topLevelNodes.4 /0/@diagram/@topLevelNodes.3 /0/@diagram/@topLevelNodes.5 /0/@diagram/@topLevelNodes.6 /0/@diagram/@topLevelNodes.7 /0/@diagram/@topLevelNodes.8 /0/@diagram/@childNodes.1 /0/@diagram/@links.3 /0/@diagram/@links.4 /0/@diagram/@links.5 /0/@diagram/@links.6 /0/@diagram/@links.7 /0/@diagram/@links.1 /0/@diagram/@links.2"/>
+ <extensionNodes
+ xsi:type="papyrusgmfgenextension:EditPartUsingReorientService"
+ comment="Use the edit service for reorient command (All DirectedRelationship)"
+ name="DirectedRelationship"
+ genView="/0/@diagram/@links.3 /0/@diagram/@links.4 /0/@diagram/@links.5 /0/@diagram/@links.6 /0/@diagram/@links.7"/>
+ <extensionNodes
+ xsi:type="papyrusgmfgenextension:LabelVisibilityPreference"
+ comment="Name"
+ role="Name"
+ linkLabels="/0/@diagram/@links.3/@labels.0 /0/@diagram/@links.4/@labels.0 /0/@diagram/@links.6/@labels.0"/>
+ <extensionNodes
+ xsi:type="papyrusgmfgenextension:LabelVisibilityPreference"
+ comment="Stereotype"
+ role="Stereotype"
+ linkLabels="/0/@diagram/@links.5/@labels.0 /0/@diagram/@links.3/@labels.1 /0/@diagram/@links.4/@labels.1 /0/@diagram/@links.6/@labels.1"/>
+ <extensionNodes
+ xsi:type="papyrusgmfgenextension:CompartmentTitleVisibilityPreference"
+ comment="Hidden Compartments Titles"
+ visibleByDefault="false"
+ compartments="/0/@diagram/@compartments.2 /0/@diagram/@compartments.3 /0/@diagram/@compartments.4 /0/@diagram/@compartments.5 /0/@diagram/@compartments.8 /0/@diagram/@compartments.9 /0/@diagram/@compartments.10 /0/@diagram/@compartments.11 /0/@diagram/@compartments.12 /0/@diagram/@compartments.1 /0/@diagram/@compartments.7 /0/@diagram/@compartments.0 /0/@diagram/@compartments.6"/>
+ <extensionNodes
+ xsi:type="papyrusgmfgenextension:CompartmentVisibilityPreference"
+ comment="Hidden Compartments"
+ visibleByDefault="false"
+ compartments="/0/@diagram/@compartments.5 /0/@diagram/@compartments.11 /0/@diagram/@compartments.12"/>
+ <extensionNodes
+ xsi:type="papyrusgmfgenextension:ExtendedGenView"
+ comment="add superclass for floating Label"
+ genView="/0/@diagram/@childNodes.9/@labels.1 /0/@diagram/@topLevelNodes.7/@labels.1 /0/@diagram/@childNodes.8/@labels.1"
+ name="FloatingLabelEditPart"
+ superOwnedEditPart="org.eclipse.papyrus.uml.diagram.common.editparts.FloatingLabelEditPart"/>
+ <extensionNodes
+ xsi:type="papyrusgmfgenextension:ExtendedGenView"
+ comment=""
+ genView="/0/@diagram/@topLevelNodes.7 /0/@diagram/@childNodes.9 /0/@diagram/@childNodes.8"
+ name="RoundedCompartmentEditPart"
+ superOwnedEditPart="org.eclipse.papyrus.uml.diagram.common.editparts.RoundedCompartmentEditPart"/>
+ <extensionNodes
+ xsi:type="papyrusgmfgenextension:SpecificLocatorExternalLabel"
+ comment="Locator for external Floating label of RoundedCompartment EP"
+ classpath="org.eclipse.papyrus.uml.diagram.common.locator.RoundedRectangleLabelPositionLocator"
+ genExternalNodeLabel="/0/@diagram/@topLevelNodes.7/@labels.1 /0/@diagram/@childNodes.9/@labels.1 /0/@diagram/@childNodes.8/@labels.1"/>
+ <extensionNodes
+ xsi:type="papyrusgmfgenextension:ExtendedGenView"
+ genView="/0/@diagram/@childNodes.1 /0/@diagram/@topLevelNodes.2 /0/@diagram/@childNodes.0 /0/@diagram/@topLevelNodes.1"
+ name="PackageEditPart"
+ superOwnedEditPart="org.eclipse.papyrus.uml.diagram.common.editparts.PackageEditPart"/>
+ </papyrusgmfgenextension:PapyrusExtensionRootNode>
+</xmi:XMI>
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/plugin.xml b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/plugin.xml
index 1e7371104ac..0ab088a38fa 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/plugin.xml
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/plugin.xml
@@ -155,7 +155,7 @@
large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Artifact.gif"
path=""
small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Artifact.gif">
- </entry>
+ </entry>
<entry
defineOnly="true"
description="Create new Comment"
@@ -165,7 +165,7 @@
large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Comment.gif"
path=""
small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Comment.gif">
- </entry>
+ </entry>
<entry
defineOnly="true"
description="Create new Constraint"
@@ -175,7 +175,7 @@
large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Constraint.gif"
path=""
small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Constraint.gif">
- </entry>
+ </entry>
<entry
defineOnly="true"
description="Create new Device"
@@ -185,7 +185,7 @@
large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Device.gif"
path=""
small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Device.gif">
- </entry>
+ </entry>
<entry
defineOnly="true"
description="Create new ExecutionEnvironment"
@@ -195,7 +195,7 @@
large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/ExecutionEnvironment.gif"
path=""
small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/ExecutionEnvironment.gif">
- </entry>
+ </entry>
<entry
defineOnly="true"
description="Create a model"
@@ -205,7 +205,7 @@
large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Model.gif"
path=""
small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Model.gif">
- </entry>
+ </entry>
<entry
defineOnly="true"
description="Create new Node"
@@ -215,7 +215,7 @@
large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Node.gif"
path=""
small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Node.gif">
- </entry>
+ </entry>
<entry
defineOnly="true"
description="Create a Package"
@@ -225,7 +225,7 @@
large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Package.gif"
path=""
small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Package.gif">
- </entry>
+ </entry>
<entry
defineOnly="true"
description="Create new Dependency"
@@ -235,7 +235,7 @@
large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Dependency.gif"
path=""
small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Dependency.gif">
- </entry>
+ </entry>
<entry
defineOnly="true"
description="Create a dependency branch"
@@ -245,7 +245,7 @@
large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Dependency.gif"
path=""
small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Dependency.gif">
- </entry>
+ </entry>
<entry
defineOnly="true"
description="Create new Deployment"
@@ -255,7 +255,7 @@
large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Deployment.gif"
path=""
small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Deployment.gif">
- </entry>
+ </entry>
<entry
defineOnly="true"
description="Create new Generalization"
@@ -265,7 +265,7 @@
large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Generalization.gif"
path=""
small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Generalization.gif">
- </entry>
+ </entry>
<entry
defineOnly="true"
description="Create new Link (Comment / Constraint)"
@@ -275,7 +275,7 @@
large_icon="icons/obj16/Link.gif"
path=""
small_icon="icons/obj16/Link.gif">
- </entry>
+ </entry>
<entry
defineOnly="true"
description="Create new Manifestation"
@@ -285,7 +285,7 @@
large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Manifestation.gif"
path=""
small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Manifestation.gif">
- </entry>
+ </entry>
</contribution>
</paletteProvider>
@@ -531,336 +531,10 @@
<extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypes" id="element-types">
<?gmfgen generated="true"?>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <metamodelType
- id="org.eclipse.papyrus.uml.diagram.deployment.Package_1000"
- name="%metatype.name.Package_1000"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
- eclass="Package"
- edithelper="org.eclipse.papyrus.uml.diagram.deployment.edit.helpers.ModelEditHelper">
- <param name="semanticHint" value="1000"/>
- </metamodelType>
- </metamodel>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <metamodelType
- id="org.eclipse.papyrus.uml.diagram.deployment.Dependency_2011"
- name="%metatype.name.Dependency_2011"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
- eclass="Dependency"
- edithelper="org.eclipse.papyrus.uml.diagram.deployment.edit.helpers.DependencyEditHelper">
- <param name="semanticHint" value="2011"/>
- </metamodelType>
- </metamodel>
- <specializationType
- id="org.eclipse.papyrus.uml.diagram.deployment.Model_2010"
- name="%metatype.name.Model_2010"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType">
- <specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
- <param name="semanticHint" value="2010"/>
- </specializationType>
- <specializationType
- id="org.eclipse.papyrus.uml.diagram.deployment.Package_2009"
- name="%metatype.name.Package_2009"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType">
- <specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
- <param name="semanticHint" value="2009"/>
- </specializationType>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <metamodelType
- id="org.eclipse.papyrus.uml.diagram.deployment.Constraint_2005"
- name="%metatype.name.Constraint_2005"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
- eclass="Constraint"
- edithelper="org.eclipse.papyrus.uml.diagram.deployment.edit.helpers.ConstraintEditHelper">
- <param name="semanticHint" value="2005"/>
- </metamodelType>
- </metamodel>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <metamodelType
- id="org.eclipse.papyrus.uml.diagram.deployment.Comment_2001"
- name="%metatype.name.Comment_2001"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
- eclass="Comment"
- edithelper="org.eclipse.papyrus.uml.diagram.deployment.edit.helpers.CommentEditHelper">
- <param name="semanticHint" value="2001"/>
- </metamodelType>
- </metamodel>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <metamodelType
- id="org.eclipse.papyrus.uml.diagram.deployment.ExecutionEnvironment_2002"
- name="%metatype.name.ExecutionEnvironment_2002"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
- eclass="ExecutionEnvironment"
- edithelper="org.eclipse.papyrus.uml.diagram.deployment.edit.helpers.ExecutionEnvironmentEditHelper">
- <param name="semanticHint" value="2002"/>
- </metamodelType>
- </metamodel>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <metamodelType
- id="org.eclipse.papyrus.uml.diagram.deployment.Device_2003"
- name="%metatype.name.Device_2003"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
- eclass="Device"
- edithelper="org.eclipse.papyrus.uml.diagram.deployment.edit.helpers.DeviceEditHelper">
- <param name="semanticHint" value="2003"/>
- </metamodelType>
- </metamodel>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <metamodelType
- id="org.eclipse.papyrus.uml.diagram.deployment.Artifact_2006"
- name="%metatype.name.Artifact_2006"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
- eclass="Artifact"
- edithelper="org.eclipse.papyrus.uml.diagram.deployment.edit.helpers.ArtifactEditHelper">
- <param name="semanticHint" value="2006"/>
- </metamodelType>
- </metamodel>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <metamodelType
- id="org.eclipse.papyrus.uml.diagram.deployment.Node_2008"
- name="%metatype.name.Node_2008"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
- eclass="Node"
- edithelper="org.eclipse.papyrus.uml.diagram.deployment.edit.helpers.NodeEditHelper">
- <param name="semanticHint" value="2008"/>
- </metamodelType>
- </metamodel>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <metamodelType
- id="org.eclipse.papyrus.uml.diagram.deployment.NamedElement_2012"
- name="%metatype.name.NamedElement_2012"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
- eclass="NamedElement"
- edithelper="org.eclipse.papyrus.uml.diagram.deployment.edit.helpers.DefaultNamedElementEditHelper">
- <param name="semanticHint" value="2012"/>
- </metamodelType>
- </metamodel>
- <specializationType
- id="org.eclipse.papyrus.uml.diagram.deployment.Model_49"
- name="%metatype.name.Model_49"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType">
- <specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
- <param name="semanticHint" value="49"/>
- </specializationType>
- <specializationType
- id="org.eclipse.papyrus.uml.diagram.deployment.Package_36"
- name="%metatype.name.Package_36"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType">
- <specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
- <param name="semanticHint" value="36"/>
- </specializationType>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <specializationType
- id="org.eclipse.papyrus.uml.diagram.deployment.Device_16"
- name="%metatype.name.Device_16"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType">
- <specializes id="org.eclipse.papyrus.uml.diagram.deployment.Device_2003"/>
- <param name="semanticHint" value="16"/>
- </specializationType>
- </metamodel>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <specializationType
- id="org.eclipse.papyrus.uml.diagram.deployment.Device_44"
- name="%metatype.name.Device_44"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType">
- <specializes id="org.eclipse.papyrus.uml.diagram.deployment.Device_2003"/>
- <param name="semanticHint" value="44"/>
- </specializationType>
- </metamodel>
- <specializationType
- id="org.eclipse.papyrus.uml.diagram.deployment.ExecutionEnvironment_21"
- name="%metatype.name.ExecutionEnvironment_21"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType">
- <specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
- <param name="semanticHint" value="21"/>
- </specializationType>
- <specializationType
- id="org.eclipse.papyrus.uml.diagram.deployment.ExecutionEnvironment_46"
- name="%metatype.name.ExecutionEnvironment_46"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType">
- <specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
- <param name="semanticHint" value="46"/>
- </specializationType>
- <specializationType
- id="org.eclipse.papyrus.uml.diagram.deployment.Node_23"
- name="%metatype.name.Node_23"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType">
- <specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
- <param name="semanticHint" value="23"/>
- </specializationType>
- <specializationType
- id="org.eclipse.papyrus.uml.diagram.deployment.Node_42"
- name="%metatype.name.Node_42"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType">
- <specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
- <param name="semanticHint" value="42"/>
- </specializationType>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <specializationType
- id="org.eclipse.papyrus.uml.diagram.deployment.Artifact_25"
- name="%metatype.name.Artifact_25"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType">
- <specializes id="org.eclipse.papyrus.uml.diagram.deployment.Artifact_2006"/>
- <param name="semanticHint" value="25"/>
- </specializationType>
- </metamodel>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <specializationType
- id="org.eclipse.papyrus.uml.diagram.deployment.Artifact_28"
- name="%metatype.name.Artifact_28"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType">
- <specializes id="org.eclipse.papyrus.uml.diagram.deployment.Artifact_2006"/>
- <param name="semanticHint" value="28"/>
- </specializationType>
- </metamodel>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <specializationType
- id="org.eclipse.papyrus.uml.diagram.deployment.Artifact_40"
- name="%metatype.name.Artifact_40"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType">
- <specializes id="org.eclipse.papyrus.uml.diagram.deployment.Artifact_2006"/>
- <param name="semanticHint" value="40"/>
- </specializationType>
- </metamodel>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <metamodelType
- id="org.eclipse.papyrus.uml.diagram.deployment.Comment_54"
- name="%metatype.name.Comment_54"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
- eclass="Comment"
- edithelper="org.eclipse.papyrus.uml.diagram.deployment.edit.helpers.CommentEditHelper">
- <param name="semanticHint" value="54"/>
- </metamodelType>
- </metamodel>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <metamodelType
- id="org.eclipse.papyrus.uml.diagram.deployment.Constraint_56"
- name="%metatype.name.Constraint_56"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
- eclass="Constraint"
- edithelper="org.eclipse.papyrus.uml.diagram.deployment.edit.helpers.ConstraintEditHelper">
- <param name="semanticHint" value="56"/>
- </metamodelType>
- </metamodel>
- <specializationType
- id="org.eclipse.papyrus.uml.diagram.deployment.Link_4005"
- name="%metatype.name.Link_4005"
- kind="org.eclipse.gmf.runtime.diagram.ui.util.INotationType">
- <specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
- <param name="semanticHint" value="4005"/>
- </specializationType>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <specializationType
- id="org.eclipse.papyrus.uml.diagram.deployment.CommentAnnotatedElement_4006"
- name="%metatype.name.CommentAnnotatedElement_4008"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType">
- <specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
- <param name="semanticHint" value="4008"/>
- </specializationType>
- </metamodel>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <specializationType
- id="org.eclipse.papyrus.uml.diagram.deployment.ConstraintConstrainedElement_4007"
- name="%metatype.name.ConstraintConstrainedElement_4009"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType">
- <specializes id="org.eclipse.gmf.runtime.emf.type.core.null"/>
- <param name="semanticHint" value="4009"/>
- </specializationType>
- </metamodel>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <metamodelType
- id="org.eclipse.papyrus.uml.diagram.deployment.Deployment_4001"
- name="%metatype.name.Deployment_4001"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
- eclass="Deployment"
- edithelper="org.eclipse.papyrus.uml.diagram.deployment.edit.helpers.DeploymentEditHelper">
- <param name="semanticHint" value="4001"/>
- </metamodelType>
- </metamodel>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <metamodelType
- id="org.eclipse.papyrus.uml.diagram.deployment.Manifestation_4002"
- name="%metatype.name.Manifestation_4002"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
- eclass="Manifestation"
- edithelper="org.eclipse.papyrus.uml.diagram.deployment.edit.helpers.ManifestationEditHelper">
- <param name="semanticHint" value="4002"/>
- </metamodelType>
- </metamodel>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <metamodelType
- id="org.eclipse.papyrus.uml.diagram.deployment.Generalization_4003"
- name="%metatype.name.Generalization_4003"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
- eclass="Generalization"
- edithelper="org.eclipse.papyrus.uml.diagram.deployment.edit.helpers.GeneralizationEditHelper">
- <param name="semanticHint" value="4003"/>
- </metamodelType>
- </metamodel>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <specializationType
- id="org.eclipse.papyrus.uml.diagram.deployment.Dependency_4004"
- name="%metatype.name.Dependency_4004"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType">
- <specializes id="org.eclipse.papyrus.uml.diagram.deployment.Dependency_2011"/>
- <param name="semanticHint" value="4004"/>
- </specializationType>
- </metamodel>
- <metamodel nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <specializationType
- id="org.eclipse.papyrus.uml.diagram.deployment.Dependency_4010"
- name="%metatype.name.Dependency_4010"
- kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType">
- <specializes id="org.eclipse.papyrus.uml.diagram.deployment.Dependency_2011"/>
- <param name="semanticHint" value="4010"/>
- </specializationType>
- </metamodel>
</extension>
<extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypeBindings" id="element-types-bindings">
<?gmfgen generated="true"?>
- <clientContext id="org.eclipse.papyrus.uml.diagram.deployment.TypeContext">
- <enablement>
- <test
- property="org.eclipse.gmf.runtime.emf.core.editingDomain"
- value="org.eclipse.papyrus.uml.diagram.deployment.EditingDomain"/>
- </enablement>
- </clientContext>
- <binding context="org.eclipse.papyrus.uml.diagram.deployment.TypeContext">
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Package_1000"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Dependency_2011"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Model_2010"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Package_2009"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Constraint_2005"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Comment_2001"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.ExecutionEnvironment_2002"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Device_2003"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Artifact_2006"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Node_2008"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.NamedElement_2012"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Model_49"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Package_36"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Device_16"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Device_44"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.ExecutionEnvironment_21"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.ExecutionEnvironment_46"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Node_23"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Node_42"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Artifact_25"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Artifact_28"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Artifact_40"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Comment_54"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Constraint_56"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Link_4005"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.CommentAnnotatedElement_4006"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.ConstraintConstrainedElement_4007"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Deployment_4001"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Manifestation_4002"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Generalization_4003"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Dependency_4004"/>
- <elementType ref="org.eclipse.papyrus.uml.diagram.deployment.Dependency_4010"/>
- <advice ref="org.eclipse.gmf.runtime.diagram.core.advice.notationDepdendents"/>
- </binding>
</extension>
@@ -889,97 +563,90 @@
<?gmfgen generated="true"?>
</extension>
-<extension point="org.eclipse.papyrus.infra.gmfdiag.common.notationTypesMapping">
+<extension point="org.eclipse.papyrus.infra.gmfdiag.common.notationTypesMapping">
<?gmfgen generated="true"?>
- <diagramMappings diagramID="PapyrusUMLDeploymentDiagram">
- <mapping type="PapyrusUMLDeploymentDiagram" humanReadableType="DeploymentDiagram"/>
-
- <mapping
- humanReadableType="Model"
- type="51">
- </mapping>
- <mapping
- humanReadableType="PackageableElement"
- type="38">
- </mapping>
- <mapping
- humanReadableType="DeviceComposite"
- type="17">
- </mapping>
- <mapping
- humanReadableType="ExecutionEnvironmentComposite"
- type="18">
- </mapping>
- <mapping
- humanReadableType="Composite"
- type="19">
- </mapping>
-
- <mapping
- humanReadableType="ArtifactComposite"
- type="26">
- </mapping>
- <mapping
- humanReadableType="Model"
- type="52">
- </mapping>
-
- <mapping
- humanReadableType="PackageableElement"
- type="39">
- </mapping>
-
- <mapping
- humanReadableType="DeviceComposite"
- type="30">
- </mapping>
- <mapping
- humanReadableType="ExecutionEnvironmentComposite"
- type="31">
- </mapping>
-
- <mapping
- humanReadableType="Composite"
- type="32">
- </mapping>
- <mapping
- humanReadableType="ArtifactComposite"
- type="33">
- </mapping>
- <mapping
- humanReadableType="ArtifactComposite"
- type="34">
- </mapping>
- <mapping
- humanReadableType="Name"
- type="13">
- </mapping>
-
- <mapping
- humanReadableType="Stereotype"
- type="14">
- </mapping>
- <mapping
- humanReadableType="Name"
- type="10">
- </mapping>
-
- <mapping
- humanReadableType="Stereotype"
- type="11">
- </mapping>
- <mapping
- humanReadableType="Stereotype"
- type="4">
- </mapping>
- <mapping
- humanReadableType="Name"
- type="12">
- </mapping>
- <mapping
- humanReadableType="Stereotype"
- type="15">
- </mapping>
+ <diagramMappings diagramID="PapyrusUMLDeploymentDiagram">
+ <mapping type="PapyrusUMLDeploymentDiagram" humanReadableType="DeploymentDiagram"/>
+ <mapping
+ humanReadableType="Model"
+ type="51">
+ </mapping>
+ <mapping
+ humanReadableType="PackageableElement"
+ type="38">
+ </mapping>
+ <mapping
+ humanReadableType="DeviceComposite"
+ type="17">
+ </mapping>
+ <mapping
+ humanReadableType="ExecutionEnvironmentComposite"
+ type="18">
+ </mapping>
+ <mapping
+ humanReadableType="Composite"
+ type="19">
+ </mapping>
+ <mapping
+ humanReadableType="ArtifactComposite"
+ type="26">
+ </mapping>
+ <mapping
+ humanReadableType="Model"
+ type="52">
+ </mapping>
+ <mapping
+ humanReadableType="PackageableElement"
+ type="39">
+ </mapping>
+ <mapping
+ humanReadableType="DeviceComposite"
+ type="30">
+ </mapping>
+ <mapping
+ humanReadableType="ExecutionEnvironmentComposite"
+ type="31">
+ </mapping>
+ <mapping
+ humanReadableType="Composite"
+ type="32">
+ </mapping>
+ <mapping
+ humanReadableType="ArtifactComposite"
+ type="33">
+ </mapping>
+ <mapping
+ humanReadableType="ArtifactComposite"
+ type="34">
+ </mapping>
+ <mapping
+ humanReadableType="Name"
+ type="13">
+ </mapping>
+ <mapping
+ humanReadableType="Stereotype"
+ type="14">
+ </mapping>
+ <mapping
+ humanReadableType="Name"
+ type="10">
+ </mapping>
+ <mapping
+ humanReadableType="Stereotype"
+ type="11">
+ </mapping>
+ <mapping
+ humanReadableType="Stereotype"
+ type="4">
+ </mapping>
+ <mapping
+ humanReadableType="Name"
+ type="12">
+ </mapping>
+ <mapping
+ humanReadableType="Stereotype"
+ type="15">
+ </mapping>
<mapping
humanReadableType="Floating Label"
type="59">
@@ -1014,6 +681,12 @@
target="1.1.0">
</diagramReconciler>
</extension>
-
+<extension
+ point="org.eclipse.papyrus.infra.elementtypesconfigurations.elementTypeSetConfiguration">
+ <elementTypeSet
+ id="org.eclipse.papyrus.uml.diagram.deployment.elementTypeSet"
+ path="model/DeploymentDiagram.elementtypesconfigurations">
+ </elementTypeSet>
+</extension>
<!-- optionally, specify keybindings -->
</plugin>
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ArtifactCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ArtifactCreateCommand.java
deleted file mode 100644
index 6c30c2813b0..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ArtifactCreateCommand.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Artifact;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class ArtifactCreateCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public ArtifactCreateCommand(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getArtifact());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- Artifact newElement = UMLFactory.eINSTANCE.createArtifact();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Package qualifiedTarget = (Package) target;
- qualifiedTarget.getPackagedElements()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_Artifact_2006(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Artifact newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ArtifactCreateCommandACN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ArtifactCreateCommandACN.java
deleted file mode 100644
index d56d37c100b..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ArtifactCreateCommandACN.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Artifact;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class ArtifactCreateCommandACN extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public ArtifactCreateCommandACN(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getArtifact());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- Artifact newElement = UMLFactory.eINSTANCE.createArtifact();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Artifact qualifiedTarget = (Artifact) target;
- qualifiedTarget.getNestedArtifacts()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_Artifact_28(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Artifact newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ArtifactCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ArtifactCreateCommandCN.java
deleted file mode 100644
index dcc4fc67f39..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ArtifactCreateCommandCN.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Artifact;
-import org.eclipse.uml2.uml.Class;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class ArtifactCreateCommandCN extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public ArtifactCreateCommandCN(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getArtifact());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- Artifact newElement = UMLFactory.eINSTANCE.createArtifact();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Class qualifiedTarget = (Class) target;
- qualifiedTarget.getNestedClassifiers()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_Artifact_25(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Artifact newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/CommentAnnotatedElementCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/CommentAnnotatedElementCreateCommand.java
deleted file mode 100644
index fba2bd809fb..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/CommentAnnotatedElementCreateCommand.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLBaseItemSemanticEditPolicy;
-import org.eclipse.uml2.uml.Comment;
-import org.eclipse.uml2.uml.Element;
-
-/**
- * @generated
- */
-public class CommentAnnotatedElementCreateCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- protected final EObject source;
-
- /**
- * @generated
- */
- protected final EObject target;
-
- /**
- * @generated
- */
- public CommentAnnotatedElementCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
- super(request.getLabel(), null, request);
- this.source = source;
- this.target = target;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
- if (source == null && target == null) {
- return false;
- }
- if (source != null && false == source instanceof Comment) {
- return false;
- }
- if (target != null && false == target instanceof Element) {
- return false;
- }
- if (getSource() == null) {
- return true; // link creation is in progress; source is not defined yet
- }
- // target may be null here but it's possible to check constraint
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateCommentAnnotatedElement_4008(getSource(), getTarget());
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- if (!canExecute()) {
- throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
- }
-
- if (getSource() != null && getTarget() != null) {
- getSource().getAnnotatedElements()
- .add(getTarget());
- }
- return CommandResult.newOKCommandResult();
-
- }
-
- /**
- * @generated
- */
- @Override
- protected void setElementToEdit(EObject element) {
- throw new UnsupportedOperationException();
- }
-
- /**
- * @generated
- */
- protected Comment getSource() {
- return (Comment) source;
- }
-
- /**
- * @generated
- */
- protected Element getTarget() {
- return (Element) target;
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/CommentAnnotatedElementReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/CommentAnnotatedElementReorientCommand.java
deleted file mode 100644
index d52203e6ca5..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/CommentAnnotatedElementReorientCommand.java
+++ /dev/null
@@ -1,165 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRequest;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLBaseItemSemanticEditPolicy;
-import org.eclipse.uml2.uml.Comment;
-import org.eclipse.uml2.uml.Element;
-
-/**
- * @generated
- */
-public class CommentAnnotatedElementReorientCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- private final int reorientDirection;
-
- /**
- * @generated
- */
- private final EObject referenceOwner;
-
- /**
- * @generated
- */
- private final EObject oldEnd;
-
- /**
- * @generated
- */
- private final EObject newEnd;
-
- /**
- * @generated
- */
- public CommentAnnotatedElementReorientCommand(ReorientReferenceRelationshipRequest request) {
- super(request.getLabel(), null, request);
- reorientDirection = request.getDirection();
- referenceOwner = request.getReferenceOwner();
- oldEnd = request.getOldRelationshipEnd();
- newEnd = request.getNewRelationshipEnd();
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
- if (false == referenceOwner instanceof Comment) {
- return false;
- }
- if (reorientDirection == ReorientRequest.REORIENT_SOURCE) {
- return canReorientSource();
- }
- if (reorientDirection == ReorientRequest.REORIENT_TARGET) {
- return canReorientTarget();
- }
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean canReorientSource() {
- if (!(oldEnd instanceof Element && newEnd instanceof Comment)) {
- return false;
- }
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistCommentAnnotatedElement_4008(getNewSource(), getOldTarget());
- }
-
- /**
- * @generated
- */
- protected boolean canReorientTarget() {
- if (!(oldEnd instanceof Element && newEnd instanceof Element)) {
- return false;
- }
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistCommentAnnotatedElement_4008(getOldSource(), getNewTarget());
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- if (!canExecute()) {
- throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
- }
- if (reorientDirection == ReorientRequest.REORIENT_SOURCE) {
- return reorientSource();
- }
- if (reorientDirection == ReorientRequest.REORIENT_TARGET) {
- return reorientTarget();
- }
- throw new IllegalStateException();
- }
-
- /**
- * @generated
- */
- protected CommandResult reorientSource() throws ExecutionException {
- getOldSource().getAnnotatedElements()
- .remove(getOldTarget());
- getNewSource().getAnnotatedElements()
- .add(getOldTarget());
- return CommandResult.newOKCommandResult(referenceOwner);
- }
-
- /**
- * @generated
- */
- protected CommandResult reorientTarget() throws ExecutionException {
- getOldSource().getAnnotatedElements()
- .remove(getOldTarget());
- getOldSource().getAnnotatedElements()
- .add(getNewTarget());
- return CommandResult.newOKCommandResult(referenceOwner);
- }
-
- /**
- * @generated
- */
- protected Comment getOldSource() {
- return (Comment) referenceOwner;
- }
-
- /**
- * @generated
- */
- protected Comment getNewSource() {
- return (Comment) newEnd;
- }
-
- /**
- * @generated
- */
- protected Element getOldTarget() {
- return (Element) oldEnd;
- }
-
- /**
- * @generated
- */
- protected Element getNewTarget() {
- return (Element) newEnd;
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/CommentCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/CommentCreateCommand.java
deleted file mode 100644
index f0c232e38f1..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/CommentCreateCommand.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Comment;
-import org.eclipse.uml2.uml.Element;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class CommentCreateCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public CommentCreateCommand(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getComment());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- Comment newElement = UMLFactory.eINSTANCE.createComment();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Element qualifiedTarget = (Element) target;
- qualifiedTarget.getOwnedComments()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_Comment_2001(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Comment newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/CommentCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/CommentCreateCommandCN.java
deleted file mode 100644
index fe0fcfaa426..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/CommentCreateCommandCN.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Comment;
-import org.eclipse.uml2.uml.Element;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class CommentCreateCommandCN extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public CommentCreateCommandCN(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getComment());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- Comment newElement = UMLFactory.eINSTANCE.createComment();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Element qualifiedTarget = (Element) target;
- qualifiedTarget.getOwnedComments()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_Comment_54(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Comment newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ConstraintConstrainedElementCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ConstraintConstrainedElementCreateCommand.java
deleted file mode 100644
index 9935c03460b..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ConstraintConstrainedElementCreateCommand.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLBaseItemSemanticEditPolicy;
-import org.eclipse.uml2.uml.Constraint;
-import org.eclipse.uml2.uml.Element;
-
-/**
- * @generated
- */
-public class ConstraintConstrainedElementCreateCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- protected final EObject source;
-
- /**
- * @generated
- */
- protected final EObject target;
-
- /**
- * @generated
- */
- public ConstraintConstrainedElementCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
- super(request.getLabel(), null, request);
- this.source = source;
- this.target = target;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
- if (source == null && target == null) {
- return false;
- }
- if (source != null && false == source instanceof Constraint) {
- return false;
- }
- if (target != null && false == target instanceof Element) {
- return false;
- }
- if (getSource() == null) {
- return true; // link creation is in progress; source is not defined yet
- }
- // target may be null here but it's possible to check constraint
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateConstraintConstrainedElement_4009(getSource(), getTarget());
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- if (!canExecute()) {
- throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
- }
-
- if (getSource() != null && getTarget() != null) {
- getSource().getConstrainedElements()
- .add(getTarget());
- }
- return CommandResult.newOKCommandResult();
-
- }
-
- /**
- * @generated
- */
- @Override
- protected void setElementToEdit(EObject element) {
- throw new UnsupportedOperationException();
- }
-
- /**
- * @generated
- */
- protected Constraint getSource() {
- return (Constraint) source;
- }
-
- /**
- * @generated
- */
- protected Element getTarget() {
- return (Element) target;
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ConstraintConstrainedElementReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ConstraintConstrainedElementReorientCommand.java
deleted file mode 100644
index eada99ceca9..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ConstraintConstrainedElementReorientCommand.java
+++ /dev/null
@@ -1,165 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRequest;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLBaseItemSemanticEditPolicy;
-import org.eclipse.uml2.uml.Constraint;
-import org.eclipse.uml2.uml.Element;
-
-/**
- * @generated
- */
-public class ConstraintConstrainedElementReorientCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- private final int reorientDirection;
-
- /**
- * @generated
- */
- private final EObject referenceOwner;
-
- /**
- * @generated
- */
- private final EObject oldEnd;
-
- /**
- * @generated
- */
- private final EObject newEnd;
-
- /**
- * @generated
- */
- public ConstraintConstrainedElementReorientCommand(ReorientReferenceRelationshipRequest request) {
- super(request.getLabel(), null, request);
- reorientDirection = request.getDirection();
- referenceOwner = request.getReferenceOwner();
- oldEnd = request.getOldRelationshipEnd();
- newEnd = request.getNewRelationshipEnd();
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
- if (false == referenceOwner instanceof Constraint) {
- return false;
- }
- if (reorientDirection == ReorientRequest.REORIENT_SOURCE) {
- return canReorientSource();
- }
- if (reorientDirection == ReorientRequest.REORIENT_TARGET) {
- return canReorientTarget();
- }
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean canReorientSource() {
- if (!(oldEnd instanceof Element && newEnd instanceof Constraint)) {
- return false;
- }
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistConstraintConstrainedElement_4009(getNewSource(), getOldTarget());
- }
-
- /**
- * @generated
- */
- protected boolean canReorientTarget() {
- if (!(oldEnd instanceof Element && newEnd instanceof Element)) {
- return false;
- }
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistConstraintConstrainedElement_4009(getOldSource(), getNewTarget());
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- if (!canExecute()) {
- throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
- }
- if (reorientDirection == ReorientRequest.REORIENT_SOURCE) {
- return reorientSource();
- }
- if (reorientDirection == ReorientRequest.REORIENT_TARGET) {
- return reorientTarget();
- }
- throw new IllegalStateException();
- }
-
- /**
- * @generated
- */
- protected CommandResult reorientSource() throws ExecutionException {
- getOldSource().getConstrainedElements()
- .remove(getOldTarget());
- getNewSource().getConstrainedElements()
- .add(getOldTarget());
- return CommandResult.newOKCommandResult(referenceOwner);
- }
-
- /**
- * @generated
- */
- protected CommandResult reorientTarget() throws ExecutionException {
- getOldSource().getConstrainedElements()
- .remove(getOldTarget());
- getOldSource().getConstrainedElements()
- .add(getNewTarget());
- return CommandResult.newOKCommandResult(referenceOwner);
- }
-
- /**
- * @generated
- */
- protected Constraint getOldSource() {
- return (Constraint) referenceOwner;
- }
-
- /**
- * @generated
- */
- protected Constraint getNewSource() {
- return (Constraint) newEnd;
- }
-
- /**
- * @generated
- */
- protected Element getOldTarget() {
- return (Element) oldEnd;
- }
-
- /**
- * @generated
- */
- protected Element getNewTarget() {
- return (Element) newEnd;
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ConstraintCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ConstraintCreateCommand.java
deleted file mode 100644
index 7c2d748380a..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ConstraintCreateCommand.java
+++ /dev/null
@@ -1,131 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Constraint;
-import org.eclipse.uml2.uml.Namespace;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class ConstraintCreateCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public ConstraintCreateCommand(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getConstraint());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- Constraint newElement = UMLFactory.eINSTANCE.createConstraint();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Package qualifiedTarget = (Package) target;
- qualifiedTarget.getPackagedElements()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
- Namespace childHolder = (Namespace) getElementToEdit();
- childHolder.getOwnedRules()
- .add(newElement);
-
- ElementInitializers.getInstance().init_Constraint_2005(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Constraint newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ConstraintCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ConstraintCreateCommandCN.java
deleted file mode 100644
index 9586e5d92c5..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ConstraintCreateCommandCN.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Constraint;
-import org.eclipse.uml2.uml.Namespace;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class ConstraintCreateCommandCN extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public ConstraintCreateCommandCN(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getConstraint());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- Constraint newElement = UMLFactory.eINSTANCE.createConstraint();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Namespace qualifiedTarget = (Namespace) target;
- qualifiedTarget.getOwnedRules()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_Constraint_56(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Constraint newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DefaultNamedElementCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DefaultNamedElementCreateCommand.java
deleted file mode 100644
index 1cd8fbc0022..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DefaultNamedElementCreateCommand.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class DefaultNamedElementCreateCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public DefaultNamedElementCreateCommand(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getNamedElement());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- throw new UnsupportedOperationException("Unimplemented operation (abstract domain element).");
- }
-
- /**
- * @generated
- */
- protected void doConfigure(NamedElement newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyBranchCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyBranchCreateCommand.java
deleted file mode 100644
index 4933a1fdde5..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyBranchCreateCommand.java
+++ /dev/null
@@ -1,171 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLBaseItemSemanticEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Dependency;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.UMLFactory;
-
-/**
- * @generated
- */
-public class DependencyBranchCreateCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- protected final EObject source;
-
- /**
- * @generated
- */
- protected final EObject target;
-
- /**
- * @generated
- */
- protected Package container;
-
- /**
- * @generated
- */
- public DependencyBranchCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
- super(request.getLabel(), null, request);
- this.source = source;
- this.target = target;
- container = deduceContainer(source, target);
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
- if (source == null && target == null) {
- return false;
- }
- if (source != null && false == source instanceof NamedElement) {
- return false;
- }
- if (target != null && false == target instanceof NamedElement) {
- return false;
- }
- if (getSource() == null) {
- return true; // link creation is in progress; source is not defined yet
- }
- // target may be null here but it's possible to check constraint
- if (getContainer() == null) {
- return false;
- }
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateDependency_4010(getContainer(), getSource(), getTarget());
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- if (!canExecute()) {
- throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
- }
-
- Dependency newElement = UMLFactory.eINSTANCE.createDependency();
- getContainer().getPackagedElements()
- .add(newElement);
- newElement.getClients()
- .add(getSource());
- newElement.getSuppliers()
- .add(getTarget());
- ElementInitializers.getInstance().init_Dependency_4010(newElement);
- doConfigure(newElement, monitor, info);
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
-
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Dependency newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource());
- configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setElementToEdit(EObject element) {
- throw new UnsupportedOperationException();
- }
-
- /**
- * @generated
- */
- protected NamedElement getSource() {
- return (NamedElement) source;
- }
-
- /**
- * @generated
- */
- protected NamedElement getTarget() {
- return (NamedElement) target;
- }
-
- /**
- * @generated
- */
- public Package getContainer() {
- return container;
- }
-
- /**
- * Default approach is to traverse ancestors of the source to find instance of container.
- * Modify with appropriate logic.
- *
- * @generated
- */
- protected Package deduceContainer(EObject source, EObject target) {
- // Find container element for the new link.
- // Climb up by containment hierarchy starting from the source
- // and return the first element that is instance of the container class.
- for (EObject element = source; element != null; element = element.eContainer()) {
- if (element instanceof Package) {
- return (Package) element;
- }
- }
- return null;
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyBranchReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyBranchReorientCommand.java
deleted file mode 100644
index 4c3da9a962c..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyBranchReorientCommand.java
+++ /dev/null
@@ -1,187 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRequest;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLBaseItemSemanticEditPolicy;
-import org.eclipse.uml2.uml.Dependency;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.Package;
-
-/**
- * @generated
- */
-public class DependencyBranchReorientCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- private final int reorientDirection;
-
- /**
- * @generated
- */
- private final EObject oldEnd;
-
- /**
- * @generated
- */
- private final EObject newEnd;
-
- /**
- * @generated
- */
- public DependencyBranchReorientCommand(ReorientRelationshipRequest request) {
- super(request.getLabel(), request.getRelationship(), request);
- reorientDirection = request.getDirection();
- oldEnd = request.getOldRelationshipEnd();
- newEnd = request.getNewRelationshipEnd();
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
- if (false == getElementToEdit() instanceof Dependency) {
- return false;
- }
- if (reorientDirection == ReorientRequest.REORIENT_SOURCE) {
- return canReorientSource();
- }
- if (reorientDirection == ReorientRequest.REORIENT_TARGET) {
- return canReorientTarget();
- }
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean canReorientSource() {
- if (!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
- return false;
- }
- if (getLink().getSuppliers()
- .size() != 1) {
- return false;
- }
- NamedElement target = getLink().getSuppliers()
- .get(0);
- if (!(getLink().eContainer() instanceof Package)) {
- return false;
- }
- Package container = (Package) getLink().eContainer();
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistDependency_4010(container, getLink(), getNewSource(), target);
- }
-
- /**
- * @generated
- */
- protected boolean canReorientTarget() {
- if (!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
- return false;
- }
- if (getLink().getClients()
- .size() != 1) {
- return false;
- }
- NamedElement source = getLink().getClients()
- .get(0);
- if (!(getLink().eContainer() instanceof Package)) {
- return false;
- }
- Package container = (Package) getLink().eContainer();
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistDependency_4010(container, getLink(), source, getNewTarget());
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- if (!canExecute()) {
- throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
- }
- if (reorientDirection == ReorientRequest.REORIENT_SOURCE) {
- return reorientSource();
- }
- if (reorientDirection == ReorientRequest.REORIENT_TARGET) {
- return reorientTarget();
- }
- throw new IllegalStateException();
- }
-
- /**
- * @generated
- */
- protected CommandResult reorientSource() throws ExecutionException {
- getLink().getClients()
- .remove(getOldSource());
- getLink().getClients()
- .add(getNewSource());
- return CommandResult.newOKCommandResult(getLink());
- }
-
- /**
- * @generated
- */
- protected CommandResult reorientTarget() throws ExecutionException {
- getLink().getSuppliers()
- .remove(getOldTarget());
- getLink().getSuppliers()
- .add(getNewTarget());
- return CommandResult.newOKCommandResult(getLink());
- }
-
- /**
- * @generated
- */
- protected Dependency getLink() {
- return (Dependency) getElementToEdit();
- }
-
- /**
- * @generated
- */
- protected NamedElement getOldSource() {
- return (NamedElement) oldEnd;
- }
-
- /**
- * @generated
- */
- protected NamedElement getNewSource() {
- return (NamedElement) newEnd;
- }
-
- /**
- * @generated
- */
- protected NamedElement getOldTarget() {
- return (NamedElement) oldEnd;
- }
-
- /**
- * @generated
- */
- protected NamedElement getNewTarget() {
- return (NamedElement) newEnd;
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyCreateCommand.java
deleted file mode 100644
index 038a9c2d543..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyCreateCommand.java
+++ /dev/null
@@ -1,171 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLBaseItemSemanticEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Dependency;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.UMLFactory;
-
-/**
- * @generated
- */
-public class DependencyCreateCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- protected final EObject source;
-
- /**
- * @generated
- */
- protected final EObject target;
-
- /**
- * @generated
- */
- protected Package container;
-
- /**
- * @generated
- */
- public DependencyCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
- super(request.getLabel(), null, request);
- this.source = source;
- this.target = target;
- container = deduceContainer(source, target);
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
- if (source == null && target == null) {
- return false;
- }
- if (source != null && false == source instanceof NamedElement) {
- return false;
- }
- if (target != null && false == target instanceof NamedElement) {
- return false;
- }
- if (getSource() == null) {
- return true; // link creation is in progress; source is not defined yet
- }
- // target may be null here but it's possible to check constraint
- if (getContainer() == null) {
- return false;
- }
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateDependency_4004(getContainer(), getSource(), getTarget());
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- if (!canExecute()) {
- throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
- }
-
- Dependency newElement = UMLFactory.eINSTANCE.createDependency();
- getContainer().getPackagedElements()
- .add(newElement);
- newElement.getClients()
- .add(getSource());
- newElement.getSuppliers()
- .add(getTarget());
- ElementInitializers.getInstance().init_Dependency_4004(newElement);
- doConfigure(newElement, monitor, info);
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
-
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Dependency newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource());
- configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setElementToEdit(EObject element) {
- throw new UnsupportedOperationException();
- }
-
- /**
- * @generated
- */
- protected NamedElement getSource() {
- return (NamedElement) source;
- }
-
- /**
- * @generated
- */
- protected NamedElement getTarget() {
- return (NamedElement) target;
- }
-
- /**
- * @generated
- */
- public Package getContainer() {
- return container;
- }
-
- /**
- * Default approach is to traverse ancestors of the source to find instance of container.
- * Modify with appropriate logic.
- *
- * @generated
- */
- protected Package deduceContainer(EObject source, EObject target) {
- // Find container element for the new link.
- // Climb up by containment hierarchy starting from the source
- // and return the first element that is instance of the container class.
- for (EObject element = source; element != null; element = element.eContainer()) {
- if (element instanceof Package) {
- return (Package) element;
- }
- }
- return null;
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyNodeCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyNodeCreateCommand.java
deleted file mode 100644
index 1dd0bc440f1..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyNodeCreateCommand.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.uml2.uml.Dependency;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class DependencyNodeCreateCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public DependencyNodeCreateCommand(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getDependency());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- Dependency newElement = UMLFactory.eINSTANCE.createDependency();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Package qualifiedTarget = (Package) target;
- qualifiedTarget.getPackagedElements()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Dependency newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyReorientCommand.java
deleted file mode 100644
index 258ae09f699..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DependencyReorientCommand.java
+++ /dev/null
@@ -1,187 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRequest;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLBaseItemSemanticEditPolicy;
-import org.eclipse.uml2.uml.Dependency;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.Package;
-
-/**
- * @generated
- */
-public class DependencyReorientCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- private final int reorientDirection;
-
- /**
- * @generated
- */
- private final EObject oldEnd;
-
- /**
- * @generated
- */
- private final EObject newEnd;
-
- /**
- * @generated
- */
- public DependencyReorientCommand(ReorientRelationshipRequest request) {
- super(request.getLabel(), request.getRelationship(), request);
- reorientDirection = request.getDirection();
- oldEnd = request.getOldRelationshipEnd();
- newEnd = request.getNewRelationshipEnd();
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
- if (false == getElementToEdit() instanceof Dependency) {
- return false;
- }
- if (reorientDirection == ReorientRequest.REORIENT_SOURCE) {
- return canReorientSource();
- }
- if (reorientDirection == ReorientRequest.REORIENT_TARGET) {
- return canReorientTarget();
- }
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean canReorientSource() {
- if (!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
- return false;
- }
- if (getLink().getSuppliers()
- .size() != 1) {
- return false;
- }
- NamedElement target = getLink().getSuppliers()
- .get(0);
- if (!(getLink().eContainer() instanceof Package)) {
- return false;
- }
- Package container = (Package) getLink().eContainer();
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistDependency_4004(container, getLink(), getNewSource(), target);
- }
-
- /**
- * @generated
- */
- protected boolean canReorientTarget() {
- if (!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
- return false;
- }
- if (getLink().getClients()
- .size() != 1) {
- return false;
- }
- NamedElement source = getLink().getClients()
- .get(0);
- if (!(getLink().eContainer() instanceof Package)) {
- return false;
- }
- Package container = (Package) getLink().eContainer();
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistDependency_4004(container, getLink(), source, getNewTarget());
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- if (!canExecute()) {
- throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
- }
- if (reorientDirection == ReorientRequest.REORIENT_SOURCE) {
- return reorientSource();
- }
- if (reorientDirection == ReorientRequest.REORIENT_TARGET) {
- return reorientTarget();
- }
- throw new IllegalStateException();
- }
-
- /**
- * @generated
- */
- protected CommandResult reorientSource() throws ExecutionException {
- getLink().getClients()
- .remove(getOldSource());
- getLink().getClients()
- .add(getNewSource());
- return CommandResult.newOKCommandResult(getLink());
- }
-
- /**
- * @generated
- */
- protected CommandResult reorientTarget() throws ExecutionException {
- getLink().getSuppliers()
- .remove(getOldTarget());
- getLink().getSuppliers()
- .add(getNewTarget());
- return CommandResult.newOKCommandResult(getLink());
- }
-
- /**
- * @generated
- */
- protected Dependency getLink() {
- return (Dependency) getElementToEdit();
- }
-
- /**
- * @generated
- */
- protected NamedElement getOldSource() {
- return (NamedElement) oldEnd;
- }
-
- /**
- * @generated
- */
- protected NamedElement getNewSource() {
- return (NamedElement) newEnd;
- }
-
- /**
- * @generated
- */
- protected NamedElement getOldTarget() {
- return (NamedElement) oldEnd;
- }
-
- /**
- * @generated
- */
- protected NamedElement getNewTarget() {
- return (NamedElement) newEnd;
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DeploymentCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DeploymentCreateCommand.java
deleted file mode 100644
index 86e297b18b0..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DeploymentCreateCommand.java
+++ /dev/null
@@ -1,171 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLBaseItemSemanticEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Deployment;
-import org.eclipse.uml2.uml.DeploymentTarget;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.UMLFactory;
-
-/**
- * @generated
- */
-public class DeploymentCreateCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- protected final EObject source;
-
- /**
- * @generated
- */
- protected final EObject target;
-
- /**
- * @generated
- */
- protected DeploymentTarget container;
-
- /**
- * @generated
- */
- public DeploymentCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
- super(request.getLabel(), null, request);
- this.source = source;
- this.target = target;
- container = deduceContainer(source, target);
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
- if (source == null && target == null) {
- return false;
- }
- if (source != null && false == source instanceof NamedElement) {
- return false;
- }
- if (target != null && false == target instanceof NamedElement) {
- return false;
- }
- if (getSource() == null) {
- return true; // link creation is in progress; source is not defined yet
- }
- // target may be null here but it's possible to check constraint
- if (getContainer() == null) {
- return false;
- }
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateDeployment_4001(getContainer(), getSource(), getTarget());
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- if (!canExecute()) {
- throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
- }
-
- Deployment newElement = UMLFactory.eINSTANCE.createDeployment();
- getContainer().getDeployments()
- .add(newElement);
- newElement.getClients()
- .add(getSource());
- newElement.getSuppliers()
- .add(getTarget());
- ElementInitializers.getInstance().init_Deployment_4001(newElement);
- doConfigure(newElement, monitor, info);
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
-
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Deployment newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource());
- configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setElementToEdit(EObject element) {
- throw new UnsupportedOperationException();
- }
-
- /**
- * @generated
- */
- protected NamedElement getSource() {
- return (NamedElement) source;
- }
-
- /**
- * @generated
- */
- protected NamedElement getTarget() {
- return (NamedElement) target;
- }
-
- /**
- * @generated
- */
- public DeploymentTarget getContainer() {
- return container;
- }
-
- /**
- * Default approach is to traverse ancestors of the source to find instance of container.
- * Modify with appropriate logic.
- *
- * @generated
- */
- protected DeploymentTarget deduceContainer(EObject source, EObject target) {
- // Find container element for the new link.
- // Climb up by containment hierarchy starting from the source
- // and return the first element that is instance of the container class.
- for (EObject element = source; element != null; element = element.eContainer()) {
- if (element instanceof DeploymentTarget) {
- return (DeploymentTarget) element;
- }
- }
- return null;
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DeploymentReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DeploymentReorientCommand.java
deleted file mode 100644
index d47b7379fa5..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DeploymentReorientCommand.java
+++ /dev/null
@@ -1,187 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRequest;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLBaseItemSemanticEditPolicy;
-import org.eclipse.uml2.uml.Deployment;
-import org.eclipse.uml2.uml.DeploymentTarget;
-import org.eclipse.uml2.uml.NamedElement;
-
-/**
- * @generated
- */
-public class DeploymentReorientCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- private final int reorientDirection;
-
- /**
- * @generated
- */
- private final EObject oldEnd;
-
- /**
- * @generated
- */
- private final EObject newEnd;
-
- /**
- * @generated
- */
- public DeploymentReorientCommand(ReorientRelationshipRequest request) {
- super(request.getLabel(), request.getRelationship(), request);
- reorientDirection = request.getDirection();
- oldEnd = request.getOldRelationshipEnd();
- newEnd = request.getNewRelationshipEnd();
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
- if (false == getElementToEdit() instanceof Deployment) {
- return false;
- }
- if (reorientDirection == ReorientRequest.REORIENT_SOURCE) {
- return canReorientSource();
- }
- if (reorientDirection == ReorientRequest.REORIENT_TARGET) {
- return canReorientTarget();
- }
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean canReorientSource() {
- if (!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
- return false;
- }
- if (getLink().getSuppliers()
- .size() != 1) {
- return false;
- }
- NamedElement target = getLink().getSuppliers()
- .get(0);
- if (!(getLink().eContainer() instanceof DeploymentTarget)) {
- return false;
- }
- DeploymentTarget container = (DeploymentTarget) getLink().eContainer();
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistDeployment_4001(container, getLink(), getNewSource(), target);
- }
-
- /**
- * @generated
- */
- protected boolean canReorientTarget() {
- if (!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
- return false;
- }
- if (getLink().getClients()
- .size() != 1) {
- return false;
- }
- NamedElement source = getLink().getClients()
- .get(0);
- if (!(getLink().eContainer() instanceof DeploymentTarget)) {
- return false;
- }
- DeploymentTarget container = (DeploymentTarget) getLink().eContainer();
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistDeployment_4001(container, getLink(), source, getNewTarget());
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- if (!canExecute()) {
- throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
- }
- if (reorientDirection == ReorientRequest.REORIENT_SOURCE) {
- return reorientSource();
- }
- if (reorientDirection == ReorientRequest.REORIENT_TARGET) {
- return reorientTarget();
- }
- throw new IllegalStateException();
- }
-
- /**
- * @generated
- */
- protected CommandResult reorientSource() throws ExecutionException {
- getLink().getClients()
- .remove(getOldSource());
- getLink().getClients()
- .add(getNewSource());
- return CommandResult.newOKCommandResult(getLink());
- }
-
- /**
- * @generated
- */
- protected CommandResult reorientTarget() throws ExecutionException {
- getLink().getSuppliers()
- .remove(getOldTarget());
- getLink().getSuppliers()
- .add(getNewTarget());
- return CommandResult.newOKCommandResult(getLink());
- }
-
- /**
- * @generated
- */
- protected Deployment getLink() {
- return (Deployment) getElementToEdit();
- }
-
- /**
- * @generated
- */
- protected NamedElement getOldSource() {
- return (NamedElement) oldEnd;
- }
-
- /**
- * @generated
- */
- protected NamedElement getNewSource() {
- return (NamedElement) newEnd;
- }
-
- /**
- * @generated
- */
- protected NamedElement getOldTarget() {
- return (NamedElement) oldEnd;
- }
-
- /**
- * @generated
- */
- protected NamedElement getNewTarget() {
- return (NamedElement) newEnd;
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DeviceCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DeviceCreateCommand.java
deleted file mode 100644
index bcc579a44b3..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DeviceCreateCommand.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Device;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class DeviceCreateCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public DeviceCreateCommand(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getDevice());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- Device newElement = UMLFactory.eINSTANCE.createDevice();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Package qualifiedTarget = (Package) target;
- qualifiedTarget.getPackagedElements()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_Device_2003(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Device newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DeviceCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DeviceCreateCommandCN.java
deleted file mode 100644
index dbe712dcfa6..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/DeviceCreateCommandCN.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Device;
-import org.eclipse.uml2.uml.Node;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class DeviceCreateCommandCN extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public DeviceCreateCommandCN(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getDevice());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- Device newElement = UMLFactory.eINSTANCE.createDevice();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Node qualifiedTarget = (Node) target;
- qualifiedTarget.getNestedNodes()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_Device_16(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Device newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ExecutionEnvironmentCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ExecutionEnvironmentCreateCommand.java
deleted file mode 100644
index 5280e6d1e5b..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ExecutionEnvironmentCreateCommand.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.ExecutionEnvironment;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class ExecutionEnvironmentCreateCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public ExecutionEnvironmentCreateCommand(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getExecutionEnvironment());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- ExecutionEnvironment newElement = UMLFactory.eINSTANCE.createExecutionEnvironment();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Package qualifiedTarget = (Package) target;
- qualifiedTarget.getPackagedElements()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_ExecutionEnvironment_2002(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(ExecutionEnvironment newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ExecutionEnvironmentCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ExecutionEnvironmentCreateCommandCN.java
deleted file mode 100644
index 03ba84dff58..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ExecutionEnvironmentCreateCommandCN.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.ExecutionEnvironment;
-import org.eclipse.uml2.uml.Node;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class ExecutionEnvironmentCreateCommandCN extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public ExecutionEnvironmentCreateCommandCN(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getExecutionEnvironment());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- ExecutionEnvironment newElement = UMLFactory.eINSTANCE.createExecutionEnvironment();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Node qualifiedTarget = (Node) target;
- qualifiedTarget.getNestedNodes()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_ExecutionEnvironment_21(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(ExecutionEnvironment newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/GeneralizationCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/GeneralizationCreateCommand.java
deleted file mode 100644
index 6ecafe49515..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/GeneralizationCreateCommand.java
+++ /dev/null
@@ -1,170 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLBaseItemSemanticEditPolicy;
-import org.eclipse.uml2.uml.Classifier;
-import org.eclipse.uml2.uml.Generalization;
-import org.eclipse.uml2.uml.UMLFactory;
-
-/**
- * @generated
- */
-public class GeneralizationCreateCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- protected final EObject source;
-
- /**
- * @generated
- */
- protected final EObject target;
-
- /**
- * @generated
- */
- protected Classifier container;
-
- /**
- * @generated
- */
- public GeneralizationCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
- super(request.getLabel(), null, request);
- this.source = source;
- this.target = target;
- container = deduceContainer(source, target);
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
- if (source == null && target == null) {
- return false;
- }
- if (source != null && false == source instanceof Classifier) {
- return false;
- }
- if (target != null && false == target instanceof Classifier) {
- return false;
- }
- if (getSource() == null) {
- return true; // link creation is in progress; source is not defined yet
- }
- // target may be null here but it's possible to check constraint
- if (getContainer() == null) {
- return false;
- }
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateGeneralization_4003(getContainer(), getSource(), getTarget());
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- if (!canExecute()) {
- throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
- }
-
- Generalization newElement = UMLFactory.eINSTANCE.createGeneralization();
- getContainer().getGeneralizations()
- .add(newElement);
- newElement.setSpecific(
- getSource()
- );
- newElement.setGeneral(
- getTarget()
- );
- doConfigure(newElement, monitor, info);
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
-
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Generalization newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource());
- configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setElementToEdit(EObject element) {
- throw new UnsupportedOperationException();
- }
-
- /**
- * @generated
- */
- protected Classifier getSource() {
- return (Classifier) source;
- }
-
- /**
- * @generated
- */
- protected Classifier getTarget() {
- return (Classifier) target;
- }
-
- /**
- * @generated
- */
- public Classifier getContainer() {
- return container;
- }
-
- /**
- * Default approach is to traverse ancestors of the source to find instance of container.
- * Modify with appropriate logic.
- *
- * @generated
- */
- protected Classifier deduceContainer(EObject source, EObject target) {
- // Find container element for the new link.
- // Climb up by containment hierarchy starting from the source
- // and return the first element that is instance of the container class.
- for (EObject element = source; element != null; element = element.eContainer()) {
- if (element instanceof Classifier) {
- return (Classifier) element;
- }
- }
- return null;
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/GeneralizationReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/GeneralizationReorientCommand.java
deleted file mode 100644
index 94060861f70..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/GeneralizationReorientCommand.java
+++ /dev/null
@@ -1,174 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRequest;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLBaseItemSemanticEditPolicy;
-import org.eclipse.uml2.uml.Classifier;
-import org.eclipse.uml2.uml.Generalization;
-
-/**
- * @generated
- */
-public class GeneralizationReorientCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- private final int reorientDirection;
-
- /**
- * @generated
- */
- private final EObject oldEnd;
-
- /**
- * @generated
- */
- private final EObject newEnd;
-
- /**
- * @generated
- */
- public GeneralizationReorientCommand(ReorientRelationshipRequest request) {
- super(request.getLabel(), request.getRelationship(), request);
- reorientDirection = request.getDirection();
- oldEnd = request.getOldRelationshipEnd();
- newEnd = request.getNewRelationshipEnd();
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
- if (false == getElementToEdit() instanceof Generalization) {
- return false;
- }
- if (reorientDirection == ReorientRequest.REORIENT_SOURCE) {
- return canReorientSource();
- }
- if (reorientDirection == ReorientRequest.REORIENT_TARGET) {
- return canReorientTarget();
- }
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean canReorientSource() {
- if (!(oldEnd instanceof Classifier && newEnd instanceof Classifier)) {
- return false;
- }
- Classifier target = getLink().getGeneral();
- if (!(getLink().eContainer() instanceof Classifier)) {
- return false;
- }
- Classifier container = (Classifier) getLink().eContainer();
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistGeneralization_4003(container, getLink(), getNewSource(), target);
- }
-
- /**
- * @generated
- */
- protected boolean canReorientTarget() {
- if (!(oldEnd instanceof Classifier && newEnd instanceof Classifier)) {
- return false;
- }
- Classifier source = getLink().getSpecific();
- if (!(getLink().eContainer() instanceof Classifier)) {
- return false;
- }
- Classifier container = (Classifier) getLink().eContainer();
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistGeneralization_4003(container, getLink(), source, getNewTarget());
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- if (!canExecute()) {
- throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
- }
- if (reorientDirection == ReorientRequest.REORIENT_SOURCE) {
- return reorientSource();
- }
- if (reorientDirection == ReorientRequest.REORIENT_TARGET) {
- return reorientTarget();
- }
- throw new IllegalStateException();
- }
-
- /**
- * @generated
- */
- protected CommandResult reorientSource() throws ExecutionException {
- getLink().setSpecific(
- getNewSource()
- );
- return CommandResult.newOKCommandResult(getLink());
- }
-
- /**
- * @generated
- */
- protected CommandResult reorientTarget() throws ExecutionException {
- getLink().setGeneral(
- getNewTarget()
- );
- return CommandResult.newOKCommandResult(getLink());
- }
-
- /**
- * @generated
- */
- protected Generalization getLink() {
- return (Generalization) getElementToEdit();
- }
-
- /**
- * @generated
- */
- protected Classifier getOldSource() {
- return (Classifier) oldEnd;
- }
-
- /**
- * @generated
- */
- protected Classifier getNewSource() {
- return (Classifier) newEnd;
- }
-
- /**
- * @generated
- */
- protected Classifier getOldTarget() {
- return (Classifier) oldEnd;
- }
-
- /**
- * @generated
- */
- protected Classifier getNewTarget() {
- return (Classifier) newEnd;
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ManifestationCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ManifestationCreateCommand.java
deleted file mode 100644
index b0ea85be7c9..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ManifestationCreateCommand.java
+++ /dev/null
@@ -1,171 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLBaseItemSemanticEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Artifact;
-import org.eclipse.uml2.uml.Manifestation;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.UMLFactory;
-
-/**
- * @generated
- */
-public class ManifestationCreateCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- protected final EObject source;
-
- /**
- * @generated
- */
- protected final EObject target;
-
- /**
- * @generated
- */
- protected Artifact container;
-
- /**
- * @generated
- */
- public ManifestationCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
- super(request.getLabel(), null, request);
- this.source = source;
- this.target = target;
- container = deduceContainer(source, target);
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
- if (source == null && target == null) {
- return false;
- }
- if (source != null && false == source instanceof NamedElement) {
- return false;
- }
- if (target != null && false == target instanceof NamedElement) {
- return false;
- }
- if (getSource() == null) {
- return true; // link creation is in progress; source is not defined yet
- }
- // target may be null here but it's possible to check constraint
- if (getContainer() == null) {
- return false;
- }
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canCreateManifestation_4002(getContainer(), getSource(), getTarget());
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- if (!canExecute()) {
- throw new ExecutionException("Invalid arguments in create link command"); //$NON-NLS-1$
- }
-
- Manifestation newElement = UMLFactory.eINSTANCE.createManifestation();
- getContainer().getManifestations()
- .add(newElement);
- newElement.getClients()
- .add(getSource());
- newElement.getSuppliers()
- .add(getTarget());
- ElementInitializers.getInstance().init_Manifestation_4002(newElement);
- doConfigure(newElement, monitor, info);
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
-
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Manifestation newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource());
- configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setElementToEdit(EObject element) {
- throw new UnsupportedOperationException();
- }
-
- /**
- * @generated
- */
- protected NamedElement getSource() {
- return (NamedElement) source;
- }
-
- /**
- * @generated
- */
- protected NamedElement getTarget() {
- return (NamedElement) target;
- }
-
- /**
- * @generated
- */
- public Artifact getContainer() {
- return container;
- }
-
- /**
- * Default approach is to traverse ancestors of the source to find instance of container.
- * Modify with appropriate logic.
- *
- * @generated
- */
- protected Artifact deduceContainer(EObject source, EObject target) {
- // Find container element for the new link.
- // Climb up by containment hierarchy starting from the source
- // and return the first element that is instance of the container class.
- for (EObject element = source; element != null; element = element.eContainer()) {
- if (element instanceof Artifact) {
- return (Artifact) element;
- }
- }
- return null;
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ManifestationReorientCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ManifestationReorientCommand.java
deleted file mode 100644
index 647b5bc4be4..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ManifestationReorientCommand.java
+++ /dev/null
@@ -1,187 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRequest;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLBaseItemSemanticEditPolicy;
-import org.eclipse.uml2.uml.Artifact;
-import org.eclipse.uml2.uml.Manifestation;
-import org.eclipse.uml2.uml.NamedElement;
-
-/**
- * @generated
- */
-public class ManifestationReorientCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- private final int reorientDirection;
-
- /**
- * @generated
- */
- private final EObject oldEnd;
-
- /**
- * @generated
- */
- private final EObject newEnd;
-
- /**
- * @generated
- */
- public ManifestationReorientCommand(ReorientRelationshipRequest request) {
- super(request.getLabel(), request.getRelationship(), request);
- reorientDirection = request.getDirection();
- oldEnd = request.getOldRelationshipEnd();
- newEnd = request.getNewRelationshipEnd();
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
- if (false == getElementToEdit() instanceof Manifestation) {
- return false;
- }
- if (reorientDirection == ReorientRequest.REORIENT_SOURCE) {
- return canReorientSource();
- }
- if (reorientDirection == ReorientRequest.REORIENT_TARGET) {
- return canReorientTarget();
- }
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean canReorientSource() {
- if (!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
- return false;
- }
- if (getLink().getSuppliers()
- .size() != 1) {
- return false;
- }
- NamedElement target = getLink().getSuppliers()
- .get(0);
- if (!(getLink().eContainer() instanceof Artifact)) {
- return false;
- }
- Artifact container = (Artifact) getLink().eContainer();
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistManifestation_4002(container, getLink(), getNewSource(), target);
- }
-
- /**
- * @generated
- */
- protected boolean canReorientTarget() {
- if (!(oldEnd instanceof NamedElement && newEnd instanceof NamedElement)) {
- return false;
- }
- if (getLink().getClients()
- .size() != 1) {
- return false;
- }
- NamedElement source = getLink().getClients()
- .get(0);
- if (!(getLink().eContainer() instanceof Artifact)) {
- return false;
- }
- Artifact container = (Artifact) getLink().eContainer();
- return UMLBaseItemSemanticEditPolicy.getLinkConstraints().canExistManifestation_4002(container, getLink(), source, getNewTarget());
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- if (!canExecute()) {
- throw new ExecutionException("Invalid arguments in reorient link command"); //$NON-NLS-1$
- }
- if (reorientDirection == ReorientRequest.REORIENT_SOURCE) {
- return reorientSource();
- }
- if (reorientDirection == ReorientRequest.REORIENT_TARGET) {
- return reorientTarget();
- }
- throw new IllegalStateException();
- }
-
- /**
- * @generated
- */
- protected CommandResult reorientSource() throws ExecutionException {
- getLink().getClients()
- .remove(getOldSource());
- getLink().getClients()
- .add(getNewSource());
- return CommandResult.newOKCommandResult(getLink());
- }
-
- /**
- * @generated
- */
- protected CommandResult reorientTarget() throws ExecutionException {
- getLink().getSuppliers()
- .remove(getOldTarget());
- getLink().getSuppliers()
- .add(getNewTarget());
- return CommandResult.newOKCommandResult(getLink());
- }
-
- /**
- * @generated
- */
- protected Manifestation getLink() {
- return (Manifestation) getElementToEdit();
- }
-
- /**
- * @generated
- */
- protected NamedElement getOldSource() {
- return (NamedElement) oldEnd;
- }
-
- /**
- * @generated
- */
- protected NamedElement getNewSource() {
- return (NamedElement) newEnd;
- }
-
- /**
- * @generated
- */
- protected NamedElement getOldTarget() {
- return (NamedElement) oldEnd;
- }
-
- /**
- * @generated
- */
- protected NamedElement getNewTarget() {
- return (NamedElement) newEnd;
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ModelCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ModelCreateCommand.java
deleted file mode 100644
index 49d6b910ebc..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ModelCreateCommand.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Model;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class ModelCreateCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public ModelCreateCommand(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getModel());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- Model newElement = UMLFactory.eINSTANCE.createModel();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Package qualifiedTarget = (Package) target;
- qualifiedTarget.getPackagedElements()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_Model_2010(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Model newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ModelCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ModelCreateCommandCN.java
deleted file mode 100644
index 1d21882522c..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/ModelCreateCommandCN.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Model;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class ModelCreateCommandCN extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public ModelCreateCommandCN(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getModel());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- Model newElement = UMLFactory.eINSTANCE.createModel();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Package qualifiedTarget = (Package) target;
- qualifiedTarget.getPackagedElements()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_Model_49(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Model newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NestedArtifactNodeCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NestedArtifactNodeCreateCommandCN.java
deleted file mode 100644
index eccd8363066..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NestedArtifactNodeCreateCommandCN.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Artifact;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class NestedArtifactNodeCreateCommandCN extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public NestedArtifactNodeCreateCommandCN(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getArtifact());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- Artifact newElement = UMLFactory.eINSTANCE.createArtifact();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Package qualifiedTarget = (Package) target;
- qualifiedTarget.getPackagedElements()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_Artifact_40(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Artifact newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NestedDeviceCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NestedDeviceCreateCommandCN.java
deleted file mode 100644
index 892dec48f28..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NestedDeviceCreateCommandCN.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Device;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class NestedDeviceCreateCommandCN extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public NestedDeviceCreateCommandCN(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getDevice());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- Device newElement = UMLFactory.eINSTANCE.createDevice();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Package qualifiedTarget = (Package) target;
- qualifiedTarget.getPackagedElements()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_Device_44(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Device newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NestedExecutionEnvironmentCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NestedExecutionEnvironmentCreateCommandCN.java
deleted file mode 100644
index 054e9ba971c..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NestedExecutionEnvironmentCreateCommandCN.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.ExecutionEnvironment;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class NestedExecutionEnvironmentCreateCommandCN extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public NestedExecutionEnvironmentCreateCommandCN(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getExecutionEnvironment());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- ExecutionEnvironment newElement = UMLFactory.eINSTANCE.createExecutionEnvironment();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Package qualifiedTarget = (Package) target;
- qualifiedTarget.getPackagedElements()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_ExecutionEnvironment_46(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(ExecutionEnvironment newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NestedNodeCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NestedNodeCreateCommandCN.java
deleted file mode 100644
index 8d7eb1935c0..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NestedNodeCreateCommandCN.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Node;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class NestedNodeCreateCommandCN extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public NestedNodeCreateCommandCN(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getNode());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- Node newElement = UMLFactory.eINSTANCE.createNode();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Package qualifiedTarget = (Package) target;
- qualifiedTarget.getPackagedElements()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_Node_42(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Node newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NodeCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NodeCreateCommand.java
deleted file mode 100644
index eb9cc5ecef9..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NodeCreateCommand.java
+++ /dev/null
@@ -1,127 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Node;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class NodeCreateCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public NodeCreateCommand(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getNode());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- Node newElement = UMLFactory.eINSTANCE.createNode();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Package qualifiedTarget = (Package) target;
- qualifiedTarget.getPackagedElements()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_Node_2008(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Node newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NodeCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NodeCreateCommandCN.java
deleted file mode 100644
index dd4fb105669..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/NodeCreateCommandCN.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Node;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class NodeCreateCommandCN extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public NodeCreateCommandCN(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getNode());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- Node newElement = UMLFactory.eINSTANCE.createNode();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Node qualifiedTarget = (Node) target;
- qualifiedTarget.getNestedNodes()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_Node_23(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Node newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/PackageCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/PackageCreateCommand.java
deleted file mode 100644
index 9128a15766a..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/PackageCreateCommand.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class PackageCreateCommand extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public PackageCreateCommand(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getPackage());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- Package newElement = UMLFactory.eINSTANCE.createPackage();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Package qualifiedTarget = (Package) target;
- qualifiedTarget.getPackagedElements()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_Package_2009(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Package newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/PackageCreateCommandCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/PackageCreateCommandCN.java
deleted file mode 100644
index 5c0931f0f6f..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/commands/PackageCreateCommandCN.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.commands;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.EditElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.viewpoints.policy.ModelAddData;
-import org.eclipse.papyrus.infra.viewpoints.policy.PolicyChecker;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class PackageCreateCommandCN extends EditElementCommand {
-
- /**
- * @generated
- */
- private Diagram diagram = null;
-
- /**
- * @generated
- */
- public PackageCreateCommandCN(CreateElementRequest req, Diagram diagram) {
- super(req.getLabel(), null, req);
- this.diagram = diagram;
- }
-
- /**
- * FIXME: replace with setElementToEdit()
- *
- * @generated
- */
- @Override
- protected EObject getElementToEdit() {
- EObject container = ((CreateElementRequest) getRequest()).getContainer();
- if (container instanceof View) {
- container = ((View) container).getElement();
- }
- return container;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean canExecute() {
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target.eClass(), UMLPackage.eINSTANCE.getPackage());
- return data.isPermitted();
-
-
- }
-
- /**
- * @generated
- */
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-
- Package newElement = UMLFactory.eINSTANCE.createPackage();
-
- EObject target = getElementToEdit();
- ModelAddData data = PolicyChecker.getCurrent().getChildAddData(diagram, target, newElement);
- if (data.isPermitted()) {
- if (data.isPathDefined()) {
- if (!data.execute(target, newElement)) {
- return CommandResult.newErrorCommandResult("Failed to follow the policy-specified for the insertion of the new element");
- }
- } else {
-
- Package qualifiedTarget = (Package) target;
- qualifiedTarget.getPackagedElements()
- .add(newElement);
-
- }
- } else {
- return CommandResult.newErrorCommandResult("The active policy restricts the addition of this element");
- }
-
-
- ElementInitializers.getInstance().init_Package_36(newElement);
-
- doConfigure(newElement, monitor, info);
-
- ((CreateElementRequest) getRequest()).setNewElement(newElement);
- return CommandResult.newOKCommandResult(newElement);
- }
-
- /**
- * @generated
- */
- protected void doConfigure(Package newElement, IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
- ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
- configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
- configureRequest.addParameters(getRequest().getParameters());
- ICommand configureCommand = elementType.getEditCommand(configureRequest);
- if (configureCommand != null && configureCommand.canExecute()) {
- configureCommand.execute(monitor, info);
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ArtifactEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ArtifactEditHelper.java
deleted file mode 100644
index 0e4a34fc9c6..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ArtifactEditHelper.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.helpers;
-
-import org.eclipse.papyrus.uml.diagram.common.helper.UMLBaseEditHelper;
-
-/**
- * @generated
- */
-public class ArtifactEditHelper extends UMLBaseEditHelper {
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/CommentEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/CommentEditHelper.java
deleted file mode 100644
index b1e372f239c..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/CommentEditHelper.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.helpers;
-
-import org.eclipse.papyrus.uml.diagram.common.helper.UMLBaseEditHelper;
-
-/**
- * @generated
- */
-public class CommentEditHelper extends UMLBaseEditHelper {
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ConstraintEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ConstraintEditHelper.java
deleted file mode 100644
index 00389033726..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ConstraintEditHelper.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.helpers;
-
-import org.eclipse.papyrus.uml.diagram.common.helper.UMLBaseEditHelper;
-
-/**
- * @generated
- */
-public class ConstraintEditHelper extends UMLBaseEditHelper {
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/DefaultNamedElementEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/DefaultNamedElementEditHelper.java
deleted file mode 100644
index b643fc292ce..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/DefaultNamedElementEditHelper.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.helpers;
-
-import org.eclipse.papyrus.uml.diagram.common.helper.UMLBaseEditHelper;
-
-/**
- * @generated
- */
-public class DefaultNamedElementEditHelper extends UMLBaseEditHelper {
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/DependencyEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/DependencyEditHelper.java
deleted file mode 100644
index 94e4cf361b1..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/DependencyEditHelper.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.helpers;
-
-import org.eclipse.papyrus.uml.diagram.common.helper.UMLBaseEditHelper;
-
-/**
- * @generated
- */
-public class DependencyEditHelper extends UMLBaseEditHelper {
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/DeploymentEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/DeploymentEditHelper.java
deleted file mode 100644
index 51ac6d618a0..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/DeploymentEditHelper.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.helpers;
-
-import org.eclipse.papyrus.uml.diagram.common.helper.UMLBaseEditHelper;
-
-/**
- * @generated
- */
-public class DeploymentEditHelper extends UMLBaseEditHelper {
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/DeviceEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/DeviceEditHelper.java
deleted file mode 100644
index 7640307473d..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/DeviceEditHelper.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.helpers;
-
-import org.eclipse.papyrus.uml.diagram.common.helper.UMLBaseEditHelper;
-
-/**
- * @generated
- */
-public class DeviceEditHelper extends UMLBaseEditHelper {
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ExecutionEnvironmentEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ExecutionEnvironmentEditHelper.java
deleted file mode 100644
index 914be46e395..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ExecutionEnvironmentEditHelper.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.helpers;
-
-import org.eclipse.papyrus.uml.diagram.common.helper.UMLBaseEditHelper;
-
-/**
- * @generated
- */
-public class ExecutionEnvironmentEditHelper extends UMLBaseEditHelper {
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/GeneralizationEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/GeneralizationEditHelper.java
deleted file mode 100644
index 5e629d13792..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/GeneralizationEditHelper.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.helpers;
-
-import org.eclipse.papyrus.uml.diagram.common.helper.UMLBaseEditHelper;
-
-/**
- * @generated
- */
-public class GeneralizationEditHelper extends UMLBaseEditHelper {
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ManifestationEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ManifestationEditHelper.java
deleted file mode 100644
index 4da22dd5b83..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ManifestationEditHelper.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.helpers;
-
-import org.eclipse.papyrus.uml.diagram.common.helper.UMLBaseEditHelper;
-
-/**
- * @generated
- */
-public class ManifestationEditHelper extends UMLBaseEditHelper {
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ModelEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ModelEditHelper.java
deleted file mode 100644
index 7e187f06885..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/ModelEditHelper.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.helpers;
-
-import org.eclipse.papyrus.uml.diagram.common.helper.UMLBaseEditHelper;
-
-/**
- * @generated
- */
-public class ModelEditHelper extends UMLBaseEditHelper {
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/NodeEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/NodeEditHelper.java
deleted file mode 100644
index 5c0cc60677a..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/NodeEditHelper.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.helpers;
-
-import org.eclipse.papyrus.uml.diagram.common.helper.UMLBaseEditHelper;
-
-/**
- * @generated
- */
-public class NodeEditHelper extends UMLBaseEditHelper {
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/UMLBaseEditHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/UMLBaseEditHelper.java
index b535d15c686..22763a0b329 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/UMLBaseEditHelper.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/helpers/UMLBaseEditHelper.java
@@ -1,20 +1,20 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.helpers;
-
-import org.eclipse.gmf.tooling.runtime.edit.helpers.GeneratedEditHelperBase;
-
-/**
- * @generated
- */
-public class UMLBaseEditHelper extends GeneratedEditHelperBase {
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.helpers;
+
+import org.eclipse.gmf.tooling.runtime.edit.helpers.GeneratedEditHelperBase;
+
+/**
+ * @generated
+ */
+public class UMLBaseEditHelper extends GeneratedEditHelperBase {
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPart.java
index b7c9bc161ba..5598d1b834e 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPart.java
@@ -27,11 +27,11 @@ import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.BorderDisplayEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.PapyrusCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ArtifactCompositeCompartmentItemSemanticEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.part.Messages;
/**
@@ -66,12 +66,12 @@ public class ArtifactCompositeCompartmentEditPart extends ShapeCompartmentEditPa
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ArtifactCompositeCompartmentItemSemanticEditPolicy());
- installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PapyrusCreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- // in Papyrus diagrams are not strongly synchronised
- // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ArtifactCompositeCompartmentCanonicalEditPolicy());
+ //in Papyrus diagrams are not strongly synchronised
+ //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ArtifactCompositeCompartmentCanonicalEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartACN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartACN.java
index ee70c6b5ec6..ad2de1f67e8 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartACN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartACN.java
@@ -27,11 +27,11 @@ import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.BorderDisplayEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.PapyrusCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ArtifactCompositeCompartmentItemSemanticEditPolicyACN;
import org.eclipse.papyrus.uml.diagram.deployment.part.Messages;
/**
@@ -66,12 +66,12 @@ public class ArtifactCompositeCompartmentEditPartACN extends ShapeCompartmentEdi
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ArtifactCompositeCompartmentItemSemanticEditPolicyACN());
- installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PapyrusCreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- // in Papyrus diagrams are not strongly synchronised
- // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ArtifactCompositeCompartmentCanonicalEditPolicyACN());
+ //in Papyrus diagrams are not strongly synchronised
+ //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ArtifactCompositeCompartmentCanonicalEditPolicyACN());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartCN.java
index 0b2123bb868..4789ae8ca77 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactCompositeCompartmentEditPartCN.java
@@ -27,11 +27,11 @@ import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.BorderDisplayEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.PapyrusCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ArtifactCompositeCompartmentItemSemanticEditPolicyCN;
import org.eclipse.papyrus.uml.diagram.deployment.part.Messages;
/**
@@ -66,12 +66,12 @@ public class ArtifactCompositeCompartmentEditPartCN extends ShapeCompartmentEdit
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ArtifactCompositeCompartmentItemSemanticEditPolicyCN());
- installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PapyrusCreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- // in Papyrus diagrams are not strongly synchronised
- // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ArtifactCompositeCompartmentCanonicalEditPolicyCN());
+ //in Papyrus diagrams are not strongly synchronised
+ //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ArtifactCompositeCompartmentCanonicalEditPolicyCN());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPart.java
index 0de48f91b3e..f54a6a8dbbb 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPart.java
@@ -1,362 +1,364 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.GraphicalEditPart;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.handles.MoveHandle;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.BorderItemSelectionEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.BasicCompartment;
-import org.eclipse.gmf.runtime.notation.Edge;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.GetChildLayoutEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editparts.RoundedCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.locator.RoundedRectangleLabelPositionLocator;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ArtifactItemSemanticEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class ArtifactEditPart extends RoundedCompartmentEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 2006;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public ArtifactEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ArtifactItemSemanticEditPolicy());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
- installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
- installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, new GetChildLayoutEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- View childView = (View) child.getModel();
- switch (UMLVisualIDRegistry.getVisualID(childView)) {
- case ArtifactFloatingLabelEditPart.VISUAL_ID:
- return new BorderItemSelectionEditPolicy() {
-
- @Override
- protected List<?> createSelectionHandles() {
- MoveHandle mh = new MoveHandle((GraphicalEditPart) getHost());
- mh.setBorder(null);
- return Collections.singletonList(mh);
- }
- }
- ;
- }
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * Papyrus codeGen
- *
- * @generated
- **/
- @Override
- protected void handleNotificationEvent(Notification event) {
- /*
- * when a node have external node labels, the methods refreshChildren() remove the EditPart corresponding to the Label from the EditPart
- * Registry. After that, we can't reset the visibility to true (using the Show/Hide Label Action)!
- */
- if (NotationPackage.eINSTANCE.getView_Visible().equals(event.getFeature())) {
- Object notifier = event.getNotifier();
- List<?> modelChildren = ((View) getModel()).getChildren();
- if (false == notifier instanceof Edge
- && false == notifier instanceof BasicCompartment) {
- if (modelChildren.contains(event.getNotifier())) {
- return;
- }
- }
- }
- super.handleNotificationEvent(event);
-
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new ArtifactFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure
- *
- * @generated
- */
- @Override
- public ArtifactFigure getPrimaryShape() {
- return (ArtifactFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ArtifactNameEditPart) {
- ((ArtifactNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
-
-
- if (childEditPart instanceof ArtifactCompositeCompartmentEditPart) {
- IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
- pane.add(((ArtifactCompositeCompartmentEditPart) childEditPart).getFigure());
- return true;
- }
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ArtifactNameEditPart) {
- return true;
- }
- if (childEditPart instanceof ArtifactCompositeCompartmentEditPart) {
- IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- pane.remove(((ArtifactCompositeCompartmentEditPart) childEditPart).getFigure());
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- if (editPart instanceof ArtifactCompositeCompartmentEditPart) {
- return getPrimaryShape().getCompositeCompartmentFigure();
- }
- if (editPart instanceof IBorderItemEditPart) {
- return getBorderedFigure().getBorderItemContainer();
- }
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
- if (borderItemEditPart instanceof ArtifactFloatingLabelEditPart) {
- IBorderItemLocator locator = new RoundedRectangleLabelPositionLocator(getMainFigure());
- borderItemContainer.add(borderItemEditPart.getFigure(), locator);
- } else
- {
- super.addBorderItem(borderItemContainer, borderItemEditPart);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 70);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createMainFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(ArtifactNameEditPart.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.handles.MoveHandle;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.BorderItemSelectionEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.BasicCompartment;
+import org.eclipse.gmf.runtime.notation.Edge;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.GetChildLayoutEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editparts.RoundedCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.locator.RoundedRectangleLabelPositionLocator;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ArtifactEditPart extends RoundedCompartmentEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2006;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ArtifactEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new GetChildLayoutEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View) child.getModel();
+ switch (UMLVisualIDRegistry.getVisualID(childView)) {
+ case ArtifactFloatingLabelEditPart.VISUAL_ID:
+ return new BorderItemSelectionEditPolicy() {
+
+ @Override
+ protected List<?> createSelectionHandles() {
+ MoveHandle mh = new MoveHandle((GraphicalEditPart) getHost());
+ mh.setBorder(null);
+ return Collections.singletonList(mh);
+ }
+ };
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ /*
+ * when a node have external node labels, the methods refreshChildren() remove the EditPart corresponding to the Label from the EditPart
+ * Registry. After that, we can't reset the visibility to true (using the Show/Hide Label Action)!
+ */
+ if (NotationPackage.eINSTANCE.getView_Visible().equals(event.getFeature())) {
+ Object notifier = event.getNotifier();
+ List<?> modelChildren = ((View) getModel()).getChildren();
+ if (false == notifier instanceof Edge
+ && false == notifier instanceof BasicCompartment) {
+ if (modelChildren.contains(event.getNotifier())) {
+ return;
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new ArtifactFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure
+ *
+ * @generated
+ */
+ @Override
+ public ArtifactFigure getPrimaryShape() {
+ return (ArtifactFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ArtifactNameEditPart) {
+ ((ArtifactNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+
+ if (childEditPart instanceof ArtifactCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((ArtifactCompositeCompartmentEditPart) childEditPart).getFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ArtifactNameEditPart) {
+ return true;
+ }
+ if (childEditPart instanceof ArtifactCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ pane.remove(((ArtifactCompositeCompartmentEditPart) childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if (editPart instanceof ArtifactCompositeCompartmentEditPart) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if (editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
+ if (borderItemEditPart instanceof ArtifactFloatingLabelEditPart) {
+ IBorderItemLocator locator = new RoundedRectangleLabelPositionLocator(getMainFigure());
+ borderItemContainer.add(borderItemEditPart.getFigure(), locator);
+ } else {
+ super.addBorderItem(borderItemContainer, borderItemEditPart);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 70);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createMainFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ArtifactNameEditPart.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartACN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartACN.java
index f996a4f013f..e11b82facff 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartACN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartACN.java
@@ -1,362 +1,364 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.GraphicalEditPart;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.handles.MoveHandle;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.BorderItemSelectionEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.BasicCompartment;
-import org.eclipse.gmf.runtime.notation.Edge;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.GetChildLayoutEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editparts.RoundedCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.locator.RoundedRectangleLabelPositionLocator;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ArtifactItemSemanticEditPolicyACN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class ArtifactEditPartACN extends RoundedCompartmentEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 28;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public ArtifactEditPartACN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ArtifactItemSemanticEditPolicyACN());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
- installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
- installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, new GetChildLayoutEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- View childView = (View) child.getModel();
- switch (UMLVisualIDRegistry.getVisualID(childView)) {
- case ArtifactFloatingLabelEditPartACN.VISUAL_ID:
- return new BorderItemSelectionEditPolicy() {
-
- @Override
- protected List<?> createSelectionHandles() {
- MoveHandle mh = new MoveHandle((GraphicalEditPart) getHost());
- mh.setBorder(null);
- return Collections.singletonList(mh);
- }
- }
- ;
- }
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * Papyrus codeGen
- *
- * @generated
- **/
- @Override
- protected void handleNotificationEvent(Notification event) {
- /*
- * when a node have external node labels, the methods refreshChildren() remove the EditPart corresponding to the Label from the EditPart
- * Registry. After that, we can't reset the visibility to true (using the Show/Hide Label Action)!
- */
- if (NotationPackage.eINSTANCE.getView_Visible().equals(event.getFeature())) {
- Object notifier = event.getNotifier();
- List<?> modelChildren = ((View) getModel()).getChildren();
- if (false == notifier instanceof Edge
- && false == notifier instanceof BasicCompartment) {
- if (modelChildren.contains(event.getNotifier())) {
- return;
- }
- }
- }
- super.handleNotificationEvent(event);
-
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new ArtifactFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure
- *
- * @generated
- */
- @Override
- public ArtifactFigure getPrimaryShape() {
- return (ArtifactFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ArtifactNameEditPartACN) {
- ((ArtifactNameEditPartACN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
-
-
- if (childEditPart instanceof ArtifactCompositeCompartmentEditPartACN) {
- IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
- pane.add(((ArtifactCompositeCompartmentEditPartACN) childEditPart).getFigure());
- return true;
- }
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ArtifactNameEditPartACN) {
- return true;
- }
- if (childEditPart instanceof ArtifactCompositeCompartmentEditPartACN) {
- IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- pane.remove(((ArtifactCompositeCompartmentEditPartACN) childEditPart).getFigure());
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- if (editPart instanceof ArtifactCompositeCompartmentEditPartACN) {
- return getPrimaryShape().getCompositeCompartmentFigure();
- }
- if (editPart instanceof IBorderItemEditPart) {
- return getBorderedFigure().getBorderItemContainer();
- }
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
- if (borderItemEditPart instanceof ArtifactFloatingLabelEditPartACN) {
- IBorderItemLocator locator = new RoundedRectangleLabelPositionLocator(getMainFigure());
- borderItemContainer.add(borderItemEditPart.getFigure(), locator);
- } else
- {
- super.addBorderItem(borderItemContainer, borderItemEditPart);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 70);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createMainFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(ArtifactNameEditPartACN.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.handles.MoveHandle;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.BorderItemSelectionEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.BasicCompartment;
+import org.eclipse.gmf.runtime.notation.Edge;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.GetChildLayoutEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editparts.RoundedCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.locator.RoundedRectangleLabelPositionLocator;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ArtifactEditPartACN extends RoundedCompartmentEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 28;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ArtifactEditPartACN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new GetChildLayoutEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View) child.getModel();
+ switch (UMLVisualIDRegistry.getVisualID(childView)) {
+ case ArtifactFloatingLabelEditPartACN.VISUAL_ID:
+ return new BorderItemSelectionEditPolicy() {
+
+ @Override
+ protected List<?> createSelectionHandles() {
+ MoveHandle mh = new MoveHandle((GraphicalEditPart) getHost());
+ mh.setBorder(null);
+ return Collections.singletonList(mh);
+ }
+ };
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ /*
+ * when a node have external node labels, the methods refreshChildren() remove the EditPart corresponding to the Label from the EditPart
+ * Registry. After that, we can't reset the visibility to true (using the Show/Hide Label Action)!
+ */
+ if (NotationPackage.eINSTANCE.getView_Visible().equals(event.getFeature())) {
+ Object notifier = event.getNotifier();
+ List<?> modelChildren = ((View) getModel()).getChildren();
+ if (false == notifier instanceof Edge
+ && false == notifier instanceof BasicCompartment) {
+ if (modelChildren.contains(event.getNotifier())) {
+ return;
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new ArtifactFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure
+ *
+ * @generated
+ */
+ @Override
+ public ArtifactFigure getPrimaryShape() {
+ return (ArtifactFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ArtifactNameEditPartACN) {
+ ((ArtifactNameEditPartACN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+
+ if (childEditPart instanceof ArtifactCompositeCompartmentEditPartACN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((ArtifactCompositeCompartmentEditPartACN) childEditPart).getFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ArtifactNameEditPartACN) {
+ return true;
+ }
+ if (childEditPart instanceof ArtifactCompositeCompartmentEditPartACN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ pane.remove(((ArtifactCompositeCompartmentEditPartACN) childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if (editPart instanceof ArtifactCompositeCompartmentEditPartACN) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if (editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
+ if (borderItemEditPart instanceof ArtifactFloatingLabelEditPartACN) {
+ IBorderItemLocator locator = new RoundedRectangleLabelPositionLocator(getMainFigure());
+ borderItemContainer.add(borderItemEditPart.getFigure(), locator);
+ } else {
+ super.addBorderItem(borderItemContainer, borderItemEditPart);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 70);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createMainFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ArtifactNameEditPartACN.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartCN.java
index d4dd45c0c74..591e3aef9b8 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactEditPartCN.java
@@ -1,362 +1,364 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.GraphicalEditPart;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.handles.MoveHandle;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.BorderItemSelectionEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.BasicCompartment;
-import org.eclipse.gmf.runtime.notation.Edge;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.GetChildLayoutEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editparts.RoundedCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.locator.RoundedRectangleLabelPositionLocator;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ArtifactItemSemanticEditPolicyCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class ArtifactEditPartCN extends RoundedCompartmentEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 25;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public ArtifactEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ArtifactItemSemanticEditPolicyCN());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
- installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
- installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, new GetChildLayoutEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- View childView = (View) child.getModel();
- switch (UMLVisualIDRegistry.getVisualID(childView)) {
- case ArtifactFloatingLabelEditPartCN.VISUAL_ID:
- return new BorderItemSelectionEditPolicy() {
-
- @Override
- protected List<?> createSelectionHandles() {
- MoveHandle mh = new MoveHandle((GraphicalEditPart) getHost());
- mh.setBorder(null);
- return Collections.singletonList(mh);
- }
- }
- ;
- }
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * Papyrus codeGen
- *
- * @generated
- **/
- @Override
- protected void handleNotificationEvent(Notification event) {
- /*
- * when a node have external node labels, the methods refreshChildren() remove the EditPart corresponding to the Label from the EditPart
- * Registry. After that, we can't reset the visibility to true (using the Show/Hide Label Action)!
- */
- if (NotationPackage.eINSTANCE.getView_Visible().equals(event.getFeature())) {
- Object notifier = event.getNotifier();
- List<?> modelChildren = ((View) getModel()).getChildren();
- if (false == notifier instanceof Edge
- && false == notifier instanceof BasicCompartment) {
- if (modelChildren.contains(event.getNotifier())) {
- return;
- }
- }
- }
- super.handleNotificationEvent(event);
-
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new ArtifactFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure
- *
- * @generated
- */
- @Override
- public ArtifactFigure getPrimaryShape() {
- return (ArtifactFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ArtifactNameEditPartCN) {
- ((ArtifactNameEditPartCN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
-
-
- if (childEditPart instanceof ArtifactCompositeCompartmentEditPartCN) {
- IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
- pane.add(((ArtifactCompositeCompartmentEditPartCN) childEditPart).getFigure());
- return true;
- }
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ArtifactNameEditPartCN) {
- return true;
- }
- if (childEditPart instanceof ArtifactCompositeCompartmentEditPartCN) {
- IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- pane.remove(((ArtifactCompositeCompartmentEditPartCN) childEditPart).getFigure());
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- if (editPart instanceof ArtifactCompositeCompartmentEditPartCN) {
- return getPrimaryShape().getCompositeCompartmentFigure();
- }
- if (editPart instanceof IBorderItemEditPart) {
- return getBorderedFigure().getBorderItemContainer();
- }
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
- if (borderItemEditPart instanceof ArtifactFloatingLabelEditPartCN) {
- IBorderItemLocator locator = new RoundedRectangleLabelPositionLocator(getMainFigure());
- borderItemContainer.add(borderItemEditPart.getFigure(), locator);
- } else
- {
- super.addBorderItem(borderItemContainer, borderItemEditPart);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 70);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createMainFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(ArtifactNameEditPartCN.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.handles.MoveHandle;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.BorderItemSelectionEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.BasicCompartment;
+import org.eclipse.gmf.runtime.notation.Edge;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.GetChildLayoutEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editparts.RoundedCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.locator.RoundedRectangleLabelPositionLocator;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ArtifactEditPartCN extends RoundedCompartmentEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 25;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ArtifactEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, new GetChildLayoutEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View) child.getModel();
+ switch (UMLVisualIDRegistry.getVisualID(childView)) {
+ case ArtifactFloatingLabelEditPartCN.VISUAL_ID:
+ return new BorderItemSelectionEditPolicy() {
+
+ @Override
+ protected List<?> createSelectionHandles() {
+ MoveHandle mh = new MoveHandle((GraphicalEditPart) getHost());
+ mh.setBorder(null);
+ return Collections.singletonList(mh);
+ }
+ };
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ /*
+ * when a node have external node labels, the methods refreshChildren() remove the EditPart corresponding to the Label from the EditPart
+ * Registry. After that, we can't reset the visibility to true (using the Show/Hide Label Action)!
+ */
+ if (NotationPackage.eINSTANCE.getView_Visible().equals(event.getFeature())) {
+ Object notifier = event.getNotifier();
+ List<?> modelChildren = ((View) getModel()).getChildren();
+ if (false == notifier instanceof Edge
+ && false == notifier instanceof BasicCompartment) {
+ if (modelChildren.contains(event.getNotifier())) {
+ return;
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new ArtifactFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure
+ *
+ * @generated
+ */
+ @Override
+ public ArtifactFigure getPrimaryShape() {
+ return (ArtifactFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ArtifactNameEditPartCN) {
+ ((ArtifactNameEditPartCN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+
+ if (childEditPart instanceof ArtifactCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((ArtifactCompositeCompartmentEditPartCN) childEditPart).getFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ArtifactNameEditPartCN) {
+ return true;
+ }
+ if (childEditPart instanceof ArtifactCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ pane.remove(((ArtifactCompositeCompartmentEditPartCN) childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if (editPart instanceof ArtifactCompositeCompartmentEditPartCN) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ if (editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
+ if (borderItemEditPart instanceof ArtifactFloatingLabelEditPartCN) {
+ IBorderItemLocator locator = new RoundedRectangleLabelPositionLocator(getMainFigure());
+ borderItemContainer.add(borderItemEditPart.getFigure(), locator);
+ } else {
+ super.addBorderItem(borderItemContainer, borderItemEditPart);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 70);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createMainFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ArtifactNameEditPartCN.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPart.java
index a9a2d23a59b..a6c2c9f88c4 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPart.java
@@ -1,861 +1,845 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.draw2d.geometry.Rectangle;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.ExternalLabelPrimaryDragRoleEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.PapyrusWrappingLabel;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editparts.FloatingLabelEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class ArtifactFloatingLabelEditPart extends
- FloatingLabelEditPart
- implements ITextAwareEditPart, IBorderItemEditPart
-{
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 61;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
-
- /**
- * @generated
- */
- static {
- registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPart.VISUAL_ID), new Point(0, 0));
- }
-
- /**
- * @generated
- */
- public ArtifactFloatingLabelEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ExternalLabelPrimaryDragRoleEditPolicy());
- }
-
- /**
- * @generated
- */
- @Override
- public IBorderItemLocator getBorderItemLocator() {
- IFigure parentFigure = getFigure().getParent();
- if (parentFigure != null && parentFigure.getLayoutManager() != null) {
- Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
- return (IBorderItemLocator) constraint;
- }
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void refreshBounds() {
- int x = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
- int y = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
- int width = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
- int height = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
- getBorderItemLocator().setConstraint(new Rectangle(x, y, width, height));
- }
-
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Artifact_2006, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- IFigure label = createFigurePrim();
- defaultText = getLabelTextHelper(label);
- return label;
- }
-
- /**
- * @generated
- */
- protected IFigure createFigurePrim() {
- return new PapyrusWrappingLabel();
- }
-
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.ExternalLabelPrimaryDragRoleEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.PapyrusWrappingLabel;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editparts.FloatingLabelEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class ArtifactFloatingLabelEditPart extends
+ FloatingLabelEditPart
+ implements ITextAwareEditPart, IBorderItemEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 61;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPart.VISUAL_ID), new Point(0, 0));
+ }
+
+ /**
+ * @generated
+ */
+ public ArtifactFloatingLabelEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ExternalLabelPrimaryDragRoleEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IBorderItemLocator getBorderItemLocator() {
+ IFigure parentFigure = getFigure().getParent();
+ if (parentFigure != null && parentFigure.getLayoutManager() != null) {
+ Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
+ return (IBorderItemLocator) constraint;
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void refreshBounds() {
+ int x = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ int width = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ getBorderItemLocator().setConstraint(new Rectangle(x, y, width, height));
+ }
+
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Artifact_2006, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new PapyrusWrappingLabel();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartACN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartACN.java
index 0aa455a6478..9456abeaae9 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartACN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartACN.java
@@ -1,861 +1,845 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.draw2d.geometry.Rectangle;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.ExternalLabelPrimaryDragRoleEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.PapyrusWrappingLabel;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editparts.FloatingLabelEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class ArtifactFloatingLabelEditPartACN extends
- FloatingLabelEditPart
- implements ITextAwareEditPart, IBorderItemEditPart
-{
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 60;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
-
- /**
- * @generated
- */
- static {
- registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartACN.VISUAL_ID), new Point(0, 0));
- }
-
- /**
- * @generated
- */
- public ArtifactFloatingLabelEditPartACN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ExternalLabelPrimaryDragRoleEditPolicy());
- }
-
- /**
- * @generated
- */
- @Override
- public IBorderItemLocator getBorderItemLocator() {
- IFigure parentFigure = getFigure().getParent();
- if (parentFigure != null && parentFigure.getLayoutManager() != null) {
- Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
- return (IBorderItemLocator) constraint;
- }
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void refreshBounds() {
- int x = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
- int y = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
- int width = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
- int height = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
- getBorderItemLocator().setConstraint(new Rectangle(x, y, width, height));
- }
-
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Artifact_28, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartACN.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- IFigure label = createFigurePrim();
- defaultText = getLabelTextHelper(label);
- return label;
- }
-
- /**
- * @generated
- */
- protected IFigure createFigurePrim() {
- return new PapyrusWrappingLabel();
- }
-
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.ExternalLabelPrimaryDragRoleEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.PapyrusWrappingLabel;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editparts.FloatingLabelEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class ArtifactFloatingLabelEditPartACN extends
+ FloatingLabelEditPart
+ implements ITextAwareEditPart, IBorderItemEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 60;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartACN.VISUAL_ID), new Point(0, 0));
+ }
+
+ /**
+ * @generated
+ */
+ public ArtifactFloatingLabelEditPartACN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ExternalLabelPrimaryDragRoleEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IBorderItemLocator getBorderItemLocator() {
+ IFigure parentFigure = getFigure().getParent();
+ if (parentFigure != null && parentFigure.getLayoutManager() != null) {
+ Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
+ return (IBorderItemLocator) constraint;
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void refreshBounds() {
+ int x = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ int width = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ getBorderItemLocator().setConstraint(new Rectangle(x, y, width, height));
+ }
+
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Artifact_28, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartACN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new PapyrusWrappingLabel();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartCN.java
index b7c58782dc0..2c7b1cbf08c 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactFloatingLabelEditPartCN.java
@@ -1,861 +1,845 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.draw2d.geometry.Rectangle;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.ExternalLabelPrimaryDragRoleEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.PapyrusWrappingLabel;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editparts.FloatingLabelEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class ArtifactFloatingLabelEditPartCN extends
- FloatingLabelEditPart
- implements ITextAwareEditPart, IBorderItemEditPart
-{
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 59;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
-
- /**
- * @generated
- */
- static {
- registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartCN.VISUAL_ID), new Point(0, 0));
- }
-
- /**
- * @generated
- */
- public ArtifactFloatingLabelEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ExternalLabelPrimaryDragRoleEditPolicy());
- }
-
- /**
- * @generated
- */
- @Override
- public IBorderItemLocator getBorderItemLocator() {
- IFigure parentFigure = getFigure().getParent();
- if (parentFigure != null && parentFigure.getLayoutManager() != null) {
- Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
- return (IBorderItemLocator) constraint;
- }
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void refreshBounds() {
- int x = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
- int y = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
- int width = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
- int height = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
- getBorderItemLocator().setConstraint(new Rectangle(x, y, width, height));
- }
-
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Artifact_25, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartCN.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- IFigure label = createFigurePrim();
- defaultText = getLabelTextHelper(label);
- return label;
- }
-
- /**
- * @generated
- */
- protected IFigure createFigurePrim() {
- return new PapyrusWrappingLabel();
- }
-
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.ExternalLabelPrimaryDragRoleEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.PapyrusWrappingLabel;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editparts.FloatingLabelEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class ArtifactFloatingLabelEditPartCN extends
+ FloatingLabelEditPart
+ implements ITextAwareEditPart, IBorderItemEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 59;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartCN.VISUAL_ID), new Point(0, 0));
+ }
+
+ /**
+ * @generated
+ */
+ public ArtifactFloatingLabelEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ExternalLabelPrimaryDragRoleEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IBorderItemLocator getBorderItemLocator() {
+ IFigure parentFigure = getFigure().getParent();
+ if (parentFigure != null && parentFigure.getLayoutManager() != null) {
+ Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
+ return (IBorderItemLocator) constraint;
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void refreshBounds() {
+ int x = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ int width = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ getBorderItemLocator().setConstraint(new Rectangle(x, y, width, height));
+ }
+
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Artifact_25, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new PapyrusWrappingLabel();
+ }
+
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPart.java
index e5a087fa56a..17562f55438 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPart.java
@@ -1,871 +1,856 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class ArtifactNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 8;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public ArtifactNameEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Artifact_2006, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class ArtifactNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 8;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ArtifactNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Artifact_2006, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartACN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartACN.java
index 0f65de8b718..06b39990c69 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartACN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartACN.java
@@ -1,871 +1,856 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 29;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public ArtifactNameEditPartACN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Artifact_28, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPartACN.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class ArtifactNameEditPartACN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 29;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ArtifactNameEditPartACN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Artifact_28, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPartACN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartCN.java
index df9ae85dd29..2429590c8f7 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ArtifactNameEditPartCN.java
@@ -1,871 +1,856 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 27;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public ArtifactNameEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Artifact_25, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPartCN.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class ArtifactNameEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 27;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ArtifactNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Artifact_25, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentAnnotatedElementEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentAnnotatedElementEditPart.java
index 9283d5b7e53..dcbf6cd9ec4 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentAnnotatedElementEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentAnnotatedElementEditPart.java
@@ -1,68 +1,68 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.Connection;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.ConnectionEditPart;
-import org.eclipse.papyrus.uml.diagram.common.figure.edge.SimpleDashedEdgeFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.CommentAnnotatedElementItemSemanticEditPolicy;
-
-/**
- * @generated
- */
-public class CommentAnnotatedElementEditPart extends ConnectionEditPart implements ITreeBranchEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 4008;
-
- /**
- * @generated
- */
- public CommentAnnotatedElementEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CommentAnnotatedElementItemSemanticEditPolicy());
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected Connection createConnectionFigure() {
- return new SimpleDashedEdgeFigure();
- }
-
- /**
- * @generated
- */
- @Override
- public SimpleDashedEdgeFigure getPrimaryShape() {
- return (SimpleDashedEdgeFigure) getFigure();
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.ConnectionEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.figure.edge.SimpleDashedEdgeFigure;
+
+/**
+ * @generated
+ */
+public class CommentAnnotatedElementEditPart extends ConnectionEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4008;
+
+ /**
+ * @generated
+ */
+ public CommentAnnotatedElementEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected Connection createConnectionFigure() {
+ return new SimpleDashedEdgeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public SimpleDashedEdgeFigure getPrimaryShape() {
+ return (SimpleDashedEdgeFigure) getFigure();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPart.java
index 4667e7cc856..e4170c582f5 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPart.java
@@ -1,871 +1,856 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class CommentBodyEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 1;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public CommentBodyEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Comment_2001, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentBodyEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class CommentBodyEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 1;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public CommentBodyEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Comment_2001, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentBodyEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPartCN.java
index b26f973878a..9cf69625276 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentBodyEditPartCN.java
@@ -1,871 +1,856 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 55;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public CommentBodyEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Comment_54, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentBodyEditPartCN.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class CommentBodyEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 55;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public CommentBodyEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Comment_54, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentBodyEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPart.java
index a7cc3ecebeb..90b74c7ad7a 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPart.java
@@ -1,282 +1,286 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusReflowableShapeEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editparts.AbstractCommentEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.CommentItemSemanticEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class CommentEditPart extends AbstractCommentEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 2001;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public CommentEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CommentItemSemanticEditPolicy());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PapyrusReflowableShapeEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * Papyrus codeGen
- *
- * @generated
- **/
- @Override
- protected void handleNotificationEvent(Notification event) {
- super.handleNotificationEvent(event);
-
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new HTMLCornerBentFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure
- *
- * @generated
- */
- @Override
- public HTMLCornerBentFigure getPrimaryShape() {
- return (HTMLCornerBentFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof CommentBodyEditPart) {
- ((CommentBodyEditPart) childEditPart).setLabel(getPrimaryShape().getCornerBentFigure());
- return true;
- }
-
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof CommentBodyEditPart) {
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(40, 40);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createNodeFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(CommentBodyEditPart.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusReflowableShapeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editparts.AbstractCommentEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class CommentEditPart extends AbstractCommentEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2001;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public CommentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PapyrusReflowableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new HTMLCornerBentFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure
+ *
+ * @generated
+ */
+ @Override
+ public HTMLCornerBentFigure getPrimaryShape() {
+ return (HTMLCornerBentFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof CommentBodyEditPart) {
+ ((CommentBodyEditPart) childEditPart).setLabel(getPrimaryShape().getCornerBentFigure());
+ return true;
+ }
+
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof CommentBodyEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(40, 40);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodeFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(CommentBodyEditPart.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPartCN.java
index b376307938e..163eca5a5de 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/CommentEditPartCN.java
@@ -1,282 +1,286 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusReflowableShapeEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editparts.AbstractCommentEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.CommentItemSemanticEditPolicyCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class CommentEditPartCN extends AbstractCommentEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 54;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public CommentEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CommentItemSemanticEditPolicyCN());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PapyrusReflowableShapeEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * Papyrus codeGen
- *
- * @generated
- **/
- @Override
- protected void handleNotificationEvent(Notification event) {
- super.handleNotificationEvent(event);
-
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new HTMLCornerBentFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure
- *
- * @generated
- */
- @Override
- public HTMLCornerBentFigure getPrimaryShape() {
- return (HTMLCornerBentFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof CommentBodyEditPartCN) {
- ((CommentBodyEditPartCN) childEditPart).setLabel(getPrimaryShape().getCornerBentFigure());
- return true;
- }
-
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof CommentBodyEditPartCN) {
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(40, 40);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createNodeFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(CommentBodyEditPartCN.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusReflowableShapeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editparts.AbstractCommentEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class CommentEditPartCN extends AbstractCommentEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 54;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public CommentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PapyrusReflowableShapeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new HTMLCornerBentFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure
+ *
+ * @generated
+ */
+ @Override
+ public HTMLCornerBentFigure getPrimaryShape() {
+ return (HTMLCornerBentFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof CommentBodyEditPartCN) {
+ ((CommentBodyEditPartCN) childEditPart).setLabel(getPrimaryShape().getCornerBentFigure());
+ return true;
+ }
+
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof CommentBodyEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(40, 40);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodeFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(CommentBodyEditPartCN.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintConstrainedElementEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintConstrainedElementEditPart.java
index 2b799664b32..edc321fe4f6 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintConstrainedElementEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintConstrainedElementEditPart.java
@@ -1,68 +1,68 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.Connection;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart;
-import org.eclipse.papyrus.uml.diagram.common.figure.edge.SimpleDashedEdgeFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ConstraintConstrainedElementItemSemanticEditPolicy;
-
-/**
- * @generated
- */
-public class ConstraintConstrainedElementEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 4009;
-
- /**
- * @generated
- */
- public ConstraintConstrainedElementEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ConstraintConstrainedElementItemSemanticEditPolicy());
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected Connection createConnectionFigure() {
- return new SimpleDashedEdgeFigure();
- }
-
- /**
- * @generated
- */
- @Override
- public SimpleDashedEdgeFigure getPrimaryShape() {
- return (SimpleDashedEdgeFigure) getFigure();
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.uml.diagram.common.figure.edge.SimpleDashedEdgeFigure;
+
+/**
+ * @generated
+ */
+public class ConstraintConstrainedElementEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4009;
+
+ /**
+ * @generated
+ */
+ public ConstraintConstrainedElementEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected Connection createConnectionFigure() {
+ return new SimpleDashedEdgeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public SimpleDashedEdgeFigure getPrimaryShape() {
+ return (SimpleDashedEdgeFigure) getFigure();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPart.java
index eedbb2e7c74..193f0075d01 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPart.java
@@ -1,287 +1,291 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editparts.AbstractConstraintEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ConstraintFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ConstraintItemSemanticEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class ConstraintEditPart extends AbstractConstraintEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 2005;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public ConstraintEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ConstraintItemSemanticEditPolicy());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * Papyrus codeGen
- *
- * @generated
- **/
- @Override
- protected void handleNotificationEvent(Notification event) {
- super.handleNotificationEvent(event);
-
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new ConstraintFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.common.figure.node.ConstraintFigure
- *
- * @generated
- */
- @Override
- public ConstraintFigure getPrimaryShape() {
- return (ConstraintFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ConstraintNameEditPart) {
- ((ConstraintNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
- if (childEditPart instanceof ConstraintSpecificationEditPart) {
- ((ConstraintSpecificationEditPart) childEditPart).setLabel(getPrimaryShape().getConstraintFigure());
- return true;
- }
-
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ConstraintNameEditPart) {
- return true;
- }
- if (childEditPart instanceof ConstraintSpecificationEditPart) {
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(40, 40);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createNodeFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(ConstraintNameEditPart.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editparts.AbstractConstraintEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ConstraintEditPart extends AbstractConstraintEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2005;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ConstraintEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new ConstraintFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.common.figure.node.ConstraintFigure
+ *
+ * @generated
+ */
+ @Override
+ public ConstraintFigure getPrimaryShape() {
+ return (ConstraintFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ConstraintNameEditPart) {
+ ((ConstraintNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if (childEditPart instanceof ConstraintSpecificationEditPart) {
+ ((ConstraintSpecificationEditPart) childEditPart).setLabel(getPrimaryShape().getConstraintFigure());
+ return true;
+ }
+
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ConstraintNameEditPart) {
+ return true;
+ }
+ if (childEditPart instanceof ConstraintSpecificationEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(40, 40);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodeFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ConstraintNameEditPart.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPartCN.java
index d5ec2ba7507..a16daa8545f 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintEditPartCN.java
@@ -1,287 +1,291 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editparts.AbstractConstraintEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ConstraintFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ConstraintItemSemanticEditPolicyCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class ConstraintEditPartCN extends AbstractConstraintEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 56;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public ConstraintEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ConstraintItemSemanticEditPolicyCN());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * Papyrus codeGen
- *
- * @generated
- **/
- @Override
- protected void handleNotificationEvent(Notification event) {
- super.handleNotificationEvent(event);
-
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new ConstraintFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.common.figure.node.ConstraintFigure
- *
- * @generated
- */
- @Override
- public ConstraintFigure getPrimaryShape() {
- return (ConstraintFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ConstraintNameEditPartCN) {
- ((ConstraintNameEditPartCN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
- if (childEditPart instanceof ConstraintSpecificationEditPartCN) {
- ((ConstraintSpecificationEditPartCN) childEditPart).setLabel(getPrimaryShape().getConstraintFigure());
- return true;
- }
-
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ConstraintNameEditPartCN) {
- return true;
- }
- if (childEditPart instanceof ConstraintSpecificationEditPartCN) {
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(40, 40);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createNodeFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(ConstraintNameEditPartCN.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editparts.AbstractConstraintEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ConstraintFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ConstraintEditPartCN extends AbstractConstraintEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 56;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ConstraintEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new ConstraintFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.common.figure.node.ConstraintFigure
+ *
+ * @generated
+ */
+ @Override
+ public ConstraintFigure getPrimaryShape() {
+ return (ConstraintFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ConstraintNameEditPartCN) {
+ ((ConstraintNameEditPartCN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ if (childEditPart instanceof ConstraintSpecificationEditPartCN) {
+ ((ConstraintSpecificationEditPartCN) childEditPart).setLabel(getPrimaryShape().getConstraintFigure());
+ return true;
+ }
+
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ConstraintNameEditPartCN) {
+ return true;
+ }
+ if (childEditPart instanceof ConstraintSpecificationEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(40, 40);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodeFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ConstraintNameEditPartCN.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPart.java
index 4397c97360f..2f4b4c558bc 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPart.java
@@ -1,871 +1,856 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class ConstraintNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 2;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public ConstraintNameEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Constraint_2005, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintNameEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class ConstraintNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ConstraintNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Constraint_2005, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPartCN.java
index f631c2a2cbc..9659523481f 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintNameEditPartCN.java
@@ -1,871 +1,856 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 57;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public ConstraintNameEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Constraint_56, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintNameEditPartCN.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class ConstraintNameEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 57;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ConstraintNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Constraint_56, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPart.java
index a8663579a70..f5dca8eebd1 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPart.java
@@ -1,871 +1,856 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 3;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public ConstraintSpecificationEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Constraint_2005, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintSpecificationEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class ConstraintSpecificationEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ConstraintSpecificationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Constraint_2005, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintSpecificationEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPartCN.java
index 3c22530c1eb..58b7717f1d7 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ConstraintSpecificationEditPartCN.java
@@ -1,871 +1,856 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 58;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public ConstraintSpecificationEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Constraint_56, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintSpecificationEditPartCN.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class ConstraintSpecificationEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 58;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ConstraintSpecificationEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Constraint_56, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintSpecificationEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementEditPart.java
index aae0a47c4c1..e5fd137e89a 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementEditPart.java
@@ -1,285 +1,289 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editparts.NamedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ChangeStereotypedShapeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.NodeNamedElementFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.DeploymentDiagramChangeStereotypedShapeEditpolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.itemsemantic.CustomDefaultNamedElementItemSemanticEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DefaultNamedElementItemSemanticEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class DefaultNamedElementEditPart extends NamedElementEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 2012;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public DefaultNamedElementEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultNamedElementItemSemanticEditPolicy());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy(ChangeStereotypedShapeEditPolicy.CHANGE_SHAPE_POLICY, new DeploymentDiagramChangeStereotypedShapeEditpolicy());
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CustomDefaultNamedElementItemSemanticEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * Papyrus codeGen
- *
- * @generated
- **/
- @Override
- protected void handleNotificationEvent(Notification event) {
- super.handleNotificationEvent(event);
-
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new NodeNamedElementFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.common.figure.node.NodeNamedElementFigure
- *
- * @generated
- */
- @Override
- public NodeNamedElementFigure getPrimaryShape() {
- return (NodeNamedElementFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof DefaultNamedElementNameEditPart) {
- ((DefaultNamedElementNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
-
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof DefaultNamedElementNameEditPart) {
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(100, 50);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createNodeFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(DefaultNamedElementNameEditPart.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ChangeStereotypedShapeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.NodeNamedElementFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.DeploymentDiagramChangeStereotypedShapeEditpolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.itemsemantic.CustomDefaultNamedElementItemSemanticEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class DefaultNamedElementEditPart extends NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2012;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public DefaultNamedElementEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(ChangeStereotypedShapeEditPolicy.CHANGE_SHAPE_POLICY, new DeploymentDiagramChangeStereotypedShapeEditpolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CustomDefaultNamedElementItemSemanticEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new NodeNamedElementFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.common.figure.node.NodeNamedElementFigure
+ *
+ * @generated
+ */
+ @Override
+ public NodeNamedElementFigure getPrimaryShape() {
+ return (NodeNamedElementFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof DefaultNamedElementNameEditPart) {
+ ((DefaultNamedElementNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof DefaultNamedElementNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(100, 50);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodeFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(DefaultNamedElementNameEditPart.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementNameEditPart.java
index a9336cc894b..6e41b512184 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DefaultNamedElementNameEditPart.java
@@ -1,888 +1,873 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.emf.appearance.helper.AppearanceHelper;
-import org.eclipse.papyrus.infra.emf.appearance.helper.VisualInformationPapyrusConstants;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.common.util.DiagramEditPartsUtil;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 53;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public DefaultNamedElementNameEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- EObject parserElement = getParserElement();
- if (parserElement == null) {
- return null;
- }
- List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
- for (View view : views) {
- if (AppearanceHelper.showElementIcon(view)) {
- return UMLElementTypes.getImage(parserElement.eClass());
- }
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.NamedElement_2012, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DefaultNamedElementNameEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- if (event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstants.DISPLAY_NAMELABELICON.equals(((EAnnotation) event.getNewValue()).getSource())) {
- refreshLabel();
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.emf.appearance.helper.AppearanceHelper;
+import org.eclipse.papyrus.infra.emf.appearance.helper.VisualInformationPapyrusConstants;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class DefaultNamedElementNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 53;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public DefaultNamedElementNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if (parserElement == null) {
+ return null;
+ }
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for (View view : views) {
+ if (AppearanceHelper.showElementIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.NamedElement_2012, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DefaultNamedElementNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if (event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstants.DISPLAY_NAMELABELICON.equals(((EAnnotation) event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyAppliedStereotypeEditPart.java
index 5da184706cf..f8269578325 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyAppliedStereotypeEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyAppliedStereotypeEditPart.java
@@ -1,823 +1,823 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.ConnectionLocator;
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultLinkLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusLinkLabelDragPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editparts.AbstractLabelEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class DependencyAppliedStereotypeEditPart extends AbstractLabelEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 15;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
- /**
- * @generated
- */
- static {
- registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 60));
- }
-
- /**
- * @generated
- */
- public DependencyAppliedStereotypeEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultLinkLabelDragPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PapyrusLinkLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- @Override
- public int getKeyPoint() {
- return ConnectionLocator.MIDDLE;
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Dependency_4004, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyAppliedStereotypeEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
-
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusLabelEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusLinkLabelDragPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class DependencyAppliedStereotypeEditPart extends PapyrusLabelEditPart implements ITextAwareEditPart, IControlParserForDirectEdit, ILabelRoleProvider {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 15;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 60));
+ }
+
+ /**
+ * @generated
+ */
+ public DependencyAppliedStereotypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PapyrusLinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Dependency_4004, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyAppliedStereotypeEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyBranchEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyBranchEditPart.java
index 22e8bc93e0b..830915a24db 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyBranchEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyBranchEditPart.java
@@ -1,71 +1,71 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.Connection;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart;
-import org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DependencyBranchItemSemanticEditPolicy;
-
-/**
- * @generated
- */
-public class DependencyBranchEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 4010;
-
- /**
- * @generated
- */
- public DependencyBranchEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DependencyBranchItemSemanticEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected Connection createConnectionFigure() {
- return new DashedEdgeFigure();
- }
-
- /**
- * @generated
- */
- @Override
- public DashedEdgeFigure getPrimaryShape() {
- return (DashedEdgeFigure) getFigure();
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+
+/**
+ * @generated
+ */
+public class DependencyBranchEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4010;
+
+ /**
+ * @generated
+ */
+ public DependencyBranchEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected Connection createConnectionFigure() {
+ return new DashedEdgeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public DashedEdgeFigure getPrimaryShape() {
+ return (DashedEdgeFigure) getFigure();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyEditPart.java
index 09502a56c2f..c395ef7c129 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyEditPart.java
@@ -1,127 +1,126 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.Connection;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DependencyItemSemanticEditPolicy;
-
-/**
- * @generated
- */
-public class DependencyEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 4004;
-
- /**
- * @generated
- */
- public DependencyEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DependencyItemSemanticEditPolicy());
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
- installEditPolicy(ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE, new ShowHideLabelEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof DependencyNameEditPart) {
- ((DependencyNameEditPart) childEditPart).setLabel(
- getPrimaryShape().getNameLabel());
- }
- if (childEditPart instanceof DependencyAppliedStereotypeEditPart) {
- ((DependencyAppliedStereotypeEditPart) childEditPart).setLabel(
- getPrimaryShape().getAppliedStereotypeLabel());
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof DependencyNameEditPart) {
- return true;
- }
- if (childEditPart instanceof DependencyAppliedStereotypeEditPart) {
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected Connection createConnectionFigure() {
- return new DashedEdgeFigure();
- }
-
- /**
- * @generated
- */
- @Override
- public DashedEdgeFigure getPrimaryShape() {
- return (DashedEdgeFigure) getFigure();
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+
+/**
+ * @generated
+ */
+public class DependencyEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4004;
+
+ /**
+ * @generated
+ */
+ public DependencyEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+ installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
+ installEditPolicy(ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE, new ShowHideLabelEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof DependencyNameEditPart) {
+ ((DependencyNameEditPart) childEditPart).setLabel(
+ getPrimaryShape().getNameLabel());
+ }
+ if (childEditPart instanceof DependencyAppliedStereotypeEditPart) {
+ ((DependencyAppliedStereotypeEditPart) childEditPart).setLabel(
+ getPrimaryShape().getAppliedStereotypeLabel());
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof DependencyNameEditPart) {
+ return true;
+ }
+ if (childEditPart instanceof DependencyAppliedStereotypeEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected Connection createConnectionFigure() {
+ return new DashedEdgeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public DashedEdgeFigure getPrimaryShape() {
+ return (DashedEdgeFigure) getFigure();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNameEditPart.java
index 0feb7bb7a6f..e7a5c42666d 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNameEditPart.java
@@ -1,823 +1,823 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.ConnectionLocator;
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultLinkLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusLabelEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusLinkLabelDragPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class DependencyNameEditPart extends PapyrusLabelEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 12;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
- /**
- * @generated
- */
- static {
- registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyNameEditPart.VISUAL_ID), new Point(0, 40));
- }
-
- /**
- * @generated
- */
- public DependencyNameEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultLinkLabelDragPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PapyrusLinkLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- @Override
- public int getKeyPoint() {
- return ConnectionLocator.MIDDLE;
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Dependency_4004, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyNameEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
-
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusLabelEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusLinkLabelDragPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class DependencyNameEditPart extends PapyrusLabelEditPart implements ITextAwareEditPart, IControlParserForDirectEdit, ILabelRoleProvider {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 12;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyNameEditPart.VISUAL_ID), new Point(0, 40));
+ }
+
+ /**
+ * @generated
+ */
+ public DependencyNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PapyrusLinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Dependency_4004, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Name";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNodeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNodeEditPart.java
index d8ef280bb84..6eb858fb668 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNodeEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DependencyNodeEditPart.java
@@ -1,244 +1,246 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.PositionConstants;
-import org.eclipse.draw2d.geometry.Dimension;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.GraphicalEditPart;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.handles.MoveHandle;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.BorderItemSelectionEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.NodeEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.DependencyNodeFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DependencyNodeItemSemanticEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class DependencyNodeEditPart extends NodeEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 2011;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public DependencyNodeEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DependencyNodeItemSemanticEditPolicy());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- installEditPolicy(ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE, new ShowHideLabelEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- View childView = (View) child.getModel();
- switch (UMLVisualIDRegistry.getVisualID(childView)) {
- case MultiDependencyLabelEditPart.VISUAL_ID:
- return new BorderItemSelectionEditPolicy() {
-
- @Override
- protected List<?> createSelectionHandles() {
- MoveHandle mh = new MoveHandle((GraphicalEditPart) getHost());
- mh.setBorder(null);
- return Collections.singletonList(mh);
- }
- }
- ;
- }
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new DependencyNodeFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.common.figure.node.DependencyNodeFigure
- *
- * @generated
- */
- @Override
- public DependencyNodeFigure getPrimaryShape() {
- return (DependencyNodeFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
- if (borderItemEditPart instanceof MultiDependencyLabelEditPart) {
- BorderItemLocator locator = new BorderItemLocator(getMainFigure(), PositionConstants.SOUTH);
- locator.setBorderItemOffset(new Dimension(-20, -20));
- borderItemContainer.add(borderItemEditPart.getFigure(), locator);
- } else
- {
- super.addBorderItem(borderItemContainer, borderItemEditPart);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(10, 10);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createMainFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(MultiDependencyLabelEditPart.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.PositionConstants;
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.handles.MoveHandle;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.BorderItemSelectionEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.NodeEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.DependencyNodeFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class DependencyNodeEditPart extends NodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2011;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public DependencyNodeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ installEditPolicy(ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE, new ShowHideLabelEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View) child.getModel();
+ switch (UMLVisualIDRegistry.getVisualID(childView)) {
+ case MultiDependencyLabelEditPart.VISUAL_ID:
+ return new BorderItemSelectionEditPolicy() {
+
+ @Override
+ protected List<?> createSelectionHandles() {
+ MoveHandle mh = new MoveHandle((GraphicalEditPart) getHost());
+ mh.setBorder(null);
+ return Collections.singletonList(mh);
+ }
+ };
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new DependencyNodeFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.common.figure.node.DependencyNodeFigure
+ *
+ * @generated
+ */
+ @Override
+ public DependencyNodeFigure getPrimaryShape() {
+ return (DependencyNodeFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
+ if (borderItemEditPart instanceof MultiDependencyLabelEditPart) {
+ BorderItemLocator locator = new BorderItemLocator(getMainFigure(), PositionConstants.SOUTH);
+ locator.setBorderItemOffset(new Dimension(-20, -20));
+ borderItemContainer.add(borderItemEditPart.getFigure(), locator);
+ } else {
+ super.addBorderItem(borderItemContainer, borderItemEditPart);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(10, 10);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createMainFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(MultiDependencyLabelEditPart.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentAppliedStereotypeEditPart.java
index 990228b1619..556efc11361 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentAppliedStereotypeEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentAppliedStereotypeEditPart.java
@@ -1,823 +1,823 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.ConnectionLocator;
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultLinkLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusLinkLabelDragPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editparts.AbstractLabelEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class DeploymentAppliedStereotypeEditPart extends AbstractLabelEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 14;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
- /**
- * @generated
- */
- static {
- registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 60));
- }
-
- /**
- * @generated
- */
- public DeploymentAppliedStereotypeEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultLinkLabelDragPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PapyrusLinkLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- @Override
- public int getKeyPoint() {
- return ConnectionLocator.MIDDLE;
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Deployment_4001, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentAppliedStereotypeEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
-
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusLabelEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusLinkLabelDragPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class DeploymentAppliedStereotypeEditPart extends PapyrusLabelEditPart implements ITextAwareEditPart, IControlParserForDirectEdit, ILabelRoleProvider {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 14;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 60));
+ }
+
+ /**
+ * @generated
+ */
+ public DeploymentAppliedStereotypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PapyrusLinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Deployment_4001, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentAppliedStereotypeEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentDiagramEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentDiagramEditPart.java
index bc5f5df22be..c7a9f691e1f 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentDiagramEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentDiagramEditPart.java
@@ -14,11 +14,11 @@ package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusDiagramEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.PapyrusCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DeploymentDiagramItemSemanticEditPolicy;
/**
* @generated
@@ -49,12 +49,12 @@ public class DeploymentDiagramEditPart extends PapyrusDiagramEditPart {
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PapyrusCreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DeploymentDiagramItemSemanticEditPolicy());
- // in Papyrus diagrams are not strongly synchronised
- // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ModelCanonicalEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
+ //in Papyrus diagrams are not strongly synchronised
+ //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ModelCanonicalEditPolicy());
installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentEditPart.java
index 9d31f8aa9c4..4ecbe2b4b9e 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentEditPart.java
@@ -1,124 +1,123 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.Connection;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DeploymentItemSemanticEditPolicy;
-
-/**
- * @generated
- */
-public class DeploymentEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 4001;
-
- /**
- * @generated
- */
- public DeploymentEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DeploymentItemSemanticEditPolicy());
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
- installEditPolicy(ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE, new ShowHideLabelEditPolicy());
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof DeploymentNameEditPart) {
- ((DeploymentNameEditPart) childEditPart).setLabel(
- getPrimaryShape().getNameLabel());
- }
- if (childEditPart instanceof DeploymentAppliedStereotypeEditPart) {
- ((DeploymentAppliedStereotypeEditPart) childEditPart).setLabel(
- getPrimaryShape().getAppliedStereotypeLabel());
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof DeploymentNameEditPart) {
- return true;
- }
- if (childEditPart instanceof DeploymentAppliedStereotypeEditPart) {
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected Connection createConnectionFigure() {
- return new DashedEdgeFigure();
- }
-
- /**
- * @generated
- */
- @Override
- public DashedEdgeFigure getPrimaryShape() {
- return (DashedEdgeFigure) getFigure();
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure;
+
+/**
+ * @generated
+ */
+public class DeploymentEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4001;
+
+ /**
+ * @generated
+ */
+ public DeploymentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+ installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
+ installEditPolicy(ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE, new ShowHideLabelEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof DeploymentNameEditPart) {
+ ((DeploymentNameEditPart) childEditPart).setLabel(
+ getPrimaryShape().getNameLabel());
+ }
+ if (childEditPart instanceof DeploymentAppliedStereotypeEditPart) {
+ ((DeploymentAppliedStereotypeEditPart) childEditPart).setLabel(
+ getPrimaryShape().getAppliedStereotypeLabel());
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof DeploymentNameEditPart) {
+ return true;
+ }
+ if (childEditPart instanceof DeploymentAppliedStereotypeEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected Connection createConnectionFigure() {
+ return new DashedEdgeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public DashedEdgeFigure getPrimaryShape() {
+ return (DashedEdgeFigure) getFigure();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentNameEditPart.java
index cf4f8530ce9..777c87b62b5 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeploymentNameEditPart.java
@@ -1,823 +1,823 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.ConnectionLocator;
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultLinkLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusLabelEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusLinkLabelDragPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class DeploymentNameEditPart extends PapyrusLabelEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 13;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
- /**
- * @generated
- */
- static {
- registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentNameEditPart.VISUAL_ID), new Point(0, 60));
- }
-
- /**
- * @generated
- */
- public DeploymentNameEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultLinkLabelDragPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PapyrusLinkLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- @Override
- public int getKeyPoint() {
- return ConnectionLocator.MIDDLE;
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Deployment_4001, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentNameEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
-
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusLabelEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusLinkLabelDragPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class DeploymentNameEditPart extends PapyrusLabelEditPart implements ITextAwareEditPart, IControlParserForDirectEdit, ILabelRoleProvider {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 13;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentNameEditPart.VISUAL_ID), new Point(0, 60));
+ }
+
+ /**
+ * @generated
+ */
+ public DeploymentNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PapyrusLinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Deployment_4001, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Name";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPart.java
index 92a7d12a4f8..816741355b3 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPart.java
@@ -25,11 +25,11 @@ import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.PapyrusCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DeviceCompositeCompartmentItemSemanticEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.part.Messages;
/**
@@ -63,12 +63,12 @@ public class DeviceCompositeCompartmentEditPart extends ShapeCompartmentEditPart
@Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DeviceCompositeCompartmentItemSemanticEditPolicy());
- installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PapyrusCreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- // in Papyrus diagrams are not strongly synchronised
- // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DeviceCompositeCompartmentCanonicalEditPolicy());
+ //in Papyrus diagrams are not strongly synchronised
+ //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DeviceCompositeCompartmentCanonicalEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPartCN.java
index 81c71593238..81797c2cc67 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceCompositeCompartmentEditPartCN.java
@@ -26,11 +26,11 @@ import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditP
import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.PapyrusCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DeviceCompositeCompartmentItemSemanticEditPolicyCN;
import org.eclipse.papyrus.uml.diagram.deployment.part.Messages;
/**
@@ -65,12 +65,12 @@ public class DeviceCompositeCompartmentEditPartCN extends ShapeCompartmentEditPa
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DeviceCompositeCompartmentItemSemanticEditPolicyCN());
- installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PapyrusCreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- // in Papyrus diagrams are not strongly synchronised
- // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DeviceCompositeCompartmentCanonicalEditPolicyCN());
+ //in Papyrus diagrams are not strongly synchronised
+ //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DeviceCompositeCompartmentCanonicalEditPolicyCN());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPart.java
index 5b848adadea..8cf02b29f6a 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPart.java
@@ -1,305 +1,309 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editparts.NamedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DeviceItemSemanticEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class DeviceEditPart extends NamedElementEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 2003;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public DeviceEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DeviceItemSemanticEditPolicy());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
- installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
- installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * Papyrus codeGen
- *
- * @generated
- **/
- @Override
- protected void handleNotificationEvent(Notification event) {
- super.handleNotificationEvent(event);
-
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new DeviceFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure
- *
- * @generated
- */
- @Override
- public DeviceFigure getPrimaryShape() {
- return (DeviceFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof DeviceNameEditPart) {
- ((DeviceNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
-
-
- if (childEditPart instanceof DeviceCompositeCompartmentEditPart) {
- IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
- pane.add(((DeviceCompositeCompartmentEditPart) childEditPart).getFigure());
- return true;
- }
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof DeviceNameEditPart) {
- return true;
- }
- if (childEditPart instanceof DeviceCompositeCompartmentEditPart) {
- IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- pane.remove(((DeviceCompositeCompartmentEditPart) childEditPart).getFigure());
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- if (editPart instanceof DeviceCompositeCompartmentEditPart) {
- return getPrimaryShape().getCompositeCompartmentFigure();
- }
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 100);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createNodeFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(DeviceNameEditPart.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class DeviceEditPart extends NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2003;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public DeviceEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new DeviceFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure
+ *
+ * @generated
+ */
+ @Override
+ public DeviceFigure getPrimaryShape() {
+ return (DeviceFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof DeviceNameEditPart) {
+ ((DeviceNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+
+ if (childEditPart instanceof DeviceCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((DeviceCompositeCompartmentEditPart) childEditPart).getFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof DeviceNameEditPart) {
+ return true;
+ }
+ if (childEditPart instanceof DeviceCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ pane.remove(((DeviceCompositeCompartmentEditPart) childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if (editPart instanceof DeviceCompositeCompartmentEditPart) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 100);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodeFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(DeviceNameEditPart.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPartCN.java
index e469c0ea93b..f15126b356f 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceEditPartCN.java
@@ -1,290 +1,294 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editparts.NamedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.DeviceItemSemanticEditPolicyCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class DeviceEditPartCN extends NamedElementEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 16;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public DeviceEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DeviceItemSemanticEditPolicyCN());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
- installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
- installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * Papyrus codeGen
- *
- * @generated
- **/
- @Override
- protected void handleNotificationEvent(Notification event) {
- super.handleNotificationEvent(event);
-
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new DeviceFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure
- *
- * @generated
- */
- @Override
- public DeviceFigure getPrimaryShape() {
- return (DeviceFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof DeviceNameEditPartCN) {
- ((DeviceNameEditPartCN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
-
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof DeviceNameEditPartCN) {
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 100);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createNodeFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(DeviceNameEditPartCN.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class DeviceEditPartCN extends NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 16;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public DeviceEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new DeviceFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure
+ *
+ * @generated
+ */
+ @Override
+ public DeviceFigure getPrimaryShape() {
+ return (DeviceFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof DeviceNameEditPartCN) {
+ ((DeviceNameEditPartCN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof DeviceNameEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 100);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodeFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(DeviceNameEditPartCN.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPart.java
index b8d8793d648..5f76e6edb89 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPart.java
@@ -1,871 +1,856 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class DeviceNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 6;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public DeviceNameEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Device_2003, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceNameEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class DeviceNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 6;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public DeviceNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Device_2003, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPartCN.java
index 75680a7ec61..8c1cf2298cb 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/DeviceNameEditPartCN.java
@@ -1,871 +1,856 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 20;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public DeviceNameEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Device_16, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceNameEditPartCN.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class DeviceNameEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 20;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public DeviceNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Device_16, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPart.java
index 54d1d7e1fca..132ff151dda 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPart.java
@@ -25,11 +25,11 @@ import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.PapyrusCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.part.Messages;
/**
@@ -63,12 +63,12 @@ public class ExecutionEnvironmentCompositeCompartmentEditPart extends ShapeCompa
@Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy());
- installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PapyrusCreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- // in Papyrus diagrams are not strongly synchronised
- // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicy());
+ //in Papyrus diagrams are not strongly synchronised
+ //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPartCN.java
index 6fdc32b4496..f13b17d5f8b 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentCompositeCompartmentEditPartCN.java
@@ -26,11 +26,11 @@ import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditP
import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.PapyrusCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicyCN;
import org.eclipse.papyrus.uml.diagram.deployment.part.Messages;
/**
@@ -65,12 +65,12 @@ public class ExecutionEnvironmentCompositeCompartmentEditPartCN extends ShapeCom
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicyCN());
- installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PapyrusCreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- // in Papyrus diagrams are not strongly synchronised
- // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicyCN());
+ //in Papyrus diagrams are not strongly synchronised
+ //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicyCN());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPart.java
index b2ae1e53c40..0a0aa6ff00c 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPart.java
@@ -1,305 +1,309 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editparts.NamedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ExecutionEnvironmentItemSemanticEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class ExecutionEnvironmentEditPart extends NamedElementEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 2002;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public ExecutionEnvironmentEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ExecutionEnvironmentItemSemanticEditPolicy());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
- installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
- installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * Papyrus codeGen
- *
- * @generated
- **/
- @Override
- protected void handleNotificationEvent(Notification event) {
- super.handleNotificationEvent(event);
-
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new ExecutionEnvironmentFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure
- *
- * @generated
- */
- @Override
- public ExecutionEnvironmentFigure getPrimaryShape() {
- return (ExecutionEnvironmentFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ExecutionEnvironmentNameEditPart) {
- ((ExecutionEnvironmentNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
-
-
- if (childEditPart instanceof ExecutionEnvironmentCompositeCompartmentEditPart) {
- IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
- pane.add(((ExecutionEnvironmentCompositeCompartmentEditPart) childEditPart).getFigure());
- return true;
- }
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ExecutionEnvironmentNameEditPart) {
- return true;
- }
- if (childEditPart instanceof ExecutionEnvironmentCompositeCompartmentEditPart) {
- IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- pane.remove(((ExecutionEnvironmentCompositeCompartmentEditPart) childEditPart).getFigure());
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- if (editPart instanceof ExecutionEnvironmentCompositeCompartmentEditPart) {
- return getPrimaryShape().getCompositeCompartmentFigure();
- }
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 100);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createNodeFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(ExecutionEnvironmentNameEditPart.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ExecutionEnvironmentEditPart extends NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2002;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new ExecutionEnvironmentFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure
+ *
+ * @generated
+ */
+ @Override
+ public ExecutionEnvironmentFigure getPrimaryShape() {
+ return (ExecutionEnvironmentFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ExecutionEnvironmentNameEditPart) {
+ ((ExecutionEnvironmentNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+
+ if (childEditPart instanceof ExecutionEnvironmentCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((ExecutionEnvironmentCompositeCompartmentEditPart) childEditPart).getFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ExecutionEnvironmentNameEditPart) {
+ return true;
+ }
+ if (childEditPart instanceof ExecutionEnvironmentCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ pane.remove(((ExecutionEnvironmentCompositeCompartmentEditPart) childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if (editPart instanceof ExecutionEnvironmentCompositeCompartmentEditPart) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 100);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodeFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ExecutionEnvironmentNameEditPart.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPartCN.java
index 3a8fdbbb93d..ab63d8e533b 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentEditPartCN.java
@@ -1,290 +1,294 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editparts.NamedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ExecutionEnvironmentItemSemanticEditPolicyCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class ExecutionEnvironmentEditPartCN extends NamedElementEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 21;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public ExecutionEnvironmentEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ExecutionEnvironmentItemSemanticEditPolicyCN());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
- installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
- installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * Papyrus codeGen
- *
- * @generated
- **/
- @Override
- protected void handleNotificationEvent(Notification event) {
- super.handleNotificationEvent(event);
-
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new ExecutionEnvironmentFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure
- *
- * @generated
- */
- @Override
- public ExecutionEnvironmentFigure getPrimaryShape() {
- return (ExecutionEnvironmentFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ExecutionEnvironmentNameEditPartCN) {
- ((ExecutionEnvironmentNameEditPartCN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
-
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ExecutionEnvironmentNameEditPartCN) {
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 100);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createNodeFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(ExecutionEnvironmentNameEditPartCN.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ExecutionEnvironmentEditPartCN extends NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 21;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new ExecutionEnvironmentFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure
+ *
+ * @generated
+ */
+ @Override
+ public ExecutionEnvironmentFigure getPrimaryShape() {
+ return (ExecutionEnvironmentFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ExecutionEnvironmentNameEditPartCN) {
+ ((ExecutionEnvironmentNameEditPartCN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ExecutionEnvironmentNameEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 100);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodeFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ExecutionEnvironmentNameEditPartCN.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPart.java
index 469117ccedb..c6b04bf6981 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPart.java
@@ -1,871 +1,856 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 5;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public ExecutionEnvironmentNameEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.ExecutionEnvironment_2002, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentNameEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class ExecutionEnvironmentNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 5;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.ExecutionEnvironment_2002, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPartCN.java
index 600fccc89f7..83592a0d007 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ExecutionEnvironmentNameEditPartCN.java
@@ -1,871 +1,856 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 22;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public ExecutionEnvironmentNameEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.ExecutionEnvironment_21, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentNameEditPartCN.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class ExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 22;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ExecutionEnvironmentNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.ExecutionEnvironment_21, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationAppliedStereotypeEditPart.java
index 498779779c7..286d9112809 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationAppliedStereotypeEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationAppliedStereotypeEditPart.java
@@ -1,815 +1,815 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.ConnectionLocator;
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultLinkLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusLinkLabelDragPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editparts.AbstractLabelEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class GeneralizationAppliedStereotypeEditPart extends AbstractLabelEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 4;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
- /**
- * @generated
- */
- static {
- registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 60));
- }
-
- /**
- * @generated
- */
- public GeneralizationAppliedStereotypeEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultLinkLabelDragPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PapyrusLinkLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- @Override
- public int getKeyPoint() {
- return ConnectionLocator.MIDDLE;
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Generalization_4003, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationAppliedStereotypeEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- // The label is read-only (defined in GMFGen model)
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
-
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusLabelEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusLinkLabelDragPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class GeneralizationAppliedStereotypeEditPart extends PapyrusLabelEditPart implements ITextAwareEditPart, IControlParserForDirectEdit, ILabelRoleProvider {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 60));
+ }
+
+ /**
+ * @generated
+ */
+ public GeneralizationAppliedStereotypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PapyrusLinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Generalization_4003, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationAppliedStereotypeEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ // The label is read-only (defined in GMFGen model)
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationEditPart.java
index 44f177d880d..158e510ac73 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/GeneralizationEditPart.java
@@ -1,117 +1,116 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.Connection;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.figure.edge.GeneralizationFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.GeneralizationItemSemanticEditPolicy;
-
-/**
- * @generated
- */
-public class GeneralizationEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 4003;
-
- /**
- * @generated
- */
- public GeneralizationEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new GeneralizationItemSemanticEditPolicy());
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
- installEditPolicy(ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE, new ShowHideLabelEditPolicy());
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof GeneralizationAppliedStereotypeEditPart) {
- ((GeneralizationAppliedStereotypeEditPart) childEditPart).setLabel(
- getPrimaryShape().getAppliedStereotypeLabel());
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof GeneralizationAppliedStereotypeEditPart) {
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected Connection createConnectionFigure() {
- return new GeneralizationFigure();
- }
-
- /**
- * @generated
- */
- @Override
- public GeneralizationFigure getPrimaryShape() {
- return (GeneralizationFigure) getFigure();
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.figure.edge.GeneralizationFigure;
+
+/**
+ * @generated
+ */
+public class GeneralizationEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4003;
+
+ /**
+ * @generated
+ */
+ public GeneralizationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+ installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
+ installEditPolicy(ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE, new ShowHideLabelEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof GeneralizationAppliedStereotypeEditPart) {
+ ((GeneralizationAppliedStereotypeEditPart) childEditPart).setLabel(
+ getPrimaryShape().getAppliedStereotypeLabel());
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof GeneralizationAppliedStereotypeEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected Connection createConnectionFigure() {
+ return new GeneralizationFigure();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public GeneralizationFigure getPrimaryShape() {
+ return (GeneralizationFigure) getFigure();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/LinkDescriptorEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/LinkDescriptorEditPart.java
index f878513488c..6151ccfaa87 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/LinkDescriptorEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/LinkDescriptorEditPart.java
@@ -1,70 +1,70 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.Connection;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ViewComponentEditPolicy;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.ConnectionEditPart;
-import org.eclipse.papyrus.uml.diagram.common.figure.edge.SimpleDashedEdgeFigure;
-
-/**
- * @generated
- */
-public class LinkDescriptorEditPart extends ConnectionEditPart implements ITreeBranchEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 4005;
-
- /**
- * @generated
- */
- public LinkDescriptorEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.COMPONENT_ROLE, new ViewComponentEditPolicy());
- removeEditPolicy(EditPolicyRoles.SEMANTIC_ROLE);
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected Connection createConnectionFigure() {
- return new SimpleDashedEdgeFigure();
- }
-
- /**
- * @generated
- */
- @Override
- public SimpleDashedEdgeFigure getPrimaryShape() {
- return (SimpleDashedEdgeFigure) getFigure();
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ViewComponentEditPolicy;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.ConnectionEditPart;
+import org.eclipse.papyrus.uml.diagram.common.figure.edge.SimpleDashedEdgeFigure;
+
+/**
+ * @generated
+ */
+public class LinkDescriptorEditPart extends ConnectionEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4005;
+
+ /**
+ * @generated
+ */
+ public LinkDescriptorEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.COMPONENT_ROLE, new ViewComponentEditPolicy());
+ removeEditPolicy(EditPolicyRoles.SEMANTIC_ROLE);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected Connection createConnectionFigure() {
+ return new SimpleDashedEdgeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public SimpleDashedEdgeFigure getPrimaryShape() {
+ return (SimpleDashedEdgeFigure) getFigure();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationAppliedStereotypeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationAppliedStereotypeEditPart.java
index 58c65476b83..e802c7dcac1 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationAppliedStereotypeEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationAppliedStereotypeEditPart.java
@@ -1,823 +1,823 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.ConnectionLocator;
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultLinkLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusLinkLabelDragPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editparts.AbstractLabelEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class ManifestationAppliedStereotypeEditPart extends AbstractLabelEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 11;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
- /**
- * @generated
- */
- static {
- registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 30));
- }
-
- /**
- * @generated
- */
- public ManifestationAppliedStereotypeEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultLinkLabelDragPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PapyrusLinkLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- @Override
- public int getKeyPoint() {
- return ConnectionLocator.MIDDLE;
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Manifestation_4002, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationAppliedStereotypeEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
-
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusLabelEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusLinkLabelDragPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class ManifestationAppliedStereotypeEditPart extends PapyrusLabelEditPart implements ITextAwareEditPart, IControlParserForDirectEdit, ILabelRoleProvider {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 11;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationAppliedStereotypeEditPart.VISUAL_ID), new Point(0, 30));
+ }
+
+ /**
+ * @generated
+ */
+ public ManifestationAppliedStereotypeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PapyrusLinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Manifestation_4002, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationAppliedStereotypeEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Stereotype";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationEditPart.java
index f4830eea216..3ad1410bb21 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationEditPart.java
@@ -1,124 +1,123 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.Connection;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ManifestationItemSemanticEditPolicy;
-
-/**
- * @generated
- */
-public class ManifestationEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 4002;
-
- /**
- * @generated
- */
- public ManifestationEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ManifestationItemSemanticEditPolicy());
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
- installEditPolicy(ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE, new ShowHideLabelEditPolicy());
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ManifestationNameEditPart) {
- ((ManifestationNameEditPart) childEditPart).setLabel(
- getPrimaryShape().getNameLabel());
- }
- if (childEditPart instanceof ManifestationAppliedStereotypeEditPart) {
- ((ManifestationAppliedStereotypeEditPart) childEditPart).setLabel(
- getPrimaryShape().getAppliedStereotypeLabel());
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ManifestationNameEditPart) {
- return true;
- }
- if (childEditPart instanceof ManifestationAppliedStereotypeEditPart) {
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected Connection createConnectionFigure() {
- return new DashedEdgeFigure();
- }
-
- /**
- * @generated
- */
- @Override
- public DashedEdgeFigure getPrimaryShape() {
- return (DashedEdgeFigure) getFigure();
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.Connection;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editparts.UMLConnectionNodeEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure;
+
+/**
+ * @generated
+ */
+public class ManifestationEditPart extends UMLConnectionNodeEditPart implements ITreeBranchEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 4002;
+
+ /**
+ * @generated
+ */
+ public ManifestationEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+ installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeLinkLabelDisplayEditPolicy());
+ installEditPolicy(ShowHideLabelEditPolicy.SHOW_HIDE_LABEL_ROLE, new ShowHideLabelEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ManifestationNameEditPart) {
+ ((ManifestationNameEditPart) childEditPart).setLabel(
+ getPrimaryShape().getNameLabel());
+ }
+ if (childEditPart instanceof ManifestationAppliedStereotypeEditPart) {
+ ((ManifestationAppliedStereotypeEditPart) childEditPart).setLabel(
+ getPrimaryShape().getAppliedStereotypeLabel());
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ManifestationNameEditPart) {
+ return true;
+ }
+ if (childEditPart instanceof ManifestationAppliedStereotypeEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected Connection createConnectionFigure() {
+ return new DashedEdgeFigure();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public DashedEdgeFigure getPrimaryShape() {
+ return (DashedEdgeFigure) getFigure();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationNameEditPart.java
index 7886c2ab777..3baebd4a02c 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ManifestationNameEditPart.java
@@ -1,823 +1,823 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.ConnectionLocator;
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultLinkLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusLabelEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusLinkLabelDragPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class ManifestationNameEditPart extends PapyrusLabelEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 10;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
- /**
- * @generated
- */
- static {
- registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationNameEditPart.VISUAL_ID), new Point(0, 60));
- }
-
- /**
- * @generated
- */
- public ManifestationNameEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultLinkLabelDragPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PapyrusLinkLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- @Override
- public int getKeyPoint() {
- return ConnectionLocator.MIDDLE;
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Manifestation_4002, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationNameEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
-
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ConnectionLocator;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusLabelEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusLinkLabelDragPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editparts.ILabelRoleProvider;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class ManifestationNameEditPart extends PapyrusLabelEditPart implements ITextAwareEditPart, IControlParserForDirectEdit, ILabelRoleProvider {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 10;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationNameEditPart.VISUAL_ID), new Point(0, 60));
+ }
+
+ /**
+ * @generated
+ */
+ public ManifestationNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PapyrusLinkLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public int getKeyPoint() {
+ return ConnectionLocator.MIDDLE;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Manifestation_4002, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public String getLabelRole() {
+ return "Name";//$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public String getIconPathRole() {
+ return "";//$NON-NLS-1$
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPart.java
index 30ed52c950b..1cd1dea0015 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPart.java
@@ -1,299 +1,303 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editparts.PackageEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ModelItemSemanticEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class ModelEditPart extends PackageEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 2010;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public ModelEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ModelItemSemanticEditPolicy());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * Papyrus codeGen
- *
- * @generated
- **/
- @Override
- protected void handleNotificationEvent(Notification event) {
- super.handleNotificationEvent(event);
-
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new PackageFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure
- *
- * @generated
- */
- @Override
- public PackageFigure getPrimaryShape() {
- return (PackageFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ModelNameEditPart) {
- ((ModelNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
-
-
- if (childEditPart instanceof ModelPackageableElementCompartmentEditPart) {
- IFigure pane = getPrimaryShape().getPackageableElementFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
- pane.add(((ModelPackageableElementCompartmentEditPart) childEditPart).getFigure());
- return true;
- }
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ModelNameEditPart) {
- return true;
- }
- if (childEditPart instanceof ModelPackageableElementCompartmentEditPart) {
- IFigure pane = getPrimaryShape().getPackageableElementFigure();
- pane.remove(((ModelPackageableElementCompartmentEditPart) childEditPart).getFigure());
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- if (editPart instanceof ModelPackageableElementCompartmentEditPart) {
- return getPrimaryShape().getPackageableElementFigure();
- }
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createNodeFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(ModelNameEditPart.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editparts.PackageEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ModelEditPart extends PackageEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2010;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ModelEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new PackageFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure
+ *
+ * @generated
+ */
+ @Override
+ public PackageFigure getPrimaryShape() {
+ return (PackageFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ModelNameEditPart) {
+ ((ModelNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+
+ if (childEditPart instanceof ModelPackageableElementCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getPackageableElementFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((ModelPackageableElementCompartmentEditPart) childEditPart).getFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ModelNameEditPart) {
+ return true;
+ }
+ if (childEditPart instanceof ModelPackageableElementCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getPackageableElementFigure();
+ pane.remove(((ModelPackageableElementCompartmentEditPart) childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if (editPart instanceof ModelPackageableElementCompartmentEditPart) {
+ return getPrimaryShape().getPackageableElementFigure();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodeFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ModelNameEditPart.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPartCN.java
index 981f051b962..6d8cde60858 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelEditPartCN.java
@@ -1,299 +1,303 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editparts.PackageEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ModelItemSemanticEditPolicyCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class ModelEditPartCN extends PackageEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 49;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public ModelEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ModelItemSemanticEditPolicyCN());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * Papyrus codeGen
- *
- * @generated
- **/
- @Override
- protected void handleNotificationEvent(Notification event) {
- super.handleNotificationEvent(event);
-
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new PackageFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure
- *
- * @generated
- */
- @Override
- public PackageFigure getPrimaryShape() {
- return (PackageFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ModelNameEditPartCN) {
- ((ModelNameEditPartCN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
-
-
- if (childEditPart instanceof ModelPackageableElementCompartmentEditPartCN) {
- IFigure pane = getPrimaryShape().getPackageableElementFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
- pane.add(((ModelPackageableElementCompartmentEditPartCN) childEditPart).getFigure());
- return true;
- }
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof ModelNameEditPartCN) {
- return true;
- }
- if (childEditPart instanceof ModelPackageableElementCompartmentEditPartCN) {
- IFigure pane = getPrimaryShape().getPackageableElementFigure();
- pane.remove(((ModelPackageableElementCompartmentEditPartCN) childEditPart).getFigure());
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- if (editPart instanceof ModelPackageableElementCompartmentEditPartCN) {
- return getPrimaryShape().getPackageableElementFigure();
- }
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createNodeFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(ModelNameEditPartCN.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editparts.PackageEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class ModelEditPartCN extends PackageEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 49;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public ModelEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new PackageFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure
+ *
+ * @generated
+ */
+ @Override
+ public PackageFigure getPrimaryShape() {
+ return (PackageFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ModelNameEditPartCN) {
+ ((ModelNameEditPartCN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+
+ if (childEditPart instanceof ModelPackageableElementCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getPackageableElementFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((ModelPackageableElementCompartmentEditPartCN) childEditPart).getFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof ModelNameEditPartCN) {
+ return true;
+ }
+ if (childEditPart instanceof ModelPackageableElementCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getPackageableElementFigure();
+ pane.remove(((ModelPackageableElementCompartmentEditPartCN) childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if (editPart instanceof ModelPackageableElementCompartmentEditPartCN) {
+ return getPrimaryShape().getPackageableElementFigure();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodeFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(ModelNameEditPartCN.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPart.java
index 5af547d1f4a..2feeeb18e1c 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPart.java
@@ -1,888 +1,873 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.emf.appearance.helper.AppearanceHelper;
-import org.eclipse.papyrus.infra.emf.appearance.helper.VisualInformationPapyrusConstants;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.common.util.DiagramEditPartsUtil;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class ModelNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 48;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public ModelNameEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- EObject parserElement = getParserElement();
- if (parserElement == null) {
- return null;
- }
- List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
- for (View view : views) {
- if (AppearanceHelper.showElementIcon(view)) {
- return UMLElementTypes.getImage(parserElement.eClass());
- }
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Model_2010, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelNameEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- if (event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstants.DISPLAY_NAMELABELICON.equals(((EAnnotation) event.getNewValue()).getSource())) {
- refreshLabel();
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.emf.appearance.helper.AppearanceHelper;
+import org.eclipse.papyrus.infra.emf.appearance.helper.VisualInformationPapyrusConstants;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class ModelNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 48;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ModelNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if (parserElement == null) {
+ return null;
+ }
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for (View view : views) {
+ if (AppearanceHelper.showElementIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Model_2010, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if (event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstants.DISPLAY_NAMELABELICON.equals(((EAnnotation) event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPartCN.java
index 4480ade1340..0839cb2e460 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelNameEditPartCN.java
@@ -1,888 +1,873 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.emf.appearance.helper.AppearanceHelper;
-import org.eclipse.papyrus.infra.emf.appearance.helper.VisualInformationPapyrusConstants;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.common.util.DiagramEditPartsUtil;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class ModelNameEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 50;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public ModelNameEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- EObject parserElement = getParserElement();
- if (parserElement == null) {
- return null;
- }
- List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
- for (View view : views) {
- if (AppearanceHelper.showElementIcon(view)) {
- return UMLElementTypes.getImage(parserElement.eClass());
- }
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Model_49, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelNameEditPartCN.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- if (event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstants.DISPLAY_NAMELABELICON.equals(((EAnnotation) event.getNewValue()).getSource())) {
- refreshLabel();
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.emf.appearance.helper.AppearanceHelper;
+import org.eclipse.papyrus.infra.emf.appearance.helper.VisualInformationPapyrusConstants;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class ModelNameEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 50;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public ModelNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if (parserElement == null) {
+ return null;
+ }
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for (View view : views) {
+ if (AppearanceHelper.showElementIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Model_49, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if (event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstants.DISPLAY_NAMELABELICON.equals(((EAnnotation) event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPart.java
index 7a520db9840..166bfb5fe0e 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPart.java
@@ -25,11 +25,11 @@ import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.PapyrusCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ModelPackageableElementCompartmentItemSemanticEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.part.Messages;
/**
@@ -63,12 +63,12 @@ public class ModelPackageableElementCompartmentEditPart extends ShapeCompartment
@Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ModelPackageableElementCompartmentItemSemanticEditPolicy());
- installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PapyrusCreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- // in Papyrus diagrams are not strongly synchronised
- // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ModelPackageableElementCompartmentCanonicalEditPolicy());
+ //in Papyrus diagrams are not strongly synchronised
+ //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ModelPackageableElementCompartmentCanonicalEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPartCN.java
index 80576051c55..07c8acf09f2 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/ModelPackageableElementCompartmentEditPartCN.java
@@ -25,11 +25,11 @@ import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.PapyrusCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ModelPackageableElementCompartmentItemSemanticEditPolicyCN;
import org.eclipse.papyrus.uml.diagram.deployment.part.Messages;
/**
@@ -63,12 +63,12 @@ public class ModelPackageableElementCompartmentEditPartCN extends ShapeCompartme
@Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new ModelPackageableElementCompartmentItemSemanticEditPolicyCN());
- installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PapyrusCreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- // in Papyrus diagrams are not strongly synchronised
- // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ModelPackageableElementCompartmentCanonicalEditPolicyCN());
+ //in Papyrus diagrams are not strongly synchronised
+ //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.ModelPackageableElementCompartmentCanonicalEditPolicyCN());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/MultiDependencyLabelEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/MultiDependencyLabelEditPart.java
index 684fbc9ccf2..c9318363183 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/MultiDependencyLabelEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/MultiDependencyLabelEditPart.java
@@ -1,852 +1,838 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.draw2d.geometry.Rectangle;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusLabelEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.ExternalLabelPrimaryDragRoleEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart implements ITextAwareEditPart, IBorderItemEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 7;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
- /**
- * @generated
- */
- static {
- registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.MultiDependencyLabelEditPart.VISUAL_ID), new Point(0, 0));
- }
-
- /**
- * @generated
- */
- public MultiDependencyLabelEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ExternalLabelPrimaryDragRoleEditPolicy());
- }
-
- /**
- * @generated
- */
- @Override
- public IBorderItemLocator getBorderItemLocator() {
- IFigure parentFigure = getFigure().getParent();
- if (parentFigure != null && parentFigure.getLayoutManager() != null) {
- Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
- return (IBorderItemLocator) constraint;
- }
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void refreshBounds() {
- int x = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
- int y = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
- int width = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
- int height = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
- getBorderItemLocator().setConstraint(new Rectangle(x, y, width, height));
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Dependency_2011, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.MultiDependencyLabelEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- IFigure label = createFigurePrim();
- defaultText = getLabelTextHelper(label);
- return label;
- }
-
- /**
- * @generated
- */
- protected IFigure createFigurePrim() {
- return new WrappingLabel();
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.figures.IBorderItemLocator;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusLabelEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.ExternalLabelPrimaryDragRoleEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class MultiDependencyLabelEditPart extends PapyrusLabelEditPart implements ITextAwareEditPart, IBorderItemEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 7;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ static {
+ registerSnapBackPosition(UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.MultiDependencyLabelEditPart.VISUAL_ID), new Point(0, 0));
+ }
+
+ /**
+ * @generated
+ */
+ public MultiDependencyLabelEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ExternalLabelPrimaryDragRoleEditPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IBorderItemLocator getBorderItemLocator() {
+ IFigure parentFigure = getFigure().getParent();
+ if (parentFigure != null && parentFigure.getLayoutManager() != null) {
+ Object constraint = parentFigure.getLayoutManager().getConstraint(getFigure());
+ return (IBorderItemLocator) constraint;
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void refreshBounds() {
+ int x = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_X())).intValue();
+ int y = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getLocation_Y())).intValue();
+ int width = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Width())).intValue();
+ int height = ((Integer) getStructuralFeatureValue(NotationPackage.eINSTANCE.getSize_Height())).intValue();
+ getBorderItemLocator().setConstraint(new Rectangle(x, y, width, height));
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Dependency_2011, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.MultiDependencyLabelEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ IFigure label = createFigurePrim();
+ defaultText = getLabelTextHelper(label);
+ return label;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFigurePrim() {
+ return new WrappingLabel();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNameEditPart.java
index 0148cffc629..9ab1a5a43cb 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNameEditPart.java
@@ -1,871 +1,856 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 41;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public NestedArtifactNameEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Artifact_40, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNameEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class NestedArtifactNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 41;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public NestedArtifactNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Artifact_40, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNodeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNodeEditPartCN.java
index 7d53ed6db5d..00abb51046f 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNodeEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedArtifactNodeEditPartCN.java
@@ -1,276 +1,280 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.NodeEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.NestedArtifactNodeItemSemanticEditPolicyCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class NestedArtifactNodeEditPartCN extends NodeEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 40;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public NestedArtifactNodeEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new NestedArtifactNodeItemSemanticEditPolicyCN());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
- installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
- installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new ArtifactFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure
- *
- * @generated
- */
- @Override
- public ArtifactFigure getPrimaryShape() {
- return (ArtifactFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof NestedArtifactNameEditPart) {
- ((NestedArtifactNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
-
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof NestedArtifactNameEditPart) {
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 70);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createNodeFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(NestedArtifactNameEditPart.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.NodeEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class NestedArtifactNodeEditPartCN extends NodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 40;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public NestedArtifactNodeEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new ArtifactFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ArtifactFigure
+ *
+ * @generated
+ */
+ @Override
+ public ArtifactFigure getPrimaryShape() {
+ return (ArtifactFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof NestedArtifactNameEditPart) {
+ ((NestedArtifactNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof NestedArtifactNameEditPart) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 70);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodeFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(NestedArtifactNameEditPart.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceEditPartCN.java
index 7f5e64af65a..492626257e0 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceEditPartCN.java
@@ -1,293 +1,297 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.NodeEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.NestedDeviceItemSemanticEditPolicyCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class NestedDeviceEditPartCN extends NodeEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 44;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public NestedDeviceEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new NestedDeviceItemSemanticEditPolicyCN());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
- installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
- installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new DeviceFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure
- *
- * @generated
- */
- @Override
- public DeviceFigure getPrimaryShape() {
- return (DeviceFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof NestedDeviceNameEditPartCN) {
- ((NestedDeviceNameEditPartCN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
-
-
- if (childEditPart instanceof DeviceCompositeCompartmentEditPartCN) {
- IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
- pane.add(((DeviceCompositeCompartmentEditPartCN) childEditPart).getFigure());
- return true;
- }
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof NestedDeviceNameEditPartCN) {
- return true;
- }
- if (childEditPart instanceof DeviceCompositeCompartmentEditPartCN) {
- IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- pane.remove(((DeviceCompositeCompartmentEditPartCN) childEditPart).getFigure());
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- if (editPart instanceof DeviceCompositeCompartmentEditPartCN) {
- return getPrimaryShape().getCompositeCompartmentFigure();
- }
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 100);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createNodeFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(NestedDeviceNameEditPartCN.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.NodeEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class NestedDeviceEditPartCN extends NodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 44;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public NestedDeviceEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new DeviceFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.DeviceFigure
+ *
+ * @generated
+ */
+ @Override
+ public DeviceFigure getPrimaryShape() {
+ return (DeviceFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof NestedDeviceNameEditPartCN) {
+ ((NestedDeviceNameEditPartCN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+
+ if (childEditPart instanceof DeviceCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((DeviceCompositeCompartmentEditPartCN) childEditPart).getFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof NestedDeviceNameEditPartCN) {
+ return true;
+ }
+ if (childEditPart instanceof DeviceCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ pane.remove(((DeviceCompositeCompartmentEditPartCN) childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if (editPart instanceof DeviceCompositeCompartmentEditPartCN) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 100);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodeFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(NestedDeviceNameEditPartCN.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceNameEditPartCN.java
index d6b94256014..52e2f24ea0d 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceNameEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedDeviceNameEditPartCN.java
@@ -1,871 +1,856 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 45;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public NestedDeviceNameEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Device_44, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceNameEditPartCN.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class NestedDeviceNameEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 45;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public NestedDeviceNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Device_44, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentEditPartCN.java
index d4f241e17e0..edc34e77914 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentEditPartCN.java
@@ -1,293 +1,297 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.NodeEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.NestedExecutionEnvironmentItemSemanticEditPolicyCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class NestedExecutionEnvironmentEditPartCN extends NodeEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 46;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public NestedExecutionEnvironmentEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new NestedExecutionEnvironmentItemSemanticEditPolicyCN());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
- installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
- installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new ExecutionEnvironmentFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure
- *
- * @generated
- */
- @Override
- public ExecutionEnvironmentFigure getPrimaryShape() {
- return (ExecutionEnvironmentFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof NestedExecutionEnvironmentNameEditPartCN) {
- ((NestedExecutionEnvironmentNameEditPartCN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
-
-
- if (childEditPart instanceof ExecutionEnvironmentCompositeCompartmentEditPartCN) {
- IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
- pane.add(((ExecutionEnvironmentCompositeCompartmentEditPartCN) childEditPart).getFigure());
- return true;
- }
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof NestedExecutionEnvironmentNameEditPartCN) {
- return true;
- }
- if (childEditPart instanceof ExecutionEnvironmentCompositeCompartmentEditPartCN) {
- IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- pane.remove(((ExecutionEnvironmentCompositeCompartmentEditPartCN) childEditPart).getFigure());
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- if (editPart instanceof ExecutionEnvironmentCompositeCompartmentEditPartCN) {
- return getPrimaryShape().getCompositeCompartmentFigure();
- }
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 100);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createNodeFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(NestedExecutionEnvironmentNameEditPartCN.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.NodeEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class NestedExecutionEnvironmentEditPartCN extends NodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 46;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public NestedExecutionEnvironmentEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new ExecutionEnvironmentFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.ExecutionEnvironmentFigure
+ *
+ * @generated
+ */
+ @Override
+ public ExecutionEnvironmentFigure getPrimaryShape() {
+ return (ExecutionEnvironmentFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof NestedExecutionEnvironmentNameEditPartCN) {
+ ((NestedExecutionEnvironmentNameEditPartCN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+
+ if (childEditPart instanceof ExecutionEnvironmentCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((ExecutionEnvironmentCompositeCompartmentEditPartCN) childEditPart).getFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof NestedExecutionEnvironmentNameEditPartCN) {
+ return true;
+ }
+ if (childEditPart instanceof ExecutionEnvironmentCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ pane.remove(((ExecutionEnvironmentCompositeCompartmentEditPartCN) childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if (editPart instanceof ExecutionEnvironmentCompositeCompartmentEditPartCN) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 100);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodeFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(NestedExecutionEnvironmentNameEditPartCN.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentNameEditPartCN.java
index 6cc959237be..4d66b52b3bc 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentNameEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedExecutionEnvironmentNameEditPartCN.java
@@ -1,871 +1,856 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 47;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public NestedExecutionEnvironmentNameEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.ExecutionEnvironment_46, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentNameEditPartCN.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class NestedExecutionEnvironmentNameEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 47;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public NestedExecutionEnvironmentNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.ExecutionEnvironment_46, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeEditPartCN.java
index e39c39b5f59..86fe71668a2 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeEditPartCN.java
@@ -1,292 +1,296 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.NodeEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.NestedNodeItemSemanticEditPolicyCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class NestedNodeEditPartCN extends NodeEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 42;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public NestedNodeEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new NestedNodeItemSemanticEditPolicyCN());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
- installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
- installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new NodeFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure
- *
- * @generated
- */
- @Override
- public NodeFigure getPrimaryShape() {
- return (NodeFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof NestedNodeNameEditPart) {
- ((NestedNodeNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
-
-
- if (childEditPart instanceof NodeCompositeCompartmentEditPartCN) {
- IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
- pane.add(((NodeCompositeCompartmentEditPartCN) childEditPart).getFigure());
- return true;
- }
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof NestedNodeNameEditPart) {
- return true;
- }
- if (childEditPart instanceof NodeCompositeCompartmentEditPartCN) {
- IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- pane.remove(((NodeCompositeCompartmentEditPartCN) childEditPart).getFigure());
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- if (editPart instanceof NodeCompositeCompartmentEditPartCN) {
- return getPrimaryShape().getCompositeCompartmentFigure();
- }
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure createNodeFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(NestedNodeNameEditPart.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.NodeEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class NestedNodeEditPartCN extends NodeEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 42;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public NestedNodeEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new NodeFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure
+ *
+ * @generated
+ */
+ @Override
+ public NodeFigure getPrimaryShape() {
+ return (NodeFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof NestedNodeNameEditPart) {
+ ((NestedNodeNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+
+ if (childEditPart instanceof NodeCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((NodeCompositeCompartmentEditPartCN) childEditPart).getFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof NestedNodeNameEditPart) {
+ return true;
+ }
+ if (childEditPart instanceof NodeCompositeCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ pane.remove(((NodeCompositeCompartmentEditPartCN) childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if (editPart instanceof NodeCompositeCompartmentEditPartCN) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure createNodeFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(NestedNodeNameEditPart.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeNameEditPart.java
index 32e928d958f..96651b4eac9 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NestedNodeNameEditPart.java
@@ -1,871 +1,856 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 43;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public NestedNodeNameEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Node_42, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeNameEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class NestedNodeNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 43;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public NestedNodeNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Node_42, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPart.java
index 9d0feb8b630..d9145e3717f 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPart.java
@@ -25,11 +25,11 @@ import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.PapyrusCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.NodeCompositeCompartmentItemSemanticEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.part.Messages;
/**
@@ -63,12 +63,12 @@ public class NodeCompositeCompartmentEditPart extends ShapeCompartmentEditPart {
@Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new NodeCompositeCompartmentItemSemanticEditPolicy());
- installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PapyrusCreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- // in Papyrus diagrams are not strongly synchronised
- // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.NodeCompositeCompartmentCanonicalEditPolicy());
+ //in Papyrus diagrams are not strongly synchronised
+ //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.NodeCompositeCompartmentCanonicalEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPartCN.java
index 4eac96a1fb5..2940a6f83da 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeCompositeCompartmentEditPartCN.java
@@ -26,11 +26,11 @@ import org.eclipse.gmf.runtime.diagram.ui.editpolicies.ResizableCompartmentEditP
import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.PapyrusCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.NodeCompositeCompartmentItemSemanticEditPolicyCN;
import org.eclipse.papyrus.uml.diagram.deployment.part.Messages;
/**
@@ -65,12 +65,12 @@ public class NodeCompositeCompartmentEditPartCN extends ShapeCompartmentEditPart
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy());
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new NodeCompositeCompartmentItemSemanticEditPolicyCN());
- installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PapyrusCreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- // in Papyrus diagrams are not strongly synchronised
- // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.NodeCompositeCompartmentCanonicalEditPolicyCN());
+ //in Papyrus diagrams are not strongly synchronised
+ //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.NodeCompositeCompartmentCanonicalEditPolicyCN());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPart.java
index 3801bec7337..44ba1d486d7 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPart.java
@@ -1,304 +1,308 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editparts.NamedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.NodeItemSemanticEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class NodeEditPart extends NamedElementEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 2008;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public NodeEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new NodeItemSemanticEditPolicy());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
- installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
- installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * Papyrus codeGen
- *
- * @generated
- **/
- @Override
- protected void handleNotificationEvent(Notification event) {
- super.handleNotificationEvent(event);
-
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new NodeFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure
- *
- * @generated
- */
- @Override
- public NodeFigure getPrimaryShape() {
- return (NodeFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof NodeNameEditPart) {
- ((NodeNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
-
-
- if (childEditPart instanceof NodeCompositeCompartmentEditPart) {
- IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
- pane.add(((NodeCompositeCompartmentEditPart) childEditPart).getFigure());
- return true;
- }
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof NodeNameEditPart) {
- return true;
- }
- if (childEditPart instanceof NodeCompositeCompartmentEditPart) {
- IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
- pane.remove(((NodeCompositeCompartmentEditPart) childEditPart).getFigure());
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- if (editPart instanceof NodeCompositeCompartmentEditPart) {
- return getPrimaryShape().getCompositeCompartmentFigure();
- }
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure createNodeFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(NodeNameEditPart.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class NodeEditPart extends NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2008;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public NodeEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new NodeFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure
+ *
+ * @generated
+ */
+ @Override
+ public NodeFigure getPrimaryShape() {
+ return (NodeFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof NodeNameEditPart) {
+ ((NodeNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+
+ if (childEditPart instanceof NodeCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((NodeCompositeCompartmentEditPart) childEditPart).getFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof NodeNameEditPart) {
+ return true;
+ }
+ if (childEditPart instanceof NodeCompositeCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getCompositeCompartmentFigure();
+ pane.remove(((NodeCompositeCompartmentEditPart) childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if (editPart instanceof NodeCompositeCompartmentEditPart) {
+ return getPrimaryShape().getCompositeCompartmentFigure();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure createNodeFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(NodeNameEditPart.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPartCN.java
index 774e6a022df..aad088bb1cd 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeEditPartCN.java
@@ -1,289 +1,293 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editparts.NamedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.NodeItemSemanticEditPolicyCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class NodeEditPartCN extends NamedElementEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 23;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public NodeEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new NodeItemSemanticEditPolicyCN());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
- installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
- installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
- installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * Papyrus codeGen
- *
- * @generated
- **/
- @Override
- protected void handleNotificationEvent(Notification event) {
- super.handleNotificationEvent(event);
-
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new NodeFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure
- *
- * @generated
- */
- @Override
- public NodeFigure getPrimaryShape() {
- return (NodeFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof NodeNameEditPartCN) {
- ((NodeNameEditPartCN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
-
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof NodeNameEditPartCN) {
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure createNodeFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(NodeNameEditPartCN.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editparts.NamedElementEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.QualifiedNameDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideClassifierContentsEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.RemoveOrphanViewPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class NodeEditPartCN extends NamedElementEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 23;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public NodeEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(QualifiedNameDisplayEditPolicy.QUALIFIED_NAME_POLICY, new QualifiedNameDisplayEditPolicy());
+ installEditPolicy("REMOVE_ORPHAN_VIEW", new RemoveOrphanViewPolicy()); //$NON-NLS-1$
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(ShowHideClassifierContentsEditPolicy.SHOW_HIDE_CLASSIFIER_CONTENTS_POLICY, new ShowHideClassifierContentsEditPolicy());
+ installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new NodeFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.deployment.custom.figure.nodes.NodeFigure
+ *
+ * @generated
+ */
+ @Override
+ public NodeFigure getPrimaryShape() {
+ return (NodeFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof NodeNameEditPartCN) {
+ ((NodeNameEditPartCN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof NodeNameEditPartCN) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure createNodeFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(NodeNameEditPartCN.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPart.java
index e8d2fa79001..61894200a6b 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPart.java
@@ -1,871 +1,856 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class NodeNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 9;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public NodeNameEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Node_2008, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeNameEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class NodeNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 9;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public NodeNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Node_2008, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPartCN.java
index 0f90a742615..5bc6411689a 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/NodeNameEditPartCN.java
@@ -1,871 +1,856 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class NodeNameEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 24;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public NodeNameEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Node_23, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeNameEditPartCN.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class NodeNameEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 24;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public NodeNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Node_23, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPart.java
index a088bf2312d..da6664e82aa 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPart.java
@@ -1,298 +1,302 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.PackageItemSemanticEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class PackageEditPart extends org.eclipse.papyrus.uml.diagram.common.editparts.PackageEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 2009;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public PackageEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new PackageItemSemanticEditPolicy());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * Papyrus codeGen
- *
- * @generated
- **/
- @Override
- protected void handleNotificationEvent(Notification event) {
- super.handleNotificationEvent(event);
-
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new PackageFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure
- *
- * @generated
- */
- @Override
- public PackageFigure getPrimaryShape() {
- return (PackageFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof PackageNameEditPart) {
- ((PackageNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
-
-
- if (childEditPart instanceof PackagePackageableElementCompartmentEditPart) {
- IFigure pane = getPrimaryShape().getPackageableElementFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
- pane.add(((PackagePackageableElementCompartmentEditPart) childEditPart).getFigure());
- return true;
- }
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof PackageNameEditPart) {
- return true;
- }
- if (childEditPart instanceof PackagePackageableElementCompartmentEditPart) {
- IFigure pane = getPrimaryShape().getPackageableElementFigure();
- pane.remove(((PackagePackageableElementCompartmentEditPart) childEditPart).getFigure());
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- if (editPart instanceof PackagePackageableElementCompartmentEditPart) {
- return getPrimaryShape().getPackageableElementFigure();
- }
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createNodeFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(PackageNameEditPart.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class PackageEditPart extends org.eclipse.papyrus.uml.diagram.common.editparts.PackageEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 2009;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public PackageEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new PackageFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure
+ *
+ * @generated
+ */
+ @Override
+ public PackageFigure getPrimaryShape() {
+ return (PackageFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof PackageNameEditPart) {
+ ((PackageNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+
+ if (childEditPart instanceof PackagePackageableElementCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getPackageableElementFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((PackagePackageableElementCompartmentEditPart) childEditPart).getFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof PackageNameEditPart) {
+ return true;
+ }
+ if (childEditPart instanceof PackagePackageableElementCompartmentEditPart) {
+ IFigure pane = getPrimaryShape().getPackageableElementFigure();
+ pane.remove(((PackagePackageableElementCompartmentEditPart) childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if (editPart instanceof PackagePackageableElementCompartmentEditPart) {
+ return getPrimaryShape().getPackageableElementFigure();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodeFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(PackageNameEditPart.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPartCN.java
index e40687de6f6..555833d82af 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageEditPartCN.java
@@ -1,299 +1,303 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.editpolicies.LayoutEditPolicy;
-import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
-import org.eclipse.gef.requests.CreateRequest;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
-import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
-import org.eclipse.papyrus.uml.diagram.common.editparts.PackageEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.PackageItemSemanticEditPolicyCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.graphics.Color;
-
-/**
- * @generated
- */
-public class PackageEditPartCN extends PackageEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 36;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public PackageEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new PackageItemSemanticEditPolicyCN());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
- installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
- installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
- // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
- // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * Papyrus codeGen
- *
- * @generated
- **/
- @Override
- protected void handleNotificationEvent(Notification event) {
- super.handleNotificationEvent(event);
-
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new PackageFigure();
- }
-
- /**
- * org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure
- *
- * @generated
- */
- @Override
- public PackageFigure getPrimaryShape() {
- return (PackageFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof PackageNameEditPartCN) {
- ((PackageNameEditPartCN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
-
-
- if (childEditPart instanceof PackagePackageableElementCompartmentEditPartCN) {
- IFigure pane = getPrimaryShape().getPackageableElementFigure();
- setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
- pane.add(((PackagePackageableElementCompartmentEditPartCN) childEditPart).getFigure());
- return true;
- }
-
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof PackageNameEditPartCN) {
- return true;
- }
- if (childEditPart instanceof PackagePackageableElementCompartmentEditPartCN) {
- IFigure pane = getPrimaryShape().getPackageableElementFigure();
- pane.remove(((PackagePackageableElementCompartmentEditPartCN) childEditPart).getFigure());
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- if (editPart instanceof PackagePackageableElementCompartmentEditPartCN) {
- return getPrimaryShape().getPackageableElementFigure();
- }
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
- return result;
- }
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- @Override
- protected NodeFigure createNodeFigure() {
- return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
-
- }
-
- /**
- * Default implementation treats passed figure as content pane.
- * Respects layout one may have set for generated figure.
- *
- * @param nodeShape
- * instance of generated figure class
- * @generated
- */
- @Override
- protected IFigure setupContentPane(IFigure nodeShape) {
- if (nodeShape.getLayoutManager() == null) {
- ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
- layout.setSpacing(5);
- nodeShape.setLayoutManager(layout);
- }
- return nodeShape; // use nodeShape itself as contentPane
- }
-
- /**
- * @generated
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- super.setLineWidth(width);
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) {
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(PackageNameEditPartCN.VISUAL_ID));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.editpolicies.LayoutEditPolicy;
+import org.eclipse.gef.editpolicies.NonResizableEditPolicy;
+import org.eclipse.gef.requests.CreateRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
+import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.RoundedRectangleNodePlateFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.figure.node.SelectableBorderedNodeFigure;
+import org.eclipse.papyrus.uml.diagram.common.editparts.PackageEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ConstrainedItemBorderLayoutEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ShowHideCompartmentEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomGraphicalNodeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.graphics.Color;
+
+/**
+ * @generated
+ */
+public class PackageEditPartCN extends PackageEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 36;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public PackageEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultSemanticEditPolicy());
+
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new DefaultGraphicalNodeEditPolicy());
+
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(ShowHideCompartmentEditPolicy.SHOW_HIDE_COMPARTMENT_POLICY, new ShowHideCompartmentEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
+ installEditPolicy("RESIZE_BORDER_ITEMS", new ConstrainedItemBorderLayoutEditPolicy()); //$NON-NLS-1$
+ installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomGraphicalNodeEditPolicy());
+ // XXX need an SCR to runtime to have another abstract superclass that would let children add reasonable editpolicies
+ // removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * Papyrus codeGen
+ *
+ * @generated
+ **/
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ super.handleNotificationEvent(event);
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new PackageFigure();
+ }
+
+ /**
+ * org.eclipse.papyrus.uml.diagram.common.figure.node.PackageFigure
+ *
+ * @generated
+ */
+ @Override
+ public PackageFigure getPrimaryShape() {
+ return (PackageFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof PackageNameEditPartCN) {
+ ((PackageNameEditPartCN) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+
+
+ if (childEditPart instanceof PackagePackageableElementCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getPackageableElementFigure();
+ setupContentPane(pane); // FIXME each comparment should handle his content pane in his own way
+ pane.add(((PackagePackageableElementCompartmentEditPartCN) childEditPart).getFigure());
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof PackageNameEditPartCN) {
+ return true;
+ }
+ if (childEditPart instanceof PackagePackageableElementCompartmentEditPartCN) {
+ IFigure pane = getPrimaryShape().getPackageableElementFigure();
+ pane.remove(((PackagePackageableElementCompartmentEditPartCN) childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if (editPart instanceof PackagePackageableElementCompartmentEditPartCN) {
+ return getPrimaryShape().getPackageableElementFigure();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ RoundedRectangleNodePlateFigure result = new RoundedRectangleNodePlateFigure(150, 150);
+ return result;
+ }
+
+ /**
+ * Creates figure for this edit part.
+ *
+ * Body of this method does not depend on settings in generation model
+ * so you may safely remove <i>generated</i> tag and modify it.
+ *
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodeFigure() {
+ return new SelectableBorderedNodeFigure(createMainFigureWithSVG());
+
+ }
+
+ /**
+ * Default implementation treats passed figure as content pane.
+ * Respects layout one may have set for generated figure.
+ *
+ * @param nodeShape
+ * instance of generated figure class
+ * @generated
+ */
+ @Override
+ protected IFigure setupContentPane(IFigure nodeShape) {
+ if (nodeShape.getLayoutManager() == null) {
+ ConstrainedToolbarLayout layout = new ConstrainedToolbarLayout();
+ layout.setSpacing(5);
+ nodeShape.setLayoutManager(layout);
+ }
+ return nodeShape; // use nodeShape itself as contentPane
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ super.setLineWidth(width);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) {
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(PackageNameEditPartCN.VISUAL_ID));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPart.java
index 55b5972c5f2..b92c345fffc 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPart.java
@@ -1,888 +1,873 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.emf.appearance.helper.AppearanceHelper;
-import org.eclipse.papyrus.infra.emf.appearance.helper.VisualInformationPapyrusConstants;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.common.util.DiagramEditPartsUtil;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class PackageNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 35;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public PackageNameEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- EObject parserElement = getParserElement();
- if (parserElement == null) {
- return null;
- }
- List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
- for (View view : views) {
- if (AppearanceHelper.showElementIcon(view)) {
- return UMLElementTypes.getImage(parserElement.eClass());
- }
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Package_2009, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageNameEditPart.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- if (event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstants.DISPLAY_NAMELABELICON.equals(((EAnnotation) event.getNewValue()).getSource())) {
- refreshLabel();
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.emf.appearance.helper.AppearanceHelper;
+import org.eclipse.papyrus.infra.emf.appearance.helper.VisualInformationPapyrusConstants;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class PackageNameEditPart extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 35;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public PackageNameEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if (parserElement == null) {
+ return null;
+ }
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for (View view : views) {
+ if (AppearanceHelper.showElementIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Package_2009, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageNameEditPart.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if (event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstants.DISPLAY_NAMELABELICON.equals(((EAnnotation) event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPartCN.java
index ba411a82b87..42f83e13b87 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackageNameEditPartCN.java
@@ -1,888 +1,873 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.RunnableWithResult;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.AccessibleEditPart;
-import org.eclipse.gef.EditPolicy;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.requests.DirectEditRequest;
-import org.eclipse.gef.tools.DirectEditManager;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
-import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
-import org.eclipse.jface.viewers.ICellEditorValidator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.extensionpoints.editors.Activator;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
-import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
-import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
-import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
-import org.eclipse.papyrus.infra.emf.appearance.helper.AppearanceHelper;
-import org.eclipse.papyrus.infra.emf.appearance.helper.VisualInformationPapyrusConstants;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
-import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
-import org.eclipse.papyrus.uml.diagram.common.util.DiagramEditPartsUtil;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Feature;
-
-/**
- * @generated
- */
-public class PackageNameEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 37;
-
- /**
- * @generated
- */
- private DirectEditManager manager;
-
- /**
- * @generated
- */
- private IParser parser;
-
- /**
- * @generated
- */
- private List<?> parserElements;
-
- /**
- * @generated
- */
- private String defaultText;
-
- /**
- * direct edition mode (default, undefined, registered editor, etc.)
- *
- * @generated
- */
- protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
-
- /**
- * configuration from a registered edit dialog
- *
- * @generated
- */
- protected IDirectEditorConfiguration configuration;
-
- /**
- * @generated
- */
- public PackageNameEditPartCN(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
- installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
- installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
- }
-
- /**
- * @generated
- */
- protected String getLabelTextHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getText();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getText();
- } else {
- return ((Label) figure).getText();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelTextHelper(IFigure figure, String text) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setText(text);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setText(text);
- } else {
- ((Label) figure).setText(text);
- }
- }
-
- /**
- * @generated
- */
- protected Image getLabelIconHelper(IFigure figure) {
- if (figure instanceof WrappingLabel) {
- return ((WrappingLabel) figure).getIcon();
- } else if (figure instanceof ILabelFigure) {
- return ((ILabelFigure) figure).getIcon();
- } else {
- return ((Label) figure).getIcon();
- }
- }
-
- /**
- * @generated
- */
- protected void setLabelIconHelper(IFigure figure, Image icon) {
- if (figure instanceof WrappingLabel) {
- ((WrappingLabel) figure).setIcon(icon);
- } else if (figure instanceof ILabelFigure) {
- ((ILabelFigure) figure).setIcon(icon);
- } else {
- ((Label) figure).setIcon(icon);
- }
- }
-
- /**
- * @generated
- */
- public void setLabel(IFigure
- figure) {
- unregisterVisuals();
- setFigure(figure);
- defaultText = getLabelTextHelper(figure);
- registerVisuals();
- refreshVisuals();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> getModelChildren() {
- return Collections.EMPTY_LIST;
- }
-
- /**
- * @generated
- */
- @Override
- public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setParser(IParser parser) {
- this.parser = parser;
- }
-
- /**
- * @generated
- */
- protected EObject getParserElement() {
- return resolveSemanticElement();
- }
-
- /**
- * @generated
- */
- protected Image getLabelIcon() {
- EObject parserElement = getParserElement();
- if (parserElement == null) {
- return null;
- }
- List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
- for (View view : views) {
- if (AppearanceHelper.showElementIcon(view)) {
- return UMLElementTypes.getImage(parserElement.eClass());
- }
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected String getLabelText() {
- String text = null;
- EObject parserElement = getParserElement();
- if (parserElement != null && getParser() != null) {
- text = getParser().getPrintString(
- new EObjectAdapter(parserElement),
- getParserOptions().intValue());
- }
- if (text == null || text.length() == 0) {
- text = defaultText;
- }
- return text;
- }
-
- /**
- * @generated
- */
- @Override
- public void setLabelText(String text) {
- setLabelTextHelper(getFigure(), text);
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditText() {
- if (getParserElement() == null || getParser() == null) {
- return ""; //$NON-NLS-1$
- }
- return getParser().getEditString(
- new EObjectAdapter(getParserElement()),
- getParserOptions().intValue());
- }
-
- /**
- * @generated
- */
- protected boolean isEditable() {
- return getParser() != null;
- }
-
- /**
- * @generated
- */
- @Override
- public ICellEditorValidator getEditTextValidator() {
- return new ICellEditorValidator() {
-
- @Override
- public String isValid(final Object value) {
- if (value instanceof String) {
- final EObject element = getParserElement();
- final IParser parser = getParser();
- try {
- IParserEditStatus valid =
- (IParserEditStatus) getEditingDomain().runExclusive(
- new RunnableWithResult.Impl<java.lang.Object>() {
-
- @Override
- public void run() {
- setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
- }
- });
- return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
- } catch (InterruptedException ie) {
- ie.printStackTrace();
- }
- }
-
- // shouldn't get here
- return null;
- }
- };
- }
-
- /**
- * @generated
- */
- @Override
- public IContentAssistProcessor getCompletionProcessor() {
- if (getParserElement() == null || getParser() == null) {
- return null;
- }
- return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
- }
-
- /**
- * @generated
- */
- @Override
- public ParserOptions getParserOptions() {
- return ParserOptions.NONE;
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser() {
- if (parser == null) {
- parser = UMLParserProvider.getParser(UMLElementTypes.Package_36, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageNameEditPartCN.VISUAL_ID));
- }
- return parser;
- }
-
- /**
- * @generated
- */
- protected DirectEditManager getManager() {
- if (manager == null) {
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- }
- return manager;
- }
-
- /**
- * @generated
- */
- protected void setManager(DirectEditManager manager) {
- this.manager = manager;
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit() {
- BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
-
- @Override
- public void run() {
- getManager().show();
- }
- });
- }
-
- /**
- * @generated
- */
- protected void performDirectEdit(Point eventLocation) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
- }
- }
-
- /**
- * @generated
- */
- private void performDirectEdit(char initialCharacter) {
- if (getManager() instanceof TextDirectEditManager) {
- ((TextDirectEditManager) getManager()).show(initialCharacter);
- } else {
- performDirectEdit();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void performDirectEditRequest(Request request) {
-
- final Request theRequest = request;
-
- if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
- directEditionMode = getDirectEditionType();
- }
- switch (directEditionMode) {
- case IDirectEdition.NO_DIRECT_EDITION:
- // no direct edition mode => does nothing
- return;
- case IDirectEdition.EXTENDED_DIRECT_EDITOR:
- updateExtendedEditorConfiguration();
- if (configuration == null || configuration.getLanguage() == null) {
- // Create default edit manager
- setManager(new MultilineLabelDirectEditManager(this,
- MultilineLabelDirectEditManager.getTextCellEditorClass(this),
- UMLEditPartFactory.getTextCellEditorLocator(this)));
- performDefaultDirectEditorEdit(theRequest);
- } else {
- configuration.preEditAction(resolveSemanticElement());
- Dialog dialog = null;
- if (configuration instanceof ICustomDirectEditorConfiguration) {
- setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
- initializeDirectEditManager(theRequest);
- return;
- } else if (configuration instanceof IPopupEditorConfiguration) {
- IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
- helper.showEditor();
- return;
- }
- else if (configuration instanceof IAdvancedEditorConfiguration) {
- dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
- } else if (configuration instanceof IDirectEditorConfiguration) {
- dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()),
- configuration);
- } else {
- return;
- }
- final Dialog finalDialog = dialog;
-
- if (Window.OK == dialog.open()) {
- TransactionalEditingDomain domain = getEditingDomain();
- RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
-
- @Override
- protected void doExecute() {
- configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
-
- }
- };
- domain.getCommandStack().execute(command);
- }
- }
- break;
- case IDirectEdition.DEFAULT_DIRECT_EDITOR:
- initializeDirectEditManager(theRequest);
- break;
- default:
- break;
- }
- }
-
- /**
- * @generated
- */
- protected void initializeDirectEditManager(final Request request) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (request.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- }
- else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshVisuals() {
- super.refreshVisuals();
- refreshLabel();
- refreshFont();
- refreshFontColor();
- refreshUnderline();
- refreshStrikeThrough();
- }
-
- /**
- * @generated
- */
- protected void refreshLabel() {
- EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
- if (maskLabelPolicy == null) {
- maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
- }
- if (maskLabelPolicy == null) {
- View view = (View) getModel();
- if (view.isVisible()) {
- setLabelTextHelper(getFigure(), getLabelText());
- setLabelIconHelper(getFigure(), getLabelIcon());
- }
- else {
- setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
- setLabelIconHelper(getFigure(), null);
- }
- }
- Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
- }
- Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
- if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
- ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
- }
- }
-
- /**
- * @generated
- */
- protected void refreshUnderline() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
- }
- if (resolveSemanticElement() instanceof Feature) {
- if (((Feature) resolveSemanticElement()).isStatic()) {
- ((WrappingLabel) getFigure()).setTextUnderline(true);
- }
- else {
- ((WrappingLabel) getFigure()).setTextUnderline(false);
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshStrikeThrough() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null && getFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshFont() {
- FontStyle style =
- (FontStyle) getFontStyleOwnerView().getStyle(
- NotationPackage.eINSTANCE.getFontStyle());
- if (style != null) {
- FontData fontData = new FontData(
- style.getFontName(), style.getFontHeight(),
- (style.isBold() ? SWT.BOLD : SWT.NORMAL) |
- (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
- setFont(fontData);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setFontColor(Color color) {
- getFigure().setForegroundColor(color);
- }
-
- /**
- * @generated
- */
- @Override
- protected void addSemanticListeners() {
- if (getParser() instanceof ISemanticParser) {
- EObject element = resolveSemanticElement();
- parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
- for (int i = 0; i < parserElements.size(); i++) {
- addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
- }
- } else {
- super.addSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeSemanticListeners() {
- if (parserElements != null) {
- for (int i = 0; i < parserElements.size(); i++) {
- removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
- }
- } else {
- super.removeSemanticListeners();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected AccessibleEditPart getAccessibleEditPart() {
- if (accessibleEP == null) {
- accessibleEP = new AccessibleGraphicalEditPart() {
-
- @Override
- public void getName(AccessibleEvent e) {
- e.result = getLabelTextHelper(getFigure());
- }
- };
- }
- return accessibleEP;
- }
-
- /**
- * @generated
- */
- private View getFontStyleOwnerView() {
- return getPrimaryView();
- }
-
- /**
- * Returns the kind of associated editor for direct edition.
- *
- * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
- * @generated
- */
- public int getDirectEditionType() {
- if (checkExtendedEditor()) {
- initExtendedEditorConfiguration();
- return IDirectEdition.EXTENDED_DIRECT_EDITOR;
- }
- if (checkDefaultEdition()) {
- return IDirectEdition.DEFAULT_DIRECT_EDITOR;
- }
-
- // not a named element. no specific editor => do nothing
- return IDirectEdition.NO_DIRECT_EDITION;
- }
-
- /**
- * Checks if an extended editor is present.
- *
- * @return <code>true</code> if an extended editor is present.
- * @generated
- */
- protected boolean checkExtendedEditor() {
- if (resolveSemanticElement() != null) {
- return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement().eClass().getInstanceClassName());
- }
- return false;
- }
-
- /**
- * Checks if a default direct edition is available
- *
- * @return <code>true</code> if a default direct edition is available
- * @generated
- */
- protected boolean checkDefaultEdition() {
- return (getParser() != null);
- }
-
- /**
- * Initializes the extended editor configuration
- *
- * @generated
- */
- protected void initExtendedEditorConfiguration() {
- if (configuration == null) {
- final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("")) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement().eClass().getInstanceClassName());
- } else {
- configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement().eClass().getInstanceClassName());
- }
- }
- }
-
- /**
- * Updates the preference configuration
- *
- * @generated
- */
- protected void updateExtendedEditorConfiguration() {
- String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
- IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
- if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
- configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement()
- .eClass().getInstanceClassName());
- } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
- configuration = null;
- }
- }
-
- /**
- * Performs the direct edit usually used by GMF editors.
- *
- * @param theRequest
- * the direct edit request that starts the direct edit system
- * @generated
- */
- protected void performDefaultDirectEditorEdit(final Request theRequest) {
- // initialize the direct edit manager
- try {
- getEditingDomain().runExclusive(new Runnable() {
-
- @Override
- public void run() {
- if (isActive() && isEditable()) {
- if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
- Character initialChar = (Character) theRequest.getExtendedData().get(
- RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
- performDirectEdit(initialChar.charValue());
- } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
- DirectEditRequest editRequest = (DirectEditRequest) theRequest;
- performDirectEdit(editRequest.getLocation());
- } else {
- performDirectEdit();
- }
- }
- }
- });
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void addNotationalListeners() {
- super.addNotationalListeners();
- addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeNotationalListeners() {
- super.removeNotationalListeners();
- removeListenerFilter("PrimaryView"); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- @Override
- protected void handleNotificationEvent(Notification event) {
- refreshLabel();
- Object feature = event.getFeature();
- if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
- Integer c = (Integer) event.getNewValue();
- setFontColor(DiagramColorRegistry.getInstance().getColor(c));
- } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
- refreshUnderline();
- } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
- refreshStrikeThrough();
- } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature) ||
- NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
- refreshFont();
- } else {
- if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
- refreshLabel();
- }
- if (getParser() instanceof ISemanticParser) {
- ISemanticParser modelParser =
- (ISemanticParser) getParser();
- if (modelParser.areSemanticElementsAffected(null, event)) {
- removeSemanticListeners();
- if (resolveSemanticElement() != null) {
- addSemanticListeners();
- }
- refreshLabel();
- }
- }
- }
- if (event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstants.DISPLAY_NAMELABELICON.equals(((EAnnotation) event.getNewValue()).getSource())) {
- refreshLabel();
- }
- super.handleNotificationEvent(event);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createFigure() {
- // Parent should assign one using setLabel() method
- return null;
- }
-
- /**
- * @generated
- */
- private static final String ADD_PARENT_MODEL = "AddParentModel";
-
- /**
- * @generated
- */
- @Override
- public void activate() {
- super.activate();
- addOwnerElementListeners();
- }
-
- /**
- * @generated
- */
- protected void addOwnerElementListeners() {
- addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
-
- }
-
- /**
- * @generated
- */
- @Override
- public void deactivate() {
- removeOwnerElementListeners();
- super.deactivate();
-
- }
-
- /**
- * @generated
- */
- protected void removeOwnerElementListeners() {
- removeListenerFilter(ADD_PARENT_MODEL);
-
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.emf.transaction.RunnableWithResult;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.AccessibleEditPart;
+import org.eclipse.gef.EditPolicy;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.requests.DirectEditRequest;
+import org.eclipse.gef.tools.DirectEditManager;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramColorRegistry;
+import org.eclipse.gmf.runtime.diagram.ui.requests.RequestConstants;
+import org.eclipse.gmf.runtime.diagram.ui.tools.TextDirectEditManager;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ISemanticParser;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.policies.DefaultNodeLabelDragPolicy;
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.viewers.ICellEditorValidator;
+import org.eclipse.jface.window.Window;
+import org.eclipse.papyrus.extensionpoints.editors.Activator;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IAdvancedEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.ICustomDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IDirectEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.configuration.IPopupEditorConfiguration;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ExtendedDirectEditionDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.ILabelEditorDialog;
+import org.eclipse.papyrus.extensionpoints.editors.ui.IPopupEditorHelper;
+import org.eclipse.papyrus.extensionpoints.editors.utils.DirectEditorsUtil;
+import org.eclipse.papyrus.extensionpoints.editors.utils.IDirectEditorsIds;
+import org.eclipse.papyrus.infra.emf.appearance.helper.AppearanceHelper;
+import org.eclipse.papyrus.infra.emf.appearance.helper.VisualInformationPapyrusConstants;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.IControlParserForDirectEdit;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpart.PapyrusCompartmentEditPart;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IMaskManagedLabelEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.IndirectMaskLabelEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.directedit.MultilineLabelDirectEditManager;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.ILabelFigure;
+import org.eclipse.papyrus.uml.diagram.common.util.DiagramEditPartsUtil;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLTextSelectionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLParserProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.accessibility.AccessibleEvent;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.FontData;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Feature;
+
+/**
+ * @generated
+ */
+public class PackageNameEditPartCN extends PapyrusCompartmentEditPart implements ITextAwareEditPart, IControlParserForDirectEdit {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 37;
+
+ /**
+ * @generated
+ */
+ private DirectEditManager manager;
+
+ /**
+ * @generated
+ */
+ private IParser parser;
+
+ /**
+ * @generated
+ */
+ private List<?> parserElements;
+
+ /**
+ * @generated
+ */
+ private String defaultText;
+
+ /**
+ * direct edition mode (default, undefined, registered editor, etc.)
+ *
+ * @generated
+ */
+ protected int directEditionMode = IDirectEdition.UNDEFINED_DIRECT_EDITOR;
+
+ /**
+ * configuration from a registered edit dialog
+ *
+ * @generated
+ */
+ protected IDirectEditorConfiguration configuration;
+
+ /**
+ * @generated
+ */
+ public PackageNameEditPartCN(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new UMLTextSelectionEditPolicy());
+ installEditPolicy(EditPolicy.DIRECT_EDIT_ROLE, new LabelDirectEditPolicy());
+ installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new DefaultNodeLabelDragPolicy());
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelTextHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getText();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getText();
+ } else {
+ return ((Label) figure).getText();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelTextHelper(IFigure figure, String text) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setText(text);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setText(text);
+ } else {
+ ((Label) figure).setText(text);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIconHelper(IFigure figure) {
+ if (figure instanceof WrappingLabel) {
+ return ((WrappingLabel) figure).getIcon();
+ } else if (figure instanceof ILabelFigure) {
+ return ((ILabelFigure) figure).getIcon();
+ } else {
+ return ((Label) figure).getIcon();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void setLabelIconHelper(IFigure figure, Image icon) {
+ if (figure instanceof WrappingLabel) {
+ ((WrappingLabel) figure).setIcon(icon);
+ } else if (figure instanceof ILabelFigure) {
+ ((ILabelFigure) figure).setIcon(icon);
+ } else {
+ ((Label) figure).setIcon(icon);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void setLabel(IFigure figure) {
+ unregisterVisuals();
+ setFigure(figure);
+ defaultText = getLabelTextHelper(figure);
+ registerVisuals();
+ refreshVisuals();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> getModelChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IGraphicalEditPart getChildBySemanticHint(String semanticHint) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setParser(IParser parser) {
+ this.parser = parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getParserElement() {
+ return resolveSemanticElement();
+ }
+
+ /**
+ * @generated
+ */
+ protected Image getLabelIcon() {
+ EObject parserElement = getParserElement();
+ if (parserElement == null) {
+ return null;
+ }
+ List<View> views = DiagramEditPartsUtil.findViews(parserElement, getViewer());
+ for (View view : views) {
+ if (AppearanceHelper.showElementIcon(view)) {
+ return UMLElementTypes.getImage(parserElement.eClass());
+ }
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getLabelText() {
+ String text = null;
+ EObject parserElement = getParserElement();
+ if (parserElement != null && getParser() != null) {
+ text = getParser().getPrintString(
+ new EObjectAdapter(parserElement),
+ getParserOptions().intValue());
+ }
+ if (text == null || text.length() == 0) {
+ text = defaultText;
+ }
+ return text;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setLabelText(String text) {
+ setLabelTextHelper(getFigure(), text);
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditText() {
+ if (getParserElement() == null || getParser() == null) {
+ return ""; //$NON-NLS-1$
+ }
+ return getParser().getEditString(
+ new EObjectAdapter(getParserElement()),
+ getParserOptions().intValue());
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean isEditable() {
+ return getParser() != null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICellEditorValidator getEditTextValidator() {
+ return new ICellEditorValidator() {
+
+ @Override
+ public String isValid(final Object value) {
+ if (value instanceof String) {
+ final EObject element = getParserElement();
+ final IParser parser = getParser();
+ try {
+ IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(
+ new RunnableWithResult.Impl<java.lang.Object>() {
+
+ @Override
+ public void run() {
+ setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value));
+ }
+ });
+ return valid.getCode() == IParserEditStatus.EDITABLE ? null : valid.getMessage();
+ } catch (InterruptedException ie) {
+ ie.printStackTrace();
+ }
+ }
+
+ // shouldn't get here
+ return null;
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IContentAssistProcessor getCompletionProcessor() {
+ if (getParserElement() == null || getParser() == null) {
+ return null;
+ }
+ return getParser().getCompletionProcessor(new EObjectAdapter(getParserElement()));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ParserOptions getParserOptions() {
+ return ParserOptions.NONE;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser() {
+ if (parser == null) {
+ parser = UMLParserProvider.getParser(UMLElementTypes.Package_36, getParserElement(), UMLVisualIDRegistry.getType(org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageNameEditPartCN.VISUAL_ID));
+ }
+ return parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected DirectEditManager getManager() {
+ if (manager == null) {
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ }
+ return manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setManager(DirectEditManager manager) {
+ this.manager = manager;
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit() {
+ BusyIndicator.showWhile(Display.getDefault(), new java.lang.Runnable() {
+
+ @Override
+ public void run() {
+ getManager().show();
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ protected void performDirectEdit(Point eventLocation) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(eventLocation.getSWTPoint());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void performDirectEdit(char initialCharacter) {
+ if (getManager() instanceof TextDirectEditManager) {
+ ((TextDirectEditManager) getManager()).show(initialCharacter);
+ } else {
+ performDirectEdit();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performDirectEditRequest(Request request) {
+
+ final Request theRequest = request;
+
+ if (IDirectEdition.UNDEFINED_DIRECT_EDITOR == directEditionMode) {
+ directEditionMode = getDirectEditionType();
+ }
+ switch (directEditionMode) {
+ case IDirectEdition.NO_DIRECT_EDITION:
+ // no direct edition mode => does nothing
+ return;
+ case IDirectEdition.EXTENDED_DIRECT_EDITOR:
+ updateExtendedEditorConfiguration();
+ if (configuration == null || configuration.getLanguage() == null) {
+ // Create default edit manager
+ setManager(new MultilineLabelDirectEditManager(this,
+ MultilineLabelDirectEditManager.getTextCellEditorClass(this),
+ UMLEditPartFactory.getTextCellEditorLocator(this)));
+ performDefaultDirectEditorEdit(theRequest);
+ } else {
+ configuration.preEditAction(resolveSemanticElement());
+ Dialog dialog = null;
+ if (configuration instanceof ICustomDirectEditorConfiguration) {
+ setManager(((ICustomDirectEditorConfiguration) configuration).createDirectEditManager(this));
+ initializeDirectEditManager(theRequest);
+ return;
+ } else if (configuration instanceof IPopupEditorConfiguration) {
+ IPopupEditorHelper helper = ((IPopupEditorConfiguration) configuration).createPopupEditorHelper(this);
+ helper.showEditor();
+ return;
+ } else if (configuration instanceof IAdvancedEditorConfiguration) {
+ dialog = ((IAdvancedEditorConfiguration) configuration).createDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()));
+ } else if (configuration instanceof IDirectEditorConfiguration) {
+ dialog = new ExtendedDirectEditionDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), resolveSemanticElement(), configuration.getTextToEdit(resolveSemanticElement()), configuration);
+ } else {
+ return;
+ }
+ final Dialog finalDialog = dialog;
+
+ if (Window.OK == dialog.open()) {
+ TransactionalEditingDomain domain = getEditingDomain();
+ RecordingCommand command = new RecordingCommand(domain, "Edit Label") {
+
+ @Override
+ protected void doExecute() {
+ configuration.postEditAction(resolveSemanticElement(), ((ILabelEditorDialog) finalDialog).getValue());
+
+ }
+ };
+ domain.getCommandStack().execute(command);
+ }
+ }
+ break;
+ case IDirectEdition.DEFAULT_DIRECT_EDITOR:
+ initializeDirectEditManager(theRequest);
+ break;
+ default:
+ break;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void initializeDirectEditManager(final Request request) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (request.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) request.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshVisuals() {
+ super.refreshVisuals();
+ refreshLabel();
+ refreshFont();
+ refreshFontColor();
+ refreshUnderline();
+ refreshStrikeThrough();
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshLabel() {
+ EditPolicy maskLabelPolicy = getEditPolicy(IMaskManagedLabelEditPolicy.MASK_MANAGED_LABEL_EDIT_POLICY);
+ if (maskLabelPolicy == null) {
+ maskLabelPolicy = getEditPolicy(IndirectMaskLabelEditPolicy.INDRIRECT_MASK_MANAGED_LABEL);
+ }
+ if (maskLabelPolicy == null) {
+ View view = (View) getModel();
+ if (view.isVisible()) {
+ setLabelTextHelper(getFigure(), getLabelText());
+ setLabelIconHelper(getFigure(), getLabelIcon());
+ } else {
+ setLabelTextHelper(getFigure(), ""); //$NON-NLS-1$
+ setLabelIconHelper(getFigure(), null);
+ }
+ }
+ Object pdEditPolicy = getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (pdEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) pdEditPolicy).refreshFeedback();
+ }
+ Object sfEditPolicy = getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE);
+ if (sfEditPolicy instanceof UMLTextSelectionEditPolicy) {
+ ((UMLTextSelectionEditPolicy) sfEditPolicy).refreshFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshUnderline() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextUnderline(style.isUnderline());
+ }
+ if (resolveSemanticElement() instanceof Feature) {
+ if (((Feature) resolveSemanticElement()).isStatic()) {
+ ((WrappingLabel) getFigure()).setTextUnderline(true);
+ } else {
+ ((WrappingLabel) getFigure()).setTextUnderline(false);
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshStrikeThrough() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null && getFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getFigure()).setTextStrikeThrough(style.isStrikeThrough());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void refreshFont() {
+ FontStyle style = (FontStyle) getFontStyleOwnerView().getStyle(
+ NotationPackage.eINSTANCE.getFontStyle());
+ if (style != null) {
+ FontData fontData = new FontData(
+ style.getFontName(), style.getFontHeight(),
+ (style.isBold() ? SWT.BOLD : SWT.NORMAL) | (style.isItalic() ? SWT.ITALIC : SWT.NORMAL));
+ setFont(fontData);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setFontColor(Color color) {
+ getFigure().setForegroundColor(color);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addSemanticListeners() {
+ if (getParser() instanceof ISemanticParser) {
+ EObject element = resolveSemanticElement();
+ parserElements = ((ISemanticParser) getParser()).getSemanticElementsBeingParsed(element);
+ for (int i = 0; i < parserElements.size(); i++) {
+ addListenerFilter("SemanticModel" + i, this, (EObject) parserElements.get(i)); //$NON-NLS-1$
+ }
+ } else {
+ super.addSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeSemanticListeners() {
+ if (parserElements != null) {
+ for (int i = 0; i < parserElements.size(); i++) {
+ removeListenerFilter("SemanticModel" + i); //$NON-NLS-1$
+ }
+ } else {
+ super.removeSemanticListeners();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected AccessibleEditPart getAccessibleEditPart() {
+ if (accessibleEP == null) {
+ accessibleEP = new AccessibleGraphicalEditPart() {
+
+ @Override
+ public void getName(AccessibleEvent e) {
+ e.result = getLabelTextHelper(getFigure());
+ }
+ };
+ }
+ return accessibleEP;
+ }
+
+ /**
+ * @generated
+ */
+ private View getFontStyleOwnerView() {
+ return getPrimaryView();
+ }
+
+ /**
+ * Returns the kind of associated editor for direct edition.
+ *
+ * @return an <code>int</code> corresponding to the kind of direct editor, @see org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition
+ * @generated
+ */
+ public int getDirectEditionType() {
+ if (checkExtendedEditor()) {
+ initExtendedEditorConfiguration();
+ return IDirectEdition.EXTENDED_DIRECT_EDITOR;
+ }
+ if (checkDefaultEdition()) {
+ return IDirectEdition.DEFAULT_DIRECT_EDITOR;
+ }
+
+ // not a named element. no specific editor => do nothing
+ return IDirectEdition.NO_DIRECT_EDITION;
+ }
+
+ /**
+ * Checks if an extended editor is present.
+ *
+ * @return <code>true</code> if an extended editor is present.
+ * @generated
+ */
+ protected boolean checkExtendedEditor() {
+ if (resolveSemanticElement() != null) {
+ return DirectEditorsUtil.hasSpecificEditorConfiguration(resolveSemanticElement(), this);
+ }
+ return false;
+ }
+
+ /**
+ * Checks if a default direct edition is available
+ *
+ * @return <code>true</code> if a default direct edition is available
+ * @generated
+ */
+ protected boolean checkDefaultEdition() {
+ return (getParser() != null);
+ }
+
+ /**
+ * Initializes the extended editor configuration
+ *
+ * @generated
+ */
+ protected void initExtendedEditorConfiguration() {
+ if (configuration == null) {
+ final String languagePreferred = Activator.getDefault().getPreferenceStore().getString(IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("")) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else {
+ configuration = DirectEditorsUtil.findEditorConfiguration(IDirectEditorsIds.UML_LANGUAGE, resolveSemanticElement(), this);
+ }
+ }
+ }
+
+ /**
+ * Updates the preference configuration
+ *
+ * @generated
+ */
+ protected void updateExtendedEditorConfiguration() {
+ String languagePreferred = Activator.getDefault().getPreferenceStore().getString(
+ IDirectEditorsIds.EDITOR_FOR_ELEMENT + resolveSemanticElement().eClass().getInstanceClassName());
+ if (languagePreferred != null && !languagePreferred.equals("") && !languagePreferred.equals(configuration.getLanguage())) {
+ configuration = DirectEditorsUtil.findEditorConfiguration(languagePreferred, resolveSemanticElement(), this);
+ } else if (IDirectEditorsIds.SIMPLE_DIRECT_EDITOR.equals(languagePreferred)) {
+ configuration = null;
+ }
+ }
+
+ /**
+ * Performs the direct edit usually used by GMF editors.
+ *
+ * @param theRequest
+ * the direct edit request that starts the direct edit system
+ * @generated
+ */
+ protected void performDefaultDirectEditorEdit(final Request theRequest) {
+ // initialize the direct edit manager
+ try {
+ getEditingDomain().runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ if (isActive() && isEditable()) {
+ if (theRequest.getExtendedData().get(RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR) instanceof Character) {
+ Character initialChar = (Character) theRequest.getExtendedData().get(
+ RequestConstants.REQ_DIRECTEDIT_EXTENDEDDATA_INITIAL_CHAR);
+ performDirectEdit(initialChar.charValue());
+ } else if ((theRequest instanceof DirectEditRequest) && (getEditText().equals(getLabelText()))) {
+ DirectEditRequest editRequest = (DirectEditRequest) theRequest;
+ performDirectEdit(editRequest.getLocation());
+ } else {
+ performDirectEdit();
+ }
+ }
+ }
+ });
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addNotationalListeners() {
+ super.addNotationalListeners();
+ addListenerFilter("PrimaryView", this, getPrimaryView()); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeNotationalListeners() {
+ super.removeNotationalListeners();
+ removeListenerFilter("PrimaryView"); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ refreshLabel();
+ Object feature = event.getFeature();
+ if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
+ Integer c = (Integer) event.getNewValue();
+ setFontColor(DiagramColorRegistry.getInstance().getColor(c));
+ } else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
+ refreshUnderline();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
+ refreshStrikeThrough();
+ } else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature) || NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
+ || NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
+ refreshFont();
+ } else {
+ if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
+ refreshLabel();
+ }
+ if (getParser() instanceof ISemanticParser) {
+ ISemanticParser modelParser = (ISemanticParser) getParser();
+ if (modelParser.areSemanticElementsAffected(null, event)) {
+ removeSemanticListeners();
+ if (resolveSemanticElement() != null) {
+ addSemanticListeners();
+ }
+ refreshLabel();
+ }
+ }
+ }
+ if (event.getNewValue() instanceof EAnnotation && VisualInformationPapyrusConstants.DISPLAY_NAMELABELICON.equals(((EAnnotation) event.getNewValue()).getSource())) {
+ refreshLabel();
+ }
+ super.handleNotificationEvent(event);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createFigure() {
+ // Parent should assign one using setLabel() method
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private static final String ADD_PARENT_MODEL = "AddParentModel";
+
+ /**
+ * @generated
+ */
+ @Override
+ public void activate() {
+ super.activate();
+ addOwnerElementListeners();
+ }
+
+ /**
+ * @generated
+ */
+ protected void addOwnerElementListeners() {
+ addListenerFilter(ADD_PARENT_MODEL, this, ((View) getParent().getModel()));
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void deactivate() {
+ removeOwnerElementListeners();
+ super.deactivate();
+
+ }
+
+ /**
+ * @generated
+ */
+ protected void removeOwnerElementListeners() {
+ removeListenerFilter(ADD_PARENT_MODEL);
+
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPart.java
index aade489e1e4..e6515d99189 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPart.java
@@ -25,11 +25,11 @@ import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.PapyrusCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.PackagePackageableElementCompartmentItemSemanticEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.part.Messages;
/**
@@ -63,12 +63,12 @@ public class PackagePackageableElementCompartmentEditPart extends ShapeCompartme
@Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new PackagePackageableElementCompartmentItemSemanticEditPolicy());
- installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PapyrusCreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- // in Papyrus diagrams are not strongly synchronised
- // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.PackagePackageableElementCompartmentCanonicalEditPolicy());
+ //in Papyrus diagrams are not strongly synchronised
+ //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.PackagePackageableElementCompartmentCanonicalEditPolicy());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPartCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPartCN.java
index 61d5cc0c65c..a313d446d76 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPartCN.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/PackagePackageableElementCompartmentEditPartCN.java
@@ -25,11 +25,11 @@ import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCompartmentSemanticEditPolicy;
+import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.CustomContainerEditPolicy;
import org.eclipse.papyrus.uml.diagram.common.editpolicies.PasteEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.PapyrusCreationEditPolicy;
import org.eclipse.papyrus.uml.diagram.deployment.custom.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.PackagePackageableElementCompartmentItemSemanticEditPolicyCN;
import org.eclipse.papyrus.uml.diagram.deployment.part.Messages;
/**
@@ -63,12 +63,12 @@ public class PackagePackageableElementCompartmentEditPartCN extends ShapeCompart
@Override
protected void createDefaultEditPolicies() {
super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new PackagePackageableElementCompartmentItemSemanticEditPolicyCN());
- installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PapyrusCreationEditPolicy());
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new DefaultCompartmentSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new DefaultCreationEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
installEditPolicy(PasteEditPolicy.PASTE_ROLE, new PasteEditPolicy());
- // in Papyrus diagrams are not strongly synchronised
- // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.PackagePackageableElementCompartmentCanonicalEditPolicyCN());
+ //in Papyrus diagrams are not strongly synchronised
+ //installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.deployment.edit.policies.PackagePackageableElementCompartmentCanonicalEditPolicyCN());
installEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new CustomContainerEditPolicy());
installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new CustomDiagramDragDropEditPolicy());
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/UMLEditPartFactory.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/UMLEditPartFactory.java
index ffa7e7d20f8..2f5cedb7f59 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/UMLEditPartFactory.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/parts/UMLEditPartFactory.java
@@ -1,359 +1,358 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
-
-import org.eclipse.draw2d.geometry.Dimension;
-import org.eclipse.draw2d.geometry.Rectangle;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.EditPartFactory;
-import org.eclipse.gef.tools.CellEditorLocator;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.directedit.locator.CellEditorLocatorAccess;
-import org.eclipse.jface.viewers.CellEditor;
-import org.eclipse.papyrus.uml.diagram.common.figure.node.IMultilineEditableFigure;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.Text;
-
-/**
- * @generated
- */
-public class UMLEditPartFactory implements EditPartFactory {
-
- /**
- * @generated
- */
- @Override
- public EditPart createEditPart(EditPart context, Object model) {
- if (model instanceof View) {
- View view = (View) model;
- switch (UMLVisualIDRegistry.getVisualID(view)) {
-
- case DeploymentDiagramEditPart.VISUAL_ID:
- return new DeploymentDiagramEditPart(view);
-
- case DependencyNodeEditPart.VISUAL_ID:
- return new DependencyNodeEditPart(view);
-
- case MultiDependencyLabelEditPart.VISUAL_ID:
- return new MultiDependencyLabelEditPart(view);
-
- case ModelEditPart.VISUAL_ID:
- return new ModelEditPart(view);
-
- case ModelNameEditPart.VISUAL_ID:
- return new ModelNameEditPart(view);
-
- case PackageEditPart.VISUAL_ID:
- return new PackageEditPart(view);
-
- case PackageNameEditPart.VISUAL_ID:
- return new PackageNameEditPart(view);
-
- case ConstraintEditPart.VISUAL_ID:
- return new ConstraintEditPart(view);
-
- case ConstraintNameEditPart.VISUAL_ID:
- return new ConstraintNameEditPart(view);
-
- case ConstraintSpecificationEditPart.VISUAL_ID:
- return new ConstraintSpecificationEditPart(view);
-
- case CommentEditPart.VISUAL_ID:
- return new CommentEditPart(view);
-
- case CommentBodyEditPart.VISUAL_ID:
- return new CommentBodyEditPart(view);
-
- case ExecutionEnvironmentEditPart.VISUAL_ID:
- return new ExecutionEnvironmentEditPart(view);
-
- case ExecutionEnvironmentNameEditPart.VISUAL_ID:
- return new ExecutionEnvironmentNameEditPart(view);
-
- case DeviceEditPart.VISUAL_ID:
- return new DeviceEditPart(view);
-
- case DeviceNameEditPart.VISUAL_ID:
- return new DeviceNameEditPart(view);
-
- case ArtifactEditPart.VISUAL_ID:
- return new ArtifactEditPart(view);
-
- case ArtifactNameEditPart.VISUAL_ID:
- return new ArtifactNameEditPart(view);
-
- case ArtifactFloatingLabelEditPart.VISUAL_ID:
- return new ArtifactFloatingLabelEditPart(view);
-
- case NodeEditPart.VISUAL_ID:
- return new NodeEditPart(view);
-
- case NodeNameEditPart.VISUAL_ID:
- return new NodeNameEditPart(view);
-
- case DefaultNamedElementEditPart.VISUAL_ID:
- return new DefaultNamedElementEditPart(view);
-
- case DefaultNamedElementNameEditPart.VISUAL_ID:
- return new DefaultNamedElementNameEditPart(view);
-
- case ModelEditPartCN.VISUAL_ID:
- return new ModelEditPartCN(view);
-
- case ModelNameEditPartCN.VISUAL_ID:
- return new ModelNameEditPartCN(view);
-
- case PackageEditPartCN.VISUAL_ID:
- return new PackageEditPartCN(view);
-
- case PackageNameEditPartCN.VISUAL_ID:
- return new PackageNameEditPartCN(view);
-
- case DeviceEditPartCN.VISUAL_ID:
- return new DeviceEditPartCN(view);
-
- case DeviceNameEditPartCN.VISUAL_ID:
- return new DeviceNameEditPartCN(view);
-
- case NestedDeviceEditPartCN.VISUAL_ID:
- return new NestedDeviceEditPartCN(view);
-
- case NestedDeviceNameEditPartCN.VISUAL_ID:
- return new NestedDeviceNameEditPartCN(view);
-
- case ExecutionEnvironmentEditPartCN.VISUAL_ID:
- return new ExecutionEnvironmentEditPartCN(view);
-
- case ExecutionEnvironmentNameEditPartCN.VISUAL_ID:
- return new ExecutionEnvironmentNameEditPartCN(view);
-
- case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
- return new NestedExecutionEnvironmentEditPartCN(view);
-
- case NestedExecutionEnvironmentNameEditPartCN.VISUAL_ID:
- return new NestedExecutionEnvironmentNameEditPartCN(view);
-
- case NodeEditPartCN.VISUAL_ID:
- return new NodeEditPartCN(view);
-
- case NodeNameEditPartCN.VISUAL_ID:
- return new NodeNameEditPartCN(view);
-
- case NestedNodeEditPartCN.VISUAL_ID:
- return new NestedNodeEditPartCN(view);
-
- case NestedNodeNameEditPart.VISUAL_ID:
- return new NestedNodeNameEditPart(view);
-
- case ArtifactEditPartCN.VISUAL_ID:
- return new ArtifactEditPartCN(view);
-
- case ArtifactNameEditPartCN.VISUAL_ID:
- return new ArtifactNameEditPartCN(view);
-
- case ArtifactFloatingLabelEditPartCN.VISUAL_ID:
- return new ArtifactFloatingLabelEditPartCN(view);
-
- case ArtifactEditPartACN.VISUAL_ID:
- return new ArtifactEditPartACN(view);
-
- case ArtifactNameEditPartACN.VISUAL_ID:
- return new ArtifactNameEditPartACN(view);
-
- case ArtifactFloatingLabelEditPartACN.VISUAL_ID:
- return new ArtifactFloatingLabelEditPartACN(view);
-
- case NestedArtifactNodeEditPartCN.VISUAL_ID:
- return new NestedArtifactNodeEditPartCN(view);
-
- case NestedArtifactNameEditPart.VISUAL_ID:
- return new NestedArtifactNameEditPart(view);
-
- case CommentEditPartCN.VISUAL_ID:
- return new CommentEditPartCN(view);
-
- case CommentBodyEditPartCN.VISUAL_ID:
- return new CommentBodyEditPartCN(view);
-
- case ConstraintEditPartCN.VISUAL_ID:
- return new ConstraintEditPartCN(view);
-
- case ConstraintNameEditPartCN.VISUAL_ID:
- return new ConstraintNameEditPartCN(view);
-
- case ConstraintSpecificationEditPartCN.VISUAL_ID:
- return new ConstraintSpecificationEditPartCN(view);
-
- case ModelPackageableElementCompartmentEditPart.VISUAL_ID:
- return new ModelPackageableElementCompartmentEditPart(view);
-
- case PackagePackageableElementCompartmentEditPart.VISUAL_ID:
- return new PackagePackageableElementCompartmentEditPart(view);
-
- case DeviceCompositeCompartmentEditPart.VISUAL_ID:
- return new DeviceCompositeCompartmentEditPart(view);
-
- case ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID:
- return new ExecutionEnvironmentCompositeCompartmentEditPart(view);
-
- case NodeCompositeCompartmentEditPart.VISUAL_ID:
- return new NodeCompositeCompartmentEditPart(view);
-
- case ArtifactCompositeCompartmentEditPart.VISUAL_ID:
- return new ArtifactCompositeCompartmentEditPart(view);
-
- case ModelPackageableElementCompartmentEditPartCN.VISUAL_ID:
- return new ModelPackageableElementCompartmentEditPartCN(view);
-
- case PackagePackageableElementCompartmentEditPartCN.VISUAL_ID:
- return new PackagePackageableElementCompartmentEditPartCN(view);
-
- case DeviceCompositeCompartmentEditPartCN.VISUAL_ID:
- return new DeviceCompositeCompartmentEditPartCN(view);
-
- case ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID:
- return new ExecutionEnvironmentCompositeCompartmentEditPartCN(view);
-
- case NodeCompositeCompartmentEditPartCN.VISUAL_ID:
- return new NodeCompositeCompartmentEditPartCN(view);
-
- case ArtifactCompositeCompartmentEditPartCN.VISUAL_ID:
- return new ArtifactCompositeCompartmentEditPartCN(view);
-
- case ArtifactCompositeCompartmentEditPartACN.VISUAL_ID:
- return new ArtifactCompositeCompartmentEditPartACN(view);
-
- case LinkDescriptorEditPart.VISUAL_ID:
- return new LinkDescriptorEditPart(view);
-
-
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return new CommentAnnotatedElementEditPart(view);
-
-
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return new ConstraintConstrainedElementEditPart(view);
-
-
- case DeploymentEditPart.VISUAL_ID:
- return new DeploymentEditPart(view);
-
- case DeploymentNameEditPart.VISUAL_ID:
- return new DeploymentNameEditPart(view);
-
- case DeploymentAppliedStereotypeEditPart.VISUAL_ID:
- return new DeploymentAppliedStereotypeEditPart(view);
-
-
- case ManifestationEditPart.VISUAL_ID:
- return new ManifestationEditPart(view);
-
- case ManifestationNameEditPart.VISUAL_ID:
- return new ManifestationNameEditPart(view);
-
- case ManifestationAppliedStereotypeEditPart.VISUAL_ID:
- return new ManifestationAppliedStereotypeEditPart(view);
-
-
- case GeneralizationEditPart.VISUAL_ID:
- return new GeneralizationEditPart(view);
-
- case GeneralizationAppliedStereotypeEditPart.VISUAL_ID:
- return new GeneralizationAppliedStereotypeEditPart(view);
-
-
- case DependencyEditPart.VISUAL_ID:
- return new DependencyEditPart(view);
-
- case DependencyNameEditPart.VISUAL_ID:
- return new DependencyNameEditPart(view);
-
- case DependencyAppliedStereotypeEditPart.VISUAL_ID:
- return new DependencyAppliedStereotypeEditPart(view);
-
-
- case DependencyBranchEditPart.VISUAL_ID:
- return new DependencyBranchEditPart(view);
-
- }
- }
- return createUnrecognizedEditPart(context, model);
- }
-
- /**
- * @generated
- */
- private EditPart createUnrecognizedEditPart(EditPart context, Object model) {
- // Handle creation of unrecognized child node EditParts here
- return null;
- }
-
- /**
- * @generated
- */
- public static CellEditorLocator getTextCellEditorLocator(ITextAwareEditPart source) {
- if (source.getFigure() instanceof IMultilineEditableFigure) {
- return new MultilineCellEditorLocator(
- (IMultilineEditableFigure) source.getFigure());
- }
- else {
- return CellEditorLocatorAccess.INSTANCE.getTextCellEditorLocator(source);
-
- }
- }
-
- /**
- * @generated
- */
- static private class MultilineCellEditorLocator implements CellEditorLocator {
-
- /**
- * @generated
- */
- private IMultilineEditableFigure multilineEditableFigure;
-
- /**
- * @generated
- */
- public MultilineCellEditorLocator(IMultilineEditableFigure figure) {
- this.multilineEditableFigure = figure;
- }
-
- /**
- * @generated
- */
- public IMultilineEditableFigure getMultilineEditableFigure() {
- return multilineEditableFigure;
- }
-
- /**
- * @generated
- */
- @Override
- public void relocate(CellEditor celleditor) {
- Text text = (Text) celleditor.getControl();
- Rectangle rect = getMultilineEditableFigure().getBounds().getCopy();
- rect.x = getMultilineEditableFigure().getEditionLocation().x;
- rect.y = getMultilineEditableFigure().getEditionLocation().y;
- getMultilineEditableFigure().translateToAbsolute(rect);
- if (getMultilineEditableFigure().getText().length() > 0) {
- rect.setSize(new Dimension(text.computeSize(rect.width,
- SWT.DEFAULT)));
- }
- if (!rect.equals(new Rectangle(text.getBounds()))) {
- text.setBounds(rect.x, rect.y, rect.width, rect.height);
- }
- }
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.parts;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.EditPartFactory;
+import org.eclipse.gef.tools.CellEditorLocator;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.directedit.locator.CellEditorLocatorAccess;
+import org.eclipse.jface.viewers.CellEditor;
+import org.eclipse.papyrus.uml.diagram.common.figure.node.IMultilineEditableFigure;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.Text;
+
+/**
+ * @generated
+ */
+public class UMLEditPartFactory implements EditPartFactory {
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart createEditPart(EditPart context, Object model) {
+ if (model instanceof View) {
+ View view = (View) model;
+ switch (UMLVisualIDRegistry.getVisualID(view)) {
+
+ case DeploymentDiagramEditPart.VISUAL_ID:
+ return new DeploymentDiagramEditPart(view);
+
+ case DependencyNodeEditPart.VISUAL_ID:
+ return new DependencyNodeEditPart(view);
+
+ case MultiDependencyLabelEditPart.VISUAL_ID:
+ return new MultiDependencyLabelEditPart(view);
+
+ case ModelEditPart.VISUAL_ID:
+ return new ModelEditPart(view);
+
+ case ModelNameEditPart.VISUAL_ID:
+ return new ModelNameEditPart(view);
+
+ case PackageEditPart.VISUAL_ID:
+ return new PackageEditPart(view);
+
+ case PackageNameEditPart.VISUAL_ID:
+ return new PackageNameEditPart(view);
+
+ case ConstraintEditPart.VISUAL_ID:
+ return new ConstraintEditPart(view);
+
+ case ConstraintNameEditPart.VISUAL_ID:
+ return new ConstraintNameEditPart(view);
+
+ case ConstraintSpecificationEditPart.VISUAL_ID:
+ return new ConstraintSpecificationEditPart(view);
+
+ case CommentEditPart.VISUAL_ID:
+ return new CommentEditPart(view);
+
+ case CommentBodyEditPart.VISUAL_ID:
+ return new CommentBodyEditPart(view);
+
+ case ExecutionEnvironmentEditPart.VISUAL_ID:
+ return new ExecutionEnvironmentEditPart(view);
+
+ case ExecutionEnvironmentNameEditPart.VISUAL_ID:
+ return new ExecutionEnvironmentNameEditPart(view);
+
+ case DeviceEditPart.VISUAL_ID:
+ return new DeviceEditPart(view);
+
+ case DeviceNameEditPart.VISUAL_ID:
+ return new DeviceNameEditPart(view);
+
+ case ArtifactEditPart.VISUAL_ID:
+ return new ArtifactEditPart(view);
+
+ case ArtifactNameEditPart.VISUAL_ID:
+ return new ArtifactNameEditPart(view);
+
+ case ArtifactFloatingLabelEditPart.VISUAL_ID:
+ return new ArtifactFloatingLabelEditPart(view);
+
+ case NodeEditPart.VISUAL_ID:
+ return new NodeEditPart(view);
+
+ case NodeNameEditPart.VISUAL_ID:
+ return new NodeNameEditPart(view);
+
+ case DefaultNamedElementEditPart.VISUAL_ID:
+ return new DefaultNamedElementEditPart(view);
+
+ case DefaultNamedElementNameEditPart.VISUAL_ID:
+ return new DefaultNamedElementNameEditPart(view);
+
+ case ModelEditPartCN.VISUAL_ID:
+ return new ModelEditPartCN(view);
+
+ case ModelNameEditPartCN.VISUAL_ID:
+ return new ModelNameEditPartCN(view);
+
+ case PackageEditPartCN.VISUAL_ID:
+ return new PackageEditPartCN(view);
+
+ case PackageNameEditPartCN.VISUAL_ID:
+ return new PackageNameEditPartCN(view);
+
+ case DeviceEditPartCN.VISUAL_ID:
+ return new DeviceEditPartCN(view);
+
+ case DeviceNameEditPartCN.VISUAL_ID:
+ return new DeviceNameEditPartCN(view);
+
+ case NestedDeviceEditPartCN.VISUAL_ID:
+ return new NestedDeviceEditPartCN(view);
+
+ case NestedDeviceNameEditPartCN.VISUAL_ID:
+ return new NestedDeviceNameEditPartCN(view);
+
+ case ExecutionEnvironmentEditPartCN.VISUAL_ID:
+ return new ExecutionEnvironmentEditPartCN(view);
+
+ case ExecutionEnvironmentNameEditPartCN.VISUAL_ID:
+ return new ExecutionEnvironmentNameEditPartCN(view);
+
+ case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
+ return new NestedExecutionEnvironmentEditPartCN(view);
+
+ case NestedExecutionEnvironmentNameEditPartCN.VISUAL_ID:
+ return new NestedExecutionEnvironmentNameEditPartCN(view);
+
+ case NodeEditPartCN.VISUAL_ID:
+ return new NodeEditPartCN(view);
+
+ case NodeNameEditPartCN.VISUAL_ID:
+ return new NodeNameEditPartCN(view);
+
+ case NestedNodeEditPartCN.VISUAL_ID:
+ return new NestedNodeEditPartCN(view);
+
+ case NestedNodeNameEditPart.VISUAL_ID:
+ return new NestedNodeNameEditPart(view);
+
+ case ArtifactEditPartCN.VISUAL_ID:
+ return new ArtifactEditPartCN(view);
+
+ case ArtifactNameEditPartCN.VISUAL_ID:
+ return new ArtifactNameEditPartCN(view);
+
+ case ArtifactFloatingLabelEditPartCN.VISUAL_ID:
+ return new ArtifactFloatingLabelEditPartCN(view);
+
+ case ArtifactEditPartACN.VISUAL_ID:
+ return new ArtifactEditPartACN(view);
+
+ case ArtifactNameEditPartACN.VISUAL_ID:
+ return new ArtifactNameEditPartACN(view);
+
+ case ArtifactFloatingLabelEditPartACN.VISUAL_ID:
+ return new ArtifactFloatingLabelEditPartACN(view);
+
+ case NestedArtifactNodeEditPartCN.VISUAL_ID:
+ return new NestedArtifactNodeEditPartCN(view);
+
+ case NestedArtifactNameEditPart.VISUAL_ID:
+ return new NestedArtifactNameEditPart(view);
+
+ case CommentEditPartCN.VISUAL_ID:
+ return new CommentEditPartCN(view);
+
+ case CommentBodyEditPartCN.VISUAL_ID:
+ return new CommentBodyEditPartCN(view);
+
+ case ConstraintEditPartCN.VISUAL_ID:
+ return new ConstraintEditPartCN(view);
+
+ case ConstraintNameEditPartCN.VISUAL_ID:
+ return new ConstraintNameEditPartCN(view);
+
+ case ConstraintSpecificationEditPartCN.VISUAL_ID:
+ return new ConstraintSpecificationEditPartCN(view);
+
+ case ModelPackageableElementCompartmentEditPart.VISUAL_ID:
+ return new ModelPackageableElementCompartmentEditPart(view);
+
+ case PackagePackageableElementCompartmentEditPart.VISUAL_ID:
+ return new PackagePackageableElementCompartmentEditPart(view);
+
+ case DeviceCompositeCompartmentEditPart.VISUAL_ID:
+ return new DeviceCompositeCompartmentEditPart(view);
+
+ case ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID:
+ return new ExecutionEnvironmentCompositeCompartmentEditPart(view);
+
+ case NodeCompositeCompartmentEditPart.VISUAL_ID:
+ return new NodeCompositeCompartmentEditPart(view);
+
+ case ArtifactCompositeCompartmentEditPart.VISUAL_ID:
+ return new ArtifactCompositeCompartmentEditPart(view);
+
+ case ModelPackageableElementCompartmentEditPartCN.VISUAL_ID:
+ return new ModelPackageableElementCompartmentEditPartCN(view);
+
+ case PackagePackageableElementCompartmentEditPartCN.VISUAL_ID:
+ return new PackagePackageableElementCompartmentEditPartCN(view);
+
+ case DeviceCompositeCompartmentEditPartCN.VISUAL_ID:
+ return new DeviceCompositeCompartmentEditPartCN(view);
+
+ case ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID:
+ return new ExecutionEnvironmentCompositeCompartmentEditPartCN(view);
+
+ case NodeCompositeCompartmentEditPartCN.VISUAL_ID:
+ return new NodeCompositeCompartmentEditPartCN(view);
+
+ case ArtifactCompositeCompartmentEditPartCN.VISUAL_ID:
+ return new ArtifactCompositeCompartmentEditPartCN(view);
+
+ case ArtifactCompositeCompartmentEditPartACN.VISUAL_ID:
+ return new ArtifactCompositeCompartmentEditPartACN(view);
+
+ case LinkDescriptorEditPart.VISUAL_ID:
+ return new LinkDescriptorEditPart(view);
+
+
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return new CommentAnnotatedElementEditPart(view);
+
+
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return new ConstraintConstrainedElementEditPart(view);
+
+
+ case DeploymentEditPart.VISUAL_ID:
+ return new DeploymentEditPart(view);
+
+ case DeploymentNameEditPart.VISUAL_ID:
+ return new DeploymentNameEditPart(view);
+
+ case DeploymentAppliedStereotypeEditPart.VISUAL_ID:
+ return new DeploymentAppliedStereotypeEditPart(view);
+
+
+ case ManifestationEditPart.VISUAL_ID:
+ return new ManifestationEditPart(view);
+
+ case ManifestationNameEditPart.VISUAL_ID:
+ return new ManifestationNameEditPart(view);
+
+ case ManifestationAppliedStereotypeEditPart.VISUAL_ID:
+ return new ManifestationAppliedStereotypeEditPart(view);
+
+
+ case GeneralizationEditPart.VISUAL_ID:
+ return new GeneralizationEditPart(view);
+
+ case GeneralizationAppliedStereotypeEditPart.VISUAL_ID:
+ return new GeneralizationAppliedStereotypeEditPart(view);
+
+
+ case DependencyEditPart.VISUAL_ID:
+ return new DependencyEditPart(view);
+
+ case DependencyNameEditPart.VISUAL_ID:
+ return new DependencyNameEditPart(view);
+
+ case DependencyAppliedStereotypeEditPart.VISUAL_ID:
+ return new DependencyAppliedStereotypeEditPart(view);
+
+
+ case DependencyBranchEditPart.VISUAL_ID:
+ return new DependencyBranchEditPart(view);
+
+ }
+ }
+ return createUnrecognizedEditPart(context, model);
+ }
+
+ /**
+ * @generated
+ */
+ private EditPart createUnrecognizedEditPart(EditPart context, Object model) {
+ // Handle creation of unrecognized child node EditParts here
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public static CellEditorLocator getTextCellEditorLocator(ITextAwareEditPart source) {
+ if (source.getFigure() instanceof IMultilineEditableFigure) {
+ return new MultilineCellEditorLocator(
+ (IMultilineEditableFigure) source.getFigure());
+ } else {
+ return CellEditorLocatorAccess.INSTANCE.getTextCellEditorLocator(source);
+
+ }
+ }
+
+ /**
+ * @generated
+ */
+ static private class MultilineCellEditorLocator implements CellEditorLocator {
+
+ /**
+ * @generated
+ */
+ private IMultilineEditableFigure multilineEditableFigure;
+
+ /**
+ * @generated
+ */
+ public MultilineCellEditorLocator(IMultilineEditableFigure figure) {
+ this.multilineEditableFigure = figure;
+ }
+
+ /**
+ * @generated
+ */
+ public IMultilineEditableFigure getMultilineEditableFigure() {
+ return multilineEditableFigure;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void relocate(CellEditor celleditor) {
+ Text text = (Text) celleditor.getControl();
+ Rectangle rect = getMultilineEditableFigure().getBounds().getCopy();
+ rect.x = getMultilineEditableFigure().getEditionLocation().x;
+ rect.y = getMultilineEditableFigure().getEditionLocation().y;
+ getMultilineEditableFigure().translateToAbsolute(rect);
+ if (getMultilineEditableFigure().getText().length() > 0) {
+ rect.setSize(new Dimension(text.computeSize(rect.width,
+ SWT.DEFAULT)));
+ }
+ if (!rect.equals(new Rectangle(text.getBounds()))) {
+ text.setBounds(rect.x, rect.y, rect.width, rect.height);
+ }
+ }
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentCanonicalEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentCanonicalEditPolicy.java
deleted file mode 100644
index 97fca2733a7..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentCanonicalEditPolicy.java
+++ /dev/null
@@ -1,176 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.commands.DeferredLayoutCommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.diagram.ui.commands.SetViewMutabilityCommand;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramUpdater;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLNodeDescriptor;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class ArtifactCompositeCompartmentCanonicalEditPolicy extends CanonicalEditPolicy {
-
- /**
- * @generated
- */
- @Override
- protected void refreshOnActivate() {
- // Need to activate editpart children before invoking the canonical refresh for EditParts to add event listeners
- List<?> c = getHost().getChildren();
- for (int i = 0; i < c.size(); i++) {
- ((EditPart) c.get(i)).activate();
- }
- super.refreshOnActivate();
- }
-
- /**
- * @generated
- */
- @Override
- protected EStructuralFeature getFeatureToSynchronize() {
- return UMLPackage.eINSTANCE.getArtifact_NestedArtifact();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<EObject> getSemanticChildrenList() {
- View viewObject = (View) getHost().getModel();
- LinkedList<EObject> result = new LinkedList<EObject>();
- List<UMLNodeDescriptor> childDescriptors = UMLDiagramUpdater.INSTANCE
- .getArtifactArtifactCompositeCompartment_26SemanticChildren(viewObject);
- for (UMLNodeDescriptor d : childDescriptors) {
- result.add(d.getModelElement());
- }
- return result;
- }
-
- /**
- * @generated
- */
- @Override
- protected boolean isOrphaned(Collection<EObject> semanticChildren, final View view) {
- return isMyDiagramElement(view) && !semanticChildren.contains(view.getElement());
- }
-
- /**
- * @generated
- */
- private boolean isMyDiagramElement(View view) {
- return ArtifactEditPartACN.VISUAL_ID == UMLVisualIDRegistry.getVisualID(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshSemantic() {
- if (resolveSemanticElement() == null) {
- return;
- }
- LinkedList<IAdaptable> createdViews = new LinkedList<IAdaptable>();
- List<UMLNodeDescriptor> childDescriptors =
- UMLDiagramUpdater.INSTANCE
- .getArtifactArtifactCompositeCompartment_26SemanticChildren((View) getHost().getModel());
- LinkedList<View> orphaned = new LinkedList<View>();
- // we care to check only views we recognize as ours
- LinkedList<View> knownViewChildren = new LinkedList<View>();
- for (View v : getViewChildren()) {
- if (isMyDiagramElement(v)) {
- knownViewChildren.add(v);
- }
- }
- // alternative to #cleanCanonicalSemanticChildren(getViewChildren(), semanticChildren)
- //
- // iteration happens over list of desired semantic elements, trying to find best matching View, while original CEP
- // iterates views, potentially losing view (size/bounds) information - i.e. if there are few views to reference same EObject, only last one
- // to answer isOrphaned == true will be used for the domain element representation, see #cleanCanonicalSemanticChildren()
- for (Iterator<UMLNodeDescriptor> descriptorsIterator = childDescriptors.iterator(); descriptorsIterator.hasNext();) {
- UMLNodeDescriptor next = descriptorsIterator.next();
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- LinkedList<View> perfectMatch = new LinkedList<View>(); // both semanticElement and hint match that of NodeDescriptor
- for (View childView : getViewChildren()) {
- EObject semanticElement = childView.getElement();
- if (next.getModelElement().equals(semanticElement)) {
- if (hint.equals(childView.getType())) {
- perfectMatch.add(childView);
- // actually, can stop iteration over view children here, but
- // may want to use not the first view but last one as a 'real' match (the way original CEP does
- // with its trick with viewToSemanticMap inside #cleanCanonicalSemanticChildren
- }
- }
- }
- if (perfectMatch.size() > 0) {
- descriptorsIterator.remove(); // precise match found no need to create anything for the NodeDescriptor
- // use only one view (first or last?), keep rest as orphaned for further consideration
- knownViewChildren.remove(perfectMatch.getFirst());
- }
- }
- // those left in knownViewChildren are subject to removal - they are our diagram elements we didn't find match to,
- // or those we have potential matches to, and thus need to be recreated, preserving size/location information.
- orphaned.addAll(knownViewChildren);
- //
- ArrayList<CreateViewRequest.ViewDescriptor> viewDescriptors = new ArrayList<CreateViewRequest.ViewDescriptor>(childDescriptors.size());
- for (UMLNodeDescriptor next : childDescriptors) {
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- IAdaptable elementAdapter = new CanonicalElementAdapter(next.getModelElement(), hint);
- CreateViewRequest.ViewDescriptor descriptor = new CreateViewRequest.ViewDescriptor(elementAdapter, Node.class, hint, ViewUtil.APPEND, false, host().getDiagramPreferencesHint());
- viewDescriptors.add(descriptor);
- }
-
- boolean changed = deleteViews(orphaned.iterator());
- //
- CreateViewRequest request = getCreateViewRequest(viewDescriptors);
- Command cmd = getCreateViewCommand(request);
- if (cmd != null && cmd.canExecute()) {
- SetViewMutabilityCommand.makeMutable(new EObjectAdapter(host().getNotationView())).execute();
- executeCommand(cmd);
- @SuppressWarnings("unchecked")
- List<IAdaptable> nl = (List<IAdaptable>) request.getNewObject();
- createdViews.addAll(nl);
- }
- if (changed || createdViews.size() > 0) {
- postProcessRefreshSemantic(createdViews);
- }
- if (createdViews.size() > 1) {
- // perform a layout of the container
- DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host().getEditingDomain(), createdViews, host());
- executeCommand(new ICommandProxy(layoutCmd));
- }
-
- makeViewsImmutable(createdViews);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentCanonicalEditPolicyACN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentCanonicalEditPolicyACN.java
deleted file mode 100644
index 63b3a278c27..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentCanonicalEditPolicyACN.java
+++ /dev/null
@@ -1,176 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.commands.DeferredLayoutCommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.diagram.ui.commands.SetViewMutabilityCommand;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramUpdater;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLNodeDescriptor;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class ArtifactCompositeCompartmentCanonicalEditPolicyACN extends CanonicalEditPolicy {
-
- /**
- * @generated
- */
- @Override
- protected void refreshOnActivate() {
- // Need to activate editpart children before invoking the canonical refresh for EditParts to add event listeners
- List<?> c = getHost().getChildren();
- for (int i = 0; i < c.size(); i++) {
- ((EditPart) c.get(i)).activate();
- }
- super.refreshOnActivate();
- }
-
- /**
- * @generated
- */
- @Override
- protected EStructuralFeature getFeatureToSynchronize() {
- return UMLPackage.eINSTANCE.getArtifact_NestedArtifact();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<EObject> getSemanticChildrenList() {
- View viewObject = (View) getHost().getModel();
- LinkedList<EObject> result = new LinkedList<EObject>();
- List<UMLNodeDescriptor> childDescriptors = UMLDiagramUpdater.INSTANCE
- .getArtifactArtifactCompositeCompartment_34SemanticChildren(viewObject);
- for (UMLNodeDescriptor d : childDescriptors) {
- result.add(d.getModelElement());
- }
- return result;
- }
-
- /**
- * @generated
- */
- @Override
- protected boolean isOrphaned(Collection<EObject> semanticChildren, final View view) {
- return isMyDiagramElement(view) && !semanticChildren.contains(view.getElement());
- }
-
- /**
- * @generated
- */
- private boolean isMyDiagramElement(View view) {
- return ArtifactEditPartACN.VISUAL_ID == UMLVisualIDRegistry.getVisualID(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshSemantic() {
- if (resolveSemanticElement() == null) {
- return;
- }
- LinkedList<IAdaptable> createdViews = new LinkedList<IAdaptable>();
- List<UMLNodeDescriptor> childDescriptors =
- UMLDiagramUpdater.INSTANCE
- .getArtifactArtifactCompositeCompartment_34SemanticChildren((View) getHost().getModel());
- LinkedList<View> orphaned = new LinkedList<View>();
- // we care to check only views we recognize as ours
- LinkedList<View> knownViewChildren = new LinkedList<View>();
- for (View v : getViewChildren()) {
- if (isMyDiagramElement(v)) {
- knownViewChildren.add(v);
- }
- }
- // alternative to #cleanCanonicalSemanticChildren(getViewChildren(), semanticChildren)
- //
- // iteration happens over list of desired semantic elements, trying to find best matching View, while original CEP
- // iterates views, potentially losing view (size/bounds) information - i.e. if there are few views to reference same EObject, only last one
- // to answer isOrphaned == true will be used for the domain element representation, see #cleanCanonicalSemanticChildren()
- for (Iterator<UMLNodeDescriptor> descriptorsIterator = childDescriptors.iterator(); descriptorsIterator.hasNext();) {
- UMLNodeDescriptor next = descriptorsIterator.next();
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- LinkedList<View> perfectMatch = new LinkedList<View>(); // both semanticElement and hint match that of NodeDescriptor
- for (View childView : getViewChildren()) {
- EObject semanticElement = childView.getElement();
- if (next.getModelElement().equals(semanticElement)) {
- if (hint.equals(childView.getType())) {
- perfectMatch.add(childView);
- // actually, can stop iteration over view children here, but
- // may want to use not the first view but last one as a 'real' match (the way original CEP does
- // with its trick with viewToSemanticMap inside #cleanCanonicalSemanticChildren
- }
- }
- }
- if (perfectMatch.size() > 0) {
- descriptorsIterator.remove(); // precise match found no need to create anything for the NodeDescriptor
- // use only one view (first or last?), keep rest as orphaned for further consideration
- knownViewChildren.remove(perfectMatch.getFirst());
- }
- }
- // those left in knownViewChildren are subject to removal - they are our diagram elements we didn't find match to,
- // or those we have potential matches to, and thus need to be recreated, preserving size/location information.
- orphaned.addAll(knownViewChildren);
- //
- ArrayList<CreateViewRequest.ViewDescriptor> viewDescriptors = new ArrayList<CreateViewRequest.ViewDescriptor>(childDescriptors.size());
- for (UMLNodeDescriptor next : childDescriptors) {
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- IAdaptable elementAdapter = new CanonicalElementAdapter(next.getModelElement(), hint);
- CreateViewRequest.ViewDescriptor descriptor = new CreateViewRequest.ViewDescriptor(elementAdapter, Node.class, hint, ViewUtil.APPEND, false, host().getDiagramPreferencesHint());
- viewDescriptors.add(descriptor);
- }
-
- boolean changed = deleteViews(orphaned.iterator());
- //
- CreateViewRequest request = getCreateViewRequest(viewDescriptors);
- Command cmd = getCreateViewCommand(request);
- if (cmd != null && cmd.canExecute()) {
- SetViewMutabilityCommand.makeMutable(new EObjectAdapter(host().getNotationView())).execute();
- executeCommand(cmd);
- @SuppressWarnings("unchecked")
- List<IAdaptable> nl = (List<IAdaptable>) request.getNewObject();
- createdViews.addAll(nl);
- }
- if (changed || createdViews.size() > 0) {
- postProcessRefreshSemantic(createdViews);
- }
- if (createdViews.size() > 1) {
- // perform a layout of the container
- DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host().getEditingDomain(), createdViews, host());
- executeCommand(new ICommandProxy(layoutCmd));
- }
-
- makeViewsImmutable(createdViews);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentCanonicalEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentCanonicalEditPolicyCN.java
deleted file mode 100644
index ca8255657ca..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentCanonicalEditPolicyCN.java
+++ /dev/null
@@ -1,176 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.commands.DeferredLayoutCommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.diagram.ui.commands.SetViewMutabilityCommand;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramUpdater;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLNodeDescriptor;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class ArtifactCompositeCompartmentCanonicalEditPolicyCN extends CanonicalEditPolicy {
-
- /**
- * @generated
- */
- @Override
- protected void refreshOnActivate() {
- // Need to activate editpart children before invoking the canonical refresh for EditParts to add event listeners
- List<?> c = getHost().getChildren();
- for (int i = 0; i < c.size(); i++) {
- ((EditPart) c.get(i)).activate();
- }
- super.refreshOnActivate();
- }
-
- /**
- * @generated
- */
- @Override
- protected EStructuralFeature getFeatureToSynchronize() {
- return UMLPackage.eINSTANCE.getArtifact_NestedArtifact();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<EObject> getSemanticChildrenList() {
- View viewObject = (View) getHost().getModel();
- LinkedList<EObject> result = new LinkedList<EObject>();
- List<UMLNodeDescriptor> childDescriptors = UMLDiagramUpdater.INSTANCE
- .getArtifactArtifactCompositeCompartment_33SemanticChildren(viewObject);
- for (UMLNodeDescriptor d : childDescriptors) {
- result.add(d.getModelElement());
- }
- return result;
- }
-
- /**
- * @generated
- */
- @Override
- protected boolean isOrphaned(Collection<EObject> semanticChildren, final View view) {
- return isMyDiagramElement(view) && !semanticChildren.contains(view.getElement());
- }
-
- /**
- * @generated
- */
- private boolean isMyDiagramElement(View view) {
- return ArtifactEditPartACN.VISUAL_ID == UMLVisualIDRegistry.getVisualID(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshSemantic() {
- if (resolveSemanticElement() == null) {
- return;
- }
- LinkedList<IAdaptable> createdViews = new LinkedList<IAdaptable>();
- List<UMLNodeDescriptor> childDescriptors =
- UMLDiagramUpdater.INSTANCE
- .getArtifactArtifactCompositeCompartment_33SemanticChildren((View) getHost().getModel());
- LinkedList<View> orphaned = new LinkedList<View>();
- // we care to check only views we recognize as ours
- LinkedList<View> knownViewChildren = new LinkedList<View>();
- for (View v : getViewChildren()) {
- if (isMyDiagramElement(v)) {
- knownViewChildren.add(v);
- }
- }
- // alternative to #cleanCanonicalSemanticChildren(getViewChildren(), semanticChildren)
- //
- // iteration happens over list of desired semantic elements, trying to find best matching View, while original CEP
- // iterates views, potentially losing view (size/bounds) information - i.e. if there are few views to reference same EObject, only last one
- // to answer isOrphaned == true will be used for the domain element representation, see #cleanCanonicalSemanticChildren()
- for (Iterator<UMLNodeDescriptor> descriptorsIterator = childDescriptors.iterator(); descriptorsIterator.hasNext();) {
- UMLNodeDescriptor next = descriptorsIterator.next();
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- LinkedList<View> perfectMatch = new LinkedList<View>(); // both semanticElement and hint match that of NodeDescriptor
- for (View childView : getViewChildren()) {
- EObject semanticElement = childView.getElement();
- if (next.getModelElement().equals(semanticElement)) {
- if (hint.equals(childView.getType())) {
- perfectMatch.add(childView);
- // actually, can stop iteration over view children here, but
- // may want to use not the first view but last one as a 'real' match (the way original CEP does
- // with its trick with viewToSemanticMap inside #cleanCanonicalSemanticChildren
- }
- }
- }
- if (perfectMatch.size() > 0) {
- descriptorsIterator.remove(); // precise match found no need to create anything for the NodeDescriptor
- // use only one view (first or last?), keep rest as orphaned for further consideration
- knownViewChildren.remove(perfectMatch.getFirst());
- }
- }
- // those left in knownViewChildren are subject to removal - they are our diagram elements we didn't find match to,
- // or those we have potential matches to, and thus need to be recreated, preserving size/location information.
- orphaned.addAll(knownViewChildren);
- //
- ArrayList<CreateViewRequest.ViewDescriptor> viewDescriptors = new ArrayList<CreateViewRequest.ViewDescriptor>(childDescriptors.size());
- for (UMLNodeDescriptor next : childDescriptors) {
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- IAdaptable elementAdapter = new CanonicalElementAdapter(next.getModelElement(), hint);
- CreateViewRequest.ViewDescriptor descriptor = new CreateViewRequest.ViewDescriptor(elementAdapter, Node.class, hint, ViewUtil.APPEND, false, host().getDiagramPreferencesHint());
- viewDescriptors.add(descriptor);
- }
-
- boolean changed = deleteViews(orphaned.iterator());
- //
- CreateViewRequest request = getCreateViewRequest(viewDescriptors);
- Command cmd = getCreateViewCommand(request);
- if (cmd != null && cmd.canExecute()) {
- SetViewMutabilityCommand.makeMutable(new EObjectAdapter(host().getNotationView())).execute();
- executeCommand(cmd);
- @SuppressWarnings("unchecked")
- List<IAdaptable> nl = (List<IAdaptable>) request.getNewObject();
- createdViews.addAll(nl);
- }
- if (changed || createdViews.size() > 0) {
- postProcessRefreshSemantic(createdViews);
- }
- if (createdViews.size() > 1) {
- // perform a layout of the container
- DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host().getEditingDomain(), createdViews, host());
- executeCommand(new ICommandProxy(layoutCmd));
- }
-
- makeViewsImmutable(createdViews);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentItemSemanticEditPolicy.java
deleted file mode 100644
index 615cdad94da..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramUtils;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ArtifactCreateCommandACN;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class ArtifactCompositeCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public ArtifactCompositeCompartmentItemSemanticEditPolicy() {
- super(UMLElementTypes.Artifact_2006);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateCommand(CreateElementRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return super.getCreateCommand(req);
- }
-
-
- if (UMLElementTypes.Artifact_28 == requestElementType) {
-
- return getGEFWrapper(new ArtifactCreateCommandACN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- return super.getCreateCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentItemSemanticEditPolicyACN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentItemSemanticEditPolicyACN.java
deleted file mode 100644
index 7e2482c3dc2..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentItemSemanticEditPolicyACN.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramUtils;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ArtifactCreateCommandACN;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class ArtifactCompositeCompartmentItemSemanticEditPolicyACN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public ArtifactCompositeCompartmentItemSemanticEditPolicyACN() {
- super(UMLElementTypes.Artifact_28);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateCommand(CreateElementRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return super.getCreateCommand(req);
- }
-
-
- if (UMLElementTypes.Artifact_28 == requestElementType) {
-
- return getGEFWrapper(new ArtifactCreateCommandACN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- return super.getCreateCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentItemSemanticEditPolicyCN.java
deleted file mode 100644
index abf5f529515..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactCompositeCompartmentItemSemanticEditPolicyCN.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramUtils;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ArtifactCreateCommandACN;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class ArtifactCompositeCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public ArtifactCompositeCompartmentItemSemanticEditPolicyCN() {
- super(UMLElementTypes.Artifact_25);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateCommand(CreateElementRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return super.getCreateCommand(req);
- }
-
-
- if (UMLElementTypes.Artifact_28 == requestElementType) {
-
- return getGEFWrapper(new ArtifactCreateCommandACN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- return super.getCreateCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactItemSemanticEditPolicy.java
deleted file mode 100644
index e39cffe4f24..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,266 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.GeneralizationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class ArtifactItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public ArtifactItemSemanticEditPolicy() {
- super(UMLElementTypes.Artifact_2006);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- EObject selectedEObject = req.getElementToDestroy();
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
- if (provider != null) {
- // Retrieve delete command from the Element Edit service
- ICommand deleteCommand = provider.getEditCommand(req);
-
- if (deleteCommand != null) {
- return new ICommandProxy(deleteCommand);
- }
- }
- return UnexecutableCommand.INSTANCE;
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactItemSemanticEditPolicyACN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactItemSemanticEditPolicyACN.java
deleted file mode 100644
index 81dde53dffa..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactItemSemanticEditPolicyACN.java
+++ /dev/null
@@ -1,339 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.command.DeleteCommand;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.common.core.command.ICompositeCommand;
-import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyReferenceCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.gmf.runtime.notation.Edge;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.GeneralizationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class ArtifactItemSemanticEditPolicyACN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public ArtifactItemSemanticEditPolicyACN() {
- super(UMLElementTypes.Artifact_28);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- View view = (View) getHost().getModel();
- CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
- cmd.setTransactionNestingEnabled(true);
- EAnnotation annotation = view.getEAnnotation("Shortcut");//$NON-NLS-1$
- if (annotation == null) {
- // there are indirectly referenced children, need extra commands: false
- addDestroyChildNodesCommand(cmd);
- addDestroyShortcutsCommand(cmd, view);
- // delete host element
- List<EObject> todestroy = new ArrayList<EObject>();
- todestroy.add(req.getElementToDestroy());
- // cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
- cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
- } else {
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
- }
- return getGEFWrapper(cmd.reduce());
- }
-
- /**
- * @generated
- */
- protected void addDestroyChildNodesCommand(ICompositeCommand cmd) {
- View view = (View) getHost().getModel();
- for (Iterator<?> nit = view.getChildren().iterator(); nit.hasNext();) {
- Node node = (Node) nit.next();
- switch (UMLVisualIDRegistry.getVisualID(node)) {
- case ArtifactCompositeCompartmentEditPartACN.VISUAL_ID:
- for (Iterator<?> cit = node.getChildren().iterator(); cit.hasNext();) {
- Node cnode = (Node) cit.next();
- switch (UMLVisualIDRegistry.getVisualID(cnode)) {
- case ArtifactEditPartACN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- }
- }
- break;
- }
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactItemSemanticEditPolicyCN.java
deleted file mode 100644
index 092b1cf5ed5..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ArtifactItemSemanticEditPolicyCN.java
+++ /dev/null
@@ -1,339 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.command.DeleteCommand;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.common.core.command.ICompositeCommand;
-import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyReferenceCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.gmf.runtime.notation.Edge;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.GeneralizationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class ArtifactItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public ArtifactItemSemanticEditPolicyCN() {
- super(UMLElementTypes.Artifact_25);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- View view = (View) getHost().getModel();
- CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
- cmd.setTransactionNestingEnabled(true);
- EAnnotation annotation = view.getEAnnotation("Shortcut");//$NON-NLS-1$
- if (annotation == null) {
- // there are indirectly referenced children, need extra commands: false
- addDestroyChildNodesCommand(cmd);
- addDestroyShortcutsCommand(cmd, view);
- // delete host element
- List<EObject> todestroy = new ArrayList<EObject>();
- todestroy.add(req.getElementToDestroy());
- // cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
- cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
- } else {
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
- }
- return getGEFWrapper(cmd.reduce());
- }
-
- /**
- * @generated
- */
- protected void addDestroyChildNodesCommand(ICompositeCommand cmd) {
- View view = (View) getHost().getModel();
- for (Iterator<?> nit = view.getChildren().iterator(); nit.hasNext();) {
- Node node = (Node) nit.next();
- switch (UMLVisualIDRegistry.getVisualID(node)) {
- case ArtifactCompositeCompartmentEditPartCN.VISUAL_ID:
- for (Iterator<?> cit = node.getChildren().iterator(); cit.hasNext();) {
- Node cnode = (Node) cit.next();
- switch (UMLVisualIDRegistry.getVisualID(cnode)) {
- case ArtifactEditPartACN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- }
- }
- break;
- }
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/CommentAnnotatedElementItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/CommentAnnotatedElementItemSemanticEditPolicy.java
deleted file mode 100644
index b62e3e18f96..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/CommentAnnotatedElementItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyReferenceCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class CommentAnnotatedElementItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public CommentAnnotatedElementItemSemanticEditPolicy() {
- super(UMLElementTypes.CommentAnnotatedElement_4008);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyReferenceCommand(DestroyReferenceRequest req) {
- return getGEFWrapper(new DestroyReferenceCommand(req));
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/CommentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/CommentItemSemanticEditPolicy.java
deleted file mode 100644
index 03b35f376ba..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/CommentItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,161 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class CommentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public CommentItemSemanticEditPolicy() {
- super(UMLElementTypes.Comment_2001);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- EObject selectedEObject = req.getElementToDestroy();
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
- if (provider != null) {
- // Retrieve delete command from the Element Edit service
- ICommand deleteCommand = provider.getEditCommand(req);
-
- if (deleteCommand != null) {
- return new ICommandProxy(deleteCommand);
- }
- }
- return UnexecutableCommand.INSTANCE;
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/CommentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/CommentItemSemanticEditPolicyCN.java
deleted file mode 100644
index 4786f21c4e6..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/CommentItemSemanticEditPolicyCN.java
+++ /dev/null
@@ -1,169 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.command.DeleteCommand;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class CommentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public CommentItemSemanticEditPolicyCN() {
- super(UMLElementTypes.Comment_54);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- View view = (View) getHost().getModel();
- CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
- cmd.setTransactionNestingEnabled(true);
- EAnnotation annotation = view.getEAnnotation("Shortcut");//$NON-NLS-1$
- if (annotation == null) {
- // there are indirectly referenced children, need extra commands: false
- addDestroyShortcutsCommand(cmd, view);
- // delete host element
- List<EObject> todestroy = new ArrayList<EObject>();
- todestroy.add(req.getElementToDestroy());
- // cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
- cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
- } else {
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
- }
- return getGEFWrapper(cmd.reduce());
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ConstraintConstrainedElementItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ConstraintConstrainedElementItemSemanticEditPolicy.java
deleted file mode 100644
index 7755e708c40..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ConstraintConstrainedElementItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyReferenceCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class ConstraintConstrainedElementItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public ConstraintConstrainedElementItemSemanticEditPolicy() {
- super(UMLElementTypes.ConstraintConstrainedElement_4009);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyReferenceCommand(DestroyReferenceRequest req) {
- return getGEFWrapper(new DestroyReferenceCommand(req));
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ConstraintItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ConstraintItemSemanticEditPolicy.java
deleted file mode 100644
index 4d7cda2a34a..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ConstraintItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,253 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class ConstraintItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public ConstraintItemSemanticEditPolicy() {
- super(UMLElementTypes.Constraint_2005);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- EObject selectedEObject = req.getElementToDestroy();
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
- if (provider != null) {
- // Retrieve delete command from the Element Edit service
- ICommand deleteCommand = provider.getEditCommand(req);
-
- if (deleteCommand != null) {
- return new ICommandProxy(deleteCommand);
- }
- }
- return UnexecutableCommand.INSTANCE;
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ConstraintItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ConstraintItemSemanticEditPolicyCN.java
deleted file mode 100644
index d30c44d5f53..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ConstraintItemSemanticEditPolicyCN.java
+++ /dev/null
@@ -1,265 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.command.DeleteCommand;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class ConstraintItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public ConstraintItemSemanticEditPolicyCN() {
- super(UMLElementTypes.Constraint_56);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- View view = (View) getHost().getModel();
- CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
- cmd.setTransactionNestingEnabled(true);
- EAnnotation annotation = view.getEAnnotation("Shortcut");//$NON-NLS-1$
- if (annotation == null) {
- // there are indirectly referenced children, need extra commands: false
- addDestroyShortcutsCommand(cmd, view);
- // delete host element
- List<EObject> todestroy = new ArrayList<EObject>();
- todestroy.add(req.getElementToDestroy());
- // cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
- cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
- } else {
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
- }
- return getGEFWrapper(cmd.reduce());
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DefaultNamedElementItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DefaultNamedElementItemSemanticEditPolicy.java
deleted file mode 100644
index fde45895a8d..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DefaultNamedElementItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,261 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.command.DeleteCommand;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class DefaultNamedElementItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public DefaultNamedElementItemSemanticEditPolicy() {
- super(UMLElementTypes.NamedElement_2012);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- View view = (View) getHost().getModel();
- CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
- cmd.setTransactionNestingEnabled(true);
- EAnnotation annotation = view.getEAnnotation("Shortcut");//$NON-NLS-1$
- if (annotation == null) {
- // there are indirectly referenced children, need extra commands: false
- addDestroyShortcutsCommand(cmd, view);
- // delete host element
- List<EObject> todestroy = new ArrayList<EObject>();
- todestroy.add(req.getElementToDestroy());
- // cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
- cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
- } else {
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
- }
- return getGEFWrapper(cmd.reduce());
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DependencyBranchItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DependencyBranchItemSemanticEditPolicy.java
deleted file mode 100644
index 251703addbf..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DependencyBranchItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,249 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class DependencyBranchItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public DependencyBranchItemSemanticEditPolicy() {
- super(UMLElementTypes.Dependency_4010);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- EObject selectedEObject = req.getElementToDestroy();
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
- if (provider != null) {
- // Retrieve delete command from the Element Edit service
- ICommand deleteCommand = provider.getEditCommand(req);
-
- if (deleteCommand != null) {
- return new ICommandProxy(deleteCommand);
- }
- }
- return UnexecutableCommand.INSTANCE;
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DependencyItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DependencyItemSemanticEditPolicy.java
deleted file mode 100644
index 678734259c9..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DependencyItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,249 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class DependencyItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public DependencyItemSemanticEditPolicy() {
- super(UMLElementTypes.Dependency_4004);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- EObject selectedEObject = req.getElementToDestroy();
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
- if (provider != null) {
- // Retrieve delete command from the Element Edit service
- ICommand deleteCommand = provider.getEditCommand(req);
-
- if (deleteCommand != null) {
- return new ICommandProxy(deleteCommand);
- }
- }
- return UnexecutableCommand.INSTANCE;
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DependencyNodeItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DependencyNodeItemSemanticEditPolicy.java
deleted file mode 100644
index 5dea41ccd43..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DependencyNodeItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,249 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class DependencyNodeItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public DependencyNodeItemSemanticEditPolicy() {
- super(UMLElementTypes.Dependency_2011);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- EObject selectedEObject = req.getElementToDestroy();
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
- if (provider != null) {
- // Retrieve delete command from the Element Edit service
- ICommand deleteCommand = provider.getEditCommand(req);
-
- if (deleteCommand != null) {
- return new ICommandProxy(deleteCommand);
- }
- }
- return UnexecutableCommand.INSTANCE;
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeploymentDiagramItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeploymentDiagramItemSemanticEditPolicy.java
deleted file mode 100644
index 7b3c319fc8c..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeploymentDiagramItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,131 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.emf.commands.core.commands.DuplicateEObjectsCommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DuplicateElementsRequest;
-import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramUtils;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ArtifactCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DefaultNamedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyNodeCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeviceCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ExecutionEnvironmentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ModelCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NodeCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.PackageCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class DeploymentDiagramItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public DeploymentDiagramItemSemanticEditPolicy() {
- super(UMLElementTypes.Package_1000);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateCommand(CreateElementRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return super.getCreateCommand(req);
- }
-
-
- if (UMLElementTypes.Dependency_2011 == requestElementType) {
-
- return getGEFWrapper(new DependencyNodeCreateCommand(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Model_2010 == requestElementType) {
-
- return getGEFWrapper(new ModelCreateCommand(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Package_2009 == requestElementType) {
-
- return getGEFWrapper(new PackageCreateCommand(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Constraint_2005 == requestElementType) {
-
- return getGEFWrapper(new ConstraintCreateCommand(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Comment_2001 == requestElementType) {
-
- return getGEFWrapper(new CommentCreateCommand(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.ExecutionEnvironment_2002 == requestElementType) {
-
- return getGEFWrapper(new ExecutionEnvironmentCreateCommand(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Device_2003 == requestElementType) {
-
- return getGEFWrapper(new DeviceCreateCommand(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Artifact_2006 == requestElementType) {
-
- return getGEFWrapper(new ArtifactCreateCommand(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Node_2008 == requestElementType) {
-
- return getGEFWrapper(new NodeCreateCommand(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.NamedElement_2012 == requestElementType) {
-
- return getGEFWrapper(new DefaultNamedElementCreateCommand(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- return super.getCreateCommand(req);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDuplicateCommand(DuplicateElementsRequest req) {
- TransactionalEditingDomain editingDomain = ((IGraphicalEditPart) getHost()).getEditingDomain();
- return getGEFWrapper(new DuplicateAnythingCommand(editingDomain, req));
- }
-
- /**
- * @generated
- */
- private static class DuplicateAnythingCommand extends DuplicateEObjectsCommand {
-
- /**
- * @generated
- */
- public DuplicateAnythingCommand(TransactionalEditingDomain editingDomain, DuplicateElementsRequest req) {
- super(editingDomain, req.getLabel(), req.getElementsToBeDuplicated(), req.getAllDuplicatedElementsMap());
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeploymentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeploymentItemSemanticEditPolicy.java
deleted file mode 100644
index 93882cb599f..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeploymentItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,249 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class DeploymentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public DeploymentItemSemanticEditPolicy() {
- super(UMLElementTypes.Deployment_4001);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- EObject selectedEObject = req.getElementToDestroy();
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
- if (provider != null) {
- // Retrieve delete command from the Element Edit service
- ICommand deleteCommand = provider.getEditCommand(req);
-
- if (deleteCommand != null) {
- return new ICommandProxy(deleteCommand);
- }
- }
- return UnexecutableCommand.INSTANCE;
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceCompositeCompartmentCanonicalEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceCompositeCompartmentCanonicalEditPolicy.java
deleted file mode 100644
index 9613fb5ab47..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceCompositeCompartmentCanonicalEditPolicy.java
+++ /dev/null
@@ -1,179 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.commands.DeferredLayoutCommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.diagram.ui.commands.SetViewMutabilityCommand;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramUpdater;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLNodeDescriptor;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class DeviceCompositeCompartmentCanonicalEditPolicy extends CanonicalEditPolicy {
-
- /**
- * @generated
- */
- @Override
- protected void refreshOnActivate() {
- // Need to activate editpart children before invoking the canonical refresh for EditParts to add event listeners
- List<?> c = getHost().getChildren();
- for (int i = 0; i < c.size(); i++) {
- ((EditPart) c.get(i)).activate();
- }
- super.refreshOnActivate();
- }
-
- /**
- * @generated
- */
- @Override
- protected EStructuralFeature getFeatureToSynchronize() {
- return UMLPackage.eINSTANCE.getNode_NestedNode();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<EObject> getSemanticChildrenList() {
- View viewObject = (View) getHost().getModel();
- LinkedList<EObject> result = new LinkedList<EObject>();
- List<UMLNodeDescriptor> childDescriptors = UMLDiagramUpdater.INSTANCE
- .getDeviceDeviceCompositeCompartment_17SemanticChildren(viewObject);
- for (UMLNodeDescriptor d : childDescriptors) {
- result.add(d.getModelElement());
- }
- return result;
- }
-
- /**
- * @generated
- */
- @Override
- protected boolean isOrphaned(Collection<EObject> semanticChildren, final View view) {
- return isMyDiagramElement(view) && !semanticChildren.contains(view.getElement());
- }
-
- /**
- * @generated
- */
- private boolean isMyDiagramElement(View view) {
- int visualID = UMLVisualIDRegistry.getVisualID(view);
- return visualID == ExecutionEnvironmentEditPartCN.VISUAL_ID || visualID == DeviceEditPartCN.VISUAL_ID || visualID == NodeEditPartCN.VISUAL_ID;
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshSemantic() {
- if (resolveSemanticElement() == null) {
- return;
- }
- LinkedList<IAdaptable> createdViews = new LinkedList<IAdaptable>();
- List<UMLNodeDescriptor> childDescriptors =
- UMLDiagramUpdater.INSTANCE
- .getDeviceDeviceCompositeCompartment_17SemanticChildren((View) getHost().getModel());
- LinkedList<View> orphaned = new LinkedList<View>();
- // we care to check only views we recognize as ours
- LinkedList<View> knownViewChildren = new LinkedList<View>();
- for (View v : getViewChildren()) {
- if (isMyDiagramElement(v)) {
- knownViewChildren.add(v);
- }
- }
- // alternative to #cleanCanonicalSemanticChildren(getViewChildren(), semanticChildren)
- //
- // iteration happens over list of desired semantic elements, trying to find best matching View, while original CEP
- // iterates views, potentially losing view (size/bounds) information - i.e. if there are few views to reference same EObject, only last one
- // to answer isOrphaned == true will be used for the domain element representation, see #cleanCanonicalSemanticChildren()
- for (Iterator<UMLNodeDescriptor> descriptorsIterator = childDescriptors.iterator(); descriptorsIterator.hasNext();) {
- UMLNodeDescriptor next = descriptorsIterator.next();
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- LinkedList<View> perfectMatch = new LinkedList<View>(); // both semanticElement and hint match that of NodeDescriptor
- for (View childView : getViewChildren()) {
- EObject semanticElement = childView.getElement();
- if (next.getModelElement().equals(semanticElement)) {
- if (hint.equals(childView.getType())) {
- perfectMatch.add(childView);
- // actually, can stop iteration over view children here, but
- // may want to use not the first view but last one as a 'real' match (the way original CEP does
- // with its trick with viewToSemanticMap inside #cleanCanonicalSemanticChildren
- }
- }
- }
- if (perfectMatch.size() > 0) {
- descriptorsIterator.remove(); // precise match found no need to create anything for the NodeDescriptor
- // use only one view (first or last?), keep rest as orphaned for further consideration
- knownViewChildren.remove(perfectMatch.getFirst());
- }
- }
- // those left in knownViewChildren are subject to removal - they are our diagram elements we didn't find match to,
- // or those we have potential matches to, and thus need to be recreated, preserving size/location information.
- orphaned.addAll(knownViewChildren);
- //
- ArrayList<CreateViewRequest.ViewDescriptor> viewDescriptors = new ArrayList<CreateViewRequest.ViewDescriptor>(childDescriptors.size());
- for (UMLNodeDescriptor next : childDescriptors) {
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- IAdaptable elementAdapter = new CanonicalElementAdapter(next.getModelElement(), hint);
- CreateViewRequest.ViewDescriptor descriptor = new CreateViewRequest.ViewDescriptor(elementAdapter, Node.class, hint, ViewUtil.APPEND, false, host().getDiagramPreferencesHint());
- viewDescriptors.add(descriptor);
- }
-
- boolean changed = deleteViews(orphaned.iterator());
- //
- CreateViewRequest request = getCreateViewRequest(viewDescriptors);
- Command cmd = getCreateViewCommand(request);
- if (cmd != null && cmd.canExecute()) {
- SetViewMutabilityCommand.makeMutable(new EObjectAdapter(host().getNotationView())).execute();
- executeCommand(cmd);
- @SuppressWarnings("unchecked")
- List<IAdaptable> nl = (List<IAdaptable>) request.getNewObject();
- createdViews.addAll(nl);
- }
- if (changed || createdViews.size() > 0) {
- postProcessRefreshSemantic(createdViews);
- }
- if (createdViews.size() > 1) {
- // perform a layout of the container
- DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host().getEditingDomain(), createdViews, host());
- executeCommand(new ICommandProxy(layoutCmd));
- }
-
- makeViewsImmutable(createdViews);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceCompositeCompartmentCanonicalEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceCompositeCompartmentCanonicalEditPolicyCN.java
deleted file mode 100644
index c07377082cf..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceCompositeCompartmentCanonicalEditPolicyCN.java
+++ /dev/null
@@ -1,179 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.commands.DeferredLayoutCommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.diagram.ui.commands.SetViewMutabilityCommand;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramUpdater;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLNodeDescriptor;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class DeviceCompositeCompartmentCanonicalEditPolicyCN extends CanonicalEditPolicy {
-
- /**
- * @generated
- */
- @Override
- protected void refreshOnActivate() {
- // Need to activate editpart children before invoking the canonical refresh for EditParts to add event listeners
- List<?> c = getHost().getChildren();
- for (int i = 0; i < c.size(); i++) {
- ((EditPart) c.get(i)).activate();
- }
- super.refreshOnActivate();
- }
-
- /**
- * @generated
- */
- @Override
- protected EStructuralFeature getFeatureToSynchronize() {
- return UMLPackage.eINSTANCE.getNode_NestedNode();
- }
-
- /**
- * @generated
- */
- @Override
- protected List<EObject> getSemanticChildrenList() {
- View viewObject = (View) getHost().getModel();
- LinkedList<EObject> result = new LinkedList<EObject>();
- List<UMLNodeDescriptor> childDescriptors = UMLDiagramUpdater.INSTANCE
- .getDeviceDeviceCompositeCompartment_30SemanticChildren(viewObject);
- for (UMLNodeDescriptor d : childDescriptors) {
- result.add(d.getModelElement());
- }
- return result;
- }
-
- /**
- * @generated
- */
- @Override
- protected boolean isOrphaned(Collection<EObject> semanticChildren, final View view) {
- return isMyDiagramElement(view) && !semanticChildren.contains(view.getElement());
- }
-
- /**
- * @generated
- */
- private boolean isMyDiagramElement(View view) {
- int visualID = UMLVisualIDRegistry.getVisualID(view);
- return visualID == ExecutionEnvironmentEditPartCN.VISUAL_ID || visualID == DeviceEditPartCN.VISUAL_ID || visualID == NodeEditPartCN.VISUAL_ID;
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshSemantic() {
- if (resolveSemanticElement() == null) {
- return;
- }
- LinkedList<IAdaptable> createdViews = new LinkedList<IAdaptable>();
- List<UMLNodeDescriptor> childDescriptors =
- UMLDiagramUpdater.INSTANCE
- .getDeviceDeviceCompositeCompartment_30SemanticChildren((View) getHost().getModel());
- LinkedList<View> orphaned = new LinkedList<View>();
- // we care to check only views we recognize as ours
- LinkedList<View> knownViewChildren = new LinkedList<View>();
- for (View v : getViewChildren()) {
- if (isMyDiagramElement(v)) {
- knownViewChildren.add(v);
- }
- }
- // alternative to #cleanCanonicalSemanticChildren(getViewChildren(), semanticChildren)
- //
- // iteration happens over list of desired semantic elements, trying to find best matching View, while original CEP
- // iterates views, potentially losing view (size/bounds) information - i.e. if there are few views to reference same EObject, only last one
- // to answer isOrphaned == true will be used for the domain element representation, see #cleanCanonicalSemanticChildren()
- for (Iterator<UMLNodeDescriptor> descriptorsIterator = childDescriptors.iterator(); descriptorsIterator.hasNext();) {
- UMLNodeDescriptor next = descriptorsIterator.next();
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- LinkedList<View> perfectMatch = new LinkedList<View>(); // both semanticElement and hint match that of NodeDescriptor
- for (View childView : getViewChildren()) {
- EObject semanticElement = childView.getElement();
- if (next.getModelElement().equals(semanticElement)) {
- if (hint.equals(childView.getType())) {
- perfectMatch.add(childView);
- // actually, can stop iteration over view children here, but
- // may want to use not the first view but last one as a 'real' match (the way original CEP does
- // with its trick with viewToSemanticMap inside #cleanCanonicalSemanticChildren
- }
- }
- }
- if (perfectMatch.size() > 0) {
- descriptorsIterator.remove(); // precise match found no need to create anything for the NodeDescriptor
- // use only one view (first or last?), keep rest as orphaned for further consideration
- knownViewChildren.remove(perfectMatch.getFirst());
- }
- }
- // those left in knownViewChildren are subject to removal - they are our diagram elements we didn't find match to,
- // or those we have potential matches to, and thus need to be recreated, preserving size/location information.
- orphaned.addAll(knownViewChildren);
- //
- ArrayList<CreateViewRequest.ViewDescriptor> viewDescriptors = new ArrayList<CreateViewRequest.ViewDescriptor>(childDescriptors.size());
- for (UMLNodeDescriptor next : childDescriptors) {
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- IAdaptable elementAdapter = new CanonicalElementAdapter(next.getModelElement(), hint);
- CreateViewRequest.ViewDescriptor descriptor = new CreateViewRequest.ViewDescriptor(elementAdapter, Node.class, hint, ViewUtil.APPEND, false, host().getDiagramPreferencesHint());
- viewDescriptors.add(descriptor);
- }
-
- boolean changed = deleteViews(orphaned.iterator());
- //
- CreateViewRequest request = getCreateViewRequest(viewDescriptors);
- Command cmd = getCreateViewCommand(request);
- if (cmd != null && cmd.canExecute()) {
- SetViewMutabilityCommand.makeMutable(new EObjectAdapter(host().getNotationView())).execute();
- executeCommand(cmd);
- @SuppressWarnings("unchecked")
- List<IAdaptable> nl = (List<IAdaptable>) request.getNewObject();
- createdViews.addAll(nl);
- }
- if (changed || createdViews.size() > 0) {
- postProcessRefreshSemantic(createdViews);
- }
- if (createdViews.size() > 1) {
- // perform a layout of the container
- DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host().getEditingDomain(), createdViews, host());
- executeCommand(new ICommandProxy(layoutCmd));
- }
-
- makeViewsImmutable(createdViews);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceCompositeCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceCompositeCompartmentItemSemanticEditPolicy.java
deleted file mode 100644
index a8882e01890..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceCompositeCompartmentItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramUtils;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeviceCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ExecutionEnvironmentCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NodeCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class DeviceCompositeCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public DeviceCompositeCompartmentItemSemanticEditPolicy() {
- super(UMLElementTypes.Device_2003);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateCommand(CreateElementRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return super.getCreateCommand(req);
- }
-
-
- if (UMLElementTypes.ExecutionEnvironment_21 == requestElementType) {
-
- return getGEFWrapper(new ExecutionEnvironmentCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Device_16 == requestElementType) {
-
- return getGEFWrapper(new DeviceCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Node_23 == requestElementType) {
-
- return getGEFWrapper(new NodeCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- return super.getCreateCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceCompositeCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceCompositeCompartmentItemSemanticEditPolicyCN.java
deleted file mode 100644
index 6563490f39b..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceCompositeCompartmentItemSemanticEditPolicyCN.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramUtils;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeviceCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ExecutionEnvironmentCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NodeCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class DeviceCompositeCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public DeviceCompositeCompartmentItemSemanticEditPolicyCN() {
- super(UMLElementTypes.Device_44);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateCommand(CreateElementRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return super.getCreateCommand(req);
- }
-
-
- if (UMLElementTypes.ExecutionEnvironment_21 == requestElementType) {
-
- return getGEFWrapper(new ExecutionEnvironmentCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Device_16 == requestElementType) {
-
- return getGEFWrapper(new DeviceCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Node_23 == requestElementType) {
-
- return getGEFWrapper(new NodeCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- return super.getCreateCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceItemSemanticEditPolicy.java
deleted file mode 100644
index 6ac83ffb0df..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,266 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.GeneralizationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class DeviceItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public DeviceItemSemanticEditPolicy() {
- super(UMLElementTypes.Device_2003);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- EObject selectedEObject = req.getElementToDestroy();
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
- if (provider != null) {
- // Retrieve delete command from the Element Edit service
- ICommand deleteCommand = provider.getEditCommand(req);
-
- if (deleteCommand != null) {
- return new ICommandProxy(deleteCommand);
- }
- }
- return UnexecutableCommand.INSTANCE;
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceItemSemanticEditPolicyCN.java
deleted file mode 100644
index 47e58cb6331..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/DeviceItemSemanticEditPolicyCN.java
+++ /dev/null
@@ -1,278 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.command.DeleteCommand;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.GeneralizationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class DeviceItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public DeviceItemSemanticEditPolicyCN() {
- super(UMLElementTypes.Device_16);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- View view = (View) getHost().getModel();
- CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
- cmd.setTransactionNestingEnabled(true);
- EAnnotation annotation = view.getEAnnotation("Shortcut");//$NON-NLS-1$
- if (annotation == null) {
- // there are indirectly referenced children, need extra commands: false
- addDestroyShortcutsCommand(cmd, view);
- // delete host element
- List<EObject> todestroy = new ArrayList<EObject>();
- todestroy.add(req.getElementToDestroy());
- // cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
- cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
- } else {
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
- }
- return getGEFWrapper(cmd.reduce());
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicy.java
deleted file mode 100644
index 3c4746193d3..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicy.java
+++ /dev/null
@@ -1,190 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.commands.DeferredLayoutCommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.diagram.ui.commands.SetViewMutabilityCommand;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramUpdater;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLNodeDescriptor;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicy extends CanonicalEditPolicy {
-
- /**
- * @generated
- */
- private Set<EStructuralFeature> myFeaturesToSynchronize;
-
- /**
- * @generated
- */
- @Override
- protected void refreshOnActivate() {
- // Need to activate editpart children before invoking the canonical refresh for EditParts to add event listeners
- List<?> c = getHost().getChildren();
- for (int i = 0; i < c.size(); i++) {
- ((EditPart) c.get(i)).activate();
- }
- super.refreshOnActivate();
- }
-
- /**
- * @generated
- */
- @Override
- protected Set<EStructuralFeature> getFeaturesToSynchronize() {
- if (myFeaturesToSynchronize == null) {
- myFeaturesToSynchronize = new HashSet<EStructuralFeature>();
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getNode_NestedNode());
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getClass_NestedClassifier());
- }
- return myFeaturesToSynchronize;
- }
-
- /**
- * @generated
- */
- @Override
- protected List<EObject> getSemanticChildrenList() {
- View viewObject = (View) getHost().getModel();
- LinkedList<EObject> result = new LinkedList<EObject>();
- List<UMLNodeDescriptor> childDescriptors = UMLDiagramUpdater.INSTANCE
- .getExecutionEnvironmentExecutionEnvironmentCompositeCompartment_18SemanticChildren(viewObject);
- for (UMLNodeDescriptor d : childDescriptors) {
- result.add(d.getModelElement());
- }
- return result;
- }
-
- /**
- * @generated
- */
- @Override
- protected boolean isOrphaned(Collection<EObject> semanticChildren, final View view) {
- return isMyDiagramElement(view) && !semanticChildren.contains(view.getElement());
- }
-
- /**
- * @generated
- */
- private boolean isMyDiagramElement(View view) {
- int visualID = UMLVisualIDRegistry.getVisualID(view);
- return visualID == ExecutionEnvironmentEditPartCN.VISUAL_ID || visualID == ArtifactEditPartCN.VISUAL_ID;
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshSemantic() {
- if (resolveSemanticElement() == null) {
- return;
- }
- LinkedList<IAdaptable> createdViews = new LinkedList<IAdaptable>();
- List<UMLNodeDescriptor> childDescriptors =
- UMLDiagramUpdater.INSTANCE
- .getExecutionEnvironmentExecutionEnvironmentCompositeCompartment_18SemanticChildren((View) getHost().getModel());
- LinkedList<View> orphaned = new LinkedList<View>();
- // we care to check only views we recognize as ours
- LinkedList<View> knownViewChildren = new LinkedList<View>();
- for (View v : getViewChildren()) {
- if (isMyDiagramElement(v)) {
- knownViewChildren.add(v);
- }
- }
- // alternative to #cleanCanonicalSemanticChildren(getViewChildren(), semanticChildren)
- //
- // iteration happens over list of desired semantic elements, trying to find best matching View, while original CEP
- // iterates views, potentially losing view (size/bounds) information - i.e. if there are few views to reference same EObject, only last one
- // to answer isOrphaned == true will be used for the domain element representation, see #cleanCanonicalSemanticChildren()
- for (Iterator<UMLNodeDescriptor> descriptorsIterator = childDescriptors.iterator(); descriptorsIterator.hasNext();) {
- UMLNodeDescriptor next = descriptorsIterator.next();
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- LinkedList<View> perfectMatch = new LinkedList<View>(); // both semanticElement and hint match that of NodeDescriptor
- for (View childView : getViewChildren()) {
- EObject semanticElement = childView.getElement();
- if (next.getModelElement().equals(semanticElement)) {
- if (hint.equals(childView.getType())) {
- perfectMatch.add(childView);
- // actually, can stop iteration over view children here, but
- // may want to use not the first view but last one as a 'real' match (the way original CEP does
- // with its trick with viewToSemanticMap inside #cleanCanonicalSemanticChildren
- }
- }
- }
- if (perfectMatch.size() > 0) {
- descriptorsIterator.remove(); // precise match found no need to create anything for the NodeDescriptor
- // use only one view (first or last?), keep rest as orphaned for further consideration
- knownViewChildren.remove(perfectMatch.getFirst());
- }
- }
- // those left in knownViewChildren are subject to removal - they are our diagram elements we didn't find match to,
- // or those we have potential matches to, and thus need to be recreated, preserving size/location information.
- orphaned.addAll(knownViewChildren);
- //
- ArrayList<CreateViewRequest.ViewDescriptor> viewDescriptors = new ArrayList<CreateViewRequest.ViewDescriptor>(childDescriptors.size());
- for (UMLNodeDescriptor next : childDescriptors) {
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- IAdaptable elementAdapter = new CanonicalElementAdapter(next.getModelElement(), hint);
- CreateViewRequest.ViewDescriptor descriptor = new CreateViewRequest.ViewDescriptor(elementAdapter, Node.class, hint, ViewUtil.APPEND, false, host().getDiagramPreferencesHint());
- viewDescriptors.add(descriptor);
- }
-
- boolean changed = deleteViews(orphaned.iterator());
- //
- CreateViewRequest request = getCreateViewRequest(viewDescriptors);
- Command cmd = getCreateViewCommand(request);
- if (cmd != null && cmd.canExecute()) {
- SetViewMutabilityCommand.makeMutable(new EObjectAdapter(host().getNotationView())).execute();
- executeCommand(cmd);
- @SuppressWarnings("unchecked")
- List<IAdaptable> nl = (List<IAdaptable>) request.getNewObject();
- createdViews.addAll(nl);
- }
- if (changed || createdViews.size() > 0) {
- postProcessRefreshSemantic(createdViews);
- }
- if (createdViews.size() > 1) {
- // perform a layout of the container
- DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host().getEditingDomain(), createdViews, host());
- executeCommand(new ICommandProxy(layoutCmd));
- }
-
- makeViewsImmutable(createdViews);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicyCN.java
deleted file mode 100644
index 2b7b6d61eb2..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicyCN.java
+++ /dev/null
@@ -1,190 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.commands.DeferredLayoutCommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.diagram.ui.commands.SetViewMutabilityCommand;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramUpdater;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLNodeDescriptor;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class ExecutionEnvironmentCompositeCompartmentCanonicalEditPolicyCN extends CanonicalEditPolicy {
-
- /**
- * @generated
- */
- private Set<EStructuralFeature> myFeaturesToSynchronize;
-
- /**
- * @generated
- */
- @Override
- protected void refreshOnActivate() {
- // Need to activate editpart children before invoking the canonical refresh for EditParts to add event listeners
- List<?> c = getHost().getChildren();
- for (int i = 0; i < c.size(); i++) {
- ((EditPart) c.get(i)).activate();
- }
- super.refreshOnActivate();
- }
-
- /**
- * @generated
- */
- @Override
- protected Set<EStructuralFeature> getFeaturesToSynchronize() {
- if (myFeaturesToSynchronize == null) {
- myFeaturesToSynchronize = new HashSet<EStructuralFeature>();
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getClass_NestedClassifier());
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getNode_NestedNode());
- }
- return myFeaturesToSynchronize;
- }
-
- /**
- * @generated
- */
- @Override
- protected List<EObject> getSemanticChildrenList() {
- View viewObject = (View) getHost().getModel();
- LinkedList<EObject> result = new LinkedList<EObject>();
- List<UMLNodeDescriptor> childDescriptors = UMLDiagramUpdater.INSTANCE
- .getExecutionEnvironmentExecutionEnvironmentCompositeCompartment_31SemanticChildren(viewObject);
- for (UMLNodeDescriptor d : childDescriptors) {
- result.add(d.getModelElement());
- }
- return result;
- }
-
- /**
- * @generated
- */
- @Override
- protected boolean isOrphaned(Collection<EObject> semanticChildren, final View view) {
- return isMyDiagramElement(view) && !semanticChildren.contains(view.getElement());
- }
-
- /**
- * @generated
- */
- private boolean isMyDiagramElement(View view) {
- int visualID = UMLVisualIDRegistry.getVisualID(view);
- return visualID == ArtifactEditPartCN.VISUAL_ID || visualID == ExecutionEnvironmentEditPartCN.VISUAL_ID;
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshSemantic() {
- if (resolveSemanticElement() == null) {
- return;
- }
- LinkedList<IAdaptable> createdViews = new LinkedList<IAdaptable>();
- List<UMLNodeDescriptor> childDescriptors =
- UMLDiagramUpdater.INSTANCE
- .getExecutionEnvironmentExecutionEnvironmentCompositeCompartment_31SemanticChildren((View) getHost().getModel());
- LinkedList<View> orphaned = new LinkedList<View>();
- // we care to check only views we recognize as ours
- LinkedList<View> knownViewChildren = new LinkedList<View>();
- for (View v : getViewChildren()) {
- if (isMyDiagramElement(v)) {
- knownViewChildren.add(v);
- }
- }
- // alternative to #cleanCanonicalSemanticChildren(getViewChildren(), semanticChildren)
- //
- // iteration happens over list of desired semantic elements, trying to find best matching View, while original CEP
- // iterates views, potentially losing view (size/bounds) information - i.e. if there are few views to reference same EObject, only last one
- // to answer isOrphaned == true will be used for the domain element representation, see #cleanCanonicalSemanticChildren()
- for (Iterator<UMLNodeDescriptor> descriptorsIterator = childDescriptors.iterator(); descriptorsIterator.hasNext();) {
- UMLNodeDescriptor next = descriptorsIterator.next();
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- LinkedList<View> perfectMatch = new LinkedList<View>(); // both semanticElement and hint match that of NodeDescriptor
- for (View childView : getViewChildren()) {
- EObject semanticElement = childView.getElement();
- if (next.getModelElement().equals(semanticElement)) {
- if (hint.equals(childView.getType())) {
- perfectMatch.add(childView);
- // actually, can stop iteration over view children here, but
- // may want to use not the first view but last one as a 'real' match (the way original CEP does
- // with its trick with viewToSemanticMap inside #cleanCanonicalSemanticChildren
- }
- }
- }
- if (perfectMatch.size() > 0) {
- descriptorsIterator.remove(); // precise match found no need to create anything for the NodeDescriptor
- // use only one view (first or last?), keep rest as orphaned for further consideration
- knownViewChildren.remove(perfectMatch.getFirst());
- }
- }
- // those left in knownViewChildren are subject to removal - they are our diagram elements we didn't find match to,
- // or those we have potential matches to, and thus need to be recreated, preserving size/location information.
- orphaned.addAll(knownViewChildren);
- //
- ArrayList<CreateViewRequest.ViewDescriptor> viewDescriptors = new ArrayList<CreateViewRequest.ViewDescriptor>(childDescriptors.size());
- for (UMLNodeDescriptor next : childDescriptors) {
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- IAdaptable elementAdapter = new CanonicalElementAdapter(next.getModelElement(), hint);
- CreateViewRequest.ViewDescriptor descriptor = new CreateViewRequest.ViewDescriptor(elementAdapter, Node.class, hint, ViewUtil.APPEND, false, host().getDiagramPreferencesHint());
- viewDescriptors.add(descriptor);
- }
-
- boolean changed = deleteViews(orphaned.iterator());
- //
- CreateViewRequest request = getCreateViewRequest(viewDescriptors);
- Command cmd = getCreateViewCommand(request);
- if (cmd != null && cmd.canExecute()) {
- SetViewMutabilityCommand.makeMutable(new EObjectAdapter(host().getNotationView())).execute();
- executeCommand(cmd);
- @SuppressWarnings("unchecked")
- List<IAdaptable> nl = (List<IAdaptable>) request.getNewObject();
- createdViews.addAll(nl);
- }
- if (changed || createdViews.size() > 0) {
- postProcessRefreshSemantic(createdViews);
- }
- if (createdViews.size() > 1) {
- // perform a layout of the container
- DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host().getEditingDomain(), createdViews, host());
- executeCommand(new ICommandProxy(layoutCmd));
- }
-
- makeViewsImmutable(createdViews);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy.java
deleted file mode 100644
index 504bf69dde6..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramUtils;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ArtifactCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ExecutionEnvironmentCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicy() {
- super(UMLElementTypes.ExecutionEnvironment_2002);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateCommand(CreateElementRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return super.getCreateCommand(req);
- }
-
-
- if (UMLElementTypes.ExecutionEnvironment_21 == requestElementType) {
-
- return getGEFWrapper(new ExecutionEnvironmentCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Artifact_25 == requestElementType) {
-
- return getGEFWrapper(new ArtifactCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- return super.getCreateCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicyCN.java
deleted file mode 100644
index 6f011cfe3fb..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicyCN.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramUtils;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ArtifactCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ExecutionEnvironmentCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public ExecutionEnvironmentCompositeCompartmentItemSemanticEditPolicyCN() {
- super(UMLElementTypes.ExecutionEnvironment_46);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateCommand(CreateElementRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return super.getCreateCommand(req);
- }
-
-
- if (UMLElementTypes.Artifact_25 == requestElementType) {
-
- return getGEFWrapper(new ArtifactCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.ExecutionEnvironment_21 == requestElementType) {
-
- return getGEFWrapper(new ExecutionEnvironmentCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- return super.getCreateCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentItemSemanticEditPolicy.java
deleted file mode 100644
index 07280fea799..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,266 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.GeneralizationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class ExecutionEnvironmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public ExecutionEnvironmentItemSemanticEditPolicy() {
- super(UMLElementTypes.ExecutionEnvironment_2002);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- EObject selectedEObject = req.getElementToDestroy();
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
- if (provider != null) {
- // Retrieve delete command from the Element Edit service
- ICommand deleteCommand = provider.getEditCommand(req);
-
- if (deleteCommand != null) {
- return new ICommandProxy(deleteCommand);
- }
- }
- return UnexecutableCommand.INSTANCE;
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentItemSemanticEditPolicyCN.java
deleted file mode 100644
index 7a388f53636..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ExecutionEnvironmentItemSemanticEditPolicyCN.java
+++ /dev/null
@@ -1,278 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.command.DeleteCommand;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.GeneralizationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class ExecutionEnvironmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public ExecutionEnvironmentItemSemanticEditPolicyCN() {
- super(UMLElementTypes.ExecutionEnvironment_21);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- View view = (View) getHost().getModel();
- CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
- cmd.setTransactionNestingEnabled(true);
- EAnnotation annotation = view.getEAnnotation("Shortcut");//$NON-NLS-1$
- if (annotation == null) {
- // there are indirectly referenced children, need extra commands: false
- addDestroyShortcutsCommand(cmd, view);
- // delete host element
- List<EObject> todestroy = new ArrayList<EObject>();
- todestroy.add(req.getElementToDestroy());
- // cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
- cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
- } else {
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
- }
- return getGEFWrapper(cmd.reduce());
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/GeneralizationItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/GeneralizationItemSemanticEditPolicy.java
deleted file mode 100644
index f4e6f5f1c7a..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/GeneralizationItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,154 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class GeneralizationItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public GeneralizationItemSemanticEditPolicy() {
- super(UMLElementTypes.Generalization_4003);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- EObject selectedEObject = req.getElementToDestroy();
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
- if (provider != null) {
- // Retrieve delete command from the Element Edit service
- ICommand deleteCommand = provider.getEditCommand(req);
-
- if (deleteCommand != null) {
- return new ICommandProxy(deleteCommand);
- }
- }
- return UnexecutableCommand.INSTANCE;
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ManifestationItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ManifestationItemSemanticEditPolicy.java
deleted file mode 100644
index 8b15a004e7e..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ManifestationItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,249 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class ManifestationItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public ManifestationItemSemanticEditPolicy() {
- super(UMLElementTypes.Manifestation_4002);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- EObject selectedEObject = req.getElementToDestroy();
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
- if (provider != null) {
- // Retrieve delete command from the Element Edit service
- ICommand deleteCommand = provider.getEditCommand(req);
-
- if (deleteCommand != null) {
- return new ICommandProxy(deleteCommand);
- }
- }
- return UnexecutableCommand.INSTANCE;
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelCanonicalEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelCanonicalEditPolicy.java
deleted file mode 100644
index b22599883a4..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelCanonicalEditPolicy.java
+++ /dev/null
@@ -1,639 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.commands.DeferredLayoutCommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.diagram.ui.commands.SetViewMutabilityCommand;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateConnectionViewRequest;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.Edge;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.update.UpdaterLinkDescriptor;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DefaultNamedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyNodeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.LinkDescriptorEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramUpdater;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLLinkDescriptor;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLNodeDescriptor;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class ModelCanonicalEditPolicy extends CanonicalEditPolicy {
-
- /**
- * @generated
- */
- private Set<EStructuralFeature> myFeaturesToSynchronize;
-
- /**
- * @generated
- */
- @Override
- protected void refreshOnActivate() {
- // Need to activate editpart children before invoking the canonical refresh for EditParts to add event listeners
- List<?> c = getHost().getChildren();
- for (int i = 0; i < c.size(); i++) {
- ((EditPart) c.get(i)).activate();
- }
- super.refreshOnActivate();
- }
-
- /**
- * @generated
- */
- @Override
- protected Set<EStructuralFeature> getFeaturesToSynchronize() {
- if (myFeaturesToSynchronize == null) {
- myFeaturesToSynchronize = new HashSet<EStructuralFeature>();
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getPackage_PackagedElement());
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getElement_OwnedComment());
- }
- return myFeaturesToSynchronize;
- }
-
- /**
- * @generated
- */
- @Override
- protected List<EObject> getSemanticChildrenList() {
- View viewObject = (View) getHost().getModel();
- LinkedList<EObject> result = new LinkedList<EObject>();
- List<UMLNodeDescriptor> childDescriptors = UMLDiagramUpdater.INSTANCE
- .getPackage_1000SemanticChildren(viewObject);
- for (UMLNodeDescriptor d : childDescriptors) {
- result.add(d.getModelElement());
- }
- return result;
- }
-
- /**
- * @generated
- */
- @Override
- protected boolean isOrphaned(Collection<EObject> semanticChildren, final View view) {
- return isMyDiagramElement(view) && !semanticChildren.contains(view.getElement());
- }
-
- /**
- * @generated
- */
- private boolean isMyDiagramElement(View view) {
- int visualID = UMLVisualIDRegistry.getVisualID(view);
- switch (visualID) {
- case DependencyNodeEditPart.VISUAL_ID:
- case ModelEditPart.VISUAL_ID:
- case PackageEditPart.VISUAL_ID:
- case ConstraintEditPart.VISUAL_ID:
- case CommentEditPart.VISUAL_ID:
- case ExecutionEnvironmentEditPart.VISUAL_ID:
- case DeviceEditPart.VISUAL_ID:
- case ArtifactEditPart.VISUAL_ID:
- case NodeEditPart.VISUAL_ID:
- case DefaultNamedElementEditPart.VISUAL_ID:
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshSemantic() {
- if (resolveSemanticElement() == null) {
- return;
- }
- LinkedList<IAdaptable> createdViews = new LinkedList<IAdaptable>();
- List<UMLNodeDescriptor> childDescriptors =
- UMLDiagramUpdater.INSTANCE
- .getPackage_1000SemanticChildren((View) getHost().getModel());
- LinkedList<View> orphaned = new LinkedList<View>();
- // we care to check only views we recognize as ours
- LinkedList<View> knownViewChildren = new LinkedList<View>();
- for (View v : getViewChildren()) {
- if (isMyDiagramElement(v)) {
- knownViewChildren.add(v);
- }
- }
- // alternative to #cleanCanonicalSemanticChildren(getViewChildren(), semanticChildren)
- //
- // iteration happens over list of desired semantic elements, trying to find best matching View, while original CEP
- // iterates views, potentially losing view (size/bounds) information - i.e. if there are few views to reference same EObject, only last one
- // to answer isOrphaned == true will be used for the domain element representation, see #cleanCanonicalSemanticChildren()
- for (Iterator<UMLNodeDescriptor> descriptorsIterator = childDescriptors.iterator(); descriptorsIterator.hasNext();) {
- UMLNodeDescriptor next = descriptorsIterator.next();
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- LinkedList<View> perfectMatch = new LinkedList<View>(); // both semanticElement and hint match that of NodeDescriptor
- for (View childView : getViewChildren()) {
- EObject semanticElement = childView.getElement();
- if (next.getModelElement().equals(semanticElement)) {
- if (hint.equals(childView.getType())) {
- perfectMatch.add(childView);
- // actually, can stop iteration over view children here, but
- // may want to use not the first view but last one as a 'real' match (the way original CEP does
- // with its trick with viewToSemanticMap inside #cleanCanonicalSemanticChildren
- }
- }
- }
- if (perfectMatch.size() > 0) {
- descriptorsIterator.remove(); // precise match found no need to create anything for the NodeDescriptor
- // use only one view (first or last?), keep rest as orphaned for further consideration
- knownViewChildren.remove(perfectMatch.getFirst());
- }
- }
- // those left in knownViewChildren are subject to removal - they are our diagram elements we didn't find match to,
- // or those we have potential matches to, and thus need to be recreated, preserving size/location information.
- orphaned.addAll(knownViewChildren);
- //
- ArrayList<CreateViewRequest.ViewDescriptor> viewDescriptors = new ArrayList<CreateViewRequest.ViewDescriptor>(childDescriptors.size());
- for (UMLNodeDescriptor next : childDescriptors) {
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- IAdaptable elementAdapter = new CanonicalElementAdapter(next.getModelElement(), hint);
- CreateViewRequest.ViewDescriptor descriptor = new CreateViewRequest.ViewDescriptor(elementAdapter, Node.class, hint, ViewUtil.APPEND, false, host().getDiagramPreferencesHint());
- viewDescriptors.add(descriptor);
- }
-
- boolean changed = deleteViews(orphaned.iterator());
- //
- CreateViewRequest request = getCreateViewRequest(viewDescriptors);
- Command cmd = getCreateViewCommand(request);
- if (cmd != null && cmd.canExecute()) {
- SetViewMutabilityCommand.makeMutable(new EObjectAdapter(host().getNotationView())).execute();
- executeCommand(cmd);
- @SuppressWarnings("unchecked")
- List<IAdaptable> nl = (List<IAdaptable>) request.getNewObject();
- createdViews.addAll(nl);
- }
- if (changed || createdViews.size() > 0) {
- postProcessRefreshSemantic(createdViews);
- }
-
- Collection<IAdaptable> createdConnectionViews = refreshConnections();
-
- if (createdViews.size() > 1) {
- // perform a layout of the container
- DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host().getEditingDomain(), createdViews, host());
- executeCommand(new ICommandProxy(layoutCmd));
- }
-
- createdViews.addAll(createdConnectionViews);
-
- makeViewsImmutable(createdViews);
- }
-
- /**
- * @generated
- */
- private Collection<IAdaptable> refreshConnections() {
- Domain2Notation domain2NotationMap = new Domain2Notation();
- Collection<UMLLinkDescriptor> linkDescriptors = collectAllLinks(getDiagram(), domain2NotationMap);
- List<View> edges = new ArrayList<View>();
- for (Object edge : getDiagram().getEdges())
- {
- if (edge instanceof View)
- {
- edges.add((View) edge);
- }
- }
- Collection<View> existingLinks = new LinkedList<View>(edges);
- for (Iterator<View> linksIterator = existingLinks.iterator(); linksIterator.hasNext();) {
- Edge nextDiagramLink = (Edge) linksIterator.next();
- int diagramLinkVisualID = UMLVisualIDRegistry.getVisualID(nextDiagramLink);
- if (diagramLinkVisualID == -1 || diagramLinkVisualID == LinkDescriptorEditPart.VISUAL_ID) {
- if (nextDiagramLink.getSource() != null && nextDiagramLink.getTarget() != null) {
- linksIterator.remove();
- }
- continue;
- }
- EObject diagramLinkObject = nextDiagramLink.getElement();
- EObject diagramLinkSrc = nextDiagramLink.getSource().getElement();
- EObject diagramLinkDst = nextDiagramLink.getTarget().getElement();
- for (Iterator<UMLLinkDescriptor> linkDescriptorsIterator = linkDescriptors.iterator(); linkDescriptorsIterator.hasNext();) {
- UMLLinkDescriptor nextLinkDescriptor = linkDescriptorsIterator.next();
- if (diagramLinkObject == nextLinkDescriptor.getModelElement() && diagramLinkSrc == nextLinkDescriptor.getSource() && diagramLinkDst == nextLinkDescriptor.getDestination() && diagramLinkVisualID == nextLinkDescriptor.getVisualID()) {
- linksIterator.remove();
- linkDescriptorsIterator.remove();
- break;
- }
- }
- }
- deleteViews(existingLinks.iterator());
- return createConnections(linkDescriptors, domain2NotationMap);
- }
-
- /**
- * @generated
- */
- private Collection<UMLLinkDescriptor> collectAllLinks(View view, Domain2Notation domain2NotationMap) {
- if (!DeploymentDiagramEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID(view))) {
- return Collections.emptyList();
- }
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- switch (UMLVisualIDRegistry.getVisualID(view)) {
- case DeploymentDiagramEditPart.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getPackage_1000ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case DependencyNodeEditPart.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getDependency_2011ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case ModelEditPart.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getModel_2010ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case PackageEditPart.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getPackage_2009ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case ConstraintEditPart.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getConstraint_2005ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case CommentEditPart.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getComment_2001ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case ExecutionEnvironmentEditPart.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getExecutionEnvironment_2002ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case DeviceEditPart.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getDevice_2003ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case ArtifactEditPart.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getArtifact_2006ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case NodeEditPart.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getNode_2008ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case DefaultNamedElementEditPart.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getNamedElement_2012ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case ModelEditPartCN.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getModel_49ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case PackageEditPartCN.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getPackage_36ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case DeviceEditPartCN.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getDevice_16ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case NestedDeviceEditPartCN.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getDevice_44ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case ExecutionEnvironmentEditPartCN.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getExecutionEnvironment_21ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case NestedExecutionEnvironmentEditPartCN.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getExecutionEnvironment_46ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case NodeEditPartCN.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getNode_23ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case NestedNodeEditPartCN.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getNode_42ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case ArtifactEditPartCN.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getArtifact_25ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case ArtifactEditPartACN.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getArtifact_28ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case NestedArtifactNodeEditPartCN.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getArtifact_40ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case CommentEditPartCN.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getComment_54ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case ConstraintEditPartCN.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getConstraint_56ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case DeploymentEditPart.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getDeployment_4001ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case ManifestationEditPart.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getManifestation_4002ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case GeneralizationEditPart.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getGeneralization_4003ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case DependencyEditPart.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getDependency_4004ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- case DependencyBranchEditPart.VISUAL_ID: {
- if (!domain2NotationMap.containsKey(view.getElement())) {
- result.addAll(UMLDiagramUpdater.INSTANCE
- .getDependency_4010ContainedLinks(view));
- }
- domain2NotationMap.putView(view.getElement(), view);
- break;
- }
- }
- for (Iterator<?> children = view.getChildren().iterator(); children.hasNext();) {
- result.addAll(collectAllLinks((View) children.next(), domain2NotationMap));
- }
- for (Iterator<?> edges = view.getSourceEdges().iterator(); edges.hasNext();) {
- result.addAll(collectAllLinks((View) edges.next(), domain2NotationMap));
- }
- return result;
- }
-
- /**
- * @generated
- */
- private Collection<IAdaptable> createConnections(Collection<UMLLinkDescriptor> linkDescriptors, Domain2Notation domain2NotationMap) {
- LinkedList<IAdaptable> adapters = new LinkedList<IAdaptable>();
- for (UMLLinkDescriptor nextLinkDescriptor : linkDescriptors) {
- EditPart sourceEditPart = getSourceEditPart(nextLinkDescriptor, domain2NotationMap);
- EditPart targetEditPart = getTargetEditPart(nextLinkDescriptor, domain2NotationMap);
- if (sourceEditPart == null || targetEditPart == null) {
- continue;
- }
- CreateConnectionViewRequest.ConnectionViewDescriptor descriptor = new CreateConnectionViewRequest.ConnectionViewDescriptor(nextLinkDescriptor.getSemanticAdapter(), UMLVisualIDRegistry.getType(nextLinkDescriptor.getVisualID()), ViewUtil.APPEND,
- false, ((IGraphicalEditPart) getHost()).getDiagramPreferencesHint());
- CreateConnectionViewRequest ccr = new CreateConnectionViewRequest(descriptor);
- ccr.setType(org.eclipse.gef.RequestConstants.REQ_CONNECTION_START);
- ccr.setSourceEditPart(sourceEditPart);
- sourceEditPart.getCommand(ccr);
- ccr.setTargetEditPart(targetEditPart);
- ccr.setType(org.eclipse.gef.RequestConstants.REQ_CONNECTION_END);
- Command cmd = targetEditPart.getCommand(ccr);
- if (cmd != null && cmd.canExecute()) {
- executeCommand(cmd);
- IAdaptable viewAdapter = (IAdaptable) ccr.getNewObject();
- if (viewAdapter != null) {
- adapters.add(viewAdapter);
- }
- }
- }
- return adapters;
- }
-
- /**
- * @generated
- */
- private EditPart getEditPart(EObject domainModelElement, Domain2Notation domain2NotationMap) {
- View view = domain2NotationMap.get(domainModelElement);
- if (view != null) {
- return (EditPart) getHost().getViewer().getEditPartRegistry().get(view);
- }
- return null;
- }
-
- /**
- * @generated
- */
- private Diagram getDiagram() {
- return ((View) getHost().getModel()).getDiagram();
- }
-
- /**
- * @generated
- */
- private EditPart getSourceEditPart(UpdaterLinkDescriptor descriptor, Domain2Notation domain2NotationMap) {
- return getEditPart(descriptor.getSource(), domain2NotationMap);
- }
-
- /**
- * @generated
- */
- private EditPart getTargetEditPart(UpdaterLinkDescriptor descriptor, Domain2Notation domain2NotationMap) {
- return getEditPart(descriptor.getDestination(), domain2NotationMap);
- }
-
- /**
- * @generated
- */
- protected final EditPart getHintedEditPart(EObject domainModelElement, Domain2Notation domain2NotationMap, int hintVisualId) {
- View view = domain2NotationMap.getHinted(domainModelElement, UMLVisualIDRegistry.getType(hintVisualId));
- if (view != null) {
- return (EditPart) getHost().getViewer().getEditPartRegistry().get(view);
- }
- return null;
- }
-
- /**
- * @generated
- */
- @SuppressWarnings("serial")
- protected static class Domain2Notation extends HashMap<EObject, View> {
-
- /**
- * @generated
- */
- public boolean containsDomainElement(EObject domainElement) {
- return this.containsKey(domainElement);
- }
-
- /**
- * @generated
- */
- public View getHinted(EObject domainEObject, String hint) {
- return this.get(domainEObject);
- }
-
- /**
- * @generated
- */
- public void putView(EObject domainElement, View view) {
- if (!containsKey(view.getElement())) {
- this.put(domainElement, view);
- }
- }
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelItemSemanticEditPolicy.java
deleted file mode 100644
index 69ae980cc96..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,535 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.command.DeleteCommand;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.common.core.command.ICompositeCommand;
-import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyReferenceCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.gmf.runtime.notation.Edge;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelPackageableElementCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class ModelItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public ModelItemSemanticEditPolicy() {
- super(UMLElementTypes.Model_2010);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- View view = (View) getHost().getModel();
- CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
- cmd.setTransactionNestingEnabled(true);
- EAnnotation annotation = view.getEAnnotation("Shortcut");//$NON-NLS-1$
- if (annotation == null) {
- // there are indirectly referenced children, need extra commands: false
- addDestroyChildNodesCommand(cmd);
- addDestroyShortcutsCommand(cmd, view);
- // delete host element
- List<EObject> todestroy = new ArrayList<EObject>();
- todestroy.add(req.getElementToDestroy());
- // cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
- cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
- } else {
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
- }
- return getGEFWrapper(cmd.reduce());
- }
-
- /**
- * @generated
- */
- protected void addDestroyChildNodesCommand(ICompositeCommand cmd) {
- View view = (View) getHost().getModel();
- for (Iterator<?> nit = view.getChildren().iterator(); nit.hasNext();) {
- Node node = (Node) nit.next();
- switch (UMLVisualIDRegistry.getVisualID(node)) {
- case ModelPackageableElementCompartmentEditPart.VISUAL_ID:
- for (Iterator<?> cit = node.getChildren().iterator(); cit.hasNext();) {
- Node cnode = (Node) cit.next();
- switch (UMLVisualIDRegistry.getVisualID(cnode)) {
- case ModelEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case PackageEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case NestedDeviceEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case NestedNodeEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case NestedArtifactNodeEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case CommentEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case ConstraintEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- }
- }
- break;
- }
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelItemSemanticEditPolicyCN.java
deleted file mode 100644
index e63a35ffea4..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelItemSemanticEditPolicyCN.java
+++ /dev/null
@@ -1,535 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.command.DeleteCommand;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.common.core.command.ICompositeCommand;
-import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyReferenceCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.gmf.runtime.notation.Edge;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelPackageableElementCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class ModelItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public ModelItemSemanticEditPolicyCN() {
- super(UMLElementTypes.Model_49);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- View view = (View) getHost().getModel();
- CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
- cmd.setTransactionNestingEnabled(true);
- EAnnotation annotation = view.getEAnnotation("Shortcut");//$NON-NLS-1$
- if (annotation == null) {
- // there are indirectly referenced children, need extra commands: false
- addDestroyChildNodesCommand(cmd);
- addDestroyShortcutsCommand(cmd, view);
- // delete host element
- List<EObject> todestroy = new ArrayList<EObject>();
- todestroy.add(req.getElementToDestroy());
- // cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
- cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
- } else {
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
- }
- return getGEFWrapper(cmd.reduce());
- }
-
- /**
- * @generated
- */
- protected void addDestroyChildNodesCommand(ICompositeCommand cmd) {
- View view = (View) getHost().getModel();
- for (Iterator<?> nit = view.getChildren().iterator(); nit.hasNext();) {
- Node node = (Node) nit.next();
- switch (UMLVisualIDRegistry.getVisualID(node)) {
- case ModelPackageableElementCompartmentEditPartCN.VISUAL_ID:
- for (Iterator<?> cit = node.getChildren().iterator(); cit.hasNext();) {
- Node cnode = (Node) cit.next();
- switch (UMLVisualIDRegistry.getVisualID(cnode)) {
- case ModelEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case PackageEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case NestedDeviceEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case NestedNodeEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case NestedArtifactNodeEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case CommentEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case ConstraintEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- }
- }
- break;
- }
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelPackageableElementCompartmentCanonicalEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelPackageableElementCompartmentCanonicalEditPolicy.java
deleted file mode 100644
index 59d9660b474..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelPackageableElementCompartmentCanonicalEditPolicy.java
+++ /dev/null
@@ -1,208 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.commands.DeferredLayoutCommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.diagram.ui.commands.SetViewMutabilityCommand;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramUpdater;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLNodeDescriptor;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class ModelPackageableElementCompartmentCanonicalEditPolicy extends CanonicalEditPolicy {
-
- /**
- * @generated
- */
- private Set<EStructuralFeature> myFeaturesToSynchronize;
-
- /**
- * @generated
- */
- @Override
- protected void refreshOnActivate() {
- // Need to activate editpart children before invoking the canonical refresh for EditParts to add event listeners
- List<?> c = getHost().getChildren();
- for (int i = 0; i < c.size(); i++) {
- ((EditPart) c.get(i)).activate();
- }
- super.refreshOnActivate();
- }
-
- /**
- * @generated
- */
- @Override
- protected Set<EStructuralFeature> getFeaturesToSynchronize() {
- if (myFeaturesToSynchronize == null) {
- myFeaturesToSynchronize = new HashSet<EStructuralFeature>();
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getPackage_PackagedElement());
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getElement_OwnedComment());
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getNamespace_OwnedRule());
- }
- return myFeaturesToSynchronize;
- }
-
- /**
- * @generated
- */
- @Override
- protected List<EObject> getSemanticChildrenList() {
- View viewObject = (View) getHost().getModel();
- LinkedList<EObject> result = new LinkedList<EObject>();
- List<UMLNodeDescriptor> childDescriptors = UMLDiagramUpdater.INSTANCE
- .getModelModelCompartment_51SemanticChildren(viewObject);
- for (UMLNodeDescriptor d : childDescriptors) {
- result.add(d.getModelElement());
- }
- return result;
- }
-
- /**
- * @generated
- */
- @Override
- protected boolean isOrphaned(Collection<EObject> semanticChildren, final View view) {
- return isMyDiagramElement(view) && !semanticChildren.contains(view.getElement());
- }
-
- /**
- * @generated
- */
- private boolean isMyDiagramElement(View view) {
- int visualID = UMLVisualIDRegistry.getVisualID(view);
- switch (visualID) {
- case ModelEditPartCN.VISUAL_ID:
- case PackageEditPartCN.VISUAL_ID:
- case NestedDeviceEditPartCN.VISUAL_ID:
- case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
- case NestedNodeEditPartCN.VISUAL_ID:
- case NestedArtifactNodeEditPartCN.VISUAL_ID:
- case CommentEditPartCN.VISUAL_ID:
- case ConstraintEditPartCN.VISUAL_ID:
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshSemantic() {
- if (resolveSemanticElement() == null) {
- return;
- }
- LinkedList<IAdaptable> createdViews = new LinkedList<IAdaptable>();
- List<UMLNodeDescriptor> childDescriptors =
- UMLDiagramUpdater.INSTANCE
- .getModelModelCompartment_51SemanticChildren((View) getHost().getModel());
- LinkedList<View> orphaned = new LinkedList<View>();
- // we care to check only views we recognize as ours
- LinkedList<View> knownViewChildren = new LinkedList<View>();
- for (View v : getViewChildren()) {
- if (isMyDiagramElement(v)) {
- knownViewChildren.add(v);
- }
- }
- // alternative to #cleanCanonicalSemanticChildren(getViewChildren(), semanticChildren)
- //
- // iteration happens over list of desired semantic elements, trying to find best matching View, while original CEP
- // iterates views, potentially losing view (size/bounds) information - i.e. if there are few views to reference same EObject, only last one
- // to answer isOrphaned == true will be used for the domain element representation, see #cleanCanonicalSemanticChildren()
- for (Iterator<UMLNodeDescriptor> descriptorsIterator = childDescriptors.iterator(); descriptorsIterator.hasNext();) {
- UMLNodeDescriptor next = descriptorsIterator.next();
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- LinkedList<View> perfectMatch = new LinkedList<View>(); // both semanticElement and hint match that of NodeDescriptor
- for (View childView : getViewChildren()) {
- EObject semanticElement = childView.getElement();
- if (next.getModelElement().equals(semanticElement)) {
- if (hint.equals(childView.getType())) {
- perfectMatch.add(childView);
- // actually, can stop iteration over view children here, but
- // may want to use not the first view but last one as a 'real' match (the way original CEP does
- // with its trick with viewToSemanticMap inside #cleanCanonicalSemanticChildren
- }
- }
- }
- if (perfectMatch.size() > 0) {
- descriptorsIterator.remove(); // precise match found no need to create anything for the NodeDescriptor
- // use only one view (first or last?), keep rest as orphaned for further consideration
- knownViewChildren.remove(perfectMatch.getFirst());
- }
- }
- // those left in knownViewChildren are subject to removal - they are our diagram elements we didn't find match to,
- // or those we have potential matches to, and thus need to be recreated, preserving size/location information.
- orphaned.addAll(knownViewChildren);
- //
- ArrayList<CreateViewRequest.ViewDescriptor> viewDescriptors = new ArrayList<CreateViewRequest.ViewDescriptor>(childDescriptors.size());
- for (UMLNodeDescriptor next : childDescriptors) {
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- IAdaptable elementAdapter = new CanonicalElementAdapter(next.getModelElement(), hint);
- CreateViewRequest.ViewDescriptor descriptor = new CreateViewRequest.ViewDescriptor(elementAdapter, Node.class, hint, ViewUtil.APPEND, false, host().getDiagramPreferencesHint());
- viewDescriptors.add(descriptor);
- }
-
- boolean changed = deleteViews(orphaned.iterator());
- //
- CreateViewRequest request = getCreateViewRequest(viewDescriptors);
- Command cmd = getCreateViewCommand(request);
- if (cmd != null && cmd.canExecute()) {
- SetViewMutabilityCommand.makeMutable(new EObjectAdapter(host().getNotationView())).execute();
- executeCommand(cmd);
- @SuppressWarnings("unchecked")
- List<IAdaptable> nl = (List<IAdaptable>) request.getNewObject();
- createdViews.addAll(nl);
- }
- if (changed || createdViews.size() > 0) {
- postProcessRefreshSemantic(createdViews);
- }
- if (createdViews.size() > 1) {
- // perform a layout of the container
- DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host().getEditingDomain(), createdViews, host());
- executeCommand(new ICommandProxy(layoutCmd));
- }
-
- makeViewsImmutable(createdViews);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelPackageableElementCompartmentCanonicalEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelPackageableElementCompartmentCanonicalEditPolicyCN.java
deleted file mode 100644
index 5d7203b6d64..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelPackageableElementCompartmentCanonicalEditPolicyCN.java
+++ /dev/null
@@ -1,208 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.commands.DeferredLayoutCommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.diagram.ui.commands.SetViewMutabilityCommand;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramUpdater;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLNodeDescriptor;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class ModelPackageableElementCompartmentCanonicalEditPolicyCN extends CanonicalEditPolicy {
-
- /**
- * @generated
- */
- private Set<EStructuralFeature> myFeaturesToSynchronize;
-
- /**
- * @generated
- */
- @Override
- protected void refreshOnActivate() {
- // Need to activate editpart children before invoking the canonical refresh for EditParts to add event listeners
- List<?> c = getHost().getChildren();
- for (int i = 0; i < c.size(); i++) {
- ((EditPart) c.get(i)).activate();
- }
- super.refreshOnActivate();
- }
-
- /**
- * @generated
- */
- @Override
- protected Set<EStructuralFeature> getFeaturesToSynchronize() {
- if (myFeaturesToSynchronize == null) {
- myFeaturesToSynchronize = new HashSet<EStructuralFeature>();
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getPackage_PackagedElement());
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getElement_OwnedComment());
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getNamespace_OwnedRule());
- }
- return myFeaturesToSynchronize;
- }
-
- /**
- * @generated
- */
- @Override
- protected List<EObject> getSemanticChildrenList() {
- View viewObject = (View) getHost().getModel();
- LinkedList<EObject> result = new LinkedList<EObject>();
- List<UMLNodeDescriptor> childDescriptors = UMLDiagramUpdater.INSTANCE
- .getModelModelCompartment_52SemanticChildren(viewObject);
- for (UMLNodeDescriptor d : childDescriptors) {
- result.add(d.getModelElement());
- }
- return result;
- }
-
- /**
- * @generated
- */
- @Override
- protected boolean isOrphaned(Collection<EObject> semanticChildren, final View view) {
- return isMyDiagramElement(view) && !semanticChildren.contains(view.getElement());
- }
-
- /**
- * @generated
- */
- private boolean isMyDiagramElement(View view) {
- int visualID = UMLVisualIDRegistry.getVisualID(view);
- switch (visualID) {
- case ModelEditPartCN.VISUAL_ID:
- case PackageEditPartCN.VISUAL_ID:
- case NestedDeviceEditPartCN.VISUAL_ID:
- case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
- case NestedNodeEditPartCN.VISUAL_ID:
- case NestedArtifactNodeEditPartCN.VISUAL_ID:
- case CommentEditPartCN.VISUAL_ID:
- case ConstraintEditPartCN.VISUAL_ID:
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshSemantic() {
- if (resolveSemanticElement() == null) {
- return;
- }
- LinkedList<IAdaptable> createdViews = new LinkedList<IAdaptable>();
- List<UMLNodeDescriptor> childDescriptors =
- UMLDiagramUpdater.INSTANCE
- .getModelModelCompartment_52SemanticChildren((View) getHost().getModel());
- LinkedList<View> orphaned = new LinkedList<View>();
- // we care to check only views we recognize as ours
- LinkedList<View> knownViewChildren = new LinkedList<View>();
- for (View v : getViewChildren()) {
- if (isMyDiagramElement(v)) {
- knownViewChildren.add(v);
- }
- }
- // alternative to #cleanCanonicalSemanticChildren(getViewChildren(), semanticChildren)
- //
- // iteration happens over list of desired semantic elements, trying to find best matching View, while original CEP
- // iterates views, potentially losing view (size/bounds) information - i.e. if there are few views to reference same EObject, only last one
- // to answer isOrphaned == true will be used for the domain element representation, see #cleanCanonicalSemanticChildren()
- for (Iterator<UMLNodeDescriptor> descriptorsIterator = childDescriptors.iterator(); descriptorsIterator.hasNext();) {
- UMLNodeDescriptor next = descriptorsIterator.next();
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- LinkedList<View> perfectMatch = new LinkedList<View>(); // both semanticElement and hint match that of NodeDescriptor
- for (View childView : getViewChildren()) {
- EObject semanticElement = childView.getElement();
- if (next.getModelElement().equals(semanticElement)) {
- if (hint.equals(childView.getType())) {
- perfectMatch.add(childView);
- // actually, can stop iteration over view children here, but
- // may want to use not the first view but last one as a 'real' match (the way original CEP does
- // with its trick with viewToSemanticMap inside #cleanCanonicalSemanticChildren
- }
- }
- }
- if (perfectMatch.size() > 0) {
- descriptorsIterator.remove(); // precise match found no need to create anything for the NodeDescriptor
- // use only one view (first or last?), keep rest as orphaned for further consideration
- knownViewChildren.remove(perfectMatch.getFirst());
- }
- }
- // those left in knownViewChildren are subject to removal - they are our diagram elements we didn't find match to,
- // or those we have potential matches to, and thus need to be recreated, preserving size/location information.
- orphaned.addAll(knownViewChildren);
- //
- ArrayList<CreateViewRequest.ViewDescriptor> viewDescriptors = new ArrayList<CreateViewRequest.ViewDescriptor>(childDescriptors.size());
- for (UMLNodeDescriptor next : childDescriptors) {
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- IAdaptable elementAdapter = new CanonicalElementAdapter(next.getModelElement(), hint);
- CreateViewRequest.ViewDescriptor descriptor = new CreateViewRequest.ViewDescriptor(elementAdapter, Node.class, hint, ViewUtil.APPEND, false, host().getDiagramPreferencesHint());
- viewDescriptors.add(descriptor);
- }
-
- boolean changed = deleteViews(orphaned.iterator());
- //
- CreateViewRequest request = getCreateViewRequest(viewDescriptors);
- Command cmd = getCreateViewCommand(request);
- if (cmd != null && cmd.canExecute()) {
- SetViewMutabilityCommand.makeMutable(new EObjectAdapter(host().getNotationView())).execute();
- executeCommand(cmd);
- @SuppressWarnings("unchecked")
- List<IAdaptable> nl = (List<IAdaptable>) request.getNewObject();
- createdViews.addAll(nl);
- }
- if (changed || createdViews.size() > 0) {
- postProcessRefreshSemantic(createdViews);
- }
- if (createdViews.size() > 1) {
- // perform a layout of the container
- DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host().getEditingDomain(), createdViews, host());
- executeCommand(new ICommandProxy(layoutCmd));
- }
-
- makeViewsImmutable(createdViews);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelPackageableElementCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelPackageableElementCompartmentItemSemanticEditPolicy.java
deleted file mode 100644
index de4d08a0e1f..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelPackageableElementCompartmentItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramUtils;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ModelCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NestedArtifactNodeCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NestedDeviceCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NestedExecutionEnvironmentCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NestedNodeCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.PackageCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class ModelPackageableElementCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public ModelPackageableElementCompartmentItemSemanticEditPolicy() {
- super(UMLElementTypes.Model_2010);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateCommand(CreateElementRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return super.getCreateCommand(req);
- }
-
-
- if (UMLElementTypes.Model_49 == requestElementType) {
-
- return getGEFWrapper(new ModelCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Package_36 == requestElementType) {
-
- return getGEFWrapper(new PackageCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Device_44 == requestElementType) {
-
- return getGEFWrapper(new NestedDeviceCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.ExecutionEnvironment_46 == requestElementType) {
-
- return getGEFWrapper(new NestedExecutionEnvironmentCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Node_42 == requestElementType) {
-
- return getGEFWrapper(new NestedNodeCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Artifact_40 == requestElementType) {
-
- return getGEFWrapper(new NestedArtifactNodeCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Comment_54 == requestElementType) {
-
- return getGEFWrapper(new CommentCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Constraint_56 == requestElementType) {
-
- return getGEFWrapper(new ConstraintCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- return super.getCreateCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelPackageableElementCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelPackageableElementCompartmentItemSemanticEditPolicyCN.java
deleted file mode 100644
index d67246883c8..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/ModelPackageableElementCompartmentItemSemanticEditPolicyCN.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramUtils;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ModelCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NestedArtifactNodeCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NestedDeviceCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NestedExecutionEnvironmentCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NestedNodeCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.PackageCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class ModelPackageableElementCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public ModelPackageableElementCompartmentItemSemanticEditPolicyCN() {
- super(UMLElementTypes.Model_49);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateCommand(CreateElementRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return super.getCreateCommand(req);
- }
-
-
- if (UMLElementTypes.Model_49 == requestElementType) {
-
- return getGEFWrapper(new ModelCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Package_36 == requestElementType) {
-
- return getGEFWrapper(new PackageCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Device_44 == requestElementType) {
-
- return getGEFWrapper(new NestedDeviceCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.ExecutionEnvironment_46 == requestElementType) {
-
- return getGEFWrapper(new NestedExecutionEnvironmentCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Node_42 == requestElementType) {
-
- return getGEFWrapper(new NestedNodeCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Artifact_40 == requestElementType) {
-
- return getGEFWrapper(new NestedArtifactNodeCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Comment_54 == requestElementType) {
-
- return getGEFWrapper(new CommentCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Constraint_56 == requestElementType) {
-
- return getGEFWrapper(new ConstraintCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- return super.getCreateCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NestedArtifactNodeItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NestedArtifactNodeItemSemanticEditPolicyCN.java
deleted file mode 100644
index ef4ed78ec07..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NestedArtifactNodeItemSemanticEditPolicyCN.java
+++ /dev/null
@@ -1,278 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.command.DeleteCommand;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.GeneralizationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class NestedArtifactNodeItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public NestedArtifactNodeItemSemanticEditPolicyCN() {
- super(UMLElementTypes.Artifact_40);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- View view = (View) getHost().getModel();
- CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
- cmd.setTransactionNestingEnabled(true);
- EAnnotation annotation = view.getEAnnotation("Shortcut");//$NON-NLS-1$
- if (annotation == null) {
- // there are indirectly referenced children, need extra commands: false
- addDestroyShortcutsCommand(cmd, view);
- // delete host element
- List<EObject> todestroy = new ArrayList<EObject>();
- todestroy.add(req.getElementToDestroy());
- // cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
- cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
- } else {
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
- }
- return getGEFWrapper(cmd.reduce());
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NestedDeviceItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NestedDeviceItemSemanticEditPolicyCN.java
deleted file mode 100644
index 79dc065a4d2..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NestedDeviceItemSemanticEditPolicyCN.java
+++ /dev/null
@@ -1,403 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.command.DeleteCommand;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.common.core.command.ICompositeCommand;
-import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyReferenceCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.gmf.runtime.notation.Edge;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.GeneralizationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceCompositeCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class NestedDeviceItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public NestedDeviceItemSemanticEditPolicyCN() {
- super(UMLElementTypes.Device_44);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- View view = (View) getHost().getModel();
- CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
- cmd.setTransactionNestingEnabled(true);
- EAnnotation annotation = view.getEAnnotation("Shortcut");//$NON-NLS-1$
- if (annotation == null) {
- // there are indirectly referenced children, need extra commands: false
- addDestroyChildNodesCommand(cmd);
- addDestroyShortcutsCommand(cmd, view);
- // delete host element
- List<EObject> todestroy = new ArrayList<EObject>();
- todestroy.add(req.getElementToDestroy());
- // cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
- cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
- } else {
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
- }
- return getGEFWrapper(cmd.reduce());
- }
-
- /**
- * @generated
- */
- protected void addDestroyChildNodesCommand(ICompositeCommand cmd) {
- View view = (View) getHost().getModel();
- for (Iterator<?> nit = view.getChildren().iterator(); nit.hasNext();) {
- Node node = (Node) nit.next();
- switch (UMLVisualIDRegistry.getVisualID(node)) {
- case DeviceCompositeCompartmentEditPartCN.VISUAL_ID:
- for (Iterator<?> cit = node.getChildren().iterator(); cit.hasNext();) {
- Node cnode = (Node) cit.next();
- switch (UMLVisualIDRegistry.getVisualID(cnode)) {
- case ExecutionEnvironmentEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case DeviceEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case NodeEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- }
- }
- break;
- }
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NestedExecutionEnvironmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NestedExecutionEnvironmentItemSemanticEditPolicyCN.java
deleted file mode 100644
index 0c396d45e93..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NestedExecutionEnvironmentItemSemanticEditPolicyCN.java
+++ /dev/null
@@ -1,371 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.command.DeleteCommand;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.common.core.command.ICompositeCommand;
-import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyReferenceCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.gmf.runtime.notation.Edge;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.GeneralizationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentCompositeCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class NestedExecutionEnvironmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public NestedExecutionEnvironmentItemSemanticEditPolicyCN() {
- super(UMLElementTypes.ExecutionEnvironment_46);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- View view = (View) getHost().getModel();
- CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
- cmd.setTransactionNestingEnabled(true);
- EAnnotation annotation = view.getEAnnotation("Shortcut");//$NON-NLS-1$
- if (annotation == null) {
- // there are indirectly referenced children, need extra commands: false
- addDestroyChildNodesCommand(cmd);
- addDestroyShortcutsCommand(cmd, view);
- // delete host element
- List<EObject> todestroy = new ArrayList<EObject>();
- todestroy.add(req.getElementToDestroy());
- // cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
- cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
- } else {
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
- }
- return getGEFWrapper(cmd.reduce());
- }
-
- /**
- * @generated
- */
- protected void addDestroyChildNodesCommand(ICompositeCommand cmd) {
- View view = (View) getHost().getModel();
- for (Iterator<?> nit = view.getChildren().iterator(); nit.hasNext();) {
- Node node = (Node) nit.next();
- switch (UMLVisualIDRegistry.getVisualID(node)) {
- case ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID:
- for (Iterator<?> cit = node.getChildren().iterator(); cit.hasNext();) {
- Node cnode = (Node) cit.next();
- switch (UMLVisualIDRegistry.getVisualID(cnode)) {
- case ArtifactEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case ExecutionEnvironmentEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- }
- }
- break;
- }
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NestedNodeItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NestedNodeItemSemanticEditPolicyCN.java
deleted file mode 100644
index 2fd05b8e24b..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NestedNodeItemSemanticEditPolicyCN.java
+++ /dev/null
@@ -1,435 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.command.DeleteCommand;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.common.core.command.ICompositeCommand;
-import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand;
-import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyReferenceCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.gmf.runtime.notation.Edge;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.GeneralizationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeCompositeCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class NestedNodeItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public NestedNodeItemSemanticEditPolicyCN() {
- super(UMLElementTypes.Node_42);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- View view = (View) getHost().getModel();
- CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
- cmd.setTransactionNestingEnabled(true);
- EAnnotation annotation = view.getEAnnotation("Shortcut");//$NON-NLS-1$
- if (annotation == null) {
- // there are indirectly referenced children, need extra commands: false
- addDestroyChildNodesCommand(cmd);
- addDestroyShortcutsCommand(cmd, view);
- // delete host element
- List<EObject> todestroy = new ArrayList<EObject>();
- todestroy.add(req.getElementToDestroy());
- // cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
- cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
- } else {
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
- }
- return getGEFWrapper(cmd.reduce());
- }
-
- /**
- * @generated
- */
- protected void addDestroyChildNodesCommand(ICompositeCommand cmd) {
- View view = (View) getHost().getModel();
- for (Iterator<?> nit = view.getChildren().iterator(); nit.hasNext();) {
- Node node = (Node) nit.next();
- switch (UMLVisualIDRegistry.getVisualID(node)) {
- case NodeCompositeCompartmentEditPartCN.VISUAL_ID:
- for (Iterator<?> cit = node.getChildren().iterator(); cit.hasNext();) {
- Node cnode = (Node) cit.next();
- switch (UMLVisualIDRegistry.getVisualID(cnode)) {
- case DeviceEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case ExecutionEnvironmentEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case NodeEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- case ArtifactEditPartCN.VISUAL_ID:
-
-
-
-
-
- for (Iterator<?> it = cnode.getTargetEdges().iterator(); it.hasNext();) {
- Edge incomingLink = (Edge) it.next();
- switch (UMLVisualIDRegistry.getVisualID(incomingLink)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- DestroyReferenceRequest destroyRefReq = new DestroyReferenceRequest(incomingLink.getSource().getElement(), null, incomingLink.getTarget().getElement(), false);
- cmd.add(new DestroyReferenceCommand(destroyRefReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- DestroyElementRequest destroyEltReq = new DestroyElementRequest(incomingLink.getElement(), false);
- cmd.add(new DestroyElementCommand(destroyEltReq));
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), incomingLink));
- break;
- }
- }
-
- cmd.add(new DestroyElementCommand(new DestroyElementRequest(getEditingDomain(), cnode.getElement(), false))); // directlyOwned: true
- // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
- // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
- break;
- }
- }
- break;
- }
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeCompositeCompartmentCanonicalEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeCompositeCompartmentCanonicalEditPolicy.java
deleted file mode 100644
index 31563a97a95..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeCompositeCompartmentCanonicalEditPolicy.java
+++ /dev/null
@@ -1,199 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.commands.DeferredLayoutCommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.diagram.ui.commands.SetViewMutabilityCommand;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramUpdater;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLNodeDescriptor;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class NodeCompositeCompartmentCanonicalEditPolicy extends CanonicalEditPolicy {
-
- /**
- * @generated
- */
- private Set<EStructuralFeature> myFeaturesToSynchronize;
-
- /**
- * @generated
- */
- @Override
- protected void refreshOnActivate() {
- // Need to activate editpart children before invoking the canonical refresh for EditParts to add event listeners
- List<?> c = getHost().getChildren();
- for (int i = 0; i < c.size(); i++) {
- ((EditPart) c.get(i)).activate();
- }
- super.refreshOnActivate();
- }
-
- /**
- * @generated
- */
- @Override
- protected Set<EStructuralFeature> getFeaturesToSynchronize() {
- if (myFeaturesToSynchronize == null) {
- myFeaturesToSynchronize = new HashSet<EStructuralFeature>();
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getNode_NestedNode());
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getClass_NestedClassifier());
- }
- return myFeaturesToSynchronize;
- }
-
- /**
- * @generated
- */
- @Override
- protected List<EObject> getSemanticChildrenList() {
- View viewObject = (View) getHost().getModel();
- LinkedList<EObject> result = new LinkedList<EObject>();
- List<UMLNodeDescriptor> childDescriptors = UMLDiagramUpdater.INSTANCE
- .getNodeCompositeCompartment_19SemanticChildren(viewObject);
- for (UMLNodeDescriptor d : childDescriptors) {
- result.add(d.getModelElement());
- }
- return result;
- }
-
- /**
- * @generated
- */
- @Override
- protected boolean isOrphaned(Collection<EObject> semanticChildren, final View view) {
- return isMyDiagramElement(view) && !semanticChildren.contains(view.getElement());
- }
-
- /**
- * @generated
- */
- private boolean isMyDiagramElement(View view) {
- int visualID = UMLVisualIDRegistry.getVisualID(view);
- switch (visualID) {
- case DeviceEditPartCN.VISUAL_ID:
- case ExecutionEnvironmentEditPartCN.VISUAL_ID:
- case ArtifactEditPartCN.VISUAL_ID:
- case NodeEditPartCN.VISUAL_ID:
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshSemantic() {
- if (resolveSemanticElement() == null) {
- return;
- }
- LinkedList<IAdaptable> createdViews = new LinkedList<IAdaptable>();
- List<UMLNodeDescriptor> childDescriptors =
- UMLDiagramUpdater.INSTANCE
- .getNodeCompositeCompartment_19SemanticChildren((View) getHost().getModel());
- LinkedList<View> orphaned = new LinkedList<View>();
- // we care to check only views we recognize as ours
- LinkedList<View> knownViewChildren = new LinkedList<View>();
- for (View v : getViewChildren()) {
- if (isMyDiagramElement(v)) {
- knownViewChildren.add(v);
- }
- }
- // alternative to #cleanCanonicalSemanticChildren(getViewChildren(), semanticChildren)
- //
- // iteration happens over list of desired semantic elements, trying to find best matching View, while original CEP
- // iterates views, potentially losing view (size/bounds) information - i.e. if there are few views to reference same EObject, only last one
- // to answer isOrphaned == true will be used for the domain element representation, see #cleanCanonicalSemanticChildren()
- for (Iterator<UMLNodeDescriptor> descriptorsIterator = childDescriptors.iterator(); descriptorsIterator.hasNext();) {
- UMLNodeDescriptor next = descriptorsIterator.next();
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- LinkedList<View> perfectMatch = new LinkedList<View>(); // both semanticElement and hint match that of NodeDescriptor
- for (View childView : getViewChildren()) {
- EObject semanticElement = childView.getElement();
- if (next.getModelElement().equals(semanticElement)) {
- if (hint.equals(childView.getType())) {
- perfectMatch.add(childView);
- // actually, can stop iteration over view children here, but
- // may want to use not the first view but last one as a 'real' match (the way original CEP does
- // with its trick with viewToSemanticMap inside #cleanCanonicalSemanticChildren
- }
- }
- }
- if (perfectMatch.size() > 0) {
- descriptorsIterator.remove(); // precise match found no need to create anything for the NodeDescriptor
- // use only one view (first or last?), keep rest as orphaned for further consideration
- knownViewChildren.remove(perfectMatch.getFirst());
- }
- }
- // those left in knownViewChildren are subject to removal - they are our diagram elements we didn't find match to,
- // or those we have potential matches to, and thus need to be recreated, preserving size/location information.
- orphaned.addAll(knownViewChildren);
- //
- ArrayList<CreateViewRequest.ViewDescriptor> viewDescriptors = new ArrayList<CreateViewRequest.ViewDescriptor>(childDescriptors.size());
- for (UMLNodeDescriptor next : childDescriptors) {
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- IAdaptable elementAdapter = new CanonicalElementAdapter(next.getModelElement(), hint);
- CreateViewRequest.ViewDescriptor descriptor = new CreateViewRequest.ViewDescriptor(elementAdapter, Node.class, hint, ViewUtil.APPEND, false, host().getDiagramPreferencesHint());
- viewDescriptors.add(descriptor);
- }
-
- boolean changed = deleteViews(orphaned.iterator());
- //
- CreateViewRequest request = getCreateViewRequest(viewDescriptors);
- Command cmd = getCreateViewCommand(request);
- if (cmd != null && cmd.canExecute()) {
- SetViewMutabilityCommand.makeMutable(new EObjectAdapter(host().getNotationView())).execute();
- executeCommand(cmd);
- @SuppressWarnings("unchecked")
- List<IAdaptable> nl = (List<IAdaptable>) request.getNewObject();
- createdViews.addAll(nl);
- }
- if (changed || createdViews.size() > 0) {
- postProcessRefreshSemantic(createdViews);
- }
- if (createdViews.size() > 1) {
- // perform a layout of the container
- DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host().getEditingDomain(), createdViews, host());
- executeCommand(new ICommandProxy(layoutCmd));
- }
-
- makeViewsImmutable(createdViews);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeCompositeCompartmentCanonicalEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeCompositeCompartmentCanonicalEditPolicyCN.java
deleted file mode 100644
index 7aadd0be3d4..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeCompositeCompartmentCanonicalEditPolicyCN.java
+++ /dev/null
@@ -1,199 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.commands.DeferredLayoutCommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.diagram.ui.commands.SetViewMutabilityCommand;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramUpdater;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLNodeDescriptor;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class NodeCompositeCompartmentCanonicalEditPolicyCN extends CanonicalEditPolicy {
-
- /**
- * @generated
- */
- private Set<EStructuralFeature> myFeaturesToSynchronize;
-
- /**
- * @generated
- */
- @Override
- protected void refreshOnActivate() {
- // Need to activate editpart children before invoking the canonical refresh for EditParts to add event listeners
- List<?> c = getHost().getChildren();
- for (int i = 0; i < c.size(); i++) {
- ((EditPart) c.get(i)).activate();
- }
- super.refreshOnActivate();
- }
-
- /**
- * @generated
- */
- @Override
- protected Set<EStructuralFeature> getFeaturesToSynchronize() {
- if (myFeaturesToSynchronize == null) {
- myFeaturesToSynchronize = new HashSet<EStructuralFeature>();
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getNode_NestedNode());
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getClass_NestedClassifier());
- }
- return myFeaturesToSynchronize;
- }
-
- /**
- * @generated
- */
- @Override
- protected List<EObject> getSemanticChildrenList() {
- View viewObject = (View) getHost().getModel();
- LinkedList<EObject> result = new LinkedList<EObject>();
- List<UMLNodeDescriptor> childDescriptors = UMLDiagramUpdater.INSTANCE
- .getNodeCompositeCompartment_32SemanticChildren(viewObject);
- for (UMLNodeDescriptor d : childDescriptors) {
- result.add(d.getModelElement());
- }
- return result;
- }
-
- /**
- * @generated
- */
- @Override
- protected boolean isOrphaned(Collection<EObject> semanticChildren, final View view) {
- return isMyDiagramElement(view) && !semanticChildren.contains(view.getElement());
- }
-
- /**
- * @generated
- */
- private boolean isMyDiagramElement(View view) {
- int visualID = UMLVisualIDRegistry.getVisualID(view);
- switch (visualID) {
- case DeviceEditPartCN.VISUAL_ID:
- case ExecutionEnvironmentEditPartCN.VISUAL_ID:
- case NodeEditPartCN.VISUAL_ID:
- case ArtifactEditPartCN.VISUAL_ID:
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshSemantic() {
- if (resolveSemanticElement() == null) {
- return;
- }
- LinkedList<IAdaptable> createdViews = new LinkedList<IAdaptable>();
- List<UMLNodeDescriptor> childDescriptors =
- UMLDiagramUpdater.INSTANCE
- .getNodeCompositeCompartment_32SemanticChildren((View) getHost().getModel());
- LinkedList<View> orphaned = new LinkedList<View>();
- // we care to check only views we recognize as ours
- LinkedList<View> knownViewChildren = new LinkedList<View>();
- for (View v : getViewChildren()) {
- if (isMyDiagramElement(v)) {
- knownViewChildren.add(v);
- }
- }
- // alternative to #cleanCanonicalSemanticChildren(getViewChildren(), semanticChildren)
- //
- // iteration happens over list of desired semantic elements, trying to find best matching View, while original CEP
- // iterates views, potentially losing view (size/bounds) information - i.e. if there are few views to reference same EObject, only last one
- // to answer isOrphaned == true will be used for the domain element representation, see #cleanCanonicalSemanticChildren()
- for (Iterator<UMLNodeDescriptor> descriptorsIterator = childDescriptors.iterator(); descriptorsIterator.hasNext();) {
- UMLNodeDescriptor next = descriptorsIterator.next();
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- LinkedList<View> perfectMatch = new LinkedList<View>(); // both semanticElement and hint match that of NodeDescriptor
- for (View childView : getViewChildren()) {
- EObject semanticElement = childView.getElement();
- if (next.getModelElement().equals(semanticElement)) {
- if (hint.equals(childView.getType())) {
- perfectMatch.add(childView);
- // actually, can stop iteration over view children here, but
- // may want to use not the first view but last one as a 'real' match (the way original CEP does
- // with its trick with viewToSemanticMap inside #cleanCanonicalSemanticChildren
- }
- }
- }
- if (perfectMatch.size() > 0) {
- descriptorsIterator.remove(); // precise match found no need to create anything for the NodeDescriptor
- // use only one view (first or last?), keep rest as orphaned for further consideration
- knownViewChildren.remove(perfectMatch.getFirst());
- }
- }
- // those left in knownViewChildren are subject to removal - they are our diagram elements we didn't find match to,
- // or those we have potential matches to, and thus need to be recreated, preserving size/location information.
- orphaned.addAll(knownViewChildren);
- //
- ArrayList<CreateViewRequest.ViewDescriptor> viewDescriptors = new ArrayList<CreateViewRequest.ViewDescriptor>(childDescriptors.size());
- for (UMLNodeDescriptor next : childDescriptors) {
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- IAdaptable elementAdapter = new CanonicalElementAdapter(next.getModelElement(), hint);
- CreateViewRequest.ViewDescriptor descriptor = new CreateViewRequest.ViewDescriptor(elementAdapter, Node.class, hint, ViewUtil.APPEND, false, host().getDiagramPreferencesHint());
- viewDescriptors.add(descriptor);
- }
-
- boolean changed = deleteViews(orphaned.iterator());
- //
- CreateViewRequest request = getCreateViewRequest(viewDescriptors);
- Command cmd = getCreateViewCommand(request);
- if (cmd != null && cmd.canExecute()) {
- SetViewMutabilityCommand.makeMutable(new EObjectAdapter(host().getNotationView())).execute();
- executeCommand(cmd);
- @SuppressWarnings("unchecked")
- List<IAdaptable> nl = (List<IAdaptable>) request.getNewObject();
- createdViews.addAll(nl);
- }
- if (changed || createdViews.size() > 0) {
- postProcessRefreshSemantic(createdViews);
- }
- if (createdViews.size() > 1) {
- // perform a layout of the container
- DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host().getEditingDomain(), createdViews, host());
- executeCommand(new ICommandProxy(layoutCmd));
- }
-
- makeViewsImmutable(createdViews);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeCompositeCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeCompositeCompartmentItemSemanticEditPolicy.java
deleted file mode 100644
index 22cf7877d7a..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeCompositeCompartmentItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramUtils;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ArtifactCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeviceCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ExecutionEnvironmentCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NodeCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class NodeCompositeCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public NodeCompositeCompartmentItemSemanticEditPolicy() {
- super(UMLElementTypes.Node_2008);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateCommand(CreateElementRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return super.getCreateCommand(req);
- }
-
-
- if (UMLElementTypes.Device_16 == requestElementType) {
-
- return getGEFWrapper(new DeviceCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.ExecutionEnvironment_21 == requestElementType) {
-
- return getGEFWrapper(new ExecutionEnvironmentCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Artifact_25 == requestElementType) {
-
- return getGEFWrapper(new ArtifactCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Node_23 == requestElementType) {
-
- return getGEFWrapper(new NodeCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- return super.getCreateCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeCompositeCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeCompositeCompartmentItemSemanticEditPolicyCN.java
deleted file mode 100644
index 14c946ff61c..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeCompositeCompartmentItemSemanticEditPolicyCN.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramUtils;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ArtifactCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeviceCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ExecutionEnvironmentCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NodeCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class NodeCompositeCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public NodeCompositeCompartmentItemSemanticEditPolicyCN() {
- super(UMLElementTypes.Node_42);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateCommand(CreateElementRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return super.getCreateCommand(req);
- }
-
-
- if (UMLElementTypes.Device_16 == requestElementType) {
-
- return getGEFWrapper(new DeviceCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.ExecutionEnvironment_21 == requestElementType) {
-
- return getGEFWrapper(new ExecutionEnvironmentCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Node_23 == requestElementType) {
-
- return getGEFWrapper(new NodeCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Artifact_25 == requestElementType) {
-
- return getGEFWrapper(new ArtifactCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- return super.getCreateCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeItemSemanticEditPolicy.java
deleted file mode 100644
index f4c5268b141..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,266 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.GeneralizationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class NodeItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public NodeItemSemanticEditPolicy() {
- super(UMLElementTypes.Node_2008);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- EObject selectedEObject = req.getElementToDestroy();
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
- if (provider != null) {
- // Retrieve delete command from the Element Edit service
- ICommand deleteCommand = provider.getEditCommand(req);
-
- if (deleteCommand != null) {
- return new ICommandProxy(deleteCommand);
- }
- }
- return UnexecutableCommand.INSTANCE;
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeItemSemanticEditPolicyCN.java
deleted file mode 100644
index 710822d18fc..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/NodeItemSemanticEditPolicyCN.java
+++ /dev/null
@@ -1,278 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.edit.command.DeleteCommand;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.commands.wrappers.EMFtoGMFCommandWrapper;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.GeneralizationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class NodeItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public NodeItemSemanticEditPolicyCN() {
- super(UMLElementTypes.Node_23);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- View view = (View) getHost().getModel();
- CompositeTransactionalCommand cmd = new CompositeTransactionalCommand(getEditingDomain(), null);
- cmd.setTransactionNestingEnabled(true);
- EAnnotation annotation = view.getEAnnotation("Shortcut");//$NON-NLS-1$
- if (annotation == null) {
- // there are indirectly referenced children, need extra commands: false
- addDestroyShortcutsCommand(cmd, view);
- // delete host element
- List<EObject> todestroy = new ArrayList<EObject>();
- todestroy.add(req.getElementToDestroy());
- // cmd.add(new org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand(req));
- cmd.add(new EMFtoGMFCommandWrapper(new DeleteCommand(getEditingDomain(), todestroy)));
- } else {
- cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), view));
- }
- return getGEFWrapper(cmd.reduce());
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Generalization_4003 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new GeneralizationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case GeneralizationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackageItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackageItemSemanticEditPolicy.java
deleted file mode 100644
index 53b125bf66a..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackageItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,249 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class PackageItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public PackageItemSemanticEditPolicy() {
- super(UMLElementTypes.Package_2009);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- EObject selectedEObject = req.getElementToDestroy();
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
- if (provider != null) {
- // Retrieve delete command from the Element Edit service
- ICommand deleteCommand = provider.getEditCommand(req);
-
- if (deleteCommand != null) {
- return new ICommandProxy(deleteCommand);
- }
- }
- return UnexecutableCommand.INSTANCE;
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackageItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackageItemSemanticEditPolicyCN.java
deleted file mode 100644
index 41db292f1cb..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackageItemSemanticEditPolicyCN.java
+++ /dev/null
@@ -1,249 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintConstrainedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyBranchCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DependencyCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.DeploymentCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ManifestationCreateCommand;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class PackageItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public PackageItemSemanticEditPolicyCN() {
- super(UMLElementTypes.Package_36);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- EObject selectedEObject = req.getElementToDestroy();
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(selectedEObject);
- if (provider != null) {
- // Retrieve delete command from the Element Edit service
- ICommand deleteCommand = provider.getEditCommand(req);
-
- if (deleteCommand != null) {
- return new ICommandProxy(deleteCommand);
- }
- }
- return UnexecutableCommand.INSTANCE;
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- Command command = req.getTarget() == null ?
- getStartCreateRelationshipCommand(req) : getCompleteCreateRelationshipCommand(req);
- return command != null ? command : super.getCreateRelationshipCommand(req);
- }
-
- /**
- * @generated
- */
- protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- return null;
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedStartCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return null;
- }
- IElementType baseElementType = requestElementType;
- boolean isExtendedType = false;
- if (requestElementType instanceof IExtendedHintedElementType) {
- baseElementType = ElementTypeUtils.getClosestDiagramType(requestElementType);
- if (baseElementType != null) {
- isExtendedType = true;
- } else {
- // no reference element type ID. using the closest super element type to give more opportunities, but can lead to bugs.
- baseElementType = ElementTypeUtils.findClosestNonExtendedElementType((IExtendedHintedElementType) requestElementType);
- isExtendedType = true;
- }
- }
- if (UMLElementTypes.CommentAnnotatedElement_4008 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.ConstraintConstrainedElement_4009 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Deployment_4001 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DeploymentCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Manifestation_4002 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new ManifestationCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4004 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- if (UMLElementTypes.Dependency_4010 == baseElementType) {
- if (isExtendedType) {
- return getExtendedCompleteCreateRelationshipCommand(req, (IExtendedHintedElementType) requestElementType);
- }
- return getGEFWrapper(new DependencyBranchCreateCommand(req,
- req.getSource(), req.getTarget()));
- }
- return null;
- }
-
- /**
- * Returns command to reorient EClass based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- switch (getVisualID(req)) {
- case DeploymentEditPart.VISUAL_ID:
- case ManifestationEditPart.VISUAL_ID:
- case DependencyEditPart.VISUAL_ID:
- case DependencyBranchEditPart.VISUAL_ID:
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(req.getRelationship());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve re-orient command from the Element Edit service
- ICommand reorientCommand = provider.getEditCommand(req);
- if (reorientCommand == null) {
- return UnexecutableCommand.INSTANCE;
- }
- return getGEFWrapper(reorientCommand.reduce());
- }
- return super.getReorientRelationshipCommand(req);
- }
-
- /**
- * Returns command to reorient EReference based link. New link target or source
- * should be the domain model element associated with this node.
- *
- * @generated
- */
- @Override
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- switch (getVisualID(req)) {
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
- }
- return super.getReorientReferenceRelationshipCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackagePackageableElementCompartmentCanonicalEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackagePackageableElementCompartmentCanonicalEditPolicy.java
deleted file mode 100644
index 154564ba937..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackagePackageableElementCompartmentCanonicalEditPolicy.java
+++ /dev/null
@@ -1,208 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.commands.DeferredLayoutCommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.diagram.ui.commands.SetViewMutabilityCommand;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramUpdater;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLNodeDescriptor;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class PackagePackageableElementCompartmentCanonicalEditPolicy extends CanonicalEditPolicy {
-
- /**
- * @generated
- */
- private Set<EStructuralFeature> myFeaturesToSynchronize;
-
- /**
- * @generated
- */
- @Override
- protected void refreshOnActivate() {
- // Need to activate editpart children before invoking the canonical refresh for EditParts to add event listeners
- List<?> c = getHost().getChildren();
- for (int i = 0; i < c.size(); i++) {
- ((EditPart) c.get(i)).activate();
- }
- super.refreshOnActivate();
- }
-
- /**
- * @generated
- */
- @Override
- protected Set<EStructuralFeature> getFeaturesToSynchronize() {
- if (myFeaturesToSynchronize == null) {
- myFeaturesToSynchronize = new HashSet<EStructuralFeature>();
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getPackage_PackagedElement());
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getElement_OwnedComment());
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getNamespace_OwnedRule());
- }
- return myFeaturesToSynchronize;
- }
-
- /**
- * @generated
- */
- @Override
- protected List<EObject> getSemanticChildrenList() {
- View viewObject = (View) getHost().getModel();
- LinkedList<EObject> result = new LinkedList<EObject>();
- List<UMLNodeDescriptor> childDescriptors = UMLDiagramUpdater.INSTANCE
- .getPackagePackageableElementCompartment_38SemanticChildren(viewObject);
- for (UMLNodeDescriptor d : childDescriptors) {
- result.add(d.getModelElement());
- }
- return result;
- }
-
- /**
- * @generated
- */
- @Override
- protected boolean isOrphaned(Collection<EObject> semanticChildren, final View view) {
- return isMyDiagramElement(view) && !semanticChildren.contains(view.getElement());
- }
-
- /**
- * @generated
- */
- private boolean isMyDiagramElement(View view) {
- int visualID = UMLVisualIDRegistry.getVisualID(view);
- switch (visualID) {
- case ModelEditPartCN.VISUAL_ID:
- case PackageEditPartCN.VISUAL_ID:
- case NestedArtifactNodeEditPartCN.VISUAL_ID:
- case NestedDeviceEditPartCN.VISUAL_ID:
- case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
- case NestedNodeEditPartCN.VISUAL_ID:
- case CommentEditPartCN.VISUAL_ID:
- case ConstraintEditPartCN.VISUAL_ID:
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshSemantic() {
- if (resolveSemanticElement() == null) {
- return;
- }
- LinkedList<IAdaptable> createdViews = new LinkedList<IAdaptable>();
- List<UMLNodeDescriptor> childDescriptors =
- UMLDiagramUpdater.INSTANCE
- .getPackagePackageableElementCompartment_38SemanticChildren((View) getHost().getModel());
- LinkedList<View> orphaned = new LinkedList<View>();
- // we care to check only views we recognize as ours
- LinkedList<View> knownViewChildren = new LinkedList<View>();
- for (View v : getViewChildren()) {
- if (isMyDiagramElement(v)) {
- knownViewChildren.add(v);
- }
- }
- // alternative to #cleanCanonicalSemanticChildren(getViewChildren(), semanticChildren)
- //
- // iteration happens over list of desired semantic elements, trying to find best matching View, while original CEP
- // iterates views, potentially losing view (size/bounds) information - i.e. if there are few views to reference same EObject, only last one
- // to answer isOrphaned == true will be used for the domain element representation, see #cleanCanonicalSemanticChildren()
- for (Iterator<UMLNodeDescriptor> descriptorsIterator = childDescriptors.iterator(); descriptorsIterator.hasNext();) {
- UMLNodeDescriptor next = descriptorsIterator.next();
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- LinkedList<View> perfectMatch = new LinkedList<View>(); // both semanticElement and hint match that of NodeDescriptor
- for (View childView : getViewChildren()) {
- EObject semanticElement = childView.getElement();
- if (next.getModelElement().equals(semanticElement)) {
- if (hint.equals(childView.getType())) {
- perfectMatch.add(childView);
- // actually, can stop iteration over view children here, but
- // may want to use not the first view but last one as a 'real' match (the way original CEP does
- // with its trick with viewToSemanticMap inside #cleanCanonicalSemanticChildren
- }
- }
- }
- if (perfectMatch.size() > 0) {
- descriptorsIterator.remove(); // precise match found no need to create anything for the NodeDescriptor
- // use only one view (first or last?), keep rest as orphaned for further consideration
- knownViewChildren.remove(perfectMatch.getFirst());
- }
- }
- // those left in knownViewChildren are subject to removal - they are our diagram elements we didn't find match to,
- // or those we have potential matches to, and thus need to be recreated, preserving size/location information.
- orphaned.addAll(knownViewChildren);
- //
- ArrayList<CreateViewRequest.ViewDescriptor> viewDescriptors = new ArrayList<CreateViewRequest.ViewDescriptor>(childDescriptors.size());
- for (UMLNodeDescriptor next : childDescriptors) {
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- IAdaptable elementAdapter = new CanonicalElementAdapter(next.getModelElement(), hint);
- CreateViewRequest.ViewDescriptor descriptor = new CreateViewRequest.ViewDescriptor(elementAdapter, Node.class, hint, ViewUtil.APPEND, false, host().getDiagramPreferencesHint());
- viewDescriptors.add(descriptor);
- }
-
- boolean changed = deleteViews(orphaned.iterator());
- //
- CreateViewRequest request = getCreateViewRequest(viewDescriptors);
- Command cmd = getCreateViewCommand(request);
- if (cmd != null && cmd.canExecute()) {
- SetViewMutabilityCommand.makeMutable(new EObjectAdapter(host().getNotationView())).execute();
- executeCommand(cmd);
- @SuppressWarnings("unchecked")
- List<IAdaptable> nl = (List<IAdaptable>) request.getNewObject();
- createdViews.addAll(nl);
- }
- if (changed || createdViews.size() > 0) {
- postProcessRefreshSemantic(createdViews);
- }
- if (createdViews.size() > 1) {
- // perform a layout of the container
- DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host().getEditingDomain(), createdViews, host());
- executeCommand(new ICommandProxy(layoutCmd));
- }
-
- makeViewsImmutable(createdViews);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackagePackageableElementCompartmentCanonicalEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackagePackageableElementCompartmentCanonicalEditPolicyCN.java
deleted file mode 100644
index cd0ea599b77..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackagePackageableElementCompartmentCanonicalEditPolicyCN.java
+++ /dev/null
@@ -1,206 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.commands.DeferredLayoutCommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.diagram.ui.commands.SetViewMutabilityCommand;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramUpdater;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLNodeDescriptor;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class PackagePackageableElementCompartmentCanonicalEditPolicyCN extends CanonicalEditPolicy {
-
- /**
- * @generated
- */
- private Set<EStructuralFeature> myFeaturesToSynchronize;
-
- /**
- * @generated
- */
- @Override
- protected void refreshOnActivate() {
- // Need to activate editpart children before invoking the canonical refresh for EditParts to add event listeners
- List<?> c = getHost().getChildren();
- for (int i = 0; i < c.size(); i++) {
- ((EditPart) c.get(i)).activate();
- }
- super.refreshOnActivate();
- }
-
- /**
- * @generated
- */
- @Override
- protected Set<EStructuralFeature> getFeaturesToSynchronize() {
- if (myFeaturesToSynchronize == null) {
- myFeaturesToSynchronize = new HashSet<EStructuralFeature>();
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getPackage_PackagedElement());
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getElement_OwnedComment());
- myFeaturesToSynchronize.add(UMLPackage.eINSTANCE.getNamespace_OwnedRule());
- }
- return myFeaturesToSynchronize;
- }
-
- /**
- * @generated
- */
- @Override
- protected List<EObject> getSemanticChildrenList() {
- View viewObject = (View) getHost().getModel();
- LinkedList<EObject> result = new LinkedList<EObject>();
- List<UMLNodeDescriptor> childDescriptors = UMLDiagramUpdater.INSTANCE
- .getPackagePackageableElementCompartment_39SemanticChildren(viewObject);
- for (UMLNodeDescriptor d : childDescriptors) {
- result.add(d.getModelElement());
- }
- return result;
- }
-
- /**
- * @generated
- */
- @Override
- protected boolean isOrphaned(Collection<EObject> semanticChildren, final View view) {
- return isMyDiagramElement(view) && !semanticChildren.contains(view.getElement());
- }
-
- /**
- * @generated
- */
- private boolean isMyDiagramElement(View view) {
- int visualID = UMLVisualIDRegistry.getVisualID(view);
- switch (visualID) {
- case PackageEditPartCN.VISUAL_ID:
- case NestedArtifactNodeEditPartCN.VISUAL_ID:
- case NestedDeviceEditPartCN.VISUAL_ID:
- case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
- case NestedNodeEditPartCN.VISUAL_ID:
- case CommentEditPartCN.VISUAL_ID:
- case ConstraintEditPartCN.VISUAL_ID:
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void refreshSemantic() {
- if (resolveSemanticElement() == null) {
- return;
- }
- LinkedList<IAdaptable> createdViews = new LinkedList<IAdaptable>();
- List<UMLNodeDescriptor> childDescriptors =
- UMLDiagramUpdater.INSTANCE
- .getPackagePackageableElementCompartment_39SemanticChildren((View) getHost().getModel());
- LinkedList<View> orphaned = new LinkedList<View>();
- // we care to check only views we recognize as ours
- LinkedList<View> knownViewChildren = new LinkedList<View>();
- for (View v : getViewChildren()) {
- if (isMyDiagramElement(v)) {
- knownViewChildren.add(v);
- }
- }
- // alternative to #cleanCanonicalSemanticChildren(getViewChildren(), semanticChildren)
- //
- // iteration happens over list of desired semantic elements, trying to find best matching View, while original CEP
- // iterates views, potentially losing view (size/bounds) information - i.e. if there are few views to reference same EObject, only last one
- // to answer isOrphaned == true will be used for the domain element representation, see #cleanCanonicalSemanticChildren()
- for (Iterator<UMLNodeDescriptor> descriptorsIterator = childDescriptors.iterator(); descriptorsIterator.hasNext();) {
- UMLNodeDescriptor next = descriptorsIterator.next();
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- LinkedList<View> perfectMatch = new LinkedList<View>(); // both semanticElement and hint match that of NodeDescriptor
- for (View childView : getViewChildren()) {
- EObject semanticElement = childView.getElement();
- if (next.getModelElement().equals(semanticElement)) {
- if (hint.equals(childView.getType())) {
- perfectMatch.add(childView);
- // actually, can stop iteration over view children here, but
- // may want to use not the first view but last one as a 'real' match (the way original CEP does
- // with its trick with viewToSemanticMap inside #cleanCanonicalSemanticChildren
- }
- }
- }
- if (perfectMatch.size() > 0) {
- descriptorsIterator.remove(); // precise match found no need to create anything for the NodeDescriptor
- // use only one view (first or last?), keep rest as orphaned for further consideration
- knownViewChildren.remove(perfectMatch.getFirst());
- }
- }
- // those left in knownViewChildren are subject to removal - they are our diagram elements we didn't find match to,
- // or those we have potential matches to, and thus need to be recreated, preserving size/location information.
- orphaned.addAll(knownViewChildren);
- //
- ArrayList<CreateViewRequest.ViewDescriptor> viewDescriptors = new ArrayList<CreateViewRequest.ViewDescriptor>(childDescriptors.size());
- for (UMLNodeDescriptor next : childDescriptors) {
- String hint = UMLVisualIDRegistry.getType(next.getVisualID());
- IAdaptable elementAdapter = new CanonicalElementAdapter(next.getModelElement(), hint);
- CreateViewRequest.ViewDescriptor descriptor = new CreateViewRequest.ViewDescriptor(elementAdapter, Node.class, hint, ViewUtil.APPEND, false, host().getDiagramPreferencesHint());
- viewDescriptors.add(descriptor);
- }
-
- boolean changed = deleteViews(orphaned.iterator());
- //
- CreateViewRequest request = getCreateViewRequest(viewDescriptors);
- Command cmd = getCreateViewCommand(request);
- if (cmd != null && cmd.canExecute()) {
- SetViewMutabilityCommand.makeMutable(new EObjectAdapter(host().getNotationView())).execute();
- executeCommand(cmd);
- @SuppressWarnings("unchecked")
- List<IAdaptable> nl = (List<IAdaptable>) request.getNewObject();
- createdViews.addAll(nl);
- }
- if (changed || createdViews.size() > 0) {
- postProcessRefreshSemantic(createdViews);
- }
- if (createdViews.size() > 1) {
- // perform a layout of the container
- DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host().getEditingDomain(), createdViews, host());
- executeCommand(new ICommandProxy(layoutCmd));
- }
-
- makeViewsImmutable(createdViews);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackagePackageableElementCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackagePackageableElementCompartmentItemSemanticEditPolicy.java
deleted file mode 100644
index 29f2ddc4361..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackagePackageableElementCompartmentItemSemanticEditPolicy.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramUtils;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ModelCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NestedArtifactNodeCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NestedDeviceCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NestedExecutionEnvironmentCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NestedNodeCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.PackageCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class PackagePackageableElementCompartmentItemSemanticEditPolicy extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public PackagePackageableElementCompartmentItemSemanticEditPolicy() {
- super(UMLElementTypes.Package_2009);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateCommand(CreateElementRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return super.getCreateCommand(req);
- }
-
-
- if (UMLElementTypes.Model_49 == requestElementType) {
-
- return getGEFWrapper(new ModelCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Package_36 == requestElementType) {
-
- return getGEFWrapper(new PackageCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Artifact_40 == requestElementType) {
-
- return getGEFWrapper(new NestedArtifactNodeCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Device_44 == requestElementType) {
-
- return getGEFWrapper(new NestedDeviceCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.ExecutionEnvironment_46 == requestElementType) {
-
- return getGEFWrapper(new NestedExecutionEnvironmentCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Node_42 == requestElementType) {
-
- return getGEFWrapper(new NestedNodeCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Comment_54 == requestElementType) {
-
- return getGEFWrapper(new CommentCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Constraint_56 == requestElementType) {
-
- return getGEFWrapper(new ConstraintCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- return super.getCreateCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackagePackageableElementCompartmentItemSemanticEditPolicyCN.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackagePackageableElementCompartmentItemSemanticEditPolicyCN.java
deleted file mode 100644
index 202aff4280b..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/PackagePackageableElementCompartmentItemSemanticEditPolicyCN.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramUtils;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.CommentCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.ConstraintCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NestedArtifactNodeCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NestedDeviceCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NestedExecutionEnvironmentCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.NestedNodeCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.commands.PackageCreateCommandCN;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class PackagePackageableElementCompartmentItemSemanticEditPolicyCN extends UMLBaseItemSemanticEditPolicy {
-
- /**
- * @generated
- */
- public PackagePackageableElementCompartmentItemSemanticEditPolicyCN() {
- super(UMLElementTypes.Package_36);
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getCreateCommand(CreateElementRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType == null) {
- return super.getCreateCommand(req);
- }
-
-
- if (UMLElementTypes.Package_36 == requestElementType) {
-
- return getGEFWrapper(new PackageCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Artifact_40 == requestElementType) {
-
- return getGEFWrapper(new NestedArtifactNodeCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Device_44 == requestElementType) {
-
- return getGEFWrapper(new NestedDeviceCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.ExecutionEnvironment_46 == requestElementType) {
-
- return getGEFWrapper(new NestedExecutionEnvironmentCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Node_42 == requestElementType) {
-
- return getGEFWrapper(new NestedNodeCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Comment_54 == requestElementType) {
-
- return getGEFWrapper(new CommentCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- if (UMLElementTypes.Constraint_56 == requestElementType) {
-
- return getGEFWrapper(new ConstraintCreateCommandCN(req, DiagramUtils.getDiagramFrom(getHost())));
-
- }
- return super.getCreateCommand(req);
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLBaseItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLBaseItemSemanticEditPolicy.java
index 611dab396dd..d02455d6f39 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLBaseItemSemanticEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLBaseItemSemanticEditPolicy.java
@@ -1,545 +1,543 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.Iterator;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.Request;
-import org.eclipse.gef.commands.Command;
-import org.eclipse.gef.commands.UnexecutableCommand;
-import org.eclipse.gef.requests.ReconnectRequest;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.common.core.command.ICompositeCommand;
-import org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand;
-import org.eclipse.gmf.runtime.diagram.ui.commands.CommandProxy;
-import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy;
-import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.commands.MoveElementsCommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DuplicateElementsRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.GetEditContextRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
-import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.edit.helpers.GeneratedEditHelperBase;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
-import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.uml2.uml.Artifact;
-import org.eclipse.uml2.uml.Classifier;
-import org.eclipse.uml2.uml.Comment;
-import org.eclipse.uml2.uml.Constraint;
-import org.eclipse.uml2.uml.Dependency;
-import org.eclipse.uml2.uml.Deployment;
-import org.eclipse.uml2.uml.DeploymentTarget;
-import org.eclipse.uml2.uml.Element;
-import org.eclipse.uml2.uml.Generalization;
-import org.eclipse.uml2.uml.Manifestation;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.Package;
-
-/**
- * @generated
- */
-public class UMLBaseItemSemanticEditPolicy extends SemanticEditPolicy {
-
- /**
- * Extended request data key to hold editpart visual id.
- *
- * @generated
- */
- public static final String VISUAL_ID_KEY = "visual_id"; //$NON-NLS-1$
-
- /**
- * Extended request data key to hold the edge view during a reconnect request.
- *
- * @generated
- */
- public static final String GRAPHICAL_RECONNECTED_EDGE = "graphical_edge"; //$NON-NLS-1$
-
- /**
- * @generated
- */
- private final IElementType myElementType;
-
- /**
- * @generated
- */
- protected UMLBaseItemSemanticEditPolicy(IElementType elementType) {
- myElementType = elementType;
- }
-
- /**
- * Extended request data key to hold editpart visual id.
- * Add visual id of edited editpart to extended data of the request
- * so command switch can decide what kind of diagram element is being edited.
- * It is done in those cases when it's not possible to deduce diagram
- * element kind from domain element.
- * Add the reoriented view to the request extended data so that the view
- * currently edited can be distinguished from other views of the same element
- * and these latter possibly removed if they become inconsistent after reconnect
- *
- * @generated
- */
- @Override
- @SuppressWarnings("unchecked")
- public Command getCommand(Request request) {
- if (request instanceof ReconnectRequest) {
- Object view = ((ReconnectRequest) request).getConnectionEditPart().getModel();
- if (view instanceof View) {
- Integer id = new Integer(UMLVisualIDRegistry.getVisualID((View) view));
- request.getExtendedData().put(VISUAL_ID_KEY, id);
- request.getExtendedData().put(GRAPHICAL_RECONNECTED_EDGE, view);
- }
- }
- return super.getCommand(request);
- }
-
- /**
- * Returns visual id from request parameters.
- *
- * @generated
- */
- protected int getVisualID(IEditCommandRequest request) {
- Object id = request.getParameter(VISUAL_ID_KEY);
- return id instanceof Integer ? ((Integer) id).intValue() : -1;
- }
-
- /**
- * @generated
- */
- @Override
- protected Command getSemanticCommand(IEditCommandRequest request) {
- IEditCommandRequest completedRequest = completeRequest(request);
- Command semanticCommand = getSemanticCommandSwitch(completedRequest);
- semanticCommand = getEditHelperCommand(completedRequest, semanticCommand);
- if (completedRequest instanceof DestroyRequest) {
- DestroyRequest destroyRequest = (DestroyRequest) completedRequest;
- return shouldProceed(destroyRequest) ? addDeleteViewCommand(semanticCommand, destroyRequest) : null;
- }
- return semanticCommand;
- }
-
- /**
- * @generated
- */
- protected Command addDeleteViewCommand(Command mainCommand, DestroyRequest completedRequest) {
- Command deleteViewCommand = getGEFWrapper(new DeleteCommand(getEditingDomain(), (View) getHost().getModel()));
- return mainCommand == null ? deleteViewCommand : mainCommand.chain(deleteViewCommand);
- }
-
- /**
- * @generated
- */
- private Command getEditHelperCommand(IEditCommandRequest request, Command editPolicyCommand) {
- if (editPolicyCommand != null) {
- ICommand command = editPolicyCommand instanceof ICommandProxy ? ((ICommandProxy) editPolicyCommand).getICommand() : new CommandProxy(editPolicyCommand);
- request.setParameter(GeneratedEditHelperBase.EDIT_POLICY_COMMAND, command);
- }
- IElementType requestContextElementType = getContextElementType(request);
- request.setParameter(GeneratedEditHelperBase.CONTEXT_ELEMENT_TYPE, requestContextElementType);
- ICommand command = requestContextElementType.getEditCommand(request);
- request.setParameter(GeneratedEditHelperBase.EDIT_POLICY_COMMAND, null);
- request.setParameter(GeneratedEditHelperBase.CONTEXT_ELEMENT_TYPE, null);
- if (command != null) {
- if (!(command instanceof CompositeTransactionalCommand)) {
- command = new CompositeTransactionalCommand(getEditingDomain(), command.getLabel()).compose(command);
- }
- return new ICommandProxy(command);
- }
- return editPolicyCommand;
- }
-
- /**
- * @generated
- */
- protected IElementType getContextElementType(IEditCommandRequest request) {
- IElementType requestContextElementType = UMLElementTypes.getElementType(getVisualID(request));
- return requestContextElementType != null ? requestContextElementType : myElementType;
- }
-
- /**
- * @generated
- */
- protected Command getSemanticCommandSwitch(IEditCommandRequest req) {
- if (req instanceof CreateRelationshipRequest) {
- return getCreateRelationshipCommand((CreateRelationshipRequest) req);
- } else if (req instanceof CreateElementRequest) {
- return getCreateCommand((CreateElementRequest) req);
- } else if (req instanceof ConfigureRequest) {
- return getConfigureCommand((ConfigureRequest) req);
- } else if (req instanceof DestroyElementRequest) {
- return getDestroyElementCommand((DestroyElementRequest) req);
- } else if (req instanceof DestroyReferenceRequest) {
- return getDestroyReferenceCommand((DestroyReferenceRequest) req);
- } else if (req instanceof DuplicateElementsRequest) {
- return getDuplicateCommand((DuplicateElementsRequest) req);
- } else if (req instanceof GetEditContextRequest) {
- return getEditContextCommand((GetEditContextRequest) req);
- } else if (req instanceof MoveRequest) {
- return getMoveCommand((MoveRequest) req);
- } else if (req instanceof ReorientReferenceRelationshipRequest) {
- return getReorientReferenceRelationshipCommand((ReorientReferenceRelationshipRequest) req);
- } else if (req instanceof ReorientRelationshipRequest) {
- return getReorientRelationshipCommand((ReorientRelationshipRequest) req);
- } else if (req instanceof SetRequest) {
- return getSetCommand((SetRequest) req);
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getConfigureCommand(ConfigureRequest req) {
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getCreateCommand(CreateElementRequest req) {
- IElementType requestElementType = req.getElementType();
- if (requestElementType instanceof IExtendedHintedElementType) {
- // try to get a semantic create command from the extended type
- IElementEditService commandProvider = ElementEditServiceUtils.getCommandProvider(req.getContainer());
- if (commandProvider != null) {
- ICommand command = commandProvider.getEditCommand(req);
- if (command != null && command.canExecute()) {
- return new ICommandProxy(command);
- }
- }
- }
- return null;
- }
-
- // RS: add code for extended types
- /**
- * @generated
- */
- protected Command getExtendedTypeCreationCommand(CreateElementRequest request, IExtendedHintedElementType requestElementType) {
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(request.getContainer());
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve create command from the Element Edit service
- ICommand createGMFCommand = provider.getEditCommand(request);
- return getGEFWrapper(createGMFCommand);
- }
-
- /**
- * @generated
- */
- protected Command getExtendedStartCreateRelationshipCommand(CreateElementRequest request, IExtendedHintedElementType requestElementType) {
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(requestElementType);
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve create command from the Element Edit service
- ICommand createGMFCommand = provider.getEditCommand(request);
- return getGEFWrapper(createGMFCommand);
- }
-
- /**
- * @generated
- */
- protected Command getExtendedCompleteCreateRelationshipCommand(CreateElementRequest request, IExtendedHintedElementType requestElementType) {
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(requestElementType);
- if (provider == null) {
- return UnexecutableCommand.INSTANCE;
- }
- // Retrieve create command from the Element Edit service
- ICommand createGMFCommand = provider.getEditCommand(request);
- return getGEFWrapper(createGMFCommand);
- }
-
- // RS: End of add code for extended types
- /**
- * @generated
- */
- protected Command getSetCommand(SetRequest req) {
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getEditContextCommand(GetEditContextRequest req) {
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getDestroyElementCommand(DestroyElementRequest req) {
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getDestroyReferenceCommand(DestroyReferenceRequest req) {
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getDuplicateCommand(DuplicateElementsRequest req) {
- return null;
- }
-
- /**
- * @generated
- */
- protected Command getMoveCommand(MoveRequest req) {
- EObject targetCEObject = req.getTargetContainer();
- if (targetCEObject != null) {
- IElementEditService provider = ElementEditServiceUtils.getCommandProvider(targetCEObject);
- if (provider != null) {
- ICommand moveCommand = provider.getEditCommand(req);
- if (moveCommand != null) {
- return new ICommandProxy(moveCommand);
- }
- }
- return UnexecutableCommand.INSTANCE;
- } else {
- return getGEFWrapper(new MoveElementsCommand(req));
- }
-
- }
-
- /**
- * @generated
- */
- protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
- return UnexecutableCommand.INSTANCE;
- }
-
- /**
- * @generated
- */
- protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
- return UnexecutableCommand.INSTANCE;
- }
-
- /**
- * @generated
- */
- protected final Command getGEFWrapper(ICommand cmd) {
- return new ICommandProxy(cmd);
- }
-
- /**
- * Returns editing domain from the host edit part.
- *
- * @generated
- */
- protected TransactionalEditingDomain getEditingDomain() {
- return ((IGraphicalEditPart) getHost()).getEditingDomain();
- }
-
- /**
- * Clean all shortcuts to the host element from the same diagram
- *
- * @generated
- */
- protected void addDestroyShortcutsCommand(ICompositeCommand cmd, View view) {
- assert view.getEAnnotation("Shortcut") == null; //$NON-NLS-1$
- for (Iterator<?> it = view.getDiagram().getChildren().iterator(); it.hasNext();) {
- View nextView = (View) it.next();
- if (nextView.getEAnnotation("Shortcut") == null || !nextView.isSetElement() || nextView.getElement() != view.getElement()) { //$NON-NLS-1$
- continue;
- }
- cmd.add(new DeleteCommand(getEditingDomain(), nextView));
- }
- }
-
- /**
- * @generated
- */
- public static LinkConstraints getLinkConstraints() {
- LinkConstraints cached = UMLDiagramEditorPlugin.getInstance().getLinkConstraints();
- if (cached == null) {
- UMLDiagramEditorPlugin.getInstance().setLinkConstraints(cached = new LinkConstraints());
- }
- return cached;
- }
-
- /**
- * @generated
- */
- public static class LinkConstraints {
-
- /**
- * @generated
- */
- public LinkConstraints() { // use static method #getLinkConstraints() to access instance
- }
-
- /**
- * @generated
- */
- public boolean canCreateLink_4005() {
- return canExistLink_4005();
- }
-
- /**
- * @generated
- */
- public boolean canCreateCommentAnnotatedElement_4008(Comment source, Element target) {
- if (source != null) {
- if (source.getAnnotatedElements()
- .contains(target)) {
- return false;
- }
- }
-
- return canExistCommentAnnotatedElement_4008(
- source, target);
- }
-
- /**
- * @generated
- */
- public boolean canCreateConstraintConstrainedElement_4009(Constraint source, Element target) {
- if (source != null) {
- if (source.getConstrainedElements()
- .contains(target)) {
- return false;
- }
- }
-
- return canExistConstraintConstrainedElement_4009(
- source, target);
- }
-
- /**
- * @generated
- */
- public boolean canCreateDeployment_4001(DeploymentTarget container, NamedElement source, NamedElement target) {
- return canExistDeployment_4001(
- container, null, source, target);
- }
-
- /**
- * @generated
- */
- public boolean canCreateManifestation_4002(Artifact container, NamedElement source, NamedElement target) {
- return canExistManifestation_4002(
- container, null, source, target);
- }
-
- /**
- * @generated
- */
- public boolean canCreateGeneralization_4003(Classifier container, Classifier source, Classifier target) {
- return canExistGeneralization_4003(
- container, null, source, target);
- }
-
- /**
- * @generated
- */
- public boolean canCreateDependency_4004(Package container, NamedElement source, NamedElement target) {
- return canExistDependency_4004(
- container, null, source, target);
- }
-
- /**
- * @generated
- */
- public boolean canCreateDependency_4010(Package container, NamedElement source, NamedElement target) {
- return canExistDependency_4010(
- container, null, source, target);
- }
-
- /**
- * @generated
- */
- public boolean canExistLink_4005() {
- return true;
- }
-
- /**
- * @generated
- */
- public boolean canExistCommentAnnotatedElement_4008(Comment source, Element target) {
- return true;
- }
-
- /**
- * @generated
- */
- public boolean canExistConstraintConstrainedElement_4009(Constraint source, Element target) {
- return true;
- }
-
- /**
- * @generated
- */
- public boolean canExistDeployment_4001(DeploymentTarget container, Deployment linkInstance, NamedElement source, NamedElement target) {
- return true;
- }
-
- /**
- * @generated
- */
- public boolean canExistManifestation_4002(Artifact container, Manifestation linkInstance, NamedElement source, NamedElement target) {
- return true;
- }
-
- /**
- * @generated
- */
- public boolean canExistGeneralization_4003(Classifier container, Generalization linkInstance, Classifier source, Classifier target) {
- return true;
- }
-
- /**
- * @generated
- */
- public boolean canExistDependency_4004(Package container, Dependency linkInstance, NamedElement source, NamedElement target) {
- return true;
- }
-
- /**
- * @generated
- */
- public boolean canExistDependency_4010(Package container, Dependency linkInstance, NamedElement source, NamedElement target) {
- return true;
- }
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
+
+import java.util.Iterator;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gef.requests.ReconnectRequest;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.common.core.command.ICompositeCommand;
+import org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand;
+import org.eclipse.gmf.runtime.diagram.ui.commands.CommandProxy;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy;
+import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.commands.MoveElementsCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DuplicateElementsRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.GetEditContextRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientReferenceRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.edit.helpers.GeneratedEditHelperBase;
+import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
+import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.uml2.uml.Artifact;
+import org.eclipse.uml2.uml.Classifier;
+import org.eclipse.uml2.uml.Comment;
+import org.eclipse.uml2.uml.Constraint;
+import org.eclipse.uml2.uml.Dependency;
+import org.eclipse.uml2.uml.Deployment;
+import org.eclipse.uml2.uml.DeploymentTarget;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.Generalization;
+import org.eclipse.uml2.uml.Manifestation;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Package;
+
+/**
+ * @generated
+ */
+public class UMLBaseItemSemanticEditPolicy extends SemanticEditPolicy {
+
+ /**
+ * Extended request data key to hold editpart visual id.
+ *
+ * @generated
+ */
+ public static final String VISUAL_ID_KEY = "visual_id"; //$NON-NLS-1$
+
+ /**
+ * Extended request data key to hold the edge view during a reconnect request.
+ *
+ * @generated
+ */
+ public static final String GRAPHICAL_RECONNECTED_EDGE = "graphical_edge"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final IElementType myElementType;
+
+ /**
+ * @generated
+ */
+ protected UMLBaseItemSemanticEditPolicy(IElementType elementType) {
+ myElementType = elementType;
+ }
+
+ /**
+ * Extended request data key to hold editpart visual id.
+ * Add visual id of edited editpart to extended data of the request
+ * so command switch can decide what kind of diagram element is being edited.
+ * It is done in those cases when it's not possible to deduce diagram
+ * element kind from domain element.
+ * Add the reoriented view to the request extended data so that the view
+ * currently edited can be distinguished from other views of the same element
+ * and these latter possibly removed if they become inconsistent after reconnect
+ *
+ * @generated
+ */
+ @Override
+ @SuppressWarnings("unchecked")
+ public Command getCommand(Request request) {
+ if (request instanceof ReconnectRequest) {
+ Object view = ((ReconnectRequest) request).getConnectionEditPart().getModel();
+ if (view instanceof View) {
+ Integer id = new Integer(UMLVisualIDRegistry.getVisualID((View) view));
+ request.getExtendedData().put(VISUAL_ID_KEY, id);
+ request.getExtendedData().put(GRAPHICAL_RECONNECTED_EDGE, view);
+ }
+ }
+ return super.getCommand(request);
+ }
+
+ /**
+ * Returns visual id from request parameters.
+ *
+ * @generated
+ */
+ protected int getVisualID(IEditCommandRequest request) {
+ Object id = request.getParameter(VISUAL_ID_KEY);
+ return id instanceof Integer ? ((Integer) id).intValue() : -1;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected Command getSemanticCommand(IEditCommandRequest request) {
+ IEditCommandRequest completedRequest = completeRequest(request);
+ Command semanticCommand = getSemanticCommandSwitch(completedRequest);
+ semanticCommand = getEditHelperCommand(completedRequest, semanticCommand);
+ if (completedRequest instanceof DestroyRequest) {
+ DestroyRequest destroyRequest = (DestroyRequest) completedRequest;
+ return shouldProceed(destroyRequest) ? addDeleteViewCommand(semanticCommand, destroyRequest) : null;
+ }
+ return semanticCommand;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command addDeleteViewCommand(Command mainCommand, DestroyRequest completedRequest) {
+ Command deleteViewCommand = getGEFWrapper(new DeleteCommand(getEditingDomain(), (View) getHost().getModel()));
+ return mainCommand == null ? deleteViewCommand : mainCommand.chain(deleteViewCommand);
+ }
+
+ /**
+ * @generated
+ */
+ private Command getEditHelperCommand(IEditCommandRequest request, Command editPolicyCommand) {
+ if (editPolicyCommand != null) {
+ ICommand command = editPolicyCommand instanceof ICommandProxy ? ((ICommandProxy) editPolicyCommand).getICommand() : new CommandProxy(editPolicyCommand);
+ request.setParameter(GeneratedEditHelperBase.EDIT_POLICY_COMMAND, command);
+ }
+ IElementType requestContextElementType = getContextElementType(request);
+ request.setParameter(GeneratedEditHelperBase.CONTEXT_ELEMENT_TYPE, requestContextElementType);
+ ICommand command = requestContextElementType.getEditCommand(request);
+ request.setParameter(GeneratedEditHelperBase.EDIT_POLICY_COMMAND, null);
+ request.setParameter(GeneratedEditHelperBase.CONTEXT_ELEMENT_TYPE, null);
+ if (command != null) {
+ if (!(command instanceof CompositeTransactionalCommand)) {
+ command = new CompositeTransactionalCommand(getEditingDomain(), command.getLabel()).compose(command);
+ }
+ return new ICommandProxy(command);
+ }
+ return editPolicyCommand;
+ }
+
+ /**
+ * @generated
+ */
+ protected IElementType getContextElementType(IEditCommandRequest request) {
+ IElementType requestContextElementType = UMLElementTypes.getElementType(getVisualID(request));
+ return requestContextElementType != null ? requestContextElementType : myElementType;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getSemanticCommandSwitch(IEditCommandRequest req) {
+ if (req instanceof CreateRelationshipRequest) {
+ return getCreateRelationshipCommand((CreateRelationshipRequest) req);
+ } else if (req instanceof CreateElementRequest) {
+ return getCreateCommand((CreateElementRequest) req);
+ } else if (req instanceof ConfigureRequest) {
+ return getConfigureCommand((ConfigureRequest) req);
+ } else if (req instanceof DestroyElementRequest) {
+ return getDestroyElementCommand((DestroyElementRequest) req);
+ } else if (req instanceof DestroyReferenceRequest) {
+ return getDestroyReferenceCommand((DestroyReferenceRequest) req);
+ } else if (req instanceof DuplicateElementsRequest) {
+ return getDuplicateCommand((DuplicateElementsRequest) req);
+ } else if (req instanceof GetEditContextRequest) {
+ return getEditContextCommand((GetEditContextRequest) req);
+ } else if (req instanceof MoveRequest) {
+ return getMoveCommand((MoveRequest) req);
+ } else if (req instanceof ReorientReferenceRelationshipRequest) {
+ return getReorientReferenceRelationshipCommand((ReorientReferenceRelationshipRequest) req);
+ } else if (req instanceof ReorientRelationshipRequest) {
+ return getReorientRelationshipCommand((ReorientRelationshipRequest) req);
+ } else if (req instanceof SetRequest) {
+ return getSetCommand((SetRequest) req);
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getConfigureCommand(ConfigureRequest req) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getCreateCommand(CreateElementRequest req) {
+ IElementType requestElementType = req.getElementType();
+ if (requestElementType instanceof IElementType) {
+ IElementEditService commandProvider = ElementEditServiceUtils.getCommandProvider(req.getContainer());
+ if (commandProvider != null) {
+ ICommand command = commandProvider.getEditCommand(req);
+ if (command != null && command.canExecute()) {
+ return new ICommandProxy(command);
+ }
+ }
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getExtendedTypeCreationCommand(CreateElementRequest request, IElementType requestElementType) {
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(request.getContainer());
+ if (provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve create command from the Element Edit service
+ ICommand createGMFCommand = provider.getEditCommand(request);
+ return getGEFWrapper(createGMFCommand);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getExtendedStartCreateRelationshipCommand(CreateElementRequest request, IElementType requestElementType) {
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(requestElementType);
+ if (provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve create command from the Element Edit service
+ ICommand createGMFCommand = provider.getEditCommand(request);
+ return getGEFWrapper(createGMFCommand);
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getExtendedCompleteCreateRelationshipCommand(CreateElementRequest request, IElementType requestElementType) {
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(requestElementType);
+ if (provider == null) {
+ return UnexecutableCommand.INSTANCE;
+ }
+ // Retrieve create command from the Element Edit service
+ ICommand createGMFCommand = provider.getEditCommand(request);
+ return getGEFWrapper(createGMFCommand);
+ }
+
+ // RS: End of add code for extended types
+ /**
+ * @generated
+ */
+ protected Command getSetCommand(SetRequest req) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getEditContextCommand(GetEditContextRequest req) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyElementCommand(DestroyElementRequest req) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDestroyReferenceCommand(DestroyReferenceRequest req) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getDuplicateCommand(DuplicateElementsRequest req) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getMoveCommand(MoveRequest req) {
+ EObject targetCEObject = req.getTargetContainer();
+ if (targetCEObject != null) {
+ IElementEditService provider = ElementEditServiceUtils.getCommandProvider(targetCEObject);
+ if (provider != null) {
+ ICommand moveCommand = provider.getEditCommand(req);
+ if (moveCommand != null) {
+ return new ICommandProxy(moveCommand);
+ }
+ }
+ return UnexecutableCommand.INSTANCE;
+ } else {
+ return getGEFWrapper(new MoveElementsCommand(req));
+ }
+
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getReorientReferenceRelationshipCommand(ReorientReferenceRelationshipRequest req) {
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) {
+ return UnexecutableCommand.INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ protected final Command getGEFWrapper(ICommand cmd) {
+ return (cmd == null) ? UnexecutableCommand.INSTANCE : new ICommandProxy(cmd);
+ }
+
+ /**
+ * Returns editing domain from the host edit part.
+ *
+ * @generated
+ */
+ protected TransactionalEditingDomain getEditingDomain() {
+ return ((IGraphicalEditPart) getHost()).getEditingDomain();
+ }
+
+ /**
+ * Clean all shortcuts to the host element from the same diagram
+ *
+ * @generated
+ */
+ protected void addDestroyShortcutsCommand(ICompositeCommand cmd, View view) {
+ assert view.getEAnnotation("Shortcut") == null; //$NON-NLS-1$
+ for (Iterator<?> it = view.getDiagram().getChildren().iterator(); it.hasNext();) {
+ View nextView = (View) it.next();
+ if (nextView.getEAnnotation("Shortcut") == null || !nextView.isSetElement() || nextView.getElement() != view.getElement()) { //$NON-NLS-1$
+ continue;
+ }
+ cmd.add(new DeleteCommand(getEditingDomain(), nextView));
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public static LinkConstraints getLinkConstraints() {
+ LinkConstraints cached = UMLDiagramEditorPlugin.getInstance().getLinkConstraints();
+ if (cached == null) {
+ UMLDiagramEditorPlugin.getInstance().setLinkConstraints(cached = new LinkConstraints());
+ }
+ return cached;
+ }
+
+ /**
+ * @generated
+ */
+ public static class LinkConstraints {
+
+ /**
+ * @generated
+ */
+ public LinkConstraints() { // use static method #getLinkConstraints() to access instance
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateLink_4005() {
+ return canExistLink_4005();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateCommentAnnotatedElement_4008(Comment source, Element target) {
+ if (source != null) {
+ if (source.getAnnotatedElements()
+ .contains(target)) {
+ return false;
+ }
+ }
+
+ return canExistCommentAnnotatedElement_4008(
+ source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateConstraintConstrainedElement_4009(Constraint source, Element target) {
+ if (source != null) {
+ if (source.getConstrainedElements()
+ .contains(target)) {
+ return false;
+ }
+ }
+
+ return canExistConstraintConstrainedElement_4009(
+ source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateDeployment_4001(DeploymentTarget container, NamedElement source, NamedElement target) {
+ return canExistDeployment_4001(
+ container, null, source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateManifestation_4002(Artifact container, NamedElement source, NamedElement target) {
+ return canExistManifestation_4002(
+ container, null, source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateGeneralization_4003(Classifier container, Classifier source, Classifier target) {
+ return canExistGeneralization_4003(
+ container, null, source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateDependency_4004(Package container, NamedElement source, NamedElement target) {
+ return canExistDependency_4004(
+ container, null, source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canCreateDependency_4010(Package container, NamedElement source, NamedElement target) {
+ return canExistDependency_4010(
+ container, null, source, target);
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistLink_4005() {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistCommentAnnotatedElement_4008(Comment source, Element target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistConstraintConstrainedElement_4009(Constraint source, Element target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistDeployment_4001(DeploymentTarget container, Deployment linkInstance, NamedElement source, NamedElement target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistManifestation_4002(Artifact container, Manifestation linkInstance, NamedElement source, NamedElement target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistGeneralization_4003(Classifier container, Generalization linkInstance, Classifier source, Classifier target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistDependency_4004(Package container, Dependency linkInstance, NamedElement source, NamedElement target) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean canExistDependency_4010(Package container, Dependency linkInstance, NamedElement source, NamedElement target) {
+ return true;
+ }
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextNonResizableEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextNonResizableEditPolicy.java
index b90a4803e34..4b86a21db87 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextNonResizableEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextNonResizableEditPolicy.java
@@ -1,244 +1,243 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.draw2d.ColorConstants;
-import org.eclipse.draw2d.Figure;
-import org.eclipse.draw2d.FigureListener;
-import org.eclipse.draw2d.Graphics;
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.RectangleFigure;
-import org.eclipse.draw2d.geometry.Rectangle;
-import org.eclipse.gef.GraphicalEditPart;
-import org.eclipse.gef.handles.MoveHandle;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.NonResizableEditPolicyEx;
-import org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.tooling.runtime.edit.policies.labels.IRefreshableFeedbackEditPolicy;
-
-/**
- * @generated
- */
-public class UMLTextNonResizableEditPolicy extends NonResizableEditPolicyEx implements IRefreshableFeedbackEditPolicy {
-
- /**
- * @generated
- */
- private IFigure selectionFeedbackFigure;
-
- /**
- * @generated
- */
- private IFigure focusFeedbackFigure;
-
- /**
- * @generated
- */
- private FigureListener hostPositionListener;
-
- /**
- * @generated
- */
- @Override
- protected void showPrimarySelection() {
- if (getHostFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getHostFigure()).setSelected(true);
- ((WrappingLabel) getHostFigure()).setFocus(true);
- } else {
- showSelection();
- showFocus();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void showSelection() {
- if (getHostFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getHostFigure()).setSelected(true);
- ((WrappingLabel) getHostFigure()).setFocus(false);
- } else {
- hideSelection();
- addFeedback(selectionFeedbackFigure = createSelectionFeedbackFigure());
- getHostFigure().addFigureListener(getHostPositionListener());
- refreshSelectionFeedback();
- hideFocus();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void hideSelection() {
- if (getHostFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getHostFigure()).setSelected(false);
- ((WrappingLabel) getHostFigure()).setFocus(false);
- } else {
- if (selectionFeedbackFigure != null) {
- removeFeedback(selectionFeedbackFigure);
- getHostFigure().removeFigureListener(getHostPositionListener());
- selectionFeedbackFigure = null;
- }
- hideFocus();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void showFocus() {
- if (getHostFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getHostFigure()).setFocus(true);
- } else {
- hideFocus();
- addFeedback(focusFeedbackFigure = createFocusFeedbackFigure());
- refreshFocusFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void hideFocus() {
- if (getHostFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getHostFigure()).setFocus(false);
- } else {
- if (focusFeedbackFigure != null) {
- removeFeedback(focusFeedbackFigure);
- focusFeedbackFigure = null;
- }
- }
- }
-
- /**
- * @generated
- */
- protected Rectangle getFeedbackBounds() {
- Rectangle bounds;
- if (getHostFigure() instanceof Label) {
- bounds = ((Label) getHostFigure()).getTextBounds();
- bounds.intersect(getHostFigure().getBounds());
- } else {
- bounds = getHostFigure().getBounds().getCopy();
- }
- getHostFigure().getParent().translateToAbsolute(bounds);
- getFeedbackLayer().translateToRelative(bounds);
- return bounds;
- }
-
- /**
- * @generated
- */
- protected IFigure createSelectionFeedbackFigure() {
- if (getHostFigure() instanceof Label) {
- Label feedbackFigure = new Label();
- feedbackFigure.setOpaque(true);
- feedbackFigure.setBackgroundColor(ColorConstants.menuBackgroundSelected);
- feedbackFigure.setForegroundColor(ColorConstants.menuForegroundSelected);
- return feedbackFigure;
- } else {
- RectangleFigure feedbackFigure = new RectangleFigure();
- feedbackFigure.setFill(false);
- return feedbackFigure;
- }
- }
-
- /**
- * @generated
- */
- protected IFigure createFocusFeedbackFigure() {
- return new Figure() {
-
- @Override
- protected void paintFigure(Graphics graphics) {
- graphics.drawFocus(getBounds().getResized(-1, -1));
- }
- };
- }
-
- /**
- * @generated
- */
- protected void updateLabel(Label target) {
- Label source = (Label) getHostFigure();
- target.setText(source.getText());
- target.setTextAlignment(source.getTextAlignment());
- target.setFont(source.getFont());
- }
-
- /**
- * @generated
- */
- protected void refreshSelectionFeedback() {
- if (selectionFeedbackFigure != null) {
- if (selectionFeedbackFigure instanceof Label) {
- updateLabel((Label) selectionFeedbackFigure);
- selectionFeedbackFigure.setBounds(getFeedbackBounds());
- } else {
- selectionFeedbackFigure.setBounds(getFeedbackBounds().expand(5, 5));
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshFocusFeedback() {
- if (focusFeedbackFigure != null) {
- focusFeedbackFigure.setBounds(getFeedbackBounds());
- }
- }
-
- /**
- * @generated
- */
- @Override
- public void refreshFeedback() {
- refreshSelectionFeedback();
- refreshFocusFeedback();
- }
-
- /**
- * @generated
- */
- private FigureListener getHostPositionListener() {
- if (hostPositionListener == null) {
- hostPositionListener = new FigureListener() {
- @Override
- public void figureMoved(IFigure source) {
- refreshFeedback();
- }
- };
- }
- return hostPositionListener;
- }
-
- /**
- * @generated
- */
- @Override
- protected List<?> createSelectionHandles() {
- MoveHandle moveHandle =
- new MoveHandle((GraphicalEditPart) getHost());
- moveHandle.setBorder(null);
- moveHandle.setDragTracker(new DragEditPartsTrackerEx(getHost()));
- return Collections.singletonList(moveHandle);
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.Figure;
+import org.eclipse.draw2d.FigureListener;
+import org.eclipse.draw2d.Graphics;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gef.handles.MoveHandle;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.NonResizableEditPolicyEx;
+import org.eclipse.gmf.runtime.diagram.ui.tools.DragEditPartsTrackerEx;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.tooling.runtime.edit.policies.labels.IRefreshableFeedbackEditPolicy;
+
+/**
+ * @generated
+ */
+public class UMLTextNonResizableEditPolicy extends NonResizableEditPolicyEx implements IRefreshableFeedbackEditPolicy {
+
+ /**
+ * @generated
+ */
+ private IFigure selectionFeedbackFigure;
+
+ /**
+ * @generated
+ */
+ private IFigure focusFeedbackFigure;
+
+ /**
+ * @generated
+ */
+ private FigureListener hostPositionListener;
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void showPrimarySelection() {
+ if (getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getHostFigure()).setSelected(true);
+ ((WrappingLabel) getHostFigure()).setFocus(true);
+ } else {
+ showSelection();
+ showFocus();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void showSelection() {
+ if (getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getHostFigure()).setSelected(true);
+ ((WrappingLabel) getHostFigure()).setFocus(false);
+ } else {
+ hideSelection();
+ addFeedback(selectionFeedbackFigure = createSelectionFeedbackFigure());
+ getHostFigure().addFigureListener(getHostPositionListener());
+ refreshSelectionFeedback();
+ hideFocus();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void hideSelection() {
+ if (getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getHostFigure()).setSelected(false);
+ ((WrappingLabel) getHostFigure()).setFocus(false);
+ } else {
+ if (selectionFeedbackFigure != null) {
+ removeFeedback(selectionFeedbackFigure);
+ getHostFigure().removeFigureListener(getHostPositionListener());
+ selectionFeedbackFigure = null;
+ }
+ hideFocus();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void showFocus() {
+ if (getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getHostFigure()).setFocus(true);
+ } else {
+ hideFocus();
+ addFeedback(focusFeedbackFigure = createFocusFeedbackFigure());
+ refreshFocusFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void hideFocus() {
+ if (getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getHostFigure()).setFocus(false);
+ } else {
+ if (focusFeedbackFigure != null) {
+ removeFeedback(focusFeedbackFigure);
+ focusFeedbackFigure = null;
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Rectangle getFeedbackBounds() {
+ Rectangle bounds;
+ if (getHostFigure() instanceof Label) {
+ bounds = ((Label) getHostFigure()).getTextBounds();
+ bounds.intersect(getHostFigure().getBounds());
+ } else {
+ bounds = getHostFigure().getBounds().getCopy();
+ }
+ getHostFigure().getParent().translateToAbsolute(bounds);
+ getFeedbackLayer().translateToRelative(bounds);
+ return bounds;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createSelectionFeedbackFigure() {
+ if (getHostFigure() instanceof Label) {
+ Label feedbackFigure = new Label();
+ feedbackFigure.setOpaque(true);
+ feedbackFigure.setBackgroundColor(ColorConstants.menuBackgroundSelected);
+ feedbackFigure.setForegroundColor(ColorConstants.menuForegroundSelected);
+ return feedbackFigure;
+ } else {
+ RectangleFigure feedbackFigure = new RectangleFigure();
+ feedbackFigure.setFill(false);
+ return feedbackFigure;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFocusFeedbackFigure() {
+ return new Figure() {
+
+ @Override
+ protected void paintFigure(Graphics graphics) {
+ graphics.drawFocus(getBounds().getResized(-1, -1));
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ protected void updateLabel(Label target) {
+ Label source = (Label) getHostFigure();
+ target.setText(source.getText());
+ target.setTextAlignment(source.getTextAlignment());
+ target.setFont(source.getFont());
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshSelectionFeedback() {
+ if (selectionFeedbackFigure != null) {
+ if (selectionFeedbackFigure instanceof Label) {
+ updateLabel((Label) selectionFeedbackFigure);
+ selectionFeedbackFigure.setBounds(getFeedbackBounds());
+ } else {
+ selectionFeedbackFigure.setBounds(getFeedbackBounds().expand(5, 5));
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFocusFeedback() {
+ if (focusFeedbackFigure != null) {
+ focusFeedbackFigure.setBounds(getFeedbackBounds());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void refreshFeedback() {
+ refreshSelectionFeedback();
+ refreshFocusFeedback();
+ }
+
+ /**
+ * @generated
+ */
+ private FigureListener getHostPositionListener() {
+ if (hostPositionListener == null) {
+ hostPositionListener = new FigureListener() {
+ @Override
+ public void figureMoved(IFigure source) {
+ refreshFeedback();
+ }
+ };
+ }
+ return hostPositionListener;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected List<?> createSelectionHandles() {
+ MoveHandle moveHandle = new MoveHandle((GraphicalEditPart) getHost());
+ moveHandle.setBorder(null);
+ moveHandle.setDragTracker(new DragEditPartsTrackerEx(getHost()));
+ return Collections.singletonList(moveHandle);
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextSelectionEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextSelectionEditPolicy.java
index f33b8ff9e16..ee6174ff3d8 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextSelectionEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/edit/policies/UMLTextSelectionEditPolicy.java
@@ -1,226 +1,226 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
-
-import org.eclipse.draw2d.ColorConstants;
-import org.eclipse.draw2d.Figure;
-import org.eclipse.draw2d.FigureListener;
-import org.eclipse.draw2d.Graphics;
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.Label;
-import org.eclipse.draw2d.RectangleFigure;
-import org.eclipse.draw2d.geometry.Rectangle;
-import org.eclipse.gef.editpolicies.SelectionEditPolicy;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.gmf.tooling.runtime.edit.policies.labels.IRefreshableFeedbackEditPolicy;
-
-/**
- * @generated
- */
-public class UMLTextSelectionEditPolicy extends SelectionEditPolicy implements IRefreshableFeedbackEditPolicy {
-
- /**
- * @generated
- */
- private IFigure selectionFeedbackFigure;
-
- /**
- * @generated
- */
- private IFigure focusFeedbackFigure;
-
- /**
- * @generated
- */
- private FigureListener hostPositionListener;
-
- /**
- * @generated
- */
- @Override
- protected void showPrimarySelection() {
- if (getHostFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getHostFigure()).setSelected(true);
- ((WrappingLabel) getHostFigure()).setFocus(true);
- } else {
- showSelection();
- showFocus();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void showSelection() {
- if (getHostFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getHostFigure()).setSelected(true);
- ((WrappingLabel) getHostFigure()).setFocus(false);
- } else {
- hideSelection();
- addFeedback(selectionFeedbackFigure = createSelectionFeedbackFigure());
- getHostFigure().addFigureListener(getHostPositionListener());
- refreshSelectionFeedback();
- hideFocus();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void hideSelection() {
- if (getHostFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getHostFigure()).setSelected(false);
- ((WrappingLabel) getHostFigure()).setFocus(false);
- } else {
- if (selectionFeedbackFigure != null) {
- removeFeedback(selectionFeedbackFigure);
- getHostFigure().removeFigureListener(getHostPositionListener());
- selectionFeedbackFigure = null;
- }
- hideFocus();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void showFocus() {
- if (getHostFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getHostFigure()).setFocus(true);
- } else {
- hideFocus();
- addFeedback(focusFeedbackFigure = createFocusFeedbackFigure());
- refreshFocusFeedback();
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void hideFocus() {
- if (getHostFigure() instanceof WrappingLabel) {
- ((WrappingLabel) getHostFigure()).setFocus(false);
- } else {
- if (focusFeedbackFigure != null) {
- removeFeedback(focusFeedbackFigure);
- focusFeedbackFigure = null;
- }
- }
- }
-
- /**
- * @generated
- */
- protected Rectangle getFeedbackBounds() {
- Rectangle bounds;
- if (getHostFigure() instanceof Label) {
- bounds = ((Label) getHostFigure()).getTextBounds();
- bounds.intersect(getHostFigure().getBounds());
- } else {
- bounds = getHostFigure().getBounds().getCopy();
- }
- getHostFigure().getParent().translateToAbsolute(bounds);
- getFeedbackLayer().translateToRelative(bounds);
- return bounds;
- }
-
- /**
- * @generated
- */
- protected IFigure createSelectionFeedbackFigure() {
- if (getHostFigure() instanceof Label) {
- Label feedbackFigure = new Label();
- feedbackFigure.setOpaque(true);
- feedbackFigure.setBackgroundColor(ColorConstants.menuBackgroundSelected);
- feedbackFigure.setForegroundColor(ColorConstants.menuForegroundSelected);
- return feedbackFigure;
- } else {
- RectangleFigure feedbackFigure = new RectangleFigure();
- feedbackFigure.setFill(false);
- return feedbackFigure;
- }
- }
-
- /**
- * @generated
- */
- protected IFigure createFocusFeedbackFigure() {
- return new Figure() {
-
- @Override
- protected void paintFigure(Graphics graphics) {
- graphics.drawFocus(getBounds().getResized(-1, -1));
- }
- };
- }
-
- /**
- * @generated
- */
- protected void updateLabel(Label target) {
- Label source = (Label) getHostFigure();
- target.setText(source.getText());
- target.setTextAlignment(source.getTextAlignment());
- target.setFont(source.getFont());
- }
-
- /**
- * @generated
- */
- protected void refreshSelectionFeedback() {
- if (selectionFeedbackFigure != null) {
- if (selectionFeedbackFigure instanceof Label) {
- updateLabel((Label) selectionFeedbackFigure);
- selectionFeedbackFigure.setBounds(getFeedbackBounds());
- } else {
- selectionFeedbackFigure.setBounds(getFeedbackBounds().expand(5, 5));
- }
- }
- }
-
- /**
- * @generated
- */
- protected void refreshFocusFeedback() {
- if (focusFeedbackFigure != null) {
- focusFeedbackFigure.setBounds(getFeedbackBounds());
- }
- }
-
- /**
- * @generated
- */
- @Override
- public void refreshFeedback() {
- refreshSelectionFeedback();
- refreshFocusFeedback();
- }
-
- /**
- * @generated
- */
- private FigureListener getHostPositionListener() {
- if (hostPositionListener == null) {
- hostPositionListener = new FigureListener() {
- @Override
- public void figureMoved(IFigure source) {
- refreshFeedback();
- }
- };
- }
- return hostPositionListener;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.edit.policies;
+
+import org.eclipse.draw2d.ColorConstants;
+import org.eclipse.draw2d.Figure;
+import org.eclipse.draw2d.FigureListener;
+import org.eclipse.draw2d.Graphics;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.Label;
+import org.eclipse.draw2d.RectangleFigure;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.gef.editpolicies.SelectionEditPolicy;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.gmf.tooling.runtime.edit.policies.labels.IRefreshableFeedbackEditPolicy;
+
+/**
+ * @generated
+ */
+public class UMLTextSelectionEditPolicy extends SelectionEditPolicy implements IRefreshableFeedbackEditPolicy {
+
+ /**
+ * @generated
+ */
+ private IFigure selectionFeedbackFigure;
+
+ /**
+ * @generated
+ */
+ private IFigure focusFeedbackFigure;
+
+ /**
+ * @generated
+ */
+ private FigureListener hostPositionListener;
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void showPrimarySelection() {
+ if (getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getHostFigure()).setSelected(true);
+ ((WrappingLabel) getHostFigure()).setFocus(true);
+ } else {
+ showSelection();
+ showFocus();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void showSelection() {
+ if (getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getHostFigure()).setSelected(true);
+ ((WrappingLabel) getHostFigure()).setFocus(false);
+ } else {
+ hideSelection();
+ addFeedback(selectionFeedbackFigure = createSelectionFeedbackFigure());
+ getHostFigure().addFigureListener(getHostPositionListener());
+ refreshSelectionFeedback();
+ hideFocus();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void hideSelection() {
+ if (getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getHostFigure()).setSelected(false);
+ ((WrappingLabel) getHostFigure()).setFocus(false);
+ } else {
+ if (selectionFeedbackFigure != null) {
+ removeFeedback(selectionFeedbackFigure);
+ getHostFigure().removeFigureListener(getHostPositionListener());
+ selectionFeedbackFigure = null;
+ }
+ hideFocus();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void showFocus() {
+ if (getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getHostFigure()).setFocus(true);
+ } else {
+ hideFocus();
+ addFeedback(focusFeedbackFigure = createFocusFeedbackFigure());
+ refreshFocusFeedback();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void hideFocus() {
+ if (getHostFigure() instanceof WrappingLabel) {
+ ((WrappingLabel) getHostFigure()).setFocus(false);
+ } else {
+ if (focusFeedbackFigure != null) {
+ removeFeedback(focusFeedbackFigure);
+ focusFeedbackFigure = null;
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Rectangle getFeedbackBounds() {
+ Rectangle bounds;
+ if (getHostFigure() instanceof Label) {
+ bounds = ((Label) getHostFigure()).getTextBounds();
+ bounds.intersect(getHostFigure().getBounds());
+ } else {
+ bounds = getHostFigure().getBounds().getCopy();
+ }
+ getHostFigure().getParent().translateToAbsolute(bounds);
+ getFeedbackLayer().translateToRelative(bounds);
+ return bounds;
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createSelectionFeedbackFigure() {
+ if (getHostFigure() instanceof Label) {
+ Label feedbackFigure = new Label();
+ feedbackFigure.setOpaque(true);
+ feedbackFigure.setBackgroundColor(ColorConstants.menuBackgroundSelected);
+ feedbackFigure.setForegroundColor(ColorConstants.menuForegroundSelected);
+ return feedbackFigure;
+ } else {
+ RectangleFigure feedbackFigure = new RectangleFigure();
+ feedbackFigure.setFill(false);
+ return feedbackFigure;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected IFigure createFocusFeedbackFigure() {
+ return new Figure() {
+
+ @Override
+ protected void paintFigure(Graphics graphics) {
+ graphics.drawFocus(getBounds().getResized(-1, -1));
+ }
+ };
+ }
+
+ /**
+ * @generated
+ */
+ protected void updateLabel(Label target) {
+ Label source = (Label) getHostFigure();
+ target.setText(source.getText());
+ target.setTextAlignment(source.getTextAlignment());
+ target.setFont(source.getFont());
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshSelectionFeedback() {
+ if (selectionFeedbackFigure != null) {
+ if (selectionFeedbackFigure instanceof Label) {
+ updateLabel((Label) selectionFeedbackFigure);
+ selectionFeedbackFigure.setBounds(getFeedbackBounds());
+ } else {
+ selectionFeedbackFigure.setBounds(getFeedbackBounds().expand(5, 5));
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void refreshFocusFeedback() {
+ if (focusFeedbackFigure != null) {
+ focusFeedbackFigure.setBounds(getFeedbackBounds());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void refreshFeedback() {
+ refreshSelectionFeedback();
+ refreshFocusFeedback();
+ }
+
+ /**
+ * @generated
+ */
+ private FigureListener getHostPositionListener() {
+ if (hostPositionListener == null) {
+ hostPositionListener = new FigureListener() {
+ @Override
+ public void figureMoved(IFigure source) {
+ refreshFeedback();
+ }
+ };
+ }
+ return hostPositionListener;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/expressions/UMLAbstractExpression.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/expressions/UMLAbstractExpression.java
index 6613ba57157..07789f5857a 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/expressions/UMLAbstractExpression.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/expressions/UMLAbstractExpression.java
@@ -1,170 +1,170 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.expressions;
-
-import java.math.BigDecimal;
-import java.math.BigInteger;
-import java.util.Collections;
-import java.util.Map;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.emf.ecore.EClassifier;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EEnumLiteral;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
-
-/**
- * @generated
- */
-public abstract class UMLAbstractExpression {
-
- /**
- * @generated
- */
- private IStatus status = Status.OK_STATUS;
-
- /**
- * @generated
- */
- protected void setStatus(int severity, String message, Throwable throwable) {
- String pluginID = UMLDiagramEditorPlugin.ID;
- this.status = new Status(severity, pluginID, -1, (message != null) ? message : "", throwable); //$NON-NLS-1$
- if (!this.status.isOK()) {
- UMLDiagramEditorPlugin.getInstance().logError("Expression problem:" + message + "body:" + body(), throwable); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
-
- /**
- * @generated
- */
- public IStatus getStatus() {
- return status;
- }
-
- /**
- * @generated
- */
- private final String myBody;
-
- /**
- * @generated
- */
- public String body() {
- return myBody;
- }
-
- /**
- * @generated
- */
- private final EClassifier myContext;
-
- /**
- * @generated
- */
- public EClassifier context() {
- return myContext;
- }
-
- /**
- * @generated
- */
- protected UMLAbstractExpression(String body, EClassifier context) {
- myBody = body;
- myContext = context;
- }
-
- /**
- * @generated
- */
- @SuppressWarnings("rawtypes")
- protected abstract Object doEvaluate(Object context, Map env);
-
- /**
- * @generated
- */
- public Object evaluate(Object context) {
- return evaluate(context, Collections.EMPTY_MAP);
- }
-
- /**
- * @generated
- */
- @SuppressWarnings("rawtypes")
- public Object evaluate(Object context, Map env) {
- if (context().isInstance(context)) {
- try {
- return doEvaluate(context, env);
- } catch (Exception e) {
- UMLDiagramEditorPlugin.getInstance().logError("Expression evaluation failure: " + body(), e); //$NON-NLS-1$
- }
- }
- return null;
- }
-
- /**
- * Expression may return number value which is not directly compatible with feature type (e.g. Double when Integer is expected), or EEnumLiteral
- * meta-object when literal instance is expected
- *
- * @generated
- */
- public static Object performCast(Object value, EDataType targetType) {
- if (targetType instanceof EEnum) {
- if (value instanceof EEnumLiteral) {
- EEnumLiteral literal = (EEnumLiteral) value;
- return (literal.getInstance() != null) ? literal.getInstance() : literal;
- }
- }
- if (false == value instanceof Number || targetType == null || targetType.getInstanceClass() == null) {
- return value;
- }
- Class<?> targetClass = targetType.getInstanceClass();
- Number num = (Number) value;
- Class<?> valClass = value.getClass();
- Class<?> targetWrapperClass = targetClass;
- if (targetClass.isPrimitive()) {
- targetWrapperClass = EcoreUtil.wrapperClassFor(targetClass);
- }
- if (valClass.equals(targetWrapperClass)) {
- return value;
- }
- if (Number.class.isAssignableFrom(targetWrapperClass)) {
- if (targetWrapperClass.equals(Byte.class)) {
- return new Byte(num.byteValue());
- }
- if (targetWrapperClass.equals(Integer.class)) {
- return new Integer(num.intValue());
- }
- if (targetWrapperClass.equals(Short.class)) {
- return new Short(num.shortValue());
- }
- if (targetWrapperClass.equals(Long.class)) {
- return new Long(num.longValue());
- }
- if (targetWrapperClass.equals(BigInteger.class)) {
- return BigInteger.valueOf(num.longValue());
- }
- if (targetWrapperClass.equals(Float.class)) {
- return new Float(num.floatValue());
- }
- if (targetWrapperClass.equals(Double.class)) {
- return new Double(num.doubleValue());
- }
- if (targetWrapperClass.equals(BigDecimal.class)) {
- return new BigDecimal(num.doubleValue());
- }
- }
- return value;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.expressions;
+
+import java.math.BigDecimal;
+import java.math.BigInteger;
+import java.util.Collections;
+import java.util.Map;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.emf.ecore.EClassifier;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EEnumLiteral;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
+
+/**
+ * @generated
+ */
+public abstract class UMLAbstractExpression {
+
+ /**
+ * @generated
+ */
+ private IStatus status = Status.OK_STATUS;
+
+ /**
+ * @generated
+ */
+ protected void setStatus(int severity, String message, Throwable throwable) {
+ String pluginID = UMLDiagramEditorPlugin.ID;
+ this.status = new Status(severity, pluginID, -1, (message != null) ? message : "", throwable); //$NON-NLS-1$
+ if (!this.status.isOK()) {
+ UMLDiagramEditorPlugin.getInstance().logError("Expression problem:" + message + "body:" + body(), throwable); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public IStatus getStatus() {
+ return status;
+ }
+
+ /**
+ * @generated
+ */
+ private final String myBody;
+
+ /**
+ * @generated
+ */
+ public String body() {
+ return myBody;
+ }
+
+ /**
+ * @generated
+ */
+ private final EClassifier myContext;
+
+ /**
+ * @generated
+ */
+ public EClassifier context() {
+ return myContext;
+ }
+
+ /**
+ * @generated
+ */
+ protected UMLAbstractExpression(String body, EClassifier context) {
+ myBody = body;
+ myContext = context;
+ }
+
+ /**
+ * @generated
+ */
+ @SuppressWarnings("rawtypes")
+ protected abstract Object doEvaluate(Object context, Map env);
+
+ /**
+ * @generated
+ */
+ public Object evaluate(Object context) {
+ return evaluate(context, Collections.EMPTY_MAP);
+ }
+
+ /**
+ * @generated
+ */
+ @SuppressWarnings("rawtypes")
+ public Object evaluate(Object context, Map env) {
+ if (context().isInstance(context)) {
+ try {
+ return doEvaluate(context, env);
+ } catch (Exception e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Expression evaluation failure: " + body(), e); //$NON-NLS-1$
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Expression may return number value which is not directly compatible with feature type (e.g. Double when Integer is expected), or EEnumLiteral
+ * meta-object when literal instance is expected
+ *
+ * @generated
+ */
+ public static Object performCast(Object value, EDataType targetType) {
+ if (targetType instanceof EEnum) {
+ if (value instanceof EEnumLiteral) {
+ EEnumLiteral literal = (EEnumLiteral) value;
+ return (literal.getInstance() != null) ? literal.getInstance() : literal;
+ }
+ }
+ if (false == value instanceof Number || targetType == null || targetType.getInstanceClass() == null) {
+ return value;
+ }
+ Class<?> targetClass = targetType.getInstanceClass();
+ Number num = (Number) value;
+ Class<?> valClass = value.getClass();
+ Class<?> targetWrapperClass = targetClass;
+ if (targetClass.isPrimitive()) {
+ targetWrapperClass = EcoreUtil.wrapperClassFor(targetClass);
+ }
+ if (valClass.equals(targetWrapperClass)) {
+ return value;
+ }
+ if (Number.class.isAssignableFrom(targetWrapperClass)) {
+ if (targetWrapperClass.equals(Byte.class)) {
+ return new Byte(num.byteValue());
+ }
+ if (targetWrapperClass.equals(Integer.class)) {
+ return new Integer(num.intValue());
+ }
+ if (targetWrapperClass.equals(Short.class)) {
+ return new Short(num.shortValue());
+ }
+ if (targetWrapperClass.equals(Long.class)) {
+ return new Long(num.longValue());
+ }
+ if (targetWrapperClass.equals(BigInteger.class)) {
+ return BigInteger.valueOf(num.longValue());
+ }
+ if (targetWrapperClass.equals(Float.class)) {
+ return new Float(num.floatValue());
+ }
+ if (targetWrapperClass.equals(Double.class)) {
+ return new Double(num.doubleValue());
+ }
+ if (targetWrapperClass.equals(BigDecimal.class)) {
+ return new BigDecimal(num.doubleValue());
+ }
+ }
+ return value;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/expressions/UMLOCLFactory.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/expressions/UMLOCLFactory.java
index 10e216810d9..932c1a24ab4 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/expressions/UMLOCLFactory.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/expressions/UMLOCLFactory.java
@@ -1,183 +1,184 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.expressions;
-
-import java.util.Collections;
-import java.util.Map;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.emf.ecore.EClassifier;
-import org.eclipse.emf.ecore.EParameter;
-import org.eclipse.emf.ecore.EcorePackage;
-import org.eclipse.ocl.Environment;
-import org.eclipse.ocl.EvaluationEnvironment;
-import org.eclipse.ocl.ParserException;
-import org.eclipse.ocl.ecore.EcoreFactory;
-import org.eclipse.ocl.ecore.OCL.Helper;
-import org.eclipse.ocl.ecore.OCLExpression;
-import org.eclipse.ocl.ecore.Variable;
-import org.eclipse.ocl.options.ParsingOptions;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
-
-/**
- * @generated
- */
-public class UMLOCLFactory {
-
- /**
- * @generated
- */
- private final UMLAbstractExpression[] expressions;
-
- /**
- * @generated
- */
- private final String[] expressionBodies;
-
- /**
- * @generated
- */
- protected UMLOCLFactory() {
- this.expressions = new UMLAbstractExpression[1];
- this.expressionBodies = new String[] { "self.name.concat(\'.file\') ", //$NON-NLS-1$
- };
- }
-
- /**
- * @generated
- */
- private static UMLOCLFactory getInstance() {
- UMLOCLFactory instance = UMLDiagramEditorPlugin.getInstance().getUMLOCLFactory();
- if (instance == null) {
- UMLDiagramEditorPlugin.getInstance().setUMLOCLFactory(instance = new UMLOCLFactory());
- }
- return instance;
- }
-
- /**
- * @generated
- */
- public static String getExpressionBody(int index) {
- return getInstance().expressionBodies[index];
- }
-
- /**
- * @generated
- */
- public static UMLAbstractExpression getExpression(int index, EClassifier context, Map<String, EClassifier> environment) {
- UMLOCLFactory cached = getInstance();
- if (index < 0 || index >= cached.expressions.length) {
- throw new IllegalArgumentException();
- }
- if (cached.expressions[index] == null) {
- cached.expressions[index] = getExpression(cached.expressionBodies[index], context, environment == null ? Collections.<String, EClassifier> emptyMap() : environment);
- }
- return cached.expressions[index];
- }
-
- /**
- * This is factory method, callers are responsible to keep reference to the return value if they want to reuse parsed expression
- *
- * @generated
- */
- public static UMLAbstractExpression getExpression(String body, EClassifier context, Map<String, EClassifier> environment) {
- return new Expression(body, context, environment);
- }
-
- /**
- * This method will become private in the next release
- *
- * @generated
- */
- public static UMLAbstractExpression getExpression(String body, EClassifier context) {
- return getExpression(body, context, Collections.<String, EClassifier> emptyMap());
- }
-
- /**
- * @generated
- */
- private static class Expression extends UMLAbstractExpression {
-
- /**
- * @generated
- */
- private final org.eclipse.ocl.ecore.OCL oclInstance;
-
- /**
- * @generated
- */
- private OCLExpression oclExpression;
-
- /**
- * @generated
- */
- public Expression(String body, EClassifier context, Map<String, EClassifier> environment) {
- super(body, context);
- oclInstance = org.eclipse.ocl.ecore.OCL.newInstance();
- initCustomEnv(oclInstance.getEnvironment(), environment);
- Helper oclHelper = oclInstance.createOCLHelper();
- oclHelper.setContext(context());
- try {
- oclExpression = oclHelper.createQuery(body());
- setStatus(IStatus.OK, null, null);
- } catch (ParserException e) {
- setStatus(IStatus.ERROR, e.getMessage(), e);
- }
- }
-
- /**
- * @generated
- */
- @Override
- @SuppressWarnings("rawtypes")
- protected Object doEvaluate(Object context, Map env) {
- if (oclExpression == null) {
- return null;
- }
- // on the first call, both evalEnvironment and extentMap are clear, for later we have finally, below.
- EvaluationEnvironment<?, ?, ?, ?, ?> evalEnv = oclInstance.getEvaluationEnvironment();
- // initialize environment
- for (Object nextKey : env.keySet()) {
- evalEnv.replace((String) nextKey, env.get(nextKey));
- }
- try {
- Object result = oclInstance.evaluate(context, oclExpression);
- return oclInstance.isInvalid(result) ? null : result;
- } finally {
- evalEnv.clear();
- oclInstance.setExtentMap(null); // clear allInstances cache, and get the oclInstance ready for the next call
- }
- }
-
- /**
- * @generated
- */
- private static void initCustomEnv(Environment<?, EClassifier, ?, ?, ?, EParameter, ?, ?, ?, ?, ?, ?> ecoreEnv, Map<String, EClassifier> environment) {
- // Use EObject as implicit root class for any object, to allow eContainer() and other EObject operations from OCL expressions
- ParsingOptions.setOption(ecoreEnv, ParsingOptions.implicitRootClass(ecoreEnv), EcorePackage.eINSTANCE.getEObject());
- for (String varName : environment.keySet()) {
- EClassifier varType = environment.get(varName);
- ecoreEnv.addElement(varName, createVar(ecoreEnv, varName, varType), false);
- }
- }
-
- /**
- * @generated
- */
- private static Variable createVar(Environment<?, EClassifier, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?> ecoreEnv, String name, EClassifier type) {
- Variable var = EcoreFactory.eINSTANCE.createVariable();
- var.setName(name);
- var.setType(ecoreEnv.getUMLReflection().getOCLType(type));
- return var;
- }
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.expressions;
+
+import java.util.Collections;
+import java.util.Map;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.emf.ecore.EClassifier;
+import org.eclipse.emf.ecore.EParameter;
+import org.eclipse.emf.ecore.EcorePackage;
+import org.eclipse.ocl.Environment;
+import org.eclipse.ocl.EvaluationEnvironment;
+import org.eclipse.ocl.ParserException;
+import org.eclipse.ocl.ecore.EcoreFactory;
+import org.eclipse.ocl.ecore.OCL.Helper;
+import org.eclipse.ocl.ecore.OCLExpression;
+import org.eclipse.ocl.ecore.Variable;
+import org.eclipse.ocl.options.ParsingOptions;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
+
+/**
+ * @generated
+ */
+public class UMLOCLFactory {
+
+ /**
+ * @generated
+ */
+ private final UMLAbstractExpression[] expressions;
+
+ /**
+ * @generated
+ */
+ private final String[] expressionBodies;
+
+ /**
+ * @generated
+ */
+ protected UMLOCLFactory() {
+ this.expressions = new UMLAbstractExpression[1];
+ this.expressionBodies = new String[] {
+ "self.name.concat(\'.file\') ", //$NON-NLS-1$
+ };
+ }
+
+ /**
+ * @generated
+ */
+ private static UMLOCLFactory getInstance() {
+ UMLOCLFactory instance = UMLDiagramEditorPlugin.getInstance().getUMLOCLFactory();
+ if (instance == null) {
+ UMLDiagramEditorPlugin.getInstance().setUMLOCLFactory(instance = new UMLOCLFactory());
+ }
+ return instance;
+ }
+
+ /**
+ * @generated
+ */
+ public static String getExpressionBody(int index) {
+ return getInstance().expressionBodies[index];
+ }
+
+ /**
+ * @generated
+ */
+ public static UMLAbstractExpression getExpression(int index, EClassifier context, Map<String, EClassifier> environment) {
+ UMLOCLFactory cached = getInstance();
+ if (index < 0 || index >= cached.expressions.length) {
+ throw new IllegalArgumentException();
+ }
+ if (cached.expressions[index] == null) {
+ cached.expressions[index] = getExpression(cached.expressionBodies[index], context, environment == null ? Collections.<String, EClassifier> emptyMap() : environment);
+ }
+ return cached.expressions[index];
+ }
+
+ /**
+ * This is factory method, callers are responsible to keep reference to the return value if they want to reuse parsed expression
+ *
+ * @generated
+ */
+ public static UMLAbstractExpression getExpression(String body, EClassifier context, Map<String, EClassifier> environment) {
+ return new Expression(body, context, environment);
+ }
+
+ /**
+ * This method will become private in the next release
+ *
+ * @generated
+ */
+ public static UMLAbstractExpression getExpression(String body, EClassifier context) {
+ return getExpression(body, context, Collections.<String, EClassifier> emptyMap());
+ }
+
+ /**
+ * @generated
+ */
+ private static class Expression extends UMLAbstractExpression {
+
+ /**
+ * @generated
+ */
+ private final org.eclipse.ocl.ecore.OCL oclInstance;
+
+ /**
+ * @generated
+ */
+ private OCLExpression oclExpression;
+
+ /**
+ * @generated
+ */
+ public Expression(String body, EClassifier context, Map<String, EClassifier> environment) {
+ super(body, context);
+ oclInstance = org.eclipse.ocl.ecore.OCL.newInstance();
+ initCustomEnv(oclInstance.getEnvironment(), environment);
+ Helper oclHelper = oclInstance.createOCLHelper();
+ oclHelper.setContext(context());
+ try {
+ oclExpression = oclHelper.createQuery(body());
+ setStatus(IStatus.OK, null, null);
+ } catch (ParserException e) {
+ setStatus(IStatus.ERROR, e.getMessage(), e);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ @SuppressWarnings("rawtypes")
+ protected Object doEvaluate(Object context, Map env) {
+ if (oclExpression == null) {
+ return null;
+ }
+ // on the first call, both evalEnvironment and extentMap are clear, for later we have finally, below.
+ EvaluationEnvironment<?, ?, ?, ?, ?> evalEnv = oclInstance.getEvaluationEnvironment();
+ // initialize environment
+ for (Object nextKey : env.keySet()) {
+ evalEnv.replace((String) nextKey, env.get(nextKey));
+ }
+ try {
+ Object result = oclInstance.evaluate(context, oclExpression);
+ return oclInstance.isInvalid(result) ? null : result;
+ } finally {
+ evalEnv.clear();
+ oclInstance.setExtentMap(null); // clear allInstances cache, and get the oclInstance ready for the next call
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static void initCustomEnv(Environment<?, EClassifier, ?, ?, ?, EParameter, ?, ?, ?, ?, ?, ?> ecoreEnv, Map<String, EClassifier> environment) {
+ // Use EObject as implicit root class for any object, to allow eContainer() and other EObject operations from OCL expressions
+ ParsingOptions.setOption(ecoreEnv, ParsingOptions.implicitRootClass(ecoreEnv), EcorePackage.eINSTANCE.getEObject());
+ for (String varName : environment.keySet()) {
+ EClassifier varType = environment.get(varName);
+ ecoreEnv.addElement(varName, createVar(ecoreEnv, varName, varType), false);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static Variable createVar(Environment<?, EClassifier, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?> ecoreEnv, String name, EClassifier type) {
+ Variable var = EcoreFactory.eINSTANCE.createVariable();
+ var.setName(name);
+ var.setType(ecoreEnv.getUMLReflection().getOCLType(type));
+ return var;
+ }
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/parsers/AbstractParser.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/parsers/AbstractParser.java
index a625f09edb5..cfeaa53d052 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/parsers/AbstractParser.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/parsers/AbstractParser.java
@@ -1 +1 @@
-// Since GMFT 3.1 we don't generate class AbstractParser into every diagram, instead extend org.eclipse.gmf.tooling.runtime.parsers.AbstractAttributeParser.
+// Since GMFT 3.1 we don't generate class AbstractParser into every diagram, instead extend org.eclipse.gmf.tooling.runtime.parsers.AbstractAttributeParser.
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/parsers/MessageFormatParser.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/parsers/MessageFormatParser.java
index 513310633da..b51f2a15553 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/parsers/MessageFormatParser.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/parsers/MessageFormatParser.java
@@ -1,212 +1,212 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.parsers;
-
-import java.text.FieldPosition;
-import java.text.MessageFormat;
-import java.text.ParsePosition;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
-import org.eclipse.gmf.tooling.runtime.parsers.AbstractAttributeParser;
-import org.eclipse.osgi.util.NLS;
-import org.eclipse.papyrus.uml.diagram.deployment.part.Messages;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
-
-/**
- * @generated
- */
-public class MessageFormatParser extends AbstractAttributeParser {
-
- /**
- * @generated
- */
- private String defaultPattern;
-
- /**
- * @generated
- */
- private String defaultEditablePattern;
-
- /**
- * @generated
- */
- private MessageFormat viewProcessor;
-
- /**
- * @generated
- */
- private MessageFormat editorProcessor;
-
- /**
- * @generated
- */
- private MessageFormat editProcessor;
-
- /**
- * @generated
- */
- public MessageFormatParser(EAttribute[] features) {
- super(features);
- }
-
- /**
- * @generated
- */
- public MessageFormatParser(EAttribute[] features, EAttribute[] editableFeatures) {
- super(features, editableFeatures);
- }
-
- /**
- * @generated
- */
- protected String getDefaultPattern() {
- if (defaultPattern == null) {
- StringBuffer sb = new StringBuffer();
- for (int i = 0; i < features.length; i++) {
- if (i > 0) {
- sb.append(' ');
- }
- sb.append('{');
- sb.append(i);
- sb.append('}');
- }
- defaultPattern = sb.toString();
- }
- return defaultPattern;
- }
-
- /**
- * @generated
- */
- @Override
- public void setViewPattern(String viewPattern) {
- super.setViewPattern(viewPattern);
- viewProcessor = null;
- }
-
- /**
- * @generated
- */
- @Override
- public void setEditorPattern(String editorPattern) {
- super.setEditorPattern(editorPattern);
- editorProcessor = null;
- }
-
- /**
- * @generated
- */
- protected MessageFormat getViewProcessor() {
- if (viewProcessor == null) {
- viewProcessor = new MessageFormat(getViewPattern() == null ? getDefaultPattern() : getViewPattern());
- }
- return viewProcessor;
- }
-
- /**
- * @generated
- */
- protected MessageFormat getEditorProcessor() {
- if (editorProcessor == null) {
- editorProcessor = new MessageFormat(getEditorPattern() == null ? getDefaultEditablePattern() : getEditorPattern());
- }
- return editorProcessor;
- }
-
- /**
- * @generated
- */
- protected String getDefaultEditablePattern() {
- if (defaultEditablePattern == null) {
- StringBuffer sb = new StringBuffer();
- for (int i = 0; i < editableFeatures.length; i++) {
- if (i > 0) {
- sb.append(' ');
- }
- sb.append('{');
- sb.append(i);
- sb.append('}');
- }
- defaultEditablePattern = sb.toString();
- }
- return defaultEditablePattern;
- }
-
- /**
- * @generated
- */
- @Override
- public void setEditPattern(String editPattern) {
- super.setEditPattern(editPattern);
- editProcessor = null;
- }
-
- /**
- * @generated
- */
- protected MessageFormat getEditProcessor() {
- if (editProcessor == null) {
- editProcessor = new MessageFormat(getEditPattern() == null ? getDefaultEditablePattern() : getEditPattern());
- }
- return editProcessor;
- }
-
- /**
- * @generated
- */
- @Override
- public String getEditString(IAdaptable adapter, int flags) {
- EObject element = (EObject) adapter.getAdapter(EObject.class);
- return getEditorProcessor().format(getEditableValues(element), new StringBuffer(), new FieldPosition(0)).toString();
- }
-
- /**
- * @generated
- */
- @Override
- public IParserEditStatus isValidEditString(IAdaptable adapter, String editString) {
- ParsePosition pos = new ParsePosition(0);
- Object[] values = getEditProcessor().parse(editString, pos);
- if (values == null) {
- return new ParserEditStatus(
- UMLDiagramEditorPlugin.ID,
- IParserEditStatus.UNEDITABLE,
- NLS.bind(
- Messages.MessageFormatParser_InvalidInputError,
- new Integer(pos.getErrorIndex())));
- }
- return validateNewValues(values);
- }
-
- /**
- * @generated
- */
- @Override
- public ICommand getParseCommand(IAdaptable adapter, String newString, int flags) {
- Object[] values = getEditProcessor().parse(newString, new ParsePosition(0));
- return getParseCommand(adapter, values, flags);
- }
-
- /**
- * @generated
- */
- @Override
- public String getPrintString(IAdaptable adapter, int flags) {
- EObject element = (EObject) adapter.getAdapter(EObject.class);
- return getViewProcessor().format(getValues(element), new StringBuffer(), new FieldPosition(0)).toString();
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.parsers;
+
+import java.text.FieldPosition;
+import java.text.MessageFormat;
+import java.text.ParsePosition;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserEditStatus;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserEditStatus;
+import org.eclipse.gmf.tooling.runtime.parsers.AbstractAttributeParser;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.papyrus.uml.diagram.deployment.part.Messages;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
+
+/**
+ * @generated
+ */
+public class MessageFormatParser extends AbstractAttributeParser {
+
+ /**
+ * @generated
+ */
+ private String defaultPattern;
+
+ /**
+ * @generated
+ */
+ private String defaultEditablePattern;
+
+ /**
+ * @generated
+ */
+ private MessageFormat viewProcessor;
+
+ /**
+ * @generated
+ */
+ private MessageFormat editorProcessor;
+
+ /**
+ * @generated
+ */
+ private MessageFormat editProcessor;
+
+ /**
+ * @generated
+ */
+ public MessageFormatParser(EAttribute[] features) {
+ super(features);
+ }
+
+ /**
+ * @generated
+ */
+ public MessageFormatParser(EAttribute[] features, EAttribute[] editableFeatures) {
+ super(features, editableFeatures);
+ }
+
+ /**
+ * @generated
+ */
+ protected String getDefaultPattern() {
+ if (defaultPattern == null) {
+ StringBuffer sb = new StringBuffer();
+ for (int i = 0; i < features.length; i++) {
+ if (i > 0) {
+ sb.append(' ');
+ }
+ sb.append('{');
+ sb.append(i);
+ sb.append('}');
+ }
+ defaultPattern = sb.toString();
+ }
+ return defaultPattern;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setViewPattern(String viewPattern) {
+ super.setViewPattern(viewPattern);
+ viewProcessor = null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setEditorPattern(String editorPattern) {
+ super.setEditorPattern(editorPattern);
+ editorProcessor = null;
+ }
+
+ /**
+ * @generated
+ */
+ protected MessageFormat getViewProcessor() {
+ if (viewProcessor == null) {
+ viewProcessor = new MessageFormat(getViewPattern() == null ? getDefaultPattern() : getViewPattern());
+ }
+ return viewProcessor;
+ }
+
+ /**
+ * @generated
+ */
+ protected MessageFormat getEditorProcessor() {
+ if (editorProcessor == null) {
+ editorProcessor = new MessageFormat(getEditorPattern() == null ? getDefaultEditablePattern() : getEditorPattern());
+ }
+ return editorProcessor;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getDefaultEditablePattern() {
+ if (defaultEditablePattern == null) {
+ StringBuffer sb = new StringBuffer();
+ for (int i = 0; i < editableFeatures.length; i++) {
+ if (i > 0) {
+ sb.append(' ');
+ }
+ sb.append('{');
+ sb.append(i);
+ sb.append('}');
+ }
+ defaultEditablePattern = sb.toString();
+ }
+ return defaultEditablePattern;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setEditPattern(String editPattern) {
+ super.setEditPattern(editPattern);
+ editProcessor = null;
+ }
+
+ /**
+ * @generated
+ */
+ protected MessageFormat getEditProcessor() {
+ if (editProcessor == null) {
+ editProcessor = new MessageFormat(getEditPattern() == null ? getDefaultEditablePattern() : getEditPattern());
+ }
+ return editProcessor;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getEditString(IAdaptable adapter, int flags) {
+ EObject element = (EObject) adapter.getAdapter(EObject.class);
+ return getEditorProcessor().format(getEditableValues(element), new StringBuffer(), new FieldPosition(0)).toString();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParserEditStatus isValidEditString(IAdaptable adapter, String editString) {
+ ParsePosition pos = new ParsePosition(0);
+ Object[] values = getEditProcessor().parse(editString, pos);
+ if (values == null) {
+ return new ParserEditStatus(
+ UMLDiagramEditorPlugin.ID,
+ IParserEditStatus.UNEDITABLE,
+ NLS.bind(
+ Messages.MessageFormatParser_InvalidInputError,
+ new Integer(pos.getErrorIndex())));
+ }
+ return validateNewValues(values);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ICommand getParseCommand(IAdaptable adapter, String newString, int flags) {
+ Object[] values = getEditProcessor().parse(newString, new ParsePosition(0));
+ return getParseCommand(adapter, values, flags);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getPrintString(IAdaptable adapter, int flags) {
+ EObject element = (EObject) adapter.getAdapter(EObject.class);
+ return getViewProcessor().format(getValues(element), new StringBuffer(), new FieldPosition(0)).toString();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/DiagramEditorContextMenuProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/DiagramEditorContextMenuProvider.java
index d21b41f5972..a908f7fd923 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/DiagramEditorContextMenuProvider.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/DiagramEditorContextMenuProvider.java
@@ -1,62 +1,62 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.util.TransactionUtil;
-import org.eclipse.gef.EditPartViewer;
-import org.eclipse.gmf.runtime.common.ui.services.action.contributionitem.ContributionItemService;
-import org.eclipse.gmf.runtime.diagram.ui.actions.ActionIds;
-import org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextMenuProvider;
-import org.eclipse.jface.action.IMenuManager;
-import org.eclipse.ui.IWorkbenchPart;
-
-/**
- * @generated
- */
-public class DiagramEditorContextMenuProvider extends DiagramContextMenuProvider {
-
- /**
- * @generated
- */
- private IWorkbenchPart part;
-
- /**
- * @generated
- */
- public DiagramEditorContextMenuProvider(IWorkbenchPart part, EditPartViewer viewer) {
- super(part, viewer);
- this.part = part;
- }
-
- /**
- * @generated
- */
- @Override
- public void buildContextMenu(final IMenuManager menu) {
- getViewer().flush();
- try {
- TransactionUtil.getEditingDomain(
- (EObject) getViewer().getContents().getModel()).runExclusive(new Runnable() {
-
- @Override
- public void run() {
- ContributionItemService.getInstance().contributeToPopupMenu(
- DiagramEditorContextMenuProvider.this, part);
- menu.remove(ActionIds.ACTION_DELETE_FROM_MODEL);
- }
- });
- } catch (Exception e) {
- UMLDiagramEditorPlugin.getInstance().logError("Error building context menu", e);
- }
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.util.TransactionUtil;
+import org.eclipse.gef.EditPartViewer;
+import org.eclipse.gmf.runtime.common.ui.services.action.contributionitem.ContributionItemService;
+import org.eclipse.gmf.runtime.diagram.ui.actions.ActionIds;
+import org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextMenuProvider;
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.ui.IWorkbenchPart;
+
+/**
+ * @generated
+ */
+public class DiagramEditorContextMenuProvider extends DiagramContextMenuProvider {
+
+ /**
+ * @generated
+ */
+ private IWorkbenchPart part;
+
+ /**
+ * @generated
+ */
+ public DiagramEditorContextMenuProvider(IWorkbenchPart part, EditPartViewer viewer) {
+ super(part, viewer);
+ this.part = part;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void buildContextMenu(final IMenuManager menu) {
+ getViewer().flush();
+ try {
+ TransactionUtil.getEditingDomain(
+ (EObject) getViewer().getContents().getModel()).runExclusive(new Runnable() {
+
+ @Override
+ public void run() {
+ ContributionItemService.getInstance().contributeToPopupMenu(
+ DiagramEditorContextMenuProvider.this, part);
+ menu.remove(ActionIds.ACTION_DELETE_FROM_MODEL);
+ }
+ });
+ } catch (Exception e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Error building context menu", e);
+ }
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/LoadResourceAction.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/LoadResourceAction.java
index 27aecbdd9eb..ec5c44e63dd 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/LoadResourceAction.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/LoadResourceAction.java
@@ -1,30 +1,30 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.gmf.tooling.runtime.actions.DefaultLoadResourceAction;
-
-/**
- * @generated
- */
-public class LoadResourceAction extends DefaultLoadResourceAction {
-
- /**
- * @generated
- */
- @Override
- public Object execute(ExecutionEvent event) throws ExecutionException {
- return super.execute(event);
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.gmf.tooling.runtime.actions.DefaultLoadResourceAction;
+
+/**
+ * @generated
+ */
+public class LoadResourceAction extends DefaultLoadResourceAction {
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object execute(ExecutionEvent event) throws ExecutionException {
+ return super.execute(event);
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/Messages.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/Messages.java
index b8a45d9e6b8..0e6a2f5ac3e 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/Messages.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/Messages.java
@@ -1,499 +1,499 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import org.eclipse.osgi.util.NLS;
-
-/**
- * @generated
- */
-public class Messages extends NLS {
-
- /**
- * @generated
- */
- static {
- NLS.initializeMessages("messages", Messages.class); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- private Messages() {
- }
-
- /**
- * @generated
- */
- public static String UMLCreationWizardTitle;
-
- /**
- * @generated
- */
- public static String UMLCreationWizard_DiagramModelFilePageTitle;
-
- /**
- * @generated
- */
- public static String UMLCreationWizard_DiagramModelFilePageDescription;
-
- /**
- * @generated
- */
- public static String UMLCreationWizard_DomainModelFilePageTitle;
-
- /**
- * @generated
- */
- public static String UMLCreationWizard_DomainModelFilePageDescription;
-
- /**
- * @generated
- */
- public static String UMLCreationWizardOpenEditorError;
-
- /**
- * @generated
- */
- public static String UMLCreationWizardCreationError;
-
- /**
- * @generated
- */
- public static String UMLCreationWizardPageExtensionError;
-
- /**
- * @generated
- */
- public static String UMLDiagramEditorUtil_OpenModelResourceErrorDialogTitle;
-
- /**
- * @generated
- */
- public static String UMLDiagramEditorUtil_OpenModelResourceErrorDialogMessage;
-
- /**
- * @generated
- */
- public static String UMLDiagramEditorUtil_CreateDiagramProgressTask;
-
- /**
- * @generated
- */
- public static String UMLDiagramEditorUtil_CreateDiagramCommandLabel;
-
- /**
- * @generated
- */
- public static String UMLDocumentProvider_isModifiable;
-
- /**
- * @generated
- */
- public static String UMLDocumentProvider_handleElementContentChanged;
-
- /**
- * @generated
- */
- public static String UMLDocumentProvider_IncorrectInputError;
-
- /**
- * @generated
- */
- public static String UMLDocumentProvider_NoDiagramInResourceError;
-
- /**
- * @generated
- */
- public static String UMLDocumentProvider_DiagramLoadingError;
-
- /**
- * @generated
- */
- public static String UMLDocumentProvider_UnsynchronizedFileSaveError;
-
- /**
- * @generated
- */
- public static String UMLDocumentProvider_SaveDiagramTask;
-
- /**
- * @generated
- */
- public static String UMLDocumentProvider_SaveNextResourceTask;
-
- /**
- * @generated
- */
- public static String UMLDocumentProvider_SaveAsOperation;
-
- /**
- * @generated
- */
- public static String InitDiagramFile_ResourceErrorDialogTitle;
-
- /**
- * @generated
- */
- public static String InitDiagramFile_ResourceErrorDialogMessage;
-
- /**
- * @generated
- */
- public static String InitDiagramFile_WizardTitle;
-
- /**
- * @generated
- */
- public static String InitDiagramFile_OpenModelFileDialogTitle;
-
- /**
- * @generated
- */
- public static String UMLNewDiagramFileWizard_CreationPageName;
-
- /**
- * @generated
- */
- public static String UMLNewDiagramFileWizard_CreationPageTitle;
-
- /**
- * @generated
- */
- public static String UMLNewDiagramFileWizard_CreationPageDescription;
-
- /**
- * @generated
- */
- public static String UMLNewDiagramFileWizard_RootSelectionPageName;
-
- /**
- * @generated
- */
- public static String UMLNewDiagramFileWizard_RootSelectionPageTitle;
-
- /**
- * @generated
- */
- public static String UMLNewDiagramFileWizard_RootSelectionPageDescription;
-
- /**
- * @generated
- */
- public static String UMLNewDiagramFileWizard_RootSelectionPageSelectionTitle;
-
- /**
- * @generated
- */
- public static String UMLNewDiagramFileWizard_RootSelectionPageNoSelectionMessage;
-
- /**
- * @generated
- */
- public static String UMLNewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage;
-
- /**
- * @generated
- */
- public static String UMLNewDiagramFileWizard_InitDiagramCommand;
-
- /**
- * @generated
- */
- public static String UMLNewDiagramFileWizard_IncorrectRootError;
-
- /**
- * @generated
- */
- public static String UMLDiagramEditor_SavingDeletedFile;
-
- /**
- * @generated
- */
- public static String UMLDiagramEditor_SaveAsErrorTitle;
-
- /**
- * @generated
- */
- public static String UMLDiagramEditor_SaveAsErrorMessage;
-
- /**
- * @generated
- */
- public static String UMLDiagramEditor_SaveErrorTitle;
-
- /**
- * @generated
- */
- public static String UMLDiagramEditor_SaveErrorMessage;
-
- /**
- * @generated
- */
- public static String UMLElementChooserDialog_SelectModelElementTitle;
-
- /**
- * @generated
- */
- public static String ModelElementSelectionPageMessage;
-
- /**
- * @generated
- */
- public static String ValidateActionMessage;
-
- /**
- * @generated
- */
- public static String NodesGroup_title;
-
- /**
- * @generated
- */
- public static String NodesGroup_desc;
-
- /**
- * @generated
- */
- public static String LinksGroup_title;
-
- /**
- * @generated
- */
- public static String LinksGroup_desc;
-
- /**
- * @generated
- */
- public static String ModelCreationTool_title;
-
- /**
- * @generated
- */
- public static String ModelCreationTool_desc;
-
- /**
- * @generated
- */
- public static String PackageCreationTool_title;
-
- /**
- * @generated
- */
- public static String PackageCreationTool_desc;
-
- /**
- * @generated
- */
- public static String NodeCreationTool_title;
-
- /**
- * @generated
- */
- public static String NodeCreationTool_desc;
-
- /**
- * @generated
- */
- public static String DeviceCreationTool_title;
-
- /**
- * @generated
- */
- public static String DeviceCreationTool_desc;
-
- /**
- * @generated
- */
- public static String ExecutionEnvironmentCreationTool_title;
-
- /**
- * @generated
- */
- public static String ExecutionEnvironmentCreationTool_desc;
-
- /**
- * @generated
- */
- public static String ArtifactCreationTool_title;
-
- /**
- * @generated
- */
- public static String ArtifactCreationTool_desc;
-
- /**
- * @generated
- */
- public static String CommentCreationTool_title;
-
- /**
- * @generated
- */
- public static String CommentCreationTool_desc;
-
- /**
- * @generated
- */
- public static String ConstraintCreationTool_title;
-
- /**
- * @generated
- */
- public static String ConstraintCreationTool_desc;
-
- /**
- * @generated
- */
- public static String LinkCreationTool_title;
-
- /**
- * @generated
- */
- public static String LinkCreationTool_desc;
-
- /**
- * @generated
- */
- public static String DependencyCreationTool_title;
-
- /**
- * @generated
- */
- public static String DependencyCreationTool_desc;
-
- /**
- * @generated
- */
- public static String DependencyBranchCreationTool_title;
-
- /**
- * @generated
- */
- public static String DependencyBranchCreationTool_desc;
-
- /**
- * @generated
- */
- public static String GeneralizationCreationTool_title;
-
- /**
- * @generated
- */
- public static String GeneralizationCreationTool_desc;
-
- /**
- * @generated
- */
- public static String DeploymentCreationTool_title;
-
- /**
- * @generated
- */
- public static String DeploymentCreationTool_desc;
-
- /**
- * @generated
- */
- public static String ManifestationCreationTool_title;
-
- /**
- * @generated
- */
- public static String ManifestationCreationTool_desc;
-
- /**
- * @generated
- */
- public static String ModelPackageableElementCompartmentEditPart_title;
-
- /**
- * @generated
- */
- public static String PackagePackageableElementCompartmentEditPart_title;
-
- /**
- * @generated
- */
- public static String DeviceCompositeCompartmentEditPart_title;
-
- /**
- * @generated
- */
- public static String ExecutionEnvironmentCompositeCompartmentEditPart_title;
-
- /**
- * @generated
- */
- public static String NodeCompositeCompartmentEditPart_title;
-
- /**
- * @generated
- */
- public static String ArtifactCompositeCompartmentEditPart_title;
-
- /**
- * @generated
- */
- public static String ModelPackageableElementCompartmentEditPartCN_title;
-
- /**
- * @generated
- */
- public static String PackagePackageableElementCompartmentEditPartCN_title;
-
- /**
- * @generated
- */
- public static String DeviceCompositeCompartmentEditPartCN_title;
-
- /**
- * @generated
- */
- public static String ExecutionEnvironmentCompositeCompartmentEditPartCN_title;
-
- /**
- * @generated
- */
- public static String NodeCompositeCompartmentEditPartCN_title;
-
- /**
- * @generated
- */
- public static String ArtifactCompositeCompartmentEditPartCN_title;
-
- /**
- * @generated
- */
- public static String ArtifactCompositeCompartmentEditPartACN_title;
-
- /**
- * @generated
- */
- public static String CommandName_OpenDiagram;
-
- /**
- * @generated
- */
- public static String MessageFormatParser_InvalidInputError;
-
- /**
- * @generated
- */
- public static String UMLModelingAssistantProviderTitle;
-
- /**
- * @generated
- */
- public static String UMLModelingAssistantProviderMessage;
- // TODO: put accessor fields manually
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import org.eclipse.osgi.util.NLS;
+
+/**
+ * @generated
+ */
+public class Messages extends NLS {
+
+ /**
+ * @generated
+ */
+ static {
+ NLS.initializeMessages("messages", Messages.class); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ private Messages() {
+ }
+
+ /**
+ * @generated
+ */
+ public static String UMLCreationWizardTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLCreationWizard_DiagramModelFilePageTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLCreationWizard_DiagramModelFilePageDescription;
+
+ /**
+ * @generated
+ */
+ public static String UMLCreationWizard_DomainModelFilePageTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLCreationWizard_DomainModelFilePageDescription;
+
+ /**
+ * @generated
+ */
+ public static String UMLCreationWizardOpenEditorError;
+
+ /**
+ * @generated
+ */
+ public static String UMLCreationWizardCreationError;
+
+ /**
+ * @generated
+ */
+ public static String UMLCreationWizardPageExtensionError;
+
+ /**
+ * @generated
+ */
+ public static String UMLDiagramEditorUtil_OpenModelResourceErrorDialogTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLDiagramEditorUtil_OpenModelResourceErrorDialogMessage;
+
+ /**
+ * @generated
+ */
+ public static String UMLDiagramEditorUtil_CreateDiagramProgressTask;
+
+ /**
+ * @generated
+ */
+ public static String UMLDiagramEditorUtil_CreateDiagramCommandLabel;
+
+ /**
+ * @generated
+ */
+ public static String UMLDocumentProvider_isModifiable;
+
+ /**
+ * @generated
+ */
+ public static String UMLDocumentProvider_handleElementContentChanged;
+
+ /**
+ * @generated
+ */
+ public static String UMLDocumentProvider_IncorrectInputError;
+
+ /**
+ * @generated
+ */
+ public static String UMLDocumentProvider_NoDiagramInResourceError;
+
+ /**
+ * @generated
+ */
+ public static String UMLDocumentProvider_DiagramLoadingError;
+
+ /**
+ * @generated
+ */
+ public static String UMLDocumentProvider_UnsynchronizedFileSaveError;
+
+ /**
+ * @generated
+ */
+ public static String UMLDocumentProvider_SaveDiagramTask;
+
+ /**
+ * @generated
+ */
+ public static String UMLDocumentProvider_SaveNextResourceTask;
+
+ /**
+ * @generated
+ */
+ public static String UMLDocumentProvider_SaveAsOperation;
+
+ /**
+ * @generated
+ */
+ public static String InitDiagramFile_ResourceErrorDialogTitle;
+
+ /**
+ * @generated
+ */
+ public static String InitDiagramFile_ResourceErrorDialogMessage;
+
+ /**
+ * @generated
+ */
+ public static String InitDiagramFile_WizardTitle;
+
+ /**
+ * @generated
+ */
+ public static String InitDiagramFile_OpenModelFileDialogTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_CreationPageName;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_CreationPageTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_CreationPageDescription;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_RootSelectionPageName;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_RootSelectionPageTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_RootSelectionPageDescription;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_RootSelectionPageSelectionTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_RootSelectionPageNoSelectionMessage;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_InitDiagramCommand;
+
+ /**
+ * @generated
+ */
+ public static String UMLNewDiagramFileWizard_IncorrectRootError;
+
+ /**
+ * @generated
+ */
+ public static String UMLDiagramEditor_SavingDeletedFile;
+
+ /**
+ * @generated
+ */
+ public static String UMLDiagramEditor_SaveAsErrorTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLDiagramEditor_SaveAsErrorMessage;
+
+ /**
+ * @generated
+ */
+ public static String UMLDiagramEditor_SaveErrorTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLDiagramEditor_SaveErrorMessage;
+
+ /**
+ * @generated
+ */
+ public static String UMLElementChooserDialog_SelectModelElementTitle;
+
+ /**
+ * @generated
+ */
+ public static String ModelElementSelectionPageMessage;
+
+ /**
+ * @generated
+ */
+ public static String ValidateActionMessage;
+
+ /**
+ * @generated
+ */
+ public static String NodesGroup_title;
+
+ /**
+ * @generated
+ */
+ public static String NodesGroup_desc;
+
+ /**
+ * @generated
+ */
+ public static String LinksGroup_title;
+
+ /**
+ * @generated
+ */
+ public static String LinksGroup_desc;
+
+ /**
+ * @generated
+ */
+ public static String ModelCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String ModelCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String PackageCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String PackageCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String NodeCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String NodeCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String DeviceCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String DeviceCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String ExecutionEnvironmentCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String ExecutionEnvironmentCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String ArtifactCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String ArtifactCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String CommentCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String CommentCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String ConstraintCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String ConstraintCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String LinkCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String LinkCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String DependencyCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String DependencyCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String DependencyBranchCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String DependencyBranchCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String GeneralizationCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String GeneralizationCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String DeploymentCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String DeploymentCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String ManifestationCreationTool_title;
+
+ /**
+ * @generated
+ */
+ public static String ManifestationCreationTool_desc;
+
+ /**
+ * @generated
+ */
+ public static String ModelPackageableElementCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String PackagePackageableElementCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String DeviceCompositeCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String ExecutionEnvironmentCompositeCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String NodeCompositeCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String ArtifactCompositeCompartmentEditPart_title;
+
+ /**
+ * @generated
+ */
+ public static String ModelPackageableElementCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String PackagePackageableElementCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String DeviceCompositeCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String ExecutionEnvironmentCompositeCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String NodeCompositeCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String ArtifactCompositeCompartmentEditPartCN_title;
+
+ /**
+ * @generated
+ */
+ public static String ArtifactCompositeCompartmentEditPartACN_title;
+
+ /**
+ * @generated
+ */
+ public static String CommandName_OpenDiagram;
+
+ /**
+ * @generated
+ */
+ public static String MessageFormatParser_InvalidInputError;
+
+ /**
+ * @generated
+ */
+ public static String UMLModelingAssistantProviderTitle;
+
+ /**
+ * @generated
+ */
+ public static String UMLModelingAssistantProviderMessage;
+ // TODO: put accessor fields manually
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/ModelElementSelectionPage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/ModelElementSelectionPage.java
index ceb88b2ccfb..c81fa8f9f26 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/ModelElementSelectionPage.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/ModelElementSelectionPage.java
@@ -1,39 +1,39 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import org.eclipse.gmf.tooling.runtime.part.DefaultModelElementSelectionPage;
-
-/**
- * Wizard page that allows to select element from model.
- *
- * @generated
- */
-public class ModelElementSelectionPage extends DefaultModelElementSelectionPage {
-
- /**
- * @generated
- */
- public ModelElementSelectionPage(String pageName) {
- super(UMLDiagramEditorPlugin.getInstance().getItemProvidersAdapterFactory(), pageName);
- }
-
- /**
- * Override to provide custom model element description.
- *
- * @generated
- */
- @Override
- protected String getSelectionTitle() {
- return Messages.ModelElementSelectionPageMessage;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import org.eclipse.gmf.tooling.runtime.part.DefaultModelElementSelectionPage;
+
+/**
+ * Wizard page that allows to select element from model.
+ *
+ * @generated
+ */
+public class ModelElementSelectionPage extends DefaultModelElementSelectionPage {
+
+ /**
+ * @generated
+ */
+ public ModelElementSelectionPage(String pageName) {
+ super(UMLDiagramEditorPlugin.getInstance().getItemProvidersAdapterFactory(), pageName);
+ }
+
+ /**
+ * Override to provide custom model element description.
+ *
+ * @generated
+ */
+ @Override
+ protected String getSelectionTitle() {
+ return Messages.ModelElementSelectionPageMessage;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLCreationWizard.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLCreationWizard.java
index d9127727cc2..336a849f48f 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLCreationWizard.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLCreationWizard.java
@@ -1,178 +1,181 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import java.lang.reflect.InvocationTargetException;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.jface.dialogs.ErrorDialog;
-import org.eclipse.jface.operation.IRunnableWithProgress;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.wizard.Wizard;
-import org.eclipse.ui.INewWizard;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.actions.WorkspaceModifyOperation;
-
-/**
- * @generated
- */
-public class UMLCreationWizard extends Wizard implements INewWizard {
-
- /**
- * @generated
- */
- private IWorkbench workbench;
-
- /**
- * @generated
- */
- protected IStructuredSelection selection;
-
- /**
- * @generated
- */
- protected UMLCreationWizardPage diagramModelFilePage;
-
- /**
- * @generated
- */
- protected UMLCreationWizardPage domainModelFilePage;
-
- /**
- * @generated
- */
- protected Resource diagram;
-
- /**
- * @generated
- */
- private boolean openNewlyCreatedDiagramEditor = true;
-
- /**
- * @generated
- */
- public IWorkbench getWorkbench() {
- return workbench;
- }
-
- /**
- * @generated
- */
- public IStructuredSelection getSelection() {
- return selection;
- }
-
- /**
- * @generated
- */
- public final Resource getDiagram() {
- return diagram;
- }
-
- /**
- * @generated
- */
- public final boolean isOpenNewlyCreatedDiagramEditor() {
- return openNewlyCreatedDiagramEditor;
- }
-
- /**
- * @generated
- */
- public void setOpenNewlyCreatedDiagramEditor(boolean openNewlyCreatedDiagramEditor) {
- this.openNewlyCreatedDiagramEditor = openNewlyCreatedDiagramEditor;
- }
-
- /**
- * @generated
- */
- @Override
- public void init(IWorkbench workbench, IStructuredSelection selection) {
- this.workbench = workbench;
- this.selection = selection;
- setWindowTitle(Messages.UMLCreationWizardTitle);
- setDefaultPageImageDescriptor(UMLDiagramEditorPlugin.getBundledImageDescriptor("icons/wizban/NewUMLWizard.gif")); //$NON-NLS-1$
- setNeedsProgressMonitor(true);
- }
-
- /**
- * @generated
- */
- @Override
- public void addPages() {
- diagramModelFilePage = new UMLCreationWizardPage("DiagramModelFile", getSelection(), "PapyrusUMLDeployment_diagram"); //$NON-NLS-1$ //$NON-NLS-2$
- diagramModelFilePage.setTitle(Messages.UMLCreationWizard_DiagramModelFilePageTitle);
- diagramModelFilePage.setDescription(Messages.UMLCreationWizard_DiagramModelFilePageDescription);
- addPage(diagramModelFilePage);
-
- domainModelFilePage = new UMLCreationWizardPage("DomainModelFile", getSelection(), "umlDeployment") { //$NON-NLS-1$ //$NON-NLS-2$
-
- @Override
- public void setVisible(boolean visible) {
- if (visible) {
- String fileName = diagramModelFilePage.getFileName();
- fileName = fileName.substring(0, fileName.length() - ".PapyrusUMLDeployment_diagram".length()); //$NON-NLS-1$
- setFileName(UMLDiagramEditorUtil.getUniqueFileName(
- getContainerFullPath(), fileName, "umlDeployment")); //$NON-NLS-1$
- }
- super.setVisible(visible);
- }
- };
- domainModelFilePage.setTitle(Messages.UMLCreationWizard_DomainModelFilePageTitle);
- domainModelFilePage.setDescription(Messages.UMLCreationWizard_DomainModelFilePageDescription);
- addPage(domainModelFilePage);
- }
-
- /**
- * @generated
- */
- @Override
- public boolean performFinish() {
- IRunnableWithProgress op =
- new WorkspaceModifyOperation(null) {
-
- @Override
- protected void execute(IProgressMonitor monitor)
- throws CoreException, InterruptedException {
- diagram = UMLDiagramEditorUtil.createDiagram(diagramModelFilePage.getURI(),
- domainModelFilePage.getURI(),
- monitor);
- if (isOpenNewlyCreatedDiagramEditor() && diagram != null) {
- try {
- UMLDiagramEditorUtil.openDiagram(diagram);
- } catch (PartInitException e) {
- ErrorDialog.openError(getContainer().getShell(),
- Messages.UMLCreationWizardOpenEditorError, null, e.getStatus());
- }
- }
- }
- };
- try {
- getContainer().run(false, true, op);
- } catch (InterruptedException e) {
- return false;
- } catch (InvocationTargetException e) {
- if (e.getTargetException() instanceof CoreException) {
- ErrorDialog.openError(getContainer().getShell(),
- Messages.UMLCreationWizardCreationError, null,
- ((CoreException) e.getTargetException()).getStatus());
- } else {
- UMLDiagramEditorPlugin.getInstance().logError("Error creating diagram", e.getTargetException()); //$NON-NLS-1$
- }
- return false;
- }
- return diagram != null;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import java.lang.reflect.InvocationTargetException;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.jface.dialogs.ErrorDialog;
+import org.eclipse.jface.operation.IRunnableWithProgress;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.ui.INewWizard;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.actions.WorkspaceModifyOperation;
+
+/**
+ * @generated
+ */
+public class UMLCreationWizard extends Wizard implements INewWizard {
+
+ /**
+ * @generated
+ */
+ private IWorkbench workbench;
+
+ /**
+ * @generated
+ */
+ protected IStructuredSelection selection;
+
+ /**
+ * @generated
+ */
+ protected UMLCreationWizardPage diagramModelFilePage;
+
+ /**
+ * @generated
+ */
+ protected UMLCreationWizardPage domainModelFilePage;
+
+ /**
+ * @generated
+ */
+ protected Resource diagram;
+
+ /**
+ * @generated
+ */
+ private boolean openNewlyCreatedDiagramEditor = true;
+
+ /**
+ * @generated
+ */
+ public IWorkbench getWorkbench() {
+ return workbench;
+ }
+
+ /**
+ * @generated
+ */
+ public IStructuredSelection getSelection() {
+ return selection;
+ }
+
+ /**
+ * @generated
+ */
+ public final Resource getDiagram() {
+ return diagram;
+ }
+
+ /**
+ * @generated
+ */
+ public final boolean isOpenNewlyCreatedDiagramEditor() {
+ return openNewlyCreatedDiagramEditor;
+ }
+
+ /**
+ * @generated
+ */
+ public void setOpenNewlyCreatedDiagramEditor(boolean openNewlyCreatedDiagramEditor) {
+ this.openNewlyCreatedDiagramEditor = openNewlyCreatedDiagramEditor;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void init(IWorkbench workbench, IStructuredSelection selection) {
+ this.workbench = workbench;
+ this.selection = selection;
+ setWindowTitle(Messages.UMLCreationWizardTitle);
+ setDefaultPageImageDescriptor(UMLDiagramEditorPlugin.getBundledImageDescriptor(
+ "icons/wizban/NewUMLWizard.gif")); //$NON-NLS-1$
+ setNeedsProgressMonitor(true);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void addPages() {
+ diagramModelFilePage = new UMLCreationWizardPage(
+ "DiagramModelFile", getSelection(), "PapyrusUMLDeployment_diagram"); //$NON-NLS-1$ //$NON-NLS-2$
+ diagramModelFilePage.setTitle(Messages.UMLCreationWizard_DiagramModelFilePageTitle);
+ diagramModelFilePage.setDescription(Messages.UMLCreationWizard_DiagramModelFilePageDescription);
+ addPage(diagramModelFilePage);
+
+ domainModelFilePage = new UMLCreationWizardPage(
+ "DomainModelFile", getSelection(), "umlDeployment") { //$NON-NLS-1$ //$NON-NLS-2$
+
+ @Override
+ public void setVisible(boolean visible) {
+ if (visible) {
+ String fileName = diagramModelFilePage.getFileName();
+ fileName = fileName.substring(0, fileName.length() - ".PapyrusUMLDeployment_diagram".length()); //$NON-NLS-1$
+ setFileName(UMLDiagramEditorUtil.getUniqueFileName(
+ getContainerFullPath(), fileName, "umlDeployment")); //$NON-NLS-1$
+ }
+ super.setVisible(visible);
+ }
+ };
+ domainModelFilePage.setTitle(Messages.UMLCreationWizard_DomainModelFilePageTitle);
+ domainModelFilePage.setDescription(Messages.UMLCreationWizard_DomainModelFilePageDescription);
+ addPage(domainModelFilePage);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public boolean performFinish() {
+ IRunnableWithProgress op = new WorkspaceModifyOperation(null) {
+
+ @Override
+ protected void execute(IProgressMonitor monitor)
+ throws CoreException, InterruptedException {
+ diagram = UMLDiagramEditorUtil.createDiagram(diagramModelFilePage.getURI(),
+ domainModelFilePage.getURI(),
+ monitor);
+ if (isOpenNewlyCreatedDiagramEditor() && diagram != null) {
+ try {
+ UMLDiagramEditorUtil.openDiagram(diagram);
+ } catch (PartInitException e) {
+ ErrorDialog.openError(getContainer().getShell(),
+ Messages.UMLCreationWizardOpenEditorError, null, e.getStatus());
+ }
+ }
+ }
+ };
+ try {
+ getContainer().run(false, true, op);
+ } catch (InterruptedException e) {
+ return false;
+ } catch (InvocationTargetException e) {
+ if (e.getTargetException() instanceof CoreException) {
+ ErrorDialog.openError(getContainer().getShell(),
+ Messages.UMLCreationWizardCreationError, null,
+ ((CoreException) e.getTargetException()).getStatus());
+ } else {
+ UMLDiagramEditorPlugin.getInstance().logError(
+ "Error creating diagram", e.getTargetException()); //$NON-NLS-1$
+ }
+ return false;
+ }
+ return diagram != null;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLCreationWizardPage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLCreationWizardPage.java
index 923815d0069..cafc02a3a3e 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLCreationWizardPage.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLCreationWizardPage.java
@@ -1,98 +1,98 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.osgi.util.NLS;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.dialogs.WizardNewFileCreationPage;
-
-/**
- * @generated
- */
-public class UMLCreationWizardPage extends WizardNewFileCreationPage {
-
- /**
- * @generated
- */
- private final String fileExtension;
-
- /**
- * @generated
- */
- public UMLCreationWizardPage(String pageName, IStructuredSelection selection, String fileExtension) {
- super(pageName, selection);
- this.fileExtension = fileExtension;
- }
-
- /**
- * Override to create files with this extension.
- *
- * @generated
- */
- protected String getExtension() {
- return fileExtension;
- }
-
- /**
- * @generated
- */
- public URI getURI() {
- return URI.createPlatformResourceURI(getFilePath().toString(), false);
- }
-
- /**
- * @generated
- */
- protected IPath getFilePath() {
- IPath path = getContainerFullPath();
- if (path == null) {
- path = new Path(""); //$NON-NLS-1$
- }
- String fileName = getFileName();
- if (fileName != null) {
- path = path.append(fileName);
- }
- return path;
- }
-
- /**
- * @generated
- */
- @Override
- public void createControl(Composite parent) {
- super.createControl(parent);
- setFileName(UMLDiagramEditorUtil.getUniqueFileName(
- getContainerFullPath(), getFileName(), getExtension()));
- setPageComplete(validatePage());
- }
-
- /**
- * @generated
- */
- @Override
- protected boolean validatePage() {
- if (!super.validatePage()) {
- return false;
- }
- String extension = getExtension();
- if (extension != null && !getFilePath().toString().endsWith("." + extension)) {
- setErrorMessage(NLS.bind(
- Messages.UMLCreationWizardPageExtensionError, extension));
- return false;
- }
- return true;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.dialogs.WizardNewFileCreationPage;
+
+/**
+ * @generated
+ */
+public class UMLCreationWizardPage extends WizardNewFileCreationPage {
+
+ /**
+ * @generated
+ */
+ private final String fileExtension;
+
+ /**
+ * @generated
+ */
+ public UMLCreationWizardPage(String pageName, IStructuredSelection selection, String fileExtension) {
+ super(pageName, selection);
+ this.fileExtension = fileExtension;
+ }
+
+ /**
+ * Override to create files with this extension.
+ *
+ * @generated
+ */
+ protected String getExtension() {
+ return fileExtension;
+ }
+
+ /**
+ * @generated
+ */
+ public URI getURI() {
+ return URI.createPlatformResourceURI(getFilePath().toString(), false);
+ }
+
+ /**
+ * @generated
+ */
+ protected IPath getFilePath() {
+ IPath path = getContainerFullPath();
+ if (path == null) {
+ path = new Path(""); //$NON-NLS-1$
+ }
+ String fileName = getFileName();
+ if (fileName != null) {
+ path = path.append(fileName);
+ }
+ return path;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void createControl(Composite parent) {
+ super.createControl(parent);
+ setFileName(UMLDiagramEditorUtil.getUniqueFileName(
+ getContainerFullPath(), getFileName(), getExtension()));
+ setPageComplete(validatePage());
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected boolean validatePage() {
+ if (!super.validatePage()) {
+ return false;
+ }
+ String extension = getExtension();
+ if (extension != null && !getFilePath().toString().endsWith("." + extension)) {
+ setErrorMessage(NLS.bind(
+ Messages.UMLCreationWizardPageExtensionError, extension));
+ return false;
+ }
+ return true;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramActionBarContributor.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramActionBarContributor.java
index 28834d5608e..4c5613a1cbb 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramActionBarContributor.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramActionBarContributor.java
@@ -1,61 +1,61 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import org.eclipse.gmf.runtime.diagram.ui.parts.DiagramActionBarContributor;
-import org.eclipse.jface.action.GroupMarker;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.action.IMenuManager;
-import org.eclipse.ui.IActionBars;
-import org.eclipse.ui.IWorkbenchActionConstants;
-import org.eclipse.ui.IWorkbenchPage;
-
-/**
- * @generated
- */
-public class UMLDiagramActionBarContributor extends DiagramActionBarContributor {
-
- /**
- * @generated
- */
- @Override
- protected Class<UMLDiagramEditor> getEditorClass() {
- return UMLDiagramEditor.class;
- }
-
- /**
- * @generated
- */
- @Override
- protected String getEditorId() {
- return UMLDiagramEditor.ID;
- }
-
- /**
- * @generated
- */
- @Override
- public void init(IActionBars bars, IWorkbenchPage page) {
- super.init(bars, page);
- // print preview
- IMenuManager fileMenu = bars.getMenuManager().findMenuUsingPath(IWorkbenchActionConstants.M_FILE);
- assert fileMenu != null;
- fileMenu.remove("pageSetupAction"); //$NON-NLS-1$
- IMenuManager editMenu = bars.getMenuManager().findMenuUsingPath(IWorkbenchActionConstants.M_EDIT);
- assert editMenu != null;
- if (editMenu.find("validationGroup") == null) { //$NON-NLS-1$
- editMenu.add(new GroupMarker("validationGroup")); //$NON-NLS-1$
- }
- IAction validateAction = new ValidateAction(page);
- editMenu.appendToGroup("validationGroup", validateAction); //$NON-NLS-1$
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import org.eclipse.gmf.runtime.diagram.ui.parts.DiagramActionBarContributor;
+import org.eclipse.jface.action.GroupMarker;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.ui.IActionBars;
+import org.eclipse.ui.IWorkbenchActionConstants;
+import org.eclipse.ui.IWorkbenchPage;
+
+/**
+ * @generated
+ */
+public class UMLDiagramActionBarContributor extends DiagramActionBarContributor {
+
+ /**
+ * @generated
+ */
+ @Override
+ protected Class<UMLDiagramEditor> getEditorClass() {
+ return UMLDiagramEditor.class;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getEditorId() {
+ return UMLDiagramEditor.ID;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void init(IActionBars bars, IWorkbenchPage page) {
+ super.init(bars, page);
+ // print preview
+ IMenuManager fileMenu = bars.getMenuManager().findMenuUsingPath(IWorkbenchActionConstants.M_FILE);
+ assert fileMenu != null;
+ fileMenu.remove("pageSetupAction"); //$NON-NLS-1$
+ IMenuManager editMenu = bars.getMenuManager().findMenuUsingPath(IWorkbenchActionConstants.M_EDIT);
+ assert editMenu != null;
+ if (editMenu.find("validationGroup") == null) { //$NON-NLS-1$
+ editMenu.add(new GroupMarker("validationGroup")); //$NON-NLS-1$
+ }
+ IAction validateAction = new ValidateAction(page);
+ editMenu.appendToGroup("validationGroup", validateAction); //$NON-NLS-1$
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditor.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditor.java
index 4281d209393..78793e941b1 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditor.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditor.java
@@ -1,550 +1,549 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import java.util.EventObject;
-
-import org.eclipse.core.commands.operations.IUndoContext;
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gef.GraphicalViewer;
-import org.eclipse.gef.KeyHandler;
-import org.eclipse.gef.Tool;
-import org.eclipse.gef.commands.CommandStackListener;
-import org.eclipse.gef.palette.PaletteRoot;
-import org.eclipse.gef.ui.palette.PaletteViewer;
-import org.eclipse.gef.ui.palette.PaletteViewerProvider;
-import org.eclipse.gmf.runtime.common.core.service.IProviderChangeListener;
-import org.eclipse.gmf.runtime.common.core.service.ProviderChangeEvent;
-import org.eclipse.gmf.runtime.common.ui.services.marker.MarkerNavigationService;
-import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
-import org.eclipse.gmf.runtime.diagram.ui.actions.ActionIds;
-import org.eclipse.gmf.runtime.diagram.ui.internal.parts.PaletteToolTransferDragSourceListener;
-import org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocumentProvider;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.jface.util.LocalSelectionTransfer;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.papyrus.commands.util.OperationHistoryDirtyState;
-import org.eclipse.papyrus.infra.core.editor.IMultiDiagramEditor;
-import org.eclipse.papyrus.infra.core.services.ServiceException;
-import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
-import org.eclipse.papyrus.infra.gmfdiag.common.GmfMultiDiagramDocumentProvider;
-import org.eclipse.papyrus.uml.diagram.common.listeners.DropTargetListener;
-import org.eclipse.papyrus.uml.diagram.common.part.PapyrusPaletteContextMenuProvider;
-import org.eclipse.papyrus.uml.diagram.common.part.PapyrusPaletteViewer;
-import org.eclipse.papyrus.uml.diagram.common.part.UmlGmfDiagramEditor;
-import org.eclipse.papyrus.uml.diagram.common.service.PapyrusPaletteService;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.dnd.TransferData;
-import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.events.MouseEvent;
-import org.eclipse.swt.events.MouseListener;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IWorkbenchPart;
-import org.eclipse.ui.ide.IGotoMarker;
-import org.eclipse.ui.part.ShowInContext;
-
-/**
- * @generated
- */
-public class UMLDiagramEditor extends UmlGmfDiagramEditor implements IProviderChangeListener, IGotoMarker {
-
- /**
- * @generated
- */
- public static final String ID = "org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorID"; //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final String CONTEXT_ID = "org.eclipse.papyrus.uml.diagram.deployment.ui.diagramContext"; //$NON-NLS-1$
-
- /**
- * @generated
- */
- private KeyHandler paletteKeyHandler = null;
-
- /**
- * @generated
- */
- private MouseListener paletteMouseListener = null;
-
- /**
- * @generated
- */
- private OperationHistoryDirtyState dirtyState;
-
- /**
- * @generated
- */
- private TransactionalEditingDomain editingDomain;
-
- /**
- * @generated
- */
- private IDocumentProvider documentProvider;
-
- /**
- * @generated
- */
- public UMLDiagramEditor(ServicesRegistry servicesRegistry, Diagram diagram) throws ServiceException {
- super(servicesRegistry, diagram);
-
- // adds a listener to the palette service, which reacts to palette customizations
- PapyrusPaletteService.getInstance().addProviderChangeListener(this);
-
- // Share the same editing provider
- editingDomain = servicesRegistry.getService(TransactionalEditingDomain.class);
- documentProvider = new GmfMultiDiagramDocumentProvider(editingDomain);
-
- // overrides editing domain created by super constructor
- setDocumentProvider(documentProvider);
-
- }
-
- /**
- * @generated
- */
- @Override
- protected String getContextID() {
- return CONTEXT_ID;
- }
-
- /**
- * @generated
- */
- @Override
- protected PaletteRoot createPaletteRoot(PaletteRoot existingPaletteRoot) {
- PaletteRoot paletteRoot;
- if (existingPaletteRoot == null) {
- paletteRoot = PapyrusPaletteService.getInstance().createPalette(this, getDefaultPaletteContent());
- } else {
- PapyrusPaletteService.getInstance().updatePalette(existingPaletteRoot, this, getDefaultPaletteContent());
- paletteRoot = existingPaletteRoot;
- }
- applyCustomizationsToPalette(paletteRoot);
- return paletteRoot;
- }
-
- /**
- * @generated
- */
- @Override
- protected PreferencesHint getPreferencesHint() {
- return UMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT;
- }
-
- /**
- * @generated
- */
- @Override
- public String getContributorId() {
- return UMLDiagramEditorPlugin.ID;
- }
-
- /**
- * @generated
- */
- @Override
- protected final IDocumentProvider getDocumentProvider(IEditorInput input) {
- return documentProvider;
- }
-
- /**
- * @generated
- */
- @Override
- public TransactionalEditingDomain getEditingDomain() {
- return editingDomain;
- }
-
- /**
- * @generated
- */
- @Override
- protected final void setDocumentProvider(IEditorInput input) {
- // Already set in the constructor
- }
-
- /**
- * @generated
- */
- @Override
- public void gotoMarker(IMarker marker) {
- MarkerNavigationService.getInstance().gotoMarker(this, marker);
- }
-
- /**
- * @generated
- */
- @Override
- public boolean isSaveAsAllowed() {
- return true;
- }
-
- /**
- * @generated
- */
- @Override
- public void doSaveAs() {
- performSaveAs(new NullProgressMonitor());
- }
-
- /**
- * @generated
- */
- @Override
- protected void performSaveAs(IProgressMonitor progressMonitor) {
- // Nothing
- }
-
- /**
- * @generated
- */
- @Override
- public ShowInContext getShowInContext() {
- return new ShowInContext(getEditorInput(), getGraphicalViewer().getSelection());
- }
-
- /**
- * @generated
- */
- @Override
- protected void configureGraphicalViewer() {
- super.configureGraphicalViewer();
- DiagramEditorContextMenuProvider provider =
- new DiagramEditorContextMenuProvider(this, getDiagramGraphicalViewer());
- getDiagramGraphicalViewer().setContextMenu(provider);
- getSite().registerContextMenu(ActionIds.DIAGRAM_EDITOR_CONTEXT_MENU, provider, getDiagramGraphicalViewer());
- }
-
- /**
- * @generated
- */
- @Override
- protected TransactionalEditingDomain createEditingDomain() {
- // Already configured
- return editingDomain;
- }
-
- /**
- * @generated
- */
- @Override
- protected void configureDiagramEditDomain() {
- super.configureDiagramEditDomain();
- getDiagramEditDomain().getDiagramCommandStack().addCommandStackListener(new CommandStackListener() {
-
- @Override
- public void commandStackChanged(EventObject event) {
- firePropertyChange(IEditorPart.PROP_DIRTY);
- }
- });
- }
-
- /**
- * @generated
- */
- @Override
- public void doSave(IProgressMonitor progressMonitor) {
- // The saving of the resource is done by the CoreMultiDiagramEditor
- getDirtyState().saved();
- }
-
- /**
- * @generated
- */
- protected OperationHistoryDirtyState getDirtyState() {
- if (dirtyState == null) {
- dirtyState = OperationHistoryDirtyState.newInstance(getUndoContext(), getOperationHistory());
- }
- return dirtyState;
- }
-
- /**
- * @generated
- */
- @Override
- protected void setUndoContext(IUndoContext context) {
- if (dirtyState != null) {
- dirtyState.dispose();
- dirtyState = null;
- }
-
- super.setUndoContext(context);
- }
-
- /**
- * @generated
- */
- @Override
- public boolean isDirty() {
- return getDirtyState().isDirty();
- }
-
- /**
- * @generated
- */
- @Override
- public void providerChanged(ProviderChangeEvent event) {
- // update the palette if the palette service has changed
- if (PapyrusPaletteService.getInstance().equals(event.getSource())) {
- PapyrusPaletteService.getInstance().updatePalette(getPaletteViewer().getPaletteRoot(), this,
- getDefaultPaletteContent());
- }
- }
-
- /**
- * @generated
- */
- @Override
- public void dispose() {
- // remove palette service listener
- // remove preference listener
- PapyrusPaletteService.getInstance().removeProviderChangeListener(this);
-
- if (dirtyState != null) {
- dirtyState.dispose();
- dirtyState = null;
- }
-
- super.dispose();
- }
-
- /**
- * @generated
- */
- protected PaletteViewer getPaletteViewer() {
- return getEditDomain().getPaletteViewer();
- }
-
- /**
- * @generated
- */
- @Override
- protected PaletteViewer constructPaletteViewer() {
- return new PapyrusPaletteViewer();
- }
-
- /**
- * @generated
- */
- @Override
- protected PaletteViewerProvider createPaletteViewerProvider() {
- getEditDomain().setPaletteRoot(createPaletteRoot(null));
- return new PaletteViewerProvider(getEditDomain()) {
-
- /**
- * Override to provide the additional behavior for the tools. Will intialize with a
- * PaletteEditPartFactory that has a TrackDragger that understand how to handle the
- * mouseDoubleClick event for shape creation tools. Also will initialize the palette
- * with a defaultTool that is the SelectToolEx that undestands how to handle the enter
- * key which will result in the creation of the shape also.
- */
- @Override
- protected void configurePaletteViewer(PaletteViewer viewer) {
- super.configurePaletteViewer(viewer);
-
- // customize menu...
- viewer.setContextMenu(new PapyrusPaletteContextMenuProvider(viewer));
-
- viewer.getKeyHandler().setParent(getPaletteKeyHandler());
- viewer.getControl().addMouseListener(getPaletteMouseListener());
-
- // Add a transfer drag target listener that is supported on
- // palette template entries whose template is a creation tool.
- // This will enable drag and drop of the palette shape creation
- // tools.
- viewer.addDragSourceListener(new PaletteToolTransferDragSourceListener(viewer));
- viewer.setCustomizer(createPaletteCustomizer());
- }
-
- @Override
- public PaletteViewer createPaletteViewer(Composite parent) {
- PaletteViewer pViewer = constructPaletteViewer();
- pViewer.createControl(parent);
- configurePaletteViewer(pViewer);
- hookPaletteViewer(pViewer);
- return pViewer;
- }
-
- /**
- * @return Palette Key Handler for the palette
- */
- private KeyHandler getPaletteKeyHandler() {
-
- if (paletteKeyHandler == null) {
-
- paletteKeyHandler = new KeyHandler() {
-
- /**
- * Processes a <i>key released </i> event. This method is called by the Tool
- * whenever a key is released, and the Tool is in the proper state. Override
- * to support pressing the enter key to create a shape or connection
- * (between two selected shapes)
- *
- * @param event
- * the KeyEvent
- * @return <code>true</code> if KeyEvent was handled in some way
- */
- @Override
- public boolean keyReleased(KeyEvent event) {
-
- if (event.keyCode == SWT.Selection) {
-
- Tool tool = getPaletteViewer().getActiveTool().createTool();
-
- if (toolSupportsAccessibility(tool)) {
-
- tool.keyUp(event, getDiagramGraphicalViewer());
-
- // deactivate current selection
- getPaletteViewer().setActiveTool(null);
-
- return true;
- }
-
- }
- return super.keyReleased(event);
- }
-
- };
-
- }
- return paletteKeyHandler;
- }
-
- /**
- * @return Palette Mouse listener for the palette
- */
- private MouseListener getPaletteMouseListener() {
-
- if (paletteMouseListener == null) {
-
- paletteMouseListener = new MouseListener() {
-
- /**
- * Flag to indicate that the current active tool should be cleared after a
- * mouse double-click event.
- */
- private boolean clearActiveTool = false;
-
- /**
- * Override to support double-clicking a palette tool entry to create a
- * shape or connection (between two selected shapes).
- *
- * @see MouseListener#mouseDoubleClick(MouseEvent)
- */
- @Override
- public void mouseDoubleClick(MouseEvent e) {
- Tool tool = getPaletteViewer().getActiveTool().createTool();
-
- if (toolSupportsAccessibility(tool)) {
-
- tool.setViewer(getDiagramGraphicalViewer());
- tool.setEditDomain(getDiagramGraphicalViewer().getEditDomain());
- tool.mouseDoubleClick(e, getDiagramGraphicalViewer());
-
- // Current active tool should be deactivated,
- // but if it is down here it will get
- // reactivated deep in GEF palette code after
- // receiving mouse up events.
- clearActiveTool = true;
- }
- }
-
- @Override
- public void mouseDown(MouseEvent e) {
- // do nothing
- }
-
- @Override
- public void mouseUp(MouseEvent e) {
- // Deactivate current active tool here if a
- // double-click was handled.
- if (clearActiveTool) {
- getPaletteViewer().setActiveTool(null);
- clearActiveTool = false;
- }
-
- }
- };
-
- }
- return paletteMouseListener;
- }
-
- };
- }
-
- /**
- * @generated
- */
- @Override
- public GraphicalViewer getGraphicalViewer() {
- return super.getGraphicalViewer();
- }
-
- /**
- * @generated
- */
- @Override
- protected void initializeGraphicalViewer() {
- super.initializeGraphicalViewer();
-
- // Enable Drop
- getDiagramGraphicalViewer().addDropTargetListener(
- new DropTargetListener(getDiagramGraphicalViewer(), LocalSelectionTransfer.getTransfer()) {
-
- @Override
- protected Object getJavaObject(TransferData data) {
- // It is usual for the transfer data not to be set because it is available locally
- return LocalSelectionTransfer.getTransfer().getSelection();
- }
-
- @Override
- protected TransactionalEditingDomain getTransactionalEditingDomain() {
- return getEditingDomain();
- }
- });
-
- }
-
- /**
- * @generated
- */
- @Override
- public void selectionChanged(IWorkbenchPart part, ISelection selection) {
- if (getSite().getPage().getActiveEditor() instanceof IMultiDiagramEditor) {
- IMultiDiagramEditor editor = (IMultiDiagramEditor) getSite().getPage().getActiveEditor();
- // If not the active editor, ignore selection changed.
- if (this.equals(editor.getActiveEditor())) {
- updateActions(getSelectionActions());
- super.selectionChanged(part, selection);
- } else {
- super.selectionChanged(part, selection);
- }
- } else {
- super.selectionChanged(part, selection);
- }
- // from
- // org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.selectionChanged(IWorkbenchPart,
- // ISelection)
- if (part == this) {
- rebuildStatusLine();
- }
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import java.util.EventObject;
+
+import org.eclipse.core.commands.operations.IUndoContext;
+import org.eclipse.core.resources.IMarker;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gef.GraphicalViewer;
+import org.eclipse.gef.KeyHandler;
+import org.eclipse.gef.Tool;
+import org.eclipse.gef.commands.CommandStackListener;
+import org.eclipse.gef.palette.PaletteRoot;
+import org.eclipse.gef.ui.palette.PaletteViewer;
+import org.eclipse.gef.ui.palette.PaletteViewerProvider;
+import org.eclipse.gmf.runtime.common.core.service.IProviderChangeListener;
+import org.eclipse.gmf.runtime.common.core.service.ProviderChangeEvent;
+import org.eclipse.gmf.runtime.common.ui.services.marker.MarkerNavigationService;
+import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
+import org.eclipse.gmf.runtime.diagram.ui.actions.ActionIds;
+import org.eclipse.gmf.runtime.diagram.ui.internal.parts.PaletteToolTransferDragSourceListener;
+import org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocumentProvider;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.jface.util.LocalSelectionTransfer;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.papyrus.commands.util.OperationHistoryDirtyState;
+import org.eclipse.papyrus.infra.core.editor.IMultiDiagramEditor;
+import org.eclipse.papyrus.infra.core.services.ServiceException;
+import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
+import org.eclipse.papyrus.infra.gmfdiag.common.GmfMultiDiagramDocumentProvider;
+import org.eclipse.papyrus.uml.diagram.common.listeners.DropTargetListener;
+import org.eclipse.papyrus.uml.diagram.common.part.PapyrusPaletteContextMenuProvider;
+import org.eclipse.papyrus.uml.diagram.common.part.PapyrusPaletteViewer;
+import org.eclipse.papyrus.uml.diagram.common.part.UmlGmfDiagramEditor;
+import org.eclipse.papyrus.uml.diagram.common.service.PapyrusPaletteService;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.dnd.TransferData;
+import org.eclipse.swt.events.KeyEvent;
+import org.eclipse.swt.events.MouseEvent;
+import org.eclipse.swt.events.MouseListener;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.ide.IGotoMarker;
+import org.eclipse.ui.part.ShowInContext;
+
+/**
+ * @generated
+ */
+public class UMLDiagramEditor extends UmlGmfDiagramEditor implements IProviderChangeListener, IGotoMarker {
+
+ /**
+ * @generated
+ */
+ public static final String ID = "org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorID"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final String CONTEXT_ID = "org.eclipse.papyrus.uml.diagram.deployment.ui.diagramContext"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private KeyHandler paletteKeyHandler = null;
+
+ /**
+ * @generated
+ */
+ private MouseListener paletteMouseListener = null;
+
+ /**
+ * @generated
+ */
+ private OperationHistoryDirtyState dirtyState;
+
+ /**
+ * @generated
+ */
+ private TransactionalEditingDomain editingDomain;
+
+ /**
+ * @generated
+ */
+ private IDocumentProvider documentProvider;
+
+ /**
+ * @generated
+ */
+ public UMLDiagramEditor(ServicesRegistry servicesRegistry, Diagram diagram) throws ServiceException {
+ super(servicesRegistry, diagram);
+
+ // adds a listener to the palette service, which reacts to palette customizations
+ PapyrusPaletteService.getInstance().addProviderChangeListener(this);
+
+ // Share the same editing provider
+ editingDomain = servicesRegistry.getService(TransactionalEditingDomain.class);
+ documentProvider = new GmfMultiDiagramDocumentProvider(editingDomain);
+
+ // overrides editing domain created by super constructor
+ setDocumentProvider(documentProvider);
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getContextID() {
+ return CONTEXT_ID;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected PaletteRoot createPaletteRoot(PaletteRoot existingPaletteRoot) {
+ PaletteRoot paletteRoot;
+ if (existingPaletteRoot == null) {
+ paletteRoot = PapyrusPaletteService.getInstance().createPalette(this, getDefaultPaletteContent());
+ } else {
+ PapyrusPaletteService.getInstance().updatePalette(existingPaletteRoot, this, getDefaultPaletteContent());
+ paletteRoot = existingPaletteRoot;
+ }
+ applyCustomizationsToPalette(paletteRoot);
+ return paletteRoot;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected PreferencesHint getPreferencesHint() {
+ return UMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getContributorId() {
+ return UMLDiagramEditorPlugin.ID;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected final IDocumentProvider getDocumentProvider(IEditorInput input) {
+ return documentProvider;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public TransactionalEditingDomain getEditingDomain() {
+ return editingDomain;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected final void setDocumentProvider(IEditorInput input) {
+ // Already set in the constructor
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void gotoMarker(IMarker marker) {
+ MarkerNavigationService.getInstance().gotoMarker(this, marker);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public boolean isSaveAsAllowed() {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void doSaveAs() {
+ performSaveAs(new NullProgressMonitor());
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void performSaveAs(IProgressMonitor progressMonitor) {
+ // Nothing
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ShowInContext getShowInContext() {
+ return new ShowInContext(getEditorInput(), getGraphicalViewer().getSelection());
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void configureGraphicalViewer() {
+ super.configureGraphicalViewer();
+ DiagramEditorContextMenuProvider provider = new DiagramEditorContextMenuProvider(this, getDiagramGraphicalViewer());
+ getDiagramGraphicalViewer().setContextMenu(provider);
+ getSite().registerContextMenu(ActionIds.DIAGRAM_EDITOR_CONTEXT_MENU, provider, getDiagramGraphicalViewer());
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected TransactionalEditingDomain createEditingDomain() {
+ // Already configured
+ return editingDomain;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void configureDiagramEditDomain() {
+ super.configureDiagramEditDomain();
+ getDiagramEditDomain().getDiagramCommandStack().addCommandStackListener(new CommandStackListener() {
+
+ @Override
+ public void commandStackChanged(EventObject event) {
+ firePropertyChange(IEditorPart.PROP_DIRTY);
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void doSave(IProgressMonitor progressMonitor) {
+ // The saving of the resource is done by the CoreMultiDiagramEditor
+ getDirtyState().saved();
+ }
+
+ /**
+ * @generated
+ */
+ protected OperationHistoryDirtyState getDirtyState() {
+ if (dirtyState == null) {
+ dirtyState = OperationHistoryDirtyState.newInstance(getUndoContext(), getOperationHistory());
+ }
+ return dirtyState;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setUndoContext(IUndoContext context) {
+ if (dirtyState != null) {
+ dirtyState.dispose();
+ dirtyState = null;
+ }
+
+ super.setUndoContext(context);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public boolean isDirty() {
+ return getDirtyState().isDirty();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void providerChanged(ProviderChangeEvent event) {
+ // update the palette if the palette service has changed
+ if (PapyrusPaletteService.getInstance().equals(event.getSource())) {
+ PapyrusPaletteService.getInstance().updatePalette(getPaletteViewer().getPaletteRoot(), this,
+ getDefaultPaletteContent());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void dispose() {
+ // remove palette service listener
+ // remove preference listener
+ PapyrusPaletteService.getInstance().removeProviderChangeListener(this);
+
+ if (dirtyState != null) {
+ dirtyState.dispose();
+ dirtyState = null;
+ }
+
+ super.dispose();
+ }
+
+ /**
+ * @generated
+ */
+ protected PaletteViewer getPaletteViewer() {
+ return getEditDomain().getPaletteViewer();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected PaletteViewer constructPaletteViewer() {
+ return new PapyrusPaletteViewer();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected PaletteViewerProvider createPaletteViewerProvider() {
+ getEditDomain().setPaletteRoot(createPaletteRoot(null));
+ return new PaletteViewerProvider(getEditDomain()) {
+
+ /**
+ * Override to provide the additional behavior for the tools. Will intialize with a
+ * PaletteEditPartFactory that has a TrackDragger that understand how to handle the
+ * mouseDoubleClick event for shape creation tools. Also will initialize the palette
+ * with a defaultTool that is the SelectToolEx that undestands how to handle the enter
+ * key which will result in the creation of the shape also.
+ */
+ @Override
+ protected void configurePaletteViewer(PaletteViewer viewer) {
+ super.configurePaletteViewer(viewer);
+
+ // customize menu...
+ viewer.setContextMenu(new PapyrusPaletteContextMenuProvider(viewer));
+
+ viewer.getKeyHandler().setParent(getPaletteKeyHandler());
+ viewer.getControl().addMouseListener(getPaletteMouseListener());
+
+ // Add a transfer drag target listener that is supported on
+ // palette template entries whose template is a creation tool.
+ // This will enable drag and drop of the palette shape creation
+ // tools.
+ viewer.addDragSourceListener(new PaletteToolTransferDragSourceListener(viewer));
+ viewer.setCustomizer(createPaletteCustomizer());
+ }
+
+ @Override
+ public PaletteViewer createPaletteViewer(Composite parent) {
+ PaletteViewer pViewer = constructPaletteViewer();
+ pViewer.createControl(parent);
+ configurePaletteViewer(pViewer);
+ hookPaletteViewer(pViewer);
+ return pViewer;
+ }
+
+ /**
+ * @return Palette Key Handler for the palette
+ */
+ private KeyHandler getPaletteKeyHandler() {
+
+ if (paletteKeyHandler == null) {
+
+ paletteKeyHandler = new KeyHandler() {
+
+ /**
+ * Processes a <i>key released </i> event. This method is called by the Tool
+ * whenever a key is released, and the Tool is in the proper state. Override
+ * to support pressing the enter key to create a shape or connection
+ * (between two selected shapes)
+ *
+ * @param event
+ * the KeyEvent
+ * @return <code>true</code> if KeyEvent was handled in some way
+ */
+ @Override
+ public boolean keyReleased(KeyEvent event) {
+
+ if (event.keyCode == SWT.Selection) {
+
+ Tool tool = getPaletteViewer().getActiveTool().createTool();
+
+ if (toolSupportsAccessibility(tool)) {
+
+ tool.keyUp(event, getDiagramGraphicalViewer());
+
+ // deactivate current selection
+ getPaletteViewer().setActiveTool(null);
+
+ return true;
+ }
+
+ }
+ return super.keyReleased(event);
+ }
+
+ };
+
+ }
+ return paletteKeyHandler;
+ }
+
+ /**
+ * @return Palette Mouse listener for the palette
+ */
+ private MouseListener getPaletteMouseListener() {
+
+ if (paletteMouseListener == null) {
+
+ paletteMouseListener = new MouseListener() {
+
+ /**
+ * Flag to indicate that the current active tool should be cleared after a
+ * mouse double-click event.
+ */
+ private boolean clearActiveTool = false;
+
+ /**
+ * Override to support double-clicking a palette tool entry to create a
+ * shape or connection (between two selected shapes).
+ *
+ * @see MouseListener#mouseDoubleClick(MouseEvent)
+ */
+ @Override
+ public void mouseDoubleClick(MouseEvent e) {
+ Tool tool = getPaletteViewer().getActiveTool().createTool();
+
+ if (toolSupportsAccessibility(tool)) {
+
+ tool.setViewer(getDiagramGraphicalViewer());
+ tool.setEditDomain(getDiagramGraphicalViewer().getEditDomain());
+ tool.mouseDoubleClick(e, getDiagramGraphicalViewer());
+
+ // Current active tool should be deactivated,
+ // but if it is down here it will get
+ // reactivated deep in GEF palette code after
+ // receiving mouse up events.
+ clearActiveTool = true;
+ }
+ }
+
+ @Override
+ public void mouseDown(MouseEvent e) {
+ // do nothing
+ }
+
+ @Override
+ public void mouseUp(MouseEvent e) {
+ // Deactivate current active tool here if a
+ // double-click was handled.
+ if (clearActiveTool) {
+ getPaletteViewer().setActiveTool(null);
+ clearActiveTool = false;
+ }
+
+ }
+ };
+
+ }
+ return paletteMouseListener;
+ }
+
+ };
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public GraphicalViewer getGraphicalViewer() {
+ return super.getGraphicalViewer();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void initializeGraphicalViewer() {
+ super.initializeGraphicalViewer();
+
+ // Enable Drop
+ getDiagramGraphicalViewer().addDropTargetListener(
+ new DropTargetListener(getDiagramGraphicalViewer(), LocalSelectionTransfer.getTransfer()) {
+
+ @Override
+ protected Object getJavaObject(TransferData data) {
+ // It is usual for the transfer data not to be set because it is available locally
+ return LocalSelectionTransfer.getTransfer().getSelection();
+ }
+
+ @Override
+ protected TransactionalEditingDomain getTransactionalEditingDomain() {
+ return getEditingDomain();
+ }
+ });
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void selectionChanged(IWorkbenchPart part, ISelection selection) {
+ if (getSite().getPage().getActiveEditor() instanceof IMultiDiagramEditor) {
+ IMultiDiagramEditor editor = (IMultiDiagramEditor) getSite().getPage().getActiveEditor();
+ // If not the active editor, ignore selection changed.
+ if (this.equals(editor.getActiveEditor())) {
+ updateActions(getSelectionActions());
+ super.selectionChanged(part, selection);
+ } else {
+ super.selectionChanged(part, selection);
+ }
+ } else {
+ super.selectionChanged(part, selection);
+ }
+ // from
+ // org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditor.selectionChanged(IWorkbenchPart,
+ // ISelection)
+ if (part == this) {
+ rebuildStatusLine();
+ }
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditorPlugin.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditorPlugin.java
index 36cad0d14c0..eb0959d72d6 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditorPlugin.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditorPlugin.java
@@ -1,302 +1,301 @@
-/**
- * Copyright (c) 2014 CEA LIST and others.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- * Christian W. Damus (CEA) - bug 410346
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry;
-import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
-import org.eclipse.jface.preference.IPreferenceStore;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.papyrus.infra.core.log.LogHelper;
-import org.eclipse.papyrus.infra.gmfdiag.preferences.Activator;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLBaseItemSemanticEditPolicy;
-import org.eclipse.papyrus.uml.diagram.deployment.expressions.UMLOCLFactory;
-import org.eclipse.papyrus.uml.diagram.deployment.preferences.DiagramPreferenceInitializer;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * @generated
- */
-public class UMLDiagramEditorPlugin extends AbstractUIPlugin {
-
- /**
- * @generated
- */
- public static final String ID = "org.eclipse.papyrus.uml.diagram.deployment"; //$NON-NLS-1$
-
- /**
- * @generated
- */
- private LogHelper myLogHelper;
-
- /**
- * @generated
- */
- public static final PreferencesHint DIAGRAM_PREFERENCES_HINT = new PreferencesHint(ID);
-
- /**
- * @generated
- */
- private static UMLDiagramEditorPlugin instance;
-
- /**
- * @generated
- */
- private AdapterFactory adapterFactory;
-
- /**
- * @generated
- */
- private UMLDocumentProvider documentProvider;
-
- /**
- * @generated
- */
- private UMLBaseItemSemanticEditPolicy.LinkConstraints linkConstraints;
-
- /**
- * @generated
- */
- private ElementInitializers initializers;
-
- /**
- * @generated
- */
- private UMLOCLFactory oclFactory;
-
- /**
- * @generated
- */
- public UMLDiagramEditorPlugin() {
- }
-
- /**
- * @generated
- */
- @Override
- public void start(BundleContext context) throws Exception {
- super.start(context);
- instance = this;
- myLogHelper = new LogHelper(this);
- PreferencesHint.registerPreferenceStore(DIAGRAM_PREFERENCES_HINT, getPreferenceStore());
- adapterFactory = org.eclipse.papyrus.infra.gmfdiag.common.Activator.getInstance().getItemProvidersAdapterFactory();
- DiagramPreferenceInitializer diagramPreferenceInitializer = new DiagramPreferenceInitializer();
- diagramPreferenceInitializer.initializeDefaultPreferences();
-
- }
-
- /**
- * @generated
- */
- @Override
- public void stop(BundleContext context) throws Exception {
- adapterFactory = null;
- linkConstraints = null;
- initializers = null;
- oclFactory = null;
- instance = null;
- super.stop(context);
- }
-
- /**
- * @generated
- */
- public static UMLDiagramEditorPlugin getInstance() {
- return instance;
- }
-
- /**
- * @generated
- */
- @Override
- public IPreferenceStore getPreferenceStore() {
- IPreferenceStore store = Activator.getDefault().getPreferenceStore();
- return store;
- }
-
- /**
- * @generated
- */
- public AdapterFactory getItemProvidersAdapterFactory() {
- return adapterFactory;
- }
-
- /**
- * @generated
- */
- public ImageDescriptor getItemImageDescriptor(Object item) {
- IItemLabelProvider labelProvider =
- (IItemLabelProvider) adapterFactory.adapt(
- item, IItemLabelProvider.class);
- if (labelProvider != null) {
- return ExtendedImageRegistry.getInstance().getImageDescriptor(
- labelProvider.getImage(item));
- }
- return null;
- }
-
- /**
- * Returns an image descriptor for the image file at the given
- * plug-in relative path.
- *
- * @generated
- * @param path
- * the path
- * @return the image descriptor
- */
- public static ImageDescriptor getBundledImageDescriptor(String path) {
- return AbstractUIPlugin.imageDescriptorFromPlugin(ID, path);
- }
-
- /**
- * Respects images residing in any plug-in. If path is relative,
- * then this bundle is looked up for the image, otherwise, for absolute
- * path, first segment is taken as id of plug-in with image
- *
- * @generated
- * @param path
- * the path to image, either absolute (with plug-in id as first segment), or relative for bundled images
- * @return the image descriptor
- */
- public static ImageDescriptor findImageDescriptor(String path) {
- final IPath p = new Path(path);
- if (p.isAbsolute() && p.segmentCount() > 1) {
- return AbstractUIPlugin.imageDescriptorFromPlugin(
- p.segment(0), p.removeFirstSegments(1).makeAbsolute().toString());
- } else {
- return getBundledImageDescriptor(p.makeAbsolute().toString());
- }
- }
-
- /**
- * Returns an image for the image file at the given plugin relative path.
- * Client do not need to dispose this image. Images will be disposed automatically.
- *
- * @generated
- * @param path
- * the path
- * @return image instance
- */
- public Image getBundledImage(String path) {
- Image image = getImageRegistry().get(path);
- if (image == null) {
- getImageRegistry().put(path, getBundledImageDescriptor(path));
- image = getImageRegistry().get(path);
- }
- return image;
- }
-
- /**
- * Returns string from plug-in's resource bundle
- *
- * @generated
- */
- public static String getString(String key) {
- return Platform.getResourceString(
- getInstance().getBundle(), "%" + key); //$NON-NLS-1$
- }
-
- /**
- * @generated
- */
- public UMLDocumentProvider getDocumentProvider() {
- if (documentProvider == null) {
- documentProvider = new UMLDocumentProvider();
- }
- return documentProvider;
- }
-
- /**
- * @generated
- */
- public UMLBaseItemSemanticEditPolicy.LinkConstraints getLinkConstraints() {
- return linkConstraints;
- }
-
- /**
- * @generated
- */
- public void setLinkConstraints(UMLBaseItemSemanticEditPolicy.LinkConstraints lc) {
- this.linkConstraints = lc;
- }
-
- /**
- * @generated
- */
- public ElementInitializers getElementInitializers() {
- return initializers;
- }
-
- /**
- * @generated
- */
- public void setElementInitializers(ElementInitializers i) {
- this.initializers = i;
- }
-
- /**
- * @generated
- */
- public UMLOCLFactory getUMLOCLFactory() {
- return oclFactory;
- }
-
- /**
- * @generated
- */
- public void setUMLOCLFactory(UMLOCLFactory f) {
- this.oclFactory = f;
- }
-
- /**
- * @generated
- */
- public void logError(String error) {
- getLogHelper().warn(error);
- }
-
- /**
- * @generated
- */
- public void logError(String error, Throwable throwable) {
- getLogHelper().error(error, throwable);
- }
-
- /**
- * @generated
- */
- public void logInfo(String message) {
- getLogHelper().info(message);
- }
-
- /**
- * @generated
- */
- public void logInfo(String message, Throwable throwable) {
- getLogHelper().error(message, throwable);
- }
-
- /**
- * @generated
- */
- public LogHelper getLogHelper() {
- return myLogHelper;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ * Christian W. Damus (CEA) - bug 410346
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry;
+import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.papyrus.infra.core.log.LogHelper;
+import org.eclipse.papyrus.infra.gmfdiag.preferences.Activator;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.policies.UMLBaseItemSemanticEditPolicy;
+import org.eclipse.papyrus.uml.diagram.deployment.expressions.UMLOCLFactory;
+import org.eclipse.papyrus.uml.diagram.deployment.preferences.DiagramPreferenceInitializer;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.ElementInitializers;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * @generated
+ */
+public class UMLDiagramEditorPlugin extends AbstractUIPlugin {
+
+ /**
+ * @generated
+ */
+ public static final String ID = "org.eclipse.papyrus.uml.diagram.deployment"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private LogHelper myLogHelper;
+
+ /**
+ * @generated
+ */
+ public static final PreferencesHint DIAGRAM_PREFERENCES_HINT = new PreferencesHint(ID);
+
+ /**
+ * @generated
+ */
+ private static UMLDiagramEditorPlugin instance;
+
+ /**
+ * @generated
+ */
+ private AdapterFactory adapterFactory;
+
+ /**
+ * @generated
+ */
+ private UMLDocumentProvider documentProvider;
+
+ /**
+ * @generated
+ */
+ private UMLBaseItemSemanticEditPolicy.LinkConstraints linkConstraints;
+
+ /**
+ * @generated
+ */
+ private ElementInitializers initializers;
+
+ /**
+ * @generated
+ */
+ private UMLOCLFactory oclFactory;
+
+ /**
+ * @generated
+ */
+ public UMLDiagramEditorPlugin() {
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ instance = this;
+ myLogHelper = new LogHelper(this);
+ PreferencesHint.registerPreferenceStore(DIAGRAM_PREFERENCES_HINT, getPreferenceStore());
+ adapterFactory = org.eclipse.papyrus.infra.gmfdiag.common.Activator.getInstance().getItemProvidersAdapterFactory();
+ DiagramPreferenceInitializer diagramPreferenceInitializer = new DiagramPreferenceInitializer();
+ diagramPreferenceInitializer.initializeDefaultPreferences();
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ adapterFactory = null;
+ linkConstraints = null;
+ initializers = null;
+ oclFactory = null;
+ instance = null;
+ super.stop(context);
+ }
+
+ /**
+ * @generated
+ */
+ public static UMLDiagramEditorPlugin getInstance() {
+ return instance;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IPreferenceStore getPreferenceStore() {
+ IPreferenceStore store = Activator.getDefault().getPreferenceStore();
+ return store;
+ }
+
+ /**
+ * @generated
+ */
+ public AdapterFactory getItemProvidersAdapterFactory() {
+ return adapterFactory;
+ }
+
+ /**
+ * @generated
+ */
+ public ImageDescriptor getItemImageDescriptor(Object item) {
+ IItemLabelProvider labelProvider = (IItemLabelProvider) adapterFactory.adapt(
+ item, IItemLabelProvider.class);
+ if (labelProvider != null) {
+ return ExtendedImageRegistry.getInstance().getImageDescriptor(
+ labelProvider.getImage(item));
+ }
+ return null;
+ }
+
+ /**
+ * Returns an image descriptor for the image file at the given
+ * plug-in relative path.
+ *
+ * @generated
+ * @param path
+ * the path
+ * @return the image descriptor
+ */
+ public static ImageDescriptor getBundledImageDescriptor(String path) {
+ return AbstractUIPlugin.imageDescriptorFromPlugin(ID, path);
+ }
+
+ /**
+ * Respects images residing in any plug-in. If path is relative,
+ * then this bundle is looked up for the image, otherwise, for absolute
+ * path, first segment is taken as id of plug-in with image
+ *
+ * @generated
+ * @param path
+ * the path to image, either absolute (with plug-in id as first segment), or relative for bundled images
+ * @return the image descriptor
+ */
+ public static ImageDescriptor findImageDescriptor(String path) {
+ final IPath p = new Path(path);
+ if (p.isAbsolute() && p.segmentCount() > 1) {
+ return AbstractUIPlugin.imageDescriptorFromPlugin(
+ p.segment(0), p.removeFirstSegments(1).makeAbsolute().toString());
+ } else {
+ return getBundledImageDescriptor(p.makeAbsolute().toString());
+ }
+ }
+
+ /**
+ * Returns an image for the image file at the given plugin relative path.
+ * Client do not need to dispose this image. Images will be disposed automatically.
+ *
+ * @generated
+ * @param path
+ * the path
+ * @return image instance
+ */
+ public Image getBundledImage(String path) {
+ Image image = getImageRegistry().get(path);
+ if (image == null) {
+ getImageRegistry().put(path, getBundledImageDescriptor(path));
+ image = getImageRegistry().get(path);
+ }
+ return image;
+ }
+
+ /**
+ * Returns string from plug-in's resource bundle
+ *
+ * @generated
+ */
+ public static String getString(String key) {
+ return Platform.getResourceString(
+ getInstance().getBundle(), "%" + key); //$NON-NLS-1$
+ }
+
+ /**
+ * @generated
+ */
+ public UMLDocumentProvider getDocumentProvider() {
+ if (documentProvider == null) {
+ documentProvider = new UMLDocumentProvider();
+ }
+ return documentProvider;
+ }
+
+ /**
+ * @generated
+ */
+ public UMLBaseItemSemanticEditPolicy.LinkConstraints getLinkConstraints() {
+ return linkConstraints;
+ }
+
+ /**
+ * @generated
+ */
+ public void setLinkConstraints(UMLBaseItemSemanticEditPolicy.LinkConstraints lc) {
+ this.linkConstraints = lc;
+ }
+
+ /**
+ * @generated
+ */
+ public ElementInitializers getElementInitializers() {
+ return initializers;
+ }
+
+ /**
+ * @generated
+ */
+ public void setElementInitializers(ElementInitializers i) {
+ this.initializers = i;
+ }
+
+ /**
+ * @generated
+ */
+ public UMLOCLFactory getUMLOCLFactory() {
+ return oclFactory;
+ }
+
+ /**
+ * @generated
+ */
+ public void setUMLOCLFactory(UMLOCLFactory f) {
+ this.oclFactory = f;
+ }
+
+ /**
+ * @generated
+ */
+ public void logError(String error) {
+ getLogHelper().warn(error);
+ }
+
+ /**
+ * @generated
+ */
+ public void logError(String error, Throwable throwable) {
+ getLogHelper().error(error, throwable);
+ }
+
+ /**
+ * @generated
+ */
+ public void logInfo(String message) {
+ getLogHelper().info(message);
+ }
+
+ /**
+ * @generated
+ */
+ public void logInfo(String message, Throwable throwable) {
+ getLogHelper().error(message, throwable);
+ }
+
+ /**
+ * @generated
+ */
+ public LogHelper getLogHelper() {
+ return myLogHelper;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditorUtil.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditorUtil.java
index 3e7ade10033..3b04794dbf7 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditorUtil.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramEditorUtil.java
@@ -1,362 +1,360 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import java.io.IOException;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.commands.operations.OperationHistoryFactory;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.SubProgressMonitor;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.xmi.XMLResource;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.emf.workspace.WorkspaceEditingDomainFactory;
-import org.eclipse.emf.workspace.util.WorkspaceSynchronizer;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.diagram.core.services.ViewService;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramGraphicalViewer;
-import org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart;
-import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand;
-import org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.part.DefaultDiagramEditorUtil;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.jface.wizard.Wizard;
-import org.eclipse.jface.wizard.WizardDialog;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.part.FileEditorInput;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.UMLFactory;
-
-/**
- * @generated
- */
-public class UMLDiagramEditorUtil {
-
- /**
- * @generated
- */
- public static Map<?, ?> getSaveOptions() {
- HashMap<String, Object> saveOptions = new HashMap<String, Object>();
- saveOptions.put(XMLResource.OPTION_ENCODING, "UTF-8"); //$NON-NLS-1$
- saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER);
- return saveOptions;
- }
-
- /**
- * @generated
- */
- public static boolean openDiagram(Resource diagram) throws PartInitException {
- String path = diagram.getURI().toPlatformString(true);
- IResource workspaceResource = ResourcesPlugin.getWorkspace().getRoot().findMember(new Path(path));
- if (workspaceResource instanceof IFile) {
- IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
- return null != page.openEditor(new FileEditorInput((IFile) workspaceResource), UMLDiagramEditor.ID);
- }
- return false;
- }
-
- /**
- * @generated
- */
- public static void setCharset(IFile file) {
- if (file == null) {
- return;
- }
- try {
- file.setCharset("UTF-8", new NullProgressMonitor()); //$NON-NLS-1$
- } catch (CoreException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Unable to set charset for file " + file.getFullPath(), e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public static String getUniqueFileName(IPath containerFullPath, String fileName, String extension) {
- return DefaultDiagramEditorUtil.getUniqueFileName(containerFullPath, fileName, extension,
- DefaultDiagramEditorUtil.EXISTS_IN_WORKSPACE);
- }
-
- /**
- * Runs the wizard in a dialog.
- *
- * @generated
- */
- public static void runWizard(Shell shell, Wizard wizard, String settingsKey) {
- IDialogSettings pluginDialogSettings = UMLDiagramEditorPlugin.getInstance().getDialogSettings();
- IDialogSettings wizardDialogSettings = pluginDialogSettings.getSection(settingsKey);
- if (wizardDialogSettings == null) {
- wizardDialogSettings = pluginDialogSettings.addNewSection(settingsKey);
- }
- wizard.setDialogSettings(wizardDialogSettings);
- WizardDialog dialog = new WizardDialog(shell, wizard);
- dialog.create();
- dialog.getShell().setSize(Math.max(500, dialog.getShell().getSize().x), 500);
- dialog.open();
- }
-
- /**
- * This method should be called within a workspace modify operation since it creates resources.
- *
- * @generated
- */
- public static Resource createDiagram(URI diagramURI, URI modelURI, IProgressMonitor progressMonitor) {
- TransactionalEditingDomain editingDomain = WorkspaceEditingDomainFactory.INSTANCE.createEditingDomain();
- progressMonitor.beginTask(Messages.UMLDiagramEditorUtil_CreateDiagramProgressTask, 3);
- final Resource diagramResource = editingDomain.getResourceSet().createResource(diagramURI);
- final Resource modelResource = editingDomain.getResourceSet().createResource(modelURI);
- final String diagramName = diagramURI.lastSegment();
- AbstractTransactionalCommand command = new AbstractTransactionalCommand(editingDomain, Messages.UMLDiagramEditorUtil_CreateDiagramCommandLabel, Collections.EMPTY_LIST) {
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- Package model = createInitialModel();
- attachModelToResource(model, modelResource);
-
- Diagram diagram = ViewService.createDiagram(
- model,
- DeploymentDiagramEditPart.MODEL_ID, UMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT);
- if (diagram != null) {
- diagramResource.getContents().add(diagram);
- diagram.setName(diagramName);
- diagram.setElement(model);
- }
-
- try {
- modelResource.save(org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorUtil.getSaveOptions());
- diagramResource.save(org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorUtil.getSaveOptions());
- } catch (IOException e) {
-
- UMLDiagramEditorPlugin.getInstance().logError("Unable to store model and diagram resources", e); //$NON-NLS-1$
- }
- return CommandResult.newOKCommandResult();
- }
- };
- try {
- OperationHistoryFactory.getOperationHistory().execute(command, new SubProgressMonitor(progressMonitor, 1), null);
- } catch (ExecutionException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Unable to create model and diagram", e); //$NON-NLS-1$
- }
- setCharset(WorkspaceSynchronizer.getFile(modelResource));
- setCharset(WorkspaceSynchronizer.getFile(diagramResource));
- return diagramResource;
- }
-
- /**
- * Create a new instance of domain element associated with canvas.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private static Package createInitialModel() {
- return UMLFactory.eINSTANCE.createPackage();
- }
-
- /**
- * Store model element in the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private static void attachModelToResource(Package model, Resource resource) {
- resource.getContents().add(model);
- }
-
- /**
- * @generated
- */
- public static void selectElementsInDiagram(IDiagramWorkbenchPart diagramPart, List<EditPart> editParts) {
- diagramPart.getDiagramGraphicalViewer().deselectAll();
-
- EditPart firstPrimary = null;
- for (EditPart nextPart : editParts) {
- diagramPart.getDiagramGraphicalViewer().appendSelection(nextPart);
- if (firstPrimary == null && nextPart instanceof IPrimaryEditPart) {
- firstPrimary = nextPart;
- }
- }
-
- if (!editParts.isEmpty()) {
- diagramPart.getDiagramGraphicalViewer().reveal(firstPrimary != null ? firstPrimary : (EditPart) editParts.get(0));
- }
- }
-
- /**
- * @generated
- */
- private static int findElementsInDiagramByID(DiagramEditPart diagramPart, EObject element, List<EditPart> editPartCollector) {
- IDiagramGraphicalViewer viewer = (IDiagramGraphicalViewer) diagramPart.getViewer();
- final int intialNumOfEditParts = editPartCollector.size();
-
- if (element instanceof View) { // support notation element lookup
- EditPart editPart = (EditPart) viewer.getEditPartRegistry().get(element);
- if (editPart != null) {
- editPartCollector.add(editPart);
- return 1;
- }
- }
-
- String elementID = EMFCoreUtil.getProxyID(element);
- @SuppressWarnings("unchecked")
- List<EditPart> associatedParts = viewer.findEditPartsForElement(elementID, IGraphicalEditPart.class);
- // perform the possible hierarchy disjoint -> take the top-most parts only
- for (EditPart nextPart : associatedParts) {
- EditPart parentPart = nextPart.getParent();
- while (parentPart != null && !associatedParts.contains(parentPart)) {
- parentPart = parentPart.getParent();
- }
- if (parentPart == null) {
- editPartCollector.add(nextPart);
- }
- }
-
- if (intialNumOfEditParts == editPartCollector.size()) {
- if (!associatedParts.isEmpty()) {
- editPartCollector.add(associatedParts.get(0));
- } else {
- if (element.eContainer() != null) {
- return findElementsInDiagramByID(diagramPart, element.eContainer(), editPartCollector);
- }
- }
- }
- return editPartCollector.size() - intialNumOfEditParts;
- }
-
- /**
- * @generated
- */
- public static View findView(DiagramEditPart diagramEditPart, EObject targetElement, LazyElement2ViewMap lazyElement2ViewMap) {
- boolean hasStructuralURI = false;
- if (targetElement.eResource() instanceof XMLResource) {
- hasStructuralURI = ((XMLResource) targetElement.eResource()).getID(targetElement) == null;
- }
-
- View view = null;
- LinkedList<EditPart> editPartHolder = new LinkedList<EditPart>();
- if (hasStructuralURI && !lazyElement2ViewMap.getElement2ViewMap().isEmpty()) {
- view = lazyElement2ViewMap.getElement2ViewMap().get(targetElement);
- } else if (findElementsInDiagramByID(diagramEditPart, targetElement, editPartHolder) > 0) {
- EditPart editPart = editPartHolder.get(0);
- view = editPart.getModel() instanceof View ? (View) editPart.getModel() : null;
- }
-
- return (view == null) ? diagramEditPart.getDiagramView() : view;
- }
-
- /**
- * XXX This is quite suspicious code (especially editPartTmpHolder) and likely to be removed soon
- *
- * @generated
- */
- public static class LazyElement2ViewMap {
-
- /**
- * @generated
- */
- private Map<EObject, View> element2ViewMap;
-
- /**
- * @generated
- */
- private View scope;
-
- /**
- * @generated
- */
- private Set<? extends EObject> elementSet;
-
- /**
- * @generated
- */
- public LazyElement2ViewMap(View scope, Set<? extends EObject> elements) {
- this.scope = scope;
- this.elementSet = elements;
- }
-
- /**
- * @generated
- */
- public final Map<EObject, View> getElement2ViewMap() {
- if (element2ViewMap == null) {
- element2ViewMap = new HashMap<EObject, View>();
- // map possible notation elements to itself as these can't be found by view.getElement()
- for (EObject element : elementSet) {
- if (element instanceof View) {
- View view = (View) element;
- if (view.getDiagram() == scope.getDiagram()) {
- element2ViewMap.put(element, view); // take only those that part of our diagram
- }
- }
- }
-
- buildElement2ViewMap(scope, element2ViewMap, elementSet);
- }
- return element2ViewMap;
- }
-
- /**
- * @generated
- */
- private static boolean buildElement2ViewMap(View parentView, Map<EObject, View> element2ViewMap, Set<? extends EObject> elements) {
- if (elements.size() == element2ViewMap.size()) {
- return true;
- }
-
- if (parentView.isSetElement() && !element2ViewMap.containsKey(parentView.getElement()) && elements.contains(parentView.getElement())) {
- element2ViewMap.put(parentView.getElement(), parentView);
- if (elements.size() == element2ViewMap.size()) {
- return true;
- }
- }
- boolean complete = false;
- for (Iterator<?> it = parentView.getChildren().iterator(); it.hasNext() && !complete;) {
- complete = buildElement2ViewMap((View) it.next(), element2ViewMap, elements);
- }
- for (Iterator<?> it = parentView.getSourceEdges().iterator(); it.hasNext() && !complete;) {
- complete = buildElement2ViewMap((View) it.next(), element2ViewMap, elements);
- }
- for (Iterator<?> it = parentView.getTargetEdges().iterator(); it.hasNext() && !complete;) {
- complete = buildElement2ViewMap((View) it.next(), element2ViewMap, elements);
- }
- return complete;
- }
- } // LazyElement2ViewMap
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import java.io.IOException;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.commands.operations.OperationHistoryFactory;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.SubProgressMonitor;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.xmi.XMLResource;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.emf.workspace.WorkspaceEditingDomainFactory;
+import org.eclipse.emf.workspace.util.WorkspaceSynchronizer;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.diagram.core.services.ViewService;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramGraphicalViewer;
+import org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart;
+import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.part.DefaultDiagramEditorUtil;
+import org.eclipse.jface.dialogs.IDialogSettings;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.part.FileEditorInput;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * @generated
+ */
+public class UMLDiagramEditorUtil {
+
+ /**
+ * @generated
+ */
+ public static Map<?, ?> getSaveOptions() {
+ HashMap<String, Object> saveOptions = new HashMap<String, Object>();
+ saveOptions.put(XMLResource.OPTION_ENCODING, "UTF-8"); //$NON-NLS-1$
+ saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER);
+ return saveOptions;
+ }
+
+ /**
+ * @generated
+ */
+ public static boolean openDiagram(Resource diagram) throws PartInitException {
+ String path = diagram.getURI().toPlatformString(true);
+ IResource workspaceResource = ResourcesPlugin.getWorkspace().getRoot().findMember(new Path(path));
+ if (workspaceResource instanceof IFile) {
+ IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
+ return null != page.openEditor(new FileEditorInput((IFile) workspaceResource), UMLDiagramEditor.ID);
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public static void setCharset(IFile file) {
+ if (file == null) {
+ return;
+ }
+ try {
+ file.setCharset("UTF-8", new NullProgressMonitor()); //$NON-NLS-1$
+ } catch (CoreException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Unable to set charset for file " + file.getFullPath(), e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public static String getUniqueFileName(IPath containerFullPath, String fileName, String extension) {
+ return DefaultDiagramEditorUtil.getUniqueFileName(containerFullPath, fileName, extension,
+ DefaultDiagramEditorUtil.EXISTS_IN_WORKSPACE);
+ }
+
+ /**
+ * Runs the wizard in a dialog.
+ *
+ * @generated
+ */
+ public static void runWizard(Shell shell, Wizard wizard, String settingsKey) {
+ IDialogSettings pluginDialogSettings = UMLDiagramEditorPlugin.getInstance().getDialogSettings();
+ IDialogSettings wizardDialogSettings = pluginDialogSettings.getSection(settingsKey);
+ if (wizardDialogSettings == null) {
+ wizardDialogSettings = pluginDialogSettings.addNewSection(settingsKey);
+ }
+ wizard.setDialogSettings(wizardDialogSettings);
+ WizardDialog dialog = new WizardDialog(shell, wizard);
+ dialog.create();
+ dialog.getShell().setSize(Math.max(500, dialog.getShell().getSize().x), 500);
+ dialog.open();
+ }
+
+ /**
+ * This method should be called within a workspace modify operation since it creates resources.
+ *
+ * @generated
+ */
+ public static Resource createDiagram(URI diagramURI, URI modelURI, IProgressMonitor progressMonitor) {
+ TransactionalEditingDomain editingDomain = WorkspaceEditingDomainFactory.INSTANCE.createEditingDomain();
+ progressMonitor.beginTask(Messages.UMLDiagramEditorUtil_CreateDiagramProgressTask, 3);
+ final Resource diagramResource = editingDomain.getResourceSet().createResource(diagramURI);
+ final Resource modelResource = editingDomain.getResourceSet().createResource(modelURI);
+ final String diagramName = diagramURI.lastSegment();
+ AbstractTransactionalCommand command = new AbstractTransactionalCommand(editingDomain, Messages.UMLDiagramEditorUtil_CreateDiagramCommandLabel, Collections.EMPTY_LIST) {
+ @Override
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ Package model = createInitialModel();
+ attachModelToResource(model, modelResource);
+
+ Diagram diagram = ViewService.createDiagram(
+ model,
+ DeploymentDiagramEditPart.MODEL_ID, UMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT);
+ if (diagram != null) {
+ diagramResource.getContents().add(diagram);
+ diagram.setName(diagramName);
+ diagram.setElement(model);
+ }
+
+ try {
+ modelResource.save(org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorUtil.getSaveOptions());
+ diagramResource.save(org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorUtil.getSaveOptions());
+ } catch (IOException e) {
+
+ UMLDiagramEditorPlugin.getInstance().logError("Unable to store model and diagram resources", e); //$NON-NLS-1$
+ }
+ return CommandResult.newOKCommandResult();
+ }
+ };
+ try {
+ OperationHistoryFactory.getOperationHistory().execute(command, new SubProgressMonitor(progressMonitor, 1), null);
+ } catch (ExecutionException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Unable to create model and diagram", e); //$NON-NLS-1$
+ }
+ setCharset(WorkspaceSynchronizer.getFile(modelResource));
+ setCharset(WorkspaceSynchronizer.getFile(diagramResource));
+ return diagramResource;
+ }
+
+ /**
+ * Create a new instance of domain element associated with canvas.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static Package createInitialModel() {
+ return UMLFactory.eINSTANCE.createPackage();
+ }
+
+ /**
+ * Store model element in the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static void attachModelToResource(Package model, Resource resource) {
+ resource.getContents().add(model);
+ }
+
+ /**
+ * @generated
+ */
+ public static void selectElementsInDiagram(IDiagramWorkbenchPart diagramPart, List<EditPart> editParts) {
+ diagramPart.getDiagramGraphicalViewer().deselectAll();
+
+ EditPart firstPrimary = null;
+ for (EditPart nextPart : editParts) {
+ diagramPart.getDiagramGraphicalViewer().appendSelection(nextPart);
+ if (firstPrimary == null && nextPart instanceof IPrimaryEditPart) {
+ firstPrimary = nextPart;
+ }
+ }
+
+ if (!editParts.isEmpty()) {
+ diagramPart.getDiagramGraphicalViewer().reveal(firstPrimary != null ? firstPrimary : (EditPart) editParts.get(0));
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static int findElementsInDiagramByID(DiagramEditPart diagramPart, EObject element, List<EditPart> editPartCollector) {
+ IDiagramGraphicalViewer viewer = (IDiagramGraphicalViewer) diagramPart.getViewer();
+ final int intialNumOfEditParts = editPartCollector.size();
+
+ if (element instanceof View) { // support notation element lookup
+ EditPart editPart = (EditPart) viewer.getEditPartRegistry().get(element);
+ if (editPart != null) {
+ editPartCollector.add(editPart);
+ return 1;
+ }
+ }
+
+ String elementID = EMFCoreUtil.getProxyID(element);
+ @SuppressWarnings("unchecked")
+ List<EditPart> associatedParts = viewer.findEditPartsForElement(elementID, IGraphicalEditPart.class);
+ // perform the possible hierarchy disjoint -> take the top-most parts only
+ for (EditPart nextPart : associatedParts) {
+ EditPart parentPart = nextPart.getParent();
+ while (parentPart != null && !associatedParts.contains(parentPart)) {
+ parentPart = parentPart.getParent();
+ }
+ if (parentPart == null) {
+ editPartCollector.add(nextPart);
+ }
+ }
+
+ if (intialNumOfEditParts == editPartCollector.size()) {
+ if (!associatedParts.isEmpty()) {
+ editPartCollector.add(associatedParts.get(0));
+ } else {
+ if (element.eContainer() != null) {
+ return findElementsInDiagramByID(diagramPart, element.eContainer(), editPartCollector);
+ }
+ }
+ }
+ return editPartCollector.size() - intialNumOfEditParts;
+ }
+
+ /**
+ * @generated
+ */
+ public static View findView(DiagramEditPart diagramEditPart, EObject targetElement, LazyElement2ViewMap lazyElement2ViewMap) {
+ boolean hasStructuralURI = false;
+ if (targetElement.eResource() instanceof XMLResource) {
+ hasStructuralURI = ((XMLResource) targetElement.eResource()).getID(targetElement) == null;
+ }
+
+ View view = null;
+ LinkedList<EditPart> editPartHolder = new LinkedList<EditPart>();
+ if (hasStructuralURI && !lazyElement2ViewMap.getElement2ViewMap().isEmpty()) {
+ view = lazyElement2ViewMap.getElement2ViewMap().get(targetElement);
+ } else if (findElementsInDiagramByID(diagramEditPart, targetElement, editPartHolder) > 0) {
+ EditPart editPart = editPartHolder.get(0);
+ view = editPart.getModel() instanceof View ? (View) editPart.getModel() : null;
+ }
+
+ return (view == null) ? diagramEditPart.getDiagramView() : view;
+ }
+
+ /**
+ * XXX This is quite suspicious code (especially editPartTmpHolder) and likely to be removed soon
+ *
+ * @generated
+ */
+ public static class LazyElement2ViewMap {
+
+ /**
+ * @generated
+ */
+ private Map<EObject, View> element2ViewMap;
+
+ /**
+ * @generated
+ */
+ private View scope;
+
+ /**
+ * @generated
+ */
+ private Set<? extends EObject> elementSet;
+
+ /**
+ * @generated
+ */
+ public LazyElement2ViewMap(View scope, Set<? extends EObject> elements) {
+ this.scope = scope;
+ this.elementSet = elements;
+ }
+
+ /**
+ * @generated
+ */
+ public final Map<EObject, View> getElement2ViewMap() {
+ if (element2ViewMap == null) {
+ element2ViewMap = new HashMap<EObject, View>();
+ // map possible notation elements to itself as these can't be found by view.getElement()
+ for (EObject element : elementSet) {
+ if (element instanceof View) {
+ View view = (View) element;
+ if (view.getDiagram() == scope.getDiagram()) {
+ element2ViewMap.put(element, view); // take only those that part of our diagram
+ }
+ }
+ }
+
+ buildElement2ViewMap(scope, element2ViewMap, elementSet);
+ }
+ return element2ViewMap;
+ }
+
+ /**
+ * @generated
+ */
+ private static boolean buildElement2ViewMap(View parentView, Map<EObject, View> element2ViewMap, Set<? extends EObject> elements) {
+ if (elements.size() == element2ViewMap.size()) {
+ return true;
+ }
+
+ if (parentView.isSetElement() && !element2ViewMap.containsKey(parentView.getElement()) && elements.contains(parentView.getElement())) {
+ element2ViewMap.put(parentView.getElement(), parentView);
+ if (elements.size() == element2ViewMap.size()) {
+ return true;
+ }
+ }
+ boolean complete = false;
+ for (Iterator<?> it = parentView.getChildren().iterator(); it.hasNext() && !complete;) {
+ complete = buildElement2ViewMap((View) it.next(), element2ViewMap, elements);
+ }
+ for (Iterator<?> it = parentView.getSourceEdges().iterator(); it.hasNext() && !complete;) {
+ complete = buildElement2ViewMap((View) it.next(), element2ViewMap, elements);
+ }
+ for (Iterator<?> it = parentView.getTargetEdges().iterator(); it.hasNext() && !complete;) {
+ complete = buildElement2ViewMap((View) it.next(), element2ViewMap, elements);
+ }
+ return complete;
+ }
+ } // LazyElement2ViewMap
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramUpdater.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramUpdater.java
index 564722f3461..ec4462bc151 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramUpdater.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDiagramUpdater.java
@@ -1,2929 +1,2603 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.gmf.runtime.emf.core.util.CrossReferenceAdapter;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.update.DiagramUpdater;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DefaultNamedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyNodeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceCompositeCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceCompositeCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentCompositeCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentCompositeCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelPackageableElementCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelPackageableElementCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeCompositeCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeCompositeCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackagePackageableElementCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackagePackageableElementCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.uml2.uml.Artifact;
-import org.eclipse.uml2.uml.Classifier;
-import org.eclipse.uml2.uml.Comment;
-import org.eclipse.uml2.uml.Constraint;
-import org.eclipse.uml2.uml.Dependency;
-import org.eclipse.uml2.uml.Deployment;
-import org.eclipse.uml2.uml.DeploymentTarget;
-import org.eclipse.uml2.uml.Device;
-import org.eclipse.uml2.uml.Element;
-import org.eclipse.uml2.uml.ExecutionEnvironment;
-import org.eclipse.uml2.uml.Generalization;
-import org.eclipse.uml2.uml.Manifestation;
-import org.eclipse.uml2.uml.Model;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.Node;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.PackageableElement;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class UMLDiagramUpdater implements DiagramUpdater {
-
- /**
- * @generated
- */
- public static final org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramUpdater INSTANCE = new UMLDiagramUpdater();
-
- /**
- * @generated
- */
- protected UMLDiagramUpdater() {
- // to prevent instantiation allowing the override
- }
-
- /**
- * @generated
- */
- @Override
- public List<UMLNodeDescriptor> getSemanticChildren(View view) {
- switch (UMLVisualIDRegistry.getVisualID(view)) {
- case DeploymentDiagramEditPart.VISUAL_ID:
- return getPackage_1000SemanticChildren(view);
- case ModelPackageableElementCompartmentEditPart.VISUAL_ID:
- return getModelModelCompartment_51SemanticChildren(view);
- case PackagePackageableElementCompartmentEditPart.VISUAL_ID:
- return getPackagePackageableElementCompartment_38SemanticChildren(view);
- case DeviceCompositeCompartmentEditPart.VISUAL_ID:
- return getDeviceDeviceCompositeCompartment_17SemanticChildren(view);
- case ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID:
- return getExecutionEnvironmentExecutionEnvironmentCompositeCompartment_18SemanticChildren(view);
- case NodeCompositeCompartmentEditPart.VISUAL_ID:
- return getNodeCompositeCompartment_19SemanticChildren(view);
- case ArtifactCompositeCompartmentEditPart.VISUAL_ID:
- return getArtifactArtifactCompositeCompartment_26SemanticChildren(view);
- case ModelPackageableElementCompartmentEditPartCN.VISUAL_ID:
- return getModelModelCompartment_52SemanticChildren(view);
- case PackagePackageableElementCompartmentEditPartCN.VISUAL_ID:
- return getPackagePackageableElementCompartment_39SemanticChildren(view);
- case DeviceCompositeCompartmentEditPartCN.VISUAL_ID:
- return getDeviceDeviceCompositeCompartment_30SemanticChildren(view);
- case ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID:
- return getExecutionEnvironmentExecutionEnvironmentCompositeCompartment_31SemanticChildren(view);
- case NodeCompositeCompartmentEditPartCN.VISUAL_ID:
- return getNodeCompositeCompartment_32SemanticChildren(view);
- case ArtifactCompositeCompartmentEditPartCN.VISUAL_ID:
- return getArtifactArtifactCompositeCompartment_33SemanticChildren(view);
- case ArtifactCompositeCompartmentEditPartACN.VISUAL_ID:
- return getArtifactArtifactCompositeCompartment_34SemanticChildren(view);
- }
- return Collections.emptyList();
- }
-
- /**
- * @generated
- */
- public List<UMLNodeDescriptor> getPackage_1000SemanticChildren(View view) {
- if (!view.isSetElement()) {
- return Collections.emptyList();
- }
- Package modelElement = (Package) view.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
- for (Iterator<?> it = modelElement.getPackagedElements()
- .iterator(); it.hasNext();) {
- PackageableElement childElement = (PackageableElement) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == DependencyNodeEditPart.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == ModelEditPart.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == PackageEditPart.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == ExecutionEnvironmentEditPart.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == DeviceEditPart.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == ArtifactEditPart.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NodeEditPart.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == DefaultNamedElementEditPart.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- for (Iterator<?> it = modelElement.getOwnedRules()
- .iterator(); it.hasNext();) {
- Constraint childElement = (Constraint) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == ConstraintEditPart.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- for (Iterator<?> it = modelElement.getOwnedComments()
- .iterator(); it.hasNext();) {
- Comment childElement = (Comment) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == CommentEditPart.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLNodeDescriptor> getModelModelCompartment_51SemanticChildren(View view) {
- if (false == view.eContainer() instanceof View) {
- return Collections.emptyList();
- }
- View containerView = (View) view.eContainer();
- if (!containerView.isSetElement()) {
- return Collections.emptyList();
- }
- Model modelElement = (Model) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
- for (Iterator<?> it = modelElement.getPackagedElements()
- .iterator(); it.hasNext();) {
- PackageableElement childElement = (PackageableElement) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == ModelEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == PackageEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NestedDeviceEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NestedExecutionEnvironmentEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NestedNodeEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NestedArtifactNodeEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- for (Iterator<?> it = modelElement.getOwnedComments()
- .iterator(); it.hasNext();) {
- Comment childElement = (Comment) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == CommentEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- for (Iterator<?> it = modelElement.getOwnedRules()
- .iterator(); it.hasNext();) {
- Constraint childElement = (Constraint) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == ConstraintEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLNodeDescriptor> getPackagePackageableElementCompartment_38SemanticChildren(View view) {
- if (false == view.eContainer() instanceof View) {
- return Collections.emptyList();
- }
- View containerView = (View) view.eContainer();
- if (!containerView.isSetElement()) {
- return Collections.emptyList();
- }
- Package modelElement = (Package) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
- for (Iterator<?> it = modelElement.getPackagedElements()
- .iterator(); it.hasNext();) {
- PackageableElement childElement = (PackageableElement) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == ModelEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == PackageEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NestedArtifactNodeEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NestedDeviceEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NestedExecutionEnvironmentEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NestedNodeEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- for (Iterator<?> it = modelElement.getOwnedComments()
- .iterator(); it.hasNext();) {
- Comment childElement = (Comment) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == CommentEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- for (Iterator<?> it = modelElement.getOwnedRules()
- .iterator(); it.hasNext();) {
- Constraint childElement = (Constraint) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == ConstraintEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLNodeDescriptor> getDeviceDeviceCompositeCompartment_17SemanticChildren(View view) {
- if (false == view.eContainer() instanceof View) {
- return Collections.emptyList();
- }
- View containerView = (View) view.eContainer();
- if (!containerView.isSetElement()) {
- return Collections.emptyList();
- }
- Device modelElement = (Device) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
- for (Iterator<?> it = modelElement.getNestedNodes()
- .iterator(); it.hasNext();) {
- Node childElement = (Node) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == ExecutionEnvironmentEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == DeviceEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NodeEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLNodeDescriptor> getExecutionEnvironmentExecutionEnvironmentCompositeCompartment_18SemanticChildren(View view) {
- if (false == view.eContainer() instanceof View) {
- return Collections.emptyList();
- }
- View containerView = (View) view.eContainer();
- if (!containerView.isSetElement()) {
- return Collections.emptyList();
- }
- ExecutionEnvironment modelElement = (ExecutionEnvironment) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
- for (Iterator<?> it = modelElement.getNestedNodes()
- .iterator(); it.hasNext();) {
- Node childElement = (Node) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == ExecutionEnvironmentEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- for (Iterator<?> it = modelElement.getNestedClassifiers()
- .iterator(); it.hasNext();) {
- Classifier childElement = (Classifier) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == ArtifactEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLNodeDescriptor> getNodeCompositeCompartment_19SemanticChildren(View view) {
- if (false == view.eContainer() instanceof View) {
- return Collections.emptyList();
- }
- View containerView = (View) view.eContainer();
- if (!containerView.isSetElement()) {
- return Collections.emptyList();
- }
- Node modelElement = (Node) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
- for (Iterator<?> it = modelElement.getNestedNodes()
- .iterator(); it.hasNext();) {
- Node childElement = (Node) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == DeviceEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == ExecutionEnvironmentEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NodeEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- for (Iterator<?> it = modelElement.getNestedClassifiers()
- .iterator(); it.hasNext();) {
- Classifier childElement = (Classifier) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == ArtifactEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLNodeDescriptor> getArtifactArtifactCompositeCompartment_26SemanticChildren(View view) {
- if (false == view.eContainer() instanceof View) {
- return Collections.emptyList();
- }
- View containerView = (View) view.eContainer();
- if (!containerView.isSetElement()) {
- return Collections.emptyList();
- }
- Artifact modelElement = (Artifact) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
- for (Iterator<?> it = modelElement.getNestedArtifacts()
- .iterator(); it.hasNext();) {
- Artifact childElement = (Artifact) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == ArtifactEditPartACN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLNodeDescriptor> getModelModelCompartment_52SemanticChildren(View view) {
- if (false == view.eContainer() instanceof View) {
- return Collections.emptyList();
- }
- View containerView = (View) view.eContainer();
- if (!containerView.isSetElement()) {
- return Collections.emptyList();
- }
- Model modelElement = (Model) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
- for (Iterator<?> it = modelElement.getPackagedElements()
- .iterator(); it.hasNext();) {
- PackageableElement childElement = (PackageableElement) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == ModelEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == PackageEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NestedDeviceEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NestedExecutionEnvironmentEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NestedNodeEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NestedArtifactNodeEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- for (Iterator<?> it = modelElement.getOwnedComments()
- .iterator(); it.hasNext();) {
- Comment childElement = (Comment) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == CommentEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- for (Iterator<?> it = modelElement.getOwnedRules()
- .iterator(); it.hasNext();) {
- Constraint childElement = (Constraint) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == ConstraintEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLNodeDescriptor> getPackagePackageableElementCompartment_39SemanticChildren(View view) {
- if (false == view.eContainer() instanceof View) {
- return Collections.emptyList();
- }
- View containerView = (View) view.eContainer();
- if (!containerView.isSetElement()) {
- return Collections.emptyList();
- }
- Package modelElement = (Package) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
- for (Iterator<?> it = modelElement.getPackagedElements()
- .iterator(); it.hasNext();) {
- PackageableElement childElement = (PackageableElement) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == PackageEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NestedArtifactNodeEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NestedDeviceEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NestedExecutionEnvironmentEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NestedNodeEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- for (Iterator<?> it = modelElement.getOwnedComments()
- .iterator(); it.hasNext();) {
- Comment childElement = (Comment) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == CommentEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- for (Iterator<?> it = modelElement.getOwnedRules()
- .iterator(); it.hasNext();) {
- Constraint childElement = (Constraint) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == ConstraintEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLNodeDescriptor> getDeviceDeviceCompositeCompartment_30SemanticChildren(View view) {
- if (false == view.eContainer() instanceof View) {
- return Collections.emptyList();
- }
- View containerView = (View) view.eContainer();
- if (!containerView.isSetElement()) {
- return Collections.emptyList();
- }
- Device modelElement = (Device) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
- for (Iterator<?> it = modelElement.getNestedNodes()
- .iterator(); it.hasNext();) {
- Node childElement = (Node) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == ExecutionEnvironmentEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == DeviceEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NodeEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLNodeDescriptor> getExecutionEnvironmentExecutionEnvironmentCompositeCompartment_31SemanticChildren(View view) {
- if (false == view.eContainer() instanceof View) {
- return Collections.emptyList();
- }
- View containerView = (View) view.eContainer();
- if (!containerView.isSetElement()) {
- return Collections.emptyList();
- }
- ExecutionEnvironment modelElement = (ExecutionEnvironment) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
- for (Iterator<?> it = modelElement.getNestedClassifiers()
- .iterator(); it.hasNext();) {
- Classifier childElement = (Classifier) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == ArtifactEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- for (Iterator<?> it = modelElement.getNestedNodes()
- .iterator(); it.hasNext();) {
- Node childElement = (Node) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == ExecutionEnvironmentEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLNodeDescriptor> getNodeCompositeCompartment_32SemanticChildren(View view) {
- if (false == view.eContainer() instanceof View) {
- return Collections.emptyList();
- }
- View containerView = (View) view.eContainer();
- if (!containerView.isSetElement()) {
- return Collections.emptyList();
- }
- Node modelElement = (Node) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
- for (Iterator<?> it = modelElement.getNestedNodes()
- .iterator(); it.hasNext();) {
- Node childElement = (Node) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == DeviceEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == ExecutionEnvironmentEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- if (visualID == NodeEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- for (Iterator<?> it = modelElement.getNestedClassifiers()
- .iterator(); it.hasNext();) {
- Classifier childElement = (Classifier) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == ArtifactEditPartCN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLNodeDescriptor> getArtifactArtifactCompositeCompartment_33SemanticChildren(View view) {
- if (false == view.eContainer() instanceof View) {
- return Collections.emptyList();
- }
- View containerView = (View) view.eContainer();
- if (!containerView.isSetElement()) {
- return Collections.emptyList();
- }
- Artifact modelElement = (Artifact) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
- for (Iterator<?> it = modelElement.getNestedArtifacts()
- .iterator(); it.hasNext();) {
- Artifact childElement = (Artifact) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == ArtifactEditPartACN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLNodeDescriptor> getArtifactArtifactCompositeCompartment_34SemanticChildren(View view) {
- if (false == view.eContainer() instanceof View) {
- return Collections.emptyList();
- }
- View containerView = (View) view.eContainer();
- if (!containerView.isSetElement()) {
- return Collections.emptyList();
- }
- Artifact modelElement = (Artifact) containerView.getElement();
- LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
- for (Iterator<?> it = modelElement.getNestedArtifacts()
- .iterator(); it.hasNext();) {
- Artifact childElement = (Artifact) it.next();
- int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
- if (visualID == ArtifactEditPartACN.VISUAL_ID) {
- result.add(new UMLNodeDescriptor(childElement, visualID));
- continue;
- }
- }
- return result;
- }
-
- /**
- * @generated
- */
- @Override
- public List<UMLLinkDescriptor> getContainedLinks(View view) {
- switch (UMLVisualIDRegistry.getVisualID(view)) {
- case DeploymentDiagramEditPart.VISUAL_ID:
- return getPackage_1000ContainedLinks(view);
- case DependencyNodeEditPart.VISUAL_ID:
- return getDependency_2011ContainedLinks(view);
- case ModelEditPart.VISUAL_ID:
- return getModel_2010ContainedLinks(view);
- case PackageEditPart.VISUAL_ID:
- return getPackage_2009ContainedLinks(view);
- case ConstraintEditPart.VISUAL_ID:
- return getConstraint_2005ContainedLinks(view);
- case CommentEditPart.VISUAL_ID:
- return getComment_2001ContainedLinks(view);
- case ExecutionEnvironmentEditPart.VISUAL_ID:
- return getExecutionEnvironment_2002ContainedLinks(view);
- case DeviceEditPart.VISUAL_ID:
- return getDevice_2003ContainedLinks(view);
- case ArtifactEditPart.VISUAL_ID:
- return getArtifact_2006ContainedLinks(view);
- case NodeEditPart.VISUAL_ID:
- return getNode_2008ContainedLinks(view);
- case DefaultNamedElementEditPart.VISUAL_ID:
- return getNamedElement_2012ContainedLinks(view);
- case ModelEditPartCN.VISUAL_ID:
- return getModel_49ContainedLinks(view);
- case PackageEditPartCN.VISUAL_ID:
- return getPackage_36ContainedLinks(view);
- case DeviceEditPartCN.VISUAL_ID:
- return getDevice_16ContainedLinks(view);
- case NestedDeviceEditPartCN.VISUAL_ID:
- return getDevice_44ContainedLinks(view);
- case ExecutionEnvironmentEditPartCN.VISUAL_ID:
- return getExecutionEnvironment_21ContainedLinks(view);
- case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
- return getExecutionEnvironment_46ContainedLinks(view);
- case NodeEditPartCN.VISUAL_ID:
- return getNode_23ContainedLinks(view);
- case NestedNodeEditPartCN.VISUAL_ID:
- return getNode_42ContainedLinks(view);
- case ArtifactEditPartCN.VISUAL_ID:
- return getArtifact_25ContainedLinks(view);
- case ArtifactEditPartACN.VISUAL_ID:
- return getArtifact_28ContainedLinks(view);
- case NestedArtifactNodeEditPartCN.VISUAL_ID:
- return getArtifact_40ContainedLinks(view);
- case CommentEditPartCN.VISUAL_ID:
- return getComment_54ContainedLinks(view);
- case ConstraintEditPartCN.VISUAL_ID:
- return getConstraint_56ContainedLinks(view);
- case DeploymentEditPart.VISUAL_ID:
- return getDeployment_4001ContainedLinks(view);
- case ManifestationEditPart.VISUAL_ID:
- return getManifestation_4002ContainedLinks(view);
- case GeneralizationEditPart.VISUAL_ID:
- return getGeneralization_4003ContainedLinks(view);
- case DependencyEditPart.VISUAL_ID:
- return getDependency_4004ContainedLinks(view);
- case DependencyBranchEditPart.VISUAL_ID:
- return getDependency_4010ContainedLinks(view);
- }
- return Collections.emptyList();
- }
-
- /**
- * @generated
- */
- @Override
- public List<UMLLinkDescriptor> getIncomingLinks(View view) {
- switch (UMLVisualIDRegistry.getVisualID(view)) {
- case DependencyNodeEditPart.VISUAL_ID:
- return getDependency_2011IncomingLinks(view);
- case ModelEditPart.VISUAL_ID:
- return getModel_2010IncomingLinks(view);
- case PackageEditPart.VISUAL_ID:
- return getPackage_2009IncomingLinks(view);
- case ConstraintEditPart.VISUAL_ID:
- return getConstraint_2005IncomingLinks(view);
- case CommentEditPart.VISUAL_ID:
- return getComment_2001IncomingLinks(view);
- case ExecutionEnvironmentEditPart.VISUAL_ID:
- return getExecutionEnvironment_2002IncomingLinks(view);
- case DeviceEditPart.VISUAL_ID:
- return getDevice_2003IncomingLinks(view);
- case ArtifactEditPart.VISUAL_ID:
- return getArtifact_2006IncomingLinks(view);
- case NodeEditPart.VISUAL_ID:
- return getNode_2008IncomingLinks(view);
- case DefaultNamedElementEditPart.VISUAL_ID:
- return getNamedElement_2012IncomingLinks(view);
- case ModelEditPartCN.VISUAL_ID:
- return getModel_49IncomingLinks(view);
- case PackageEditPartCN.VISUAL_ID:
- return getPackage_36IncomingLinks(view);
- case DeviceEditPartCN.VISUAL_ID:
- return getDevice_16IncomingLinks(view);
- case NestedDeviceEditPartCN.VISUAL_ID:
- return getDevice_44IncomingLinks(view);
- case ExecutionEnvironmentEditPartCN.VISUAL_ID:
- return getExecutionEnvironment_21IncomingLinks(view);
- case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
- return getExecutionEnvironment_46IncomingLinks(view);
- case NodeEditPartCN.VISUAL_ID:
- return getNode_23IncomingLinks(view);
- case NestedNodeEditPartCN.VISUAL_ID:
- return getNode_42IncomingLinks(view);
- case ArtifactEditPartCN.VISUAL_ID:
- return getArtifact_25IncomingLinks(view);
- case ArtifactEditPartACN.VISUAL_ID:
- return getArtifact_28IncomingLinks(view);
- case NestedArtifactNodeEditPartCN.VISUAL_ID:
- return getArtifact_40IncomingLinks(view);
- case CommentEditPartCN.VISUAL_ID:
- return getComment_54IncomingLinks(view);
- case ConstraintEditPartCN.VISUAL_ID:
- return getConstraint_56IncomingLinks(view);
- case DeploymentEditPart.VISUAL_ID:
- return getDeployment_4001IncomingLinks(view);
- case ManifestationEditPart.VISUAL_ID:
- return getManifestation_4002IncomingLinks(view);
- case GeneralizationEditPart.VISUAL_ID:
- return getGeneralization_4003IncomingLinks(view);
- case DependencyEditPart.VISUAL_ID:
- return getDependency_4004IncomingLinks(view);
- case DependencyBranchEditPart.VISUAL_ID:
- return getDependency_4010IncomingLinks(view);
- }
- return Collections.emptyList();
- }
-
- /**
- * @generated
- */
- @Override
- public List<UMLLinkDescriptor> getOutgoingLinks(View view) {
- switch (UMLVisualIDRegistry.getVisualID(view)) {
- case DependencyNodeEditPart.VISUAL_ID:
- return getDependency_2011OutgoingLinks(view);
- case ModelEditPart.VISUAL_ID:
- return getModel_2010OutgoingLinks(view);
- case PackageEditPart.VISUAL_ID:
- return getPackage_2009OutgoingLinks(view);
- case ConstraintEditPart.VISUAL_ID:
- return getConstraint_2005OutgoingLinks(view);
- case CommentEditPart.VISUAL_ID:
- return getComment_2001OutgoingLinks(view);
- case ExecutionEnvironmentEditPart.VISUAL_ID:
- return getExecutionEnvironment_2002OutgoingLinks(view);
- case DeviceEditPart.VISUAL_ID:
- return getDevice_2003OutgoingLinks(view);
- case ArtifactEditPart.VISUAL_ID:
- return getArtifact_2006OutgoingLinks(view);
- case NodeEditPart.VISUAL_ID:
- return getNode_2008OutgoingLinks(view);
- case DefaultNamedElementEditPart.VISUAL_ID:
- return getNamedElement_2012OutgoingLinks(view);
- case ModelEditPartCN.VISUAL_ID:
- return getModel_49OutgoingLinks(view);
- case PackageEditPartCN.VISUAL_ID:
- return getPackage_36OutgoingLinks(view);
- case DeviceEditPartCN.VISUAL_ID:
- return getDevice_16OutgoingLinks(view);
- case NestedDeviceEditPartCN.VISUAL_ID:
- return getDevice_44OutgoingLinks(view);
- case ExecutionEnvironmentEditPartCN.VISUAL_ID:
- return getExecutionEnvironment_21OutgoingLinks(view);
- case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
- return getExecutionEnvironment_46OutgoingLinks(view);
- case NodeEditPartCN.VISUAL_ID:
- return getNode_23OutgoingLinks(view);
- case NestedNodeEditPartCN.VISUAL_ID:
- return getNode_42OutgoingLinks(view);
- case ArtifactEditPartCN.VISUAL_ID:
- return getArtifact_25OutgoingLinks(view);
- case ArtifactEditPartACN.VISUAL_ID:
- return getArtifact_28OutgoingLinks(view);
- case NestedArtifactNodeEditPartCN.VISUAL_ID:
- return getArtifact_40OutgoingLinks(view);
- case CommentEditPartCN.VISUAL_ID:
- return getComment_54OutgoingLinks(view);
- case ConstraintEditPartCN.VISUAL_ID:
- return getConstraint_56OutgoingLinks(view);
- case DeploymentEditPart.VISUAL_ID:
- return getDeployment_4001OutgoingLinks(view);
- case ManifestationEditPart.VISUAL_ID:
- return getManifestation_4002OutgoingLinks(view);
- case GeneralizationEditPart.VISUAL_ID:
- return getGeneralization_4003OutgoingLinks(view);
- case DependencyEditPart.VISUAL_ID:
- return getDependency_4004OutgoingLinks(view);
- case DependencyBranchEditPart.VISUAL_ID:
- return getDependency_4010OutgoingLinks(view);
- }
- return Collections.emptyList();
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getPackage_1000ContainedLinks(View view) {
- Package modelElement = (Package) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getContainedTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getContainedTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDependency_2011ContainedLinks(View view) {
- return Collections.emptyList();
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getModel_2010ContainedLinks(View view) {
- Model modelElement = (Model) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getContainedTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getContainedTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getPackage_2009ContainedLinks(View view) {
- Package modelElement = (Package) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getContainedTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getContainedTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getConstraint_2005ContainedLinks(View view) {
- Constraint modelElement = (Constraint) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getComment_2001ContainedLinks(View view) {
- Comment modelElement = (Comment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getExecutionEnvironment_2002ContainedLinks(View view) {
- ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getContainedTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getContainedTypeModelFacetLinks_Generalization_4003
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDevice_2003ContainedLinks(View view) {
- Device modelElement = (Device) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getContainedTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getContainedTypeModelFacetLinks_Generalization_4003
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getArtifact_2006ContainedLinks(View view) {
- Artifact modelElement = (Artifact) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getContainedTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getContainedTypeModelFacetLinks_Generalization_4003
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getNode_2008ContainedLinks(View view) {
- Node modelElement = (Node) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getContainedTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getContainedTypeModelFacetLinks_Generalization_4003
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getNamedElement_2012ContainedLinks(View view) {
- return Collections.emptyList();
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getModel_49ContainedLinks(View view) {
- Model modelElement = (Model) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getContainedTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getContainedTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getPackage_36ContainedLinks(View view) {
- Package modelElement = (Package) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getContainedTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getContainedTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDevice_16ContainedLinks(View view) {
- Device modelElement = (Device) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getContainedTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getContainedTypeModelFacetLinks_Generalization_4003
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDevice_44ContainedLinks(View view) {
- Device modelElement = (Device) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getContainedTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getContainedTypeModelFacetLinks_Generalization_4003
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getExecutionEnvironment_21ContainedLinks(View view) {
- ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getContainedTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getContainedTypeModelFacetLinks_Generalization_4003
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getExecutionEnvironment_46ContainedLinks(View view) {
- ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getContainedTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getContainedTypeModelFacetLinks_Generalization_4003
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getNode_23ContainedLinks(View view) {
- Node modelElement = (Node) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getContainedTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getContainedTypeModelFacetLinks_Generalization_4003
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getNode_42ContainedLinks(View view) {
- Node modelElement = (Node) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getContainedTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getContainedTypeModelFacetLinks_Generalization_4003
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getArtifact_25ContainedLinks(View view) {
- Artifact modelElement = (Artifact) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getContainedTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getContainedTypeModelFacetLinks_Generalization_4003
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getArtifact_28ContainedLinks(View view) {
- Artifact modelElement = (Artifact) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getContainedTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getContainedTypeModelFacetLinks_Generalization_4003
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getArtifact_40ContainedLinks(View view) {
- Artifact modelElement = (Artifact) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getContainedTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getContainedTypeModelFacetLinks_Generalization_4003
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getComment_54ContainedLinks(View view) {
- Comment modelElement = (Comment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getConstraint_56ContainedLinks(View view) {
- Constraint modelElement = (Constraint) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDeployment_4001ContainedLinks(View view) {
- return Collections.emptyList();
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getManifestation_4002ContainedLinks(View view) {
- return Collections.emptyList();
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getGeneralization_4003ContainedLinks(View view) {
- return Collections.emptyList();
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDependency_4004ContainedLinks(View view) {
- return Collections.emptyList();
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDependency_4010ContainedLinks(View view) {
- return Collections.emptyList();
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDependency_2011IncomingLinks(View view) {
- Dependency modelElement = (Dependency) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getModel_2010IncomingLinks(View view) {
- Model modelElement = (Model) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getPackage_2009IncomingLinks(View view) {
- Package modelElement = (Package) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getConstraint_2005IncomingLinks(View view) {
- Constraint modelElement = (Constraint) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getComment_2001IncomingLinks(View view) {
- Comment modelElement = (Comment) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getExecutionEnvironment_2002IncomingLinks(View view) {
- ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDevice_2003IncomingLinks(View view) {
- Device modelElement = (Device) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getArtifact_2006IncomingLinks(View view) {
- Artifact modelElement = (Artifact) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getNode_2008IncomingLinks(View view) {
- Node modelElement = (Node) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getNamedElement_2012IncomingLinks(View view) {
- NamedElement modelElement = (NamedElement) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getModel_49IncomingLinks(View view) {
- Model modelElement = (Model) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getPackage_36IncomingLinks(View view) {
- Package modelElement = (Package) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDevice_16IncomingLinks(View view) {
- Device modelElement = (Device) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDevice_44IncomingLinks(View view) {
- Device modelElement = (Device) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getExecutionEnvironment_21IncomingLinks(View view) {
- ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getExecutionEnvironment_46IncomingLinks(View view) {
- ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getNode_23IncomingLinks(View view) {
- Node modelElement = (Node) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getNode_42IncomingLinks(View view) {
- Node modelElement = (Node) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getArtifact_25IncomingLinks(View view) {
- Artifact modelElement = (Artifact) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getArtifact_28IncomingLinks(View view) {
- Artifact modelElement = (Artifact) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getArtifact_40IncomingLinks(View view) {
- Artifact modelElement = (Artifact) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getComment_54IncomingLinks(View view) {
- Comment modelElement = (Comment) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getConstraint_56IncomingLinks(View view) {
- Constraint modelElement = (Constraint) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDeployment_4001IncomingLinks(View view) {
- Deployment modelElement = (Deployment) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getManifestation_4002IncomingLinks(View view) {
- Manifestation modelElement = (Manifestation) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getGeneralization_4003IncomingLinks(View view) {
- Generalization modelElement = (Generalization) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDependency_4004IncomingLinks(View view) {
- Dependency modelElement = (Dependency) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDependency_4010IncomingLinks(View view) {
- Dependency modelElement = (Dependency) view.getElement();
- CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement, crossReferencer));
- result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004
- (modelElement, crossReferencer));
- result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010
- (modelElement, crossReferencer));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDependency_2011OutgoingLinks(View view) {
- Dependency modelElement = (Dependency) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getModel_2010OutgoingLinks(View view) {
- Model modelElement = (Model) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getPackage_2009OutgoingLinks(View view) {
- Package modelElement = (Package) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getConstraint_2005OutgoingLinks(View view) {
- Constraint modelElement = (Constraint) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getComment_2001OutgoingLinks(View view) {
- Comment modelElement = (Comment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getExecutionEnvironment_2002OutgoingLinks(View view) {
- ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDevice_2003OutgoingLinks(View view) {
- Device modelElement = (Device) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getArtifact_2006OutgoingLinks(View view) {
- Artifact modelElement = (Artifact) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getNode_2008OutgoingLinks(View view) {
- Node modelElement = (Node) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getNamedElement_2012OutgoingLinks(View view) {
- NamedElement modelElement = (NamedElement) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getModel_49OutgoingLinks(View view) {
- Model modelElement = (Model) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getPackage_36OutgoingLinks(View view) {
- Package modelElement = (Package) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDevice_16OutgoingLinks(View view) {
- Device modelElement = (Device) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDevice_44OutgoingLinks(View view) {
- Device modelElement = (Device) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getExecutionEnvironment_21OutgoingLinks(View view) {
- ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getExecutionEnvironment_46OutgoingLinks(View view) {
- ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getNode_23OutgoingLinks(View view) {
- Node modelElement = (Node) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getNode_42OutgoingLinks(View view) {
- Node modelElement = (Node) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getArtifact_25OutgoingLinks(View view) {
- Artifact modelElement = (Artifact) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getArtifact_28OutgoingLinks(View view) {
- Artifact modelElement = (Artifact) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getArtifact_40OutgoingLinks(View view) {
- Artifact modelElement = (Artifact) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getComment_54OutgoingLinks(View view) {
- Comment modelElement = (Comment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElement_4008
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getConstraint_56OutgoingLinks(View view) {
- Constraint modelElement = (Constraint) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDeployment_4001OutgoingLinks(View view) {
- Deployment modelElement = (Deployment) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getManifestation_4002OutgoingLinks(View view) {
- Manifestation modelElement = (Manifestation) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getGeneralization_4003OutgoingLinks(View view) {
- return Collections.emptyList();
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDependency_4004OutgoingLinks(View view) {
- Dependency modelElement = (Dependency) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- public List<UMLLinkDescriptor> getDependency_4010OutgoingLinks(View view) {
- Dependency modelElement = (Dependency) view.getElement();
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004
- (modelElement));
- result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010
- (modelElement));
- return result;
- }
-
- /**
- * @generated
- */
- protected Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Deployment_4001(DeploymentTarget container) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- for (Iterator<?> links = container.getDeployments()
- .iterator(); links.hasNext();) {
- EObject linkObject = (EObject) links.next();
- if (false == linkObject instanceof Deployment) {
- continue;
- }
- Deployment link = (Deployment) linkObject;
- if (DeploymentEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
- continue;
- }
- List<?> targets = link.getSuppliers();
- Object theTarget = targets.size() == 1 ? targets.get(0) : null;
- if (false == theTarget instanceof NamedElement) {
- continue;
- }
- NamedElement dst = (NamedElement) theTarget;
- List<?> sources = link.getClients();
- Object theSource = sources.size() == 1 ? sources.get(0) : null;
- if (false == theSource instanceof NamedElement) {
- continue;
- }
- NamedElement src = (NamedElement) theSource;
- result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Deployment_4001, DeploymentEditPart.VISUAL_ID));
- }
- return result;
- }
-
- /**
- * @generated
- */
- protected Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Manifestation_4002(Artifact container) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- for (Iterator<?> links = container.getManifestations()
- .iterator(); links.hasNext();) {
- EObject linkObject = (EObject) links.next();
- if (false == linkObject instanceof Manifestation) {
- continue;
- }
- Manifestation link = (Manifestation) linkObject;
- if (ManifestationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
- continue;
- }
- List<?> targets = link.getSuppliers();
- Object theTarget = targets.size() == 1 ? targets.get(0) : null;
- if (false == theTarget instanceof NamedElement) {
- continue;
- }
- NamedElement dst = (NamedElement) theTarget;
- List<?> sources = link.getClients();
- Object theSource = sources.size() == 1 ? sources.get(0) : null;
- if (false == theSource instanceof NamedElement) {
- continue;
- }
- NamedElement src = (NamedElement) theSource;
- result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Manifestation_4002, ManifestationEditPart.VISUAL_ID));
- }
- return result;
- }
-
- /**
- * @generated
- */
- protected Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Generalization_4003(Classifier container) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- for (Iterator<?> links = container.getGeneralizations()
- .iterator(); links.hasNext();) {
- EObject linkObject = (EObject) links.next();
- if (false == linkObject instanceof Generalization) {
- continue;
- }
- Generalization link = (Generalization) linkObject;
- if (GeneralizationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
- continue;
- }
- Classifier dst = link.getGeneral();
- Classifier src = link.getSpecific();
- result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Generalization_4003, GeneralizationEditPart.VISUAL_ID));
- }
- return result;
- }
-
- /**
- * @generated
- */
- protected Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Dependency_4004(Package container) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- for (Iterator<?> links = container.getPackagedElements()
- .iterator(); links.hasNext();) {
- EObject linkObject = (EObject) links.next();
- if (false == linkObject instanceof Dependency) {
- continue;
- }
- Dependency link = (Dependency) linkObject;
- if (DependencyEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
- continue;
- }
- List<?> targets = link.getSuppliers();
- Object theTarget = targets.size() == 1 ? targets.get(0) : null;
- if (false == theTarget instanceof NamedElement) {
- continue;
- }
- NamedElement dst = (NamedElement) theTarget;
- List<?> sources = link.getClients();
- Object theSource = sources.size() == 1 ? sources.get(0) : null;
- if (false == theSource instanceof NamedElement) {
- continue;
- }
- NamedElement src = (NamedElement) theSource;
- result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Dependency_4004, DependencyEditPart.VISUAL_ID));
- }
- return result;
- }
-
- /**
- * @generated
- */
- protected Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Dependency_4010(Package container) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- for (Iterator<?> links = container.getPackagedElements()
- .iterator(); links.hasNext();) {
- EObject linkObject = (EObject) links.next();
- if (false == linkObject instanceof Dependency) {
- continue;
- }
- Dependency link = (Dependency) linkObject;
- if (DependencyBranchEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
- continue;
- }
- List<?> targets = link.getSuppliers();
- Object theTarget = targets.size() == 1 ? targets.get(0) : null;
- if (false == theTarget instanceof NamedElement) {
- continue;
- }
- NamedElement dst = (NamedElement) theTarget;
- List<?> sources = link.getClients();
- Object theSource = sources.size() == 1 ? sources.get(0) : null;
- if (false == theSource instanceof NamedElement) {
- continue;
- }
- NamedElement src = (NamedElement) theSource;
- result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Dependency_4010, DependencyBranchEditPart.VISUAL_ID));
- }
- return result;
- }
-
- /**
- * @generated
- */
- protected Collection<UMLLinkDescriptor> getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(Element target, CrossReferenceAdapter crossReferencer) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
- for (EStructuralFeature.Setting setting : settings) {
- if (setting.getEStructuralFeature() == UMLPackage.eINSTANCE.getComment_AnnotatedElement()) {
- result.add(new UMLLinkDescriptor(setting.getEObject(), target, UMLElementTypes.CommentAnnotatedElement_4008, CommentAnnotatedElementEditPart.VISUAL_ID));
- }
- }
- return result;
- }
-
- /**
- * @generated
- */
- protected Collection<UMLLinkDescriptor> getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(Element target, CrossReferenceAdapter crossReferencer) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
- for (EStructuralFeature.Setting setting : settings) {
- if (setting.getEStructuralFeature() == UMLPackage.eINSTANCE.getConstraint_ConstrainedElement()) {
- result.add(new UMLLinkDescriptor(setting.getEObject(), target, UMLElementTypes.ConstraintConstrainedElement_4009, ConstraintConstrainedElementEditPart.VISUAL_ID));
- }
- }
- return result;
- }
-
- /**
- * @generated
- */
- protected Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Deployment_4001(NamedElement target, CrossReferenceAdapter crossReferencer) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
- for (EStructuralFeature.Setting setting : settings) {
- if (setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Deployment) {
- continue;
- }
- Deployment link = (Deployment) setting.getEObject();
- if (DeploymentEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
- continue;
- }
- List<?> sources = link.getClients();
- Object theSource = sources.size() == 1 ? sources.get(0) : null;
- if (false == theSource instanceof NamedElement) {
- continue;
- }
- NamedElement src = (NamedElement) theSource;
- result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.Deployment_4001, DeploymentEditPart.VISUAL_ID));
- }
- return result;
- }
-
- /**
- * @generated
- */
- protected Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Manifestation_4002(NamedElement target, CrossReferenceAdapter crossReferencer) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
- for (EStructuralFeature.Setting setting : settings) {
- if (setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Manifestation) {
- continue;
- }
- Manifestation link = (Manifestation) setting.getEObject();
- if (ManifestationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
- continue;
- }
- List<?> sources = link.getClients();
- Object theSource = sources.size() == 1 ? sources.get(0) : null;
- if (false == theSource instanceof NamedElement) {
- continue;
- }
- NamedElement src = (NamedElement) theSource;
- result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.Manifestation_4002, ManifestationEditPart.VISUAL_ID));
- }
- return result;
- }
-
- /**
- * @generated
- */
- protected Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Generalization_4003(Classifier target, CrossReferenceAdapter crossReferencer) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
- for (EStructuralFeature.Setting setting : settings) {
- if (setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getGeneralization_General() || false == setting.getEObject() instanceof Generalization) {
- continue;
- }
- Generalization link = (Generalization) setting.getEObject();
- if (GeneralizationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
- continue;
- }
- Classifier src = link.getSpecific();
- result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.Generalization_4003, GeneralizationEditPart.VISUAL_ID));
- }
- return result;
- }
-
- /**
- * @generated
- */
- protected Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Dependency_4004(NamedElement target, CrossReferenceAdapter crossReferencer) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
- for (EStructuralFeature.Setting setting : settings) {
- if (setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Dependency) {
- continue;
- }
- Dependency link = (Dependency) setting.getEObject();
- if (DependencyEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
- continue;
- }
- List<?> sources = link.getClients();
- Object theSource = sources.size() == 1 ? sources.get(0) : null;
- if (false == theSource instanceof NamedElement) {
- continue;
- }
- NamedElement src = (NamedElement) theSource;
- result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.Dependency_4004, DependencyEditPart.VISUAL_ID));
- }
- return result;
- }
-
- /**
- * @generated
- */
- protected Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Dependency_4010(NamedElement target, CrossReferenceAdapter crossReferencer) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
- for (EStructuralFeature.Setting setting : settings) {
- if (setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Dependency) {
- continue;
- }
- Dependency link = (Dependency) setting.getEObject();
- if (DependencyBranchEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
- continue;
- }
- List<?> sources = link.getClients();
- Object theSource = sources.size() == 1 ? sources.get(0) : null;
- if (false == theSource instanceof NamedElement) {
- continue;
- }
- NamedElement src = (NamedElement) theSource;
- result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.Dependency_4010, DependencyBranchEditPart.VISUAL_ID));
- }
- return result;
- }
-
- /**
- * @generated
- */
- protected Collection<UMLLinkDescriptor> getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(Comment source) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- for (Iterator<?> destinations = source.getAnnotatedElements()
- .iterator(); destinations.hasNext();) {
- Element destination = (Element) destinations.next();
- result.add(new UMLLinkDescriptor(source, destination, UMLElementTypes.CommentAnnotatedElement_4008, CommentAnnotatedElementEditPart.VISUAL_ID));
- }
- return result;
- }
-
- /**
- * @generated
- */
- protected Collection<UMLLinkDescriptor> getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(Constraint source) {
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- for (Iterator<?> destinations = source.getConstrainedElements()
- .iterator(); destinations.hasNext();) {
- Element destination = (Element) destinations.next();
- result.add(new UMLLinkDescriptor(source, destination, UMLElementTypes.ConstraintConstrainedElement_4009, ConstraintConstrainedElementEditPart.VISUAL_ID));
- }
- return result;
- }
-
- /**
- * @generated
- */
- protected Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_Deployment_4001(NamedElement source) {
- DeploymentTarget container = null;
- // Find container element for the link.
- // Climb up by containment hierarchy starting from the source
- // and return the first element that is instance of the container class.
- for (EObject element = source; element != null && container == null; element = element.eContainer()) {
- if (element instanceof DeploymentTarget) {
- container = (DeploymentTarget) element;
- }
- }
- if (container == null) {
- return Collections.emptyList();
- }
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- for (Iterator<?> links = container.getDeployments()
- .iterator(); links.hasNext();) {
- EObject linkObject = (EObject) links.next();
- if (false == linkObject instanceof Deployment) {
- continue;
- }
- Deployment link = (Deployment) linkObject;
- if (DeploymentEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
- continue;
- }
- List<?> targets = link.getSuppliers();
- Object theTarget = targets.size() == 1 ? targets.get(0) : null;
- if (false == theTarget instanceof NamedElement) {
- continue;
- }
- NamedElement dst = (NamedElement) theTarget;
- List<?> sources = link.getClients();
- Object theSource = sources.size() == 1 ? sources.get(0) : null;
- if (false == theSource instanceof NamedElement) {
- continue;
- }
- NamedElement src = (NamedElement) theSource;
- if (src != source) {
- continue;
- }
- result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Deployment_4001, DeploymentEditPart.VISUAL_ID));
- }
- return result;
- }
-
- /**
- * @generated
- */
- protected Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_Manifestation_4002(NamedElement source) {
- Artifact container = null;
- // Find container element for the link.
- // Climb up by containment hierarchy starting from the source
- // and return the first element that is instance of the container class.
- for (EObject element = source; element != null && container == null; element = element.eContainer()) {
- if (element instanceof Artifact) {
- container = (Artifact) element;
- }
- }
- if (container == null) {
- return Collections.emptyList();
- }
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- for (Iterator<?> links = container.getManifestations()
- .iterator(); links.hasNext();) {
- EObject linkObject = (EObject) links.next();
- if (false == linkObject instanceof Manifestation) {
- continue;
- }
- Manifestation link = (Manifestation) linkObject;
- if (ManifestationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
- continue;
- }
- List<?> targets = link.getSuppliers();
- Object theTarget = targets.size() == 1 ? targets.get(0) : null;
- if (false == theTarget instanceof NamedElement) {
- continue;
- }
- NamedElement dst = (NamedElement) theTarget;
- List<?> sources = link.getClients();
- Object theSource = sources.size() == 1 ? sources.get(0) : null;
- if (false == theSource instanceof NamedElement) {
- continue;
- }
- NamedElement src = (NamedElement) theSource;
- if (src != source) {
- continue;
- }
- result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Manifestation_4002, ManifestationEditPart.VISUAL_ID));
- }
- return result;
- }
-
- /**
- * @generated
- */
- protected Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_Generalization_4003(Classifier source) {
- Classifier container = null;
- // Find container element for the link.
- // Climb up by containment hierarchy starting from the source
- // and return the first element that is instance of the container class.
- for (EObject element = source; element != null && container == null; element = element.eContainer()) {
- if (element instanceof Classifier) {
- container = (Classifier) element;
- }
- }
- if (container == null) {
- return Collections.emptyList();
- }
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- for (Iterator<?> links = container.getGeneralizations()
- .iterator(); links.hasNext();) {
- EObject linkObject = (EObject) links.next();
- if (false == linkObject instanceof Generalization) {
- continue;
- }
- Generalization link = (Generalization) linkObject;
- if (GeneralizationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
- continue;
- }
- Classifier dst = link.getGeneral();
- Classifier src = link.getSpecific();
- if (src != source) {
- continue;
- }
- result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Generalization_4003, GeneralizationEditPart.VISUAL_ID));
- }
- return result;
- }
-
- /**
- * @generated
- */
- protected Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_Dependency_4004(NamedElement source) {
- Package container = null;
- // Find container element for the link.
- // Climb up by containment hierarchy starting from the source
- // and return the first element that is instance of the container class.
- for (EObject element = source; element != null && container == null; element = element.eContainer()) {
- if (element instanceof Package) {
- container = (Package) element;
- }
- }
- if (container == null) {
- return Collections.emptyList();
- }
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- for (Iterator<?> links = container.getPackagedElements()
- .iterator(); links.hasNext();) {
- EObject linkObject = (EObject) links.next();
- if (false == linkObject instanceof Dependency) {
- continue;
- }
- Dependency link = (Dependency) linkObject;
- if (DependencyEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
- continue;
- }
- List<?> targets = link.getSuppliers();
- Object theTarget = targets.size() == 1 ? targets.get(0) : null;
- if (false == theTarget instanceof NamedElement) {
- continue;
- }
- NamedElement dst = (NamedElement) theTarget;
- List<?> sources = link.getClients();
- Object theSource = sources.size() == 1 ? sources.get(0) : null;
- if (false == theSource instanceof NamedElement) {
- continue;
- }
- NamedElement src = (NamedElement) theSource;
- if (src != source) {
- continue;
- }
- result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Dependency_4004, DependencyEditPart.VISUAL_ID));
- }
- return result;
- }
-
- /**
- * @generated
- */
- protected Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_Dependency_4010(NamedElement source) {
- Package container = null;
- // Find container element for the link.
- // Climb up by containment hierarchy starting from the source
- // and return the first element that is instance of the container class.
- for (EObject element = source; element != null && container == null; element = element.eContainer()) {
- if (element instanceof Package) {
- container = (Package) element;
- }
- }
- if (container == null) {
- return Collections.emptyList();
- }
- LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
- for (Iterator<?> links = container.getPackagedElements()
- .iterator(); links.hasNext();) {
- EObject linkObject = (EObject) links.next();
- if (false == linkObject instanceof Dependency) {
- continue;
- }
- Dependency link = (Dependency) linkObject;
- if (DependencyBranchEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
- continue;
- }
- List<?> targets = link.getSuppliers();
- Object theTarget = targets.size() == 1 ? targets.get(0) : null;
- if (false == theTarget instanceof NamedElement) {
- continue;
- }
- NamedElement dst = (NamedElement) theTarget;
- List<?> sources = link.getClients();
- Object theSource = sources.size() == 1 ? sources.get(0) : null;
- if (false == theSource instanceof NamedElement) {
- continue;
- }
- NamedElement src = (NamedElement) theSource;
- if (src != source) {
- continue;
- }
- result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Dependency_4010, DependencyBranchEditPart.VISUAL_ID));
- }
- return result;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import java.util.Collection;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gmf.runtime.emf.core.util.CrossReferenceAdapter;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.update.DiagramUpdater;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPartACN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartACN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DefaultNamedElementEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyNodeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceCompositeCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceCompositeCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentCompositeCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentCompositeCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelPackageableElementCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelPackageableElementCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNodeEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeCompositeCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeCompositeCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackagePackageableElementCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackagePackageableElementCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.uml2.uml.Artifact;
+import org.eclipse.uml2.uml.Classifier;
+import org.eclipse.uml2.uml.Comment;
+import org.eclipse.uml2.uml.Constraint;
+import org.eclipse.uml2.uml.Dependency;
+import org.eclipse.uml2.uml.Deployment;
+import org.eclipse.uml2.uml.DeploymentTarget;
+import org.eclipse.uml2.uml.Device;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.ExecutionEnvironment;
+import org.eclipse.uml2.uml.Generalization;
+import org.eclipse.uml2.uml.Manifestation;
+import org.eclipse.uml2.uml.Model;
+import org.eclipse.uml2.uml.NamedElement;
+import org.eclipse.uml2.uml.Node;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.PackageableElement;
+import org.eclipse.uml2.uml.UMLPackage;
+
+/**
+ * @generated
+ */
+public class UMLDiagramUpdater implements DiagramUpdater {
+
+ /**
+ * @generated
+ */
+ public static final org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramUpdater INSTANCE = new UMLDiagramUpdater();
+
+ /**
+ * @generated
+ */
+ protected UMLDiagramUpdater() {
+ //to prevent instantiation allowing the override
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public List<UMLNodeDescriptor> getSemanticChildren(View view) {
+ switch (UMLVisualIDRegistry.getVisualID(view)) {
+ case DeploymentDiagramEditPart.VISUAL_ID:
+ return getPackage_1000SemanticChildren(view);
+ case ModelPackageableElementCompartmentEditPart.VISUAL_ID:
+ return getModelModelCompartment_51SemanticChildren(view);
+ case PackagePackageableElementCompartmentEditPart.VISUAL_ID:
+ return getPackagePackageableElementCompartment_38SemanticChildren(view);
+ case DeviceCompositeCompartmentEditPart.VISUAL_ID:
+ return getDeviceDeviceCompositeCompartment_17SemanticChildren(view);
+ case ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID:
+ return getExecutionEnvironmentExecutionEnvironmentCompositeCompartment_18SemanticChildren(view);
+ case NodeCompositeCompartmentEditPart.VISUAL_ID:
+ return getNodeCompositeCompartment_19SemanticChildren(view);
+ case ArtifactCompositeCompartmentEditPart.VISUAL_ID:
+ return getArtifactArtifactCompositeCompartment_26SemanticChildren(view);
+ case ModelPackageableElementCompartmentEditPartCN.VISUAL_ID:
+ return getModelModelCompartment_52SemanticChildren(view);
+ case PackagePackageableElementCompartmentEditPartCN.VISUAL_ID:
+ return getPackagePackageableElementCompartment_39SemanticChildren(view);
+ case DeviceCompositeCompartmentEditPartCN.VISUAL_ID:
+ return getDeviceDeviceCompositeCompartment_30SemanticChildren(view);
+ case ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID:
+ return getExecutionEnvironmentExecutionEnvironmentCompositeCompartment_31SemanticChildren(view);
+ case NodeCompositeCompartmentEditPartCN.VISUAL_ID:
+ return getNodeCompositeCompartment_32SemanticChildren(view);
+ case ArtifactCompositeCompartmentEditPartCN.VISUAL_ID:
+ return getArtifactArtifactCompositeCompartment_33SemanticChildren(view);
+ case ArtifactCompositeCompartmentEditPartACN.VISUAL_ID:
+ return getArtifactArtifactCompositeCompartment_34SemanticChildren(view);
+ }
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLNodeDescriptor> getPackage_1000SemanticChildren(View view) {
+ if (!view.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Package modelElement = (Package) view.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for (Iterator<?> it = modelElement.getPackagedElements()
+ .iterator(); it.hasNext();) {
+ PackageableElement childElement = (PackageableElement) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == DependencyNodeEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == ModelEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == PackageEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == ExecutionEnvironmentEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == DeviceEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == ArtifactEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NodeEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == DefaultNamedElementEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for (Iterator<?> it = modelElement.getOwnedRules()
+ .iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == ConstraintEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for (Iterator<?> it = modelElement.getOwnedComments()
+ .iterator(); it.hasNext();) {
+ Comment childElement = (Comment) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == CommentEditPart.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLNodeDescriptor> getModelModelCompartment_51SemanticChildren(View view) {
+ if (false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View) view.eContainer();
+ if (!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Model modelElement = (Model) containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for (Iterator<?> it = modelElement.getPackagedElements()
+ .iterator(); it.hasNext();) {
+ PackageableElement childElement = (PackageableElement) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == ModelEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == PackageEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NestedDeviceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NestedExecutionEnvironmentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NestedNodeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NestedArtifactNodeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for (Iterator<?> it = modelElement.getOwnedComments()
+ .iterator(); it.hasNext();) {
+ Comment childElement = (Comment) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for (Iterator<?> it = modelElement.getOwnedRules()
+ .iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLNodeDescriptor> getPackagePackageableElementCompartment_38SemanticChildren(View view) {
+ if (false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View) view.eContainer();
+ if (!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Package modelElement = (Package) containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for (Iterator<?> it = modelElement.getPackagedElements()
+ .iterator(); it.hasNext();) {
+ PackageableElement childElement = (PackageableElement) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == ModelEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == PackageEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NestedArtifactNodeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NestedDeviceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NestedExecutionEnvironmentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NestedNodeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for (Iterator<?> it = modelElement.getOwnedComments()
+ .iterator(); it.hasNext();) {
+ Comment childElement = (Comment) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for (Iterator<?> it = modelElement.getOwnedRules()
+ .iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLNodeDescriptor> getDeviceDeviceCompositeCompartment_17SemanticChildren(View view) {
+ if (false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View) view.eContainer();
+ if (!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Device modelElement = (Device) containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for (Iterator<?> it = modelElement.getNestedNodes()
+ .iterator(); it.hasNext();) {
+ Node childElement = (Node) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == ExecutionEnvironmentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == DeviceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NodeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLNodeDescriptor> getExecutionEnvironmentExecutionEnvironmentCompositeCompartment_18SemanticChildren(View view) {
+ if (false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View) view.eContainer();
+ if (!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ ExecutionEnvironment modelElement = (ExecutionEnvironment) containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for (Iterator<?> it = modelElement.getNestedNodes()
+ .iterator(); it.hasNext();) {
+ Node childElement = (Node) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == ExecutionEnvironmentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for (Iterator<?> it = modelElement.getNestedClassifiers()
+ .iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLNodeDescriptor> getNodeCompositeCompartment_19SemanticChildren(View view) {
+ if (false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View) view.eContainer();
+ if (!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Node modelElement = (Node) containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for (Iterator<?> it = modelElement.getNestedNodes()
+ .iterator(); it.hasNext();) {
+ Node childElement = (Node) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == DeviceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == ExecutionEnvironmentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NodeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for (Iterator<?> it = modelElement.getNestedClassifiers()
+ .iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLNodeDescriptor> getArtifactArtifactCompositeCompartment_26SemanticChildren(View view) {
+ if (false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View) view.eContainer();
+ if (!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Artifact modelElement = (Artifact) containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for (Iterator<?> it = modelElement.getNestedArtifacts()
+ .iterator(); it.hasNext();) {
+ Artifact childElement = (Artifact) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == ArtifactEditPartACN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLNodeDescriptor> getModelModelCompartment_52SemanticChildren(View view) {
+ if (false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View) view.eContainer();
+ if (!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Model modelElement = (Model) containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for (Iterator<?> it = modelElement.getPackagedElements()
+ .iterator(); it.hasNext();) {
+ PackageableElement childElement = (PackageableElement) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == ModelEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == PackageEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NestedDeviceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NestedExecutionEnvironmentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NestedNodeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NestedArtifactNodeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for (Iterator<?> it = modelElement.getOwnedComments()
+ .iterator(); it.hasNext();) {
+ Comment childElement = (Comment) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for (Iterator<?> it = modelElement.getOwnedRules()
+ .iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLNodeDescriptor> getPackagePackageableElementCompartment_39SemanticChildren(View view) {
+ if (false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View) view.eContainer();
+ if (!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Package modelElement = (Package) containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for (Iterator<?> it = modelElement.getPackagedElements()
+ .iterator(); it.hasNext();) {
+ PackageableElement childElement = (PackageableElement) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == PackageEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NestedArtifactNodeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NestedDeviceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NestedExecutionEnvironmentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NestedNodeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for (Iterator<?> it = modelElement.getOwnedComments()
+ .iterator(); it.hasNext();) {
+ Comment childElement = (Comment) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == CommentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for (Iterator<?> it = modelElement.getOwnedRules()
+ .iterator(); it.hasNext();) {
+ Constraint childElement = (Constraint) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == ConstraintEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLNodeDescriptor> getDeviceDeviceCompositeCompartment_30SemanticChildren(View view) {
+ if (false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View) view.eContainer();
+ if (!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Device modelElement = (Device) containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for (Iterator<?> it = modelElement.getNestedNodes()
+ .iterator(); it.hasNext();) {
+ Node childElement = (Node) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == ExecutionEnvironmentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == DeviceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NodeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLNodeDescriptor> getExecutionEnvironmentExecutionEnvironmentCompositeCompartment_31SemanticChildren(View view) {
+ if (false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View) view.eContainer();
+ if (!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ ExecutionEnvironment modelElement = (ExecutionEnvironment) containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for (Iterator<?> it = modelElement.getNestedClassifiers()
+ .iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for (Iterator<?> it = modelElement.getNestedNodes()
+ .iterator(); it.hasNext();) {
+ Node childElement = (Node) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == ExecutionEnvironmentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLNodeDescriptor> getNodeCompositeCompartment_32SemanticChildren(View view) {
+ if (false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View) view.eContainer();
+ if (!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Node modelElement = (Node) containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for (Iterator<?> it = modelElement.getNestedNodes()
+ .iterator(); it.hasNext();) {
+ Node childElement = (Node) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == DeviceEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == ExecutionEnvironmentEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ if (visualID == NodeEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ for (Iterator<?> it = modelElement.getNestedClassifiers()
+ .iterator(); it.hasNext();) {
+ Classifier childElement = (Classifier) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == ArtifactEditPartCN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLNodeDescriptor> getArtifactArtifactCompositeCompartment_33SemanticChildren(View view) {
+ if (false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View) view.eContainer();
+ if (!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Artifact modelElement = (Artifact) containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for (Iterator<?> it = modelElement.getNestedArtifacts()
+ .iterator(); it.hasNext();) {
+ Artifact childElement = (Artifact) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == ArtifactEditPartACN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLNodeDescriptor> getArtifactArtifactCompositeCompartment_34SemanticChildren(View view) {
+ if (false == view.eContainer() instanceof View) {
+ return Collections.emptyList();
+ }
+ View containerView = (View) view.eContainer();
+ if (!containerView.isSetElement()) {
+ return Collections.emptyList();
+ }
+ Artifact modelElement = (Artifact) containerView.getElement();
+ LinkedList<UMLNodeDescriptor> result = new LinkedList<UMLNodeDescriptor>();
+ for (Iterator<?> it = modelElement.getNestedArtifacts()
+ .iterator(); it.hasNext();) {
+ Artifact childElement = (Artifact) it.next();
+ int visualID = UMLVisualIDRegistry.getNodeVisualID(view, childElement);
+ if (visualID == ArtifactEditPartACN.VISUAL_ID) {
+ result.add(new UMLNodeDescriptor(childElement, visualID));
+ continue;
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public List<UMLLinkDescriptor> getContainedLinks(View view) {
+ switch (UMLVisualIDRegistry.getVisualID(view)) {
+ case DeploymentDiagramEditPart.VISUAL_ID:
+ return getPackage_1000ContainedLinks(view);
+ case DependencyNodeEditPart.VISUAL_ID:
+ return getDependency_2011ContainedLinks(view);
+ case ModelEditPart.VISUAL_ID:
+ return getModel_2010ContainedLinks(view);
+ case PackageEditPart.VISUAL_ID:
+ return getPackage_2009ContainedLinks(view);
+ case ConstraintEditPart.VISUAL_ID:
+ return getConstraint_2005ContainedLinks(view);
+ case CommentEditPart.VISUAL_ID:
+ return getComment_2001ContainedLinks(view);
+ case ExecutionEnvironmentEditPart.VISUAL_ID:
+ return getExecutionEnvironment_2002ContainedLinks(view);
+ case DeviceEditPart.VISUAL_ID:
+ return getDevice_2003ContainedLinks(view);
+ case ArtifactEditPart.VISUAL_ID:
+ return getArtifact_2006ContainedLinks(view);
+ case NodeEditPart.VISUAL_ID:
+ return getNode_2008ContainedLinks(view);
+ case DefaultNamedElementEditPart.VISUAL_ID:
+ return getNamedElement_2012ContainedLinks(view);
+ case ModelEditPartCN.VISUAL_ID:
+ return getModel_49ContainedLinks(view);
+ case PackageEditPartCN.VISUAL_ID:
+ return getPackage_36ContainedLinks(view);
+ case DeviceEditPartCN.VISUAL_ID:
+ return getDevice_16ContainedLinks(view);
+ case NestedDeviceEditPartCN.VISUAL_ID:
+ return getDevice_44ContainedLinks(view);
+ case ExecutionEnvironmentEditPartCN.VISUAL_ID:
+ return getExecutionEnvironment_21ContainedLinks(view);
+ case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
+ return getExecutionEnvironment_46ContainedLinks(view);
+ case NodeEditPartCN.VISUAL_ID:
+ return getNode_23ContainedLinks(view);
+ case NestedNodeEditPartCN.VISUAL_ID:
+ return getNode_42ContainedLinks(view);
+ case ArtifactEditPartCN.VISUAL_ID:
+ return getArtifact_25ContainedLinks(view);
+ case ArtifactEditPartACN.VISUAL_ID:
+ return getArtifact_28ContainedLinks(view);
+ case NestedArtifactNodeEditPartCN.VISUAL_ID:
+ return getArtifact_40ContainedLinks(view);
+ case CommentEditPartCN.VISUAL_ID:
+ return getComment_54ContainedLinks(view);
+ case ConstraintEditPartCN.VISUAL_ID:
+ return getConstraint_56ContainedLinks(view);
+ case DeploymentEditPart.VISUAL_ID:
+ return getDeployment_4001ContainedLinks(view);
+ case ManifestationEditPart.VISUAL_ID:
+ return getManifestation_4002ContainedLinks(view);
+ case GeneralizationEditPart.VISUAL_ID:
+ return getGeneralization_4003ContainedLinks(view);
+ case DependencyEditPart.VISUAL_ID:
+ return getDependency_4004ContainedLinks(view);
+ case DependencyBranchEditPart.VISUAL_ID:
+ return getDependency_4010ContainedLinks(view);
+ }
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public List<UMLLinkDescriptor> getIncomingLinks(View view) {
+ switch (UMLVisualIDRegistry.getVisualID(view)) {
+ case DependencyNodeEditPart.VISUAL_ID:
+ return getDependency_2011IncomingLinks(view);
+ case ModelEditPart.VISUAL_ID:
+ return getModel_2010IncomingLinks(view);
+ case PackageEditPart.VISUAL_ID:
+ return getPackage_2009IncomingLinks(view);
+ case ConstraintEditPart.VISUAL_ID:
+ return getConstraint_2005IncomingLinks(view);
+ case CommentEditPart.VISUAL_ID:
+ return getComment_2001IncomingLinks(view);
+ case ExecutionEnvironmentEditPart.VISUAL_ID:
+ return getExecutionEnvironment_2002IncomingLinks(view);
+ case DeviceEditPart.VISUAL_ID:
+ return getDevice_2003IncomingLinks(view);
+ case ArtifactEditPart.VISUAL_ID:
+ return getArtifact_2006IncomingLinks(view);
+ case NodeEditPart.VISUAL_ID:
+ return getNode_2008IncomingLinks(view);
+ case DefaultNamedElementEditPart.VISUAL_ID:
+ return getNamedElement_2012IncomingLinks(view);
+ case ModelEditPartCN.VISUAL_ID:
+ return getModel_49IncomingLinks(view);
+ case PackageEditPartCN.VISUAL_ID:
+ return getPackage_36IncomingLinks(view);
+ case DeviceEditPartCN.VISUAL_ID:
+ return getDevice_16IncomingLinks(view);
+ case NestedDeviceEditPartCN.VISUAL_ID:
+ return getDevice_44IncomingLinks(view);
+ case ExecutionEnvironmentEditPartCN.VISUAL_ID:
+ return getExecutionEnvironment_21IncomingLinks(view);
+ case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
+ return getExecutionEnvironment_46IncomingLinks(view);
+ case NodeEditPartCN.VISUAL_ID:
+ return getNode_23IncomingLinks(view);
+ case NestedNodeEditPartCN.VISUAL_ID:
+ return getNode_42IncomingLinks(view);
+ case ArtifactEditPartCN.VISUAL_ID:
+ return getArtifact_25IncomingLinks(view);
+ case ArtifactEditPartACN.VISUAL_ID:
+ return getArtifact_28IncomingLinks(view);
+ case NestedArtifactNodeEditPartCN.VISUAL_ID:
+ return getArtifact_40IncomingLinks(view);
+ case CommentEditPartCN.VISUAL_ID:
+ return getComment_54IncomingLinks(view);
+ case ConstraintEditPartCN.VISUAL_ID:
+ return getConstraint_56IncomingLinks(view);
+ case DeploymentEditPart.VISUAL_ID:
+ return getDeployment_4001IncomingLinks(view);
+ case ManifestationEditPart.VISUAL_ID:
+ return getManifestation_4002IncomingLinks(view);
+ case GeneralizationEditPart.VISUAL_ID:
+ return getGeneralization_4003IncomingLinks(view);
+ case DependencyEditPart.VISUAL_ID:
+ return getDependency_4004IncomingLinks(view);
+ case DependencyBranchEditPart.VISUAL_ID:
+ return getDependency_4010IncomingLinks(view);
+ }
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public List<UMLLinkDescriptor> getOutgoingLinks(View view) {
+ switch (UMLVisualIDRegistry.getVisualID(view)) {
+ case DependencyNodeEditPart.VISUAL_ID:
+ return getDependency_2011OutgoingLinks(view);
+ case ModelEditPart.VISUAL_ID:
+ return getModel_2010OutgoingLinks(view);
+ case PackageEditPart.VISUAL_ID:
+ return getPackage_2009OutgoingLinks(view);
+ case ConstraintEditPart.VISUAL_ID:
+ return getConstraint_2005OutgoingLinks(view);
+ case CommentEditPart.VISUAL_ID:
+ return getComment_2001OutgoingLinks(view);
+ case ExecutionEnvironmentEditPart.VISUAL_ID:
+ return getExecutionEnvironment_2002OutgoingLinks(view);
+ case DeviceEditPart.VISUAL_ID:
+ return getDevice_2003OutgoingLinks(view);
+ case ArtifactEditPart.VISUAL_ID:
+ return getArtifact_2006OutgoingLinks(view);
+ case NodeEditPart.VISUAL_ID:
+ return getNode_2008OutgoingLinks(view);
+ case DefaultNamedElementEditPart.VISUAL_ID:
+ return getNamedElement_2012OutgoingLinks(view);
+ case ModelEditPartCN.VISUAL_ID:
+ return getModel_49OutgoingLinks(view);
+ case PackageEditPartCN.VISUAL_ID:
+ return getPackage_36OutgoingLinks(view);
+ case DeviceEditPartCN.VISUAL_ID:
+ return getDevice_16OutgoingLinks(view);
+ case NestedDeviceEditPartCN.VISUAL_ID:
+ return getDevice_44OutgoingLinks(view);
+ case ExecutionEnvironmentEditPartCN.VISUAL_ID:
+ return getExecutionEnvironment_21OutgoingLinks(view);
+ case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
+ return getExecutionEnvironment_46OutgoingLinks(view);
+ case NodeEditPartCN.VISUAL_ID:
+ return getNode_23OutgoingLinks(view);
+ case NestedNodeEditPartCN.VISUAL_ID:
+ return getNode_42OutgoingLinks(view);
+ case ArtifactEditPartCN.VISUAL_ID:
+ return getArtifact_25OutgoingLinks(view);
+ case ArtifactEditPartACN.VISUAL_ID:
+ return getArtifact_28OutgoingLinks(view);
+ case NestedArtifactNodeEditPartCN.VISUAL_ID:
+ return getArtifact_40OutgoingLinks(view);
+ case CommentEditPartCN.VISUAL_ID:
+ return getComment_54OutgoingLinks(view);
+ case ConstraintEditPartCN.VISUAL_ID:
+ return getConstraint_56OutgoingLinks(view);
+ case DeploymentEditPart.VISUAL_ID:
+ return getDeployment_4001OutgoingLinks(view);
+ case ManifestationEditPart.VISUAL_ID:
+ return getManifestation_4002OutgoingLinks(view);
+ case GeneralizationEditPart.VISUAL_ID:
+ return getGeneralization_4003OutgoingLinks(view);
+ case DependencyEditPart.VISUAL_ID:
+ return getDependency_4004OutgoingLinks(view);
+ case DependencyBranchEditPart.VISUAL_ID:
+ return getDependency_4010OutgoingLinks(view);
+ }
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getPackage_1000ContainedLinks(View view) {
+ Package modelElement = (Package) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDependency_2011ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getModel_2010ContainedLinks(View view) {
+ Model modelElement = (Model) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getPackage_2009ContainedLinks(View view) {
+ Package modelElement = (Package) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getConstraint_2005ContainedLinks(View view) {
+ Constraint modelElement = (Constraint) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getComment_2001ContainedLinks(View view) {
+ Comment modelElement = (Comment) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getExecutionEnvironment_2002ContainedLinks(View view) {
+ ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDevice_2003ContainedLinks(View view) {
+ Device modelElement = (Device) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getArtifact_2006ContainedLinks(View view) {
+ Artifact modelElement = (Artifact) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getNode_2008ContainedLinks(View view) {
+ Node modelElement = (Node) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getNamedElement_2012ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getModel_49ContainedLinks(View view) {
+ Model modelElement = (Model) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getPackage_36ContainedLinks(View view) {
+ Package modelElement = (Package) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDevice_16ContainedLinks(View view) {
+ Device modelElement = (Device) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDevice_44ContainedLinks(View view) {
+ Device modelElement = (Device) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getExecutionEnvironment_21ContainedLinks(View view) {
+ ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getExecutionEnvironment_46ContainedLinks(View view) {
+ ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getNode_23ContainedLinks(View view) {
+ Node modelElement = (Node) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getNode_42ContainedLinks(View view) {
+ Node modelElement = (Node) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getArtifact_25ContainedLinks(View view) {
+ Artifact modelElement = (Artifact) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getArtifact_28ContainedLinks(View view) {
+ Artifact modelElement = (Artifact) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getArtifact_40ContainedLinks(View view) {
+ Artifact modelElement = (Artifact) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getContainedTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getContainedTypeModelFacetLinks_Generalization_4003(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getComment_54ContainedLinks(View view) {
+ Comment modelElement = (Comment) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getConstraint_56ContainedLinks(View view) {
+ Constraint modelElement = (Constraint) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDeployment_4001ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getManifestation_4002ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getGeneralization_4003ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDependency_4004ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDependency_4010ContainedLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDependency_2011IncomingLinks(View view) {
+ Dependency modelElement = (Dependency) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getModel_2010IncomingLinks(View view) {
+ Model modelElement = (Model) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getPackage_2009IncomingLinks(View view) {
+ Package modelElement = (Package) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getConstraint_2005IncomingLinks(View view) {
+ Constraint modelElement = (Constraint) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getComment_2001IncomingLinks(View view) {
+ Comment modelElement = (Comment) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getExecutionEnvironment_2002IncomingLinks(View view) {
+ ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDevice_2003IncomingLinks(View view) {
+ Device modelElement = (Device) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getArtifact_2006IncomingLinks(View view) {
+ Artifact modelElement = (Artifact) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getNode_2008IncomingLinks(View view) {
+ Node modelElement = (Node) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getNamedElement_2012IncomingLinks(View view) {
+ NamedElement modelElement = (NamedElement) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getModel_49IncomingLinks(View view) {
+ Model modelElement = (Model) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getPackage_36IncomingLinks(View view) {
+ Package modelElement = (Package) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDevice_16IncomingLinks(View view) {
+ Device modelElement = (Device) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDevice_44IncomingLinks(View view) {
+ Device modelElement = (Device) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getExecutionEnvironment_21IncomingLinks(View view) {
+ ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getExecutionEnvironment_46IncomingLinks(View view) {
+ ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getNode_23IncomingLinks(View view) {
+ Node modelElement = (Node) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getNode_42IncomingLinks(View view) {
+ Node modelElement = (Node) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getArtifact_25IncomingLinks(View view) {
+ Artifact modelElement = (Artifact) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getArtifact_28IncomingLinks(View view) {
+ Artifact modelElement = (Artifact) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getArtifact_40IncomingLinks(View view) {
+ Artifact modelElement = (Artifact) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Generalization_4003(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getComment_54IncomingLinks(View view) {
+ Comment modelElement = (Comment) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getConstraint_56IncomingLinks(View view) {
+ Constraint modelElement = (Constraint) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDeployment_4001IncomingLinks(View view) {
+ Deployment modelElement = (Deployment) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getManifestation_4002IncomingLinks(View view) {
+ Manifestation modelElement = (Manifestation) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getGeneralization_4003IncomingLinks(View view) {
+ Generalization modelElement = (Generalization) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDependency_4004IncomingLinks(View view) {
+ Dependency modelElement = (Dependency) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDependency_4010IncomingLinks(View view) {
+ Dependency modelElement = (Dependency) view.getElement();
+ CrossReferenceAdapter crossReferencer = CrossReferenceAdapter.getCrossReferenceAdapter(view.eResource().getResourceSet());
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement, crossReferencer));
+ result.addAll(getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Deployment_4001(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Manifestation_4002(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4004(modelElement, crossReferencer));
+ result.addAll(getIncomingTypeModelFacetLinks_Dependency_4010(modelElement, crossReferencer));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDependency_2011OutgoingLinks(View view) {
+ Dependency modelElement = (Dependency) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getModel_2010OutgoingLinks(View view) {
+ Model modelElement = (Model) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getPackage_2009OutgoingLinks(View view) {
+ Package modelElement = (Package) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getConstraint_2005OutgoingLinks(View view) {
+ Constraint modelElement = (Constraint) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getComment_2001OutgoingLinks(View view) {
+ Comment modelElement = (Comment) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getExecutionEnvironment_2002OutgoingLinks(View view) {
+ ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDevice_2003OutgoingLinks(View view) {
+ Device modelElement = (Device) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getArtifact_2006OutgoingLinks(View view) {
+ Artifact modelElement = (Artifact) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getNode_2008OutgoingLinks(View view) {
+ Node modelElement = (Node) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getNamedElement_2012OutgoingLinks(View view) {
+ NamedElement modelElement = (NamedElement) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getModel_49OutgoingLinks(View view) {
+ Model modelElement = (Model) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getPackage_36OutgoingLinks(View view) {
+ Package modelElement = (Package) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDevice_16OutgoingLinks(View view) {
+ Device modelElement = (Device) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDevice_44OutgoingLinks(View view) {
+ Device modelElement = (Device) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getExecutionEnvironment_21OutgoingLinks(View view) {
+ ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getExecutionEnvironment_46OutgoingLinks(View view) {
+ ExecutionEnvironment modelElement = (ExecutionEnvironment) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getNode_23OutgoingLinks(View view) {
+ Node modelElement = (Node) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getNode_42OutgoingLinks(View view) {
+ Node modelElement = (Node) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getArtifact_25OutgoingLinks(View view) {
+ Artifact modelElement = (Artifact) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getArtifact_28OutgoingLinks(View view) {
+ Artifact modelElement = (Artifact) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getArtifact_40OutgoingLinks(View view) {
+ Artifact modelElement = (Artifact) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Generalization_4003(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getComment_54OutgoingLinks(View view) {
+ Comment modelElement = (Comment) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getConstraint_56OutgoingLinks(View view) {
+ Constraint modelElement = (Constraint) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDeployment_4001OutgoingLinks(View view) {
+ Deployment modelElement = (Deployment) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getManifestation_4002OutgoingLinks(View view) {
+ Manifestation modelElement = (Manifestation) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getGeneralization_4003OutgoingLinks(View view) {
+ return Collections.emptyList();
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDependency_4004OutgoingLinks(View view) {
+ Dependency modelElement = (Dependency) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public List<UMLLinkDescriptor> getDependency_4010OutgoingLinks(View view) {
+ Dependency modelElement = (Dependency) view.getElement();
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ result.addAll(getOutgoingTypeModelFacetLinks_Deployment_4001(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Manifestation_4002(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4004(modelElement));
+ result.addAll(getOutgoingTypeModelFacetLinks_Dependency_4010(modelElement));
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Deployment_4001(DeploymentTarget container) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ for (Iterator<?> links = container.getDeployments()
+ .iterator(); links.hasNext();) {
+ EObject linkObject = (EObject) links.next();
+ if (false == linkObject instanceof Deployment) {
+ continue;
+ }
+ Deployment link = (Deployment) linkObject;
+ if (DeploymentEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List<?> targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if (false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement) theTarget;
+ List<?> sources = link.getClients();
+ Object theSource = sources.size() == 1 ? sources.get(0) : null;
+ if (false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement) theSource;
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Deployment_4001, DeploymentEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Manifestation_4002(Artifact container) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ for (Iterator<?> links = container.getManifestations()
+ .iterator(); links.hasNext();) {
+ EObject linkObject = (EObject) links.next();
+ if (false == linkObject instanceof Manifestation) {
+ continue;
+ }
+ Manifestation link = (Manifestation) linkObject;
+ if (ManifestationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List<?> targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if (false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement) theTarget;
+ List<?> sources = link.getClients();
+ Object theSource = sources.size() == 1 ? sources.get(0) : null;
+ if (false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement) theSource;
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Manifestation_4002, ManifestationEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Generalization_4003(Classifier container) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ for (Iterator<?> links = container.getGeneralizations()
+ .iterator(); links.hasNext();) {
+ EObject linkObject = (EObject) links.next();
+ if (false == linkObject instanceof Generalization) {
+ continue;
+ }
+ Generalization link = (Generalization) linkObject;
+ if (GeneralizationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ Classifier dst = link.getGeneral();
+ Classifier src = link.getSpecific();
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Generalization_4003, GeneralizationEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Dependency_4004(Package container) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ for (Iterator<?> links = container.getPackagedElements()
+ .iterator(); links.hasNext();) {
+ EObject linkObject = (EObject) links.next();
+ if (false == linkObject instanceof Dependency) {
+ continue;
+ }
+ Dependency link = (Dependency) linkObject;
+ if (DependencyEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List<?> targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if (false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement) theTarget;
+ List<?> sources = link.getClients();
+ Object theSource = sources.size() == 1 ? sources.get(0) : null;
+ if (false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement) theSource;
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Dependency_4004, DependencyEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected Collection<UMLLinkDescriptor> getContainedTypeModelFacetLinks_Dependency_4010(Package container) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ for (Iterator<?> links = container.getPackagedElements()
+ .iterator(); links.hasNext();) {
+ EObject linkObject = (EObject) links.next();
+ if (false == linkObject instanceof Dependency) {
+ continue;
+ }
+ Dependency link = (Dependency) linkObject;
+ if (DependencyBranchEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List<?> targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if (false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement) theTarget;
+ List<?> sources = link.getClients();
+ Object theSource = sources.size() == 1 ? sources.get(0) : null;
+ if (false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement) theSource;
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Dependency_4010, DependencyBranchEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected Collection<UMLLinkDescriptor> getIncomingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(Element target, CrossReferenceAdapter crossReferencer) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
+ for (EStructuralFeature.Setting setting : settings) {
+ if (setting.getEStructuralFeature() == UMLPackage.eINSTANCE.getComment_AnnotatedElement()) {
+ result.add(new UMLLinkDescriptor(setting.getEObject(), target, UMLElementTypes.CommentAnnotatedElement_4008, CommentAnnotatedElementEditPart.VISUAL_ID));
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected Collection<UMLLinkDescriptor> getIncomingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(Element target, CrossReferenceAdapter crossReferencer) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
+ for (EStructuralFeature.Setting setting : settings) {
+ if (setting.getEStructuralFeature() == UMLPackage.eINSTANCE.getConstraint_ConstrainedElement()) {
+ result.add(new UMLLinkDescriptor(setting.getEObject(), target, UMLElementTypes.ConstraintConstrainedElement_4009, ConstraintConstrainedElementEditPart.VISUAL_ID));
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Deployment_4001(NamedElement target, CrossReferenceAdapter crossReferencer) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
+ for (EStructuralFeature.Setting setting : settings) {
+ if (setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Deployment) {
+ continue;
+ }
+ Deployment link = (Deployment) setting.getEObject();
+ if (DeploymentEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List<?> sources = link.getClients();
+ Object theSource = sources.size() == 1 ? sources.get(0) : null;
+ if (false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement) theSource;
+ result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.Deployment_4001, DeploymentEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Manifestation_4002(NamedElement target, CrossReferenceAdapter crossReferencer) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
+ for (EStructuralFeature.Setting setting : settings) {
+ if (setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Manifestation) {
+ continue;
+ }
+ Manifestation link = (Manifestation) setting.getEObject();
+ if (ManifestationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List<?> sources = link.getClients();
+ Object theSource = sources.size() == 1 ? sources.get(0) : null;
+ if (false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement) theSource;
+ result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.Manifestation_4002, ManifestationEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Generalization_4003(Classifier target, CrossReferenceAdapter crossReferencer) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
+ for (EStructuralFeature.Setting setting : settings) {
+ if (setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getGeneralization_General() || false == setting.getEObject() instanceof Generalization) {
+ continue;
+ }
+ Generalization link = (Generalization) setting.getEObject();
+ if (GeneralizationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ Classifier src = link.getSpecific();
+ result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.Generalization_4003, GeneralizationEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Dependency_4004(NamedElement target, CrossReferenceAdapter crossReferencer) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
+ for (EStructuralFeature.Setting setting : settings) {
+ if (setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Dependency) {
+ continue;
+ }
+ Dependency link = (Dependency) setting.getEObject();
+ if (DependencyEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List<?> sources = link.getClients();
+ Object theSource = sources.size() == 1 ? sources.get(0) : null;
+ if (false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement) theSource;
+ result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.Dependency_4004, DependencyEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected Collection<UMLLinkDescriptor> getIncomingTypeModelFacetLinks_Dependency_4010(NamedElement target, CrossReferenceAdapter crossReferencer) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ Collection<EStructuralFeature.Setting> settings = crossReferencer.getInverseReferences(target);
+ for (EStructuralFeature.Setting setting : settings) {
+ if (setting.getEStructuralFeature() != UMLPackage.eINSTANCE.getDependency_Supplier() || false == setting.getEObject() instanceof Dependency) {
+ continue;
+ }
+ Dependency link = (Dependency) setting.getEObject();
+ if (DependencyBranchEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List<?> sources = link.getClients();
+ Object theSource = sources.size() == 1 ? sources.get(0) : null;
+ if (false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement) theSource;
+ result.add(new UMLLinkDescriptor(src, target, link, UMLElementTypes.Dependency_4010, DependencyBranchEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected Collection<UMLLinkDescriptor> getOutgoingFeatureModelFacetLinks_Comment_AnnotatedElement_4008(Comment source) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ for (Iterator<?> destinations = source.getAnnotatedElements()
+ .iterator(); destinations.hasNext();) {
+ Element destination = (Element) destinations.next();
+ result.add(new UMLLinkDescriptor(source, destination, UMLElementTypes.CommentAnnotatedElement_4008, CommentAnnotatedElementEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected Collection<UMLLinkDescriptor> getOutgoingFeatureModelFacetLinks_Constraint_ConstrainedElement_4009(Constraint source) {
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ for (Iterator<?> destinations = source.getConstrainedElements()
+ .iterator(); destinations.hasNext();) {
+ Element destination = (Element) destinations.next();
+ result.add(new UMLLinkDescriptor(source, destination, UMLElementTypes.ConstraintConstrainedElement_4009, ConstraintConstrainedElementEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_Deployment_4001(NamedElement source) {
+ DeploymentTarget container = null;
+ // Find container element for the link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for (EObject element = source; element != null && container == null; element = element.eContainer()) {
+ if (element instanceof DeploymentTarget) {
+ container = (DeploymentTarget) element;
+ }
+ }
+ if (container == null) {
+ return Collections.emptyList();
+ }
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ for (Iterator<?> links = container.getDeployments()
+ .iterator(); links.hasNext();) {
+ EObject linkObject = (EObject) links.next();
+ if (false == linkObject instanceof Deployment) {
+ continue;
+ }
+ Deployment link = (Deployment) linkObject;
+ if (DeploymentEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List<?> targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if (false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement) theTarget;
+ List<?> sources = link.getClients();
+ Object theSource = sources.size() == 1 ? sources.get(0) : null;
+ if (false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement) theSource;
+ if (src != source) {
+ continue;
+ }
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Deployment_4001, DeploymentEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_Manifestation_4002(NamedElement source) {
+ Artifact container = null;
+ // Find container element for the link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for (EObject element = source; element != null && container == null; element = element.eContainer()) {
+ if (element instanceof Artifact) {
+ container = (Artifact) element;
+ }
+ }
+ if (container == null) {
+ return Collections.emptyList();
+ }
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ for (Iterator<?> links = container.getManifestations()
+ .iterator(); links.hasNext();) {
+ EObject linkObject = (EObject) links.next();
+ if (false == linkObject instanceof Manifestation) {
+ continue;
+ }
+ Manifestation link = (Manifestation) linkObject;
+ if (ManifestationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List<?> targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if (false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement) theTarget;
+ List<?> sources = link.getClients();
+ Object theSource = sources.size() == 1 ? sources.get(0) : null;
+ if (false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement) theSource;
+ if (src != source) {
+ continue;
+ }
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Manifestation_4002, ManifestationEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_Generalization_4003(Classifier source) {
+ Classifier container = null;
+ // Find container element for the link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for (EObject element = source; element != null && container == null; element = element.eContainer()) {
+ if (element instanceof Classifier) {
+ container = (Classifier) element;
+ }
+ }
+ if (container == null) {
+ return Collections.emptyList();
+ }
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ for (Iterator<?> links = container.getGeneralizations()
+ .iterator(); links.hasNext();) {
+ EObject linkObject = (EObject) links.next();
+ if (false == linkObject instanceof Generalization) {
+ continue;
+ }
+ Generalization link = (Generalization) linkObject;
+ if (GeneralizationEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ Classifier dst = link.getGeneral();
+ Classifier src = link.getSpecific();
+ if (src != source) {
+ continue;
+ }
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Generalization_4003, GeneralizationEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_Dependency_4004(NamedElement source) {
+ Package container = null;
+ // Find container element for the link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for (EObject element = source; element != null && container == null; element = element.eContainer()) {
+ if (element instanceof Package) {
+ container = (Package) element;
+ }
+ }
+ if (container == null) {
+ return Collections.emptyList();
+ }
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ for (Iterator<?> links = container.getPackagedElements()
+ .iterator(); links.hasNext();) {
+ EObject linkObject = (EObject) links.next();
+ if (false == linkObject instanceof Dependency) {
+ continue;
+ }
+ Dependency link = (Dependency) linkObject;
+ if (DependencyEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List<?> targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if (false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement) theTarget;
+ List<?> sources = link.getClients();
+ Object theSource = sources.size() == 1 ? sources.get(0) : null;
+ if (false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement) theSource;
+ if (src != source) {
+ continue;
+ }
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Dependency_4004, DependencyEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ protected Collection<UMLLinkDescriptor> getOutgoingTypeModelFacetLinks_Dependency_4010(NamedElement source) {
+ Package container = null;
+ // Find container element for the link.
+ // Climb up by containment hierarchy starting from the source
+ // and return the first element that is instance of the container class.
+ for (EObject element = source; element != null && container == null; element = element.eContainer()) {
+ if (element instanceof Package) {
+ container = (Package) element;
+ }
+ }
+ if (container == null) {
+ return Collections.emptyList();
+ }
+ LinkedList<UMLLinkDescriptor> result = new LinkedList<UMLLinkDescriptor>();
+ for (Iterator<?> links = container.getPackagedElements()
+ .iterator(); links.hasNext();) {
+ EObject linkObject = (EObject) links.next();
+ if (false == linkObject instanceof Dependency) {
+ continue;
+ }
+ Dependency link = (Dependency) linkObject;
+ if (DependencyBranchEditPart.VISUAL_ID != UMLVisualIDRegistry.getLinkWithClassVisualID(link)) {
+ continue;
+ }
+ List<?> targets = link.getSuppliers();
+ Object theTarget = targets.size() == 1 ? targets.get(0) : null;
+ if (false == theTarget instanceof NamedElement) {
+ continue;
+ }
+ NamedElement dst = (NamedElement) theTarget;
+ List<?> sources = link.getClients();
+ Object theSource = sources.size() == 1 ? sources.get(0) : null;
+ if (false == theSource instanceof NamedElement) {
+ continue;
+ }
+ NamedElement src = (NamedElement) theSource;
+ if (src != source) {
+ continue;
+ }
+ result.add(new UMLLinkDescriptor(src, dst, link, UMLElementTypes.Dependency_4010, DependencyBranchEditPart.VISUAL_ID));
+ }
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDocumentProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDocumentProvider.java
index e7534cca481..2733ec4e4b5 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDocumentProvider.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLDocumentProvider.java
@@ -1,1033 +1,1033 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IResourceStatus;
-import org.eclipse.core.resources.IStorage;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.ISchedulingRule;
-import org.eclipse.core.runtime.jobs.MultiRule;
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.Notifier;
-import org.eclipse.emf.common.ui.URIEditorInput;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.util.EContentAdapter;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.transaction.NotificationFilter;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.emf.workspace.util.WorkspaceSynchronizer;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.diagram.core.DiagramEditingDomainFactory;
-import org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider;
-import org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.DiagramDocument;
-import org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDiagramDocument;
-import org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDiagramDocumentProvider;
-import org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocument;
-import org.eclipse.gmf.runtime.diagram.ui.resources.editor.internal.EditorStatusCodes;
-import org.eclipse.gmf.runtime.diagram.ui.resources.editor.internal.util.DiagramIOUtil;
-import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand;
-import org.eclipse.gmf.runtime.emf.core.resources.GMFResourceFactory;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.jface.operation.IRunnableContext;
-import org.eclipse.osgi.util.NLS;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.part.FileEditorInput;
-
-/**
- * @generated
- */
-public class UMLDocumentProvider extends AbstractDocumentProvider implements IDiagramDocumentProvider {
-
- /**
- * @generated
- */
- @Override
- protected ElementInfo createElementInfo(Object element) throws CoreException {
- if (false == element instanceof FileEditorInput && false == element instanceof URIEditorInput) {
- throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0,
- NLS.bind(
- Messages.UMLDocumentProvider_IncorrectInputError,
- new Object[] { element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
- null));
- }
- IEditorInput editorInput = (IEditorInput) element;
- IDiagramDocument document = (IDiagramDocument) createDocument(editorInput);
-
- ResourceSetInfo info = new ResourceSetInfo(document, editorInput);
- info.setModificationStamp(computeModificationStamp(info));
- info.fStatus = null;
- return info;
- }
-
- /**
- * @generated
- */
- @Override
- protected IDocument createDocument(Object element) throws CoreException {
- if (false == element instanceof FileEditorInput && false == element instanceof URIEditorInput) {
- throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0,
- NLS.bind(
- Messages.UMLDocumentProvider_IncorrectInputError,
- new Object[] { element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
- null));
- }
- IDocument document = createEmptyDocument();
- setDocumentContent(document, (IEditorInput) element);
- setupDocument(element, document);
- return document;
- }
-
- /**
- * Sets up the given document as it would be provided for the given element. The
- * content of the document is not changed. This default implementation is empty.
- * Subclasses may reimplement.
- *
- * @param element
- * the blue-print element
- * @param document
- * the document to set up
- * @generated
- */
- protected void setupDocument(Object element, IDocument document) {
- // for subclasses
- }
-
- /**
- * @generated
- */
- private long computeModificationStamp(ResourceSetInfo info) {
- int result = 0;
- for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
- Resource nextResource = it.next();
- IFile file = WorkspaceSynchronizer.getFile(nextResource);
- if (file != null) {
- if (file.getLocation() != null) {
- result += file.getLocation().toFile().lastModified();
- } else {
- result += file.getModificationStamp();
- }
- }
- }
- return result;
- }
-
- /**
- * @generated
- */
- @Override
- protected IDocument createEmptyDocument() {
- DiagramDocument document = new DiagramDocument();
- document.setEditingDomain(createEditingDomain());
- return document;
- }
-
- /**
- * @generated
- */
- private TransactionalEditingDomain createEditingDomain() {
- TransactionalEditingDomain editingDomain = DiagramEditingDomainFactory.getInstance().createEditingDomain();
- editingDomain.setID("org.eclipse.papyrus.uml.diagram.deployment.EditingDomain"); //$NON-NLS-1$
- final NotificationFilter diagramResourceModifiedFilter = NotificationFilter.createNotifierFilter(editingDomain.getResourceSet()).and(NotificationFilter.createEventTypeFilter(Notification.ADD))
- .and(NotificationFilter.createFeatureFilter(ResourceSet.class, ResourceSet.RESOURCE_SET__RESOURCES));
- editingDomain.getResourceSet().eAdapters().add(new Adapter() {
-
- private Notifier myTarger;
-
- @Override
- public Notifier getTarget() {
- return myTarger;
- }
-
- @Override
- public boolean isAdapterForType(Object type) {
- return false;
- }
-
- @Override
- public void notifyChanged(Notification notification) {
- if (diagramResourceModifiedFilter.matches(notification)) {
- Object value = notification.getNewValue();
- if (value instanceof Resource) {
- ((Resource) value).setTrackingModification(true);
- }
- }
- }
-
- @Override
- public void setTarget(Notifier newTarget) {
- myTarger = newTarget;
- }
-
- });
-
- return editingDomain;
- }
-
- /**
- * @generated
- */
- protected void setDocumentContent(IDocument document, IEditorInput element) throws CoreException {
- IDiagramDocument diagramDocument = (IDiagramDocument) document;
- TransactionalEditingDomain domain = diagramDocument.getEditingDomain();
- if (element instanceof FileEditorInput) {
- IStorage storage = ((FileEditorInput) element).getStorage();
- Diagram diagram = DiagramIOUtil.load(domain, storage, true, getProgressMonitor());
- document.setContent(diagram);
- } else if (element instanceof URIEditorInput) {
- URI uri = ((URIEditorInput) element).getURI();
- Resource resource = null;
- try {
- resource = domain.getResourceSet().getResource(uri.trimFragment(), false);
- if (resource == null) {
- resource = domain.getResourceSet().createResource(uri.trimFragment());
- }
- if (!resource.isLoaded()) {
- try {
- @SuppressWarnings({ "rawtypes", "unchecked" })
- Map<?, ?> options = new HashMap(GMFResourceFactory.getDefaultLoadOptions());
- // @see 171060
- // options.put(org.eclipse.emf.ecore.xmi.XMLResource.OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE);
- resource.load(options);
- } catch (IOException e) {
- resource.unload();
- throw e;
- }
- }
- if (uri.fragment() != null) {
- EObject rootElement = resource.getEObject(uri.fragment());
- if (rootElement instanceof Diagram) {
- document.setContent(rootElement);
- return;
- }
- } else {
- for (Iterator<EObject> it = resource.getContents().iterator(); it.hasNext();) {
- Object rootElement = it.next();
- if (rootElement instanceof Diagram) {
- document.setContent(rootElement);
- return;
- }
- }
- }
- throw new RuntimeException(Messages.UMLDocumentProvider_NoDiagramInResourceError);
- } catch (Exception e) {
- CoreException thrownExcp = null;
- if (e instanceof CoreException) {
- thrownExcp = (CoreException) e;
- } else {
- String msg = e.getLocalizedMessage();
- thrownExcp = new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0,
- msg != null ? msg : Messages.UMLDocumentProvider_DiagramLoadingError, e));
- }
- throw thrownExcp;
- }
- } else {
- throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0,
- NLS.bind(
- Messages.UMLDocumentProvider_IncorrectInputError,
- new Object[] { element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
- null));
- }
- }
-
- /**
- * @generated
- */
- @Override
- public long getModificationStamp(Object element) {
- ResourceSetInfo info = getResourceSetInfo(element);
- if (info != null) {
- return computeModificationStamp(info);
- }
- return super.getModificationStamp(element);
- }
-
- /**
- * @generated
- */
- @Override
- public boolean isDeleted(Object element) {
- IDiagramDocument document = getDiagramDocument(element);
- if (document != null) {
- Resource diagramResource = document.getDiagram().eResource();
- if (diagramResource != null) {
- IFile file = WorkspaceSynchronizer.getFile(diagramResource);
- return file == null || file.getLocation() == null || !file.getLocation().toFile().exists();
- }
- }
- return super.isDeleted(element);
- }
-
- /**
- * @generated
- */
- public ResourceSetInfo getResourceSetInfo(Object editorInput) {
- return (ResourceSetInfo) super.getElementInfo(editorInput);
- }
-
- /**
- * @generated
- */
- @Override
- protected void disposeElementInfo(Object element, ElementInfo info) {
- if (info instanceof ResourceSetInfo) {
- ResourceSetInfo resourceSetInfo = (ResourceSetInfo) info;
- resourceSetInfo.dispose();
- }
- super.disposeElementInfo(element, info);
- }
-
- /**
- * @generated
- */
- @Override
- protected void doValidateState(Object element, Object computationContext) throws CoreException {
- ResourceSetInfo info = getResourceSetInfo(element);
- if (info != null) {
- LinkedList<IFile> files2Validate = new LinkedList<IFile>();
- for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
- Resource nextResource = it.next();
- IFile file = WorkspaceSynchronizer.getFile(nextResource);
- if (file != null && file.isReadOnly()) {
- files2Validate.add(file);
- }
- }
- ResourcesPlugin.getWorkspace().validateEdit(files2Validate.toArray(new IFile[files2Validate.size()]), computationContext);
- }
-
- super.doValidateState(element, computationContext);
- }
-
- /**
- * @generated
- */
- @Override
- public boolean isReadOnly(Object element) {
- ResourceSetInfo info = getResourceSetInfo(element);
- if (info != null) {
- if (info.isUpdateCache()) {
- try {
- updateCache(element);
- } catch (CoreException ex) {
- UMLDiagramEditorPlugin.getInstance().logError(Messages.UMLDocumentProvider_isModifiable, ex);
- // Error message to log was initially taken from org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.internal.l10n.EditorMessages.StorageDocumentProvider_isModifiable
- }
- }
- return info.isReadOnly();
- }
- return super.isReadOnly(element);
- }
-
- /**
- * @generated
- */
- @Override
- public boolean isModifiable(Object element) {
- if (!isStateValidated(element)) {
- if (element instanceof FileEditorInput || element instanceof URIEditorInput) {
- return true;
- }
- }
- ResourceSetInfo info = getResourceSetInfo(element);
- if (info != null) {
- if (info.isUpdateCache()) {
- try {
- updateCache(element);
- } catch (CoreException ex) {
- UMLDiagramEditorPlugin.getInstance().logError(Messages.UMLDocumentProvider_isModifiable, ex);
- // Error message to log was initially taken from org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.internal.l10n.EditorMessages.StorageDocumentProvider_isModifiable
- }
- }
- return info.isModifiable();
- }
- return super.isModifiable(element);
- }
-
- /**
- * @generated
- */
- protected void updateCache(Object element) throws CoreException {
- ResourceSetInfo info = getResourceSetInfo(element);
- if (info != null) {
- for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
- Resource nextResource = it.next();
- IFile file = WorkspaceSynchronizer.getFile(nextResource);
- if (file != null && file.isReadOnly()) {
- info.setReadOnly(true);
- info.setModifiable(false);
- return;
- }
- }
- info.setReadOnly(false);
- info.setModifiable(true);
- return;
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void doUpdateStateCache(Object element) throws CoreException {
- ResourceSetInfo info = getResourceSetInfo(element);
- if (info != null) {
- info.setUpdateCache(true);
- }
- super.doUpdateStateCache(element);
- }
-
- /**
- * @generated
- */
- @Override
- public boolean isSynchronized(Object element) {
- ResourceSetInfo info = getResourceSetInfo(element);
- if (info != null) {
- return info.isSynchronized();
- }
- return super.isSynchronized(element);
- }
-
- /**
- * @generated
- */
- @Override
- protected ISchedulingRule getResetRule(Object element) {
- ResourceSetInfo info = getResourceSetInfo(element);
- if (info != null) {
- LinkedList<ISchedulingRule> rules = new LinkedList<ISchedulingRule>();
- for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
- Resource nextResource = it.next();
- IFile file = WorkspaceSynchronizer.getFile(nextResource);
- if (file != null) {
- rules.add(ResourcesPlugin.getWorkspace().getRuleFactory().modifyRule(file));
- }
- }
- return new MultiRule(rules.toArray(new ISchedulingRule[rules.size()]));
- }
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- protected ISchedulingRule getSaveRule(Object element) {
- ResourceSetInfo info = getResourceSetInfo(element);
- if (info != null) {
- LinkedList<ISchedulingRule> rules = new LinkedList<ISchedulingRule>();
- for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
- Resource nextResource = it.next();
- IFile file = WorkspaceSynchronizer.getFile(nextResource);
- if (file != null) {
- rules.add(computeSchedulingRule(file));
- }
- }
- return new MultiRule(rules.toArray(new ISchedulingRule[rules.size()]));
- }
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- protected ISchedulingRule getSynchronizeRule(Object element) {
- ResourceSetInfo info = getResourceSetInfo(element);
- if (info != null) {
- LinkedList<ISchedulingRule> rules = new LinkedList<ISchedulingRule>();
- for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
- Resource nextResource = it.next();
- IFile file = WorkspaceSynchronizer.getFile(nextResource);
- if (file != null) {
- rules.add(ResourcesPlugin.getWorkspace().getRuleFactory().refreshRule(file));
- }
- }
- return new MultiRule(rules.toArray(new ISchedulingRule[rules.size()]));
- }
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- protected ISchedulingRule getValidateStateRule(Object element) {
- ResourceSetInfo info = getResourceSetInfo(element);
- if (info != null) {
- LinkedList<ISchedulingRule> files = new LinkedList<ISchedulingRule>();
- for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
- Resource nextResource = it.next();
- IFile file = WorkspaceSynchronizer.getFile(nextResource);
- if (file != null) {
- files.add(file);
- }
- }
- return ResourcesPlugin.getWorkspace().getRuleFactory().validateEditRule(files.toArray(new IFile[files.size()]));
- }
- return null;
- }
-
- /**
- * @generated
- */
- private ISchedulingRule computeSchedulingRule(IResource toCreateOrModify) {
- if (toCreateOrModify.exists()) {
- return ResourcesPlugin.getWorkspace().getRuleFactory().modifyRule(toCreateOrModify);
- }
- IResource parent = toCreateOrModify;
- do {
- /*
- * XXX This is a workaround for
- * https://bugs.eclipse.org/bugs/show_bug.cgi?id=67601
- * IResourceRuleFactory.createRule should iterate the hierarchy
- * itself.
- */
- toCreateOrModify = parent;
- parent = toCreateOrModify.getParent();
- } while (parent != null && !parent.exists());
-
- return ResourcesPlugin.getWorkspace().getRuleFactory().createRule(toCreateOrModify);
- }
-
- /**
- * @generated
- */
- @Override
- protected void doSynchronize(Object element, IProgressMonitor monitor) throws CoreException {
- ResourceSetInfo info = getResourceSetInfo(element);
- if (info != null) {
- for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
- Resource nextResource = it.next();
- handleElementChanged(info, nextResource, monitor);
- }
- return;
- }
- super.doSynchronize(element, monitor);
- }
-
- /**
- * @generated
- */
- @Override
- protected void doSaveDocument(IProgressMonitor monitor, Object element, IDocument document, boolean overwrite) throws CoreException {
- ResourceSetInfo info = getResourceSetInfo(element);
- if (info != null) {
- if (!overwrite && !info.isSynchronized()) {
- throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID,
- IResourceStatus.OUT_OF_SYNC_LOCAL,
- Messages.UMLDocumentProvider_UnsynchronizedFileSaveError,
- null));
- }
- info.stopResourceListening();
- fireElementStateChanging(element);
- try {
- monitor.beginTask(Messages.UMLDocumentProvider_SaveDiagramTask, info.getResourceSet().getResources().size() + 1); // "Saving diagram"
- for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
- Resource nextResource = it.next();
- monitor.setTaskName(NLS.bind(
- Messages.UMLDocumentProvider_SaveNextResourceTask,
- nextResource.getURI()));
- if (nextResource.isLoaded() && !info.getEditingDomain().isReadOnly(nextResource)) {
- try {
- nextResource.save(UMLDiagramEditorUtil.getSaveOptions());
- } catch (IOException e) {
- fireElementStateChangeFailed(element);
- throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, EditorStatusCodes.RESOURCE_FAILURE, e.getLocalizedMessage(), null));
- }
- }
- monitor.worked(1);
- }
- monitor.done();
- info.setModificationStamp(computeModificationStamp(info));
- } catch (RuntimeException x) {
- fireElementStateChangeFailed(element);
- throw x;
- } finally {
- info.startResourceListening();
- }
- } else {
- URI newResoruceURI;
- List<IFile> affectedFiles = null;
- if (element instanceof FileEditorInput) {
- IFile newFile = ((FileEditorInput) element).getFile();
- affectedFiles = Collections.singletonList(newFile);
- newResoruceURI = URI.createPlatformResourceURI(newFile.getFullPath().toString(), true);
- } else if (element instanceof URIEditorInput) {
- newResoruceURI = ((URIEditorInput) element).getURI();
- } else {
- fireElementStateChangeFailed(element);
- throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0,
- NLS.bind(
- Messages.UMLDocumentProvider_IncorrectInputError,
- new Object[] { element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
- null));
- }
- if (false == document instanceof IDiagramDocument) {
- fireElementStateChangeFailed(element);
- throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0,
- "Incorrect document used: " + document + " instead of org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDiagramDocument", null)); //$NON-NLS-1$ //$NON-NLS-2$
- }
- IDiagramDocument diagramDocument = (IDiagramDocument) document;
- final Resource newResource = diagramDocument.getEditingDomain().getResourceSet().createResource(newResoruceURI);
- final Diagram diagramCopy = EcoreUtil.copy(diagramDocument.getDiagram());
- try {
- new AbstractTransactionalCommand(diagramDocument.getEditingDomain(), NLS.bind(Messages.UMLDocumentProvider_SaveAsOperation, diagramCopy.getName()), affectedFiles) {
- @Override
- protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
- newResource.getContents().add(diagramCopy);
- return CommandResult.newOKCommandResult();
- }
- }.execute(monitor, null);
- newResource.save(UMLDiagramEditorUtil.getSaveOptions());
- } catch (ExecutionException e) {
- fireElementStateChangeFailed(element);
- throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0, e.getLocalizedMessage(), null));
- } catch (IOException e) {
- fireElementStateChangeFailed(element);
- throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0, e.getLocalizedMessage(), null));
- }
- newResource.unload();
- }
- }
-
- /**
- * @generated
- */
- protected void handleElementChanged(ResourceSetInfo info, Resource changedResource, IProgressMonitor monitor) {
- IFile file = WorkspaceSynchronizer.getFile(changedResource);
- if (file != null) {
- try {
- file.refreshLocal(IResource.DEPTH_INFINITE, monitor);
- } catch (CoreException ex) {
- UMLDiagramEditorPlugin.getInstance().logError(Messages.UMLDocumentProvider_handleElementContentChanged, ex);
- // Error message to log was initially taken from org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.internal.l10n.EditorMessages.FileDocumentProvider_handleElementContentChanged
- }
- }
- changedResource.unload();
-
- fireElementContentAboutToBeReplaced(info.getEditorInput());
- removeUnchangedElementListeners(info.getEditorInput(), info);
- info.fStatus = null;
- try {
- setDocumentContent(info.fDocument, info.getEditorInput());
- } catch (CoreException e) {
- info.fStatus = e.getStatus();
- }
- if (!info.fCanBeSaved) {
- info.setModificationStamp(computeModificationStamp(info));
- }
- addUnchangedElementListeners(info.getEditorInput(), info);
- fireElementContentReplaced(info.getEditorInput());
- }
-
- /**
- * @generated
- */
- protected void handleElementMoved(IEditorInput input, URI uri) {
- if (input instanceof FileEditorInput) {
- IFile newFile = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(URI.decode(uri.path())).removeFirstSegments(1));
- fireElementMoved(input, newFile == null ? null : new FileEditorInput(newFile));
- return;
- }
- // TODO: append suffix to the URI! (use diagram as a parameter)
- fireElementMoved(input, new URIEditorInput(uri));
- }
-
- /**
- * @generated
- */
- @Override
- public IEditorInput createInputWithEditingDomain(IEditorInput editorInput, TransactionalEditingDomain domain) {
- return editorInput;
- }
-
- /**
- * @generated
- */
- @Override
- public IDiagramDocument getDiagramDocument(Object element) {
- IDocument doc = getDocument(element);
- if (doc instanceof IDiagramDocument) {
- return (IDiagramDocument) doc;
- }
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- protected IRunnableContext getOperationRunner(IProgressMonitor monitor) {
- return null;
- }
-
- /**
- * @generated
- */
- protected class ResourceSetInfo extends ElementInfo {
-
- /**
- * @generated
- */
- private long myModificationStamp = IResource.NULL_STAMP;
-
- /**
- * @generated
- */
- private WorkspaceSynchronizer mySynchronizer;
-
- /**
- * @generated
- */
- private LinkedList<Resource> myUnSynchronizedResources = new LinkedList<Resource>();
-
- /**
- * @generated
- */
- private IDiagramDocument myDocument;
-
- /**
- * @generated
- */
- private IEditorInput myEditorInput;
-
- /**
- * @generated
- */
- private boolean myUpdateCache = true;
-
- /**
- * @generated
- */
- private boolean myModifiable = false;
-
- /**
- * @generated
- */
- private boolean myReadOnly = true;
-
- /**
- * @generated
- */
- private ResourceSetModificationListener myResourceSetListener;
-
- /**
- * @generated
- */
- public ResourceSetInfo(IDiagramDocument document, IEditorInput editorInput) {
- super(document);
- myDocument = document;
- myEditorInput = editorInput;
- startResourceListening();
- myResourceSetListener = new ResourceSetModificationListener(this);
- getResourceSet().eAdapters().add(myResourceSetListener);
- }
-
- /**
- * @generated
- */
- public long getModificationStamp() {
- return myModificationStamp;
- }
-
- /**
- * @generated
- */
- public void setModificationStamp(long modificationStamp) {
- myModificationStamp = modificationStamp;
- }
-
- /**
- * @generated
- */
- public TransactionalEditingDomain getEditingDomain() {
- return myDocument.getEditingDomain();
- }
-
- /**
- * @generated
- */
- public ResourceSet getResourceSet() {
- return getEditingDomain().getResourceSet();
- }
-
- /**
- * @generated
- */
- public Iterator<Resource> getLoadedResourcesIterator() {
- return new ArrayList<Resource>(getResourceSet().getResources()).iterator();
- }
-
- /**
- * @generated
- */
- public IEditorInput getEditorInput() {
- return myEditorInput;
- }
-
- /**
- * @generated
- */
- public void dispose() {
- stopResourceListening();
- getResourceSet().eAdapters().remove(myResourceSetListener);
- for (Iterator<Resource> it = getLoadedResourcesIterator(); it.hasNext();) {
- Resource resource = it.next();
- resource.unload();
- }
- getEditingDomain().dispose();
- }
-
- /**
- * @generated
- */
- public boolean isSynchronized() {
- return myUnSynchronizedResources.size() == 0;
- }
-
- /**
- * @generated
- */
- public void setUnSynchronized(Resource resource) {
- myUnSynchronizedResources.add(resource);
- }
-
- /**
- * @generated
- */
- public void setSynchronized(Resource resource) {
- myUnSynchronizedResources.remove(resource);
- }
-
- /**
- * @generated
- */
- public final void stopResourceListening() {
- mySynchronizer.dispose();
- mySynchronizer = null;
- }
-
- /**
- * @generated
- */
- public final void startResourceListening() {
- mySynchronizer = new WorkspaceSynchronizer(getEditingDomain(), new SynchronizerDelegate());
- }
-
- /**
- * @generated
- */
- public boolean isUpdateCache() {
- return myUpdateCache;
- }
-
- /**
- * @generated
- */
- public void setUpdateCache(boolean update) {
- myUpdateCache = update;
- }
-
- /**
- * @generated
- */
- public boolean isModifiable() {
- return myModifiable;
- }
-
- /**
- * @generated
- */
- public void setModifiable(boolean modifiable) {
- myModifiable = modifiable;
- }
-
- /**
- * @generated
- */
- public boolean isReadOnly() {
- return myReadOnly;
- }
-
- /**
- * @generated
- */
- public void setReadOnly(boolean readOnly) {
- myReadOnly = readOnly;
- }
-
- /**
- * @generated
- */
- private class SynchronizerDelegate implements WorkspaceSynchronizer.Delegate {
-
- /**
- * @generated
- */
- @Override
- public void dispose() {
- }
-
- /**
- * @generated
- */
- @Override
- public boolean handleResourceChanged(final Resource resource) {
- synchronized (ResourceSetInfo.this) {
- if (ResourceSetInfo.this.fCanBeSaved) {
- ResourceSetInfo.this.setUnSynchronized(resource);
- return true;
- }
- }
- Display.getDefault().asyncExec(new Runnable() {
- @Override
- public void run() {
- handleElementChanged(ResourceSetInfo.this, resource, null);
- }
- });
- return true;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean handleResourceDeleted(Resource resource) {
- synchronized (ResourceSetInfo.this) {
- if (ResourceSetInfo.this.fCanBeSaved) {
- ResourceSetInfo.this.setUnSynchronized(resource);
- return true;
- }
- }
- Display.getDefault().asyncExec(new Runnable() {
- @Override
- public void run() {
- fireElementDeleted(ResourceSetInfo.this.getEditorInput());
- }
- });
- return true;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean handleResourceMoved(Resource resource, final URI newURI) {
- synchronized (ResourceSetInfo.this) {
- if (ResourceSetInfo.this.fCanBeSaved) {
- ResourceSetInfo.this.setUnSynchronized(resource);
- return true;
- }
- }
- if (myDocument.getDiagram().eResource() == resource) {
- Display.getDefault().asyncExec(new Runnable() {
- @Override
- public void run() {
- handleElementMoved(ResourceSetInfo.this.getEditorInput(), newURI);
- }
- });
- } else {
- handleResourceDeleted(resource);
- }
- return true;
- }
- }
- }
-
- /**
- * @generated
- */
- private class ResourceSetModificationListener extends EContentAdapter {
-
- /**
- * @generated
- */
- private NotificationFilter myModifiedFilter;
-
- /**
- * @generated
- */
- private ResourceSetInfo myInfo;
-
- /**
- * @generated
- */
- public ResourceSetModificationListener(ResourceSetInfo info) {
- myInfo = info;
- myModifiedFilter = NotificationFilter.createEventTypeFilter(Notification.SET).or(NotificationFilter.createEventTypeFilter(Notification.UNSET)).and(NotificationFilter.createFeatureFilter(Resource.class, Resource.RESOURCE__IS_MODIFIED));
- }
-
- /**
- * @generated
- */
- @Override
- public void notifyChanged(Notification notification) {
- if (notification.getNotifier() instanceof ResourceSet) {
- super.notifyChanged(notification);
- }
- if (!notification.isTouch() && myModifiedFilter.matches(notification)) {
- if (notification.getNotifier() instanceof Resource) {
- Resource resource = (Resource) notification.getNotifier();
- if (resource.isLoaded()) {
- boolean modified = false;
- for (Iterator<Resource> it = myInfo.getLoadedResourcesIterator(); it.hasNext() && !modified;) {
- Resource nextResource = it.next();
- if (nextResource.isLoaded()) {
- modified = nextResource.isModified();
- }
- }
- boolean dirtyStateChanged = false;
- synchronized (myInfo) {
- if (modified != myInfo.fCanBeSaved) {
- myInfo.fCanBeSaved = modified;
- dirtyStateChanged = true;
- }
- if (!resource.isModified()) {
- myInfo.setSynchronized(resource);
- }
- }
- if (dirtyStateChanged) {
- fireElementDirtyStateChanged(myInfo.getEditorInput(), modified);
-
- if (!modified) {
- myInfo.setModificationStamp(computeModificationStamp(myInfo));
- }
- }
- }
- }
- }
- }
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IResourceStatus;
+import org.eclipse.core.resources.IStorage;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.ISchedulingRule;
+import org.eclipse.core.runtime.jobs.MultiRule;
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.Notifier;
+import org.eclipse.emf.common.ui.URIEditorInput;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.emf.ecore.util.EContentAdapter;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.transaction.NotificationFilter;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.emf.workspace.util.WorkspaceSynchronizer;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.diagram.core.DiagramEditingDomainFactory;
+import org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.AbstractDocumentProvider;
+import org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.DiagramDocument;
+import org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDiagramDocument;
+import org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDiagramDocumentProvider;
+import org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDocument;
+import org.eclipse.gmf.runtime.diagram.ui.resources.editor.internal.EditorStatusCodes;
+import org.eclipse.gmf.runtime.diagram.ui.resources.editor.internal.util.DiagramIOUtil;
+import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.core.resources.GMFResourceFactory;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.jface.operation.IRunnableContext;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.part.FileEditorInput;
+
+/**
+ * @generated
+ */
+public class UMLDocumentProvider extends AbstractDocumentProvider implements IDiagramDocumentProvider {
+
+ /**
+ * @generated
+ */
+ @Override
+ protected ElementInfo createElementInfo(Object element) throws CoreException {
+ if (false == element instanceof FileEditorInput && false == element instanceof URIEditorInput) {
+ throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0,
+ NLS.bind(
+ Messages.UMLDocumentProvider_IncorrectInputError,
+ new Object[] { element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
+ null));
+ }
+ IEditorInput editorInput = (IEditorInput) element;
+ IDiagramDocument document = (IDiagramDocument) createDocument(editorInput);
+
+ ResourceSetInfo info = new ResourceSetInfo(document, editorInput);
+ info.setModificationStamp(computeModificationStamp(info));
+ info.fStatus = null;
+ return info;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IDocument createDocument(Object element) throws CoreException {
+ if (false == element instanceof FileEditorInput && false == element instanceof URIEditorInput) {
+ throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0,
+ NLS.bind(
+ Messages.UMLDocumentProvider_IncorrectInputError,
+ new Object[] { element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
+ null));
+ }
+ IDocument document = createEmptyDocument();
+ setDocumentContent(document, (IEditorInput) element);
+ setupDocument(element, document);
+ return document;
+ }
+
+ /**
+ * Sets up the given document as it would be provided for the given element. The
+ * content of the document is not changed. This default implementation is empty.
+ * Subclasses may reimplement.
+ *
+ * @param element
+ * the blue-print element
+ * @param document
+ * the document to set up
+ * @generated
+ */
+ protected void setupDocument(Object element, IDocument document) {
+ // for subclasses
+ }
+
+ /**
+ * @generated
+ */
+ private long computeModificationStamp(ResourceSetInfo info) {
+ int result = 0;
+ for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
+ Resource nextResource = it.next();
+ IFile file = WorkspaceSynchronizer.getFile(nextResource);
+ if (file != null) {
+ if (file.getLocation() != null) {
+ result += file.getLocation().toFile().lastModified();
+ } else {
+ result += file.getModificationStamp();
+ }
+ }
+ }
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IDocument createEmptyDocument() {
+ DiagramDocument document = new DiagramDocument();
+ document.setEditingDomain(createEditingDomain());
+ return document;
+ }
+
+ /**
+ * @generated
+ */
+ private TransactionalEditingDomain createEditingDomain() {
+ TransactionalEditingDomain editingDomain = DiagramEditingDomainFactory.getInstance().createEditingDomain();
+ editingDomain.setID("org.eclipse.papyrus.uml.diagram.deployment.EditingDomain"); //$NON-NLS-1$
+ final NotificationFilter diagramResourceModifiedFilter = NotificationFilter.createNotifierFilter(editingDomain.getResourceSet()).and(NotificationFilter.createEventTypeFilter(Notification.ADD))
+ .and(NotificationFilter.createFeatureFilter(ResourceSet.class, ResourceSet.RESOURCE_SET__RESOURCES));
+ editingDomain.getResourceSet().eAdapters().add(new Adapter() {
+
+ private Notifier myTarger;
+
+ @Override
+ public Notifier getTarget() {
+ return myTarger;
+ }
+
+ @Override
+ public boolean isAdapterForType(Object type) {
+ return false;
+ }
+
+ @Override
+ public void notifyChanged(Notification notification) {
+ if (diagramResourceModifiedFilter.matches(notification)) {
+ Object value = notification.getNewValue();
+ if (value instanceof Resource) {
+ ((Resource) value).setTrackingModification(true);
+ }
+ }
+ }
+
+ @Override
+ public void setTarget(Notifier newTarget) {
+ myTarger = newTarget;
+ }
+
+ });
+
+ return editingDomain;
+ }
+
+ /**
+ * @generated
+ */
+ protected void setDocumentContent(IDocument document, IEditorInput element) throws CoreException {
+ IDiagramDocument diagramDocument = (IDiagramDocument) document;
+ TransactionalEditingDomain domain = diagramDocument.getEditingDomain();
+ if (element instanceof FileEditorInput) {
+ IStorage storage = ((FileEditorInput) element).getStorage();
+ Diagram diagram = DiagramIOUtil.load(domain, storage, true, getProgressMonitor());
+ document.setContent(diagram);
+ } else if (element instanceof URIEditorInput) {
+ URI uri = ((URIEditorInput) element).getURI();
+ Resource resource = null;
+ try {
+ resource = domain.getResourceSet().getResource(uri.trimFragment(), false);
+ if (resource == null) {
+ resource = domain.getResourceSet().createResource(uri.trimFragment());
+ }
+ if (!resource.isLoaded()) {
+ try {
+ @SuppressWarnings({ "rawtypes", "unchecked" })
+ Map<?, ?> options = new HashMap(GMFResourceFactory.getDefaultLoadOptions());
+ // @see 171060
+ // options.put(org.eclipse.emf.ecore.xmi.XMLResource.OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE);
+ resource.load(options);
+ } catch (IOException e) {
+ resource.unload();
+ throw e;
+ }
+ }
+ if (uri.fragment() != null) {
+ EObject rootElement = resource.getEObject(uri.fragment());
+ if (rootElement instanceof Diagram) {
+ document.setContent(rootElement);
+ return;
+ }
+ } else {
+ for (Iterator<EObject> it = resource.getContents().iterator(); it.hasNext();) {
+ Object rootElement = it.next();
+ if (rootElement instanceof Diagram) {
+ document.setContent(rootElement);
+ return;
+ }
+ }
+ }
+ throw new RuntimeException(Messages.UMLDocumentProvider_NoDiagramInResourceError);
+ } catch (Exception e) {
+ CoreException thrownExcp = null;
+ if (e instanceof CoreException) {
+ thrownExcp = (CoreException) e;
+ } else {
+ String msg = e.getLocalizedMessage();
+ thrownExcp = new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0,
+ msg != null ? msg : Messages.UMLDocumentProvider_DiagramLoadingError, e));
+ }
+ throw thrownExcp;
+ }
+ } else {
+ throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0,
+ NLS.bind(
+ Messages.UMLDocumentProvider_IncorrectInputError,
+ new Object[] { element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
+ null));
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public long getModificationStamp(Object element) {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if (info != null) {
+ return computeModificationStamp(info);
+ }
+ return super.getModificationStamp(element);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public boolean isDeleted(Object element) {
+ IDiagramDocument document = getDiagramDocument(element);
+ if (document != null) {
+ Resource diagramResource = document.getDiagram().eResource();
+ if (diagramResource != null) {
+ IFile file = WorkspaceSynchronizer.getFile(diagramResource);
+ return file == null || file.getLocation() == null || !file.getLocation().toFile().exists();
+ }
+ }
+ return super.isDeleted(element);
+ }
+
+ /**
+ * @generated
+ */
+ public ResourceSetInfo getResourceSetInfo(Object editorInput) {
+ return (ResourceSetInfo) super.getElementInfo(editorInput);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void disposeElementInfo(Object element, ElementInfo info) {
+ if (info instanceof ResourceSetInfo) {
+ ResourceSetInfo resourceSetInfo = (ResourceSetInfo) info;
+ resourceSetInfo.dispose();
+ }
+ super.disposeElementInfo(element, info);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void doValidateState(Object element, Object computationContext) throws CoreException {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if (info != null) {
+ LinkedList<IFile> files2Validate = new LinkedList<IFile>();
+ for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
+ Resource nextResource = it.next();
+ IFile file = WorkspaceSynchronizer.getFile(nextResource);
+ if (file != null && file.isReadOnly()) {
+ files2Validate.add(file);
+ }
+ }
+ ResourcesPlugin.getWorkspace().validateEdit(files2Validate.toArray(new IFile[files2Validate.size()]), computationContext);
+ }
+
+ super.doValidateState(element, computationContext);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public boolean isReadOnly(Object element) {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if (info != null) {
+ if (info.isUpdateCache()) {
+ try {
+ updateCache(element);
+ } catch (CoreException ex) {
+ UMLDiagramEditorPlugin.getInstance().logError(Messages.UMLDocumentProvider_isModifiable, ex);
+ // Error message to log was initially taken from org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.internal.l10n.EditorMessages.StorageDocumentProvider_isModifiable
+ }
+ }
+ return info.isReadOnly();
+ }
+ return super.isReadOnly(element);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public boolean isModifiable(Object element) {
+ if (!isStateValidated(element)) {
+ if (element instanceof FileEditorInput || element instanceof URIEditorInput) {
+ return true;
+ }
+ }
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if (info != null) {
+ if (info.isUpdateCache()) {
+ try {
+ updateCache(element);
+ } catch (CoreException ex) {
+ UMLDiagramEditorPlugin.getInstance().logError(Messages.UMLDocumentProvider_isModifiable, ex);
+ // Error message to log was initially taken from org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.internal.l10n.EditorMessages.StorageDocumentProvider_isModifiable
+ }
+ }
+ return info.isModifiable();
+ }
+ return super.isModifiable(element);
+ }
+
+ /**
+ * @generated
+ */
+ protected void updateCache(Object element) throws CoreException {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if (info != null) {
+ for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
+ Resource nextResource = it.next();
+ IFile file = WorkspaceSynchronizer.getFile(nextResource);
+ if (file != null && file.isReadOnly()) {
+ info.setReadOnly(true);
+ info.setModifiable(false);
+ return;
+ }
+ }
+ info.setReadOnly(false);
+ info.setModifiable(true);
+ return;
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void doUpdateStateCache(Object element) throws CoreException {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if (info != null) {
+ info.setUpdateCache(true);
+ }
+ super.doUpdateStateCache(element);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public boolean isSynchronized(Object element) {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if (info != null) {
+ return info.isSynchronized();
+ }
+ return super.isSynchronized(element);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected ISchedulingRule getResetRule(Object element) {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if (info != null) {
+ LinkedList<ISchedulingRule> rules = new LinkedList<ISchedulingRule>();
+ for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
+ Resource nextResource = it.next();
+ IFile file = WorkspaceSynchronizer.getFile(nextResource);
+ if (file != null) {
+ rules.add(ResourcesPlugin.getWorkspace().getRuleFactory().modifyRule(file));
+ }
+ }
+ return new MultiRule(rules.toArray(new ISchedulingRule[rules.size()]));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected ISchedulingRule getSaveRule(Object element) {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if (info != null) {
+ LinkedList<ISchedulingRule> rules = new LinkedList<ISchedulingRule>();
+ for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
+ Resource nextResource = it.next();
+ IFile file = WorkspaceSynchronizer.getFile(nextResource);
+ if (file != null) {
+ rules.add(computeSchedulingRule(file));
+ }
+ }
+ return new MultiRule(rules.toArray(new ISchedulingRule[rules.size()]));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected ISchedulingRule getSynchronizeRule(Object element) {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if (info != null) {
+ LinkedList<ISchedulingRule> rules = new LinkedList<ISchedulingRule>();
+ for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
+ Resource nextResource = it.next();
+ IFile file = WorkspaceSynchronizer.getFile(nextResource);
+ if (file != null) {
+ rules.add(ResourcesPlugin.getWorkspace().getRuleFactory().refreshRule(file));
+ }
+ }
+ return new MultiRule(rules.toArray(new ISchedulingRule[rules.size()]));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected ISchedulingRule getValidateStateRule(Object element) {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if (info != null) {
+ LinkedList<ISchedulingRule> files = new LinkedList<ISchedulingRule>();
+ for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
+ Resource nextResource = it.next();
+ IFile file = WorkspaceSynchronizer.getFile(nextResource);
+ if (file != null) {
+ files.add(file);
+ }
+ }
+ return ResourcesPlugin.getWorkspace().getRuleFactory().validateEditRule(files.toArray(new IFile[files.size()]));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private ISchedulingRule computeSchedulingRule(IResource toCreateOrModify) {
+ if (toCreateOrModify.exists()) {
+ return ResourcesPlugin.getWorkspace().getRuleFactory().modifyRule(toCreateOrModify);
+ }
+ IResource parent = toCreateOrModify;
+ do {
+ /*
+ * XXX This is a workaround for
+ * https://bugs.eclipse.org/bugs/show_bug.cgi?id=67601
+ * IResourceRuleFactory.createRule should iterate the hierarchy
+ * itself.
+ */
+ toCreateOrModify = parent;
+ parent = toCreateOrModify.getParent();
+ } while (parent != null && !parent.exists());
+
+ return ResourcesPlugin.getWorkspace().getRuleFactory().createRule(toCreateOrModify);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void doSynchronize(Object element, IProgressMonitor monitor) throws CoreException {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if (info != null) {
+ for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
+ Resource nextResource = it.next();
+ handleElementChanged(info, nextResource, monitor);
+ }
+ return;
+ }
+ super.doSynchronize(element, monitor);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void doSaveDocument(IProgressMonitor monitor, Object element, IDocument document, boolean overwrite) throws CoreException {
+ ResourceSetInfo info = getResourceSetInfo(element);
+ if (info != null) {
+ if (!overwrite && !info.isSynchronized()) {
+ throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID,
+ IResourceStatus.OUT_OF_SYNC_LOCAL,
+ Messages.UMLDocumentProvider_UnsynchronizedFileSaveError,
+ null));
+ }
+ info.stopResourceListening();
+ fireElementStateChanging(element);
+ try {
+ monitor.beginTask(Messages.UMLDocumentProvider_SaveDiagramTask, info.getResourceSet().getResources().size() + 1); //"Saving diagram"
+ for (Iterator<Resource> it = info.getLoadedResourcesIterator(); it.hasNext();) {
+ Resource nextResource = it.next();
+ monitor.setTaskName(NLS.bind(
+ Messages.UMLDocumentProvider_SaveNextResourceTask,
+ nextResource.getURI()));
+ if (nextResource.isLoaded() && !info.getEditingDomain().isReadOnly(nextResource)) {
+ try {
+ nextResource.save(UMLDiagramEditorUtil.getSaveOptions());
+ } catch (IOException e) {
+ fireElementStateChangeFailed(element);
+ throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, EditorStatusCodes.RESOURCE_FAILURE, e.getLocalizedMessage(), null));
+ }
+ }
+ monitor.worked(1);
+ }
+ monitor.done();
+ info.setModificationStamp(computeModificationStamp(info));
+ } catch (RuntimeException x) {
+ fireElementStateChangeFailed(element);
+ throw x;
+ } finally {
+ info.startResourceListening();
+ }
+ } else {
+ URI newResoruceURI;
+ List<IFile> affectedFiles = null;
+ if (element instanceof FileEditorInput) {
+ IFile newFile = ((FileEditorInput) element).getFile();
+ affectedFiles = Collections.singletonList(newFile);
+ newResoruceURI = URI.createPlatformResourceURI(newFile.getFullPath().toString(), true);
+ } else if (element instanceof URIEditorInput) {
+ newResoruceURI = ((URIEditorInput) element).getURI();
+ } else {
+ fireElementStateChangeFailed(element);
+ throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0,
+ NLS.bind(
+ Messages.UMLDocumentProvider_IncorrectInputError,
+ new Object[] { element, "org.eclipse.ui.part.FileEditorInput", "org.eclipse.emf.common.ui.URIEditorInput" }), //$NON-NLS-1$ //$NON-NLS-2$
+ null));
+ }
+ if (false == document instanceof IDiagramDocument) {
+ fireElementStateChangeFailed(element);
+ throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0,
+ "Incorrect document used: " + document + " instead of org.eclipse.gmf.runtime.diagram.ui.resources.editor.document.IDiagramDocument", null)); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+ IDiagramDocument diagramDocument = (IDiagramDocument) document;
+ final Resource newResource = diagramDocument.getEditingDomain().getResourceSet().createResource(newResoruceURI);
+ final Diagram diagramCopy = EcoreUtil.copy(diagramDocument.getDiagram());
+ try {
+ new AbstractTransactionalCommand(diagramDocument.getEditingDomain(), NLS.bind(Messages.UMLDocumentProvider_SaveAsOperation, diagramCopy.getName()), affectedFiles) {
+ @Override
+ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ newResource.getContents().add(diagramCopy);
+ return CommandResult.newOKCommandResult();
+ }
+ }.execute(monitor, null);
+ newResource.save(UMLDiagramEditorUtil.getSaveOptions());
+ } catch (ExecutionException e) {
+ fireElementStateChangeFailed(element);
+ throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0, e.getLocalizedMessage(), null));
+ } catch (IOException e) {
+ fireElementStateChangeFailed(element);
+ throw new CoreException(new Status(IStatus.ERROR, UMLDiagramEditorPlugin.ID, 0, e.getLocalizedMessage(), null));
+ }
+ newResource.unload();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleElementChanged(ResourceSetInfo info, Resource changedResource, IProgressMonitor monitor) {
+ IFile file = WorkspaceSynchronizer.getFile(changedResource);
+ if (file != null) {
+ try {
+ file.refreshLocal(IResource.DEPTH_INFINITE, monitor);
+ } catch (CoreException ex) {
+ UMLDiagramEditorPlugin.getInstance().logError(Messages.UMLDocumentProvider_handleElementContentChanged, ex);
+ // Error message to log was initially taken from org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide.internal.l10n.EditorMessages.FileDocumentProvider_handleElementContentChanged
+ }
+ }
+ changedResource.unload();
+
+ fireElementContentAboutToBeReplaced(info.getEditorInput());
+ removeUnchangedElementListeners(info.getEditorInput(), info);
+ info.fStatus = null;
+ try {
+ setDocumentContent(info.fDocument, info.getEditorInput());
+ } catch (CoreException e) {
+ info.fStatus = e.getStatus();
+ }
+ if (!info.fCanBeSaved) {
+ info.setModificationStamp(computeModificationStamp(info));
+ }
+ addUnchangedElementListeners(info.getEditorInput(), info);
+ fireElementContentReplaced(info.getEditorInput());
+ }
+
+ /**
+ * @generated
+ */
+ protected void handleElementMoved(IEditorInput input, URI uri) {
+ if (input instanceof FileEditorInput) {
+ IFile newFile = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(URI.decode(uri.path())).removeFirstSegments(1));
+ fireElementMoved(input, newFile == null ? null : new FileEditorInput(newFile));
+ return;
+ }
+ // TODO: append suffix to the URI! (use diagram as a parameter)
+ fireElementMoved(input, new URIEditorInput(uri));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IEditorInput createInputWithEditingDomain(IEditorInput editorInput, TransactionalEditingDomain domain) {
+ return editorInput;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IDiagramDocument getDiagramDocument(Object element) {
+ IDocument doc = getDocument(element);
+ if (doc instanceof IDiagramDocument) {
+ return (IDiagramDocument) doc;
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IRunnableContext getOperationRunner(IProgressMonitor monitor) {
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected class ResourceSetInfo extends ElementInfo {
+
+ /**
+ * @generated
+ */
+ private long myModificationStamp = IResource.NULL_STAMP;
+
+ /**
+ * @generated
+ */
+ private WorkspaceSynchronizer mySynchronizer;
+
+ /**
+ * @generated
+ */
+ private LinkedList<Resource> myUnSynchronizedResources = new LinkedList<Resource>();
+
+ /**
+ * @generated
+ */
+ private IDiagramDocument myDocument;
+
+ /**
+ * @generated
+ */
+ private IEditorInput myEditorInput;
+
+ /**
+ * @generated
+ */
+ private boolean myUpdateCache = true;
+
+ /**
+ * @generated
+ */
+ private boolean myModifiable = false;
+
+ /**
+ * @generated
+ */
+ private boolean myReadOnly = true;
+
+ /**
+ * @generated
+ */
+ private ResourceSetModificationListener myResourceSetListener;
+
+ /**
+ * @generated
+ */
+ public ResourceSetInfo(IDiagramDocument document, IEditorInput editorInput) {
+ super(document);
+ myDocument = document;
+ myEditorInput = editorInput;
+ startResourceListening();
+ myResourceSetListener = new ResourceSetModificationListener(this);
+ getResourceSet().eAdapters().add(myResourceSetListener);
+ }
+
+ /**
+ * @generated
+ */
+ public long getModificationStamp() {
+ return myModificationStamp;
+ }
+
+ /**
+ * @generated
+ */
+ public void setModificationStamp(long modificationStamp) {
+ myModificationStamp = modificationStamp;
+ }
+
+ /**
+ * @generated
+ */
+ public TransactionalEditingDomain getEditingDomain() {
+ return myDocument.getEditingDomain();
+ }
+
+ /**
+ * @generated
+ */
+ public ResourceSet getResourceSet() {
+ return getEditingDomain().getResourceSet();
+ }
+
+ /**
+ * @generated
+ */
+ public Iterator<Resource> getLoadedResourcesIterator() {
+ return new ArrayList<Resource>(getResourceSet().getResources()).iterator();
+ }
+
+ /**
+ * @generated
+ */
+ public IEditorInput getEditorInput() {
+ return myEditorInput;
+ }
+
+ /**
+ * @generated
+ */
+ public void dispose() {
+ stopResourceListening();
+ getResourceSet().eAdapters().remove(myResourceSetListener);
+ for (Iterator<Resource> it = getLoadedResourcesIterator(); it.hasNext();) {
+ Resource resource = it.next();
+ resource.unload();
+ }
+ getEditingDomain().dispose();
+ }
+
+ /**
+ * @generated
+ */
+ public boolean isSynchronized() {
+ return myUnSynchronizedResources.size() == 0;
+ }
+
+ /**
+ * @generated
+ */
+ public void setUnSynchronized(Resource resource) {
+ myUnSynchronizedResources.add(resource);
+ }
+
+ /**
+ * @generated
+ */
+ public void setSynchronized(Resource resource) {
+ myUnSynchronizedResources.remove(resource);
+ }
+
+ /**
+ * @generated
+ */
+ public final void stopResourceListening() {
+ mySynchronizer.dispose();
+ mySynchronizer = null;
+ }
+
+ /**
+ * @generated
+ */
+ public final void startResourceListening() {
+ mySynchronizer = new WorkspaceSynchronizer(getEditingDomain(), new SynchronizerDelegate());
+ }
+
+ /**
+ * @generated
+ */
+ public boolean isUpdateCache() {
+ return myUpdateCache;
+ }
+
+ /**
+ * @generated
+ */
+ public void setUpdateCache(boolean update) {
+ myUpdateCache = update;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean isModifiable() {
+ return myModifiable;
+ }
+
+ /**
+ * @generated
+ */
+ public void setModifiable(boolean modifiable) {
+ myModifiable = modifiable;
+ }
+
+ /**
+ * @generated
+ */
+ public boolean isReadOnly() {
+ return myReadOnly;
+ }
+
+ /**
+ * @generated
+ */
+ public void setReadOnly(boolean readOnly) {
+ myReadOnly = readOnly;
+ }
+
+ /**
+ * @generated
+ */
+ private class SynchronizerDelegate implements WorkspaceSynchronizer.Delegate {
+
+ /**
+ * @generated
+ */
+ @Override
+ public void dispose() {
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public boolean handleResourceChanged(final Resource resource) {
+ synchronized (ResourceSetInfo.this) {
+ if (ResourceSetInfo.this.fCanBeSaved) {
+ ResourceSetInfo.this.setUnSynchronized(resource);
+ return true;
+ }
+ }
+ Display.getDefault().asyncExec(new Runnable() {
+ @Override
+ public void run() {
+ handleElementChanged(ResourceSetInfo.this, resource, null);
+ }
+ });
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public boolean handleResourceDeleted(Resource resource) {
+ synchronized (ResourceSetInfo.this) {
+ if (ResourceSetInfo.this.fCanBeSaved) {
+ ResourceSetInfo.this.setUnSynchronized(resource);
+ return true;
+ }
+ }
+ Display.getDefault().asyncExec(new Runnable() {
+ @Override
+ public void run() {
+ fireElementDeleted(ResourceSetInfo.this.getEditorInput());
+ }
+ });
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public boolean handleResourceMoved(Resource resource, final URI newURI) {
+ synchronized (ResourceSetInfo.this) {
+ if (ResourceSetInfo.this.fCanBeSaved) {
+ ResourceSetInfo.this.setUnSynchronized(resource);
+ return true;
+ }
+ }
+ if (myDocument.getDiagram().eResource() == resource) {
+ Display.getDefault().asyncExec(new Runnable() {
+ @Override
+ public void run() {
+ handleElementMoved(ResourceSetInfo.this.getEditorInput(), newURI);
+ }
+ });
+ } else {
+ handleResourceDeleted(resource);
+ }
+ return true;
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private class ResourceSetModificationListener extends EContentAdapter {
+
+ /**
+ * @generated
+ */
+ private NotificationFilter myModifiedFilter;
+
+ /**
+ * @generated
+ */
+ private ResourceSetInfo myInfo;
+
+ /**
+ * @generated
+ */
+ public ResourceSetModificationListener(ResourceSetInfo info) {
+ myInfo = info;
+ myModifiedFilter = NotificationFilter.createEventTypeFilter(Notification.SET).or(NotificationFilter.createEventTypeFilter(Notification.UNSET)).and(NotificationFilter.createFeatureFilter(Resource.class, Resource.RESOURCE__IS_MODIFIED));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ if (notification.getNotifier() instanceof ResourceSet) {
+ super.notifyChanged(notification);
+ }
+ if (!notification.isTouch() && myModifiedFilter.matches(notification)) {
+ if (notification.getNotifier() instanceof Resource) {
+ Resource resource = (Resource) notification.getNotifier();
+ if (resource.isLoaded()) {
+ boolean modified = false;
+ for (Iterator<Resource> it = myInfo.getLoadedResourcesIterator(); it.hasNext() && !modified;) {
+ Resource nextResource = it.next();
+ if (nextResource.isLoaded()) {
+ modified = nextResource.isModified();
+ }
+ }
+ boolean dirtyStateChanged = false;
+ synchronized (myInfo) {
+ if (modified != myInfo.fCanBeSaved) {
+ myInfo.fCanBeSaved = modified;
+ dirtyStateChanged = true;
+ }
+ if (!resource.isModified()) {
+ myInfo.setSynchronized(resource);
+ }
+ }
+ if (dirtyStateChanged) {
+ fireElementDirtyStateChanged(myInfo.getEditorInput(), modified);
+
+ if (!modified) {
+ myInfo.setModificationStamp(computeModificationStamp(myInfo));
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLInitDiagramFileAction.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLInitDiagramFileAction.java
index 72152b27c25..9ed31ca51c8 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLInitDiagramFileAction.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLInitDiagramFileAction.java
@@ -1,107 +1,105 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.common.util.WrappedException;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.emf.workspace.WorkspaceEditingDomainFactory;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.wizard.Wizard;
-import org.eclipse.osgi.util.NLS;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IObjectActionDelegate;
-import org.eclipse.ui.IWorkbenchPart;
-
-/**
- * @generated
- */
-public class UMLInitDiagramFileAction implements IObjectActionDelegate {
-
- /**
- * @generated
- */
- private IWorkbenchPart targetPart;
-
- /**
- * @generated
- */
- private URI domainModelURI;
-
- /**
- * @generated
- */
- @Override
- public void setActivePart(IAction action, IWorkbenchPart targetPart) {
- this.targetPart = targetPart;
- }
-
- /**
- * @generated
- */
- @Override
- public void selectionChanged(IAction action, ISelection selection) {
- domainModelURI = null;
- action.setEnabled(false);
- if (selection instanceof IStructuredSelection == false || selection.isEmpty()) {
- return;
- }
- IFile file =
- (IFile) ((IStructuredSelection) selection).getFirstElement();
- domainModelURI = URI.createPlatformResourceURI(file.getFullPath().toString(), true);
- action.setEnabled(true);
- }
-
- /**
- * @generated
- */
- private Shell getShell() {
- return targetPart.getSite().getShell();
- }
-
- /**
- * @generated
- */
- @Override
- public void run(IAction action) {
- TransactionalEditingDomain editingDomain =
- WorkspaceEditingDomainFactory.INSTANCE.createEditingDomain();
- ResourceSet resourceSet = editingDomain.getResourceSet();
- EObject diagramRoot = null;
- try {
- Resource resource = resourceSet.getResource(domainModelURI, true);
- diagramRoot = resource.getContents().get(0);
- } catch (WrappedException ex) {
- UMLDiagramEditorPlugin.getInstance().logError(
- "Unable to load resource: " + domainModelURI, ex); //$NON-NLS-1$
- }
- if (diagramRoot == null) {
- MessageDialog.openError(getShell(),
- Messages.InitDiagramFile_ResourceErrorDialogTitle,
- Messages.InitDiagramFile_ResourceErrorDialogMessage);
- return;
- }
- Wizard wizard = new UMLNewDiagramFileWizard(domainModelURI, diagramRoot, editingDomain);
- wizard.setWindowTitle(NLS.bind(
- Messages.InitDiagramFile_WizardTitle,
- DeploymentDiagramEditPart.MODEL_ID));
- UMLDiagramEditorUtil.runWizard(getShell(), wizard, "InitDiagramFile"); //$NON-NLS-1$
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.common.util.WrappedException;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.emf.workspace.WorkspaceEditingDomainFactory;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IObjectActionDelegate;
+import org.eclipse.ui.IWorkbenchPart;
+
+/**
+ * @generated
+ */
+public class UMLInitDiagramFileAction implements IObjectActionDelegate {
+
+ /**
+ * @generated
+ */
+ private IWorkbenchPart targetPart;
+
+ /**
+ * @generated
+ */
+ private URI domainModelURI;
+
+ /**
+ * @generated
+ */
+ @Override
+ public void setActivePart(IAction action, IWorkbenchPart targetPart) {
+ this.targetPart = targetPart;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void selectionChanged(IAction action, ISelection selection) {
+ domainModelURI = null;
+ action.setEnabled(false);
+ if (selection instanceof IStructuredSelection == false || selection.isEmpty()) {
+ return;
+ }
+ IFile file = (IFile) ((IStructuredSelection) selection).getFirstElement();
+ domainModelURI = URI.createPlatformResourceURI(file.getFullPath().toString(), true);
+ action.setEnabled(true);
+ }
+
+ /**
+ * @generated
+ */
+ private Shell getShell() {
+ return targetPart.getSite().getShell();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void run(IAction action) {
+ TransactionalEditingDomain editingDomain = WorkspaceEditingDomainFactory.INSTANCE.createEditingDomain();
+ ResourceSet resourceSet = editingDomain.getResourceSet();
+ EObject diagramRoot = null;
+ try {
+ Resource resource = resourceSet.getResource(domainModelURI, true);
+ diagramRoot = resource.getContents().get(0);
+ } catch (WrappedException ex) {
+ UMLDiagramEditorPlugin.getInstance().logError(
+ "Unable to load resource: " + domainModelURI, ex); //$NON-NLS-1$
+ }
+ if (diagramRoot == null) {
+ MessageDialog.openError(getShell(),
+ Messages.InitDiagramFile_ResourceErrorDialogTitle,
+ Messages.InitDiagramFile_ResourceErrorDialogMessage);
+ return;
+ }
+ Wizard wizard = new UMLNewDiagramFileWizard(domainModelURI, diagramRoot, editingDomain);
+ wizard.setWindowTitle(NLS.bind(
+ Messages.InitDiagramFile_WizardTitle,
+ DeploymentDiagramEditPart.MODEL_ID));
+ UMLDiagramEditorUtil.runWizard(getShell(), wizard, "InitDiagramFile"); //$NON-NLS-1$
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLLinkDescriptor.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLLinkDescriptor.java
index cfae49cb2c5..8ae2dd6c03c 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLLinkDescriptor.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLLinkDescriptor.java
@@ -1,36 +1,36 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.tooling.runtime.update.UpdaterLinkDescriptor;
-
-/**
- * @generated
- */
-public class UMLLinkDescriptor extends UpdaterLinkDescriptor {
-
- /**
- * @generated
- */
- public UMLLinkDescriptor(EObject source, EObject destination, IElementType elementType, int linkVID) {
- super(source, destination, elementType, linkVID);
- }
-
- /**
- * @generated
- */
- public UMLLinkDescriptor(EObject source, EObject destination, EObject linkElement, IElementType elementType, int linkVID) {
- super(source, destination, linkElement, elementType, linkVID);
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.tooling.runtime.update.UpdaterLinkDescriptor;
+
+/**
+ * @generated
+ */
+public class UMLLinkDescriptor extends UpdaterLinkDescriptor {
+
+ /**
+ * @generated
+ */
+ public UMLLinkDescriptor(EObject source, EObject destination, IElementType elementType, int linkVID) {
+ super(source, destination, elementType, linkVID);
+ }
+
+ /**
+ * @generated
+ */
+ public UMLLinkDescriptor(EObject source, EObject destination, EObject linkElement, IElementType elementType, int linkVID) {
+ super(source, destination, linkElement, elementType, linkVID);
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLMatchingStrategy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLMatchingStrategy.java
index 1631524112a..fb5bc73e394 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLMatchingStrategy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLMatchingStrategy.java
@@ -1,45 +1,45 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import org.eclipse.emf.common.ui.URIEditorInput;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IEditorMatchingStrategy;
-import org.eclipse.ui.IEditorReference;
-import org.eclipse.ui.PartInitException;
-
-/**
- * @generated
- */
-public class UMLMatchingStrategy implements IEditorMatchingStrategy {
-
- /**
- * @generated
- */
- @Override
- public boolean matches(IEditorReference editorRef, IEditorInput input) {
- IEditorInput editorInput;
- try {
- editorInput = editorRef.getEditorInput();
- } catch (PartInitException e) {
- return false;
- }
-
- if (editorInput.equals(input)) {
- return true;
- }
- if (editorInput instanceof URIEditorInput && input instanceof URIEditorInput) {
- return ((URIEditorInput) editorInput).getURI().equals(((URIEditorInput) input).getURI());
- }
- return false;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import org.eclipse.emf.common.ui.URIEditorInput;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IEditorMatchingStrategy;
+import org.eclipse.ui.IEditorReference;
+import org.eclipse.ui.PartInitException;
+
+/**
+ * @generated
+ */
+public class UMLMatchingStrategy implements IEditorMatchingStrategy {
+
+ /**
+ * @generated
+ */
+ @Override
+ public boolean matches(IEditorReference editorRef, IEditorInput input) {
+ IEditorInput editorInput;
+ try {
+ editorInput = editorRef.getEditorInput();
+ } catch (PartInitException e) {
+ return false;
+ }
+
+ if (editorInput.equals(input)) {
+ return true;
+ }
+ if (editorInput instanceof URIEditorInput && input instanceof URIEditorInput) {
+ return ((URIEditorInput) editorInput).getURI().equals(((URIEditorInput) input).getURI());
+ }
+ return false;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLNewDiagramFileWizard.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLNewDiagramFileWizard.java
index bd7033d1f6d..21ac9289559 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLNewDiagramFileWizard.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLNewDiagramFileWizard.java
@@ -1,194 +1,193 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import java.io.IOException;
-import java.util.LinkedList;
-
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.commands.operations.OperationHistoryFactory;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gmf.runtime.common.core.command.CommandResult;
-import org.eclipse.gmf.runtime.diagram.core.services.ViewService;
-import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation;
-import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.wizard.Wizard;
-import org.eclipse.osgi.util.NLS;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.dialogs.WizardNewFileCreationPage;
-
-/**
- * @generated
- */
-public class UMLNewDiagramFileWizard extends Wizard {
-
- /**
- * @generated
- */
- private WizardNewFileCreationPage myFileCreationPage;
-
- /**
- * @generated
- */
- private ModelElementSelectionPage diagramRootElementSelectionPage;
-
- /**
- * @generated
- */
- private TransactionalEditingDomain myEditingDomain;
-
- /**
- * @generated
- */
- public UMLNewDiagramFileWizard(URI domainModelURI, EObject diagramRoot, TransactionalEditingDomain editingDomain) {
- assert domainModelURI != null : "Domain model uri must be specified"; //$NON-NLS-1$
- assert diagramRoot != null : "Doagram root element must be specified"; //$NON-NLS-1$
- assert editingDomain != null : "Editing domain must be specified"; //$NON-NLS-1$
-
- myFileCreationPage = new WizardNewFileCreationPage
- (Messages.UMLNewDiagramFileWizard_CreationPageName, StructuredSelection.EMPTY);
- myFileCreationPage.setTitle(Messages.UMLNewDiagramFileWizard_CreationPageTitle);
- myFileCreationPage.setDescription(NLS.bind(
- Messages.UMLNewDiagramFileWizard_CreationPageDescription,
- DeploymentDiagramEditPart.MODEL_ID));
- IPath filePath;
- String fileName = URI.decode(domainModelURI.trimFileExtension().lastSegment());
- if (domainModelURI.isPlatformResource()) {
- filePath = new Path(domainModelURI.trimSegments(1).toPlatformString(true));
- } else if (domainModelURI.isFile()) {
- filePath = new Path(domainModelURI.trimSegments(1).toFileString());
- } else {
- // TODO : use some default path
- throw new IllegalArgumentException("Unsupported URI: " + domainModelURI); //$NON-NLS-1$
- }
- myFileCreationPage.setContainerFullPath(filePath);
- myFileCreationPage.setFileName(UMLDiagramEditorUtil.getUniqueFileName(
- filePath, fileName, "PapyrusUMLDeployment_diagram")); //$NON-NLS-1$
-
- diagramRootElementSelectionPage = new DiagramRootElementSelectionPage(Messages.UMLNewDiagramFileWizard_RootSelectionPageName);
- diagramRootElementSelectionPage.setTitle(Messages.UMLNewDiagramFileWizard_RootSelectionPageTitle);
- diagramRootElementSelectionPage.setDescription(Messages.UMLNewDiagramFileWizard_RootSelectionPageDescription);
- diagramRootElementSelectionPage.setModelElement(diagramRoot);
-
- myEditingDomain = editingDomain;
- }
-
- /**
- * @generated
- */
- @Override
- public void addPages() {
- addPage(myFileCreationPage);
- addPage(diagramRootElementSelectionPage);
- }
-
- /**
- * @generated
- */
- @Override
- public boolean performFinish() {
- LinkedList<IFile> affectedFiles = new LinkedList<IFile>();
- IFile diagramFile = myFileCreationPage.createNewFile();
- UMLDiagramEditorUtil.setCharset(diagramFile);
- affectedFiles.add(diagramFile);
- URI diagramModelURI = URI.createPlatformResourceURI(diagramFile.getFullPath().toString(), true);
- ResourceSet resourceSet = myEditingDomain.getResourceSet();
- final Resource diagramResource = resourceSet.createResource(diagramModelURI);
- AbstractTransactionalCommand command =
- new AbstractTransactionalCommand(
- myEditingDomain, Messages.UMLNewDiagramFileWizard_InitDiagramCommand, affectedFiles) {
-
- @Override
- protected CommandResult doExecuteWithResult(
- IProgressMonitor monitor, IAdaptable info)
- throws ExecutionException {
- int diagramVID = UMLVisualIDRegistry.getDiagramVisualID(diagramRootElementSelectionPage.getModelElement());
- if (diagramVID != DeploymentDiagramEditPart.VISUAL_ID) {
- return CommandResult.newErrorCommandResult(
- Messages.UMLNewDiagramFileWizard_IncorrectRootError);
- }
- Diagram diagram =
- ViewService.createDiagram(
- diagramRootElementSelectionPage.getModelElement(), DeploymentDiagramEditPart.MODEL_ID,
- UMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT);
- diagramResource.getContents().add(diagram);
- return CommandResult.newOKCommandResult();
- }
- };
- try {
- OperationHistoryFactory.getOperationHistory().execute(
- command, new NullProgressMonitor(), null);
- diagramResource.save(UMLDiagramEditorUtil.getSaveOptions());
- UMLDiagramEditorUtil.openDiagram(diagramResource);
- } catch (ExecutionException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Unable to create model and diagram", e); //$NON-NLS-1$
- } catch (IOException ex) {
- UMLDiagramEditorPlugin.getInstance().logError(
- "Save operation failed for: " + diagramModelURI, ex); //$NON-NLS-1$
- } catch (PartInitException ex) {
- UMLDiagramEditorPlugin.getInstance().logError("Unable to open editor", ex); //$NON-NLS-1$
- }
- return true;
- }
-
- /**
- * @generated
- */
- private static class DiagramRootElementSelectionPage extends ModelElementSelectionPage {
-
- /**
- * @generated
- */
- protected DiagramRootElementSelectionPage(String pageName) {
- super(pageName);
- }
-
- /**
- * @generated
- */
- @Override
- protected String getSelectionTitle() {
- return Messages.UMLNewDiagramFileWizard_RootSelectionPageSelectionTitle;
- }
-
- /**
- * @generated
- */
- @Override
- protected boolean validatePage() {
- if (getModelElement() == null) {
- setErrorMessage(Messages.UMLNewDiagramFileWizard_RootSelectionPageNoSelectionMessage);
- return false;
- }
- boolean result = ViewService.getInstance().provides(
- new CreateDiagramViewOperation(
- new EObjectAdapter(getModelElement()),
- DeploymentDiagramEditPart.MODEL_ID, UMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT));
- setErrorMessage(result ? null : Messages.UMLNewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage);
- return result;
- }
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import java.io.IOException;
+import java.util.LinkedList;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.commands.operations.OperationHistoryFactory;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gmf.runtime.common.core.command.CommandResult;
+import org.eclipse.gmf.runtime.diagram.core.services.ViewService;
+import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation;
+import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.jface.viewers.StructuredSelection;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.dialogs.WizardNewFileCreationPage;
+
+/**
+ * @generated
+ */
+public class UMLNewDiagramFileWizard extends Wizard {
+
+ /**
+ * @generated
+ */
+ private WizardNewFileCreationPage myFileCreationPage;
+
+ /**
+ * @generated
+ */
+ private ModelElementSelectionPage diagramRootElementSelectionPage;
+
+ /**
+ * @generated
+ */
+ private TransactionalEditingDomain myEditingDomain;
+
+ /**
+ * @generated
+ */
+ public UMLNewDiagramFileWizard(URI domainModelURI, EObject diagramRoot, TransactionalEditingDomain editingDomain) {
+ assert domainModelURI != null : "Domain model uri must be specified"; //$NON-NLS-1$
+ assert diagramRoot != null : "Doagram root element must be specified"; //$NON-NLS-1$
+ assert editingDomain != null : "Editing domain must be specified"; //$NON-NLS-1$
+
+ myFileCreationPage = new WizardNewFileCreationPage(Messages.UMLNewDiagramFileWizard_CreationPageName, StructuredSelection.EMPTY);
+ myFileCreationPage.setTitle(Messages.UMLNewDiagramFileWizard_CreationPageTitle);
+ myFileCreationPage.setDescription(NLS.bind(
+ Messages.UMLNewDiagramFileWizard_CreationPageDescription,
+ DeploymentDiagramEditPart.MODEL_ID));
+ IPath filePath;
+ String fileName = URI.decode(domainModelURI.trimFileExtension().lastSegment());
+ if (domainModelURI.isPlatformResource()) {
+ filePath = new Path(domainModelURI.trimSegments(1).toPlatformString(true));
+ } else if (domainModelURI.isFile()) {
+ filePath = new Path(domainModelURI.trimSegments(1).toFileString());
+ } else {
+ // TODO : use some default path
+ throw new IllegalArgumentException("Unsupported URI: " + domainModelURI); //$NON-NLS-1$
+ }
+ myFileCreationPage.setContainerFullPath(filePath);
+ myFileCreationPage.setFileName(UMLDiagramEditorUtil.getUniqueFileName(
+ filePath, fileName, "PapyrusUMLDeployment_diagram")); //$NON-NLS-1$
+
+ diagramRootElementSelectionPage = new DiagramRootElementSelectionPage(Messages.UMLNewDiagramFileWizard_RootSelectionPageName);
+ diagramRootElementSelectionPage.setTitle(Messages.UMLNewDiagramFileWizard_RootSelectionPageTitle);
+ diagramRootElementSelectionPage.setDescription(Messages.UMLNewDiagramFileWizard_RootSelectionPageDescription);
+ diagramRootElementSelectionPage.setModelElement(diagramRoot);
+
+ myEditingDomain = editingDomain;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void addPages() {
+ addPage(myFileCreationPage);
+ addPage(diagramRootElementSelectionPage);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public boolean performFinish() {
+ LinkedList<IFile> affectedFiles = new LinkedList<IFile>();
+ IFile diagramFile = myFileCreationPage.createNewFile();
+ UMLDiagramEditorUtil.setCharset(diagramFile);
+ affectedFiles.add(diagramFile);
+ URI diagramModelURI = URI.createPlatformResourceURI(diagramFile.getFullPath().toString(), true);
+ ResourceSet resourceSet = myEditingDomain.getResourceSet();
+ final Resource diagramResource = resourceSet.createResource(diagramModelURI);
+ AbstractTransactionalCommand command = new AbstractTransactionalCommand(
+ myEditingDomain, Messages.UMLNewDiagramFileWizard_InitDiagramCommand, affectedFiles) {
+
+ @Override
+ protected CommandResult doExecuteWithResult(
+ IProgressMonitor monitor, IAdaptable info)
+ throws ExecutionException {
+ int diagramVID = UMLVisualIDRegistry.getDiagramVisualID(diagramRootElementSelectionPage.getModelElement());
+ if (diagramVID != DeploymentDiagramEditPart.VISUAL_ID) {
+ return CommandResult.newErrorCommandResult(
+ Messages.UMLNewDiagramFileWizard_IncorrectRootError);
+ }
+ Diagram diagram = ViewService.createDiagram(
+ diagramRootElementSelectionPage.getModelElement(), DeploymentDiagramEditPart.MODEL_ID,
+ UMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT);
+ diagramResource.getContents().add(diagram);
+ return CommandResult.newOKCommandResult();
+ }
+ };
+ try {
+ OperationHistoryFactory.getOperationHistory().execute(
+ command, new NullProgressMonitor(), null);
+ diagramResource.save(UMLDiagramEditorUtil.getSaveOptions());
+ UMLDiagramEditorUtil.openDiagram(diagramResource);
+ } catch (ExecutionException e) {
+ UMLDiagramEditorPlugin.getInstance().logError(
+ "Unable to create model and diagram", e); //$NON-NLS-1$
+ } catch (IOException ex) {
+ UMLDiagramEditorPlugin.getInstance().logError(
+ "Save operation failed for: " + diagramModelURI, ex); //$NON-NLS-1$
+ } catch (PartInitException ex) {
+ UMLDiagramEditorPlugin.getInstance().logError(
+ "Unable to open editor", ex); //$NON-NLS-1$
+ }
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ private static class DiagramRootElementSelectionPage extends ModelElementSelectionPage {
+
+ /**
+ * @generated
+ */
+ protected DiagramRootElementSelectionPage(String pageName) {
+ super(pageName);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected String getSelectionTitle() {
+ return Messages.UMLNewDiagramFileWizard_RootSelectionPageSelectionTitle;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected boolean validatePage() {
+ if (getModelElement() == null) {
+ setErrorMessage(Messages.UMLNewDiagramFileWizard_RootSelectionPageNoSelectionMessage);
+ return false;
+ }
+ boolean result = ViewService.getInstance().provides(
+ new CreateDiagramViewOperation(
+ new EObjectAdapter(getModelElement()),
+ DeploymentDiagramEditPart.MODEL_ID, UMLDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT));
+ setErrorMessage(result ? null : Messages.UMLNewDiagramFileWizard_RootSelectionPageInvalidSelectionMessage);
+ return result;
+ }
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLNodeDescriptor.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLNodeDescriptor.java
index 00f9037a9ad..5523e5a08a5 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLNodeDescriptor.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLNodeDescriptor.java
@@ -1,28 +1,28 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.tooling.runtime.update.UpdaterNodeDescriptor;
-
-/**
- * @generated
- */
-public class UMLNodeDescriptor extends UpdaterNodeDescriptor {
-
- /**
- * @generated
- */
- public UMLNodeDescriptor(EObject modelElement, int visualID) {
- super(modelElement, visualID);
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.tooling.runtime.update.UpdaterNodeDescriptor;
+
+/**
+ * @generated
+ */
+public class UMLNodeDescriptor extends UpdaterNodeDescriptor {
+
+ /**
+ * @generated
+ */
+ public UMLNodeDescriptor(EObject modelElement, int visualID) {
+ super(modelElement, visualID);
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLPaletteFactory.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLPaletteFactory.java
index e6269eddefc..111eb4f5edb 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLPaletteFactory.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLPaletteFactory.java
@@ -1,323 +1,323 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.gef.Tool;
-import org.eclipse.gmf.runtime.diagram.ui.services.palette.PaletteFactory;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.papyrus.uml.diagram.common.service.AspectUnspecifiedTypeConnectionTool;
-import org.eclipse.papyrus.uml.diagram.common.service.AspectUnspecifiedTypeCreationTool;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-
-/**
- * @generated
- */
-public class UMLPaletteFactory extends PaletteFactory.Adapter {
-
- // RS: New Palette generation
- // Generates the ID for the tool elements
- // Generate the tool factory (if(ID) createtool...)
- /**
- * @generated
- */
- private final static String CREATEMODELCREATIONTOOL = "createModelCreationTool";//$NON-NLS-1$
-
- /**
- * @generated
- */
- private final static String DEPLOYMENT_TOOL_PACKAGE = "deployment.tool.package";//$NON-NLS-1$
-
- /**
- * @generated
- */
- private final static String DEPLOYMENT_TOOL_NODE = "deployment.tool.node";//$NON-NLS-1$
-
- /**
- * @generated
- */
- private final static String DEPLOYMENT_TOOL_DEVICE = "deployment.tool.device";//$NON-NLS-1$
-
- /**
- * @generated
- */
- private final static String DEPLOYMENT_TOOL_EXECUTIONENVIRONMENT = "deployment.tool.executionEnvironment";//$NON-NLS-1$
-
- /**
- * @generated
- */
- private final static String DEPLOYMENT_TOOL_ARTIFACT = "deployment.tool.artifact";//$NON-NLS-1$
-
- /**
- * @generated
- */
- private final static String DEPLOYMENT_TOOL_COMMENT = "deployment.tool.comment";//$NON-NLS-1$
-
- /**
- * @generated
- */
- private final static String DEPLOYMENT_TOOL_CONSTRAINT = "deployment.tool.constraint";//$NON-NLS-1$
-
- /**
- * @generated
- */
- private final static String DEPLOYMENT_TOOL_LINK = "deployment.tool.link";//$NON-NLS-1$
-
- /**
- * @generated
- */
- private final static String DEPLOYMENT_TOOL_DEPENDENCY = "deployment.tool.dependency";//$NON-NLS-1$
-
- /**
- * @generated
- */
- private final static String DEPLOYMENT_TOOL_DEPENDENCYBRANCH = "deployment.tool.dependencybranch";//$NON-NLS-1$
-
- /**
- * @generated
- */
- private final static String DEPLOYMENT_TOOL_GENERALIZATION = "deployment.tool.generalization";//$NON-NLS-1$
-
- /**
- * @generated
- */
- private final static String DEPLOYMENT_TOOL_DEPLOYMENT = "deployment.tool.deployment";//$NON-NLS-1$
-
- /**
- * @generated
- */
- private final static String DEPLOYMENT_TOOL_MANIFESTATION = "deployment.tool.manifestation";//$NON-NLS-1$
-
- /**
- * @generated
- */
- public UMLPaletteFactory() {
-
- }
-
- /**
- * @generated
- */
- @Override
- public Tool createTool(String toolId) {
- if (toolId.equals(DEPLOYMENT_TOOL_ARTIFACT)) {
- return createArtifactCreationTool();
- }
- if (toolId.equals(DEPLOYMENT_TOOL_COMMENT)) {
- return createCommentCreationTool();
- }
- if (toolId.equals(DEPLOYMENT_TOOL_CONSTRAINT)) {
- return createConstraintCreationTool();
- }
- if (toolId.equals(DEPLOYMENT_TOOL_DEVICE)) {
- return createDeviceCreationTool();
- }
- if (toolId.equals(DEPLOYMENT_TOOL_EXECUTIONENVIRONMENT)) {
- return createExecutionEnvironmentCreationTool();
- }
- if (toolId.equals(CREATEMODELCREATIONTOOL)) {
- return createModelCreationTool();
- }
- if (toolId.equals(DEPLOYMENT_TOOL_NODE)) {
- return createNodeCreationTool();
- }
- if (toolId.equals(DEPLOYMENT_TOOL_PACKAGE)) {
- return createPackageCreationTool();
- }
- if (toolId.equals(DEPLOYMENT_TOOL_DEPENDENCY)) {
- return createDependencyCreationTool();
- }
- if (toolId.equals(DEPLOYMENT_TOOL_DEPENDENCYBRANCH)) {
- return createDependencyBranchCreationTool();
- }
- if (toolId.equals(DEPLOYMENT_TOOL_DEPLOYMENT)) {
- return createDeploymentCreationTool();
- }
- if (toolId.equals(DEPLOYMENT_TOOL_GENERALIZATION)) {
- return createGeneralizationCreationTool();
- }
- if (toolId.equals(DEPLOYMENT_TOOL_LINK)) {
- return createLinkCreationTool();
- }
- if (toolId.equals(DEPLOYMENT_TOOL_MANIFESTATION)) {
- return createManifestationCreationTool();
- }
- // default return: null
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public Object getTemplate(String templateId) {
-
- // default return: null
- return null;
- }
-
- /**
- * @generated
- */
- private Tool createModelCreationTool() {
- List<IElementType> types = new ArrayList<IElementType>(2);
- types.add(UMLElementTypes.Model_49);
- types.add(UMLElementTypes.Model_2010);
- Tool tool = new AspectUnspecifiedTypeCreationTool(types);
- return tool;
- }
-
- /**
- * @generated
- */
- private Tool createPackageCreationTool() {
- List<IElementType> types = new ArrayList<IElementType>(2);
- types.add(UMLElementTypes.Package_2009);
- types.add(UMLElementTypes.Package_36);
- Tool tool = new AspectUnspecifiedTypeCreationTool(types);
- return tool;
- }
-
- /**
- * @generated
- */
- private Tool createNodeCreationTool() {
- List<IElementType> types = new ArrayList<IElementType>(3);
- types.add(UMLElementTypes.Node_2008);
- types.add(UMLElementTypes.Node_23);
- types.add(UMLElementTypes.Node_42);
- Tool tool = new AspectUnspecifiedTypeCreationTool(types);
- return tool;
- }
-
- /**
- * @generated
- */
- private Tool createDeviceCreationTool() {
- List<IElementType> types = new ArrayList<IElementType>(3);
- types.add(UMLElementTypes.Device_2003);
- types.add(UMLElementTypes.Device_16);
- types.add(UMLElementTypes.Device_44);
- Tool tool = new AspectUnspecifiedTypeCreationTool(types);
- return tool;
- }
-
- /**
- * @generated
- */
- private Tool createExecutionEnvironmentCreationTool() {
- List<IElementType> types = new ArrayList<IElementType>(3);
- types.add(UMLElementTypes.ExecutionEnvironment_2002);
- types.add(UMLElementTypes.ExecutionEnvironment_21);
- types.add(UMLElementTypes.ExecutionEnvironment_46);
- Tool tool = new AspectUnspecifiedTypeCreationTool(types);
- return tool;
- }
-
- /**
- * @generated
- */
- private Tool createArtifactCreationTool() {
- List<IElementType> types = new ArrayList<IElementType>(4);
- types.add(UMLElementTypes.Artifact_2006);
- types.add(UMLElementTypes.Artifact_25);
- types.add(UMLElementTypes.Artifact_28);
- types.add(UMLElementTypes.Artifact_40);
- Tool tool = new AspectUnspecifiedTypeCreationTool(types);
- return tool;
- }
-
- /**
- * @generated
- */
- private Tool createCommentCreationTool() {
- List<IElementType> types = new ArrayList<IElementType>(2);
- types.add(UMLElementTypes.Comment_2001);
- types.add(UMLElementTypes.Comment_54);
- Tool tool = new AspectUnspecifiedTypeCreationTool(types);
- return tool;
- }
-
- /**
- * @generated
- */
- private Tool createConstraintCreationTool() {
- List<IElementType> types = new ArrayList<IElementType>(2);
- types.add(UMLElementTypes.Constraint_2005);
- types.add(UMLElementTypes.Constraint_56);
- Tool tool = new AspectUnspecifiedTypeCreationTool(types);
- return tool;
- }
-
- /**
- * @generated
- */
- private Tool createLinkCreationTool() {
- List<IElementType> types = new ArrayList<IElementType>(2);
- types.add(UMLElementTypes.CommentAnnotatedElement_4008);
- types.add(UMLElementTypes.ConstraintConstrainedElement_4009);
- Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
- return tool;
- }
-
- /**
- * @generated
- */
- private Tool createDependencyCreationTool() {
- List<IElementType> types = new ArrayList<IElementType>(1);
- types.add(UMLElementTypes.Dependency_4004);
- Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
- return tool;
- }
-
- /**
- * @generated
- */
- private Tool createDependencyBranchCreationTool() {
- List<IElementType> types = new ArrayList<IElementType>(1);
- types.add(UMLElementTypes.Dependency_4010);
- Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
- return tool;
- }
-
- /**
- * @generated
- */
- private Tool createGeneralizationCreationTool() {
- List<IElementType> types = new ArrayList<IElementType>(1);
- types.add(UMLElementTypes.Generalization_4003);
- Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
- return tool;
- }
-
- /**
- * @generated
- */
- private Tool createDeploymentCreationTool() {
- List<IElementType> types = new ArrayList<IElementType>(1);
- types.add(UMLElementTypes.Deployment_4001);
- Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
- return tool;
- }
-
- /**
- * @generated
- */
- private Tool createManifestationCreationTool() {
- List<IElementType> types = new ArrayList<IElementType>(1);
- types.add(UMLElementTypes.Manifestation_4002);
- Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
- return tool;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.gef.Tool;
+import org.eclipse.gmf.runtime.diagram.ui.services.palette.PaletteFactory;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.papyrus.uml.diagram.common.service.AspectUnspecifiedTypeConnectionTool;
+import org.eclipse.papyrus.uml.diagram.common.service.AspectUnspecifiedTypeCreationTool;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+
+/**
+ * @generated
+ */
+public class UMLPaletteFactory extends PaletteFactory.Adapter {
+
+ // RS: New Palette generation
+ // Generates the ID for the tool elements
+ // Generate the tool factory (if(ID) createtool...)
+ /**
+ * @generated
+ */
+ private final static String CREATEMODELCREATIONTOOL = "createModelCreationTool";//$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String DEPLOYMENT_TOOL_PACKAGE = "deployment.tool.package";//$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String DEPLOYMENT_TOOL_NODE = "deployment.tool.node";//$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String DEPLOYMENT_TOOL_DEVICE = "deployment.tool.device";//$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String DEPLOYMENT_TOOL_EXECUTIONENVIRONMENT = "deployment.tool.executionEnvironment";//$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String DEPLOYMENT_TOOL_ARTIFACT = "deployment.tool.artifact";//$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String DEPLOYMENT_TOOL_COMMENT = "deployment.tool.comment";//$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String DEPLOYMENT_TOOL_CONSTRAINT = "deployment.tool.constraint";//$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String DEPLOYMENT_TOOL_LINK = "deployment.tool.link";//$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String DEPLOYMENT_TOOL_DEPENDENCY = "deployment.tool.dependency";//$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String DEPLOYMENT_TOOL_DEPENDENCYBRANCH = "deployment.tool.dependencybranch";//$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String DEPLOYMENT_TOOL_GENERALIZATION = "deployment.tool.generalization";//$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String DEPLOYMENT_TOOL_DEPLOYMENT = "deployment.tool.deployment";//$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ private final static String DEPLOYMENT_TOOL_MANIFESTATION = "deployment.tool.manifestation";//$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public UMLPaletteFactory() {
+
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Tool createTool(String toolId) {
+ if (toolId.equals(DEPLOYMENT_TOOL_ARTIFACT)) {
+ return createArtifactCreationTool();
+ }
+ if (toolId.equals(DEPLOYMENT_TOOL_COMMENT)) {
+ return createCommentCreationTool();
+ }
+ if (toolId.equals(DEPLOYMENT_TOOL_CONSTRAINT)) {
+ return createConstraintCreationTool();
+ }
+ if (toolId.equals(DEPLOYMENT_TOOL_DEVICE)) {
+ return createDeviceCreationTool();
+ }
+ if (toolId.equals(DEPLOYMENT_TOOL_EXECUTIONENVIRONMENT)) {
+ return createExecutionEnvironmentCreationTool();
+ }
+ if (toolId.equals(CREATEMODELCREATIONTOOL)) {
+ return createModelCreationTool();
+ }
+ if (toolId.equals(DEPLOYMENT_TOOL_NODE)) {
+ return createNodeCreationTool();
+ }
+ if (toolId.equals(DEPLOYMENT_TOOL_PACKAGE)) {
+ return createPackageCreationTool();
+ }
+ if (toolId.equals(DEPLOYMENT_TOOL_DEPENDENCY)) {
+ return createDependencyCreationTool();
+ }
+ if (toolId.equals(DEPLOYMENT_TOOL_DEPENDENCYBRANCH)) {
+ return createDependencyBranchCreationTool();
+ }
+ if (toolId.equals(DEPLOYMENT_TOOL_DEPLOYMENT)) {
+ return createDeploymentCreationTool();
+ }
+ if (toolId.equals(DEPLOYMENT_TOOL_GENERALIZATION)) {
+ return createGeneralizationCreationTool();
+ }
+ if (toolId.equals(DEPLOYMENT_TOOL_LINK)) {
+ return createLinkCreationTool();
+ }
+ if (toolId.equals(DEPLOYMENT_TOOL_MANIFESTATION)) {
+ return createManifestationCreationTool();
+ }
+ // default return: null
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getTemplate(String templateId) {
+
+ // default return: null
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createModelCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Model_49);
+ types.add(UMLElementTypes.Model_2010);
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createPackageCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Package_2009);
+ types.add(UMLElementTypes.Package_36);
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createNodeCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(3);
+ types.add(UMLElementTypes.Node_2008);
+ types.add(UMLElementTypes.Node_23);
+ types.add(UMLElementTypes.Node_42);
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createDeviceCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(3);
+ types.add(UMLElementTypes.Device_2003);
+ types.add(UMLElementTypes.Device_16);
+ types.add(UMLElementTypes.Device_44);
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createExecutionEnvironmentCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(3);
+ types.add(UMLElementTypes.ExecutionEnvironment_2002);
+ types.add(UMLElementTypes.ExecutionEnvironment_21);
+ types.add(UMLElementTypes.ExecutionEnvironment_46);
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createArtifactCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(4);
+ types.add(UMLElementTypes.Artifact_2006);
+ types.add(UMLElementTypes.Artifact_25);
+ types.add(UMLElementTypes.Artifact_28);
+ types.add(UMLElementTypes.Artifact_40);
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createCommentCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Comment_2001);
+ types.add(UMLElementTypes.Comment_54);
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createConstraintCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.Constraint_2005);
+ types.add(UMLElementTypes.Constraint_56);
+ Tool tool = new AspectUnspecifiedTypeCreationTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createLinkCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(2);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4008);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4009);
+ Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createDependencyCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Dependency_4004);
+ Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createDependencyBranchCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Dependency_4010);
+ Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createGeneralizationCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Generalization_4003);
+ Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createDeploymentCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Deployment_4001);
+ Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
+ return tool;
+ }
+
+ /**
+ * @generated
+ */
+ private Tool createManifestationCreationTool() {
+ List<IElementType> types = new ArrayList<IElementType>(1);
+ types.add(UMLElementTypes.Manifestation_4002);
+ Tool tool = new AspectUnspecifiedTypeConnectionTool(types);
+ return tool;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLVisualIDRegistry.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLVisualIDRegistry.java
index bef759ce652..aef0b049c7a 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLVisualIDRegistry.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/UMLVisualIDRegistry.java
@@ -1,997 +1,997 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.tooling.runtime.structure.DiagramStructure;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentBodyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentBodyEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintSpecificationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintSpecificationEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DefaultNamedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DefaultNamedElementNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyAppliedStereotypeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyNodeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentAppliedStereotypeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceCompositeCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceCompositeCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentCompositeCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentCompositeCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationAppliedStereotypeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationAppliedStereotypeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelPackageableElementCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelPackageableElementCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.MultiDependencyLabelEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeCompositeCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeCompositeCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackagePackageableElementCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackagePackageableElementCompartmentEditPartCN;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * This registry is used to determine which type of visual object should be
- * created for the corresponding Diagram, Node, ChildNode or Link represented
- * by a domain model object.
- *
- * @generated
- */
-public class UMLVisualIDRegistry {
-
- /**
- * @generated
- */
- private static final String DEBUG_KEY = "org.eclipse.papyrus.uml.diagram.deployment/debug/visualID"; //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static int getVisualID(View view) {
- if (view instanceof Diagram) {
- if (DeploymentDiagramEditPart.MODEL_ID.equals(view.getType())) {
- return DeploymentDiagramEditPart.VISUAL_ID;
- } else {
- return -1;
- }
- }
- return org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getVisualID(view.getType());
- }
-
- /**
- * @generated
- */
- public static String getModelID(View view) {
- View diagram = view.getDiagram();
- while (view != diagram) {
- EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
- if (annotation != null) {
- return annotation.getDetails().get("modelID"); //$NON-NLS-1$
- }
- view = (View) view.eContainer();
- }
- return diagram != null ? diagram.getType() : null;
- }
-
- /**
- * @generated
- */
- public static int getVisualID(String type) {
- try {
- return Integer.parseInt(type);
- } catch (NumberFormatException e) {
- if (Boolean.TRUE.toString().equalsIgnoreCase(Platform.getDebugOption(DEBUG_KEY))) {
- UMLDiagramEditorPlugin.getInstance().logError("Unable to parse view type as a visualID number: " + type);
- }
- }
- return -1;
- }
-
- /**
- * @generated
- */
- public static String getType(int visualID) {
- return Integer.toString(visualID);
- }
-
- /**
- * @generated
- */
- public static int getDiagramVisualID(EObject domainElement) {
- if (domainElement == null) {
- return -1;
- }
- return 1000;
- }
-
- /**
- * @generated
- */
- public static int getNodeVisualID(View containerView, EObject domainElement) {
- if (domainElement == null) {
- return -1;
- }
- String containerModelID = org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getModelID(containerView);
- if (!DeploymentDiagramEditPart.MODEL_ID.equals(containerModelID)) {
- return -1;
- }
- int containerVisualID;
- if (DeploymentDiagramEditPart.MODEL_ID.equals(containerModelID)) {
- containerVisualID = org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getVisualID(containerView);
- } else {
- if (containerView instanceof Diagram) {
- containerVisualID = DeploymentDiagramEditPart.VISUAL_ID;
- } else {
- return -1;
- }
- }
- switch (containerVisualID) {
- case DeploymentDiagramEditPart.VISUAL_ID:
- if (UMLPackage.eINSTANCE.getDependency().isSuperTypeOf(domainElement.eClass())) {
- return DependencyNodeEditPart.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getModel().isSuperTypeOf(domainElement.eClass())) {
- return ModelEditPart.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getPackage().isSuperTypeOf(domainElement.eClass())) {
- return PackageEditPart.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())) {
- return ConstraintEditPart.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())) {
- return CommentEditPart.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
- return ExecutionEnvironmentEditPart.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())) {
- return DeviceEditPart.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
- return ArtifactEditPart.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())) {
- return NodeEditPart.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getNamedElement().isSuperTypeOf(domainElement.eClass())) {
- return DefaultNamedElementEditPart.VISUAL_ID;
- }
- break;
- case ModelPackageableElementCompartmentEditPart.VISUAL_ID:
- if (UMLPackage.eINSTANCE.getModel().isSuperTypeOf(domainElement.eClass())) {
- return ModelEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getPackage().isSuperTypeOf(domainElement.eClass())) {
- return PackageEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())) {
- return NestedDeviceEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
- return NestedExecutionEnvironmentEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())) {
- return NestedNodeEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
- return NestedArtifactNodeEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())) {
- return CommentEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())) {
- return ConstraintEditPartCN.VISUAL_ID;
- }
- break;
- case PackagePackageableElementCompartmentEditPart.VISUAL_ID:
- if (UMLPackage.eINSTANCE.getModel().isSuperTypeOf(domainElement.eClass())) {
- return ModelEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getPackage().isSuperTypeOf(domainElement.eClass())) {
- return PackageEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
- return NestedArtifactNodeEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())) {
- return NestedDeviceEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
- return NestedExecutionEnvironmentEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())) {
- return NestedNodeEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())) {
- return CommentEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())) {
- return ConstraintEditPartCN.VISUAL_ID;
- }
- break;
- case DeviceCompositeCompartmentEditPart.VISUAL_ID:
- if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
- return ExecutionEnvironmentEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())) {
- return DeviceEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())) {
- return NodeEditPartCN.VISUAL_ID;
- }
- break;
- case ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID:
- if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
- return ExecutionEnvironmentEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
- return ArtifactEditPartCN.VISUAL_ID;
- }
- break;
- case NodeCompositeCompartmentEditPart.VISUAL_ID:
- if (UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())) {
- return DeviceEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
- return ExecutionEnvironmentEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
- return ArtifactEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())) {
- return NodeEditPartCN.VISUAL_ID;
- }
- break;
- case ArtifactCompositeCompartmentEditPart.VISUAL_ID:
- if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
- return ArtifactEditPartACN.VISUAL_ID;
- }
- break;
- case ModelPackageableElementCompartmentEditPartCN.VISUAL_ID:
- if (UMLPackage.eINSTANCE.getModel().isSuperTypeOf(domainElement.eClass())) {
- return ModelEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getPackage().isSuperTypeOf(domainElement.eClass())) {
- return PackageEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())) {
- return NestedDeviceEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
- return NestedExecutionEnvironmentEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())) {
- return NestedNodeEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
- return NestedArtifactNodeEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())) {
- return CommentEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())) {
- return ConstraintEditPartCN.VISUAL_ID;
- }
- break;
- case PackagePackageableElementCompartmentEditPartCN.VISUAL_ID:
- if (UMLPackage.eINSTANCE.getPackage().isSuperTypeOf(domainElement.eClass())) {
- return PackageEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
- return NestedArtifactNodeEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())) {
- return NestedDeviceEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
- return NestedExecutionEnvironmentEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())) {
- return NestedNodeEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())) {
- return CommentEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())) {
- return ConstraintEditPartCN.VISUAL_ID;
- }
- break;
- case DeviceCompositeCompartmentEditPartCN.VISUAL_ID:
- if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
- return ExecutionEnvironmentEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())) {
- return DeviceEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())) {
- return NodeEditPartCN.VISUAL_ID;
- }
- break;
- case ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID:
- if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
- return ArtifactEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
- return ExecutionEnvironmentEditPartCN.VISUAL_ID;
- }
- break;
- case NodeCompositeCompartmentEditPartCN.VISUAL_ID:
- if (UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())) {
- return DeviceEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
- return ExecutionEnvironmentEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())) {
- return NodeEditPartCN.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
- return ArtifactEditPartCN.VISUAL_ID;
- }
- break;
- case ArtifactCompositeCompartmentEditPartCN.VISUAL_ID:
- if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
- return ArtifactEditPartACN.VISUAL_ID;
- }
- break;
- case ArtifactCompositeCompartmentEditPartACN.VISUAL_ID:
- if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
- return ArtifactEditPartACN.VISUAL_ID;
- }
- break;
- }
- return -1;
- }
-
- /**
- * @generated
- */
- public static boolean canCreateNode(View containerView, int nodeVisualID) {
- String containerModelID = org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getModelID(containerView);
- if (!DeploymentDiagramEditPart.MODEL_ID.equals(containerModelID)) {
- return false;
- }
- int containerVisualID;
- if (DeploymentDiagramEditPart.MODEL_ID.equals(containerModelID)) {
- containerVisualID = org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getVisualID(containerView);
- } else {
- if (containerView instanceof Diagram) {
- containerVisualID = DeploymentDiagramEditPart.VISUAL_ID;
- } else {
- return false;
- }
- }
- switch (containerVisualID) {
- case DeploymentDiagramEditPart.VISUAL_ID:
- if (DependencyNodeEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ModelEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (PackageEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ConstraintEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (CommentEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ExecutionEnvironmentEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (DeviceEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ArtifactEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NodeEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (DefaultNamedElementEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case DependencyNodeEditPart.VISUAL_ID:
- if (MultiDependencyLabelEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case ModelEditPart.VISUAL_ID:
- if (ModelNameEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ModelPackageableElementCompartmentEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case PackageEditPart.VISUAL_ID:
- if (PackageNameEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (PackagePackageableElementCompartmentEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case ConstraintEditPart.VISUAL_ID:
- if (ConstraintNameEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ConstraintSpecificationEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case CommentEditPart.VISUAL_ID:
- if (CommentBodyEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case ExecutionEnvironmentEditPart.VISUAL_ID:
- if (ExecutionEnvironmentNameEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case DeviceEditPart.VISUAL_ID:
- if (DeviceNameEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (DeviceCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case ArtifactEditPart.VISUAL_ID:
- if (ArtifactNameEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ArtifactFloatingLabelEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ArtifactCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case NodeEditPart.VISUAL_ID:
- if (NodeNameEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NodeCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case DefaultNamedElementEditPart.VISUAL_ID:
- if (DefaultNamedElementNameEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case ModelEditPartCN.VISUAL_ID:
- if (ModelNameEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ModelPackageableElementCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case PackageEditPartCN.VISUAL_ID:
- if (PackageNameEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (PackagePackageableElementCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case DeviceEditPartCN.VISUAL_ID:
- if (DeviceNameEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case NestedDeviceEditPartCN.VISUAL_ID:
- if (NestedDeviceNameEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (DeviceCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case ExecutionEnvironmentEditPartCN.VISUAL_ID:
- if (ExecutionEnvironmentNameEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
- if (NestedExecutionEnvironmentNameEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case NodeEditPartCN.VISUAL_ID:
- if (NodeNameEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case NestedNodeEditPartCN.VISUAL_ID:
- if (NestedNodeNameEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NodeCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case ArtifactEditPartCN.VISUAL_ID:
- if (ArtifactNameEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ArtifactFloatingLabelEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ArtifactCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case ArtifactEditPartACN.VISUAL_ID:
- if (ArtifactNameEditPartACN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ArtifactFloatingLabelEditPartACN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ArtifactCompositeCompartmentEditPartACN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case NestedArtifactNodeEditPartCN.VISUAL_ID:
- if (NestedArtifactNameEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case CommentEditPartCN.VISUAL_ID:
- if (CommentBodyEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case ConstraintEditPartCN.VISUAL_ID:
- if (ConstraintNameEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ConstraintSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case ModelPackageableElementCompartmentEditPart.VISUAL_ID:
- if (ModelEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (PackageEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NestedDeviceEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NestedExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NestedNodeEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NestedArtifactNodeEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (CommentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case PackagePackageableElementCompartmentEditPart.VISUAL_ID:
- if (ModelEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (PackageEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NestedArtifactNodeEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NestedDeviceEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NestedExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NestedNodeEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (CommentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case DeviceCompositeCompartmentEditPart.VISUAL_ID:
- if (ExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (DeviceEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NodeEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID:
- if (ExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case NodeCompositeCompartmentEditPart.VISUAL_ID:
- if (DeviceEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NodeEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case ArtifactCompositeCompartmentEditPart.VISUAL_ID:
- if (ArtifactEditPartACN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case ModelPackageableElementCompartmentEditPartCN.VISUAL_ID:
- if (ModelEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (PackageEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NestedDeviceEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NestedExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NestedNodeEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NestedArtifactNodeEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (CommentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case PackagePackageableElementCompartmentEditPartCN.VISUAL_ID:
- if (PackageEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NestedArtifactNodeEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NestedDeviceEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NestedExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NestedNodeEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (CommentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case DeviceCompositeCompartmentEditPartCN.VISUAL_ID:
- if (ExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (DeviceEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NodeEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID:
- if (ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case NodeCompositeCompartmentEditPartCN.VISUAL_ID:
- if (DeviceEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (NodeEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case ArtifactCompositeCompartmentEditPartCN.VISUAL_ID:
- if (ArtifactEditPartACN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case ArtifactCompositeCompartmentEditPartACN.VISUAL_ID:
- if (ArtifactEditPartACN.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case DeploymentEditPart.VISUAL_ID:
- if (DeploymentNameEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (DeploymentAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case ManifestationEditPart.VISUAL_ID:
- if (ManifestationNameEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (ManifestationAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case GeneralizationEditPart.VISUAL_ID:
- if (GeneralizationAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- case DependencyEditPart.VISUAL_ID:
- if (DependencyNameEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- if (DependencyAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
- return true;
- }
- break;
- }
- return false;
- }
-
- /**
- * @generated
- */
- public static int getLinkWithClassVisualID(EObject domainElement) {
- if (domainElement == null) {
- return -1;
- }
- if (UMLPackage.eINSTANCE.getDeployment().isSuperTypeOf(domainElement.eClass())) {
- return DeploymentEditPart.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getManifestation().isSuperTypeOf(domainElement.eClass())) {
- return ManifestationEditPart.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getGeneralization().isSuperTypeOf(domainElement.eClass())) {
- return GeneralizationEditPart.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getDependency().isSuperTypeOf(domainElement.eClass())) {
- return DependencyEditPart.VISUAL_ID;
- }
- if (UMLPackage.eINSTANCE.getDependency().isSuperTypeOf(domainElement.eClass())) {
- return DependencyBranchEditPart.VISUAL_ID;
- }
- return -1;
- }
-
- /**
- * User can change implementation of this method to handle some specific
- * situations not covered by default logic.
- *
- * @generated
- */
- private static boolean isDiagram(Package element) {
- return true;
- }
-
- /**
- * @generated
- */
- public static boolean checkNodeVisualID(View containerView, EObject domainElement, int candidate) {
- if (candidate == -1) {
- // unrecognized id is always bad
- return false;
- }
- int basic = getNodeVisualID(containerView, domainElement);
- return basic == candidate;
- }
-
- /**
- * @generated
- */
- public static boolean isCompartmentVisualID(int visualID) {
- switch (visualID) {
- case ModelPackageableElementCompartmentEditPart.VISUAL_ID:
- case PackagePackageableElementCompartmentEditPart.VISUAL_ID:
- case DeviceCompositeCompartmentEditPart.VISUAL_ID:
- case ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID:
- case NodeCompositeCompartmentEditPart.VISUAL_ID:
- case ArtifactCompositeCompartmentEditPart.VISUAL_ID:
- case ModelPackageableElementCompartmentEditPartCN.VISUAL_ID:
- case PackagePackageableElementCompartmentEditPartCN.VISUAL_ID:
- case DeviceCompositeCompartmentEditPartCN.VISUAL_ID:
- case ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID:
- case NodeCompositeCompartmentEditPartCN.VISUAL_ID:
- case ArtifactCompositeCompartmentEditPartCN.VISUAL_ID:
- case ArtifactCompositeCompartmentEditPartACN.VISUAL_ID:
- return true;
- default:
- break;
- }
- return false;
- }
-
- /**
- * @generated
- */
- public static boolean isSemanticLeafVisualID(int visualID) {
- switch (visualID) {
- case DeploymentDiagramEditPart.VISUAL_ID:
- return false;
- case DeviceEditPartCN.VISUAL_ID:
- case ExecutionEnvironmentEditPartCN.VISUAL_ID:
- case NodeEditPartCN.VISUAL_ID:
- case NestedArtifactNodeEditPartCN.VISUAL_ID:
- case CommentEditPartCN.VISUAL_ID:
- case ConstraintEditPartCN.VISUAL_ID:
- case CommentEditPart.VISUAL_ID:
- case ConstraintEditPart.VISUAL_ID:
- case DependencyNodeEditPart.VISUAL_ID:
- case DefaultNamedElementEditPart.VISUAL_ID:
- return true;
- default:
- break;
- }
- return false;
- }
-
- /**
- * @generated
- */
- public static final DiagramStructure TYPED_INSTANCE = new DiagramStructure() {
- /**
- * @generated
- */
- @Override
- public int getVisualID(View view) {
- return org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getVisualID(view);
- }
-
- /**
- * @generated
- */
- @Override
- public String getModelID(View view) {
- return org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getModelID(view);
- }
-
- /**
- * @generated
- */
- @Override
- public int getNodeVisualID(View containerView, EObject domainElement) {
- return org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getNodeVisualID(containerView, domainElement);
- }
-
- /**
- * @generated
- */
- @Override
- public boolean checkNodeVisualID(View containerView, EObject domainElement, int candidate) {
- return org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.checkNodeVisualID(containerView, domainElement, candidate);
- }
-
- /**
- * @generated
- */
- @Override
- public boolean isCompartmentVisualID(int visualID) {
- return org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.isCompartmentVisualID(visualID);
- }
-
- /**
- * @generated
- */
- @Override
- public boolean isSemanticLeafVisualID(int visualID) {
- return org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.isSemanticLeafVisualID(visualID);
- }
- };
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.structure.DiagramStructure;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPartACN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartACN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartACN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPartACN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentBodyEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentBodyEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintSpecificationEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintSpecificationEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DefaultNamedElementEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DefaultNamedElementNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyAppliedStereotypeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyNodeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentAppliedStereotypeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceCompositeCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceCompositeCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentCompositeCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentCompositeCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationAppliedStereotypeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationAppliedStereotypeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelPackageableElementCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelPackageableElementCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.MultiDependencyLabelEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNodeEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeCompositeCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeCompositeCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackagePackageableElementCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackagePackageableElementCompartmentEditPartCN;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLPackage;
+
+/**
+ * This registry is used to determine which type of visual object should be
+ * created for the corresponding Diagram, Node, ChildNode or Link represented
+ * by a domain model object.
+ *
+ * @generated
+ */
+public class UMLVisualIDRegistry {
+
+ /**
+ * @generated
+ */
+ private static final String DEBUG_KEY = "org.eclipse.papyrus.uml.diagram.deployment/debug/visualID"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static int getVisualID(View view) {
+ if (view instanceof Diagram) {
+ if (DeploymentDiagramEditPart.MODEL_ID.equals(view.getType())) {
+ return DeploymentDiagramEditPart.VISUAL_ID;
+ } else {
+ return -1;
+ }
+ }
+ return org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getVisualID(view.getType());
+ }
+
+ /**
+ * @generated
+ */
+ public static String getModelID(View view) {
+ View diagram = view.getDiagram();
+ while (view != diagram) {
+ EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
+ if (annotation != null) {
+ return annotation.getDetails().get("modelID"); //$NON-NLS-1$
+ }
+ view = (View) view.eContainer();
+ }
+ return diagram != null ? diagram.getType() : null;
+ }
+
+ /**
+ * @generated
+ */
+ public static int getVisualID(String type) {
+ try {
+ return Integer.parseInt(type);
+ } catch (NumberFormatException e) {
+ if (Boolean.TRUE.toString().equalsIgnoreCase(Platform.getDebugOption(DEBUG_KEY))) {
+ UMLDiagramEditorPlugin.getInstance().logError("Unable to parse view type as a visualID number: " + type);
+ }
+ }
+ return -1;
+ }
+
+ /**
+ * @generated
+ */
+ public static String getType(int visualID) {
+ return Integer.toString(visualID);
+ }
+
+ /**
+ * @generated
+ */
+ public static int getDiagramVisualID(EObject domainElement) {
+ if (domainElement == null) {
+ return -1;
+ }
+ return 1000;
+ }
+
+ /**
+ * @generated
+ */
+ public static int getNodeVisualID(View containerView, EObject domainElement) {
+ if (domainElement == null) {
+ return -1;
+ }
+ String containerModelID = org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getModelID(containerView);
+ if (!DeploymentDiagramEditPart.MODEL_ID.equals(containerModelID)) {
+ return -1;
+ }
+ int containerVisualID;
+ if (DeploymentDiagramEditPart.MODEL_ID.equals(containerModelID)) {
+ containerVisualID = org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getVisualID(containerView);
+ } else {
+ if (containerView instanceof Diagram) {
+ containerVisualID = DeploymentDiagramEditPart.VISUAL_ID;
+ } else {
+ return -1;
+ }
+ }
+ switch (containerVisualID) {
+ case DeploymentDiagramEditPart.VISUAL_ID:
+ if (UMLPackage.eINSTANCE.getDependency().isSuperTypeOf(domainElement.eClass())) {
+ return DependencyNodeEditPart.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getModel().isSuperTypeOf(domainElement.eClass())) {
+ return ModelEditPart.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getPackage().isSuperTypeOf(domainElement.eClass())) {
+ return PackageEditPart.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())) {
+ return ConstraintEditPart.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())) {
+ return CommentEditPart.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
+ return ExecutionEnvironmentEditPart.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())) {
+ return DeviceEditPart.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
+ return ArtifactEditPart.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())) {
+ return NodeEditPart.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getNamedElement().isSuperTypeOf(domainElement.eClass())) {
+ return DefaultNamedElementEditPart.VISUAL_ID;
+ }
+ break;
+ case ModelPackageableElementCompartmentEditPart.VISUAL_ID:
+ if (UMLPackage.eINSTANCE.getModel().isSuperTypeOf(domainElement.eClass())) {
+ return ModelEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getPackage().isSuperTypeOf(domainElement.eClass())) {
+ return PackageEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())) {
+ return NestedDeviceEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
+ return NestedExecutionEnvironmentEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())) {
+ return NestedNodeEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
+ return NestedArtifactNodeEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case PackagePackageableElementCompartmentEditPart.VISUAL_ID:
+ if (UMLPackage.eINSTANCE.getModel().isSuperTypeOf(domainElement.eClass())) {
+ return ModelEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getPackage().isSuperTypeOf(domainElement.eClass())) {
+ return PackageEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
+ return NestedArtifactNodeEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())) {
+ return NestedDeviceEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
+ return NestedExecutionEnvironmentEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())) {
+ return NestedNodeEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case DeviceCompositeCompartmentEditPart.VISUAL_ID:
+ if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
+ return ExecutionEnvironmentEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())) {
+ return DeviceEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())) {
+ return NodeEditPartCN.VISUAL_ID;
+ }
+ break;
+ case ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID:
+ if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
+ return ExecutionEnvironmentEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ break;
+ case NodeCompositeCompartmentEditPart.VISUAL_ID:
+ if (UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())) {
+ return DeviceEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
+ return ExecutionEnvironmentEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())) {
+ return NodeEditPartCN.VISUAL_ID;
+ }
+ break;
+ case ArtifactCompositeCompartmentEditPart.VISUAL_ID:
+ if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
+ return ArtifactEditPartACN.VISUAL_ID;
+ }
+ break;
+ case ModelPackageableElementCompartmentEditPartCN.VISUAL_ID:
+ if (UMLPackage.eINSTANCE.getModel().isSuperTypeOf(domainElement.eClass())) {
+ return ModelEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getPackage().isSuperTypeOf(domainElement.eClass())) {
+ return PackageEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())) {
+ return NestedDeviceEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
+ return NestedExecutionEnvironmentEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())) {
+ return NestedNodeEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
+ return NestedArtifactNodeEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case PackagePackageableElementCompartmentEditPartCN.VISUAL_ID:
+ if (UMLPackage.eINSTANCE.getPackage().isSuperTypeOf(domainElement.eClass())) {
+ return PackageEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
+ return NestedArtifactNodeEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())) {
+ return NestedDeviceEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
+ return NestedExecutionEnvironmentEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())) {
+ return NestedNodeEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getComment().isSuperTypeOf(domainElement.eClass())) {
+ return CommentEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getConstraint().isSuperTypeOf(domainElement.eClass())) {
+ return ConstraintEditPartCN.VISUAL_ID;
+ }
+ break;
+ case DeviceCompositeCompartmentEditPartCN.VISUAL_ID:
+ if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
+ return ExecutionEnvironmentEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())) {
+ return DeviceEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())) {
+ return NodeEditPartCN.VISUAL_ID;
+ }
+ break;
+ case ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID:
+ if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
+ return ExecutionEnvironmentEditPartCN.VISUAL_ID;
+ }
+ break;
+ case NodeCompositeCompartmentEditPartCN.VISUAL_ID:
+ if (UMLPackage.eINSTANCE.getDevice().isSuperTypeOf(domainElement.eClass())) {
+ return DeviceEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getExecutionEnvironment().isSuperTypeOf(domainElement.eClass())) {
+ return ExecutionEnvironmentEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getNode().isSuperTypeOf(domainElement.eClass())) {
+ return NodeEditPartCN.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
+ return ArtifactEditPartCN.VISUAL_ID;
+ }
+ break;
+ case ArtifactCompositeCompartmentEditPartCN.VISUAL_ID:
+ if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
+ return ArtifactEditPartACN.VISUAL_ID;
+ }
+ break;
+ case ArtifactCompositeCompartmentEditPartACN.VISUAL_ID:
+ if (UMLPackage.eINSTANCE.getArtifact().isSuperTypeOf(domainElement.eClass())) {
+ return ArtifactEditPartACN.VISUAL_ID;
+ }
+ break;
+ }
+ return -1;
+ }
+
+ /**
+ * @generated
+ */
+ public static boolean canCreateNode(View containerView, int nodeVisualID) {
+ String containerModelID = org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getModelID(containerView);
+ if (!DeploymentDiagramEditPart.MODEL_ID.equals(containerModelID)) {
+ return false;
+ }
+ int containerVisualID;
+ if (DeploymentDiagramEditPart.MODEL_ID.equals(containerModelID)) {
+ containerVisualID = org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getVisualID(containerView);
+ } else {
+ if (containerView instanceof Diagram) {
+ containerVisualID = DeploymentDiagramEditPart.VISUAL_ID;
+ } else {
+ return false;
+ }
+ }
+ switch (containerVisualID) {
+ case DeploymentDiagramEditPart.VISUAL_ID:
+ if (DependencyNodeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ModelEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (PackageEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ConstraintEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (CommentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ExecutionEnvironmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (DeviceEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ArtifactEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NodeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (DefaultNamedElementEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DependencyNodeEditPart.VISUAL_ID:
+ if (MultiDependencyLabelEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ModelEditPart.VISUAL_ID:
+ if (ModelNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ModelPackageableElementCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case PackageEditPart.VISUAL_ID:
+ if (PackageNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (PackagePackageableElementCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ConstraintEditPart.VISUAL_ID:
+ if (ConstraintNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ConstraintSpecificationEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case CommentEditPart.VISUAL_ID:
+ if (CommentBodyEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ExecutionEnvironmentEditPart.VISUAL_ID:
+ if (ExecutionEnvironmentNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DeviceEditPart.VISUAL_ID:
+ if (DeviceNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (DeviceCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ArtifactEditPart.VISUAL_ID:
+ if (ArtifactNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ArtifactFloatingLabelEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ArtifactCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case NodeEditPart.VISUAL_ID:
+ if (NodeNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NodeCompositeCompartmentEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DefaultNamedElementEditPart.VISUAL_ID:
+ if (DefaultNamedElementNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ModelEditPartCN.VISUAL_ID:
+ if (ModelNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ModelPackageableElementCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case PackageEditPartCN.VISUAL_ID:
+ if (PackageNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (PackagePackageableElementCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DeviceEditPartCN.VISUAL_ID:
+ if (DeviceNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case NestedDeviceEditPartCN.VISUAL_ID:
+ if (NestedDeviceNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (DeviceCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ExecutionEnvironmentEditPartCN.VISUAL_ID:
+ if (ExecutionEnvironmentNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
+ if (NestedExecutionEnvironmentNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case NodeEditPartCN.VISUAL_ID:
+ if (NodeNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case NestedNodeEditPartCN.VISUAL_ID:
+ if (NestedNodeNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NodeCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ArtifactEditPartCN.VISUAL_ID:
+ if (ArtifactNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ArtifactFloatingLabelEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ArtifactCompositeCompartmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ArtifactEditPartACN.VISUAL_ID:
+ if (ArtifactNameEditPartACN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ArtifactFloatingLabelEditPartACN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ArtifactCompositeCompartmentEditPartACN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case NestedArtifactNodeEditPartCN.VISUAL_ID:
+ if (NestedArtifactNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case CommentEditPartCN.VISUAL_ID:
+ if (CommentBodyEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ConstraintEditPartCN.VISUAL_ID:
+ if (ConstraintNameEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ConstraintSpecificationEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ModelPackageableElementCompartmentEditPart.VISUAL_ID:
+ if (ModelEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (PackageEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NestedDeviceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NestedExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NestedNodeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NestedArtifactNodeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case PackagePackageableElementCompartmentEditPart.VISUAL_ID:
+ if (ModelEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (PackageEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NestedArtifactNodeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NestedDeviceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NestedExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NestedNodeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DeviceCompositeCompartmentEditPart.VISUAL_ID:
+ if (ExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (DeviceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NodeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID:
+ if (ExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case NodeCompositeCompartmentEditPart.VISUAL_ID:
+ if (DeviceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NodeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ArtifactCompositeCompartmentEditPart.VISUAL_ID:
+ if (ArtifactEditPartACN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ModelPackageableElementCompartmentEditPartCN.VISUAL_ID:
+ if (ModelEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (PackageEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NestedDeviceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NestedExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NestedNodeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NestedArtifactNodeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case PackagePackageableElementCompartmentEditPartCN.VISUAL_ID:
+ if (PackageEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NestedArtifactNodeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NestedDeviceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NestedExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NestedNodeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (CommentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ConstraintEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DeviceCompositeCompartmentEditPartCN.VISUAL_ID:
+ if (ExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (DeviceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NodeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID:
+ if (ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case NodeCompositeCompartmentEditPartCN.VISUAL_ID:
+ if (DeviceEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ExecutionEnvironmentEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (NodeEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ArtifactEditPartCN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ArtifactCompositeCompartmentEditPartCN.VISUAL_ID:
+ if (ArtifactEditPartACN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ArtifactCompositeCompartmentEditPartACN.VISUAL_ID:
+ if (ArtifactEditPartACN.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DeploymentEditPart.VISUAL_ID:
+ if (DeploymentNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (DeploymentAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case ManifestationEditPart.VISUAL_ID:
+ if (ManifestationNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (ManifestationAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case GeneralizationEditPart.VISUAL_ID:
+ if (GeneralizationAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ case DependencyEditPart.VISUAL_ID:
+ if (DependencyNameEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ if (DependencyAppliedStereotypeEditPart.VISUAL_ID == nodeVisualID) {
+ return true;
+ }
+ break;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public static int getLinkWithClassVisualID(EObject domainElement) {
+ if (domainElement == null) {
+ return -1;
+ }
+ if (UMLPackage.eINSTANCE.getDeployment().isSuperTypeOf(domainElement.eClass())) {
+ return DeploymentEditPart.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getManifestation().isSuperTypeOf(domainElement.eClass())) {
+ return ManifestationEditPart.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getGeneralization().isSuperTypeOf(domainElement.eClass())) {
+ return GeneralizationEditPart.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getDependency().isSuperTypeOf(domainElement.eClass())) {
+ return DependencyEditPart.VISUAL_ID;
+ }
+ if (UMLPackage.eINSTANCE.getDependency().isSuperTypeOf(domainElement.eClass())) {
+ return DependencyBranchEditPart.VISUAL_ID;
+ }
+ return -1;
+ }
+
+ /**
+ * User can change implementation of this method to handle some specific
+ * situations not covered by default logic.
+ *
+ * @generated
+ */
+ private static boolean isDiagram(Package element) {
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ public static boolean checkNodeVisualID(View containerView, EObject domainElement, int candidate) {
+ if (candidate == -1) {
+ //unrecognized id is always bad
+ return false;
+ }
+ int basic = getNodeVisualID(containerView, domainElement);
+ return basic == candidate;
+ }
+
+ /**
+ * @generated
+ */
+ public static boolean isCompartmentVisualID(int visualID) {
+ switch (visualID) {
+ case ModelPackageableElementCompartmentEditPart.VISUAL_ID:
+ case PackagePackageableElementCompartmentEditPart.VISUAL_ID:
+ case DeviceCompositeCompartmentEditPart.VISUAL_ID:
+ case ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID:
+ case NodeCompositeCompartmentEditPart.VISUAL_ID:
+ case ArtifactCompositeCompartmentEditPart.VISUAL_ID:
+ case ModelPackageableElementCompartmentEditPartCN.VISUAL_ID:
+ case PackagePackageableElementCompartmentEditPartCN.VISUAL_ID:
+ case DeviceCompositeCompartmentEditPartCN.VISUAL_ID:
+ case ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID:
+ case NodeCompositeCompartmentEditPartCN.VISUAL_ID:
+ case ArtifactCompositeCompartmentEditPartCN.VISUAL_ID:
+ case ArtifactCompositeCompartmentEditPartACN.VISUAL_ID:
+ return true;
+ default:
+ break;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public static boolean isSemanticLeafVisualID(int visualID) {
+ switch (visualID) {
+ case DeploymentDiagramEditPart.VISUAL_ID:
+ return false;
+ case DeviceEditPartCN.VISUAL_ID:
+ case ExecutionEnvironmentEditPartCN.VISUAL_ID:
+ case NodeEditPartCN.VISUAL_ID:
+ case NestedArtifactNodeEditPartCN.VISUAL_ID:
+ case CommentEditPartCN.VISUAL_ID:
+ case ConstraintEditPartCN.VISUAL_ID:
+ case CommentEditPart.VISUAL_ID:
+ case ConstraintEditPart.VISUAL_ID:
+ case DependencyNodeEditPart.VISUAL_ID:
+ case DefaultNamedElementEditPart.VISUAL_ID:
+ return true;
+ default:
+ break;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public static final DiagramStructure TYPED_INSTANCE = new DiagramStructure() {
+ /**
+ * @generated
+ */
+ @Override
+ public int getVisualID(View view) {
+ return org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getVisualID(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getModelID(View view) {
+ return org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getModelID(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public int getNodeVisualID(View containerView, EObject domainElement) {
+ return org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getNodeVisualID(containerView, domainElement);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public boolean checkNodeVisualID(View containerView, EObject domainElement, int candidate) {
+ return org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.checkNodeVisualID(containerView, domainElement, candidate);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public boolean isCompartmentVisualID(int visualID) {
+ return org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.isCompartmentVisualID(visualID);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public boolean isSemanticLeafVisualID(int visualID) {
+ return org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.isSemanticLeafVisualID(visualID);
+ }
+ };
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/ValidateAction.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/ValidateAction.java
index 2a21e3857bd..5480fdf283f 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/ValidateAction.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/part/ValidateAction.java
@@ -1,302 +1,292 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.part;
-
-import java.lang.reflect.InvocationTargetException;
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.emf.common.util.Diagnostic;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.util.Diagnostician;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.emf.transaction.util.TransactionUtil;
-import org.eclipse.emf.validation.model.EvaluationMode;
-import org.eclipse.emf.validation.model.IConstraintStatus;
-import org.eclipse.emf.validation.service.IBatchValidator;
-import org.eclipse.emf.validation.service.ModelValidationService;
-import org.eclipse.emf.workspace.util.WorkspaceSynchronizer;
-import org.eclipse.gef.EditPartViewer;
-import org.eclipse.gmf.runtime.diagram.ui.OffscreenEditPartFactory;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart;
-import org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.operation.IRunnableWithProgress;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLMarkerNavigationProvider;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLValidationProvider;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.IWorkbenchPart;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation;
-
-/**
- * @generated
- */
-public class ValidateAction extends Action {
-
- /**
- * @generated
- */
- private IWorkbenchPage page;
-
- /**
- * @generated
- */
- public ValidateAction(IWorkbenchPage page) {
- setText(Messages.ValidateActionMessage);
- this.page = page;
- }
-
- /**
- * @generated
- */
- @Override
- public void run() {
- IWorkbenchPart workbenchPart = page.getActivePart();
- if (workbenchPart instanceof IDiagramWorkbenchPart) {
- final IDiagramWorkbenchPart part = (IDiagramWorkbenchPart) workbenchPart;
- try {
- new WorkspaceModifyDelegatingOperation(
- new IRunnableWithProgress() {
-
- @Override
- public void run(IProgressMonitor monitor)
- throws InterruptedException, InvocationTargetException {
- runValidation(part.getDiagramEditPart(), part.getDiagram());
- }
- })
- .run(new NullProgressMonitor());
- } catch (Exception e) {
- UMLDiagramEditorPlugin.getInstance().logError("Validation action failed", e); //$NON-NLS-1$
- }
- }
- }
-
- /**
- * @generated
- */
- public static void runValidation(View view) {
- try {
- if (UMLDiagramEditorUtil.openDiagram(view.eResource())) {
- IEditorPart editorPart = PlatformUI.getWorkbench()
- .getActiveWorkbenchWindow().getActivePage().getActiveEditor();
- if (editorPart instanceof IDiagramWorkbenchPart) {
- runValidation(((IDiagramWorkbenchPart) editorPart).
- getDiagramEditPart(), view);
- } else {
- runNonUIValidation(view);
- }
- }
- } catch (Exception e) {
- UMLDiagramEditorPlugin.getInstance().logError("Validation action failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public static void runNonUIValidation(View view) {
- Shell shell = Display.getCurrent().getActiveShell();
- if (shell == null) {
- shell = new Shell();
- }
-
- DiagramEditPart diagramEditPart =
- OffscreenEditPartFactory.getInstance().createDiagramEditPart(
- view.getDiagram(), shell);
- runValidation(diagramEditPart, view);
- }
-
- /**
- * @generated
- */
- public static void runValidation(DiagramEditPart diagramEditPart, View view) {
- final DiagramEditPart fpart = diagramEditPart;
- final View fview = view;
- TransactionalEditingDomain txDomain = TransactionUtil.getEditingDomain(view);
- UMLValidationProvider.runWithConstraints(txDomain, new Runnable() {
-
- @Override
- public void run() {
- validate(fpart, fview);
- }
- });
- }
-
- /**
- * @generated
- */
- private static Diagnostic runEMFValidator(View target) {
- if (target.isSetElement() && target.getElement() != null) {
- return new Diagnostician() {
-
- @Override
- public String getObjectLabel(EObject eObject) {
- return EMFCoreUtil.getQualifiedName(eObject, true);
- }
- }.validate(target.getElement());
- }
- return Diagnostic.OK_INSTANCE;
- }
-
- /**
- * @generated
- */
- private static void validate(DiagramEditPart diagramEditPart, View view) {
- IFile target = view.eResource() != null ?
- WorkspaceSynchronizer.getFile(view.eResource()) : null;
- if (target != null) {
- UMLMarkerNavigationProvider.deleteMarkers(target);
- }
- Diagnostic diagnostic = runEMFValidator(view);
- createMarkers(target, diagnostic, diagramEditPart);
- IBatchValidator validator =
- (IBatchValidator)
- ModelValidationService.getInstance().newValidator(
- EvaluationMode.BATCH);
- validator.setIncludeLiveConstraints(true);
- if (view.isSetElement() && view.getElement() != null) {
- IStatus status = validator.validate(view.getElement());
- createMarkers(target, status, diagramEditPart);
- }
- }
-
- /**
- * @generated
- */
- private static void createMarkers(IFile
- target, IStatus validationStatus, DiagramEditPart diagramEditPart) {
- if (validationStatus.isOK()) {
- return;
- }
- final IStatus rootStatus = validationStatus;
- List allStatuses = new ArrayList();
- UMLDiagramEditorUtil.LazyElement2ViewMap element2ViewMap = new UMLDiagramEditorUtil.LazyElement2ViewMap(
- diagramEditPart.getDiagramView(),
- collectTargetElements(rootStatus, new HashSet<EObject>(), allStatuses));
- for (Iterator it = allStatuses.iterator(); it.hasNext();) {
- IConstraintStatus nextStatus =
- (IConstraintStatus) it.next();
- View view = UMLDiagramEditorUtil.findView(
- diagramEditPart, nextStatus.getTarget(), element2ViewMap);
- addMarker(diagramEditPart.getViewer(), target, view.eResource().getURIFragment(view),
- EMFCoreUtil.getQualifiedName(nextStatus.getTarget(), true),
- nextStatus.getMessage(), nextStatus.getSeverity());
- }
- }
-
- /**
- * @generated
- */
- private static void createMarkers(IFile
- target, Diagnostic emfValidationStatus, DiagramEditPart diagramEditPart) {
- if (emfValidationStatus.getSeverity() == Diagnostic.OK) {
- return;
- }
- final Diagnostic rootStatus = emfValidationStatus;
- List<Diagnostic> allDiagnostics = new ArrayList<Diagnostic>();
- UMLDiagramEditorUtil.LazyElement2ViewMap element2ViewMap =
- new UMLDiagramEditorUtil.LazyElement2ViewMap(
- diagramEditPart.getDiagramView(),
- collectTargetElements(rootStatus, new HashSet<EObject>(), allDiagnostics));
- for (Iterator<Diagnostic> it = emfValidationStatus.getChildren().iterator(); it.hasNext();) {
- Diagnostic nextDiagnostic = it.next();
- List<?> data = nextDiagnostic.getData();
- if (data != null && !data.isEmpty() && data.get(0) instanceof EObject) {
- EObject element = (EObject) data.get(0);
- View view = UMLDiagramEditorUtil.findView(
- diagramEditPart, element, element2ViewMap);
- addMarker(diagramEditPart.getViewer(), target, view.eResource().getURIFragment(view),
- EMFCoreUtil.getQualifiedName(element, true),
- nextDiagnostic.getMessage(), diagnosticToStatusSeverity(nextDiagnostic.getSeverity()));
- }
- }
- }
-
- /**
- * @generated
- */
- private static void addMarker(EditPartViewer viewer, IFile
- target, String elementId, String location, String message, int statusSeverity) {
- if (target == null) {
- return;
- }
- UMLMarkerNavigationProvider.addMarker(
- target, elementId, location, message, statusSeverity);
- }
-
- /**
- * @generated
- */
- private static int diagnosticToStatusSeverity(int diagnosticSeverity) {
- if (diagnosticSeverity == Diagnostic.OK) {
- return IStatus.OK;
- } else if (diagnosticSeverity == Diagnostic.INFO) {
- return IStatus.INFO;
- } else if (diagnosticSeverity == Diagnostic.WARNING) {
- return IStatus.WARNING;
- } else if (diagnosticSeverity == Diagnostic.ERROR
- || diagnosticSeverity == Diagnostic.CANCEL) {
- return IStatus.ERROR;
- }
- return IStatus.INFO;
- }
-
- /**
- * @generated
- */
- private static Set<EObject> collectTargetElements(IStatus status, Set<EObject> targetElementCollector, List<IConstraintStatus> allConstraintStatuses) {
- if (status instanceof IConstraintStatus) {
- targetElementCollector.add(((IConstraintStatus) status).getTarget());
- allConstraintStatuses.add((IConstraintStatus) status);
- }
- if (status.isMultiStatus()) {
- IStatus[] children = status.getChildren();
- for (int i = 0; i < children.length; i++) {
- collectTargetElements(children[i], targetElementCollector, allConstraintStatuses);
- }
- }
- return targetElementCollector;
- }
-
- /**
- * @generated
- */
- private static Set<EObject> collectTargetElements(Diagnostic diagnostic, Set<EObject> targetElementCollector, List<Diagnostic> allDiagnostics) {
- List<?> data = diagnostic.getData();
- EObject target = null;
- if (data != null && !data.isEmpty() && data.get(0) instanceof EObject) {
- target = (EObject) data.get(0);
- targetElementCollector.add(target);
- allDiagnostics.add(diagnostic);
- }
- if (diagnostic.getChildren() != null && !diagnostic.getChildren().isEmpty()) {
- for (Iterator<Diagnostic> it = diagnostic.getChildren().iterator(); it.hasNext();) {
- collectTargetElements(it.next(),
- targetElementCollector, allDiagnostics);
- }
- }
- return targetElementCollector;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.part;
+
+import java.lang.reflect.InvocationTargetException;
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.emf.common.util.Diagnostic;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.util.Diagnostician;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.emf.transaction.util.TransactionUtil;
+import org.eclipse.emf.validation.model.EvaluationMode;
+import org.eclipse.emf.validation.model.IConstraintStatus;
+import org.eclipse.emf.validation.service.IBatchValidator;
+import org.eclipse.emf.validation.service.ModelValidationService;
+import org.eclipse.emf.workspace.util.WorkspaceSynchronizer;
+import org.eclipse.gef.EditPartViewer;
+import org.eclipse.gmf.runtime.diagram.ui.OffscreenEditPartFactory;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart;
+import org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.operation.IRunnableWithProgress;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLMarkerNavigationProvider;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLValidationProvider;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation;
+
+/**
+ * @generated
+ */
+public class ValidateAction extends Action {
+
+ /**
+ * @generated
+ */
+ private IWorkbenchPage page;
+
+ /**
+ * @generated
+ */
+ public ValidateAction(IWorkbenchPage page) {
+ setText(Messages.ValidateActionMessage);
+ this.page = page;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public void run() {
+ IWorkbenchPart workbenchPart = page.getActivePart();
+ if (workbenchPart instanceof IDiagramWorkbenchPart) {
+ final IDiagramWorkbenchPart part = (IDiagramWorkbenchPart) workbenchPart;
+ try {
+ new WorkspaceModifyDelegatingOperation(
+ new IRunnableWithProgress() {
+
+ @Override
+ public void run(IProgressMonitor monitor)
+ throws InterruptedException, InvocationTargetException {
+ runValidation(part.getDiagramEditPart(), part.getDiagram());
+ }
+ })
+ .run(new NullProgressMonitor());
+ } catch (Exception e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Validation action failed", e); //$NON-NLS-1$
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public static void runValidation(View view) {
+ try {
+ if (UMLDiagramEditorUtil.openDiagram(view.eResource())) {
+ IEditorPart editorPart = PlatformUI.getWorkbench()
+ .getActiveWorkbenchWindow().getActivePage().getActiveEditor();
+ if (editorPart instanceof IDiagramWorkbenchPart) {
+ runValidation(((IDiagramWorkbenchPart) editorPart).getDiagramEditPart(), view);
+ } else {
+ runNonUIValidation(view);
+ }
+ }
+ } catch (Exception e) {
+ UMLDiagramEditorPlugin.getInstance().logError(
+ "Validation action failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public static void runNonUIValidation(View view) {
+ Shell shell = Display.getCurrent().getActiveShell();
+ if (shell == null) {
+ shell = new Shell();
+ }
+
+ DiagramEditPart diagramEditPart = OffscreenEditPartFactory.getInstance().createDiagramEditPart(
+ view.getDiagram(), shell);
+ runValidation(diagramEditPart, view);
+ }
+
+ /**
+ * @generated
+ */
+ public static void runValidation(DiagramEditPart diagramEditPart, View view) {
+ final DiagramEditPart fpart = diagramEditPart;
+ final View fview = view;
+ TransactionalEditingDomain txDomain = TransactionUtil.getEditingDomain(view);
+ UMLValidationProvider.runWithConstraints(txDomain, new Runnable() {
+
+ @Override
+ public void run() {
+ validate(fpart, fview);
+ }
+ });
+ }
+
+ /**
+ * @generated
+ */
+ private static Diagnostic runEMFValidator(View target) {
+ if (target.isSetElement() && target.getElement() != null) {
+ return new Diagnostician() {
+
+ @Override
+ public String getObjectLabel(EObject eObject) {
+ return EMFCoreUtil.getQualifiedName(eObject, true);
+ }
+ }.validate(target.getElement());
+ }
+ return Diagnostic.OK_INSTANCE;
+ }
+
+ /**
+ * @generated
+ */
+ private static void validate(DiagramEditPart diagramEditPart, View view) {
+ IFile target = view.eResource() != null ? WorkspaceSynchronizer.getFile(view.eResource()) : null;
+ if (target != null) {
+ UMLMarkerNavigationProvider.deleteMarkers(target);
+ }
+ Diagnostic diagnostic = runEMFValidator(view);
+ createMarkers(target, diagnostic, diagramEditPart);
+ IBatchValidator validator = (IBatchValidator) ModelValidationService.getInstance().newValidator(
+ EvaluationMode.BATCH);
+ validator.setIncludeLiveConstraints(true);
+ if (view.isSetElement() && view.getElement() != null) {
+ IStatus status = validator.validate(view.getElement());
+ createMarkers(target, status, diagramEditPart);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static void createMarkers(IFile target, IStatus validationStatus, DiagramEditPart diagramEditPart) {
+ if (validationStatus.isOK()) {
+ return;
+ }
+ final IStatus rootStatus = validationStatus;
+ List allStatuses = new ArrayList();
+ UMLDiagramEditorUtil.LazyElement2ViewMap element2ViewMap = new UMLDiagramEditorUtil.LazyElement2ViewMap(
+ diagramEditPart.getDiagramView(),
+ collectTargetElements(rootStatus, new HashSet<EObject>(), allStatuses));
+ for (Iterator it = allStatuses.iterator(); it.hasNext();) {
+ IConstraintStatus nextStatus = (IConstraintStatus) it.next();
+ View view = UMLDiagramEditorUtil.findView(
+ diagramEditPart, nextStatus.getTarget(), element2ViewMap);
+ addMarker(diagramEditPart.getViewer(), target, view.eResource().getURIFragment(view),
+ EMFCoreUtil.getQualifiedName(nextStatus.getTarget(), true),
+ nextStatus.getMessage(), nextStatus.getSeverity());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static void createMarkers(IFile target, Diagnostic emfValidationStatus, DiagramEditPart diagramEditPart) {
+ if (emfValidationStatus.getSeverity() == Diagnostic.OK) {
+ return;
+ }
+ final Diagnostic rootStatus = emfValidationStatus;
+ List<Diagnostic> allDiagnostics = new ArrayList<Diagnostic>();
+ UMLDiagramEditorUtil.LazyElement2ViewMap element2ViewMap = new UMLDiagramEditorUtil.LazyElement2ViewMap(
+ diagramEditPart.getDiagramView(),
+ collectTargetElements(rootStatus, new HashSet<EObject>(), allDiagnostics));
+ for (Iterator<Diagnostic> it = emfValidationStatus.getChildren().iterator(); it.hasNext();) {
+ Diagnostic nextDiagnostic = it.next();
+ List<?> data = nextDiagnostic.getData();
+ if (data != null && !data.isEmpty() && data.get(0) instanceof EObject) {
+ EObject element = (EObject) data.get(0);
+ View view = UMLDiagramEditorUtil.findView(
+ diagramEditPart, element, element2ViewMap);
+ addMarker(diagramEditPart.getViewer(), target, view.eResource().getURIFragment(view),
+ EMFCoreUtil.getQualifiedName(element, true),
+ nextDiagnostic.getMessage(), diagnosticToStatusSeverity(nextDiagnostic.getSeverity()));
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private static void addMarker(EditPartViewer viewer, IFile target, String elementId, String location, String message, int statusSeverity) {
+ if (target == null) {
+ return;
+ }
+ UMLMarkerNavigationProvider.addMarker(
+ target, elementId, location, message, statusSeverity);
+ }
+
+ /**
+ * @generated
+ */
+ private static int diagnosticToStatusSeverity(int diagnosticSeverity) {
+ if (diagnosticSeverity == Diagnostic.OK) {
+ return IStatus.OK;
+ } else if (diagnosticSeverity == Diagnostic.INFO) {
+ return IStatus.INFO;
+ } else if (diagnosticSeverity == Diagnostic.WARNING) {
+ return IStatus.WARNING;
+ } else if (diagnosticSeverity == Diagnostic.ERROR
+ || diagnosticSeverity == Diagnostic.CANCEL) {
+ return IStatus.ERROR;
+ }
+ return IStatus.INFO;
+ }
+
+ /**
+ * @generated
+ */
+ private static Set<EObject> collectTargetElements(IStatus status, Set<EObject> targetElementCollector, List<IConstraintStatus> allConstraintStatuses) {
+ if (status instanceof IConstraintStatus) {
+ targetElementCollector.add(((IConstraintStatus) status).getTarget());
+ allConstraintStatuses.add((IConstraintStatus) status);
+ }
+ if (status.isMultiStatus()) {
+ IStatus[] children = status.getChildren();
+ for (int i = 0; i < children.length; i++) {
+ collectTargetElements(children[i], targetElementCollector, allConstraintStatuses);
+ }
+ }
+ return targetElementCollector;
+ }
+
+ /**
+ * @generated
+ */
+ private static Set<EObject> collectTargetElements(Diagnostic diagnostic, Set<EObject> targetElementCollector, List<Diagnostic> allDiagnostics) {
+ List<?> data = diagnostic.getData();
+ EObject target = null;
+ if (data != null && !data.isEmpty() && data.get(0) instanceof EObject) {
+ target = (EObject) data.get(0);
+ targetElementCollector.add(target);
+ allDiagnostics.add(diagnostic);
+ }
+ if (diagnostic.getChildren() != null && !diagnostic.getChildren().isEmpty()) {
+ for (Iterator<Diagnostic> it = diagnostic.getChildren().iterator(); it.hasNext();) {
+ collectTargetElements(it.next(), targetElementCollector, allDiagnostics);
+ }
+ }
+ return targetElementCollector;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramAppearancePreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramAppearancePreferencePage.java
index d3b82cebbd0..f79bd13531d 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramAppearancePreferencePage.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramAppearancePreferencePage.java
@@ -1,28 +1,28 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.preferences;
-
-import org.eclipse.gmf.runtime.diagram.ui.preferences.AppearancePreferencePage;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
-
-/**
- * @generated
- */
-public class DiagramAppearancePreferencePage extends AppearancePreferencePage {
-
- /**
- * @generated
- */
- public DiagramAppearancePreferencePage() {
- setPreferenceStore(UMLDiagramEditorPlugin.getInstance().getPreferenceStore());
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.preferences;
+
+import org.eclipse.gmf.runtime.diagram.ui.preferences.AppearancePreferencePage;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
+
+/**
+ * @generated
+ */
+public class DiagramAppearancePreferencePage extends AppearancePreferencePage {
+
+ /**
+ * @generated
+ */
+ public DiagramAppearancePreferencePage() {
+ setPreferenceStore(UMLDiagramEditorPlugin.getInstance().getPreferenceStore());
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramConnectionsPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramConnectionsPreferencePage.java
index b679bd23a6f..da68a3fc9f9 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramConnectionsPreferencePage.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramConnectionsPreferencePage.java
@@ -1,28 +1,28 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.preferences;
-
-import org.eclipse.gmf.runtime.diagram.ui.preferences.ConnectionsPreferencePage;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
-
-/**
- * @generated
- */
-public class DiagramConnectionsPreferencePage extends ConnectionsPreferencePage {
-
- /**
- * @generated
- */
- public DiagramConnectionsPreferencePage() {
- setPreferenceStore(UMLDiagramEditorPlugin.getInstance().getPreferenceStore());
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.preferences;
+
+import org.eclipse.gmf.runtime.diagram.ui.preferences.ConnectionsPreferencePage;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
+
+/**
+ * @generated
+ */
+public class DiagramConnectionsPreferencePage extends ConnectionsPreferencePage {
+
+ /**
+ * @generated
+ */
+ public DiagramConnectionsPreferencePage() {
+ setPreferenceStore(UMLDiagramEditorPlugin.getInstance().getPreferenceStore());
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramGeneralPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramGeneralPreferencePage.java
index 81dfb2a5727..8da82d2ab37 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramGeneralPreferencePage.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramGeneralPreferencePage.java
@@ -1,30 +1,30 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.preferences;
-
-import org.eclipse.papyrus.infra.gmfdiag.preferences.pages.DiagramPreferencePage;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
-
-/**
- * @generated
- */
-public class DiagramGeneralPreferencePage extends DiagramPreferencePage {
-
- /**
- * @generated
- */
- public DiagramGeneralPreferencePage() {
- setPreferenceStore(UMLDiagramEditorPlugin.getInstance().getPreferenceStore());
- setPreferenceKey(DeploymentDiagramEditPart.MODEL_ID);
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.preferences;
+
+import org.eclipse.papyrus.infra.gmfdiag.preferences.pages.DiagramPreferencePage;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
+
+/**
+ * @generated
+ */
+public class DiagramGeneralPreferencePage extends DiagramPreferencePage {
+
+ /**
+ * @generated
+ */
+ public DiagramGeneralPreferencePage() {
+ setPreferenceStore(UMLDiagramEditorPlugin.getInstance().getPreferenceStore());
+ setPreferenceKey(DeploymentDiagramEditPart.MODEL_ID);
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramPreferenceInitializer.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramPreferenceInitializer.java
index b049cdb617c..329ce59cb97 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramPreferenceInitializer.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramPreferenceInitializer.java
@@ -1,48 +1,48 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.preferences;
-
-import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
-import org.eclipse.gmf.runtime.diagram.ui.preferences.AppearancePreferencePage;
-import org.eclipse.gmf.runtime.diagram.ui.preferences.ConnectionsPreferencePage;
-import org.eclipse.gmf.runtime.diagram.ui.preferences.DiagramsPreferencePage;
-import org.eclipse.gmf.runtime.diagram.ui.preferences.PrintingPreferencePage;
-import org.eclipse.gmf.runtime.diagram.ui.preferences.RulerGridPreferencePage;
-import org.eclipse.jface.preference.IPreferenceStore;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
-
-/**
- * @generated
- */
-public class DiagramPreferenceInitializer extends AbstractPreferenceInitializer {
-
- /**
- * @generated
- */
- @Override
- public void initializeDefaultPreferences() {
- IPreferenceStore store = getPreferenceStore();
- DiagramsPreferencePage.initDefaults(store);
- AppearancePreferencePage.initDefaults(store);
- ConnectionsPreferencePage.initDefaults(store);
- PrintingPreferencePage.initDefaults(store);
- RulerGridPreferencePage.initDefaults(store);
-
- }
-
- /**
- * @generated
- */
- protected IPreferenceStore getPreferenceStore() {
- return UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.preferences;
+
+import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
+import org.eclipse.gmf.runtime.diagram.ui.preferences.AppearancePreferencePage;
+import org.eclipse.gmf.runtime.diagram.ui.preferences.ConnectionsPreferencePage;
+import org.eclipse.gmf.runtime.diagram.ui.preferences.DiagramsPreferencePage;
+import org.eclipse.gmf.runtime.diagram.ui.preferences.PrintingPreferencePage;
+import org.eclipse.gmf.runtime.diagram.ui.preferences.RulerGridPreferencePage;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
+
+/**
+ * @generated
+ */
+public class DiagramPreferenceInitializer extends AbstractPreferenceInitializer {
+
+ /**
+ * @generated
+ */
+ @Override
+ public void initializeDefaultPreferences() {
+ IPreferenceStore store = getPreferenceStore();
+ DiagramGeneralPreferencePage.initDefaults(store);
+ DiagramAppearancePreferencePage.initDefaults(store);
+ DiagramConnectionsPreferencePage.initDefaults(store);
+ DiagramPrintingPreferencePage.initDefaults(store);
+ DiagramRulersAndGridPreferencePage.initDefaults(store);
+
+ }
+
+ /**
+ * @generated
+ */
+ protected IPreferenceStore getPreferenceStore() {
+ return UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramPrintingPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramPrintingPreferencePage.java
index be29adbe51d..77315572c18 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramPrintingPreferencePage.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramPrintingPreferencePage.java
@@ -1,28 +1,28 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.preferences;
-
-import org.eclipse.gmf.runtime.diagram.ui.preferences.PrintingPreferencePage;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
-
-/**
- * @generated
- */
-public class DiagramPrintingPreferencePage extends PrintingPreferencePage {
-
- /**
- * @generated
- */
- public DiagramPrintingPreferencePage() {
- setPreferenceStore(UMLDiagramEditorPlugin.getInstance().getPreferenceStore());
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.preferences;
+
+import org.eclipse.gmf.runtime.diagram.ui.preferences.PrintingPreferencePage;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
+
+/**
+ * @generated
+ */
+public class DiagramPrintingPreferencePage extends PrintingPreferencePage {
+
+ /**
+ * @generated
+ */
+ public DiagramPrintingPreferencePage() {
+ setPreferenceStore(UMLDiagramEditorPlugin.getInstance().getPreferenceStore());
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramRulersAndGridPreferencePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramRulersAndGridPreferencePage.java
index ff9e811bd7e..bcdae83c296 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramRulersAndGridPreferencePage.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/preferences/DiagramRulersAndGridPreferencePage.java
@@ -1,28 +1,28 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.preferences;
-
-import org.eclipse.gmf.runtime.diagram.ui.preferences.RulerGridPreferencePage;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
-
-/**
- * @generated
- */
-public class DiagramRulersAndGridPreferencePage extends RulerGridPreferencePage {
-
- /**
- * @generated
- */
- public DiagramRulersAndGridPreferencePage() {
- setPreferenceStore(UMLDiagramEditorPlugin.getInstance().getPreferenceStore());
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.preferences;
+
+import org.eclipse.gmf.runtime.diagram.ui.preferences.RulerGridPreferencePage;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
+
+/**
+ * @generated
+ */
+public class DiagramRulersAndGridPreferencePage extends RulerGridPreferencePage {
+
+ /**
+ * @generated
+ */
+ public DiagramRulersAndGridPreferencePage() {
+ setPreferenceStore(UMLDiagramEditorPlugin.getInstance().getPreferenceStore());
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/ElementInitializers.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/ElementInitializers.java
index 8a266550d72..5673f61c8aa 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/ElementInitializers.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/ElementInitializers.java
@@ -1,685 +1,654 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.providers;
-
-import org.eclipse.papyrus.uml.diagram.deployment.expressions.UMLOCLFactory;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
-import org.eclipse.papyrus.uml.tools.utils.NamedElementUtil;
-import org.eclipse.uml2.uml.Artifact;
-import org.eclipse.uml2.uml.Comment;
-import org.eclipse.uml2.uml.Constraint;
-import org.eclipse.uml2.uml.Dependency;
-import org.eclipse.uml2.uml.Deployment;
-import org.eclipse.uml2.uml.Device;
-import org.eclipse.uml2.uml.ExecutionEnvironment;
-import org.eclipse.uml2.uml.LiteralString;
-import org.eclipse.uml2.uml.Manifestation;
-import org.eclipse.uml2.uml.Model;
-import org.eclipse.uml2.uml.Node;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-import org.eclipse.uml2.uml.ValueSpecification;
-
-/**
- * @generated
- */
-public class ElementInitializers {
-
- protected ElementInitializers() {
- // use #getInstance to access cached instance
- }
-
- /**
- * @generated
- */
- public void init_Model_2010(Model instance) {
- try {
- Object value_0 = name_Model_2010(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Package_2009(Package instance) {
- try {
- Object value_0 = name_Package_2009(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Constraint_2005(Constraint instance) {
- try {
- Object value_0 = name_Constraint_2005(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- Object value_1 = specification_Constraint_2005(instance);
- if (value_1 != null) {
- instance.setSpecification(
- (ValueSpecification) value_1
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Comment_2001(Comment instance) {
- try {
- Object value_0 = body_Comment_2001(instance);
- if (value_0 != null) {
- instance.setBody(
- (String) value_0
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_ExecutionEnvironment_2002(ExecutionEnvironment instance) {
- try {
- Object value_0 = name_ExecutionEnvironment_2002(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Device_2003(Device instance) {
- try {
- Object value_0 = name_Device_2003(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Artifact_2006(Artifact instance) {
- try {
- Object value_0 = name_Artifact_2006(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- Object value_1 = UMLOCLFactory.getExpression(0, UMLPackage.eINSTANCE.getArtifact(), null).evaluate(instance);
- if (value_1 != null) {
- instance.setFileName(
- (String) value_1
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Node_2008(Node instance) {
- try {
- Object value_0 = name_Node_2008(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Model_49(Model instance) {
- try {
- Object value_0 = name_Model_49(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Package_36(Package instance) {
- try {
- Object value_0 = name_Package_36(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Device_16(Device instance) {
- try {
- Object value_0 = name_Device_16(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Device_44(Device instance) {
- try {
- Object value_0 = name_Device_44(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_ExecutionEnvironment_21(ExecutionEnvironment instance) {
- try {
- Object value_0 = name_ExecutionEnvironment_21(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_ExecutionEnvironment_46(ExecutionEnvironment instance) {
- try {
- Object value_0 = name_ExecutionEnvironment_46(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Node_23(Node instance) {
- try {
- Object value_0 = name_Node_23(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Node_42(Node instance) {
- try {
- Object value_0 = name_Node_42(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Artifact_25(Artifact instance) {
- try {
- Object value_0 = name_Artifact_25(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- Object value_1 = UMLOCLFactory.getExpression(0, UMLPackage.eINSTANCE.getArtifact(), null).evaluate(instance);
- if (value_1 != null) {
- instance.setFileName(
- (String) value_1
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Artifact_28(Artifact instance) {
- try {
- Object value_0 = name_Artifact_28(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- Object value_1 = UMLOCLFactory.getExpression(0, UMLPackage.eINSTANCE.getArtifact(), null).evaluate(instance);
- if (value_1 != null) {
- instance.setFileName(
- (String) value_1
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Artifact_40(Artifact instance) {
- try {
- Object value_0 = name_Artifact_40(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- Object value_1 = UMLOCLFactory.getExpression(0, UMLPackage.eINSTANCE.getArtifact(), null).evaluate(instance);
- if (value_1 != null) {
- instance.setFileName(
- (String) value_1
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Comment_54(Comment instance) {
- try {
- Object value_0 = body_Comment_54(instance);
- if (value_0 != null) {
- instance.setBody(
- (String) value_0
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Constraint_56(Constraint instance) {
- try {
- Object value_0 = name_Constraint_56(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- Object value_1 = specification_Constraint_56(instance);
- if (value_1 != null) {
- instance.setSpecification(
- (ValueSpecification) value_1
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Deployment_4001(Deployment instance) {
- try {
- Object value_0 = name_Deployment_4001(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Manifestation_4002(Manifestation instance) {
- try {
- Object value_0 = name_Manifestation_4002(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Dependency_4004(Dependency instance) {
- try {
- Object value_0 = name_Dependency_4004(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public void init_Dependency_4010(Dependency instance) {
- try {
- Object value_0 = name_Dependency_4010(instance);
- if (value_0 != null) {
- instance.setName(
- (String) value_0
- );
- }
- } catch (RuntimeException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- private String name_Model_2010(Model it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String name_Package_2009(Package it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String name_Constraint_2005(Constraint it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private ValueSpecification specification_Constraint_2005(Constraint it) {
- // Constraint specification init
- LiteralString value = UMLFactory.eINSTANCE.createLiteralString();
- value.setValue("");
- return value;
- }
-
- /**
- * @generated
- */
- private String body_Comment_2001(Comment it) {
- // Comment body init
- return "";
- }
-
- /**
- * @generated
- */
- private String name_ExecutionEnvironment_2002(ExecutionEnvironment it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String name_Device_2003(Device it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String name_Artifact_2006(Artifact it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String name_Node_2008(Node it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String name_Model_49(Model it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String name_Package_36(Package it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String name_Device_16(Device it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String name_Device_44(Device it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String name_ExecutionEnvironment_21(ExecutionEnvironment it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String name_ExecutionEnvironment_46(ExecutionEnvironment it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String name_Node_23(Node it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String name_Node_42(Node it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String name_Artifact_25(Artifact it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String name_Artifact_28(Artifact it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String name_Artifact_40(Artifact it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String body_Comment_54(Comment it) {
- // Comment body init
- return "";
- }
-
- /**
- * @generated
- */
- private String name_Constraint_56(Constraint it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private ValueSpecification specification_Constraint_56(Constraint it) {
- // Constraint specification init
- LiteralString value = UMLFactory.eINSTANCE.createLiteralString();
- value.setValue("");
- return value;
- }
-
- /**
- * @generated
- */
- private String name_Deployment_4001(Deployment it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String name_Manifestation_4002(Manifestation it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String name_Dependency_4004(Dependency it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- private String name_Dependency_4010(Dependency it) {
- return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
- }
-
- /**
- * @generated
- */
- public static ElementInitializers getInstance() {
- ElementInitializers cached = UMLDiagramEditorPlugin.getInstance().getElementInitializers();
- if (cached == null) {
- UMLDiagramEditorPlugin.getInstance().setElementInitializers(cached = new ElementInitializers());
- }
- return cached;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.providers;
+
+import org.eclipse.papyrus.uml.diagram.deployment.expressions.UMLOCLFactory;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.uml.tools.utils.NamedElementUtil;
+import org.eclipse.uml2.uml.Artifact;
+import org.eclipse.uml2.uml.Comment;
+import org.eclipse.uml2.uml.Constraint;
+import org.eclipse.uml2.uml.Dependency;
+import org.eclipse.uml2.uml.Deployment;
+import org.eclipse.uml2.uml.Device;
+import org.eclipse.uml2.uml.ExecutionEnvironment;
+import org.eclipse.uml2.uml.LiteralString;
+import org.eclipse.uml2.uml.Manifestation;
+import org.eclipse.uml2.uml.Model;
+import org.eclipse.uml2.uml.Node;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+import org.eclipse.uml2.uml.UMLPackage;
+import org.eclipse.uml2.uml.ValueSpecification;
+
+/**
+ * @generated
+ */
+public class ElementInitializers {
+
+ protected ElementInitializers() {
+ // use #getInstance to access cached instance
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Model_2010(Model instance) {
+ try {
+ Object value_0 = name_Model_2010(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Package_2009(Package instance) {
+ try {
+ Object value_0 = name_Package_2009(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Constraint_2005(Constraint instance) {
+ try {
+ Object value_0 = name_Constraint_2005(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ Object value_1 = specification_Constraint_2005(instance);
+ if (value_1 != null) {
+ instance.setSpecification(
+ (ValueSpecification) value_1);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Comment_2001(Comment instance) {
+ try {
+ Object value_0 = body_Comment_2001(instance);
+ if (value_0 != null) {
+ instance.setBody(
+ (String) value_0);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_ExecutionEnvironment_2002(ExecutionEnvironment instance) {
+ try {
+ Object value_0 = name_ExecutionEnvironment_2002(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Device_2003(Device instance) {
+ try {
+ Object value_0 = name_Device_2003(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Artifact_2006(Artifact instance) {
+ try {
+ Object value_0 = name_Artifact_2006(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ Object value_1 = UMLOCLFactory.getExpression(0, UMLPackage.eINSTANCE.getArtifact(), null).evaluate(instance);
+ if (value_1 != null) {
+ instance.setFileName(
+ (String) value_1);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Node_2008(Node instance) {
+ try {
+ Object value_0 = name_Node_2008(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Model_49(Model instance) {
+ try {
+ Object value_0 = name_Model_49(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Package_36(Package instance) {
+ try {
+ Object value_0 = name_Package_36(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Device_16(Device instance) {
+ try {
+ Object value_0 = name_Device_16(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Device_44(Device instance) {
+ try {
+ Object value_0 = name_Device_44(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_ExecutionEnvironment_21(ExecutionEnvironment instance) {
+ try {
+ Object value_0 = name_ExecutionEnvironment_21(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_ExecutionEnvironment_46(ExecutionEnvironment instance) {
+ try {
+ Object value_0 = name_ExecutionEnvironment_46(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Node_23(Node instance) {
+ try {
+ Object value_0 = name_Node_23(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Node_42(Node instance) {
+ try {
+ Object value_0 = name_Node_42(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Artifact_25(Artifact instance) {
+ try {
+ Object value_0 = name_Artifact_25(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ Object value_1 = UMLOCLFactory.getExpression(0, UMLPackage.eINSTANCE.getArtifact(), null).evaluate(instance);
+ if (value_1 != null) {
+ instance.setFileName(
+ (String) value_1);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Artifact_28(Artifact instance) {
+ try {
+ Object value_0 = name_Artifact_28(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ Object value_1 = UMLOCLFactory.getExpression(0, UMLPackage.eINSTANCE.getArtifact(), null).evaluate(instance);
+ if (value_1 != null) {
+ instance.setFileName(
+ (String) value_1);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Artifact_40(Artifact instance) {
+ try {
+ Object value_0 = name_Artifact_40(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ Object value_1 = UMLOCLFactory.getExpression(0, UMLPackage.eINSTANCE.getArtifact(), null).evaluate(instance);
+ if (value_1 != null) {
+ instance.setFileName(
+ (String) value_1);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Comment_54(Comment instance) {
+ try {
+ Object value_0 = body_Comment_54(instance);
+ if (value_0 != null) {
+ instance.setBody(
+ (String) value_0);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Constraint_56(Constraint instance) {
+ try {
+ Object value_0 = name_Constraint_56(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ Object value_1 = specification_Constraint_56(instance);
+ if (value_1 != null) {
+ instance.setSpecification(
+ (ValueSpecification) value_1);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Deployment_4001(Deployment instance) {
+ try {
+ Object value_0 = name_Deployment_4001(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Manifestation_4002(Manifestation instance) {
+ try {
+ Object value_0 = name_Manifestation_4002(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Dependency_4004(Dependency instance) {
+ try {
+ Object value_0 = name_Dependency_4004(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public void init_Dependency_4010(Dependency instance) {
+ try {
+ Object value_0 = name_Dependency_4010(instance);
+ if (value_0 != null) {
+ instance.setName(
+ (String) value_0);
+ }
+ } catch (RuntimeException e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Element initialization failed", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Model_2010(Model it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Package_2009(Package it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Constraint_2005(Constraint it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private ValueSpecification specification_Constraint_2005(Constraint it) {
+ // Constraint specification init
+ LiteralString value = UMLFactory.eINSTANCE.createLiteralString();
+ value.setValue("");
+ return value;
+ }
+
+ /**
+ * @generated
+ */
+ private String body_Comment_2001(Comment it) {
+ // Comment body init
+ return "";
+ }
+
+ /**
+ * @generated
+ */
+ private String name_ExecutionEnvironment_2002(ExecutionEnvironment it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Device_2003(Device it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Artifact_2006(Artifact it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Node_2008(Node it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Model_49(Model it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Package_36(Package it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Device_16(Device it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Device_44(Device it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_ExecutionEnvironment_21(ExecutionEnvironment it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_ExecutionEnvironment_46(ExecutionEnvironment it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Node_23(Node it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Node_42(Node it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Artifact_25(Artifact it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Artifact_28(Artifact it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Artifact_40(Artifact it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String body_Comment_54(Comment it) {
+ // Comment body init
+ return "";
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Constraint_56(Constraint it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private ValueSpecification specification_Constraint_56(Constraint it) {
+ // Constraint specification init
+ LiteralString value = UMLFactory.eINSTANCE.createLiteralString();
+ value.setValue("");
+ return value;
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Deployment_4001(Deployment it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Manifestation_4002(Manifestation it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Dependency_4004(Dependency it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ private String name_Dependency_4010(Dependency it) {
+ return NamedElementUtil.getDefaultNameWithIncrement(it, it.getOwner().eContents());
+ }
+
+ /**
+ * @generated
+ */
+ public static ElementInitializers getInstance() {
+ ElementInitializers cached = UMLDiagramEditorPlugin.getInstance().getElementInitializers();
+ if (cached == null) {
+ UMLDiagramEditorPlugin.getInstance().setElementInitializers(cached = new ElementInitializers());
+ }
+ return cached;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLEditPartProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLEditPartProvider.java
index 509b5380a0f..440a5c7398a 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLEditPartProvider.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLEditPartProvider.java
@@ -1,32 +1,32 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.providers;
-
-import org.eclipse.gmf.tooling.runtime.providers.DefaultEditPartProvider;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.UMLEditPartFactory;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-
-/**
- * @generated
- */
-public class UMLEditPartProvider extends DefaultEditPartProvider {
-
- /**
- * @generated
- */
- public UMLEditPartProvider() {
- super(new UMLEditPartFactory(),
- UMLVisualIDRegistry.TYPED_INSTANCE,
- DeploymentDiagramEditPart.MODEL_ID);
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.providers;
+
+import org.eclipse.gmf.tooling.runtime.providers.DefaultEditPartProvider;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.UMLEditPartFactory;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+
+/**
+ * @generated
+ */
+public class UMLEditPartProvider extends DefaultEditPartProvider {
+
+ /**
+ * @generated
+ */
+ public UMLEditPartProvider() {
+ super(new UMLEditPartFactory(),
+ UMLVisualIDRegistry.TYPED_INSTANCE,
+ DeploymentDiagramEditPart.MODEL_ID);
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLElementTypes.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLElementTypes.java
index 8901a77aa6f..41eb735d248 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLElementTypes.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLElementTypes.java
@@ -1,530 +1,556 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.providers;
-
-import java.util.HashSet;
-import java.util.IdentityHashMap;
-import java.util.Map;
-import java.util.Set;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.ENamedElement;
-import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.tooling.runtime.providers.DiagramElementTypeImages;
-import org.eclipse.gmf.tooling.runtime.providers.DiagramElementTypes;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DefaultNamedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyNodeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.LinkDescriptorEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class UMLElementTypes {
-
- /**
- * @generated
- */
- private UMLElementTypes() {
- }
-
- /**
- * @generated
- */
- private static Map<IElementType, ENamedElement> elements;
-
- /**
- * @generated
- */
- private static DiagramElementTypeImages elementTypeImages = new DiagramElementTypeImages(UMLDiagramEditorPlugin.getInstance().getItemProvidersAdapterFactory());
-
- /**
- * @generated
- */
- private static Set<IElementType> KNOWN_ELEMENT_TYPES;
-
- /**
- * @generated
- */
- public static final IElementType Package_1000 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Package_1000"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Dependency_2011 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Dependency_2011"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Model_2010 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Model_2010"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Package_2009 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Package_2009"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Constraint_2005 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Constraint_2005"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Comment_2001 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Comment_2001"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType ExecutionEnvironment_2002 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.ExecutionEnvironment_2002"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Device_2003 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Device_2003"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Artifact_2006 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Artifact_2006"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Node_2008 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Node_2008"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType NamedElement_2012 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.NamedElement_2012"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Model_49 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Model_49"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Package_36 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Package_36"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Device_16 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Device_16"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Device_44 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Device_44"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType ExecutionEnvironment_21 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.ExecutionEnvironment_21"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType ExecutionEnvironment_46 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.ExecutionEnvironment_46"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Node_23 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Node_23"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Node_42 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Node_42"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Artifact_25 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Artifact_25"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Artifact_28 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Artifact_28"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Artifact_40 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Artifact_40"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Comment_54 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Comment_54"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Constraint_56 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Constraint_56"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Link_4005 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Link_4005"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType CommentAnnotatedElement_4008 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.CommentAnnotatedElement_4006"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType ConstraintConstrainedElement_4009 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.ConstraintConstrainedElement_4007"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Deployment_4001 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Deployment_4001"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Manifestation_4002 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Manifestation_4002"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Generalization_4003 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Generalization_4003"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Dependency_4004 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Dependency_4004"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static final IElementType Dependency_4010 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Dependency_4010"); //$NON-NLS-1$
-
- /**
- * @generated
- */
- public static ImageDescriptor getImageDescriptor(ENamedElement element) {
- return elementTypeImages.getImageDescriptor(element);
- }
-
- /**
- * @generated
- */
- public static Image getImage(ENamedElement element) {
- return elementTypeImages.getImage(element);
- }
-
- /**
- * @generated
- */
- public static ImageDescriptor getImageDescriptor(IAdaptable hint) {
- return getImageDescriptor(getElement(hint));
- }
-
- /**
- * @generated
- */
- public static Image getImage(IAdaptable hint) {
- return getImage(getElement(hint));
- }
-
- /**
- * Returns 'type' of the ecore object associated with the hint.
- *
- * @generated
- */
- public static synchronized ENamedElement getElement(IAdaptable hint) {
- Object type = hint.getAdapter(IElementType.class);
- if (elements == null) {
- elements = new IdentityHashMap<IElementType, ENamedElement>();
-
- elements.put(Package_1000, UMLPackage.eINSTANCE.getPackage());
-
-
- elements.put(Dependency_2011, UMLPackage.eINSTANCE.getDependency());
-
-
- elements.put(Model_2010, UMLPackage.eINSTANCE.getModel());
-
-
- elements.put(Package_2009, UMLPackage.eINSTANCE.getPackage());
-
-
- elements.put(Constraint_2005, UMLPackage.eINSTANCE.getConstraint());
-
-
- elements.put(Comment_2001, UMLPackage.eINSTANCE.getComment());
-
-
- elements.put(ExecutionEnvironment_2002, UMLPackage.eINSTANCE.getExecutionEnvironment());
-
-
- elements.put(Device_2003, UMLPackage.eINSTANCE.getDevice());
-
-
- elements.put(Artifact_2006, UMLPackage.eINSTANCE.getArtifact());
-
-
- elements.put(Node_2008, UMLPackage.eINSTANCE.getNode());
-
-
- elements.put(NamedElement_2012, UMLPackage.eINSTANCE.getNamedElement());
-
-
- elements.put(Model_49, UMLPackage.eINSTANCE.getModel());
-
-
- elements.put(Package_36, UMLPackage.eINSTANCE.getPackage());
-
-
- elements.put(Device_16, UMLPackage.eINSTANCE.getDevice());
-
-
- elements.put(Device_44, UMLPackage.eINSTANCE.getDevice());
-
-
- elements.put(ExecutionEnvironment_21, UMLPackage.eINSTANCE.getExecutionEnvironment());
-
-
- elements.put(ExecutionEnvironment_46, UMLPackage.eINSTANCE.getExecutionEnvironment());
-
-
- elements.put(Node_23, UMLPackage.eINSTANCE.getNode());
-
-
- elements.put(Node_42, UMLPackage.eINSTANCE.getNode());
-
-
- elements.put(Artifact_25, UMLPackage.eINSTANCE.getArtifact());
-
-
- elements.put(Artifact_28, UMLPackage.eINSTANCE.getArtifact());
-
-
- elements.put(Artifact_40, UMLPackage.eINSTANCE.getArtifact());
-
-
- elements.put(Comment_54, UMLPackage.eINSTANCE.getComment());
-
-
- elements.put(Constraint_56, UMLPackage.eINSTANCE.getConstraint());
-
- elements.put(CommentAnnotatedElement_4008, UMLPackage.eINSTANCE.getComment_AnnotatedElement());
-
- elements.put(ConstraintConstrainedElement_4009, UMLPackage.eINSTANCE.getConstraint_ConstrainedElement());
-
-
- elements.put(Deployment_4001, UMLPackage.eINSTANCE.getDeployment());
-
-
- elements.put(Manifestation_4002, UMLPackage.eINSTANCE.getManifestation());
-
-
- elements.put(Generalization_4003, UMLPackage.eINSTANCE.getGeneralization());
-
-
- elements.put(Dependency_4004, UMLPackage.eINSTANCE.getDependency());
-
-
- elements.put(Dependency_4010, UMLPackage.eINSTANCE.getDependency());
- }
- return elements.get(type);
- }
-
- /**
- * @generated
- */
- private static IElementType getElementType(String id) {
- return ElementTypeRegistry.getInstance().getType(id);
- }
-
- /**
- * @generated
- */
- public static synchronized boolean isKnownElementType(IElementType elementType) {
- if (KNOWN_ELEMENT_TYPES == null) {
- KNOWN_ELEMENT_TYPES = new HashSet<IElementType>();
- KNOWN_ELEMENT_TYPES.add(Package_1000);
- KNOWN_ELEMENT_TYPES.add(Dependency_2011);
- KNOWN_ELEMENT_TYPES.add(Model_2010);
- KNOWN_ELEMENT_TYPES.add(Package_2009);
- KNOWN_ELEMENT_TYPES.add(Constraint_2005);
- KNOWN_ELEMENT_TYPES.add(Comment_2001);
- KNOWN_ELEMENT_TYPES.add(ExecutionEnvironment_2002);
- KNOWN_ELEMENT_TYPES.add(Device_2003);
- KNOWN_ELEMENT_TYPES.add(Artifact_2006);
- KNOWN_ELEMENT_TYPES.add(Node_2008);
- KNOWN_ELEMENT_TYPES.add(NamedElement_2012);
- KNOWN_ELEMENT_TYPES.add(Model_49);
- KNOWN_ELEMENT_TYPES.add(Package_36);
- KNOWN_ELEMENT_TYPES.add(Device_16);
- KNOWN_ELEMENT_TYPES.add(Device_44);
- KNOWN_ELEMENT_TYPES.add(ExecutionEnvironment_21);
- KNOWN_ELEMENT_TYPES.add(ExecutionEnvironment_46);
- KNOWN_ELEMENT_TYPES.add(Node_23);
- KNOWN_ELEMENT_TYPES.add(Node_42);
- KNOWN_ELEMENT_TYPES.add(Artifact_25);
- KNOWN_ELEMENT_TYPES.add(Artifact_28);
- KNOWN_ELEMENT_TYPES.add(Artifact_40);
- KNOWN_ELEMENT_TYPES.add(Comment_54);
- KNOWN_ELEMENT_TYPES.add(Constraint_56);
- KNOWN_ELEMENT_TYPES.add(Link_4005);
- KNOWN_ELEMENT_TYPES.add(CommentAnnotatedElement_4008);
- KNOWN_ELEMENT_TYPES.add(ConstraintConstrainedElement_4009);
- KNOWN_ELEMENT_TYPES.add(Deployment_4001);
- KNOWN_ELEMENT_TYPES.add(Manifestation_4002);
- KNOWN_ELEMENT_TYPES.add(Generalization_4003);
- KNOWN_ELEMENT_TYPES.add(Dependency_4004);
- KNOWN_ELEMENT_TYPES.add(Dependency_4010);
- }
- return KNOWN_ELEMENT_TYPES.contains(elementType);
- }
-
- /**
- * @generated
- */
- public static IElementType getElementType(int visualID) {
- switch (visualID) {
- case DeploymentDiagramEditPart.VISUAL_ID:
- return Package_1000;
- case DependencyNodeEditPart.VISUAL_ID:
- return Dependency_2011;
- case ModelEditPart.VISUAL_ID:
- return Model_2010;
- case PackageEditPart.VISUAL_ID:
- return Package_2009;
- case ConstraintEditPart.VISUAL_ID:
- return Constraint_2005;
- case CommentEditPart.VISUAL_ID:
- return Comment_2001;
- case ExecutionEnvironmentEditPart.VISUAL_ID:
- return ExecutionEnvironment_2002;
- case DeviceEditPart.VISUAL_ID:
- return Device_2003;
- case ArtifactEditPart.VISUAL_ID:
- return Artifact_2006;
- case NodeEditPart.VISUAL_ID:
- return Node_2008;
- case DefaultNamedElementEditPart.VISUAL_ID:
- return NamedElement_2012;
- case ModelEditPartCN.VISUAL_ID:
- return Model_49;
- case PackageEditPartCN.VISUAL_ID:
- return Package_36;
- case DeviceEditPartCN.VISUAL_ID:
- return Device_16;
- case NestedDeviceEditPartCN.VISUAL_ID:
- return Device_44;
- case ExecutionEnvironmentEditPartCN.VISUAL_ID:
- return ExecutionEnvironment_21;
- case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
- return ExecutionEnvironment_46;
- case NodeEditPartCN.VISUAL_ID:
- return Node_23;
- case NestedNodeEditPartCN.VISUAL_ID:
- return Node_42;
- case ArtifactEditPartCN.VISUAL_ID:
- return Artifact_25;
- case ArtifactEditPartACN.VISUAL_ID:
- return Artifact_28;
- case NestedArtifactNodeEditPartCN.VISUAL_ID:
- return Artifact_40;
- case CommentEditPartCN.VISUAL_ID:
- return Comment_54;
- case ConstraintEditPartCN.VISUAL_ID:
- return Constraint_56;
- case LinkDescriptorEditPart.VISUAL_ID:
- return Link_4005;
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return CommentAnnotatedElement_4008;
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return ConstraintConstrainedElement_4009;
- case DeploymentEditPart.VISUAL_ID:
- return Deployment_4001;
- case ManifestationEditPart.VISUAL_ID:
- return Manifestation_4002;
- case GeneralizationEditPart.VISUAL_ID:
- return Generalization_4003;
- case DependencyEditPart.VISUAL_ID:
- return Dependency_4004;
- case DependencyBranchEditPart.VISUAL_ID:
- return Dependency_4010;
- }
- return null;
- }
-
- /**
- * @generated
- */
- public static final DiagramElementTypes TYPED_INSTANCE = new DiagramElementTypes(elementTypeImages) {
-
- /**
- * @generated
- */
- @Override
- public boolean isKnownElementType(IElementType elementType) {
- return org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes.isKnownElementType(elementType);
- }
-
- /**
- * @generated
- */
- @Override
- public IElementType getElementTypeForVisualId(int visualID) {
- return org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes.getElementType(visualID);
- }
-
- /**
- * @generated
- */
- @Override
- public ENamedElement getDefiningNamedElement(IAdaptable elementTypeAdapter) {
- return org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes.getElement(elementTypeAdapter);
- }
- };
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.providers;
+
+import java.util.HashSet;
+import java.util.IdentityHashMap;
+import java.util.Map;
+import java.util.Set;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.ecore.ENamedElement;
+import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.tooling.runtime.providers.DiagramElementTypeImages;
+import org.eclipse.gmf.tooling.runtime.providers.DiagramElementTypes;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartACN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DefaultNamedElementEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyNodeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.LinkDescriptorEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNodeEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.uml2.uml.UMLPackage;
+
+/**
+ * @generated
+ */
+public class UMLElementTypes {
+
+ /**
+ * @generated
+ */
+ private UMLElementTypes() {
+ }
+
+ /**
+ * @generated
+ */
+ private static Map<IElementType, ENamedElement> elements;
+
+ /**
+ * @generated
+ */
+ private static DiagramElementTypeImages elementTypeImages = new DiagramElementTypeImages(UMLDiagramEditorPlugin.getInstance().getItemProvidersAdapterFactory());
+
+ /**
+ * @generated
+ */
+ private static Set<IElementType> KNOWN_ELEMENT_TYPES;
+
+ /**
+ * @generated
+ */
+ public static final IElementType Package_1000 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Package_1000"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Dependency_2011 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Dependency_2011"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Model_2010 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Model_2010"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Package_2009 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Package_2009"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Constraint_2005 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Constraint_2005"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Comment_2001 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Comment_2001"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType ExecutionEnvironment_2002 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.ExecutionEnvironment_2002"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Device_2003 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Device_2003"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Artifact_2006 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Artifact_2006"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Node_2008 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Node_2008"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType NamedElement_2012 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.NamedElement_2012"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Model_49 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Model_49"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Package_36 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Package_36"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Device_16 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Device_16"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Device_44 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Device_44"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType ExecutionEnvironment_21 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.ExecutionEnvironment_21"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType ExecutionEnvironment_46 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.ExecutionEnvironment_46"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Node_23 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Node_23"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Node_42 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Node_42"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Artifact_25 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Artifact_25"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Artifact_28 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Artifact_28"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Artifact_40 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Artifact_40"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Comment_54 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Comment_54"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Constraint_56 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Constraint_56"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Link_4005 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Link_4005"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType CommentAnnotatedElement_4008 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.CommentAnnotatedElement_4006"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType ConstraintConstrainedElement_4009 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.ConstraintConstrainedElement_4007"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Deployment_4001 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Deployment_4001"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Manifestation_4002 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Manifestation_4002"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Generalization_4003 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Generalization_4003"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Dependency_4004 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Dependency_4004"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static final IElementType Dependency_4010 = getElementType("org.eclipse.papyrus.uml.diagram.deployment.Dependency_4010"); //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ public static ImageDescriptor getImageDescriptor(ENamedElement element) {
+ return elementTypeImages.getImageDescriptor(element);
+ }
+
+ /**
+ * @generated
+ */
+ public static Image getImage(ENamedElement element) {
+ return elementTypeImages.getImage(element);
+ }
+
+ /**
+ * @generated
+ */
+ public static ImageDescriptor getImageDescriptor(IAdaptable hint) {
+ return getImageDescriptor(getElement(hint));
+ }
+
+ /**
+ * @generated
+ */
+ public static Image getImage(IAdaptable hint) {
+ return getImage(getElement(hint));
+ }
+
+ /**
+ * Returns 'type' of the ecore object associated with the hint.
+ *
+ * @generated
+ */
+ public static synchronized ENamedElement getElement(IAdaptable hint) {
+ Object type = hint.getAdapter(IElementType.class);
+ if (elements == null) {
+ elements = new IdentityHashMap<IElementType, ENamedElement>();
+
+ elements.put(Package_1000, UMLPackage.eINSTANCE.getPackage());
+
+
+ elements.put(Dependency_2011, UMLPackage.eINSTANCE.getDependency());
+
+
+ elements.put(Model_2010, UMLPackage.eINSTANCE.getModel());
+
+
+ elements.put(Package_2009, UMLPackage.eINSTANCE.getPackage());
+
+
+ elements.put(Constraint_2005, UMLPackage.eINSTANCE.getConstraint());
+
+
+ elements.put(Comment_2001, UMLPackage.eINSTANCE.getComment());
+
+
+ elements.put(ExecutionEnvironment_2002, UMLPackage.eINSTANCE.getExecutionEnvironment());
+
+
+ elements.put(Device_2003, UMLPackage.eINSTANCE.getDevice());
+
+
+ elements.put(Artifact_2006, UMLPackage.eINSTANCE.getArtifact());
+
+
+ elements.put(Node_2008, UMLPackage.eINSTANCE.getNode());
+
+
+ elements.put(NamedElement_2012, UMLPackage.eINSTANCE.getNamedElement());
+
+
+ elements.put(Model_49, UMLPackage.eINSTANCE.getModel());
+
+
+ elements.put(Package_36, UMLPackage.eINSTANCE.getPackage());
+
+
+ elements.put(Device_16, UMLPackage.eINSTANCE.getDevice());
+
+
+ elements.put(Device_44, UMLPackage.eINSTANCE.getDevice());
+
+
+ elements.put(ExecutionEnvironment_21, UMLPackage.eINSTANCE.getExecutionEnvironment());
+
+
+ elements.put(ExecutionEnvironment_46, UMLPackage.eINSTANCE.getExecutionEnvironment());
+
+
+ elements.put(Node_23, UMLPackage.eINSTANCE.getNode());
+
+
+ elements.put(Node_42, UMLPackage.eINSTANCE.getNode());
+
+
+ elements.put(Artifact_25, UMLPackage.eINSTANCE.getArtifact());
+
+
+ elements.put(Artifact_28, UMLPackage.eINSTANCE.getArtifact());
+
+
+ elements.put(Artifact_40, UMLPackage.eINSTANCE.getArtifact());
+
+
+ elements.put(Comment_54, UMLPackage.eINSTANCE.getComment());
+
+
+ elements.put(Constraint_56, UMLPackage.eINSTANCE.getConstraint());
+
+ elements.put(CommentAnnotatedElement_4008, UMLPackage.eINSTANCE.getComment_AnnotatedElement());
+
+ elements.put(ConstraintConstrainedElement_4009, UMLPackage.eINSTANCE.getConstraint_ConstrainedElement());
+
+
+ elements.put(Deployment_4001, UMLPackage.eINSTANCE.getDeployment());
+
+
+ elements.put(Manifestation_4002, UMLPackage.eINSTANCE.getManifestation());
+
+
+ elements.put(Generalization_4003, UMLPackage.eINSTANCE.getGeneralization());
+
+
+ elements.put(Dependency_4004, UMLPackage.eINSTANCE.getDependency());
+
+
+ elements.put(Dependency_4010, UMLPackage.eINSTANCE.getDependency());
+ }
+ return elements.get(type);
+ }
+
+ /**
+ * @generated
+ */
+ private static IElementType getElementType(String id) {
+ return ElementTypeRegistry.getInstance().getType(id);
+ }
+
+ /**
+ * @generated
+ */
+ public static synchronized boolean isKnownElementType(IElementType elementType) {
+ if (KNOWN_ELEMENT_TYPES == null) {
+ KNOWN_ELEMENT_TYPES = new HashSet<IElementType>();
+ KNOWN_ELEMENT_TYPES.add(Package_1000);
+ KNOWN_ELEMENT_TYPES.add(Dependency_2011);
+ KNOWN_ELEMENT_TYPES.add(Model_2010);
+ KNOWN_ELEMENT_TYPES.add(Package_2009);
+ KNOWN_ELEMENT_TYPES.add(Constraint_2005);
+ KNOWN_ELEMENT_TYPES.add(Comment_2001);
+ KNOWN_ELEMENT_TYPES.add(ExecutionEnvironment_2002);
+ KNOWN_ELEMENT_TYPES.add(Device_2003);
+ KNOWN_ELEMENT_TYPES.add(Artifact_2006);
+ KNOWN_ELEMENT_TYPES.add(Node_2008);
+ KNOWN_ELEMENT_TYPES.add(NamedElement_2012);
+ KNOWN_ELEMENT_TYPES.add(Model_49);
+ KNOWN_ELEMENT_TYPES.add(Package_36);
+ KNOWN_ELEMENT_TYPES.add(Device_16);
+ KNOWN_ELEMENT_TYPES.add(Device_44);
+ KNOWN_ELEMENT_TYPES.add(ExecutionEnvironment_21);
+ KNOWN_ELEMENT_TYPES.add(ExecutionEnvironment_46);
+ KNOWN_ELEMENT_TYPES.add(Node_23);
+ KNOWN_ELEMENT_TYPES.add(Node_42);
+ KNOWN_ELEMENT_TYPES.add(Artifact_25);
+ KNOWN_ELEMENT_TYPES.add(Artifact_28);
+ KNOWN_ELEMENT_TYPES.add(Artifact_40);
+ KNOWN_ELEMENT_TYPES.add(Comment_54);
+ KNOWN_ELEMENT_TYPES.add(Constraint_56);
+ KNOWN_ELEMENT_TYPES.add(Link_4005);
+ KNOWN_ELEMENT_TYPES.add(CommentAnnotatedElement_4008);
+ KNOWN_ELEMENT_TYPES.add(ConstraintConstrainedElement_4009);
+ KNOWN_ELEMENT_TYPES.add(Deployment_4001);
+ KNOWN_ELEMENT_TYPES.add(Manifestation_4002);
+ KNOWN_ELEMENT_TYPES.add(Generalization_4003);
+ KNOWN_ELEMENT_TYPES.add(Dependency_4004);
+ KNOWN_ELEMENT_TYPES.add(Dependency_4010);
+ }
+
+ boolean result = KNOWN_ELEMENT_TYPES.contains(elementType);
+
+ if (!result) {
+ IElementType[] supertypes = elementType.getAllSuperTypes();
+ for (int i = 0; !result && (i < supertypes.length); i++) {
+ result = KNOWN_ELEMENT_TYPES.contains(supertypes[i]);
+ }
+ }
+
+ return result;
+ }
+
+ /**
+ * @generated
+ */
+ public static IElementType getElementType(int visualID) {
+ switch (visualID) {
+ case DeploymentDiagramEditPart.VISUAL_ID:
+ return Package_1000;
+ case DependencyNodeEditPart.VISUAL_ID:
+ return Dependency_2011;
+ case ModelEditPart.VISUAL_ID:
+ return Model_2010;
+ case PackageEditPart.VISUAL_ID:
+ return Package_2009;
+ case ConstraintEditPart.VISUAL_ID:
+ return Constraint_2005;
+ case CommentEditPart.VISUAL_ID:
+ return Comment_2001;
+ case ExecutionEnvironmentEditPart.VISUAL_ID:
+ return ExecutionEnvironment_2002;
+ case DeviceEditPart.VISUAL_ID:
+ return Device_2003;
+ case ArtifactEditPart.VISUAL_ID:
+ return Artifact_2006;
+ case NodeEditPart.VISUAL_ID:
+ return Node_2008;
+ case DefaultNamedElementEditPart.VISUAL_ID:
+ return NamedElement_2012;
+ case ModelEditPartCN.VISUAL_ID:
+ return Model_49;
+ case PackageEditPartCN.VISUAL_ID:
+ return Package_36;
+ case DeviceEditPartCN.VISUAL_ID:
+ return Device_16;
+ case NestedDeviceEditPartCN.VISUAL_ID:
+ return Device_44;
+ case ExecutionEnvironmentEditPartCN.VISUAL_ID:
+ return ExecutionEnvironment_21;
+ case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
+ return ExecutionEnvironment_46;
+ case NodeEditPartCN.VISUAL_ID:
+ return Node_23;
+ case NestedNodeEditPartCN.VISUAL_ID:
+ return Node_42;
+ case ArtifactEditPartCN.VISUAL_ID:
+ return Artifact_25;
+ case ArtifactEditPartACN.VISUAL_ID:
+ return Artifact_28;
+ case NestedArtifactNodeEditPartCN.VISUAL_ID:
+ return Artifact_40;
+ case CommentEditPartCN.VISUAL_ID:
+ return Comment_54;
+ case ConstraintEditPartCN.VISUAL_ID:
+ return Constraint_56;
+ case LinkDescriptorEditPart.VISUAL_ID:
+ return Link_4005;
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return CommentAnnotatedElement_4008;
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return ConstraintConstrainedElement_4009;
+ case DeploymentEditPart.VISUAL_ID:
+ return Deployment_4001;
+ case ManifestationEditPart.VISUAL_ID:
+ return Manifestation_4002;
+ case GeneralizationEditPart.VISUAL_ID:
+ return Generalization_4003;
+ case DependencyEditPart.VISUAL_ID:
+ return Dependency_4004;
+ case DependencyBranchEditPart.VISUAL_ID:
+ return Dependency_4010;
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public static final DiagramElementTypes TYPED_INSTANCE = new DiagramElementTypes(elementTypeImages) {
+
+ /**
+ * @generated
+ */
+ @Override
+ public boolean isKnownElementType(IElementType elementType) {
+ return org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes.isKnownElementType(elementType);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IElementType getElementTypeForVisualId(int visualID) {
+ return org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes.getElementType(visualID);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public ENamedElement getDefiningNamedElement(IAdaptable elementTypeAdapter) {
+ return org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes.getElement(elementTypeAdapter);
+ }
+ };
+
+ /**
+ * @generated
+ */
+ public static boolean isKindOf(IElementType subtype, IElementType supertype) {
+ boolean result = subtype == supertype;
+
+ if (!result) {
+ IElementType[] supertypes = subtype.getAllSuperTypes();
+ for (int i = 0; !result && (i < supertypes.length); i++) {
+ result = supertype == supertypes[i];
+ }
+ }
+
+ return result;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLIconProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLIconProvider.java
index 619c6651554..6b54adddbda 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLIconProvider.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLIconProvider.java
@@ -1,28 +1,28 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.providers;
-
-import org.eclipse.gmf.runtime.common.ui.services.icon.IIconProvider;
-import org.eclipse.gmf.tooling.runtime.providers.DefaultElementTypeIconProvider;
-
-/**
- * @generated
- */
-public class UMLIconProvider extends DefaultElementTypeIconProvider implements IIconProvider {
-
- /**
- * @generated
- */
- public UMLIconProvider() {
- super(UMLElementTypes.TYPED_INSTANCE);
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.providers;
+
+import org.eclipse.gmf.runtime.common.ui.services.icon.IIconProvider;
+import org.eclipse.gmf.tooling.runtime.providers.DefaultElementTypeIconProvider;
+
+/**
+ * @generated
+ */
+public class UMLIconProvider extends DefaultElementTypeIconProvider implements IIconProvider {
+
+ /**
+ * @generated
+ */
+ public UMLIconProvider() {
+ super(UMLElementTypes.TYPED_INSTANCE);
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLMarkerNavigationProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLMarkerNavigationProvider.java
index c5176527e08..e81a751248b 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLMarkerNavigationProvider.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLMarkerNavigationProvider.java
@@ -1,96 +1,96 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.providers;
-
-import java.util.Arrays;
-import java.util.Map;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor;
-import org.eclipse.gmf.runtime.emf.ui.providers.marker.AbstractModelMarkerNavigationProvider;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorUtil;
-
-/**
- * @generated
- */
-public class UMLMarkerNavigationProvider extends AbstractModelMarkerNavigationProvider {
-
- /**
- * @generated
- */
- public static final String MARKER_TYPE = UMLDiagramEditorPlugin.ID + ".diagnostic"; //$NON-NLS-1$
-
- /**
- * @generated
- */
- @Override
- protected void doGotoMarker(IMarker marker) {
- String elementId = marker.getAttribute(org.eclipse.gmf.runtime.common.core.resources.IMarker.ELEMENT_ID, null);
- if (elementId == null || !(getEditor() instanceof DiagramEditor)) {
- return;
- }
- DiagramEditor editor =
- (DiagramEditor) getEditor();
- Map<?, ?> editPartRegistry = editor.getDiagramGraphicalViewer().getEditPartRegistry();
- EObject targetView = editor.getDiagram().eResource().getEObject(elementId);
- if (targetView == null) {
- return;
- }
- EditPart targetEditPart = (EditPart) editPartRegistry.get(targetView);
- if (targetEditPart != null) {
- UMLDiagramEditorUtil.selectElementsInDiagram(
- editor, Arrays.asList(new EditPart[] { targetEditPart }));
- }
- }
-
- /**
- * @generated
- */
- public static void deleteMarkers(IResource resource) {
- try {
- resource.deleteMarkers(MARKER_TYPE, true, IResource.DEPTH_ZERO);
- } catch (CoreException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Failed to delete validation markers", e); //$NON-NLS-1$
- }
- }
-
- /**
- * @generated
- */
- public static IMarker addMarker(IFile file, String elementId, String location, String message, int statusSeverity) {
- IMarker marker = null;
- try {
- marker = file.createMarker(MARKER_TYPE);
- marker.setAttribute(IMarker.MESSAGE, message);
- marker.setAttribute(IMarker.LOCATION, location);
- marker.setAttribute(org.eclipse.gmf.runtime.common.core.resources.IMarker.ELEMENT_ID, elementId);
- int markerSeverity = IMarker.SEVERITY_INFO;
- if (statusSeverity == IStatus.WARNING) {
- markerSeverity = IMarker.SEVERITY_WARNING;
- } else if (statusSeverity == IStatus.ERROR ||
- statusSeverity == IStatus.CANCEL) {
- markerSeverity = IMarker.SEVERITY_ERROR;
- }
- marker.setAttribute(IMarker.SEVERITY, markerSeverity);
- } catch (CoreException e) {
- UMLDiagramEditorPlugin.getInstance().logError("Failed to create validation marker", e); //$NON-NLS-1$
- }
- return marker;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.providers;
+
+import java.util.Arrays;
+import java.util.Map;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IMarker;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor;
+import org.eclipse.gmf.runtime.emf.ui.providers.marker.AbstractModelMarkerNavigationProvider;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorUtil;
+
+/**
+ * @generated
+ */
+public class UMLMarkerNavigationProvider extends AbstractModelMarkerNavigationProvider {
+
+ /**
+ * @generated
+ */
+ public static final String MARKER_TYPE = UMLDiagramEditorPlugin.ID + ".diagnostic"; //$NON-NLS-1$
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void doGotoMarker(IMarker marker) {
+ String elementId = marker.getAttribute(org.eclipse.gmf.runtime.common.core.resources.IMarker.ELEMENT_ID, null);
+ if (elementId == null || !(getEditor() instanceof DiagramEditor)) {
+ return;
+ }
+ DiagramEditor editor = (DiagramEditor) getEditor();
+ Map<?, ?> editPartRegistry = editor.getDiagramGraphicalViewer().getEditPartRegistry();
+ EObject targetView = editor.getDiagram().eResource().getEObject(elementId);
+ if (targetView == null) {
+ return;
+ }
+ EditPart targetEditPart = (EditPart) editPartRegistry.get(targetView);
+ if (targetEditPart != null) {
+ UMLDiagramEditorUtil.selectElementsInDiagram(
+ editor, Arrays.asList(new EditPart[] { targetEditPart }));
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public static void deleteMarkers(IResource resource) {
+ try {
+ resource.deleteMarkers(MARKER_TYPE, true, IResource.DEPTH_ZERO);
+ } catch (CoreException e) {
+ UMLDiagramEditorPlugin.getInstance().logError(
+ "Failed to delete validation markers", e); //$NON-NLS-1$
+ }
+ }
+
+ /**
+ * @generated
+ */
+ public static IMarker addMarker(IFile file, String elementId, String location, String message, int statusSeverity) {
+ IMarker marker = null;
+ try {
+ marker = file.createMarker(MARKER_TYPE);
+ marker.setAttribute(IMarker.MESSAGE, message);
+ marker.setAttribute(IMarker.LOCATION, location);
+ marker.setAttribute(org.eclipse.gmf.runtime.common.core.resources.IMarker.ELEMENT_ID, elementId);
+ int markerSeverity = IMarker.SEVERITY_INFO;
+ if (statusSeverity == IStatus.WARNING) {
+ markerSeverity = IMarker.SEVERITY_WARNING;
+ } else if (statusSeverity == IStatus.ERROR || statusSeverity == IStatus.CANCEL) {
+ markerSeverity = IMarker.SEVERITY_ERROR;
+ }
+ marker.setAttribute(IMarker.SEVERITY, markerSeverity);
+ } catch (CoreException e) {
+ UMLDiagramEditorPlugin.getInstance().logError(
+ "Failed to create validation marker", e); //$NON-NLS-1$
+ }
+ return marker;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLParserProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLParserProvider.java
index cddc71c33a5..5e2e76efa91 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLParserProvider.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLParserProvider.java
@@ -1,888 +1,859 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.providers;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.common.core.service.AbstractProvider;
-import org.eclipse.gmf.runtime.common.core.service.IOperation;
-import org.eclipse.gmf.runtime.common.ui.services.parser.GetParserOperation;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
-import org.eclipse.gmf.runtime.common.ui.services.parser.IParserProvider;
-import org.eclipse.gmf.runtime.common.ui.services.parser.ParserService;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.ui.services.parser.ParserHintAdapter;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.common.parser.CommentParser;
-import org.eclipse.papyrus.uml.diagram.common.parser.ConstraintParser;
-import org.eclipse.papyrus.uml.diagram.common.parser.stereotype.AppliedStereotypeParser;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentBodyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentBodyEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintSpecificationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintSpecificationEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DefaultNamedElementNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyAppliedStereotypeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentAppliedStereotypeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationAppliedStereotypeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationAppliedStereotypeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.MultiDependencyLabelEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.parsers.MessageFormatParser;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class UMLParserProvider extends AbstractProvider implements IParserProvider {
-
- /**
- * @generated
- */
- private IParser dependencyName_7Parser;
-
- /**
- * @generated
- */
- private IParser getDependencyName_7Parser() {
- if (dependencyName_7Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- dependencyName_7Parser = parser;
- }
- return dependencyName_7Parser;
- }
-
- /**
- * @generated
- */
- private IParser modelName_48Parser;
-
- /**
- * @generated
- */
- private IParser getModelName_48Parser() {
- if (modelName_48Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- modelName_48Parser = parser;
- }
- return modelName_48Parser;
- }
-
- /**
- * @generated
- */
- private IParser packageName_35Parser;
-
- /**
- * @generated
- */
- private IParser getPackageName_35Parser() {
- if (packageName_35Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- packageName_35Parser = parser;
- }
- return packageName_35Parser;
- }
-
- /**
- * @generated
- */
- private IParser constraintName_2Parser;
-
- /**
- * @generated
- */
- private IParser getConstraintName_2Parser() {
- if (constraintName_2Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- constraintName_2Parser = parser;
- }
- return constraintName_2Parser;
- }
-
- /**
- * @generated
- */
- private ConstraintParser constraintSpecification_3Parser;
-
- /**
- * @generated
- */
- private IParser getConstraintSpecification_3Parser() {
- if (constraintSpecification_3Parser == null) {
- constraintSpecification_3Parser = new ConstraintParser();
- }
- return constraintSpecification_3Parser;
- }
-
- /**
- * @generated
- */
- private CommentParser commentBody_1Parser;
-
- /**
- * @generated
- */
- private IParser getCommentBody_1Parser() {
- if (commentBody_1Parser == null) {
- commentBody_1Parser = new CommentParser();
- }
- return commentBody_1Parser;
- }
-
- /**
- * @generated
- */
- private IParser executionEnvironmentName_5Parser;
-
- /**
- * @generated
- */
- private IParser getExecutionEnvironmentName_5Parser() {
- if (executionEnvironmentName_5Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- executionEnvironmentName_5Parser = parser;
- }
- return executionEnvironmentName_5Parser;
- }
-
- /**
- * @generated
- */
- private IParser deviceName_6Parser;
-
- /**
- * @generated
- */
- private IParser getDeviceName_6Parser() {
- if (deviceName_6Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- deviceName_6Parser = parser;
- }
- return deviceName_6Parser;
- }
-
- /**
- * @generated
- */
- private IParser artifactName_8Parser;
-
- /**
- * @generated
- */
- private IParser getArtifactName_8Parser() {
- if (artifactName_8Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- artifactName_8Parser = parser;
- }
- return artifactName_8Parser;
- }
-
- /**
- * @generated
- */
- private IParser artifactName_61Parser;
-
- /**
- * @generated
- */
- private IParser getArtifactName_61Parser() {
- if (artifactName_61Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- artifactName_61Parser = parser;
- }
- return artifactName_61Parser;
- }
-
- /**
- * @generated
- */
- private IParser nodeName_9Parser;
-
- /**
- * @generated
- */
- private IParser getNodeName_9Parser() {
- if (nodeName_9Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- nodeName_9Parser = parser;
- }
- return nodeName_9Parser;
- }
-
- /**
- * @generated
- */
- private IParser namedElementName_53Parser;
-
- /**
- * @generated
- */
- private IParser getNamedElementName_53Parser() {
- if (namedElementName_53Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- namedElementName_53Parser = parser;
- }
- return namedElementName_53Parser;
- }
-
- /**
- * @generated
- */
- private IParser modelName_50Parser;
-
- /**
- * @generated
- */
- private IParser getModelName_50Parser() {
- if (modelName_50Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- modelName_50Parser = parser;
- }
- return modelName_50Parser;
- }
-
- /**
- * @generated
- */
- private IParser packageName_37Parser;
-
- /**
- * @generated
- */
- private IParser getPackageName_37Parser() {
- if (packageName_37Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- packageName_37Parser = parser;
- }
- return packageName_37Parser;
- }
-
- /**
- * @generated
- */
- private IParser deviceName_20Parser;
-
- /**
- * @generated
- */
- private IParser getDeviceName_20Parser() {
- if (deviceName_20Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- deviceName_20Parser = parser;
- }
- return deviceName_20Parser;
- }
-
- /**
- * @generated
- */
- private IParser deviceName_45Parser;
-
- /**
- * @generated
- */
- private IParser getDeviceName_45Parser() {
- if (deviceName_45Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- deviceName_45Parser = parser;
- }
- return deviceName_45Parser;
- }
-
- /**
- * @generated
- */
- private IParser executionEnvironmentName_22Parser;
-
- /**
- * @generated
- */
- private IParser getExecutionEnvironmentName_22Parser() {
- if (executionEnvironmentName_22Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- executionEnvironmentName_22Parser = parser;
- }
- return executionEnvironmentName_22Parser;
- }
-
- /**
- * @generated
- */
- private IParser executionEnvironmentName_47Parser;
-
- /**
- * @generated
- */
- private IParser getExecutionEnvironmentName_47Parser() {
- if (executionEnvironmentName_47Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- executionEnvironmentName_47Parser = parser;
- }
- return executionEnvironmentName_47Parser;
- }
-
- /**
- * @generated
- */
- private IParser nodeName_24Parser;
-
- /**
- * @generated
- */
- private IParser getNodeName_24Parser() {
- if (nodeName_24Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- nodeName_24Parser = parser;
- }
- return nodeName_24Parser;
- }
-
- /**
- * @generated
- */
- private IParser nodeName_43Parser;
-
- /**
- * @generated
- */
- private IParser getNodeName_43Parser() {
- if (nodeName_43Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- nodeName_43Parser = parser;
- }
- return nodeName_43Parser;
- }
-
- /**
- * @generated
- */
- private IParser artifactName_27Parser;
-
- /**
- * @generated
- */
- private IParser getArtifactName_27Parser() {
- if (artifactName_27Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- artifactName_27Parser = parser;
- }
- return artifactName_27Parser;
- }
-
- /**
- * @generated
- */
- private IParser artifactName_59Parser;
-
- /**
- * @generated
- */
- private IParser getArtifactName_59Parser() {
- if (artifactName_59Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- artifactName_59Parser = parser;
- }
- return artifactName_59Parser;
- }
-
- /**
- * @generated
- */
- private IParser artifactName_29Parser;
-
- /**
- * @generated
- */
- private IParser getArtifactName_29Parser() {
- if (artifactName_29Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- artifactName_29Parser = parser;
- }
- return artifactName_29Parser;
- }
-
- /**
- * @generated
- */
- private IParser artifactName_60Parser;
-
- /**
- * @generated
- */
- private IParser getArtifactName_60Parser() {
- if (artifactName_60Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- artifactName_60Parser = parser;
- }
- return artifactName_60Parser;
- }
-
- /**
- * @generated
- */
- private IParser artifactName_41Parser;
-
- /**
- * @generated
- */
- private IParser getArtifactName_41Parser() {
- if (artifactName_41Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- artifactName_41Parser = parser;
- }
- return artifactName_41Parser;
- }
-
- /**
- * @generated
- */
- private CommentParser commentBody_55Parser;
-
- /**
- * @generated
- */
- private IParser getCommentBody_55Parser() {
- if (commentBody_55Parser == null) {
- commentBody_55Parser = new CommentParser();
- }
- return commentBody_55Parser;
- }
-
- /**
- * @generated
- */
- private IParser constraintName_57Parser;
-
- /**
- * @generated
- */
- private IParser getConstraintName_57Parser() {
- if (constraintName_57Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- constraintName_57Parser = parser;
- }
- return constraintName_57Parser;
- }
-
- /**
- * @generated
- */
- private ConstraintParser constraintSpecification_58Parser;
-
- /**
- * @generated
- */
- private IParser getConstraintSpecification_58Parser() {
- if (constraintSpecification_58Parser == null) {
- constraintSpecification_58Parser = new ConstraintParser();
- }
- return constraintSpecification_58Parser;
- }
-
- /**
- * @generated
- */
- private IParser deploymentName_13Parser;
-
- /**
- * @generated
- */
- private IParser getDeploymentName_13Parser() {
- if (deploymentName_13Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- deploymentName_13Parser = parser;
- }
- return deploymentName_13Parser;
- }
-
- /**
- * @generated
- */
- private AppliedStereotypeParser deploymentName_14Parser;
-
- /**
- * @generated
- */
- private IParser getDeploymentName_14Parser() {
- if (deploymentName_14Parser == null) {
- deploymentName_14Parser = new AppliedStereotypeParser();
- }
- return deploymentName_14Parser;
- }
-
- /**
- * @generated
- */
- private IParser manifestationName_10Parser;
-
- /**
- * @generated
- */
- private IParser getManifestationName_10Parser() {
- if (manifestationName_10Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- manifestationName_10Parser = parser;
- }
- return manifestationName_10Parser;
- }
-
- /**
- * @generated
- */
- private AppliedStereotypeParser manifestationName_11Parser;
-
- /**
- * @generated
- */
- private IParser getManifestationName_11Parser() {
- if (manifestationName_11Parser == null) {
- manifestationName_11Parser = new AppliedStereotypeParser();
- }
- return manifestationName_11Parser;
- }
-
- /**
- * @generated
- */
- private AppliedStereotypeParser generalizationIsSubstitutable_4Parser;
-
- /**
- * @generated
- */
- private IParser getGeneralizationIsSubstitutable_4Parser() {
- if (generalizationIsSubstitutable_4Parser == null) {
- generalizationIsSubstitutable_4Parser = new AppliedStereotypeParser();
- }
- return generalizationIsSubstitutable_4Parser;
- }
-
- /**
- * @generated
- */
- private IParser dependencyName_12Parser;
-
- /**
- * @generated
- */
- private IParser getDependencyName_12Parser() {
- if (dependencyName_12Parser == null) {
- EAttribute[] features = new EAttribute[] {
- UMLPackage.eINSTANCE.getNamedElement_Name()
- };
- MessageFormatParser parser = new MessageFormatParser(features);
- dependencyName_12Parser = parser;
- }
- return dependencyName_12Parser;
- }
-
- /**
- * @generated
- */
- private AppliedStereotypeParser dependencyName_15Parser;
-
- /**
- * @generated
- */
- private IParser getDependencyName_15Parser() {
- if (dependencyName_15Parser == null) {
- dependencyName_15Parser = new AppliedStereotypeParser();
- }
- return dependencyName_15Parser;
- }
-
- /**
- * @generated
- */
- protected IParser getParser(int visualID) {
- switch (visualID) {
- case MultiDependencyLabelEditPart.VISUAL_ID:
- return getDependencyName_7Parser();
-
- case ModelNameEditPart.VISUAL_ID:
- return getModelName_48Parser();
-
- case PackageNameEditPart.VISUAL_ID:
- return getPackageName_35Parser();
-
- case ConstraintNameEditPart.VISUAL_ID:
- return getConstraintName_2Parser();
- case ConstraintSpecificationEditPart.VISUAL_ID:
- return getConstraintSpecification_3Parser();
-
- case CommentBodyEditPart.VISUAL_ID:
- return getCommentBody_1Parser();
-
- case ExecutionEnvironmentNameEditPart.VISUAL_ID:
- return getExecutionEnvironmentName_5Parser();
-
- case DeviceNameEditPart.VISUAL_ID:
- return getDeviceName_6Parser();
-
- case ArtifactNameEditPart.VISUAL_ID:
- return getArtifactName_8Parser();
- case ArtifactFloatingLabelEditPart.VISUAL_ID:
- return getArtifactName_61Parser();
-
- case NodeNameEditPart.VISUAL_ID:
- return getNodeName_9Parser();
-
- case DefaultNamedElementNameEditPart.VISUAL_ID:
- return getNamedElementName_53Parser();
-
- case ModelNameEditPartCN.VISUAL_ID:
- return getModelName_50Parser();
-
- case PackageNameEditPartCN.VISUAL_ID:
- return getPackageName_37Parser();
-
- case DeviceNameEditPartCN.VISUAL_ID:
- return getDeviceName_20Parser();
-
- case NestedDeviceNameEditPartCN.VISUAL_ID:
- return getDeviceName_45Parser();
-
- case ExecutionEnvironmentNameEditPartCN.VISUAL_ID:
- return getExecutionEnvironmentName_22Parser();
-
- case NestedExecutionEnvironmentNameEditPartCN.VISUAL_ID:
- return getExecutionEnvironmentName_47Parser();
-
- case NodeNameEditPartCN.VISUAL_ID:
- return getNodeName_24Parser();
-
- case NestedNodeNameEditPart.VISUAL_ID:
- return getNodeName_43Parser();
-
- case ArtifactNameEditPartCN.VISUAL_ID:
- return getArtifactName_27Parser();
- case ArtifactFloatingLabelEditPartCN.VISUAL_ID:
- return getArtifactName_59Parser();
-
- case ArtifactNameEditPartACN.VISUAL_ID:
- return getArtifactName_29Parser();
- case ArtifactFloatingLabelEditPartACN.VISUAL_ID:
- return getArtifactName_60Parser();
-
- case NestedArtifactNameEditPart.VISUAL_ID:
- return getArtifactName_41Parser();
-
- case CommentBodyEditPartCN.VISUAL_ID:
- return getCommentBody_55Parser();
-
- case ConstraintNameEditPartCN.VISUAL_ID:
- return getConstraintName_57Parser();
- case ConstraintSpecificationEditPartCN.VISUAL_ID:
- return getConstraintSpecification_58Parser();
-
-
-
-
- case DeploymentNameEditPart.VISUAL_ID:
- return getDeploymentName_13Parser();
- case DeploymentAppliedStereotypeEditPart.VISUAL_ID:
- return getDeploymentName_14Parser();
-
- case ManifestationNameEditPart.VISUAL_ID:
- return getManifestationName_10Parser();
- case ManifestationAppliedStereotypeEditPart.VISUAL_ID:
- return getManifestationName_11Parser();
-
- case GeneralizationAppliedStereotypeEditPart.VISUAL_ID:
- return getGeneralizationIsSubstitutable_4Parser();
-
- case DependencyNameEditPart.VISUAL_ID:
- return getDependencyName_12Parser();
- case DependencyAppliedStereotypeEditPart.VISUAL_ID:
- return getDependencyName_15Parser();
-
-
- }
- return null;
- }
-
- /**
- * 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));
- }
-
- /**
- * @generated
- */
- @Override
- public IParser getParser(IAdaptable hint) {
- String vid = (String) hint.getAdapter(String.class);
- if (vid != null) {
- return getParser(UMLVisualIDRegistry.getVisualID(vid));
- }
- View view =
- (View) hint.getAdapter(View.class);
- if (view != null) {
- return getParser(UMLVisualIDRegistry.getVisualID(view));
- }
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public boolean provides(IOperation operation) {
- if (operation instanceof GetParserOperation) {
- IAdaptable hint =
- ((GetParserOperation) operation).getHint();
- if (UMLElementTypes.getElement(hint) == null) {
- return false;
- }
- return getParser(hint) != null;
- }
- return false;
- }
-
- /**
- * @generated
- */
- private static class HintAdapter extends ParserHintAdapter {
-
- /**
- * @generated
- */
- private final IElementType elementType;
-
- /**
- * @generated
- */
- public HintAdapter(IElementType type, EObject object, String parserHint) {
- super(object, parserHint);
- assert type != null;
- elementType = type;
- }
-
- /**
- * @generated
- */
- @Override
- public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) {
- if (IElementType.class.equals(adapter)) {
- return elementType;
- }
- return super.getAdapter(adapter);
- }
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.providers;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.common.core.service.AbstractProvider;
+import org.eclipse.gmf.runtime.common.core.service.IOperation;
+import org.eclipse.gmf.runtime.common.ui.services.parser.GetParserOperation;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
+import org.eclipse.gmf.runtime.common.ui.services.parser.IParserProvider;
+import org.eclipse.gmf.runtime.common.ui.services.parser.ParserService;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.ui.services.parser.ParserHintAdapter;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.uml.diagram.common.parser.CommentParser;
+import org.eclipse.papyrus.uml.diagram.common.parser.ConstraintParser;
+import org.eclipse.papyrus.uml.diagram.common.parser.stereotype.AppliedStereotypeParser;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartACN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPartACN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentBodyEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentBodyEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintSpecificationEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintSpecificationEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DefaultNamedElementNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyAppliedStereotypeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentAppliedStereotypeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationAppliedStereotypeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationAppliedStereotypeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.MultiDependencyLabelEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.parsers.MessageFormatParser;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.uml2.uml.UMLPackage;
+
+/**
+ * @generated
+ */
+public class UMLParserProvider extends AbstractProvider implements IParserProvider {
+
+ /**
+ * @generated
+ */
+ private IParser dependencyName_7Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDependencyName_7Parser() {
+ if (dependencyName_7Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ dependencyName_7Parser = parser;
+ }
+ return dependencyName_7Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser modelName_48Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getModelName_48Parser() {
+ if (modelName_48Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ modelName_48Parser = parser;
+ }
+ return modelName_48Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser packageName_35Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getPackageName_35Parser() {
+ if (packageName_35Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ packageName_35Parser = parser;
+ }
+ return packageName_35Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser constraintName_2Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getConstraintName_2Parser() {
+ if (constraintName_2Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ constraintName_2Parser = parser;
+ }
+ return constraintName_2Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private ConstraintParser constraintSpecification_3Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getConstraintSpecification_3Parser() {
+ if (constraintSpecification_3Parser == null) {
+ constraintSpecification_3Parser = new ConstraintParser();
+ }
+ return constraintSpecification_3Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private CommentParser commentBody_1Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getCommentBody_1Parser() {
+ if (commentBody_1Parser == null) {
+ commentBody_1Parser = new CommentParser();
+ }
+ return commentBody_1Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser executionEnvironmentName_5Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getExecutionEnvironmentName_5Parser() {
+ if (executionEnvironmentName_5Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ executionEnvironmentName_5Parser = parser;
+ }
+ return executionEnvironmentName_5Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser deviceName_6Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDeviceName_6Parser() {
+ if (deviceName_6Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ deviceName_6Parser = parser;
+ }
+ return deviceName_6Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser artifactName_8Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getArtifactName_8Parser() {
+ if (artifactName_8Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ artifactName_8Parser = parser;
+ }
+ return artifactName_8Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser artifactName_61Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getArtifactName_61Parser() {
+ if (artifactName_61Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ artifactName_61Parser = parser;
+ }
+ return artifactName_61Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser nodeName_9Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getNodeName_9Parser() {
+ if (nodeName_9Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ nodeName_9Parser = parser;
+ }
+ return nodeName_9Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser namedElementName_53Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getNamedElementName_53Parser() {
+ if (namedElementName_53Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ namedElementName_53Parser = parser;
+ }
+ return namedElementName_53Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser modelName_50Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getModelName_50Parser() {
+ if (modelName_50Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ modelName_50Parser = parser;
+ }
+ return modelName_50Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser packageName_37Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getPackageName_37Parser() {
+ if (packageName_37Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ packageName_37Parser = parser;
+ }
+ return packageName_37Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser deviceName_20Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDeviceName_20Parser() {
+ if (deviceName_20Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ deviceName_20Parser = parser;
+ }
+ return deviceName_20Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser deviceName_45Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDeviceName_45Parser() {
+ if (deviceName_45Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ deviceName_45Parser = parser;
+ }
+ return deviceName_45Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser executionEnvironmentName_22Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getExecutionEnvironmentName_22Parser() {
+ if (executionEnvironmentName_22Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ executionEnvironmentName_22Parser = parser;
+ }
+ return executionEnvironmentName_22Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser executionEnvironmentName_47Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getExecutionEnvironmentName_47Parser() {
+ if (executionEnvironmentName_47Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ executionEnvironmentName_47Parser = parser;
+ }
+ return executionEnvironmentName_47Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser nodeName_24Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getNodeName_24Parser() {
+ if (nodeName_24Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ nodeName_24Parser = parser;
+ }
+ return nodeName_24Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser nodeName_43Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getNodeName_43Parser() {
+ if (nodeName_43Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ nodeName_43Parser = parser;
+ }
+ return nodeName_43Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser artifactName_27Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getArtifactName_27Parser() {
+ if (artifactName_27Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ artifactName_27Parser = parser;
+ }
+ return artifactName_27Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser artifactName_59Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getArtifactName_59Parser() {
+ if (artifactName_59Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ artifactName_59Parser = parser;
+ }
+ return artifactName_59Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser artifactName_29Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getArtifactName_29Parser() {
+ if (artifactName_29Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ artifactName_29Parser = parser;
+ }
+ return artifactName_29Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser artifactName_60Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getArtifactName_60Parser() {
+ if (artifactName_60Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ artifactName_60Parser = parser;
+ }
+ return artifactName_60Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser artifactName_41Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getArtifactName_41Parser() {
+ if (artifactName_41Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ artifactName_41Parser = parser;
+ }
+ return artifactName_41Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private CommentParser commentBody_55Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getCommentBody_55Parser() {
+ if (commentBody_55Parser == null) {
+ commentBody_55Parser = new CommentParser();
+ }
+ return commentBody_55Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser constraintName_57Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getConstraintName_57Parser() {
+ if (constraintName_57Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ constraintName_57Parser = parser;
+ }
+ return constraintName_57Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private ConstraintParser constraintSpecification_58Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getConstraintSpecification_58Parser() {
+ if (constraintSpecification_58Parser == null) {
+ constraintSpecification_58Parser = new ConstraintParser();
+ }
+ return constraintSpecification_58Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser deploymentName_13Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDeploymentName_13Parser() {
+ if (deploymentName_13Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ deploymentName_13Parser = parser;
+ }
+ return deploymentName_13Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser deploymentName_14Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDeploymentName_14Parser() {
+ if (deploymentName_14Parser == null) {
+ deploymentName_14Parser = new AppliedStereotypeParser();
+ }
+ return deploymentName_14Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser manifestationName_10Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getManifestationName_10Parser() {
+ if (manifestationName_10Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ manifestationName_10Parser = parser;
+ }
+ return manifestationName_10Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser manifestationName_11Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getManifestationName_11Parser() {
+ if (manifestationName_11Parser == null) {
+ manifestationName_11Parser = new AppliedStereotypeParser();
+ }
+ return manifestationName_11Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser generalizationIsSubstitutable_4Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getGeneralizationIsSubstitutable_4Parser() {
+ if (generalizationIsSubstitutable_4Parser == null) {
+ generalizationIsSubstitutable_4Parser = new AppliedStereotypeParser();
+ }
+ return generalizationIsSubstitutable_4Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private IParser dependencyName_12Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDependencyName_12Parser() {
+ if (dependencyName_12Parser == null) {
+ EAttribute[] features = new EAttribute[] {
+ UMLPackage.eINSTANCE.getNamedElement_Name() };
+ MessageFormatParser parser = new MessageFormatParser(features);
+ dependencyName_12Parser = parser;
+ }
+ return dependencyName_12Parser;
+ }
+
+ /**
+ * @generated
+ */
+ private AppliedStereotypeParser dependencyName_15Parser;
+
+ /**
+ * @generated
+ */
+ private IParser getDependencyName_15Parser() {
+ if (dependencyName_15Parser == null) {
+ dependencyName_15Parser = new AppliedStereotypeParser();
+ }
+ return dependencyName_15Parser;
+ }
+
+ /**
+ * @generated
+ */
+ protected IParser getParser(int visualID) {
+ switch (visualID) {
+ case MultiDependencyLabelEditPart.VISUAL_ID:
+ return getDependencyName_7Parser();
+
+ case ModelNameEditPart.VISUAL_ID:
+ return getModelName_48Parser();
+
+ case PackageNameEditPart.VISUAL_ID:
+ return getPackageName_35Parser();
+
+ case ConstraintNameEditPart.VISUAL_ID:
+ return getConstraintName_2Parser();
+ case ConstraintSpecificationEditPart.VISUAL_ID:
+ return getConstraintSpecification_3Parser();
+
+ case CommentBodyEditPart.VISUAL_ID:
+ return getCommentBody_1Parser();
+
+ case ExecutionEnvironmentNameEditPart.VISUAL_ID:
+ return getExecutionEnvironmentName_5Parser();
+
+ case DeviceNameEditPart.VISUAL_ID:
+ return getDeviceName_6Parser();
+
+ case ArtifactNameEditPart.VISUAL_ID:
+ return getArtifactName_8Parser();
+ case ArtifactFloatingLabelEditPart.VISUAL_ID:
+ return getArtifactName_61Parser();
+
+ case NodeNameEditPart.VISUAL_ID:
+ return getNodeName_9Parser();
+
+ case DefaultNamedElementNameEditPart.VISUAL_ID:
+ return getNamedElementName_53Parser();
+
+ case ModelNameEditPartCN.VISUAL_ID:
+ return getModelName_50Parser();
+
+ case PackageNameEditPartCN.VISUAL_ID:
+ return getPackageName_37Parser();
+
+ case DeviceNameEditPartCN.VISUAL_ID:
+ return getDeviceName_20Parser();
+
+ case NestedDeviceNameEditPartCN.VISUAL_ID:
+ return getDeviceName_45Parser();
+
+ case ExecutionEnvironmentNameEditPartCN.VISUAL_ID:
+ return getExecutionEnvironmentName_22Parser();
+
+ case NestedExecutionEnvironmentNameEditPartCN.VISUAL_ID:
+ return getExecutionEnvironmentName_47Parser();
+
+ case NodeNameEditPartCN.VISUAL_ID:
+ return getNodeName_24Parser();
+
+ case NestedNodeNameEditPart.VISUAL_ID:
+ return getNodeName_43Parser();
+
+ case ArtifactNameEditPartCN.VISUAL_ID:
+ return getArtifactName_27Parser();
+ case ArtifactFloatingLabelEditPartCN.VISUAL_ID:
+ return getArtifactName_59Parser();
+
+ case ArtifactNameEditPartACN.VISUAL_ID:
+ return getArtifactName_29Parser();
+ case ArtifactFloatingLabelEditPartACN.VISUAL_ID:
+ return getArtifactName_60Parser();
+
+ case NestedArtifactNameEditPart.VISUAL_ID:
+ return getArtifactName_41Parser();
+
+ case CommentBodyEditPartCN.VISUAL_ID:
+ return getCommentBody_55Parser();
+
+ case ConstraintNameEditPartCN.VISUAL_ID:
+ return getConstraintName_57Parser();
+ case ConstraintSpecificationEditPartCN.VISUAL_ID:
+ return getConstraintSpecification_58Parser();
+
+
+
+
+ case DeploymentNameEditPart.VISUAL_ID:
+ return getDeploymentName_13Parser();
+ case DeploymentAppliedStereotypeEditPart.VISUAL_ID:
+ return getDeploymentName_14Parser();
+
+ case ManifestationNameEditPart.VISUAL_ID:
+ return getManifestationName_10Parser();
+ case ManifestationAppliedStereotypeEditPart.VISUAL_ID:
+ return getManifestationName_11Parser();
+
+ case GeneralizationAppliedStereotypeEditPart.VISUAL_ID:
+ return getGeneralizationIsSubstitutable_4Parser();
+
+ case DependencyNameEditPart.VISUAL_ID:
+ return getDependencyName_12Parser();
+ case DependencyAppliedStereotypeEditPart.VISUAL_ID:
+ return getDependencyName_15Parser();
+
+
+ }
+ return null;
+ }
+
+ /**
+ * 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));
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public IParser getParser(IAdaptable hint) {
+ String vid = (String) hint.getAdapter(String.class);
+ if (vid != null) {
+ return getParser(UMLVisualIDRegistry.getVisualID(vid));
+ }
+ View view = (View) hint.getAdapter(View.class);
+ if (view != null) {
+ return getParser(UMLVisualIDRegistry.getVisualID(view));
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public boolean provides(IOperation operation) {
+ if (operation instanceof GetParserOperation) {
+ IAdaptable hint = ((GetParserOperation) operation).getHint();
+ if (UMLElementTypes.getElement(hint) == null) {
+ return false;
+ }
+ return getParser(hint) != null;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ private static class HintAdapter extends ParserHintAdapter {
+
+ /**
+ * @generated
+ */
+ private final IElementType elementType;
+
+ /**
+ * @generated
+ */
+ public HintAdapter(IElementType type, EObject object, String parserHint) {
+ super(object, parserHint);
+ assert type != null;
+ elementType = type;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) {
+ if (IElementType.class.equals(adapter)) {
+ return elementType;
+ }
+ return super.getAdapter(adapter);
+ }
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLValidationDecoratorProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLValidationDecoratorProvider.java
index b048b60a8f8..05bcb931d28 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLValidationDecoratorProvider.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLValidationDecoratorProvider.java
@@ -1,74 +1,72 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.providers;
-
-import org.eclipse.gef.EditDomain;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gef.editparts.AbstractConnectionEditPart;
-import org.eclipse.gmf.runtime.common.core.service.IOperation;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditDomain;
-import org.eclipse.gmf.runtime.diagram.ui.services.decorator.CreateDecoratorsOperation;
-import org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorProvider;
-import org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget;
-import org.eclipse.gmf.runtime.notation.Edge;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.common.providers.ValidationDecoratorProvider;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditor;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-
-/**
- * @generated
- */
-public class UMLValidationDecoratorProvider extends ValidationDecoratorProvider implements IDecoratorProvider {
-
- /**
- * @generated
- */
- @Override
- public void createDecorators(IDecoratorTarget decoratorTarget) {
- EditPart editPart = (EditPart) decoratorTarget.getAdapter(EditPart.class);
- if (editPart instanceof GraphicalEditPart ||
- editPart instanceof AbstractConnectionEditPart) {
- Object model = editPart.getModel();
- if ((model instanceof View)) {
- View view = (View) model;
- if (!(view instanceof Edge) && !view.isSetElement()) {
- return;
- }
- }
- EditDomain ed = editPart.getViewer().getEditDomain();
- if (!(ed instanceof DiagramEditDomain)) {
- return;
- }
- if (((DiagramEditDomain) ed).getEditorPart() instanceof UMLDiagramEditor) {
- decoratorTarget.installDecorator(KEY, new StatusDecorator(decoratorTarget));
- }
- }
- }
-
- /**
- * @generated
- */
- @Override
- public boolean provides(IOperation operation) {
- if (!(operation instanceof CreateDecoratorsOperation)) {
- return false;
- }
- IDecoratorTarget decoratorTarget =
- ((CreateDecoratorsOperation) operation).getDecoratorTarget();
- View view = (View) decoratorTarget.getAdapter(
- View.class);
- return view != null && DeploymentDiagramEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID(view));
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.providers;
+
+import org.eclipse.gef.EditDomain;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.editparts.AbstractConnectionEditPart;
+import org.eclipse.gmf.runtime.common.core.service.IOperation;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditDomain;
+import org.eclipse.gmf.runtime.diagram.ui.services.decorator.CreateDecoratorsOperation;
+import org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorProvider;
+import org.eclipse.gmf.runtime.diagram.ui.services.decorator.IDecoratorTarget;
+import org.eclipse.gmf.runtime.notation.Edge;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.uml.diagram.common.providers.ValidationDecoratorProvider;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditor;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+
+/**
+ * @generated
+ */
+public class UMLValidationDecoratorProvider extends ValidationDecoratorProvider implements IDecoratorProvider {
+
+ /**
+ * @generated
+ */
+ @Override
+ public void createDecorators(IDecoratorTarget decoratorTarget) {
+ EditPart editPart = (EditPart) decoratorTarget.getAdapter(EditPart.class);
+ if (editPart instanceof GraphicalEditPart || editPart instanceof AbstractConnectionEditPart) {
+ Object model = editPart.getModel();
+ if ((model instanceof View)) {
+ View view = (View) model;
+ if (!(view instanceof Edge) && !view.isSetElement()) {
+ return;
+ }
+ }
+ EditDomain ed = editPart.getViewer().getEditDomain();
+ if (!(ed instanceof DiagramEditDomain)) {
+ return;
+ }
+ if (((DiagramEditDomain) ed).getEditorPart() instanceof UMLDiagramEditor) {
+ decoratorTarget.installDecorator(KEY, new StatusDecorator(decoratorTarget));
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public boolean provides(IOperation operation) {
+ if (!(operation instanceof CreateDecoratorsOperation)) {
+ return false;
+ }
+ IDecoratorTarget decoratorTarget = ((CreateDecoratorsOperation) operation).getDecoratorTarget();
+ View view = (View) decoratorTarget.getAdapter(
+ View.class);
+ return view != null && DeploymentDiagramEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID(view));
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLValidationProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLValidationProvider.java
index 7709f8754f8..33b4e5bed9c 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLValidationProvider.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLValidationProvider.java
@@ -1,76 +1,76 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.providers;
-
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-
-/**
- * @generated
- */
-public class UMLValidationProvider {
-
- /**
- * @generated
- */
- private static boolean constraintsActive = false;
-
- /**
- * @generated
- */
- public static boolean shouldConstraintsBePrivate() {
- return false;
- }
-
- /**
- * @generated
- */
- public static void runWithConstraints(TransactionalEditingDomain editingDomain, Runnable operation) {
- final Runnable op = operation;
- Runnable task = new Runnable() {
- @Override
- public void run() {
- try {
- constraintsActive = true;
- op.run();
- } finally {
- constraintsActive = false;
- }
- }
- };
- if (editingDomain != null) {
- try {
- editingDomain.runExclusive(task);
- } catch (Exception e) {
- UMLDiagramEditorPlugin.getInstance().logError("Validation failed", e); //$NON-NLS-1$
- }
- } else {
- task.run();
- }
- }
-
- /**
- * @generated
- */
- static boolean isInDefaultEditorContext(Object object) {
- if (shouldConstraintsBePrivate() && !constraintsActive) {
- return false;
- }
- if (object instanceof View) {
- return constraintsActive && DeploymentDiagramEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID((View) object));
- }
- return true;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.providers;
+
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+
+/**
+ * @generated
+ */
+public class UMLValidationProvider {
+
+ /**
+ * @generated
+ */
+ private static boolean constraintsActive = false;
+
+ /**
+ * @generated
+ */
+ public static boolean shouldConstraintsBePrivate() {
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ public static void runWithConstraints(TransactionalEditingDomain editingDomain, Runnable operation) {
+ final Runnable op = operation;
+ Runnable task = new Runnable() {
+ @Override
+ public void run() {
+ try {
+ constraintsActive = true;
+ op.run();
+ } finally {
+ constraintsActive = false;
+ }
+ }
+ };
+ if (editingDomain != null) {
+ try {
+ editingDomain.runExclusive(task);
+ } catch (Exception e) {
+ UMLDiagramEditorPlugin.getInstance().logError("Validation failed", e); //$NON-NLS-1$
+ }
+ } else {
+ task.run();
+ }
+ }
+
+ /**
+ * @generated
+ */
+ static boolean isInDefaultEditorContext(Object object) {
+ if (shouldConstraintsBePrivate() && !constraintsActive) {
+ return false;
+ }
+ if (object instanceof View) {
+ return constraintsActive && DeploymentDiagramEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID((View) object));
+ }
+ return true;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLViewProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLViewProvider.java
index f3168d566a2..e9c229135f8 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLViewProvider.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/providers/UMLViewProvider.java
@@ -1,1276 +1,1264 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.providers;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EcoreFactory;
-import org.eclipse.emf.transaction.util.TransactionUtil;
-import org.eclipse.gmf.runtime.common.core.service.AbstractProvider;
-import org.eclipse.gmf.runtime.common.core.service.IOperation;
-import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
-import org.eclipse.gmf.runtime.diagram.core.providers.IViewProvider;
-import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation;
-import org.eclipse.gmf.runtime.diagram.core.services.view.CreateEdgeViewOperation;
-import org.eclipse.gmf.runtime.diagram.core.services.view.CreateNodeViewOperation;
-import org.eclipse.gmf.runtime.diagram.core.services.view.CreateViewForKindOperation;
-import org.eclipse.gmf.runtime.diagram.core.services.view.CreateViewOperation;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
-import org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.IHintedType;
-import org.eclipse.gmf.runtime.notation.Connector;
-import org.eclipse.gmf.runtime.notation.DecorationNode;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.Edge;
-import org.eclipse.gmf.runtime.notation.FillStyle;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.Location;
-import org.eclipse.gmf.runtime.notation.MeasurementUnit;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.RelativeBendpoints;
-import org.eclipse.gmf.runtime.notation.Shape;
-import org.eclipse.gmf.runtime.notation.TitleStyle;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint;
-import org.eclipse.jface.preference.IPreferenceStore;
-import org.eclipse.jface.preference.PreferenceConverter;
-import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
-import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
-import org.eclipse.papyrus.infra.gmfdiag.common.preferences.PreferencesConstantsHelper;
-import org.eclipse.papyrus.infra.gmfdiag.common.reconciler.DiagramVersioningUtils;
-import org.eclipse.papyrus.infra.gmfdiag.preferences.utils.GradientPreferenceConverter;
-import org.eclipse.papyrus.uml.diagram.common.helper.PreferenceInitializerForElementHelper;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPartACN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentBodyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentBodyEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintSpecificationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintSpecificationEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DefaultNamedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DefaultNamedElementNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyAppliedStereotypeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyNodeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentAppliedStereotypeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceCompositeCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceCompositeCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentCompositeCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentCompositeCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationAppliedStereotypeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.LinkDescriptorEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationAppliedStereotypeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelPackageableElementCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelPackageableElementCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.MultiDependencyLabelEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeCompositeCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeCompositeCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageNameEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageNameEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackagePackageableElementCompartmentEditPart;
-import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackagePackageableElementCompartmentEditPartCN;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.FontData;
-
-/**
- * @generated
- */
-public class UMLViewProvider extends AbstractProvider implements IViewProvider {
-
- /**
- * @generated
- */
- @Override
- public final boolean provides(IOperation operation) {
- if (operation instanceof CreateViewForKindOperation) {
- return provides((CreateViewForKindOperation) operation);
- }
- assert operation instanceof CreateViewOperation;
- if (operation instanceof CreateDiagramViewOperation) {
- return provides((CreateDiagramViewOperation) operation);
- } else if (operation instanceof CreateEdgeViewOperation) {
- return provides((CreateEdgeViewOperation) operation);
- } else if (operation instanceof CreateNodeViewOperation) {
- return provides((CreateNodeViewOperation) operation);
- }
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean provides(CreateViewForKindOperation op) {
- /*
- * if (op.getViewKind() == Node.class)
- * return getNodeViewClass(op.getSemanticAdapter(), op.getContainerView(), op.getSemanticHint()) != null;
- * if (op.getViewKind() == Edge.class)
- * return getEdgeViewClass(op.getSemanticAdapter(), op.getContainerView(), op.getSemanticHint()) != null;
- */
-
- // check Diagram Type should be the class diagram
- String modelID = UMLVisualIDRegistry.getModelID(op.getContainerView());
- if (!getDiagramProvidedId().equals(modelID)) {
- return false;
- }
-
- int visualID = UMLVisualIDRegistry.getVisualID(op.getSemanticHint());
- if (Node.class.isAssignableFrom(op.getViewKind())) {
- return UMLVisualIDRegistry.canCreateNode(op.getContainerView(), visualID);
- }
-
- return true;
- }
-
- /**
- * @generated
- */
- protected String getDiagramProvidedId() {
- /*
- * Indicates for which diagram this provider works for.
- * <p>
- * This method can be overloaded when diagram editor inherits from another one, but should never be <code>null</code>
- * </p>
- *
- * @return the unique identifier of the diagram for which views are provided.
- */
- return DeploymentDiagramEditPart.MODEL_ID;
- }
-
- /**
- * @generated
- */
- protected boolean provides(CreateDiagramViewOperation op) {
- return DeploymentDiagramEditPart.MODEL_ID.equals(op.getSemanticHint()) && UMLVisualIDRegistry.getDiagramVisualID(getSemanticElement(op.getSemanticAdapter())) != -1;
- }
-
- /**
- * @generated
- */
- protected boolean provides(CreateNodeViewOperation op) {
- if (op.getContainerView() == null) {
- return false;
- }
- IElementType elementType = getSemanticElementType(op.getSemanticAdapter());
- EObject domainElement = getSemanticElement(op.getSemanticAdapter());
- int visualID;
- if (op.getSemanticHint() == null) {
- // Semantic hint is not specified. Can be a result of call from CanonicalEditPolicy.
- // In this situation there should be NO elementType, visualID will be determined
- // by VisualIDRegistry.getNodeVisualID() for domainElement.
- if (elementType != null || domainElement == null) {
- return false;
- }
- visualID = UMLVisualIDRegistry.getNodeVisualID(op.getContainerView(), domainElement);
- } else {
- visualID = UMLVisualIDRegistry.getVisualID(op.getSemanticHint());
- if (elementType != null) {
- if (elementType instanceof IExtendedHintedElementType) {
- if (domainElement != null) {
- if (!UMLVisualIDRegistry.checkNodeVisualID(op.getContainerView(), domainElement, visualID)) {
- return false;
- }
- }
- } else {
- if (!UMLElementTypes.isKnownElementType(elementType) || (!(elementType instanceof IHintedType))) {
- return false; // foreign element type
- }
- }
- String elementTypeHint = ((IHintedType) elementType).getSemanticHint();
- if (!op.getSemanticHint().equals(elementTypeHint)) {
- return false; // if semantic hint is specified it should be the same as in element type
- }
- if (domainElement != null && visualID != UMLVisualIDRegistry.getNodeVisualID(op.getContainerView(), domainElement)) {
- return false; // visual id for node EClass should match visual id from element type
- }
- } else {
- if (!DeploymentDiagramEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID(op.getContainerView()))) {
- return false; // foreign diagram
- }
- switch (visualID) {
- case DependencyNodeEditPart.VISUAL_ID:
- case ConstraintEditPart.VISUAL_ID:
- case CommentEditPart.VISUAL_ID:
- case ExecutionEnvironmentEditPart.VISUAL_ID:
- case DeviceEditPart.VISUAL_ID:
- case ArtifactEditPart.VISUAL_ID:
- case NodeEditPart.VISUAL_ID:
- case DefaultNamedElementEditPart.VISUAL_ID:
- case CommentEditPartCN.VISUAL_ID:
- case ConstraintEditPartCN.VISUAL_ID:
- case ModelEditPart.VISUAL_ID:
- case PackageEditPart.VISUAL_ID:
- case ModelEditPartCN.VISUAL_ID:
- case PackageEditPartCN.VISUAL_ID:
- case DeviceEditPartCN.VISUAL_ID:
- case NestedDeviceEditPartCN.VISUAL_ID:
- case ExecutionEnvironmentEditPartCN.VISUAL_ID:
- case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
- case NodeEditPartCN.VISUAL_ID:
- case NestedNodeEditPartCN.VISUAL_ID:
- case ArtifactEditPartCN.VISUAL_ID:
- case ArtifactEditPartACN.VISUAL_ID:
- case NestedArtifactNodeEditPartCN.VISUAL_ID:
- if (domainElement == null || visualID != UMLVisualIDRegistry.getNodeVisualID(op.getContainerView(), domainElement)) {
- return false; // visual id in semantic hint should match visual id for domain element
- }
- break;
- default:
- return false;
- }
- }
- }
- return DependencyNodeEditPart.VISUAL_ID == visualID || ModelEditPart.VISUAL_ID == visualID || PackageEditPart.VISUAL_ID == visualID || ConstraintEditPart.VISUAL_ID == visualID || CommentEditPart.VISUAL_ID == visualID
- || ExecutionEnvironmentEditPart.VISUAL_ID == visualID || DeviceEditPart.VISUAL_ID == visualID || ArtifactEditPart.VISUAL_ID == visualID || NodeEditPart.VISUAL_ID == visualID || DefaultNamedElementEditPart.VISUAL_ID == visualID
- || ModelEditPartCN.VISUAL_ID == visualID || PackageEditPartCN.VISUAL_ID == visualID || DeviceEditPartCN.VISUAL_ID == visualID || NestedDeviceEditPartCN.VISUAL_ID == visualID || ExecutionEnvironmentEditPartCN.VISUAL_ID == visualID
- || NestedExecutionEnvironmentEditPartCN.VISUAL_ID == visualID || NodeEditPartCN.VISUAL_ID == visualID || NestedNodeEditPartCN.VISUAL_ID == visualID || ArtifactEditPartCN.VISUAL_ID == visualID || ArtifactEditPartACN.VISUAL_ID == visualID
- || NestedArtifactNodeEditPartCN.VISUAL_ID == visualID || CommentEditPartCN.VISUAL_ID == visualID || ConstraintEditPartCN.VISUAL_ID == visualID;
-
-
- }
-
- /**
- * @generated
- */
- protected boolean provides(CreateEdgeViewOperation op) {
- IElementType elementType = getSemanticElementType(op.getSemanticAdapter());
- // RS: add code for extended types creation
- if (elementType instanceof IExtendedHintedElementType) {
- IElementType closestNonExtendedType = ElementTypeUtils.getClosestDiagramType(elementType);
- if (!UMLElementTypes.isKnownElementType(closestNonExtendedType) || (!(closestNonExtendedType instanceof IHintedType))) {
- return false; // foreign element type.
- }
- } else {
- if (!UMLElementTypes.isKnownElementType(elementType) || (!(elementType instanceof IHintedType))) {
- return false; // foreign element type
- }
- }
- // if (!org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes.isKnownElementType(elementType) || (!(elementType instanceof org.eclipse.gmf.runtime.emf.type.core.IHintedType))) {
- // return false; // foreign element type
- // }
- // END R.S.
- String elementTypeHint = ((IHintedType) elementType).getSemanticHint();
- if (elementTypeHint == null || (op.getSemanticHint() != null && !elementTypeHint.equals(op.getSemanticHint()))) {
- return false; // our hint is visual id and must be specified, and it should be the same as in element type
- }
- int visualID = UMLVisualIDRegistry.getVisualID(elementTypeHint);
- EObject domainElement = getSemanticElement(op.getSemanticAdapter());
- if (domainElement != null && visualID != UMLVisualIDRegistry.getLinkWithClassVisualID(domainElement)) {
- return false; // visual id for link EClass should match visual id from element type
- }
- return true;
- }
-
- /**
- * @generated
- */
- @Override
- @SuppressWarnings("unchecked")
- public Diagram createDiagram(IAdaptable semanticAdapter, String diagramKind, PreferencesHint preferencesHint) {
- Diagram diagram = NotationFactory.eINSTANCE.createDiagram();
- DiagramVersioningUtils.stampCurrentVersion(diagram);
- diagram.getStyles().add(NotationFactory.eINSTANCE.createDiagramStyle());
- diagram.setType(DeploymentDiagramEditPart.MODEL_ID);
- diagram.setElement(getSemanticElement(semanticAdapter));
- diagram.setMeasurementUnit(MeasurementUnit.PIXEL_LITERAL);
- return diagram;
- }
-
- /**
- * @generated
- */
- @Override
- public Node createNode(IAdaptable semanticAdapter, View containerView, String semanticHint, int index, boolean persisted, PreferencesHint preferencesHint) {
- final EObject domainElement = getSemanticElement(semanticAdapter);
- final int visualID;
- if (semanticHint == null) {
- visualID = UMLVisualIDRegistry.getNodeVisualID(containerView, domainElement);
- } else {
- visualID = UMLVisualIDRegistry.getVisualID(semanticHint);
- }
- switch (visualID) {
- case DependencyNodeEditPart.VISUAL_ID:
- return createDependency_2011(domainElement, containerView, index, persisted, preferencesHint);
- case ModelEditPart.VISUAL_ID:
- return createModel_2010(domainElement, containerView, index, persisted, preferencesHint);
- case PackageEditPart.VISUAL_ID:
- return createPackage_2009(domainElement, containerView, index, persisted, preferencesHint);
- case ConstraintEditPart.VISUAL_ID:
- return createConstraint_2005(domainElement, containerView, index, persisted, preferencesHint);
- case CommentEditPart.VISUAL_ID:
- return createComment_2001(domainElement, containerView, index, persisted, preferencesHint);
- case ExecutionEnvironmentEditPart.VISUAL_ID:
- return createExecutionEnvironment_2002(domainElement, containerView, index, persisted, preferencesHint);
- case DeviceEditPart.VISUAL_ID:
- return createDevice_2003(domainElement, containerView, index, persisted, preferencesHint);
- case ArtifactEditPart.VISUAL_ID:
- return createArtifact_2006(domainElement, containerView, index, persisted, preferencesHint);
- case NodeEditPart.VISUAL_ID:
- return createNode_2008(domainElement, containerView, index, persisted, preferencesHint);
- case DefaultNamedElementEditPart.VISUAL_ID:
- return createNamedElement_2012(domainElement, containerView, index, persisted, preferencesHint);
- case ModelEditPartCN.VISUAL_ID:
- return createModel_49(domainElement, containerView, index, persisted, preferencesHint);
- case PackageEditPartCN.VISUAL_ID:
- return createPackage_36(domainElement, containerView, index, persisted, preferencesHint);
- case DeviceEditPartCN.VISUAL_ID:
- return createDevice_16(domainElement, containerView, index, persisted, preferencesHint);
- case NestedDeviceEditPartCN.VISUAL_ID:
- return createDevice_44(domainElement, containerView, index, persisted, preferencesHint);
- case ExecutionEnvironmentEditPartCN.VISUAL_ID:
- return createExecutionEnvironment_21(domainElement, containerView, index, persisted, preferencesHint);
- case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
- return createExecutionEnvironment_46(domainElement, containerView, index, persisted, preferencesHint);
- case NodeEditPartCN.VISUAL_ID:
- return createNode_23(domainElement, containerView, index, persisted, preferencesHint);
- case NestedNodeEditPartCN.VISUAL_ID:
- return createNode_42(domainElement, containerView, index, persisted, preferencesHint);
- case ArtifactEditPartCN.VISUAL_ID:
- return createArtifact_25(domainElement, containerView, index, persisted, preferencesHint);
- case ArtifactEditPartACN.VISUAL_ID:
- return createArtifact_28(domainElement, containerView, index, persisted, preferencesHint);
- case NestedArtifactNodeEditPartCN.VISUAL_ID:
- return createArtifact_40(domainElement, containerView, index, persisted, preferencesHint);
- case CommentEditPartCN.VISUAL_ID:
- return createComment_54(domainElement, containerView, index, persisted, preferencesHint);
- case ConstraintEditPartCN.VISUAL_ID:
- return createConstraint_56(domainElement, containerView, index, persisted, preferencesHint);
- }
- // can't happen, provided #provides(CreateNodeViewOperation) is correct
- return null;
- }
-
- /**
- * @generated
- */
- @Override
- public Edge createEdge(IAdaptable semanticAdapter, View containerView, String semanticHint, int index, boolean persisted, PreferencesHint preferencesHint) {
- IElementType elementType = getSemanticElementType(semanticAdapter);
- String elementTypeHint = ((IHintedType) elementType).getSemanticHint();
- switch (UMLVisualIDRegistry.getVisualID(elementTypeHint)) {
- case LinkDescriptorEditPart.VISUAL_ID:
- return createLink_4005(containerView, index, persisted, preferencesHint);
- case CommentAnnotatedElementEditPart.VISUAL_ID:
- return createCommentAnnotatedElement_4008(containerView, index, persisted, preferencesHint);
- case ConstraintConstrainedElementEditPart.VISUAL_ID:
- return createConstraintConstrainedElement_4009(containerView, index, persisted, preferencesHint);
- case DeploymentEditPart.VISUAL_ID:
- return createDeployment_4001(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
- case ManifestationEditPart.VISUAL_ID:
- return createManifestation_4002(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
- case GeneralizationEditPart.VISUAL_ID:
- return createGeneralization_4003(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
- case DependencyEditPart.VISUAL_ID:
- return createDependency_4004(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
- case DependencyBranchEditPart.VISUAL_ID:
- return createDependency_4010(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
- }
- // can never happen, provided #provides(CreateEdgeViewOperation) is correct
- return null;
- }
-
- /**
- * @generated
- */
- public Node createDependency_2011(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(DependencyNodeEditPart.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- stampShortcut(containerView, node);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DependencyNode");
- Node label7 = createLabel(node, UMLVisualIDRegistry.getType(MultiDependencyLabelEditPart.VISUAL_ID));
- label7.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
- Location location7 = (Location) label7.getLayoutConstraint();
- location7.setX(0);
- location7.setY(5);
- return node;
- }
-
- /**
- * @generated
- */
- public Node createModel_2010(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(ModelEditPart.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- stampShortcut(containerView, node);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Model");
- Node label48 = createLabel(node, UMLVisualIDRegistry.getType(ModelNameEditPart.VISUAL_ID));
- createCompartment(node, UMLVisualIDRegistry.getType(ModelPackageableElementCompartmentEditPart.VISUAL_ID), false, true, false, false);
- PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Model");
- return node;
- }
-
- /**
- * @generated
- */
- public Node createPackage_2009(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(PackageEditPart.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- stampShortcut(containerView, node);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Package");
- Node label35 = createLabel(node, UMLVisualIDRegistry.getType(PackageNameEditPart.VISUAL_ID));
- createCompartment(node, UMLVisualIDRegistry.getType(PackagePackageableElementCompartmentEditPart.VISUAL_ID), false, true, false, false);
- PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Package");
- return node;
- }
-
- /**
- * @generated
- */
- public Node createConstraint_2005(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(ConstraintEditPart.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- stampShortcut(containerView, node);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Constraint");
- Node label2 = createLabel(node, UMLVisualIDRegistry.getType(ConstraintNameEditPart.VISUAL_ID));
- Node label3 = createLabel(node, UMLVisualIDRegistry.getType(ConstraintSpecificationEditPart.VISUAL_ID));
- return node;
- }
-
- /**
- * @generated
- */
- public Node createComment_2001(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(CommentEditPart.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- stampShortcut(containerView, node);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Comment");
- Node label1 = createLabel(node, UMLVisualIDRegistry.getType(CommentBodyEditPart.VISUAL_ID));
- return node;
- }
-
- /**
- * @generated
- */
- public Node createExecutionEnvironment_2002(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(ExecutionEnvironmentEditPart.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- stampShortcut(containerView, node);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "ExecutionEnvironment");
- Node label5 = createLabel(node, UMLVisualIDRegistry.getType(ExecutionEnvironmentNameEditPart.VISUAL_ID));
- createCompartment(node, UMLVisualIDRegistry.getType(ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID), false, true, false, false);
- PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "ExecutionEnvironment");
- return node;
- }
-
- /**
- * @generated
- */
- public Node createDevice_2003(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(DeviceEditPart.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- stampShortcut(containerView, node);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Device");
- Node label6 = createLabel(node, UMLVisualIDRegistry.getType(DeviceNameEditPart.VISUAL_ID));
- createCompartment(node, UMLVisualIDRegistry.getType(DeviceCompositeCompartmentEditPart.VISUAL_ID), false, true, false, false);
- PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Device");
- return node;
- }
-
- /**
- * @generated
- */
- public Node createArtifact_2006(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(ArtifactEditPart.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- stampShortcut(containerView, node);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Artifact");
- Node label8 = createLabel(node, UMLVisualIDRegistry.getType(ArtifactNameEditPart.VISUAL_ID));
- Node label61 = createLabel(node, UMLVisualIDRegistry.getType(ArtifactFloatingLabelEditPart.VISUAL_ID));
- label61.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
- Location location61 = (Location) label61.getLayoutConstraint();
- location61.setX(25);
- location61.setY(0);
- createCompartment(node, UMLVisualIDRegistry.getType(ArtifactCompositeCompartmentEditPart.VISUAL_ID), true, true, false, false);
- PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Artifact");
- return node;
- }
-
- /**
- * @generated
- */
- public Node createNode_2008(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(NodeEditPart.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- stampShortcut(containerView, node);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Node");
- Node label9 = createLabel(node, UMLVisualIDRegistry.getType(NodeNameEditPart.VISUAL_ID));
- createCompartment(node, UMLVisualIDRegistry.getType(NodeCompositeCompartmentEditPart.VISUAL_ID), false, true, false, false);
- PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Node");
- return node;
- }
-
- /**
- * @generated
- */
- public Node createNamedElement_2012(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(DefaultNamedElementEditPart.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- stampShortcut(containerView, node);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DefaultNamedElement");
- Node label53 = createLabel(node, UMLVisualIDRegistry.getType(DefaultNamedElementNameEditPart.VISUAL_ID));
- return node;
- }
-
- /**
- * @generated
- */
- public Node createModel_49(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(ModelEditPartCN.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Model");
- Node label50 = createLabel(node, UMLVisualIDRegistry.getType(ModelNameEditPartCN.VISUAL_ID));
- createCompartment(node, UMLVisualIDRegistry.getType(ModelPackageableElementCompartmentEditPartCN.VISUAL_ID), false, true, false, false);
- PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Model");
- return node;
- }
-
- /**
- * @generated
- */
- public Node createPackage_36(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(PackageEditPartCN.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Package");
- Node label37 = createLabel(node, UMLVisualIDRegistry.getType(PackageNameEditPartCN.VISUAL_ID));
- createCompartment(node, UMLVisualIDRegistry.getType(PackagePackageableElementCompartmentEditPartCN.VISUAL_ID), false, true, false, false);
- PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Package");
- return node;
- }
-
- /**
- * @generated
- */
- public Node createDevice_16(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(DeviceEditPartCN.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Device");
- Node label20 = createLabel(node, UMLVisualIDRegistry.getType(DeviceNameEditPartCN.VISUAL_ID));
- return node;
- }
-
- /**
- * @generated
- */
- public Node createDevice_44(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(NestedDeviceEditPartCN.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Device");
- Node label45 = createLabel(node, UMLVisualIDRegistry.getType(NestedDeviceNameEditPartCN.VISUAL_ID));
- createCompartment(node, UMLVisualIDRegistry.getType(DeviceCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
- PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Device");
- return node;
- }
-
- /**
- * @generated
- */
- public Node createExecutionEnvironment_21(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(ExecutionEnvironmentEditPartCN.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "ExecutionEnvironment");
- Node label22 = createLabel(node, UMLVisualIDRegistry.getType(ExecutionEnvironmentNameEditPartCN.VISUAL_ID));
- return node;
- }
-
- /**
- * @generated
- */
- public Node createExecutionEnvironment_46(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(NestedExecutionEnvironmentEditPartCN.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "ExecutionEnvironment");
- Node label47 = createLabel(node, UMLVisualIDRegistry.getType(NestedExecutionEnvironmentNameEditPartCN.VISUAL_ID));
- createCompartment(node, UMLVisualIDRegistry.getType(ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
- PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "ExecutionEnvironment");
- return node;
- }
-
- /**
- * @generated
- */
- public Node createNode_23(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(NodeEditPartCN.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Node");
- Node label24 = createLabel(node, UMLVisualIDRegistry.getType(NodeNameEditPartCN.VISUAL_ID));
- return node;
- }
-
- /**
- * @generated
- */
- public Node createNode_42(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(NestedNodeEditPartCN.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Node");
- Node label43 = createLabel(node, UMLVisualIDRegistry.getType(NestedNodeNameEditPart.VISUAL_ID));
- createCompartment(node, UMLVisualIDRegistry.getType(NodeCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
- PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Node");
- return node;
- }
-
- /**
- * @generated
- */
- public Node createArtifact_25(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(ArtifactEditPartCN.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Artifact");
- Node label27 = createLabel(node, UMLVisualIDRegistry.getType(ArtifactNameEditPartCN.VISUAL_ID));
- Node label59 = createLabel(node, UMLVisualIDRegistry.getType(ArtifactFloatingLabelEditPartCN.VISUAL_ID));
- label59.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
- Location location59 = (Location) label59.getLayoutConstraint();
- location59.setX(25);
- location59.setY(0);
- createCompartment(node, UMLVisualIDRegistry.getType(ArtifactCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
- PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Artifact");
- return node;
- }
-
- /**
- * @generated
- */
- public Node createArtifact_28(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(ArtifactEditPartACN.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Artifact");
- Node label29 = createLabel(node, UMLVisualIDRegistry.getType(ArtifactNameEditPartACN.VISUAL_ID));
- Node label60 = createLabel(node, UMLVisualIDRegistry.getType(ArtifactFloatingLabelEditPartACN.VISUAL_ID));
- label60.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
- Location location60 = (Location) label60.getLayoutConstraint();
- location60.setX(25);
- location60.setY(0);
- createCompartment(node, UMLVisualIDRegistry.getType(ArtifactCompositeCompartmentEditPartACN.VISUAL_ID), true, true, false, false);
- PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Artifact");
- return node;
- }
-
- /**
- * @generated
- */
- public Node createArtifact_40(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(NestedArtifactNodeEditPartCN.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Artifact");
- Node label41 = createLabel(node, UMLVisualIDRegistry.getType(NestedArtifactNameEditPart.VISUAL_ID));
- return node;
- }
-
- /**
- * @generated
- */
- public Node createComment_54(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(CommentEditPartCN.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Comment");
- Node label55 = createLabel(node, UMLVisualIDRegistry.getType(CommentBodyEditPartCN.VISUAL_ID));
- return node;
- }
-
- /**
- * @generated
- */
- public Node createConstraint_56(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Shape node = NotationFactory.eINSTANCE.createShape();
- node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
- node.setType(UMLVisualIDRegistry.getType(ConstraintEditPartCN.VISUAL_ID));
- ViewUtil.insertChildView(containerView, node, index, persisted);
- node.setElement(domainElement);
- // initializeFromPreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Constraint");
- Node label57 = createLabel(node, UMLVisualIDRegistry.getType(ConstraintNameEditPartCN.VISUAL_ID));
- Node label58 = createLabel(node, UMLVisualIDRegistry.getType(ConstraintSpecificationEditPartCN.VISUAL_ID));
- return node;
- }
-
- /**
- * @generated
- */
- public Edge createLink_4005(View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Connector edge = NotationFactory.eINSTANCE.createConnector();
- edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
- RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
- List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
- points.add(new RelativeBendpoint());
- points.add(new RelativeBendpoint());
- bendpoints.setPoints(points);
- edge.setBendpoints(bendpoints);
- ViewUtil.insertChildView(containerView, edge, index, persisted);
- edge.setType(UMLVisualIDRegistry.getType(LinkDescriptorEditPart.VISUAL_ID));
- edge.setElement(null);
- // initializePreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- // org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
- // if (routing != null) {
- // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
- // }
-
- return edge;
- }
-
- /**
- * @generated
- */
- public Edge createCommentAnnotatedElement_4008(View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Connector edge = NotationFactory.eINSTANCE.createConnector();
- edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
- RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
- List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
- points.add(new RelativeBendpoint());
- points.add(new RelativeBendpoint());
- bendpoints.setPoints(points);
- edge.setBendpoints(bendpoints);
- ViewUtil.insertChildView(containerView, edge, index, persisted);
- edge.setType(UMLVisualIDRegistry.getType(CommentAnnotatedElementEditPart.VISUAL_ID));
- edge.setElement(null);
- // initializePreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "CommentAnnotatedElement");
- // org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
- // if (routing != null) {
- // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
- // }
-
- return edge;
- }
-
- /**
- * @generated
- */
- public Edge createConstraintConstrainedElement_4009(View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Connector edge = NotationFactory.eINSTANCE.createConnector();
- edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
- RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
- List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
- points.add(new RelativeBendpoint());
- points.add(new RelativeBendpoint());
- bendpoints.setPoints(points);
- edge.setBendpoints(bendpoints);
- ViewUtil.insertChildView(containerView, edge, index, persisted);
- edge.setType(UMLVisualIDRegistry.getType(ConstraintConstrainedElementEditPart.VISUAL_ID));
- edge.setElement(null);
- // initializePreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "ConstraintConstrainedElement");
- // org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
- // if (routing != null) {
- // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
- // }
-
- return edge;
- }
-
- /**
- * @generated
- */
- public Edge createDeployment_4001(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Connector edge = NotationFactory.eINSTANCE.createConnector();
- edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
- RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
- List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
- points.add(new RelativeBendpoint());
- points.add(new RelativeBendpoint());
- bendpoints.setPoints(points);
- edge.setBendpoints(bendpoints);
- ViewUtil.insertChildView(containerView, edge, index, persisted);
- edge.setType(UMLVisualIDRegistry.getType(DeploymentEditPart.VISUAL_ID));
- edge.setElement(domainElement);
- // initializePreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Deployment");
- // org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
- // if (routing != null) {
- // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
- // }
- Node label13 = createLabel(edge, UMLVisualIDRegistry.getType(DeploymentNameEditPart.VISUAL_ID));
- label13.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
- Location location13 = (Location) label13.getLayoutConstraint();
- location13.setX(0);
- location13.setY(60);
- Node label14 = createLabel(edge, UMLVisualIDRegistry.getType(DeploymentAppliedStereotypeEditPart.VISUAL_ID));
- label14.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
- Location location14 = (Location) label14.getLayoutConstraint();
- location14.setX(0);
- location14.setY(60);
-
- PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "Deployment");
- return edge;
- }
-
- /**
- * @generated
- */
- public Edge createManifestation_4002(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Connector edge = NotationFactory.eINSTANCE.createConnector();
- edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
- RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
- List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
- points.add(new RelativeBendpoint());
- points.add(new RelativeBendpoint());
- bendpoints.setPoints(points);
- edge.setBendpoints(bendpoints);
- ViewUtil.insertChildView(containerView, edge, index, persisted);
- edge.setType(UMLVisualIDRegistry.getType(ManifestationEditPart.VISUAL_ID));
- edge.setElement(domainElement);
- // initializePreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Manifestation");
- // org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
- // if (routing != null) {
- // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
- // }
- Node label10 = createLabel(edge, UMLVisualIDRegistry.getType(ManifestationNameEditPart.VISUAL_ID));
- label10.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
- Location location10 = (Location) label10.getLayoutConstraint();
- location10.setX(0);
- location10.setY(60);
- Node label11 = createLabel(edge, UMLVisualIDRegistry.getType(ManifestationAppliedStereotypeEditPart.VISUAL_ID));
- label11.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
- Location location11 = (Location) label11.getLayoutConstraint();
- location11.setX(0);
- location11.setY(30);
-
- PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "Manifestation");
- return edge;
- }
-
- /**
- * @generated
- */
- public Edge createGeneralization_4003(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Connector edge = NotationFactory.eINSTANCE.createConnector();
- edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
- RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
- List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
- points.add(new RelativeBendpoint());
- points.add(new RelativeBendpoint());
- bendpoints.setPoints(points);
- edge.setBendpoints(bendpoints);
- ViewUtil.insertChildView(containerView, edge, index, persisted);
- edge.setType(UMLVisualIDRegistry.getType(GeneralizationEditPart.VISUAL_ID));
- edge.setElement(domainElement);
- // initializePreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Generalization");
- // org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
- // if (routing != null) {
- // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
- // }
- Node label4 = createLabel(edge, UMLVisualIDRegistry.getType(GeneralizationAppliedStereotypeEditPart.VISUAL_ID));
- label4.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
- Location location4 = (Location) label4.getLayoutConstraint();
- location4.setX(0);
- location4.setY(60);
-
- PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "Generalization");
- return edge;
- }
-
- /**
- * @generated
- */
- public Edge createDependency_4004(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Connector edge = NotationFactory.eINSTANCE.createConnector();
- edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
- RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
- List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
- points.add(new RelativeBendpoint());
- points.add(new RelativeBendpoint());
- bendpoints.setPoints(points);
- edge.setBendpoints(bendpoints);
- ViewUtil.insertChildView(containerView, edge, index, persisted);
- edge.setType(UMLVisualIDRegistry.getType(DependencyEditPart.VISUAL_ID));
- edge.setElement(domainElement);
- // initializePreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "DependencyLink");
- // org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
- // if (routing != null) {
- // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
- // }
- Node label12 = createLabel(edge, UMLVisualIDRegistry.getType(DependencyNameEditPart.VISUAL_ID));
- label12.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
- Location location12 = (Location) label12.getLayoutConstraint();
- location12.setX(0);
- location12.setY(40);
- Node label15 = createLabel(edge, UMLVisualIDRegistry.getType(DependencyAppliedStereotypeEditPart.VISUAL_ID));
- label15.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
- Location location15 = (Location) label15.getLayoutConstraint();
- location15.setX(0);
- location15.setY(60);
-
- PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "DependencyLink");
- return edge;
- }
-
- /**
- * @generated
- */
- public Edge createDependency_4010(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
- Connector edge = NotationFactory.eINSTANCE.createConnector();
- edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
- RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
- List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
- points.add(new RelativeBendpoint());
- points.add(new RelativeBendpoint());
- bendpoints.setPoints(points);
- edge.setBendpoints(bendpoints);
- ViewUtil.insertChildView(containerView, edge, index, persisted);
- edge.setType(UMLVisualIDRegistry.getType(DependencyBranchEditPart.VISUAL_ID));
- edge.setElement(domainElement);
- // initializePreferences
- final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
-
- PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "DependencyBranchLink");
- // org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
- // if (routing != null) {
- // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
- // }
-
- return edge;
- }
-
- /**
- * @generated
- */
- protected void stampShortcut(View containerView, Node target) {
- if (!DeploymentDiagramEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID(containerView))) {
- EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE.createEAnnotation();
- shortcutAnnotation.setSource("Shortcut"); //$NON-NLS-1$
- shortcutAnnotation.getDetails().put("modelID", DeploymentDiagramEditPart.MODEL_ID); //$NON-NLS-1$
- target.getEAnnotations().add(shortcutAnnotation);
- }
- }
-
- /**
- * @generated
- */
- protected Node createLabel(View owner, String hint) {
- DecorationNode rv = NotationFactory.eINSTANCE.createDecorationNode();
- rv.setType(hint);
- ViewUtil.insertChildView(owner, rv, ViewUtil.APPEND, true);
- return rv;
- }
-
- /**
- * @generated
- */
- protected Node createCompartment(View owner, String hint, boolean canCollapse, boolean hasTitle, boolean canSort, boolean canFilter) {
- // SemanticListCompartment rv = NotationFactory.eINSTANCE.createSemanticListCompartment();
- // rv.setShowTitle(showTitle);
- // rv.setCollapsed(isCollapsed);
- Node rv;
- if (canCollapse) {
- rv = NotationFactory.eINSTANCE.createBasicCompartment();
- } else {
- rv = NotationFactory.eINSTANCE.createDecorationNode();
- }
-
- rv.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
-
- if (hasTitle) {
- TitleStyle ts = NotationFactory.eINSTANCE.createTitleStyle();
- rv.getStyles().add(ts);
- }
- if (canSort) {
- rv.getStyles().add(NotationFactory.eINSTANCE.createSortingStyle());
- }
- if (canFilter) {
- rv.getStyles().add(NotationFactory.eINSTANCE.createFilteringStyle());
- }
- rv.setType(hint);
- ViewUtil.insertChildView(owner, rv, ViewUtil.APPEND, true);
- return rv;
- }
-
- /**
- * @generated
- */
- protected EObject getSemanticElement(IAdaptable semanticAdapter) {
- if (semanticAdapter == null) {
- return null;
- }
- EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
- if (eObject != null) {
- return EMFCoreUtil.resolve(TransactionUtil.getEditingDomain(eObject), eObject);
- }
- return null;
- }
-
- /**
- * @generated
- */
- protected IElementType getSemanticElementType(IAdaptable semanticAdapter) {
- if (semanticAdapter == null) {
- return null;
- }
- return (IElementType) semanticAdapter.getAdapter(IElementType.class);
- }
-
- /**
- * @generated
- */
- private void initFontStyleFromPrefs(View view, final IPreferenceStore store, String elementName) {
- String fontConstant = PreferencesConstantsHelper.getElementConstant(elementName, PreferencesConstantsHelper.FONT);
- String fontColorConstant = PreferencesConstantsHelper.getElementConstant(elementName, PreferencesConstantsHelper.COLOR_FONT);
-
- FontStyle viewFontStyle = (FontStyle) view.getStyle(NotationPackage.Literals.FONT_STYLE);
- if (viewFontStyle != null)
- {
- FontData fontData = PreferenceConverter.getFontData(store, fontConstant);
- viewFontStyle.setFontName(fontData.getName());
- viewFontStyle.setFontHeight(fontData.getHeight());
- viewFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
- viewFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
-
- org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter.getColor(store, fontColorConstant);
- viewFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB).intValue());
- }
- }
-
- /**
- * @generated
- */
- private void initForegroundFromPrefs(View view, final IPreferenceStore store, String elementName) {
- String lineColorConstant = PreferencesConstantsHelper.getElementConstant(elementName, PreferencesConstantsHelper.COLOR_LINE);
- org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(store, lineColorConstant);
- ViewUtil.setStructuralFeatureValue(view, NotationPackage.eINSTANCE.getLineStyle_LineColor(), FigureUtilities.RGBToInteger(lineRGB));
- }
-
- /**
- * @generated
- */
- private void initBackgroundFromPrefs(View view, final IPreferenceStore store, String elementName) {
- String fillColorConstant = PreferencesConstantsHelper.getElementConstant(elementName, PreferencesConstantsHelper.COLOR_FILL);
- String gradientColorConstant = PreferencesConstantsHelper.getElementConstant(elementName, PreferencesConstantsHelper.COLOR_GRADIENT);
- String gradientPolicyConstant = PreferencesConstantsHelper.getElementConstant(elementName, PreferencesConstantsHelper.GRADIENT_POLICY);
-
-
- org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(store, fillColorConstant);
- ViewUtil.setStructuralFeatureValue(view, NotationPackage.eINSTANCE.getFillStyle_FillColor(), FigureUtilities.RGBToInteger(fillRGB));
-
-
- FillStyle fillStyle = (FillStyle) view
- .getStyle(NotationPackage.Literals.FILL_STYLE);
- fillStyle
- .setFillColor(FigureUtilities.RGBToInteger(fillRGB).intValue());
-
- ;
- if (store.getBoolean(gradientPolicyConstant)) {
- GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(
- store.getString(gradientColorConstant));
- fillStyle.setGradient(gradientPreferenceConverter.getGradientData());
- fillStyle
- .setTransparency(gradientPreferenceConverter.getTransparency());
- }
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.providers;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.ecore.EAnnotation;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EcoreFactory;
+import org.eclipse.emf.transaction.util.TransactionUtil;
+import org.eclipse.gmf.runtime.common.core.service.AbstractProvider;
+import org.eclipse.gmf.runtime.common.core.service.IOperation;
+import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
+import org.eclipse.gmf.runtime.diagram.core.providers.IViewProvider;
+import org.eclipse.gmf.runtime.diagram.core.services.view.CreateDiagramViewOperation;
+import org.eclipse.gmf.runtime.diagram.core.services.view.CreateEdgeViewOperation;
+import org.eclipse.gmf.runtime.diagram.core.services.view.CreateNodeViewOperation;
+import org.eclipse.gmf.runtime.diagram.core.services.view.CreateViewForKindOperation;
+import org.eclipse.gmf.runtime.diagram.core.services.view.CreateViewOperation;
+import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.FigureUtilities;
+import org.eclipse.gmf.runtime.emf.core.util.EMFCoreUtil;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.IHintedType;
+import org.eclipse.gmf.runtime.notation.Connector;
+import org.eclipse.gmf.runtime.notation.DecorationNode;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.gmf.runtime.notation.Edge;
+import org.eclipse.gmf.runtime.notation.FillStyle;
+import org.eclipse.gmf.runtime.notation.FontStyle;
+import org.eclipse.gmf.runtime.notation.Location;
+import org.eclipse.gmf.runtime.notation.MeasurementUnit;
+import org.eclipse.gmf.runtime.notation.Node;
+import org.eclipse.gmf.runtime.notation.NotationFactory;
+import org.eclipse.gmf.runtime.notation.NotationPackage;
+import org.eclipse.gmf.runtime.notation.RelativeBendpoints;
+import org.eclipse.gmf.runtime.notation.Shape;
+import org.eclipse.gmf.runtime.notation.TitleStyle;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.runtime.notation.datatype.RelativeBendpoint;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.preference.PreferenceConverter;
+import org.eclipse.papyrus.infra.extendedtypes.types.IExtendedHintedElementType;
+import org.eclipse.papyrus.infra.extendedtypes.util.ElementTypeUtils;
+import org.eclipse.papyrus.infra.gmfdiag.common.preferences.PreferencesConstantsHelper;
+import org.eclipse.papyrus.infra.gmfdiag.common.reconciler.DiagramVersioningUtils;
+import org.eclipse.papyrus.infra.gmfdiag.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.uml.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPartACN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartACN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartACN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactFloatingLabelEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPartACN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentAnnotatedElementEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentBodyEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentBodyEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintConstrainedElementEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintSpecificationEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintSpecificationEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DefaultNamedElementEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DefaultNamedElementNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyAppliedStereotypeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyBranchEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DependencyNodeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentAppliedStereotypeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentDiagramEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeploymentNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceCompositeCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceCompositeCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentCompositeCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentCompositeCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationAppliedStereotypeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.GeneralizationEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.LinkDescriptorEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationAppliedStereotypeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ManifestationNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelPackageableElementCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelPackageableElementCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.MultiDependencyLabelEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNodeEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeCompositeCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeCompositeCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageNameEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageNameEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackagePackageableElementCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackagePackageableElementCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.FontData;
+
+/**
+ * @generated
+ */
+public class UMLViewProvider extends AbstractProvider implements IViewProvider {
+
+ /**
+ * @generated
+ */
+ @Override
+ public final boolean provides(IOperation operation) {
+ if (operation instanceof CreateViewForKindOperation) {
+ return provides((CreateViewForKindOperation) operation);
+ }
+ assert operation instanceof CreateViewOperation;
+ if (operation instanceof CreateDiagramViewOperation) {
+ return provides((CreateDiagramViewOperation) operation);
+ } else if (operation instanceof CreateEdgeViewOperation) {
+ return provides((CreateEdgeViewOperation) operation);
+ } else if (operation instanceof CreateNodeViewOperation) {
+ return provides((CreateNodeViewOperation) operation);
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean provides(CreateViewForKindOperation op) {
+ /*
+ if (op.getViewKind() == Node.class)
+ return getNodeViewClass(op.getSemanticAdapter(), op.getContainerView(), op.getSemanticHint()) != null;
+ if (op.getViewKind() == Edge.class)
+ return getEdgeViewClass(op.getSemanticAdapter(), op.getContainerView(), op.getSemanticHint()) != null;
+ */
+
+ // check Diagram Type should be the class diagram
+ String modelID = UMLVisualIDRegistry.getModelID(op.getContainerView());
+ if (!getDiagramProvidedId().equals(modelID)) {
+ return false;
+ }
+
+ int visualID = UMLVisualIDRegistry.getVisualID(op.getSemanticHint());
+ if (Node.class.isAssignableFrom(op.getViewKind())) {
+ return UMLVisualIDRegistry.canCreateNode(op.getContainerView(), visualID);
+ }
+
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ protected String getDiagramProvidedId() {
+ /*
+ * Indicates for which diagram this provider works for.
+ * <p>
+ * This method can be overloaded when diagram editor inherits from another one, but should never be <code>null</code>
+ * </p>
+ *
+ * @return the unique identifier of the diagram for which views are provided.
+ */
+ return DeploymentDiagramEditPart.MODEL_ID;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean provides(CreateDiagramViewOperation op) {
+ return DeploymentDiagramEditPart.MODEL_ID.equals(op.getSemanticHint()) && UMLVisualIDRegistry.getDiagramVisualID(getSemanticElement(op.getSemanticAdapter())) != -1;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean provides(CreateNodeViewOperation op) {
+ if (op.getContainerView() == null) {
+ return false;
+ }
+ IElementType elementType = getSemanticElementType(op.getSemanticAdapter());
+ EObject domainElement = getSemanticElement(op.getSemanticAdapter());
+ int visualID;
+ if (op.getSemanticHint() == null) {
+ // Semantic hint is not specified. Can be a result of call from CanonicalEditPolicy.
+ // In this situation there should be NO elementType, visualID will be determined
+ // by VisualIDRegistry.getNodeVisualID() for domainElement.
+ if (elementType != null || domainElement == null) {
+ return false;
+ }
+ visualID = UMLVisualIDRegistry.getNodeVisualID(op.getContainerView(), domainElement);
+ } else {
+ visualID = UMLVisualIDRegistry.getVisualID(op.getSemanticHint());
+ if (elementType != null) {
+
+ if (!UMLElementTypes.isKnownElementType(elementType) || (!(elementType instanceof IHintedType))) {
+ return false; // foreign element type
+ }
+
+ String elementTypeHint = ((IHintedType) elementType).getSemanticHint();
+ if (!op.getSemanticHint().equals(elementTypeHint)) {
+ return false; // if semantic hint is specified it should be the same as in element type
+ }
+ //if (domainElement != null && visualID != org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getNodeVisualID(op.getContainerView(), domainElement)) {
+ // return false; // visual id for node EClass should match visual id from element type
+ //}
+ } else {
+ if (!DeploymentDiagramEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID(op.getContainerView()))) {
+ return false; // foreign diagram
+ }
+ switch (visualID) {
+ case DependencyNodeEditPart.VISUAL_ID:
+ case ConstraintEditPart.VISUAL_ID:
+ case CommentEditPart.VISUAL_ID:
+ case ExecutionEnvironmentEditPart.VISUAL_ID:
+ case DeviceEditPart.VISUAL_ID:
+ case ArtifactEditPart.VISUAL_ID:
+ case NodeEditPart.VISUAL_ID:
+ case DefaultNamedElementEditPart.VISUAL_ID:
+ case CommentEditPartCN.VISUAL_ID:
+ case ConstraintEditPartCN.VISUAL_ID:
+ case ModelEditPart.VISUAL_ID:
+ case PackageEditPart.VISUAL_ID:
+ case ModelEditPartCN.VISUAL_ID:
+ case PackageEditPartCN.VISUAL_ID:
+ case DeviceEditPartCN.VISUAL_ID:
+ case NestedDeviceEditPartCN.VISUAL_ID:
+ case ExecutionEnvironmentEditPartCN.VISUAL_ID:
+ case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
+ case NodeEditPartCN.VISUAL_ID:
+ case NestedNodeEditPartCN.VISUAL_ID:
+ case ArtifactEditPartCN.VISUAL_ID:
+ case ArtifactEditPartACN.VISUAL_ID:
+ case NestedArtifactNodeEditPartCN.VISUAL_ID:
+ if (domainElement == null || visualID != UMLVisualIDRegistry.getNodeVisualID(op.getContainerView(), domainElement)) {
+ return false; // visual id in semantic hint should match visual id for domain element
+ }
+ break;
+ default:
+ return false;
+ }
+ }
+ }
+
+ return UMLVisualIDRegistry.canCreateNode(op.getContainerView(), visualID);
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean provides(CreateEdgeViewOperation op) {
+ IElementType elementType = getSemanticElementType(op.getSemanticAdapter());
+ //RS: add code for extended types creation
+ if (elementType instanceof IExtendedHintedElementType) {
+ IElementType closestNonExtendedType = ElementTypeUtils.getClosestDiagramType(elementType);
+ if (!UMLElementTypes.isKnownElementType(closestNonExtendedType) || (!(closestNonExtendedType instanceof IHintedType))) {
+ return false; // foreign element type.
+ }
+ } else {
+ if (!UMLElementTypes.isKnownElementType(elementType) || (!(elementType instanceof IHintedType))) {
+ return false; // foreign element type
+ }
+ }
+ //if (!org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes.isKnownElementType(elementType) || (!(elementType instanceof org.eclipse.gmf.runtime.emf.type.core.IHintedType))) {
+ // return false; // foreign element type
+ //}
+ // END R.S.
+ String elementTypeHint = ((IHintedType) elementType).getSemanticHint();
+ if (elementTypeHint == null || (op.getSemanticHint() != null && !elementTypeHint.equals(op.getSemanticHint()))) {
+ return false; // our hint is visual id and must be specified, and it should be the same as in element type
+ }
+ //int visualID = org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getVisualID(elementTypeHint);
+ //org.eclipse.emf.ecore.EObject domainElement = getSemanticElement(op.getSemanticAdapter());
+ //if (domainElement != null && visualID != org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry.getLinkWithClassVisualID(domainElement)) {
+ // return false; // visual id for link EClass should match visual id from element type
+ //}
+ return true;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ @SuppressWarnings("unchecked")
+ public Diagram createDiagram(IAdaptable semanticAdapter, String diagramKind, PreferencesHint preferencesHint) {
+ Diagram diagram = NotationFactory.eINSTANCE.createDiagram();
+ DiagramVersioningUtils.stampCurrentVersion(diagram);
+ diagram.getStyles().add(NotationFactory.eINSTANCE.createDiagramStyle());
+ diagram.setType(DeploymentDiagramEditPart.MODEL_ID);
+ diagram.setElement(getSemanticElement(semanticAdapter));
+ diagram.setMeasurementUnit(MeasurementUnit.PIXEL_LITERAL);
+ return diagram;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Node createNode(IAdaptable semanticAdapter, View containerView, String semanticHint, int index, boolean persisted, PreferencesHint preferencesHint) {
+ final EObject domainElement = getSemanticElement(semanticAdapter);
+ final int visualID;
+ if (semanticHint == null) {
+ visualID = UMLVisualIDRegistry.getNodeVisualID(containerView, domainElement);
+ } else {
+ visualID = UMLVisualIDRegistry.getVisualID(semanticHint);
+ }
+ switch (visualID) {
+ case DependencyNodeEditPart.VISUAL_ID:
+ return createDependency_2011(domainElement, containerView, index, persisted, preferencesHint);
+ case ModelEditPart.VISUAL_ID:
+ return createModel_2010(domainElement, containerView, index, persisted, preferencesHint);
+ case PackageEditPart.VISUAL_ID:
+ return createPackage_2009(domainElement, containerView, index, persisted, preferencesHint);
+ case ConstraintEditPart.VISUAL_ID:
+ return createConstraint_2005(domainElement, containerView, index, persisted, preferencesHint);
+ case CommentEditPart.VISUAL_ID:
+ return createComment_2001(domainElement, containerView, index, persisted, preferencesHint);
+ case ExecutionEnvironmentEditPart.VISUAL_ID:
+ return createExecutionEnvironment_2002(domainElement, containerView, index, persisted, preferencesHint);
+ case DeviceEditPart.VISUAL_ID:
+ return createDevice_2003(domainElement, containerView, index, persisted, preferencesHint);
+ case ArtifactEditPart.VISUAL_ID:
+ return createArtifact_2006(domainElement, containerView, index, persisted, preferencesHint);
+ case NodeEditPart.VISUAL_ID:
+ return createNode_2008(domainElement, containerView, index, persisted, preferencesHint);
+ case DefaultNamedElementEditPart.VISUAL_ID:
+ return createNamedElement_2012(domainElement, containerView, index, persisted, preferencesHint);
+ case ModelEditPartCN.VISUAL_ID:
+ return createModel_49(domainElement, containerView, index, persisted, preferencesHint);
+ case PackageEditPartCN.VISUAL_ID:
+ return createPackage_36(domainElement, containerView, index, persisted, preferencesHint);
+ case DeviceEditPartCN.VISUAL_ID:
+ return createDevice_16(domainElement, containerView, index, persisted, preferencesHint);
+ case NestedDeviceEditPartCN.VISUAL_ID:
+ return createDevice_44(domainElement, containerView, index, persisted, preferencesHint);
+ case ExecutionEnvironmentEditPartCN.VISUAL_ID:
+ return createExecutionEnvironment_21(domainElement, containerView, index, persisted, preferencesHint);
+ case NestedExecutionEnvironmentEditPartCN.VISUAL_ID:
+ return createExecutionEnvironment_46(domainElement, containerView, index, persisted, preferencesHint);
+ case NodeEditPartCN.VISUAL_ID:
+ return createNode_23(domainElement, containerView, index, persisted, preferencesHint);
+ case NestedNodeEditPartCN.VISUAL_ID:
+ return createNode_42(domainElement, containerView, index, persisted, preferencesHint);
+ case ArtifactEditPartCN.VISUAL_ID:
+ return createArtifact_25(domainElement, containerView, index, persisted, preferencesHint);
+ case ArtifactEditPartACN.VISUAL_ID:
+ return createArtifact_28(domainElement, containerView, index, persisted, preferencesHint);
+ case NestedArtifactNodeEditPartCN.VISUAL_ID:
+ return createArtifact_40(domainElement, containerView, index, persisted, preferencesHint);
+ case CommentEditPartCN.VISUAL_ID:
+ return createComment_54(domainElement, containerView, index, persisted, preferencesHint);
+ case ConstraintEditPartCN.VISUAL_ID:
+ return createConstraint_56(domainElement, containerView, index, persisted, preferencesHint);
+ }
+ // can't happen, provided #provides(CreateNodeViewOperation) is correct
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Edge createEdge(IAdaptable semanticAdapter, View containerView, String semanticHint, int index, boolean persisted, PreferencesHint preferencesHint) {
+ IElementType elementType = getSemanticElementType(semanticAdapter);
+ String elementTypeHint = ((IHintedType) elementType).getSemanticHint();
+ switch (UMLVisualIDRegistry.getVisualID(elementTypeHint)) {
+ case LinkDescriptorEditPart.VISUAL_ID:
+ return createLink_4005(containerView, index, persisted, preferencesHint);
+ case CommentAnnotatedElementEditPart.VISUAL_ID:
+ return createCommentAnnotatedElement_4008(containerView, index, persisted, preferencesHint);
+ case ConstraintConstrainedElementEditPart.VISUAL_ID:
+ return createConstraintConstrainedElement_4009(containerView, index, persisted, preferencesHint);
+ case DeploymentEditPart.VISUAL_ID:
+ return createDeployment_4001(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
+ case ManifestationEditPart.VISUAL_ID:
+ return createManifestation_4002(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
+ case GeneralizationEditPart.VISUAL_ID:
+ return createGeneralization_4003(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
+ case DependencyEditPart.VISUAL_ID:
+ return createDependency_4004(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
+ case DependencyBranchEditPart.VISUAL_ID:
+ return createDependency_4010(getSemanticElement(semanticAdapter), containerView, index, persisted, preferencesHint);
+ }
+ // can never happen, provided #provides(CreateEdgeViewOperation) is correct
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createDependency_2011(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(DependencyNodeEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DependencyNode");
+ Node label7 = createLabel(node, UMLVisualIDRegistry.getType(MultiDependencyLabelEditPart.VISUAL_ID));
+ label7.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location7 = (Location) label7.getLayoutConstraint();
+ location7.setX(0);
+ location7.setY(5);
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createModel_2010(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ModelEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Model");
+ Node label48 = createLabel(node, UMLVisualIDRegistry.getType(ModelNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(ModelPackageableElementCompartmentEditPart.VISUAL_ID), false, true, false, false);
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Model");
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createPackage_2009(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(PackageEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Package");
+ Node label35 = createLabel(node, UMLVisualIDRegistry.getType(PackageNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(PackagePackageableElementCompartmentEditPart.VISUAL_ID), false, true, false, false);
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Package");
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createConstraint_2005(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ConstraintEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Constraint");
+ Node label2 = createLabel(node, UMLVisualIDRegistry.getType(ConstraintNameEditPart.VISUAL_ID));
+ Node label3 = createLabel(node, UMLVisualIDRegistry.getType(ConstraintSpecificationEditPart.VISUAL_ID));
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createComment_2001(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(CommentEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Comment");
+ Node label1 = createLabel(node, UMLVisualIDRegistry.getType(CommentBodyEditPart.VISUAL_ID));
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createExecutionEnvironment_2002(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ExecutionEnvironmentEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "ExecutionEnvironment");
+ Node label5 = createLabel(node, UMLVisualIDRegistry.getType(ExecutionEnvironmentNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID), false, true, false, false);
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "ExecutionEnvironment");
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createDevice_2003(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(DeviceEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Device");
+ Node label6 = createLabel(node, UMLVisualIDRegistry.getType(DeviceNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(DeviceCompositeCompartmentEditPart.VISUAL_ID), false, true, false, false);
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Device");
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createArtifact_2006(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ArtifactEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Artifact");
+ Node label8 = createLabel(node, UMLVisualIDRegistry.getType(ArtifactNameEditPart.VISUAL_ID));
+ Node label61 = createLabel(node, UMLVisualIDRegistry.getType(ArtifactFloatingLabelEditPart.VISUAL_ID));
+ label61.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location61 = (Location) label61.getLayoutConstraint();
+ location61.setX(25);
+ location61.setY(0);
+ createCompartment(node, UMLVisualIDRegistry.getType(ArtifactCompositeCompartmentEditPart.VISUAL_ID), true, true, false, false);
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Artifact");
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createNode_2008(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(NodeEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Node");
+ Node label9 = createLabel(node, UMLVisualIDRegistry.getType(NodeNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(NodeCompositeCompartmentEditPart.VISUAL_ID), false, true, false, false);
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Node");
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createNamedElement_2012(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(DefaultNamedElementEditPart.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ stampShortcut(containerView, node);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "DefaultNamedElement");
+ Node label53 = createLabel(node, UMLVisualIDRegistry.getType(DefaultNamedElementNameEditPart.VISUAL_ID));
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createModel_49(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ModelEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Model");
+ Node label50 = createLabel(node, UMLVisualIDRegistry.getType(ModelNameEditPartCN.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(ModelPackageableElementCompartmentEditPartCN.VISUAL_ID), false, true, false, false);
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Model");
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createPackage_36(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(PackageEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Package");
+ Node label37 = createLabel(node, UMLVisualIDRegistry.getType(PackageNameEditPartCN.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(PackagePackageableElementCompartmentEditPartCN.VISUAL_ID), false, true, false, false);
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Package");
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createDevice_16(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(DeviceEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Device");
+ Node label20 = createLabel(node, UMLVisualIDRegistry.getType(DeviceNameEditPartCN.VISUAL_ID));
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createDevice_44(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(NestedDeviceEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Device");
+ Node label45 = createLabel(node, UMLVisualIDRegistry.getType(NestedDeviceNameEditPartCN.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(DeviceCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Device");
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createExecutionEnvironment_21(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ExecutionEnvironmentEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "ExecutionEnvironment");
+ Node label22 = createLabel(node, UMLVisualIDRegistry.getType(ExecutionEnvironmentNameEditPartCN.VISUAL_ID));
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createExecutionEnvironment_46(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(NestedExecutionEnvironmentEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "ExecutionEnvironment");
+ Node label47 = createLabel(node, UMLVisualIDRegistry.getType(NestedExecutionEnvironmentNameEditPartCN.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "ExecutionEnvironment");
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createNode_23(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(NodeEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Node");
+ Node label24 = createLabel(node, UMLVisualIDRegistry.getType(NodeNameEditPartCN.VISUAL_ID));
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createNode_42(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(NestedNodeEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Node");
+ Node label43 = createLabel(node, UMLVisualIDRegistry.getType(NestedNodeNameEditPart.VISUAL_ID));
+ createCompartment(node, UMLVisualIDRegistry.getType(NodeCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Node");
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createArtifact_25(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ArtifactEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Artifact");
+ Node label27 = createLabel(node, UMLVisualIDRegistry.getType(ArtifactNameEditPartCN.VISUAL_ID));
+ Node label59 = createLabel(node, UMLVisualIDRegistry.getType(ArtifactFloatingLabelEditPartCN.VISUAL_ID));
+ label59.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location59 = (Location) label59.getLayoutConstraint();
+ location59.setX(25);
+ location59.setY(0);
+ createCompartment(node, UMLVisualIDRegistry.getType(ArtifactCompositeCompartmentEditPartCN.VISUAL_ID), true, true, false, false);
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Artifact");
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createArtifact_28(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ArtifactEditPartACN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Artifact");
+ Node label29 = createLabel(node, UMLVisualIDRegistry.getType(ArtifactNameEditPartACN.VISUAL_ID));
+ Node label60 = createLabel(node, UMLVisualIDRegistry.getType(ArtifactFloatingLabelEditPartACN.VISUAL_ID));
+ label60.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location60 = (Location) label60.getLayoutConstraint();
+ location60.setX(25);
+ location60.setY(0);
+ createCompartment(node, UMLVisualIDRegistry.getType(ArtifactCompositeCompartmentEditPartACN.VISUAL_ID), true, true, false, false);
+ PreferenceInitializerForElementHelper.initCompartmentsStatusFromPrefs(node, prefStore, "Artifact");
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createArtifact_40(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(NestedArtifactNodeEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Artifact");
+ Node label41 = createLabel(node, UMLVisualIDRegistry.getType(NestedArtifactNameEditPart.VISUAL_ID));
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createComment_54(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(CommentEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Comment");
+ Node label55 = createLabel(node, UMLVisualIDRegistry.getType(CommentBodyEditPartCN.VISUAL_ID));
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Node createConstraint_56(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Shape node = NotationFactory.eINSTANCE.createShape();
+ node.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+ node.setType(UMLVisualIDRegistry.getType(ConstraintEditPartCN.VISUAL_ID));
+ ViewUtil.insertChildView(containerView, node, index, persisted);
+ node.setElement(domainElement);
+ // initializeFromPreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(node, prefStore, "Constraint");
+ Node label57 = createLabel(node, UMLVisualIDRegistry.getType(ConstraintNameEditPartCN.VISUAL_ID));
+ Node label58 = createLabel(node, UMLVisualIDRegistry.getType(ConstraintSpecificationEditPartCN.VISUAL_ID));
+ return node;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createLink_4005(View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(LinkDescriptorEditPart.VISUAL_ID));
+ edge.setElement(null);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createCommentAnnotatedElement_4008(View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(CommentAnnotatedElementEditPart.VISUAL_ID));
+ edge.setElement(null);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "CommentAnnotatedElement");
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createConstraintConstrainedElement_4009(View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(ConstraintConstrainedElementEditPart.VISUAL_ID));
+ edge.setElement(null);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "ConstraintConstrainedElement");
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createDeployment_4001(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(DeploymentEditPart.VISUAL_ID));
+ edge.setElement(domainElement);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Deployment");
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+ Node label13 = createLabel(edge, UMLVisualIDRegistry.getType(DeploymentNameEditPart.VISUAL_ID));
+ label13.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location13 = (Location) label13.getLayoutConstraint();
+ location13.setX(0);
+ location13.setY(60);
+ Node label14 = createLabel(edge, UMLVisualIDRegistry.getType(DeploymentAppliedStereotypeEditPart.VISUAL_ID));
+ label14.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location14 = (Location) label14.getLayoutConstraint();
+ location14.setX(0);
+ location14.setY(60);
+
+ PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "Deployment");
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createManifestation_4002(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(ManifestationEditPart.VISUAL_ID));
+ edge.setElement(domainElement);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Manifestation");
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+ Node label10 = createLabel(edge, UMLVisualIDRegistry.getType(ManifestationNameEditPart.VISUAL_ID));
+ label10.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location10 = (Location) label10.getLayoutConstraint();
+ location10.setX(0);
+ location10.setY(60);
+ Node label11 = createLabel(edge, UMLVisualIDRegistry.getType(ManifestationAppliedStereotypeEditPart.VISUAL_ID));
+ label11.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location11 = (Location) label11.getLayoutConstraint();
+ location11.setX(0);
+ location11.setY(30);
+
+ PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "Manifestation");
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createGeneralization_4003(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(GeneralizationEditPart.VISUAL_ID));
+ edge.setElement(domainElement);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "Generalization");
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+ Node label4 = createLabel(edge, UMLVisualIDRegistry.getType(GeneralizationAppliedStereotypeEditPart.VISUAL_ID));
+ label4.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location4 = (Location) label4.getLayoutConstraint();
+ location4.setX(0);
+ location4.setY(60);
+
+ PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "Generalization");
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createDependency_4004(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(DependencyEditPart.VISUAL_ID));
+ edge.setElement(domainElement);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "DependencyLink");
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+ Node label12 = createLabel(edge, UMLVisualIDRegistry.getType(DependencyNameEditPart.VISUAL_ID));
+ label12.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location12 = (Location) label12.getLayoutConstraint();
+ location12.setX(0);
+ location12.setY(40);
+ Node label15 = createLabel(edge, UMLVisualIDRegistry.getType(DependencyAppliedStereotypeEditPart.VISUAL_ID));
+ label15.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location15 = (Location) label15.getLayoutConstraint();
+ location15.setX(0);
+ location15.setY(60);
+
+ PreferenceInitializerForElementHelper.initLabelVisibilityFromPrefs(edge, prefStore, "DependencyLink");
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ public Edge createDependency_4010(EObject domainElement, View containerView, int index, boolean persisted, PreferencesHint preferencesHint) {
+ Connector edge = NotationFactory.eINSTANCE.createConnector();
+ edge.getStyles().add(NotationFactory.eINSTANCE.createFontStyle());
+ RelativeBendpoints bendpoints = NotationFactory.eINSTANCE.createRelativeBendpoints();
+ List<RelativeBendpoint> points = new ArrayList<RelativeBendpoint>(2);
+ points.add(new RelativeBendpoint());
+ points.add(new RelativeBendpoint());
+ bendpoints.setPoints(points);
+ edge.setBendpoints(bendpoints);
+ ViewUtil.insertChildView(containerView, edge, index, persisted);
+ edge.setType(UMLVisualIDRegistry.getType(DependencyBranchEditPart.VISUAL_ID));
+ edge.setElement(domainElement);
+ // initializePreferences
+ final IPreferenceStore prefStore = (IPreferenceStore) preferencesHint.getPreferenceStore();
+
+ PreferenceInitializerForElementHelper.initFontStyleFromPrefs(edge, prefStore, "DependencyBranchLink");
+ //org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ //if (routing != null) {
+ // org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ //}
+
+ return edge;
+ }
+
+ /**
+ * @generated
+ */
+ protected void stampShortcut(View containerView, Node target) {
+ if (!DeploymentDiagramEditPart.MODEL_ID.equals(UMLVisualIDRegistry.getModelID(containerView))) {
+ EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE.createEAnnotation();
+ shortcutAnnotation.setSource("Shortcut"); //$NON-NLS-1$
+ shortcutAnnotation.getDetails().put("modelID", DeploymentDiagramEditPart.MODEL_ID); //$NON-NLS-1$
+ target.getEAnnotations().add(shortcutAnnotation);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected Node createLabel(View owner, String hint) {
+ DecorationNode rv = NotationFactory.eINSTANCE.createDecorationNode();
+ rv.setType(hint);
+ ViewUtil.insertChildView(owner, rv, ViewUtil.APPEND, true);
+ return rv;
+ }
+
+ /**
+ * @generated
+ */
+ protected Node createCompartment(View owner, String hint, boolean canCollapse, boolean hasTitle, boolean canSort, boolean canFilter) {
+ //SemanticListCompartment rv = NotationFactory.eINSTANCE.createSemanticListCompartment();
+ //rv.setShowTitle(showTitle);
+ //rv.setCollapsed(isCollapsed);
+ Node rv;
+ if (canCollapse) {
+ rv = NotationFactory.eINSTANCE.createBasicCompartment();
+ } else {
+ rv = NotationFactory.eINSTANCE.createDecorationNode();
+ }
+
+ rv.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
+
+ if (hasTitle) {
+ TitleStyle ts = NotationFactory.eINSTANCE.createTitleStyle();
+ rv.getStyles().add(ts);
+ }
+ if (canSort) {
+ rv.getStyles().add(NotationFactory.eINSTANCE.createSortingStyle());
+ }
+ if (canFilter) {
+ rv.getStyles().add(NotationFactory.eINSTANCE.createFilteringStyle());
+ }
+ rv.setType(hint);
+ ViewUtil.insertChildView(owner, rv, ViewUtil.APPEND, true);
+ return rv;
+ }
+
+ /**
+ * @generated
+ */
+ protected EObject getSemanticElement(IAdaptable semanticAdapter) {
+ if (semanticAdapter == null) {
+ return null;
+ }
+ EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
+ if (eObject != null) {
+ return EMFCoreUtil.resolve(TransactionUtil.getEditingDomain(eObject), eObject);
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ protected IElementType getSemanticElementType(IAdaptable semanticAdapter) {
+ if (semanticAdapter == null) {
+ return null;
+ }
+ return (IElementType) semanticAdapter.getAdapter(IElementType.class);
+ }
+
+ /**
+ * @generated
+ */
+ private void initFontStyleFromPrefs(View view, final IPreferenceStore store, String elementName) {
+ String fontConstant = PreferencesConstantsHelper.getElementConstant(elementName, PreferencesConstantsHelper.FONT);
+ String fontColorConstant = PreferencesConstantsHelper.getElementConstant(elementName, PreferencesConstantsHelper.COLOR_FONT);
+
+ FontStyle viewFontStyle = (FontStyle) view.getStyle(NotationPackage.Literals.FONT_STYLE);
+ if (viewFontStyle != null) {
+ FontData fontData = PreferenceConverter.getFontData(store, fontConstant);
+ viewFontStyle.setFontName(fontData.getName());
+ viewFontStyle.setFontHeight(fontData.getHeight());
+ viewFontStyle.setBold((fontData.getStyle() & SWT.BOLD) != 0);
+ viewFontStyle.setItalic((fontData.getStyle() & SWT.ITALIC) != 0);
+
+ org.eclipse.swt.graphics.RGB fontRGB = PreferenceConverter.getColor(store, fontColorConstant);
+ viewFontStyle.setFontColor(FigureUtilities.RGBToInteger(fontRGB).intValue());
+ }
+ }
+
+ /**
+ * @generated
+ */
+ private void initForegroundFromPrefs(View view, final IPreferenceStore store, String elementName) {
+ String lineColorConstant = PreferencesConstantsHelper.getElementConstant(elementName, PreferencesConstantsHelper.COLOR_LINE);
+ org.eclipse.swt.graphics.RGB lineRGB = PreferenceConverter.getColor(store, lineColorConstant);
+ ViewUtil.setStructuralFeatureValue(view, NotationPackage.eINSTANCE.getLineStyle_LineColor(), FigureUtilities.RGBToInteger(lineRGB));
+ }
+
+ /**
+ * @generated
+ */
+ private void initBackgroundFromPrefs(View view, final IPreferenceStore store, String elementName) {
+ String fillColorConstant = PreferencesConstantsHelper.getElementConstant(elementName, PreferencesConstantsHelper.COLOR_FILL);
+ String gradientColorConstant = PreferencesConstantsHelper.getElementConstant(elementName, PreferencesConstantsHelper.COLOR_GRADIENT);
+ String gradientPolicyConstant = PreferencesConstantsHelper.getElementConstant(elementName, PreferencesConstantsHelper.GRADIENT_POLICY);
+
+
+ org.eclipse.swt.graphics.RGB fillRGB = PreferenceConverter.getColor(store, fillColorConstant);
+ ViewUtil.setStructuralFeatureValue(view, NotationPackage.eINSTANCE.getFillStyle_FillColor(), FigureUtilities.RGBToInteger(fillRGB));
+
+
+ FillStyle fillStyle = (FillStyle) view
+ .getStyle(NotationPackage.Literals.FILL_STYLE);
+ fillStyle
+ .setFillColor(FigureUtilities.RGBToInteger(fillRGB).intValue());
+
+ ;
+ if (store.getBoolean(gradientPolicyConstant)) {
+ GradientPreferenceConverter gradientPreferenceConverter = new GradientPreferenceConverter(
+ store.getString(gradientColorConstant));
+ fillStyle.setGradient(gradientPreferenceConverter.getGradientData());
+ fillStyle
+ .setTransparency(gradientPreferenceConverter.getTransparency());
+ }
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLPropertySection.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLPropertySection.java
index fcc55381e8f..ff6ecb2e31d 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLPropertySection.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLPropertySection.java
@@ -1,32 +1,32 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.sheet;
-
-import org.eclipse.gmf.tooling.runtime.sheet.DefaultPropertySection;
-import org.eclipse.ui.views.properties.IPropertySourceProvider;
-
-/**
- * @generated
- */
-public class UMLPropertySection extends DefaultPropertySection implements IPropertySourceProvider {
-
- /**
- * Modify/unwrap selection.
- *
- * @generated
- */
- @Override
- protected Object transformSelection(Object selected) {
- selected = /* super. */transformSelectionToDomain(selected);
- return selected;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.sheet;
+
+import org.eclipse.gmf.tooling.runtime.sheet.DefaultPropertySection;
+import org.eclipse.ui.views.properties.IPropertySourceProvider;
+
+/**
+ * @generated
+ */
+public class UMLPropertySection extends DefaultPropertySection implements IPropertySourceProvider {
+
+ /**
+ * Modify/unwrap selection.
+ *
+ * @generated
+ */
+ @Override
+ protected Object transformSelection(Object selected) {
+ selected = /*super.*/transformSelectionToDomain(selected);
+ return selected;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLSheetLabelProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLSheetLabelProvider.java
index 68380e6bde4..31f8e16513f 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLSheetLabelProvider.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment/src/org/eclipse/papyrus/uml/diagram/deployment/sheet/UMLSheetLabelProvider.java
@@ -1,88 +1,86 @@
-/**
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- */
-package org.eclipse.papyrus.uml.diagram.deployment.sheet;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.jface.viewers.BaseLabelProvider;
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
-import org.eclipse.swt.graphics.Image;
-
-/**
- * @generated
- */
-public class UMLSheetLabelProvider extends BaseLabelProvider implements ILabelProvider {
-
- /**
- * @generated
- */
- @Override
- public String getText(Object element) {
- element = unwrap(element);
- IElementType etype = getElementType(getView(element));
- return etype == null ? "" : etype.getDisplayName();
- }
-
- /**
- * @generated
- */
- @Override
- public Image getImage(Object element) {
- IElementType etype = getElementType(getView(unwrap(element)));
- return etype == null ? null : UMLElementTypes.getImage(etype);
- }
-
- /**
- * @generated
- */
- private Object unwrap(Object element) {
- if (element instanceof IStructuredSelection) {
- return ((IStructuredSelection) element).getFirstElement();
- }
- return element;
- }
-
- /**
- * @generated
- */
- private View getView(Object element) {
- if (element instanceof View) {
- return (View) element;
- }
- if (element instanceof IAdaptable) {
- return (View) ((IAdaptable) element).getAdapter(View.class);
- }
- return null;
- }
-
- /**
- * @generated
- */
- private IElementType getElementType(View view) {
- // For intermediate views climb up the containment hierarchy to find the one associated with an element type.
- while (view != null) {
- int vid = UMLVisualIDRegistry.getVisualID(view);
- IElementType etype =
- UMLElementTypes.getElementType(vid);
- if (etype != null) {
- return etype;
- }
- view = view.eContainer() instanceof View ?
- (View) view.eContainer() : null;
- }
- return null;
- }
-}
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.uml.diagram.deployment.sheet;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.viewers.BaseLabelProvider;
+import org.eclipse.jface.viewers.ILabelProvider;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.papyrus.uml.diagram.deployment.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.swt.graphics.Image;
+
+/**
+ * @generated
+ */
+public class UMLSheetLabelProvider extends BaseLabelProvider implements ILabelProvider {
+
+ /**
+ * @generated
+ */
+ @Override
+ public String getText(Object element) {
+ element = unwrap(element);
+ IElementType etype = getElementType(getView(element));
+ return etype == null ? "" : etype.getDisplayName();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public Image getImage(Object element) {
+ IElementType etype = getElementType(getView(unwrap(element)));
+ return etype == null ? null : UMLElementTypes.getImage(etype);
+ }
+
+ /**
+ * @generated
+ */
+ private Object unwrap(Object element) {
+ if (element instanceof IStructuredSelection) {
+ return ((IStructuredSelection) element).getFirstElement();
+ }
+ return element;
+ }
+
+ /**
+ * @generated
+ */
+ private View getView(Object element) {
+ if (element instanceof View) {
+ return (View) element;
+ }
+ if (element instanceof IAdaptable) {
+ return (View) ((IAdaptable) element).getAdapter(View.class);
+ }
+ return null;
+ }
+
+ /**
+ * @generated
+ */
+ private IElementType getElementType(View view) {
+ // For intermediate views climb up the containment hierarchy to find the one associated with an element type.
+ while (view != null) {
+ int vid = UMLVisualIDRegistry.getVisualID(view);
+ IElementType etype = UMLElementTypes.getElementType(vid);
+ if (etype != null) {
+ return etype;
+ }
+ view = view.eContainer() instanceof View ? (View) view.eContainer() : null;
+ }
+ return null;
+ }
+}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/custom-src/org/eclipse/papyrus/uml/diagram/profile/custom/commands/CustomSemanticCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/custom-src/org/eclipse/papyrus/uml/diagram/profile/custom/commands/CustomSemanticCreateCommand.java
index 0618b1603a0..b699c55f184 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/custom-src/org/eclipse/papyrus/uml/diagram/profile/custom/commands/CustomSemanticCreateCommand.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/custom-src/org/eclipse/papyrus/uml/diagram/profile/custom/commands/CustomSemanticCreateCommand.java
@@ -31,6 +31,8 @@ import org.eclipse.gmf.runtime.common.core.command.CommandResult;
import org.eclipse.gmf.runtime.common.core.command.CompositeCommand;
import org.eclipse.gmf.runtime.common.core.command.ICommand;
import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.papyrus.infra.core.services.ServiceException;
@@ -39,6 +41,7 @@ import org.eclipse.papyrus.infra.services.labelprovider.service.LabelProviderSer
import org.eclipse.papyrus.infra.widgets.editors.MultipleValueSelectorDialog;
import org.eclipse.papyrus.infra.widgets.selectors.ReferenceSelector;
import org.eclipse.papyrus.uml.diagram.common.Activator;
+import org.eclipse.papyrus.uml.diagram.profile.custom.helper.MetaclassHelper;
import org.eclipse.papyrus.uml.diagram.profile.custom.messages.Messages;
import org.eclipse.papyrus.uml.diagram.profile.custom.requests.CustomCreateElementRequestAdapter;
import org.eclipse.papyrus.uml.tools.providers.UMLMetaclassContentProvider;
@@ -110,7 +113,6 @@ public class CustomSemanticCreateCommand extends AbstractTransactionalCommand {
}
ILabelProvider labelProvider = serv.getLabelProvider();
selector.setLabelProvider(labelProvider);
-
// EList<PackageableElement> importedElement = profile.getImportedElements();
// we don't set initial selection to allows to draw new instance of imported metaclass
final List<EObject> alreadyImportedElement = new ArrayList<EObject>();
@@ -119,21 +121,26 @@ public class CustomSemanticCreateCommand extends AbstractTransactionalCommand {
// alreadyImportedElement.add(current);
// }
// }
- final MultipleValueSelectorDialog dialog = new MultipleValueSelectorDialog(Display.getDefault().getActiveShell(), selector, Messages.CustomSemanticCreateCommand_SelectMetaclass, true, false, -1);
- dialog.setContextElement(profile);
- dialog.setLabelProvider(labelProvider);
- dialog.setInitialElementSelections(alreadyImportedElement);
-
- if (dialog.open() == IStatus.OK) {
- Object[] selectedMetaclass = dialog.getResult();
- this.addedMetaclasses = Arrays.asList(selectedMetaclass);
- if (!this.addedMetaclasses.isEmpty()) {
- ICommand createElementImportCommand = getImportElementCommand();
- if (createElementImportCommand != null) {
- createElementImportCommand.execute(progressMonitor, info);
- }
- return CommandResult.newOKCommandResult();
+ IEditCommandRequest request = customRequestAdapter.getRequest(0);
+ if (MetaclassHelper.shouldSuppressDialog(request)){
+ this.addedMetaclasses = MetaclassHelper.getSuppressedDialogResult(request);
+ } else {
+ final MultipleValueSelectorDialog dialog = new MultipleValueSelectorDialog(Display.getDefault().getActiveShell(), selector, Messages.CustomSemanticCreateCommand_SelectMetaclass, true, false, -1);
+ dialog.setContextElement(profile);
+ dialog.setLabelProvider(labelProvider);
+ dialog.setInitialElementSelections(alreadyImportedElement);
+
+ if (dialog.open() == IStatus.OK) {
+ Object[] selectedMetaclass = dialog.getResult();
+ this.addedMetaclasses = Arrays.asList(selectedMetaclass);
+ }
+ }
+ if (!this.addedMetaclasses.isEmpty()) {
+ ICommand createElementImportCommand = getImportElementCommand();
+ if (createElementImportCommand != null) {
+ createElementImportCommand.execute(progressMonitor, info);
}
+ return CommandResult.newOKCommandResult();
}
return result;
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/custom-src/org/eclipse/papyrus/uml/diagram/profile/custom/helper/MetaclassHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/custom-src/org/eclipse/papyrus/uml/diagram/profile/custom/helper/MetaclassHelper.java
index ac53b2df11d..a59da3fa0fa 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/custom-src/org/eclipse/papyrus/uml/diagram/profile/custom/helper/MetaclassHelper.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile/custom-src/org/eclipse/papyrus/uml/diagram/profile/custom/helper/MetaclassHelper.java
@@ -16,14 +16,18 @@
package org.eclipse.papyrus.uml.diagram.profile.custom.helper;
+import java.util.List;
+
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gef.EditPart;
import org.eclipse.gef.commands.Command;
import org.eclipse.gef.commands.CompoundCommand;
import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
import org.eclipse.gmf.runtime.emf.type.core.commands.DestroyElementCommand;
import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
import org.eclipse.gmf.runtime.notation.Diagram;
import org.eclipse.gmf.runtime.notation.Node;
import org.eclipse.papyrus.uml.diagram.common.helper.ElementHelper;
@@ -45,6 +49,34 @@ import org.eclipse.uml2.uml.Profile;
public class MetaclassHelper extends ElementHelper {
/**
+ * This parameter is for tests only.
+ * When present in request parameters, the value for this key will be silently
+ * returned from the code that normally opens the dialog.
+ * It allows to emulate different user actions in tests, and should reduce the
+ * usage of @InteractiveTest annotation.
+ */
+ private static final String PARAM_SUPPRESS_DIALOG_WITH_VALUE = MetaclassHelper.class.getName() + ":" + "ImportElementSelectionDialogResult";
+
+ public static boolean shouldSuppressDialog(IEditCommandRequest request) {
+ return request.getParameters().containsKey(PARAM_SUPPRESS_DIALOG_WITH_VALUE);
+ }
+
+ public static boolean shouldSuppressDialog(CreateViewRequest request) {
+ return request.getExtendedData().containsKey(PARAM_SUPPRESS_DIALOG_WITH_VALUE);
+ }
+
+ @SuppressWarnings("unchecked")
+ public static List<Object> getSuppressedDialogResult(IEditCommandRequest request) {
+ Object result = request.getParameter(PARAM_SUPPRESS_DIALOG_WITH_VALUE);
+ return result == null ? null : (List<Object>) result;
+ }
+
+ @SuppressWarnings("unchecked")
+ public static void setupSuppressDialogRequest(CreateViewRequest request, List<Object> importedElements) {
+ request.getExtendedData().put(PARAM_SUPPRESS_DIALOG_WITH_VALUE, importedElements);
+ }
+
+ /**
*
* @param metaclassContainer
* @return the uml profile if it find it
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols/plugin.xml b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols/plugin.xml
index 00f6dcd6f50..7aa330f67ff 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols/plugin.xml
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols/plugin.xml
@@ -77,16 +77,4 @@
</Priority>
</shapeProvider>
</extension>
-<extension
- point="org.eclipse.papyrus.infra.gmfdiag.common.shapeProvider">
- <shapeProvider
- class="org.eclipse.papyrus.uml.diagram.symbols.provider.AcceptEventActionShapeProvider"
- description="Provides the shapes for UMLElement or elements typed by"
- id="org.eclipse.papyrus.uml.diagram.symbols.umlshapeprovider"
- name="UML Element Shape Provider">
- <Priority
- name="Lowest">
- </Priority>
- </shapeProvider>
-</extension>
</plugin>
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols/src/org/eclipse/papyrus/uml/diagram/symbols/provider/AcceptEventActionShapeProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols/src/org/eclipse/papyrus/uml/diagram/symbols/provider/AcceptEventActionShapeProvider.java
deleted file mode 100644
index 09f77a56258..00000000000
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols/src/org/eclipse/papyrus/uml/diagram/symbols/provider/AcceptEventActionShapeProvider.java
+++ /dev/null
@@ -1,224 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010, 2014 CEA LIST and others.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Mickael ADAM (ALL4TEC) mickael.adam@all4tec.net - Initial API and Implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.diagram.symbols.provider;
-
-import java.io.IOException;
-import java.util.Arrays;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.diagram.core.listener.DiagramEventBroker;
-import org.eclipse.gmf.runtime.diagram.core.listener.NotificationListener;
-import org.eclipse.gmf.runtime.draw2d.ui.render.RenderedImage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.infra.emf.utils.BusinessModelResolver;
-import org.eclipse.papyrus.infra.gmfdiag.common.service.shape.AbstractShapeProvider;
-import org.eclipse.papyrus.infra.gmfdiag.common.service.shape.ProviderNotificationManager;
-import org.eclipse.papyrus.uml.diagram.symbols.Activator;
-import org.eclipse.uml2.uml.AcceptEventAction;
-import org.eclipse.uml2.uml.DurationObservation;
-import org.eclipse.uml2.uml.Element;
-import org.eclipse.uml2.uml.Event;
-import org.eclipse.uml2.uml.TimeEvent;
-import org.eclipse.uml2.uml.Trigger;
-import org.eclipse.uml2.uml.TypedElement;
-import org.eclipse.uml2.uml.UMLPackage;
-import org.w3c.dom.svg.SVGDocument;
-
-
-/**
- * Shape Provider for {@link DurationObservation} or for {@link TypedElement} that are typed by an {@link DurationObservation}.
- */
-public class AcceptEventActionShapeProvider extends AbstractShapeProvider {
-
- /** The Constant FLAG_SVG_PATH. */
- private static final String FLAG_SVG_PATH = "/icons/symbols/flag.svg";
-
- /** The Constant HOURGLASS_SVG_PATH. */
- private static final String HOURGLASS_SVG_PATH = "/icons/symbols/hourglass.svg";
-
- /**
- * {@inheritDoc}
- */
- @Override
- public List<RenderedImage> getShapes(EObject view) {
- if (providesShapes(view)) {
- List<SVGDocument> documents = getSVGDocument(view);
-
- if (documents != null) {
- List<RenderedImage> result = new LinkedList<RenderedImage>();
- for (SVGDocument document : documents) {
- try {
- result.add(renderSVGDocument(view, document));
- } catch (IOException ex) {
- Activator.log.error(ex);
- continue;
- }
- }
- return result;
- }
- }
- return null;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public boolean providesShapes(EObject view) {
- if (!(view instanceof View)) {
- return false;
- }
-
- EObject element = ((View) view).getElement();
-
- if (element instanceof AcceptEventAction || (element instanceof TypedElement && ((TypedElement) element).getType() instanceof AcceptEventAction)) {
- return true;
- }// flag and hourglass
-
- return false;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public ProviderNotificationManager createProviderNotificationManager(DiagramEventBroker diagramEventBroker, EObject view, NotificationListener listener) {
- // retrieve semantic element from the view and add a notification listener on the Type feature if the semantic element is a TypedElement
- if (view == null || !(view instanceof View)) {
- return null;
- }
-
- ShapeProviderNotificationManager notificationManager = new ShapeProviderNotificationManager(diagramEventBroker, view, listener);
- return notificationManager;
- }
-
- /**
- * Notification Manager for the {@link AcceptEventActionShapeProvider}.
- */
- public class ShapeProviderNotificationManager extends ProviderNotificationManager implements NotificationListener {
-
- /**
- * Creates a new DurationObservationShapeProviderNotificationManager.
- *
- * @param diagramEventBroker
- * event broker specific to the diargam displaying the shapes.
- * @param view
- * the view from which all elements to listen will be computed.
- * @param listener
- * the listener to which notifications will be forwarded.
- */
- public ShapeProviderNotificationManager(DiagramEventBroker diagramEventBroker, EObject view, NotificationListener listener) {
- super(diagramEventBroker, view, listener);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- protected void registerListeners() {
- if (view == null || !(view instanceof View)) {
- return;
- }
- Object semanticElement = BusinessModelResolver.getInstance().getBusinessModel(view);
- if (semanticElement instanceof Element) {
- diagramEventBroker.addNotificationListener((Element) semanticElement, this);
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void dispose() {
- if (view == null || !(view instanceof View)) {
- return;
- }
- Object semanticElement = BusinessModelResolver.getInstance().getBusinessModel(view);
- if (semanticElement instanceof Element) {
- diagramEventBroker.removeNotificationListener((Element) semanticElement, this);
- }
- super.dispose();
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void notifyChanged(Notification notification) {
- if (listener == null) {
- return;
- }
- if (UMLPackage.eINSTANCE.getTypedElement_Type().equals(notification.getFeature())) {
- listener.notifyChanged(notification);
- }
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public List<SVGDocument> getSVGDocument(EObject view) {
- if (providesShapes(view)) {
- EObject element = ((View) view).getElement();
- URI uri = URI.createPlatformPluginURI("", true);
- if (element instanceof AcceptEventAction || (element instanceof TypedElement && ((TypedElement) element).getType() instanceof AcceptEventAction)) {
- if (isAcceptTimeEventAction((AcceptEventAction) element)) {
- uri = URI.createPlatformPluginURI(org.eclipse.papyrus.infra.gmfdiag.common.Activator.ID + HOURGLASS_SVG_PATH, true);
- } else {
- uri = URI.createPlatformPluginURI(org.eclipse.papyrus.infra.gmfdiag.common.Activator.ID + FLAG_SVG_PATH, true);
- }
- }// flag and hourglass
-
- String path = uri.toString();
- SVGDocument document = getSVGDocument(path);
- if (document == null) {
- return null;
- }
-
- return Arrays.asList(document);
- }
- return null;
- }
-
- /**
- * For AcceptEventAction, test whether the action may be considered as a time event action
- * Come from org.eclipse.papyrus.uml.diagram.activity.helper.CustomAcceptEventActionEditHelper
- *
- * @param action
- * the action to test
- * @return true if action is a time event action
- */
- public static boolean isAcceptTimeEventAction(AcceptEventAction action) {
- if (action.getTriggers() != null) {
- boolean hasTimeEvent = false;
- for (Trigger trigger : action.getTriggers()) {
- if (trigger != null) {
- Event event = trigger.getEvent();
- if (event instanceof TimeEvent) {
- hasTimeEvent = true;
- } else {
- return false;
- }
- }
- }
- // only time events have been encountered, but maybe no event at all.
- return hasTimeEvent;
- }
- return false;
- }
-}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/command/PapyrusModelFromExistingDomainModelCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/command/PapyrusModelFromExistingDomainModelCommand.java
index 2c6d2fb29af..5dd21b27802 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/command/PapyrusModelFromExistingDomainModelCommand.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/command/PapyrusModelFromExistingDomainModelCommand.java
@@ -43,26 +43,26 @@ public class PapyrusModelFromExistingDomainModelCommand extends RecordingCommand
/**
* Instantiates a new papyrus model from existing domain model command.
- *
+ *
* @param diResourceSet
- * the di resource set
+ * the di resource set
* @param newURI
- * the URI of the new model's principal resource
+ * the URI of the new model's principal resource
* @param root
- * the root
+ * the root
*/
public PapyrusModelFromExistingDomainModelCommand(ModelSet modelSet, URI newURI, EObject root) {
super(modelSet.getTransactionalEditingDomain());
myDiResourceSet = modelSet;
myURIWithoutExtension = newURI.trimFileExtension();
// Bug 339504 - [Wizard] NPE when init diagram from an existing model
- modelSet.getInternal().setPrimaryModelResourceURI(myURIWithoutExtension);
+ modelSet.getInternal().setPrimaryModelResourceURI(newURI);
myRoot = root;
}
/*
* (non-Javadoc)
- *
+ *
* @see org.eclipse.emf.transaction.RecordingCommand#doExecute()
*/
@Override
@@ -84,10 +84,10 @@ public class PapyrusModelFromExistingDomainModelCommand extends RecordingCommand
try {
resource = getResourceSet().getResource(resourceURI, true);
} catch (WrappedException e) {
- if(ModelUtils.isDegradedModeAllowed(e.getCause())) {
+ if (ModelUtils.isDegradedModeAllowed(e.getCause())) {
// in this case Papyrus can work in degraded mode
resource = getResourceSet().getResource(resourceURI, false);
- if(resource == null) {
+ if (resource == null) {
throw e;
}
} else {
@@ -100,9 +100,9 @@ public class PapyrusModelFromExistingDomainModelCommand extends RecordingCommand
};
};
myDiResourceSet.getInternal().registerModel(umlModel, true);
- umlModel.createModel((URI)null);
- // // call snippets to allow them to do their stuff
- // snippets.performStart(this);
+ umlModel.createModel((URI) null);
+ // // call snippets to allow them to do their stuff
+ // snippets.performStart(this);
// END OF WORKAROUND for #315083
}
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/messages/Messages.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/messages/Messages.java
index 45ad8dbe007..88301b63cc7 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/messages/Messages.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/messages/Messages.java
@@ -50,6 +50,10 @@ public class Messages extends NLS {
/** The New papyrus project wizard_papyrus_project_desc. */
public static String NewPapyrusProjectWizard_papyrus_project_desc;
+ public static String PapyrusProjectCreationPage_page_same_case_desc;
+
+ public static String PapyrusProjectCreationPage_page_incorrect_desc;
+
/** The Diagram category registry_bad_class_name_of_category. */
public static String DiagramCategoryRegistry_bad_class_name_of_category;
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/messages/messages.properties b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/messages/messages.properties
index b4efe254779..c3db50ee148 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/messages/messages.properties
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/messages/messages.properties
@@ -25,6 +25,8 @@ NewPapyrusProjectWizard_exception_on_opening=Problems during opening of the proj
NewPapyrusProjectWizard_new_papyrus_project=New Papyrus Project
NewPapyrusProjectWizard_papyrus_project=Papyrus Project
NewPapyrusProjectWizard_papyrus_project_desc=Create a New Papyrus Project
+PapyrusProjectCreationPage_page_same_case_desc=There already is a project with this name:
+PapyrusProjectCreationPage_page_incorrect_desc=Please enter a correct name for the new project
DiagramCategoryRegistry_bad_class_name_of_category=Could not find implementation for a diagram category
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/NewModelFilePage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/NewModelFilePage.java
index 222e03d9af2..a5501442382 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/NewModelFilePage.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/NewModelFilePage.java
@@ -14,10 +14,10 @@
package org.eclipse.papyrus.uml.diagram.wizards.pages;
-import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
+import java.util.LinkedList;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
@@ -53,8 +53,6 @@ public class NewModelFilePage extends WizardNewFileCreationPage {
/** The Constant PAGE_ID. */
public static final String PAGE_ID = "NewPapyrusModel"; //$NON-NLS-1$
- private String DefaultDescription;
-
/**
* Instantiates a new new model file page.
*
@@ -80,8 +78,7 @@ public class NewModelFilePage extends WizardNewFileCreationPage {
public NewModelFilePage(String pageId, IStructuredSelection selection, String modelKindName) {
super(pageId, selection);
setTitle(NLS.bind(Messages.NewModelFilePage_3, modelKindName));
- DefaultDescription = NLS.bind(Messages.NewModelFilePage_page_desc, modelKindName);
- setDescription(DefaultDescription);
+ setDescription(NLS.bind(Messages.NewModelFilePage_page_desc, modelKindName));
setFileExtension(DEFAULT_DIAGRAM_EXTENSION);
}
@@ -233,46 +230,58 @@ public class NewModelFilePage extends WizardNewFileCreationPage {
*/
@Override
public boolean canFlipToNextPage() {
- Collection<String> selectionMembers = new ArrayList<String>();
boolean canFlip = true;
- // retrieve the selected elements and get its children
- try {
- IResource iResource = ResourcesPlugin.getWorkspace().getRoot().findMember(getContainerFullPath());
- if (iResource != null) {
- if (iResource instanceof IFolder) {
- IFolder iFolder = (IFolder) iResource;
- selectionMembers = getMembersNames(iFolder.members());
- }
- if (iResource instanceof IProject) {
- IProject iProject = (IProject) iResource;
- selectionMembers = getMembersNames(iProject.members());
- }
- }
- } catch (CoreException e) {
- Activator.log.error(e);
- }
+ String existingModelName = "";
- for (String memberName : selectionMembers) {
- if (getFileName().equalsIgnoreCase(memberName)) {
+ for (String existingName : getExistingNames()) {
+ if (existingName.toLowerCase().equals(getFileName().toLowerCase())) {
canFlip = false;
- this.setDescription(Messages.NewModelFilePage_page_same_case_desc + memberName);
+ existingModelName = existingName;
+ break;
}
}
- if (canFlip) {
- this.setDescription(DefaultDescription);
+ if (!canFlip) {
+ this.setErrorMessage(Messages.NewModelFilePage_page_same_case_desc + existingModelName);
}
+
return canFlip;
}
/**
+ * This method fetches all the IFiles' name in the workspace
+ *
+ * @return
+ * The list of the names
+ */
+ public Collection<String> getExistingNames() {
+ Collection<String> result = new LinkedList<String>();
+
+ try {
+ IResource rootResource = ResourcesPlugin.getWorkspace().getRoot().findMember(getContainerFullPath());
+ // Need to go through all the resources of the selected container to check if there is an homograph
+ if (rootResource.getType() == IResource.PROJECT) {
+ result.addAll(getMembersNames(((IProject) rootResource).members()));
+ }
+ if (rootResource.getType() == IResource.FOLDER) {
+ result.addAll(getMembersNames(((IFolder) rootResource).members()));
+ }
+
+ } catch (CoreException ce) {
+ Activator.log.error(ce);
+ }
+
+ return result;
+ }
+
+ /**
* This method returns the names of the first level children of the selected element
*
* @param membersArray
* @return
*/
public Collection<String> getMembersNames(IResource[] membersArray) {
- Collection<String> membersList = new ArrayList<String>();
+ Collection<String> membersList = new LinkedList<String>();
for (Iterator<IResource> arrayIter = Arrays.asList(membersArray).iterator(); arrayIter.hasNext();) {
IResource iResource = arrayIter.next();
membersList.add(iResource.getName());
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/PapyrusProjectCreationPage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/PapyrusProjectCreationPage.java
index 60747ed11e3..a19ecf82672 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/PapyrusProjectCreationPage.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/PapyrusProjectCreationPage.java
@@ -12,6 +12,8 @@
package org.eclipse.papyrus.uml.diagram.wizards.pages;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.papyrus.uml.diagram.wizards.messages.Messages;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
@@ -31,6 +33,7 @@ public class PapyrusProjectCreationPage extends WizardNewProjectCreationPage {
private Listener fileNameModifyListener = new Listener() {
+ @Override
public void handleEvent(Event e) {
boolean valid = canFlipToNextPage();
setPageComplete(valid);
@@ -47,7 +50,7 @@ public class PapyrusProjectCreationPage extends WizardNewProjectCreationPage {
@Override
public void createControl(Composite parent) {
super.createControl(parent);
- Composite composite = (Composite)getControl();
+ Composite composite = (Composite) getControl();
composite.setLayoutData(new GridData(SWT.FILL, SWT.DOWN, true, false));
GridLayout gridLayout = new GridLayout(1, false);
composite.setLayout(gridLayout);
@@ -64,9 +67,9 @@ public class PapyrusProjectCreationPage extends WizardNewProjectCreationPage {
* Creates the group.
*
* @param parent
- * the parent
+ * the parent
* @param name
- * the name
+ * the name
* @return the group
*/
private static Group createGroup(Composite parent, String name) {
@@ -83,8 +86,8 @@ public class PapyrusProjectCreationPage extends WizardNewProjectCreationPage {
@Override
protected boolean validatePage() {
- if(fileName != null) {
- if(fileName.getText().equals("")) { //$NON-NLS-1$
+ if (fileName != null) {
+ if (fileName.getText().equals("")) { //$NON-NLS-1$
this.setErrorMessage(Messages.PapyrusProjectCreationPage_3);
return false;
}
@@ -97,12 +100,36 @@ public class PapyrusProjectCreationPage extends WizardNewProjectCreationPage {
return fileName.getText();
}
+ /**
+ * This method is used to avoid case conflicts between existing and newly created projects
+ *
+ * @see org.eclipse.jface.wizard.WizardPage#canFlipToNextPage()
+ *
+ * @return
+ */
@Override
public boolean canFlipToNextPage() {
- if(validatePage() && !fileName.getText().equals("")) { //$NON-NLS-1$
- return true;
+ // retrieve the selected elements and get its children
+ boolean canFlip = true;
+
+ if (!validatePage() || fileName.getText().equals("")) { //$NON-NLS-1$
+ canFlip = false;
+ this.setErrorMessage(Messages.PapyrusProjectCreationPage_page_incorrect_desc + this.getProjectName().toLowerCase());
}
- return false;
+
+ IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();
+ if (canFlip != false) {
+ for (IProject iproject : projects) {
+ if (this.getProjectName().equalsIgnoreCase(iproject.getName())) {
+ canFlip = false;
+ this.setErrorMessage(Messages.PapyrusProjectCreationPage_page_same_case_desc + iproject.getName());
+ // A conflict has been found, no need to go further
+ break;
+ }
+ }
+ }
+
+ return canFlip;
}
@Override
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/SelectDiagramCategoryPage.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/SelectDiagramCategoryPage.java
index 3dc54987da0..08b7dfc4fb2 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/SelectDiagramCategoryPage.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/pages/SelectDiagramCategoryPage.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
+ * Copyright (c) 2010, 2015 CEA LIST, Christian W. Damus, and others.
*
*
* All rights reserved. This program and the accompanying materials
@@ -9,6 +9,7 @@
*
* Contributors:
* Tatiana Fesenko (CEA LIST) - Initial API and implementation
+ * Christian W. Damus - bug 466850
*
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.wizards.pages;
@@ -127,7 +128,15 @@ public class SelectDiagramCategoryPage extends WizardPage {
plate.setLayout(gridLayout);
setControl(plate);
createDiagramCategoryForm(plate);
- setPageComplete(validatePage());
+
+ // Bug(466850): Do this later because the new-file page's resource group is not yet created
+ plate.getDisplay().asyncExec(new Runnable() {
+
+ @Override
+ public void run() {
+ setPageComplete(validatePage());
+ }
+ });
}
@Override
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/wizards/CreateModelWizard.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/wizards/CreateModelWizard.java
index 17e1e2c929d..9d5cedbd4e0 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/wizards/CreateModelWizard.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards/src/org/eclipse/papyrus/uml/diagram/wizards/wizards/CreateModelWizard.java
@@ -23,6 +23,8 @@ import java.util.Collections;
import java.util.List;
import java.util.Map;
+import javax.net.ssl.SSLEngineResult.Status;
+
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExtension;
@@ -39,12 +41,15 @@ import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
import org.eclipse.emf.transaction.RecordingCommand;
+import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.jface.dialogs.IDialogSettings;
+import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.jface.wizard.IWizardPage;
import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.osgi.util.NLS;
import org.eclipse.papyrus.infra.core.editor.BackboneException;
import org.eclipse.papyrus.infra.core.extension.commands.IModelCreationCommand;
import org.eclipse.papyrus.infra.core.resource.ModelSet;
@@ -62,6 +67,7 @@ import org.eclipse.papyrus.uml.diagram.wizards.command.InitFromTemplateCommand;
import org.eclipse.papyrus.uml.diagram.wizards.command.NewPapyrusModelCommand;
import org.eclipse.papyrus.uml.diagram.wizards.messages.Messages;
import org.eclipse.papyrus.uml.diagram.wizards.pages.NewModelFilePage;
+import org.eclipse.papyrus.uml.diagram.wizards.pages.PapyrusProjectCreationPage;
import org.eclipse.papyrus.uml.diagram.wizards.pages.SelectDiagramCategoryPage;
import org.eclipse.papyrus.uml.diagram.wizards.pages.SelectDiagramKindPage;
import org.eclipse.papyrus.uml.diagram.wizards.pages.SelectDiagramKindPage.CategoryProvider;
@@ -76,6 +82,7 @@ import org.eclipse.papyrus.uml.tools.commands.ApplyProfileCommand;
import org.eclipse.papyrus.uml.tools.commands.RenameElementCommand;
import org.eclipse.papyrus.uml.tools.model.UmlModel;
import org.eclipse.papyrus.uml.tools.model.UmlUtils;
+import org.eclipse.swt.SWT;
import org.eclipse.ui.IEditorDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IFileEditorInput;
@@ -85,6 +92,7 @@ import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.ide.IDE;
+import org.eclipse.ui.internal.ide.IDEWorkbenchMessages;
import org.eclipse.ui.services.IEvaluationService;
import org.eclipse.uml2.uml.Model;
import org.eclipse.uml2.uml.NamedElement;
@@ -302,10 +310,13 @@ public class CreateModelWizard extends Wizard implements INewWizard {
initProfile(modelSet);
initTemplate(modelSet);
- // openDiagram(newURI);
+ openDiagram(newURI);
+
} catch (ServiceException e) {
Activator.log.error(e);
+ this.selectDiagramKindPage.setErrorMessage(e.getMessage());
return false;
+
} finally {
try {
registry.disposeRegistry();
@@ -919,6 +930,9 @@ public class CreateModelWizard extends Wizard implements INewWizard {
if (page instanceof NewModelFilePage) {
return page.canFlipToNextPage();
}
+ if (page instanceof PapyrusProjectCreationPage) {
+ return page.canFlipToNextPage();
+ }
}
return result;
diff --git a/plugins/uml/modelexplorer/org.eclipse.papyrus.uml.modelexplorer/resource/UMLEdges.creationmenumodel b/plugins/uml/modelexplorer/org.eclipse.papyrus.uml.modelexplorer/resource/UMLEdges.creationmenumodel
index 9175f006969..ea51765545e 100644
--- a/plugins/uml/modelexplorer/org.eclipse.papyrus.uml.modelexplorer/resource/UMLEdges.creationmenumodel
+++ b/plugins/uml/modelexplorer/org.eclipse.papyrus.uml.modelexplorer/resource/UMLEdges.creationmenumodel
@@ -9,7 +9,7 @@
<menu xsi:type="ElementCreationMenuModel:CreateRelationshipMenu" xmi:id="_SYf_xN-uEeOoWMUBUZPOjA" label="Deployment" elementTypeIdRef="org.eclipse.papyrus.uml.Deployment" displayAllRoles="false"/>
<menu xsi:type="ElementCreationMenuModel:CreateRelationshipMenu" xmi:id="_SYf_xd-uEeOoWMUBUZPOjA" label="ElementImport" elementTypeIdRef="org.eclipse.papyrus.uml.ElementImport" displayAllRoles="false"/>
<menu xsi:type="ElementCreationMenuModel:CreateRelationshipMenu" xmi:id="_SYf_xt-uEeOoWMUBUZPOjA" label="Extend" elementTypeIdRef="org.eclipse.papyrus.uml.Extend" displayAllRoles="false"/>
- <menu xsi:type="ElementCreationMenuModel:CreateRelationshipMenu" xmi:id="_SYf_1d-uEeOoWMUBUZPOjA" label="Extension" visible="false" elementTypeIdRef="org.eclipse.papyrus.uml.Extension" displayAllRoles="false"/>
+ <menu xsi:type="ElementCreationMenuModel:CreateRelationshipMenu" xmi:id="_SYf_1d-uEeOoWMUBUZPOjA" label="Extension" visible="true" elementTypeIdRef="org.eclipse.papyrus.uml.Extension" displayAllRoles="false"/>
<menu xsi:type="ElementCreationMenuModel:CreateRelationshipMenu" xmi:id="_SYf_x9-uEeOoWMUBUZPOjA" label="Generalization" elementTypeIdRef="org.eclipse.papyrus.uml.Generalization" displayAllRoles="false"/>
<menu xsi:type="ElementCreationMenuModel:CreateRelationshipMenu" xmi:id="_SYf_yN-uEeOoWMUBUZPOjA" label="Include" elementTypeIdRef="org.eclipse.papyrus.uml.Include" displayAllRoles="false"/>
<menu xsi:type="ElementCreationMenuModel:CreateRelationshipMenu" xmi:id="_SYf_yd-uEeOoWMUBUZPOjA" label="InformationFlow" elementTypeIdRef="org.eclipse.papyrus.uml.InformationFlow" displayAllRoles="false"/>
diff --git a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config/configs/classTreeTable.configuration b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config/configs/classTreeTable.configuration
index 2aa7cac3672..b7093746fd6 100644
--- a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config/configs/classTreeTable.configuration
+++ b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config/configs/classTreeTable.configuration
@@ -8,9 +8,10 @@
<owningRules xmi:id="_vZwgkUr7EeSVGbM3cmVSqQ">
<element href="http://www.eclipse.org/uml2/5.0.0/UML#//Package"/>
</owningRules>
- <categories href="../../../plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#_7wNb49xhEeOqHvRyiN87hA"/>
+ <categories href="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#_7wNb4txhEeOqHvRyiN87hA"/>
+ <categories href="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#_7wNb49xhEeOqHvRyiN87hA"/>
</modelKinds>
</viewpoints>
- <defaultStakeholder href="../../../plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#_7wLmkdxhEeOqHvRyiN87hA"/>
+ <defaultStakeholder href="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#_7wLmkdxhEeOqHvRyiN87hA"/>
<metamodel href="http://www.eclipse.org/uml2/5.0.0/UML#/"/>
</configuration:PapyrusConfiguration>
diff --git a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/build.properties b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/build.properties
index 2ba3bfba0d7..faa6933f888 100644
--- a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/build.properties
+++ b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/build.properties
@@ -5,5 +5,6 @@ bin.includes = META-INF/,\
about.html,\
plugin.xml,\
icons/,\
- plugin.properties
+ plugin.properties,\
+ configs/
src.includes = about.html
diff --git a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/configs/genericTreeTable.configuration b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/configs/genericTreeTable.configuration
new file mode 100755
index 00000000000..32a4b576d6c
--- /dev/null
+++ b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/configs/genericTreeTable.configuration
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration:PapyrusConfiguration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:configuration="http://www.eclipse.org/papyrus/infra/viewpoints/configuration" xmi:id="_ko07IErbEeSdQKzSRatBjg">
+ <viewpoints xsi:type="configuration:PapyrusViewpoint" xmi:id="_xogdoErbEeSdQKzSRatBjg" name="Default Papyrus Viewpoint">
+ <modelKinds xsi:type="configuration:PapyrusSyncTable" xmi:id="_P3J1cEr7EeSVGbM3cmVSqQ" name="Generic Tree Table" icon="platform:/plugin/org.eclipse.papyrus.uml.nattable/icons/uml_generic_table.png" implementationID="PapyrusUMLGenericTreeTable">
+ <modelRules xmi:id="_vZwgkEr7EeSVGbM3cmVSqQ">
+ <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Element"/>
+ </modelRules>
+ <owningRules xmi:id="_vZwgkUr7EeSVGbM3cmVSqQ">
+ <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Element"/>
+ </owningRules>
+ <categories href="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#_7wNb4txhEeOqHvRyiN87hA"/>
+ <categories href="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#_7wNb49xhEeOqHvRyiN87hA"/>
+ </modelKinds>
+ </viewpoints>
+ <defaultStakeholder href="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#_7wLmkdxhEeOqHvRyiN87hA"/>
+ <metamodel href="http://www.eclipse.org/uml2/5.0.0/UML#/"/>
+</configuration:PapyrusConfiguration>
diff --git a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/configs/genericTreeTable.nattableconfiguration b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/configs/genericTreeTable.nattableconfiguration
new file mode 100755
index 00000000000..426d46390e9
--- /dev/null
+++ b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/configs/genericTreeTable.nattableconfiguration
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<nattableconfiguration:TableConfiguration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:nattableaxis="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxis" xmlns:nattableaxisconfiguration="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisconfiguration" xmlns:nattableaxisprovider="http://www.eclipse.org/papyrus/nattable/model/table/nattableaxisprovider" xmlns:nattableconfiguration="http://www.eclipse.org/papyrus/nattable/model/nattableconfiguration" xmlns:nattablelabelprovider="http://www.eclipse.org/papyrus/nattable/model/table/nattablecontentprovider" xmlns:nattablestyle="http://www.eclipse.org/papyrus/nattable/model/table/nattablestyle" xmlns:nattabletester="http://www.eclipse.org/papyrus/nattable/model/table/nattabletester" description="This table allows to display owned element of the context of the table as tree" name="Generic Tree Table" type="PapyrusUMLGenericTreeTable" iconPath="platform:/plugin/org.eclipse.papyrus.uml.nattable/icons/uml_generic_table.png" defaultRowAxisProvider="//@rowAxisProviders.0" defaultColumnAxisProvider="//@columnAxisProviders.0">
+ <styles xsi:type="nattablestyle:TableDisplayStyle" displayStyle="HIERARCHIC_SINGLE_TREE_COLUMN"/>
+ <creationTester xsi:type="nattabletester:JavaTableTester" tester="org.eclipse.papyrus.uml.nattable.tester.isumlelement"/>
+ <rowHeaderAxisConfiguration xsi:type="nattableaxisconfiguration:TableHeaderAxisConfiguration" indexStyle="NUMERIC">
+ <ownedLabelConfigurations xsi:type="nattablelabelprovider:ObjectLabelProviderConfiguration"/>
+ <ownedLabelConfigurations xsi:type="nattablelabelprovider:FeatureLabelProviderConfiguration" displayType="false" displayMultiplicity="false"/>
+ <ownedAxisConfigurations xsi:type="nattableaxisconfiguration:TreeFillingConfiguration" labelProvider="//@rowHeaderAxisConfiguration/@ownedLabelConfigurations.1" labelProviderContext="org.eclipse.papyrus.infra.nattable.header.treefilling.feature.labelprovider">
+ <axisUsedAsAxisProvider xsi:type="nattableaxis:EStructuralFeatureAxis" alias="">
+ <element xsi:type="ecore:EReference" href="http://www.eclipse.org/uml2/5.0.0/UML#//Element/ownedElement"/>
+ </axisUsedAsAxisProvider>
+ </ownedAxisConfigurations>
+ <ownedAxisConfigurations xsi:type="nattableaxisconfiguration:TreeFillingConfiguration" depth="1" labelProvider="//@rowHeaderAxisConfiguration/@ownedLabelConfigurations.1" labelProviderContext="org.eclipse.papyrus.infra.nattable.header.treefilling.feature.labelprovider">
+ <axisUsedAsAxisProvider xsi:type="nattableaxis:EStructuralFeatureAxis" alias="">
+ <element xsi:type="ecore:EReference" href="http://www.eclipse.org/uml2/5.0.0/UML#//Element/ownedElement"/>
+ </axisUsedAsAxisProvider>
+ </ownedAxisConfigurations>
+ <ownedAxisConfigurations xsi:type="nattableaxisconfiguration:TreeFillingConfiguration" depth="2" labelProvider="//@rowHeaderAxisConfiguration/@ownedLabelConfigurations.1" labelProviderContext="org.eclipse.papyrus.infra.nattable.header.treefilling.feature.labelprovider">
+ <axisUsedAsAxisProvider xsi:type="nattableaxis:EStructuralFeatureAxis" alias="">
+ <element xsi:type="ecore:EReference" href="http://www.eclipse.org/uml2/5.0.0/UML#//Element/ownedElement"/>
+ </axisUsedAsAxisProvider>
+ </ownedAxisConfigurations>
+ <axisManagers xsi:type="nattableaxisconfiguration:AxisManagerRepresentation" axisManagerId="org.eclipse.papyrus.infra.uml.nattable.tree.axis.manager" labelProviderContext="org.eclipse.papyrus.infra.nattable.header.labelprovider" headerLabelConfiguration="//@rowHeaderAxisConfiguration/@ownedLabelConfigurations.0" specificAxisConfigurations="//@rowHeaderAxisConfiguration/@ownedAxisConfigurations.0 //@rowHeaderAxisConfiguration/@ownedAxisConfigurations.1 //@rowHeaderAxisConfiguration/@ownedAxisConfigurations.2"/>
+ </rowHeaderAxisConfiguration>
+ <columnHeaderAxisConfiguration xsi:type="nattableaxisconfiguration:TableHeaderAxisConfiguration">
+ <ownedLabelConfigurations xsi:type="nattablelabelprovider:FeatureLabelProviderConfiguration"/>
+ <axisManagers xsi:type="nattableaxisconfiguration:AxisManagerRepresentation" axisManagerId="org.eclipse.papyrus.uml.nattable.feature.axis.manager" labelProviderContext="org.eclipse.papyrus.infra.nattable.header.feature.labelprovider" headerLabelConfiguration="//@columnHeaderAxisConfiguration/@ownedLabelConfigurations.0"/>
+ <axisManagers xsi:type="nattableaxisconfiguration:AxisManagerRepresentation" axisManagerId="org.eclipse.papyrus.uml.nattable.stereotype.property.axis.manager" labelProviderContext="org.eclipse.papyrus.infra.nattable.header.feature.labelprovider" headerLabelConfiguration="//@columnHeaderAxisConfiguration/@ownedLabelConfigurations.0"/>
+ </columnHeaderAxisConfiguration>
+ <columnAxisProviders xsi:type="nattableaxisprovider:SlaveObjectAxisProvider" description="This axis provider provides available columns according to the rows of the table (features of the object displayed on the other axis)" name="UML Feature axis provider">
+ <axis xsi:type="nattableaxis:EStructuralFeatureAxis" manager="//@columnHeaderAxisConfiguration/@axisManagers.0">
+ <element xsi:type="ecore:EAttribute" href="http://www.eclipse.org/uml2/5.0.0/UML#//NamedElement/name"/>
+ </axis>
+ </columnAxisProviders>
+ <rowAxisProviders xsi:type="nattableaxisprovider:MasterObjectAxisProvider" description="This axis provider manages the rows, according to the wanted hierarchy" name="HierarchicalRowAxisManager" disconnectSlave="true"/>
+</nattableconfiguration:TableConfiguration>
diff --git a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/icons/uml_generic_table.png b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/icons/uml_generic_table.png
new file mode 100755
index 00000000000..9e5fd4be268
--- /dev/null
+++ b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/icons/uml_generic_table.png
Binary files differ
diff --git a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/plugin.xml b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/plugin.xml
index ce661696b69..eb3b685876e 100644
--- a/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/plugin.xml
+++ b/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable/plugin.xml
@@ -138,4 +138,18 @@
order="8000">
</configuration>
</extension>
+ <extension
+ point="org.eclipse.papyrus.infra.nattable.configuration">
+ <configuration
+ file="configs/genericTreeTable.nattableconfiguration"
+ type="PapyrusUMLGenericTreeTable">
+ </configuration>
+ </extension>
+ <extension
+ point="org.eclipse.papyrus.infra.viewpoints.policy.custom">
+ <contribution
+ file="configs/genericTreeTable.configuration"
+ original="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration">
+ </contribution>
+ </extension>
</plugin>
diff --git a/plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/pages/PapyrusSearchPage.java b/plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/pages/PapyrusSearchPage.java
index 04c0dcf192c..aa72ea33be6 100644
--- a/plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/pages/PapyrusSearchPage.java
+++ b/plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/pages/PapyrusSearchPage.java
@@ -1385,7 +1385,8 @@ public class PapyrusSearchPage extends DialogPage implements ISearchPage, IRepla
} else {
// One query per di file to avoid one single slow query on many files
ArrayList<AbstractPapyrusQuery> queries = new ArrayList<AbstractPapyrusQuery>(scope.size());
- boolean delay = scope.size() > 1 ? false : true;
+ //boolean delay = scope.size() > 1 ? false : true;
+ boolean delay = false;
for (URI uri : scope) {
Collection<URI> singleScope = new HashSet<URI>();
diff --git a/plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/query/CompositePapyrusQuery.java b/plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/query/CompositePapyrusQuery.java
index f6ef5ab0131..5ae37a324e2 100644
--- a/plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/query/CompositePapyrusQuery.java
+++ b/plugins/uml/org.eclipse.papyrus.uml.search.ui/src/org/eclipse/papyrus/uml/search/ui/query/CompositePapyrusQuery.java
@@ -158,13 +158,15 @@ public class CompositePapyrusQuery extends AbstractPapyrusQuery {
/** Every 100 events fired (prompting 100 results display operation),
* sleep 100ms so the UI doesn't get stuck
*/
- adds++;
- if (adds >= NUMBER_ADDS_BEFORE_SLEEP) {
- adds = 0;
- try {
- Thread.sleep(SLEEP_MILLISECONDS);
- } catch (InterruptedException e) {
- e.printStackTrace();
+ if (delay) {
+ adds++;
+ if (adds >= NUMBER_ADDS_BEFORE_SLEEP) {
+ adds = 0;
+ try {
+ Thread.sleep(SLEEP_MILLISECONDS);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
}
}
}
diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/model/uml-containments.elementtypesconfigurations b/plugins/uml/org.eclipse.papyrus.uml.service.types/model/uml-containments.elementtypesconfigurations
index 2222e347e59..a693005f606 100644
--- a/plugins/uml/org.eclipse.papyrus.uml.service.types/model/uml-containments.elementtypesconfigurations
+++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/model/uml-containments.elementtypesconfigurations
@@ -58,297 +58,766 @@
href="http://www.eclipse.org/uml2/5.0.0/UML#//Package/packagedElement"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_EcQ3QLocEeSsV_IrhqhBPw" name="Expansion Node" identifier="org.eclipse.papyrus.uml.diagram.activity.ExpansionNode_AsInput" hint="ExpansionNode_As_UML::ExpansionRegion::inputElement">
- <iconEntry xmi:id="_Si-6ULocEeSsV_IrhqhBPw" iconPath="/icons/full/obj16/ExpansionNode.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_EcQ3QLocEeSsV_IrhqhBPw"
+ name="Expansion Node"
+ identifier="org.eclipse.papyrus.uml.diagram.activity.ExpansionNode_AsInput"
+ hint="ExpansionNode_As_UML::ExpansionRegion::inputElement">
+ <iconEntry
+ xmi:id="_Si-6ULocEeSsV_IrhqhBPw"
+ iconPath="/icons/full/obj16/ExpansionNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ExpansionNode</specializedTypesID>
- <containerConfiguration xmi:id="_xpxzMLocEeSsV_IrhqhBPw">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//ExpansionRegion/inputElement"/>
+ <containerConfiguration
+ xmi:id="_xpxzMLocEeSsV_IrhqhBPw">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ExpansionRegion/inputElement"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_4YwzsLocEeSsV_IrhqhBPw" name="Expansion Node" identifier="org.eclipse.papyrus.uml.diagram.activity.ExpansionNode_AsOutput" hint="ExpansionNode_As_UML::ExpansionRegion::outputElement">
- <iconEntry xmi:id="_4YwzsbocEeSsV_IrhqhBPw" iconPath="/icons/full/obj16/ExpansionNode.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_4YwzsLocEeSsV_IrhqhBPw"
+ name="Expansion Node"
+ identifier="org.eclipse.papyrus.uml.diagram.activity.ExpansionNode_AsOutput"
+ hint="ExpansionNode_As_UML::ExpansionRegion::outputElement">
+ <iconEntry
+ xmi:id="_4YwzsbocEeSsV_IrhqhBPw"
+ iconPath="/icons/full/obj16/ExpansionNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ExpansionNode</specializedTypesID>
- <containerConfiguration xmi:id="_4YwzsrocEeSsV_IrhqhBPw">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//ExpansionRegion/outputElement"/>
+ <containerConfiguration
+ xmi:id="_4YwzsrocEeSsV_IrhqhBPw">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ExpansionRegion/outputElement"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_9_NrAL6fEeSWor5pKcy9Fw" name="Constraint_As_Pre" identifier="org.eclipse.papyrus.uml.Constraint_As_UML::Action::localPrecondition" hint="UML::Constraint_As_UML::Action::localPrecondition">
- <iconEntry xmi:id="_4JcVAL6gEeSWor5pKcy9Fw" iconPath="/icons/full/obj16/Constraint.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_9_NrAL6fEeSWor5pKcy9Fw"
+ name="Constraint_As_Pre"
+ identifier="org.eclipse.papyrus.uml.Constraint_As_UML::Action::localPrecondition"
+ hint="UML::Constraint_As_UML::Action::localPrecondition">
+ <iconEntry
+ xmi:id="_4JcVAL6gEeSWor5pKcy9Fw"
+ iconPath="/icons/full/obj16/Constraint.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.Constraint</specializedTypesID>
- <containerConfiguration xmi:id="_9i00gL6gEeSWor5pKcy9Fw">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//Action/localPrecondition"/>
+ <containerConfiguration
+ xmi:id="_9i00gL6gEeSWor5pKcy9Fw">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Action/localPrecondition"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_1fLHIL6gEeSWor5pKcy9Fw" name="Constraint_As_Post" identifier="org.eclipse.papyrus.uml.Constraint_As_UML::Action::localPostcondition" hint="UML::Constraint_As_UML::Action::localPostcondition">
- <iconEntry xmi:id="_7d_O8L6gEeSWor5pKcy9Fw" iconPath="/icons/full/obj16/Constraint.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_1fLHIL6gEeSWor5pKcy9Fw"
+ name="Constraint_As_Post"
+ identifier="org.eclipse.papyrus.uml.Constraint_As_UML::Action::localPostcondition"
+ hint="UML::Constraint_As_UML::Action::localPostcondition">
+ <iconEntry
+ xmi:id="_7d_O8L6gEeSWor5pKcy9Fw"
+ iconPath="/icons/full/obj16/Constraint.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.Constraint</specializedTypesID>
- <containerConfiguration xmi:id="_F9kzQL6hEeSWor5pKcy9Fw">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//Action/localPostcondition"/>
+ <containerConfiguration
+ xmi:id="_F9kzQL6hEeSWor5pKcy9Fw">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Action/localPostcondition"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_cBmEEL6hEeSWor5pKcy9Fw" name="DurationConstraint_As_Pre" identifier="org.eclipse.papyrus.uml.DurationConstraint_As_UML::Action::localPrecondition" hint="UML::DurationConstraint_As_UML::Action::localPrecondition">
- <iconEntry xmi:id="_cBmEEb6hEeSWor5pKcy9Fw" iconPath="/icons/full/obj16/DurationConstraint.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_cBmEEL6hEeSWor5pKcy9Fw"
+ name="DurationConstraint_As_Pre"
+ identifier="org.eclipse.papyrus.uml.DurationConstraint_As_UML::Action::localPrecondition"
+ hint="UML::DurationConstraint_As_UML::Action::localPrecondition">
+ <iconEntry
+ xmi:id="_cBmEEb6hEeSWor5pKcy9Fw"
+ iconPath="/icons/full/obj16/DurationConstraint.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.DurationConstraint</specializedTypesID>
- <containerConfiguration xmi:id="_cBmEEr6hEeSWor5pKcy9Fw">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//Action/localPrecondition"/>
+ <containerConfiguration
+ xmi:id="_cBmEEr6hEeSWor5pKcy9Fw">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Action/localPrecondition"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_cBmEE76hEeSWor5pKcy9Fw" name="DurationConstraint_As_Post" identifier="org.eclipse.papyrus.uml.DurationConstraint_As_UML::Action::localPostcondition" hint="UML::DurationConstraint_As_UML::Action::localPostcondition">
- <iconEntry xmi:id="_51aSIL6hEeSWor5pKcy9Fw" iconPath="/icons/full/obj16/DurationConstraint.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_cBmEE76hEeSWor5pKcy9Fw"
+ name="DurationConstraint_As_Post"
+ identifier="org.eclipse.papyrus.uml.DurationConstraint_As_UML::Action::localPostcondition"
+ hint="UML::DurationConstraint_As_UML::Action::localPostcondition">
+ <iconEntry
+ xmi:id="_51aSIL6hEeSWor5pKcy9Fw"
+ iconPath="/icons/full/obj16/DurationConstraint.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.DurationConstraint</specializedTypesID>
- <containerConfiguration xmi:id="_cBmEFb6hEeSWor5pKcy9Fw">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//Action/localPostcondition"/>
+ <containerConfiguration
+ xmi:id="_cBmEFb6hEeSWor5pKcy9Fw">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Action/localPostcondition"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_wT89ML9VEeSdDOiyPlc_Pg" name="TimeConstraint_As_Pre" identifier="org.eclipse.papyrus.uml.TimeConstraint_As_UML::Action::localPrecondition" hint="UML::TimeConstraint_As_UML::Action::localPrecondition">
- <iconEntry xmi:id="_wT89Mb9VEeSdDOiyPlc_Pg" iconPath="/icons/full/obj16/DurationConstraint.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_wT89ML9VEeSdDOiyPlc_Pg"
+ name="TimeConstraint_As_Pre"
+ identifier="org.eclipse.papyrus.uml.TimeConstraint_As_UML::Action::localPrecondition"
+ hint="UML::TimeConstraint_As_UML::Action::localPrecondition">
+ <iconEntry
+ xmi:id="_wT89Mb9VEeSdDOiyPlc_Pg"
+ iconPath="/icons/full/obj16/DurationConstraint.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.TimeConstraint</specializedTypesID>
- <containerConfiguration xmi:id="_wT89Mr9VEeSdDOiyPlc_Pg">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//Action/localPrecondition"/>
+ <containerConfiguration
+ xmi:id="_wT89Mr9VEeSdDOiyPlc_Pg">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Action/localPrecondition"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_wT89M79VEeSdDOiyPlc_Pg" name="TimeConstraint_As_Post" identifier="org.eclipse.papyrus.uml.TimeConstraint_As_UML::Action::localPostcondition" hint="UML::TimeConstraint_As_UML::Action::localPostcondition">
- <iconEntry xmi:id="_wT89NL9VEeSdDOiyPlc_Pg" iconPath="/icons/full/obj16/DurationConstraint.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_wT89M79VEeSdDOiyPlc_Pg"
+ name="TimeConstraint_As_Post"
+ identifier="org.eclipse.papyrus.uml.TimeConstraint_As_UML::Action::localPostcondition"
+ hint="UML::TimeConstraint_As_UML::Action::localPostcondition">
+ <iconEntry
+ xmi:id="_wT89NL9VEeSdDOiyPlc_Pg"
+ iconPath="/icons/full/obj16/DurationConstraint.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.TimeConstraint</specializedTypesID>
- <containerConfiguration xmi:id="_wT89Nb9VEeSdDOiyPlc_Pg">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//Action/localPostcondition"/>
+ <containerConfiguration
+ xmi:id="_wT89Nb9VEeSdDOiyPlc_Pg">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Action/localPostcondition"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_iJLVAL9fEeSNNsF8trqP9g" name="IntervalConstraint_As_Pre" identifier="org.eclipse.papyrus.uml.IntervalConstraint_As_UML::Action::localPrecondition" hint="UML::IntervalConstraint_As_UML::Action::localPrecondition">
- <iconEntry xmi:id="_iJLVAb9fEeSNNsF8trqP9g" iconPath="/icons/full/obj16/DurationConstraint.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_iJLVAL9fEeSNNsF8trqP9g"
+ name="IntervalConstraint_As_Pre"
+ identifier="org.eclipse.papyrus.uml.IntervalConstraint_As_UML::Action::localPrecondition"
+ hint="UML::IntervalConstraint_As_UML::Action::localPrecondition">
+ <iconEntry
+ xmi:id="_iJLVAb9fEeSNNsF8trqP9g"
+ iconPath="/icons/full/obj16/DurationConstraint.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.IntervalConstraint</specializedTypesID>
- <containerConfiguration xmi:id="_iJLVAr9fEeSNNsF8trqP9g">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//Action/localPrecondition"/>
+ <containerConfiguration
+ xmi:id="_iJLVAr9fEeSNNsF8trqP9g">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Action/localPrecondition"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_iJLVA79fEeSNNsF8trqP9g" name="IntervalConstraint_As_Post" identifier="org.eclipse.papyrus.uml.IntervalConstraint_As_UML::Action::localPostcondition" hint="UML::IntervalConstraint_As_UML::Action::localPostcondition">
- <iconEntry xmi:id="_iJLVBL9fEeSNNsF8trqP9g" iconPath="/icons/full/obj16/DurationConstraint.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_iJLVA79fEeSNNsF8trqP9g"
+ name="IntervalConstraint_As_Post"
+ identifier="org.eclipse.papyrus.uml.IntervalConstraint_As_UML::Action::localPostcondition"
+ hint="UML::IntervalConstraint_As_UML::Action::localPostcondition">
+ <iconEntry
+ xmi:id="_iJLVBL9fEeSNNsF8trqP9g"
+ iconPath="/icons/full/obj16/DurationConstraint.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.IntervalConstraint</specializedTypesID>
- <containerConfiguration xmi:id="_iJLVBb9fEeSNNsF8trqP9g">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//Action/localPostcondition"/>
+ <containerConfiguration
+ xmi:id="_iJLVBb9fEeSNNsF8trqP9g">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Action/localPostcondition"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_haR0kNCrEeSPA6G9EAuxLg" identifier="org.eclipse.papyrus.uml.Component_As_UML::Component::packagedElement" name="org.eclipse.papyrus.uml.Component_As_UML" hint="org.eclipse.papyrus.uml.Component_As_UML::Component::packagedElement">
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_haR0kNCrEeSPA6G9EAuxLg"
+ name="org.eclipse.papyrus.uml.Component_As_UML"
+ identifier="org.eclipse.papyrus.uml.Component_As_UML::Component::packagedElement"
+ hint="org.eclipse.papyrus.uml.Component_As_UML::Component::packagedElement">
<specializedTypesID>org.eclipse.papyrus.uml.Component</specializedTypesID>
- <containerConfiguration xmi:id="_yePr4NCrEeSPA6G9EAuxLg">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//Component/packagedElement"/>
+ <containerConfiguration
+ xmi:id="_yePr4NCrEeSPA6G9EAuxLg">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Component/packagedElement"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_rw_ToMwfEeSDe-jctQxSwg" name="UML::Behavior_As_UML::State::doActivity" identifier="org.eclipse.papyrus.uml.Behavior_As_UML::State::doActivity" hint="UML::Behavior_As_UML::State::doActivity">
- <iconEntry xmi:id="_5YbZsMwfEeSDe-jctQxSwg" iconPath="/icons/full/obj16/Behavior.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_rw_ToMwfEeSDe-jctQxSwg"
+ name="UML::Behavior_As_UML::State::doActivity"
+ identifier="org.eclipse.papyrus.uml.Behavior_As_UML::State::doActivity"
+ hint="UML::Behavior_As_UML::State::doActivity">
+ <iconEntry
+ xmi:id="_5YbZsMwfEeSDe-jctQxSwg"
+ iconPath="/icons/full/obj16/Behavior.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.Behavior</specializedTypesID>
- <containerConfiguration xmi:id="_KoAEEMwgEeSDe-jctQxSwg">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//State/doActivity"/>
+ <containerConfiguration
+ xmi:id="_KoAEEMwgEeSDe-jctQxSwg">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//State/doActivity"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_7S3GEMwfEeSDe-jctQxSwg" name="UML::Behavior_As_UML::State::entry" description="" identifier="org.eclipse.papyrus.uml.Behavior_As_UML::State::entry" hint="UML::Behavior_As_UML::State::entry">
- <iconEntry xmi:id="_7S3GEcwfEeSDe-jctQxSwg" iconPath="/icons/full/obj16/Behavior.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_7S3GEMwfEeSDe-jctQxSwg"
+ name="UML::Behavior_As_UML::State::entry"
+ description=""
+ identifier="org.eclipse.papyrus.uml.Behavior_As_UML::State::entry"
+ hint="UML::Behavior_As_UML::State::entry">
+ <iconEntry
+ xmi:id="_7S3GEcwfEeSDe-jctQxSwg"
+ iconPath="/icons/full/obj16/Behavior.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.Behavior</specializedTypesID>
- <containerConfiguration xmi:id="_QapYIMwgEeSDe-jctQxSwg">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//State/entry"/>
+ <containerConfiguration
+ xmi:id="_QapYIMwgEeSDe-jctQxSwg">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//State/entry"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_7eFeoMwfEeSDe-jctQxSwg" name="UML::Behavior_As_UML::State::exit" identifier="org.eclipse.papyrus.uml.Behavior_As_UML::State::exit" hint="UML::Behavior_As_UML::State::exit">
- <iconEntry xmi:id="_7eFeocwfEeSDe-jctQxSwg" iconPath="/icons/full/obj16/Behavior.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_7eFeoMwfEeSDe-jctQxSwg"
+ name="UML::Behavior_As_UML::State::exit"
+ identifier="org.eclipse.papyrus.uml.Behavior_As_UML::State::exit"
+ hint="UML::Behavior_As_UML::State::exit">
+ <iconEntry
+ xmi:id="_7eFeocwfEeSDe-jctQxSwg"
+ iconPath="/icons/full/obj16/Behavior.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.Behavior</specializedTypesID>
- <containerConfiguration xmi:id="_Q3yAEMwgEeSDe-jctQxSwg">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//State/exit"/>
+ <containerConfiguration
+ xmi:id="_Q3yAEMwgEeSDe-jctQxSwg">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//State/exit"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_cFHhsNRkEeS91tsV_VS13w" name="InputPin_As_CallOperationActionTarget" identifier="org.eclipse.papyrus.uml.InputPin_As_UML::CallOperationAction::target" hint="UML::InputPin_As_UML::CallOperationAction::target">
- <iconEntry xmi:id="_SFG_4NRlEeS91tsV_VS13w" iconPath="/icons/full/obj16/InputPin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_cFHhsNRkEeS91tsV_VS13w"
+ name="InputPin_As_CallOperationActionTarget"
+ identifier="org.eclipse.papyrus.uml.InputPin_As_UML::CallOperationAction::target"
+ hint="UML::InputPin_As_UML::CallOperationAction::target">
+ <iconEntry
+ xmi:id="_SFG_4NRlEeS91tsV_VS13w"
+ iconPath="/icons/full/obj16/InputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.InputPin</specializedTypesID>
- <containerConfiguration xmi:id="_40hagNRmEeSVOv5wRpe-fw">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//CallOperationAction/target"/>
+ <containerConfiguration
+ xmi:id="_40hagNRmEeSVOv5wRpe-fw">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//CallOperationAction/target"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_FlO-0NRlEeS91tsV_VS13w" name="ActionInputPin_As_CallOperationActionTarget" identifier="org.eclipse.papyrus.uml.ActionInputPin_As_UML::CallOperationAction::target" hint="UML::ActionInputPin_As_UML::CallOperationAction::target">
- <iconEntry xmi:id="_Sdx-kNRlEeS91tsV_VS13w" iconPath="/icons/full/obj16/ActionInputPin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_FlO-0NRlEeS91tsV_VS13w"
+ name="ActionInputPin_As_CallOperationActionTarget"
+ identifier="org.eclipse.papyrus.uml.ActionInputPin_As_UML::CallOperationAction::target"
+ hint="UML::ActionInputPin_As_UML::CallOperationAction::target">
+ <iconEntry
+ xmi:id="_Sdx-kNRlEeS91tsV_VS13w"
+ iconPath="/icons/full/obj16/ActionInputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ActionInputPin</specializedTypesID>
- <containerConfiguration xmi:id="_Ev5AUNRnEeSVOv5wRpe-fw">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//CallOperationAction/target"/>
+ <containerConfiguration
+ xmi:id="_Ev5AUNRnEeSVOv5wRpe-fw">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//CallOperationAction/target"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_v7964NRlEeS91tsV_VS13w" name="ValuePin_As_CallOperationActionTarget" identifier="org.eclipse.papyrus.uml.ValuePin_As_UML::CallOperationAction::target" hint="UML::ValuePin_As_UML::CallOperationAction::target">
- <iconEntry xmi:id="_v7964dRlEeS91tsV_VS13w" iconPath="/icons/full/obj16/ValuePin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_v7964NRlEeS91tsV_VS13w"
+ name="ValuePin_As_CallOperationActionTarget"
+ identifier="org.eclipse.papyrus.uml.ValuePin_As_UML::CallOperationAction::target"
+ hint="UML::ValuePin_As_UML::CallOperationAction::target">
+ <iconEntry
+ xmi:id="_v7964dRlEeS91tsV_VS13w"
+ iconPath="/icons/full/obj16/ValuePin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ValuePin</specializedTypesID>
- <containerConfiguration xmi:id="_E4Xm4NRnEeSVOv5wRpe-fw">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//CallOperationAction/target"/>
+ <containerConfiguration
+ xmi:id="_E4Xm4NRnEeSVOv5wRpe-fw">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//CallOperationAction/target"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_U92jENRvEeS2r-Rad2ICiQ" name="InputPin_As_Object_In_SendObjectAction" identifier="org.eclipse.papyrus.uml.InputPin_As_UML::SendObjectAction::object" hint="UML::InputPin_As_UML::SendObjectAction::object">
- <iconEntry xmi:id="_U92jEdRvEeS2r-Rad2ICiQ" iconPath="/icons/full/obj16/InputPin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_U92jENRvEeS2r-Rad2ICiQ"
+ name="InputPin_As_Object_In_SendObjectAction"
+ identifier="org.eclipse.papyrus.uml.InputPin_As_UML::SendObjectAction::object"
+ hint="UML::InputPin_As_UML::SendObjectAction::object">
+ <iconEntry
+ xmi:id="_U92jEdRvEeS2r-Rad2ICiQ"
+ iconPath="/icons/full/obj16/InputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.InputPin</specializedTypesID>
- <containerConfiguration xmi:id="_U92jEtRvEeS2r-Rad2ICiQ">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//SendObjectAction/request"/>
+ <containerConfiguration
+ xmi:id="_U92jEtRvEeS2r-Rad2ICiQ">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//SendObjectAction/request"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_U92jE9RvEeS2r-Rad2ICiQ" name="ActionInputPin_As_Object_In_SendObjectAction" identifier="org.eclipse.papyrus.uml.ActionInputPin_As_UML::SendObjectAction::object" hint="UML::ActionInputPin_As_UML::SendObjectAction::object">
- <iconEntry xmi:id="_U92jFNRvEeS2r-Rad2ICiQ" iconPath="/icons/full/obj16/ActionInputPin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_U92jE9RvEeS2r-Rad2ICiQ"
+ name="ActionInputPin_As_Object_In_SendObjectAction"
+ identifier="org.eclipse.papyrus.uml.ActionInputPin_As_UML::SendObjectAction::object"
+ hint="UML::ActionInputPin_As_UML::SendObjectAction::object">
+ <iconEntry
+ xmi:id="_U92jFNRvEeS2r-Rad2ICiQ"
+ iconPath="/icons/full/obj16/ActionInputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ActionInputPin</specializedTypesID>
- <containerConfiguration xmi:id="_9SkuoNRwEeS2r-Rad2ICiQ">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//SendObjectAction/request"/>
+ <containerConfiguration
+ xmi:id="_9SkuoNRwEeS2r-Rad2ICiQ">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//SendObjectAction/request"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_U92jFtRvEeS2r-Rad2ICiQ" name="ValuePin_As_Object_In_SendObjectAction" identifier="org.eclipse.papyrus.uml.ValuePin_As_UML::SendObjectAction::object" hint="UML::ValuePin_As_UML::SendObjectAction::object">
- <iconEntry xmi:id="_U92jF9RvEeS2r-Rad2ICiQ" iconPath="/icons/full/obj16/ValuePin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_U92jFtRvEeS2r-Rad2ICiQ"
+ name="ValuePin_As_Object_In_SendObjectAction"
+ identifier="org.eclipse.papyrus.uml.ValuePin_As_UML::SendObjectAction::object"
+ hint="UML::ValuePin_As_UML::SendObjectAction::object">
+ <iconEntry
+ xmi:id="_U92jF9RvEeS2r-Rad2ICiQ"
+ iconPath="/icons/full/obj16/ValuePin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ValuePin</specializedTypesID>
- <containerConfiguration xmi:id="_9dAdANRwEeS2r-Rad2ICiQ">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//SendObjectAction/request"/>
+ <containerConfiguration
+ xmi:id="_9dAdANRwEeS2r-Rad2ICiQ">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//SendObjectAction/request"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_GS58INRwEeS2r-Rad2ICiQ" name="InputPin_As_Request_In_SendObjectAction" identifier="org.eclipse.papyrus.uml.InputPin_As_UML::SendObjectAction::request" hint="UML::InputPin_As_UML::SendObjectAction::request">
- <iconEntry xmi:id="_GS58IdRwEeS2r-Rad2ICiQ" iconPath="/icons/full/obj16/InputPin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_GS58INRwEeS2r-Rad2ICiQ"
+ name="InputPin_As_Request_In_SendObjectAction"
+ identifier="org.eclipse.papyrus.uml.InputPin_As_UML::SendObjectAction::request"
+ hint="UML::InputPin_As_UML::SendObjectAction::request">
+ <iconEntry
+ xmi:id="_GS58IdRwEeS2r-Rad2ICiQ"
+ iconPath="/icons/full/obj16/InputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.InputPin</specializedTypesID>
- <containerConfiguration xmi:id="_GS58ItRwEeS2r-Rad2ICiQ">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//SendObjectAction/target"/>
+ <containerConfiguration
+ xmi:id="_GS58ItRwEeS2r-Rad2ICiQ">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//SendObjectAction/target"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_GS58I9RwEeS2r-Rad2ICiQ" name="ActionInputPin_As_Request_In_SendObjectAction" identifier="org.eclipse.papyrus.uml.ActionInputPin_As_UML::SendObjectAction::request" hint="UML::ActionInputPin_As_UML::SendObjectAction::request">
- <iconEntry xmi:id="_GS58JNRwEeS2r-Rad2ICiQ" iconPath="/icons/full/obj16/ActionInputPin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_GS58I9RwEeS2r-Rad2ICiQ"
+ name="ActionInputPin_As_Request_In_SendObjectAction"
+ identifier="org.eclipse.papyrus.uml.ActionInputPin_As_UML::SendObjectAction::request"
+ hint="UML::ActionInputPin_As_UML::SendObjectAction::request">
+ <iconEntry
+ xmi:id="_GS58JNRwEeS2r-Rad2ICiQ"
+ iconPath="/icons/full/obj16/ActionInputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ActionInputPin</specializedTypesID>
- <containerConfiguration xmi:id="_GS58JdRwEeS2r-Rad2ICiQ">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//SendObjectAction/target"/>
+ <containerConfiguration
+ xmi:id="_GS58JdRwEeS2r-Rad2ICiQ">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//SendObjectAction/target"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_GS58JtRwEeS2r-Rad2ICiQ" name="ValuePin_As_Request_In_SendObjectAction" identifier="org.eclipse.papyrus.uml.ValuePin_As_UML::SendObjectAction::request" hint="UML::ValuePin_As_UML::SendObjectAction::request">
- <iconEntry xmi:id="_GS58J9RwEeS2r-Rad2ICiQ" iconPath="/icons/full/obj16/ValuePin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_GS58JtRwEeS2r-Rad2ICiQ"
+ name="ValuePin_As_Request_In_SendObjectAction"
+ identifier="org.eclipse.papyrus.uml.ValuePin_As_UML::SendObjectAction::request"
+ hint="UML::ValuePin_As_UML::SendObjectAction::request">
+ <iconEntry
+ xmi:id="_GS58J9RwEeS2r-Rad2ICiQ"
+ iconPath="/icons/full/obj16/ValuePin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ValuePin</specializedTypesID>
- <containerConfiguration xmi:id="_GS58KNRwEeS2r-Rad2ICiQ">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//SendObjectAction/target"/>
+ <containerConfiguration
+ xmi:id="_GS58KNRwEeS2r-Rad2ICiQ">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//SendObjectAction/target"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_wAaYMNR0EeS2r-Rad2ICiQ" name="InputPin_As_Target_In_SendSignalAction" identifier="org.eclipse.papyrus.uml.InputPin_As_UML::SendSignalAction::target" hint="UML::InputPin_As_UML::SendSignalAction::target">
- <iconEntry xmi:id="_wAaYMdR0EeS2r-Rad2ICiQ" iconPath="/icons/full/obj16/InputPin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_wAaYMNR0EeS2r-Rad2ICiQ"
+ name="InputPin_As_Target_In_SendSignalAction"
+ identifier="org.eclipse.papyrus.uml.InputPin_As_UML::SendSignalAction::target"
+ hint="UML::InputPin_As_UML::SendSignalAction::target">
+ <iconEntry
+ xmi:id="_wAaYMdR0EeS2r-Rad2ICiQ"
+ iconPath="/icons/full/obj16/InputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.InputPin</specializedTypesID>
- <containerConfiguration xmi:id="_wAaYMtR0EeS2r-Rad2ICiQ">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//SendSignalAction/target"/>
+ <containerConfiguration
+ xmi:id="_wAaYMtR0EeS2r-Rad2ICiQ">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//SendSignalAction/target"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_wAaYM9R0EeS2r-Rad2ICiQ" name="ActionInputPin_As_Target_In_SendSignalAction" identifier="org.eclipse.papyrus.uml.ActionInputPin_As_UML::SendSignalAction::target" hint="UML::ActionInputPin_As_UML::SendSignalAction::target">
- <iconEntry xmi:id="_wAaYNNR0EeS2r-Rad2ICiQ" iconPath="/icons/full/obj16/ActionInputPin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_wAaYM9R0EeS2r-Rad2ICiQ"
+ name="ActionInputPin_As_Target_In_SendSignalAction"
+ identifier="org.eclipse.papyrus.uml.ActionInputPin_As_UML::SendSignalAction::target"
+ hint="UML::ActionInputPin_As_UML::SendSignalAction::target">
+ <iconEntry
+ xmi:id="_wAaYNNR0EeS2r-Rad2ICiQ"
+ iconPath="/icons/full/obj16/ActionInputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ActionInputPin</specializedTypesID>
- <containerConfiguration xmi:id="_wAaYNdR0EeS2r-Rad2ICiQ">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//SendSignalAction/target"/>
+ <containerConfiguration
+ xmi:id="_wAaYNdR0EeS2r-Rad2ICiQ">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//SendSignalAction/target"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_wAaYNtR0EeS2r-Rad2ICiQ" name="ValuePin_As_Target_In_SendSignalAction" identifier="org.eclipse.papyrus.uml.ValuePin_As_UML::SendSignalAction::target" hint="UML::ValuePin_As_UML::SendSignalAction::target">
- <iconEntry xmi:id="_wAaYN9R0EeS2r-Rad2ICiQ" iconPath="/icons/full/obj16/ValuePin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_wAaYNtR0EeS2r-Rad2ICiQ"
+ name="ValuePin_As_Target_In_SendSignalAction"
+ identifier="org.eclipse.papyrus.uml.ValuePin_As_UML::SendSignalAction::target"
+ hint="UML::ValuePin_As_UML::SendSignalAction::target">
+ <iconEntry
+ xmi:id="_wAaYN9R0EeS2r-Rad2ICiQ"
+ iconPath="/icons/full/obj16/ValuePin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ValuePin</specializedTypesID>
- <containerConfiguration xmi:id="_wAaYONR0EeS2r-Rad2ICiQ">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//SendSignalAction/target"/>
+ <containerConfiguration
+ xmi:id="_wAaYONR0EeS2r-Rad2ICiQ">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//SendSignalAction/target"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_GVKk8NR7EeS2r-Rad2ICiQ" name="OutputPin_As_LoopNodeVariable_In_LoopNode" identifier="org.eclipse.papyrus.uml.OutputPin_As_UML::LoopNode::loopNodeVariable" hint="UML::OutputPin_As_UML::LoopNode::loopNodeVariable">
- <iconEntry xmi:id="_GVKk8dR7EeS2r-Rad2ICiQ" iconPath="/icons/full/obj16/ValuePin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_GVKk8NR7EeS2r-Rad2ICiQ"
+ name="OutputPin_As_LoopNodeVariable_In_LoopNode"
+ identifier="org.eclipse.papyrus.uml.OutputPin_As_UML::LoopNode::loopNodeVariable"
+ hint="UML::OutputPin_As_UML::LoopNode::loopNodeVariable">
+ <iconEntry
+ xmi:id="_GVKk8dR7EeS2r-Rad2ICiQ"
+ iconPath="/icons/full/obj16/ValuePin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.OutputPin</specializedTypesID>
- <containerConfiguration xmi:id="_GVKk8tR7EeS2r-Rad2ICiQ">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//LoopNode/loopVariable"/>
+ <containerConfiguration
+ xmi:id="_GVKk8tR7EeS2r-Rad2ICiQ">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//LoopNode/loopVariable"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_UATp0NR8EeS2r-Rad2ICiQ" name="InputPin_As_InsertAt_In_AddStructuralFeatureValueAction" identifier="org.eclipse.papyrus.uml.InputPin_As_UML::AddStructuralFeatureValueAction::insertAt" hint="UML::InputPin_As_UML::AddStructuralFeatureValueAction::insertAt">
- <iconEntry xmi:id="_UATp0dR8EeS2r-Rad2ICiQ" iconPath="/icons/full/obj16/InputPin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_UATp0NR8EeS2r-Rad2ICiQ"
+ name="InputPin_As_InsertAt_In_AddStructuralFeatureValueAction"
+ identifier="org.eclipse.papyrus.uml.InputPin_As_UML::AddStructuralFeatureValueAction::insertAt"
+ hint="UML::InputPin_As_UML::AddStructuralFeatureValueAction::insertAt">
+ <iconEntry
+ xmi:id="_UATp0dR8EeS2r-Rad2ICiQ"
+ iconPath="/icons/full/obj16/InputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.InputPin</specializedTypesID>
- <containerConfiguration xmi:id="_9IsjcNR8EeS2r-Rad2ICiQ">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//AddStructuralFeatureValueAction/insertAt"/>
+ <containerConfiguration
+ xmi:id="_9IsjcNR8EeS2r-Rad2ICiQ">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//AddStructuralFeatureValueAction/insertAt"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_UATp09R8EeS2r-Rad2ICiQ" name="ActionInputPin_As_InsertAt_In_AddStructuralFeatureValueAction" identifier="org.eclipse.papyrus.uml.ActionInputPin_As_UML::AddStructuralFeatureValueAction::insertAt" hint="UML::ActionInputPin_As_UML::AddStructuralFeatureValueAction::insertAt">
- <iconEntry xmi:id="_UATp1NR8EeS2r-Rad2ICiQ" iconPath="/icons/full/obj16/ActionInputPin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_UATp09R8EeS2r-Rad2ICiQ"
+ name="ActionInputPin_As_InsertAt_In_AddStructuralFeatureValueAction"
+ identifier="org.eclipse.papyrus.uml.ActionInputPin_As_UML::AddStructuralFeatureValueAction::insertAt"
+ hint="UML::ActionInputPin_As_UML::AddStructuralFeatureValueAction::insertAt">
+ <iconEntry
+ xmi:id="_UATp1NR8EeS2r-Rad2ICiQ"
+ iconPath="/icons/full/obj16/ActionInputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ActionInputPin</specializedTypesID>
- <containerConfiguration xmi:id="_VF8mwNR9EeS2r-Rad2ICiQ">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//AddStructuralFeatureValueAction/insertAt"/>
+ <containerConfiguration
+ xmi:id="_VF8mwNR9EeS2r-Rad2ICiQ">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//AddStructuralFeatureValueAction/insertAt"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_UATp1tR8EeS2r-Rad2ICiQ" name="ValuePin_As_InsertAt_In_AddStructuralFeatureValueAction" identifier="org.eclipse.papyrus.uml.ValuePin_As_UML::AddStructuralFeatureValueAction::insertAt" hint="UML::ValuePin_As_UML::AddStructuralFeatureValueAction::insertAt">
- <iconEntry xmi:id="_UATp19R8EeS2r-Rad2ICiQ" iconPath="/icons/full/obj16/ValuePin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_UATp1tR8EeS2r-Rad2ICiQ"
+ name="ValuePin_As_InsertAt_In_AddStructuralFeatureValueAction"
+ identifier="org.eclipse.papyrus.uml.ValuePin_As_UML::AddStructuralFeatureValueAction::insertAt"
+ hint="UML::ValuePin_As_UML::AddStructuralFeatureValueAction::insertAt">
+ <iconEntry
+ xmi:id="_UATp19R8EeS2r-Rad2ICiQ"
+ iconPath="/icons/full/obj16/ValuePin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ValuePin</specializedTypesID>
- <containerConfiguration xmi:id="_VXqo4NR9EeS2r-Rad2ICiQ">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//AddStructuralFeatureValueAction/insertAt"/>
+ <containerConfiguration
+ xmi:id="_VXqo4NR9EeS2r-Rad2ICiQ">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//AddStructuralFeatureValueAction/insertAt"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_CEKbENSBEeSxgPgY51xQ1A" name="InputPin_As_Value_In_AddStructuralFeatureValueAction" identifier="org.eclipse.papyrus.uml.InputPin_As_UML::AddStructuralFeatureValueAction::value" hint="UML::InputPin_As_UML::AddStructuralFeatureValueAction::value">
- <iconEntry xmi:id="_CEKbEdSBEeSxgPgY51xQ1A" iconPath="/icons/full/obj16/InputPin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_CEKbENSBEeSxgPgY51xQ1A"
+ name="InputPin_As_Value_In_AddStructuralFeatureValueAction"
+ identifier="org.eclipse.papyrus.uml.InputPin_As_UML::AddStructuralFeatureValueAction::value"
+ hint="UML::InputPin_As_UML::AddStructuralFeatureValueAction::value">
+ <iconEntry
+ xmi:id="_CEKbEdSBEeSxgPgY51xQ1A"
+ iconPath="/icons/full/obj16/InputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.InputPin</specializedTypesID>
- <containerConfiguration xmi:id="_CEKbEtSBEeSxgPgY51xQ1A">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//WriteStructuralFeatureAction/value"/>
+ <containerConfiguration
+ xmi:id="_CEKbEtSBEeSxgPgY51xQ1A">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//WriteStructuralFeatureAction/value"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_CEKbE9SBEeSxgPgY51xQ1A" name="ActionInputPin_As_Value_In_AddStructuralFeatureValueAction" identifier="org.eclipse.papyrus.uml.ActionInputPin_As_UML::AddStructuralFeatureValueAction::value" hint="UML::ActionInputPin_As_UML::AddStructuralFeatureValueAction::value">
- <iconEntry xmi:id="_CEKbFNSBEeSxgPgY51xQ1A" iconPath="/icons/full/obj16/ActionInputPin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_CEKbE9SBEeSxgPgY51xQ1A"
+ name="ActionInputPin_As_Value_In_AddStructuralFeatureValueAction"
+ identifier="org.eclipse.papyrus.uml.ActionInputPin_As_UML::AddStructuralFeatureValueAction::value"
+ hint="UML::ActionInputPin_As_UML::AddStructuralFeatureValueAction::value">
+ <iconEntry
+ xmi:id="_CEKbFNSBEeSxgPgY51xQ1A"
+ iconPath="/icons/full/obj16/ActionInputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ActionInputPin</specializedTypesID>
- <containerConfiguration xmi:id="_CEKbFdSBEeSxgPgY51xQ1A">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//WriteStructuralFeatureAction/value"/>
+ <containerConfiguration
+ xmi:id="_CEKbFdSBEeSxgPgY51xQ1A">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//WriteStructuralFeatureAction/value"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_CEKbFtSBEeSxgPgY51xQ1A" name="ValuePin_As_Value_In_AddStructuralFeatureValueAction" identifier="org.eclipse.papyrus.uml.ValuePin_As_UML::AddStructuralFeatureValueAction::value" hint="UML::ValuePin_As_UML::AddStructuralFeatureValueAction::value">
- <iconEntry xmi:id="_CEKbF9SBEeSxgPgY51xQ1A" iconPath="/icons/full/obj16/ValuePin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_CEKbFtSBEeSxgPgY51xQ1A"
+ name="ValuePin_As_Value_In_AddStructuralFeatureValueAction"
+ identifier="org.eclipse.papyrus.uml.ValuePin_As_UML::AddStructuralFeatureValueAction::value"
+ hint="UML::ValuePin_As_UML::AddStructuralFeatureValueAction::value">
+ <iconEntry
+ xmi:id="_CEKbF9SBEeSxgPgY51xQ1A"
+ iconPath="/icons/full/obj16/ValuePin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ValuePin</specializedTypesID>
- <containerConfiguration xmi:id="_CEKbGNSBEeSxgPgY51xQ1A">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//WriteStructuralFeatureAction/value"/>
+ <containerConfiguration
+ xmi:id="_CEKbGNSBEeSxgPgY51xQ1A">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//WriteStructuralFeatureAction/value"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_NIgAUNSDEeSxgPgY51xQ1A" name="InputPin_As_InsertAt_In_AddVariableValueAction" identifier="org.eclipse.papyrus.uml.InputPin_As_UML::AddVariableValueAction::insertAt" hint="UML::InputPin_As_UML::AddVariableValueAction::insertAt">
- <iconEntry xmi:id="_NIgAUdSDEeSxgPgY51xQ1A" iconPath="/icons/full/obj16/InputPin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_NIgAUNSDEeSxgPgY51xQ1A"
+ name="InputPin_As_InsertAt_In_AddVariableValueAction"
+ identifier="org.eclipse.papyrus.uml.InputPin_As_UML::AddVariableValueAction::insertAt"
+ hint="UML::InputPin_As_UML::AddVariableValueAction::insertAt">
+ <iconEntry
+ xmi:id="_NIgAUdSDEeSxgPgY51xQ1A"
+ iconPath="/icons/full/obj16/InputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.InputPin</specializedTypesID>
- <containerConfiguration xmi:id="_NIgAUtSDEeSxgPgY51xQ1A">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//AddVariableValueAction/insertAt"/>
+ <containerConfiguration
+ xmi:id="_NIgAUtSDEeSxgPgY51xQ1A">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//AddVariableValueAction/insertAt"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_NIgAU9SDEeSxgPgY51xQ1A" name="ActionInputPin_As_InsertAt_In_AddVariableValueAction" identifier="org.eclipse.papyrus.uml.ActionInputPin_As_UML::AddVariableValueAction::insertAt" hint="UML::ActionInputPin_As_UML::AddVariableValueAction::insertAt">
- <iconEntry xmi:id="_NIgAVNSDEeSxgPgY51xQ1A" iconPath="/icons/full/obj16/ActionInputPin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_NIgAU9SDEeSxgPgY51xQ1A"
+ name="ActionInputPin_As_InsertAt_In_AddVariableValueAction"
+ identifier="org.eclipse.papyrus.uml.ActionInputPin_As_UML::AddVariableValueAction::insertAt"
+ hint="UML::ActionInputPin_As_UML::AddVariableValueAction::insertAt">
+ <iconEntry
+ xmi:id="_NIgAVNSDEeSxgPgY51xQ1A"
+ iconPath="/icons/full/obj16/ActionInputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ActionInputPin</specializedTypesID>
- <containerConfiguration xmi:id="_NIgAVdSDEeSxgPgY51xQ1A">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//AddVariableValueAction/insertAt"/>
+ <containerConfiguration
+ xmi:id="_NIgAVdSDEeSxgPgY51xQ1A">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//AddVariableValueAction/insertAt"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_NIgAVtSDEeSxgPgY51xQ1A" name="ValuePin_As_InsertAt_In_AddVariableValueAction" identifier="org.eclipse.papyrus.uml.ValuePin_As_UML::AddVariableValueAction::insertAt" hint="UML::ValuePin_As_UML::AddVariableValueAction::insertAt">
- <iconEntry xmi:id="_NIgAV9SDEeSxgPgY51xQ1A" iconPath="/icons/full/obj16/ValuePin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_NIgAVtSDEeSxgPgY51xQ1A"
+ name="ValuePin_As_InsertAt_In_AddVariableValueAction"
+ identifier="org.eclipse.papyrus.uml.ValuePin_As_UML::AddVariableValueAction::insertAt"
+ hint="UML::ValuePin_As_UML::AddVariableValueAction::insertAt">
+ <iconEntry
+ xmi:id="_NIgAV9SDEeSxgPgY51xQ1A"
+ iconPath="/icons/full/obj16/ValuePin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ValuePin</specializedTypesID>
- <containerConfiguration xmi:id="_NIgAWNSDEeSxgPgY51xQ1A">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//AddVariableValueAction/insertAt"/>
+ <containerConfiguration
+ xmi:id="_NIgAWNSDEeSxgPgY51xQ1A">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//AddVariableValueAction/insertAt"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_78em8NSHEeSxgPgY51xQ1A" name="InputPin_As_Object_In_StartObjectBehaviorAction" identifier="org.eclipse.papyrus.uml.InputPin_As_UML::StartObjectBehaviorAction::object" hint="UML::InputPin_As_UML::StartObjectBehaviorAction::object">
- <iconEntry xmi:id="_78em8dSHEeSxgPgY51xQ1A" iconPath="/icons/full/obj16/InputPin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_78em8NSHEeSxgPgY51xQ1A"
+ name="InputPin_As_Object_In_StartObjectBehaviorAction"
+ identifier="org.eclipse.papyrus.uml.InputPin_As_UML::StartObjectBehaviorAction::object"
+ hint="UML::InputPin_As_UML::StartObjectBehaviorAction::object">
+ <iconEntry
+ xmi:id="_78em8dSHEeSxgPgY51xQ1A"
+ iconPath="/icons/full/obj16/InputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.InputPin</specializedTypesID>
- <containerConfiguration xmi:id="_78em8tSHEeSxgPgY51xQ1A">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//StartObjectBehaviorAction/object"/>
+ <containerConfiguration
+ xmi:id="_78em8tSHEeSxgPgY51xQ1A">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//StartObjectBehaviorAction/object"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_78em89SHEeSxgPgY51xQ1A" name="ActionInputPin_As_Object_In_StartObjectBehaviorAction" identifier="org.eclipse.papyrus.uml.ActionInputPin_As_UML::StartObjectBehaviorAction::object" hint="UML::ActionInputPin_As_UML::StartObjectBehaviorAction::object">
- <iconEntry xmi:id="_78em9NSHEeSxgPgY51xQ1A" iconPath="/icons/full/obj16/ActionInputPin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_78em89SHEeSxgPgY51xQ1A"
+ name="ActionInputPin_As_Object_In_StartObjectBehaviorAction"
+ identifier="org.eclipse.papyrus.uml.ActionInputPin_As_UML::StartObjectBehaviorAction::object"
+ hint="UML::ActionInputPin_As_UML::StartObjectBehaviorAction::object">
+ <iconEntry
+ xmi:id="_78em9NSHEeSxgPgY51xQ1A"
+ iconPath="/icons/full/obj16/ActionInputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ActionInputPin</specializedTypesID>
- <containerConfiguration xmi:id="_78em9dSHEeSxgPgY51xQ1A">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//StartObjectBehaviorAction/object"/>
+ <containerConfiguration
+ xmi:id="_78em9dSHEeSxgPgY51xQ1A">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//StartObjectBehaviorAction/object"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_78em9tSHEeSxgPgY51xQ1A" name="ValuePin_As_Object_In_StartObjectBehaviorAction" identifier="org.eclipse.papyrus.uml.ValuePin_As_UML::StartObjectBehaviorAction::object" hint="UML::ValuePin_As_UML::StartObjectBehaviorAction::object">
- <iconEntry xmi:id="_78em99SHEeSxgPgY51xQ1A" iconPath="/icons/full/obj16/ValuePin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_78em9tSHEeSxgPgY51xQ1A"
+ name="ValuePin_As_Object_In_StartObjectBehaviorAction"
+ identifier="org.eclipse.papyrus.uml.ValuePin_As_UML::StartObjectBehaviorAction::object"
+ hint="UML::ValuePin_As_UML::StartObjectBehaviorAction::object">
+ <iconEntry
+ xmi:id="_78em99SHEeSxgPgY51xQ1A"
+ iconPath="/icons/full/obj16/ValuePin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ValuePin</specializedTypesID>
- <containerConfiguration xmi:id="_78em-NSHEeSxgPgY51xQ1A">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//StartObjectBehaviorAction/object"/>
+ <containerConfiguration
+ xmi:id="_78em-NSHEeSxgPgY51xQ1A">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//StartObjectBehaviorAction/object"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_qGX2INSJEeSxgPgY51xQ1A" name="InputPin_As_Second_In_TestIdentityAction" identifier="org.eclipse.papyrus.uml.InputPin_As_UML::TestIdentityAction::second" hint="UML::InputPin_As_UML::TestIdentityAction::second">
- <iconEntry xmi:id="_qGX2IdSJEeSxgPgY51xQ1A" iconPath="/icons/full/obj16/InputPin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_qGX2INSJEeSxgPgY51xQ1A"
+ name="InputPin_As_Second_In_TestIdentityAction"
+ identifier="org.eclipse.papyrus.uml.InputPin_As_UML::TestIdentityAction::second"
+ hint="UML::InputPin_As_UML::TestIdentityAction::second">
+ <iconEntry
+ xmi:id="_qGX2IdSJEeSxgPgY51xQ1A"
+ iconPath="/icons/full/obj16/InputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.InputPin</specializedTypesID>
- <containerConfiguration xmi:id="_qGX2ItSJEeSxgPgY51xQ1A">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//TestIdentityAction/second"/>
+ <containerConfiguration
+ xmi:id="_qGX2ItSJEeSxgPgY51xQ1A">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//TestIdentityAction/second"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_qGX2I9SJEeSxgPgY51xQ1A" name="ActionInputPin_As_Second_In_TestIdentityAction" identifier="org.eclipse.papyrus.uml.ActionInputPin_As_UML::TestIdentityAction::second" hint="UML::ActionInputPin_As_UML::TestIdentityAction::second">
- <iconEntry xmi:id="_qGX2JNSJEeSxgPgY51xQ1A" iconPath="/icons/full/obj16/ActionInputPin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_qGX2I9SJEeSxgPgY51xQ1A"
+ name="ActionInputPin_As_Second_In_TestIdentityAction"
+ identifier="org.eclipse.papyrus.uml.ActionInputPin_As_UML::TestIdentityAction::second"
+ hint="UML::ActionInputPin_As_UML::TestIdentityAction::second">
+ <iconEntry
+ xmi:id="_qGX2JNSJEeSxgPgY51xQ1A"
+ iconPath="/icons/full/obj16/ActionInputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ActionInputPin</specializedTypesID>
- <containerConfiguration xmi:id="_qGX2JdSJEeSxgPgY51xQ1A">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//TestIdentityAction/second"/>
+ <containerConfiguration
+ xmi:id="_qGX2JdSJEeSxgPgY51xQ1A">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//TestIdentityAction/second"/>
</containerConfiguration>
</elementTypeConfigurations>
- <elementTypeConfigurations xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration" xmi:id="_qGX2JtSJEeSxgPgY51xQ1A" name="ValuePin_As_Second_In_TestIdentityAction" identifier="org.eclipse.papyrus.uml.ValuePin_As_UML::TestIdentityAction::second" hint="UML::ValuePin_As_UML::TestIdentityAction::second">
- <iconEntry xmi:id="_qGX2J9SJEeSxgPgY51xQ1A" iconPath="/icons/full/obj16/ValuePin.gif" bundleId="org.eclipse.uml2.uml.edit"/>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_qGX2JtSJEeSxgPgY51xQ1A"
+ name="ValuePin_As_Second_In_TestIdentityAction"
+ identifier="org.eclipse.papyrus.uml.ValuePin_As_UML::TestIdentityAction::second"
+ hint="UML::ValuePin_As_UML::TestIdentityAction::second">
+ <iconEntry
+ xmi:id="_qGX2J9SJEeSxgPgY51xQ1A"
+ iconPath="/icons/full/obj16/ValuePin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
<specializedTypesID>org.eclipse.papyrus.uml.ValuePin</specializedTypesID>
- <containerConfiguration xmi:id="_qGX2KNSJEeSxgPgY51xQ1A">
- <eContainmentFeatures href="http://www.eclipse.org/uml2/5.0.0/UML#//TestIdentityAction/second"/>
+ <containerConfiguration
+ xmi:id="_qGX2KNSJEeSxgPgY51xQ1A">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//TestIdentityAction/second"/>
+ </containerConfiguration>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_5TRgkP_rEeSVDoeWScjgfg"
+ name="ExecutionEnvironment_As_NestedNode_In_Node"
+ identifier="org.eclipse.papyrus.um.ExecutionEnvironment_As_UML::Node::nestedNode"
+ hint="UML::ExecutionEnvironment_As_UML::Node::nestedNode">
+ <iconEntry
+ xmi:id="_8CDbAP_rEeSVDoeWScjgfg"
+ iconPath="/icons/full/obj16/ExecutionEnviroment.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.ExecutionEnvironment</specializedTypesID>
+ <containerConfiguration
+ xmi:id="_875NEP_rEeSVDoeWScjgfg">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Node/nestedNode"/>
+ </containerConfiguration>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_1dxZMP_sEeSVDoeWScjgfg"
+ name="Device_As_NestedNode_In_Node"
+ identifier="org.eclipse.papyrus.um.Device_As_UML::Node::nestedNode"
+ hint="UML::Device_As_UML::Node::nestedNode">
+ <iconEntry
+ xmi:id="_2pe-YP_sEeSVDoeWScjgfg"
+ iconPath="/icons/full/obj16/ExecutionEnviroment.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Device</specializedTypesID>
+ <containerConfiguration
+ xmi:id="_2pe-Yf_sEeSVDoeWScjgfg">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Node/nestedNode"/>
+ </containerConfiguration>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_11G7IP_sEeSVDoeWScjgfg"
+ name="Node_As_NestedNode_In_Node"
+ identifier="org.eclipse.papyrus.um.Node_As_UML::Node::nestedNode"
+ hint="UML::Node_As_UML::Node::nestedNode">
+ <iconEntry
+ xmi:id="_26IpgP_sEeSVDoeWScjgfg"
+ iconPath="/icons/full/obj16/ExecutionEnviroment.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Node</specializedTypesID>
+ <containerConfiguration
+ xmi:id="_26Ipgf_sEeSVDoeWScjgfg">
+ <eContainmentFeatures
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Node/nestedNode"/>
</containerConfiguration>
</elementTypeConfigurations>
</elementtypesconfigurations:ElementTypeSetConfiguration>
diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/model/uml.elementtypesconfigurations b/plugins/uml/org.eclipse.papyrus.uml.service.types/model/uml.elementtypesconfigurations
index ef0b06e3f55..63c2fa04dd6 100644
--- a/plugins/uml/org.eclipse.papyrus.uml.service.types/model/uml.elementtypesconfigurations
+++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/model/uml.elementtypesconfigurations
@@ -1,3864 +1,3884 @@
-<?xml version="1.0" encoding="ASCII"?>
-<elementtypesconfigurations:ElementTypeSetConfiguration
- xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:elementtypesconfigurations="http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/1.0"
- xmi:id="_ScP1oFYCEeS0WsAAtVmToA"
- metamodelNsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScP1oVYCEeS0WsAAtVmToA"
- name="UML::Abstraction"
- identifier="org.eclipse.papyrus.uml.Abstraction"
- hint="UML::Abstraction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.DependencyEditHelper">
- <iconEntry
- xmi:id="_ScP1olYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Abstraction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Abstraction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScQcs1YCEeS0WsAAtVmToA"
- name="UML::AcceptCallAction"
- identifier="org.eclipse.papyrus.uml.AcceptCallAction"
- hint="UML::AcceptCallAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_ScQctFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/AcceptCallAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//AcceptCallAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScQcu1YCEeS0WsAAtVmToA"
- name="UML::AcceptEventAction"
- identifier="org.eclipse.papyrus.uml.AcceptEventAction"
- hint="UML::AcceptEventAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_ScQcvFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/AcceptEventAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//AcceptEventAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScRDxFYCEeS0WsAAtVmToA"
- name="UML::Action"
- identifier="org.eclipse.papyrus.uml.Action"
- hint="UML::Action"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_ScRDxVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Action.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Action"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScRDxlYCEeS0WsAAtVmToA"
- name="UML::ActionExecutionSpecification"
- identifier="org.eclipse.papyrus.uml.ActionExecutionSpecification"
- hint="UML::ActionExecutionSpecification"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScRDx1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ActionExecutionSpecification.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ActionExecutionSpecification"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScRDyFYCEeS0WsAAtVmToA"
- name="UML::ActionInputPin"
- identifier="org.eclipse.papyrus.uml.ActionInputPin"
- hint="UML::ActionInputPin"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_ScRDyVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ActionInputPin.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ActionInputPin"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScTgG1YCEeS0WsAAtVmToA"
- name="UML::Activity"
- identifier="org.eclipse.papyrus.uml.Activity"
- hint="UML::Activity"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityHelper">
- <iconEntry
- xmi:id="_ScTgHFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Activity.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Activity"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScTgHVYCEeS0WsAAtVmToA"
- name="UML::ActivityContent"
- identifier="org.eclipse.papyrus.uml.ActivityContent"
- hint="UML::ActivityContent"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScTgHlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ActivityContent.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ActivityContent"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScTgH1YCEeS0WsAAtVmToA"
- name="UML::ActivityEdge"
- identifier="org.eclipse.papyrus.uml.ActivityEdge"
- hint="UML::ActivityEdge"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScTgIFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ActivityEdge.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ActivityEdge"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScTgIVYCEeS0WsAAtVmToA"
- name="UML::ActivityFinalNode"
- identifier="org.eclipse.papyrus.uml.ActivityFinalNode"
- hint="UML::ActivityFinalNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_ScTgIlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ActivityFinalNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ActivityFinalNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScTgI1YCEeS0WsAAtVmToA"
- name="UML::ActivityGroup"
- identifier="org.eclipse.papyrus.uml.ActivityGroup"
- hint="UML::ActivityGroup"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityGroupHelper">
- <iconEntry
- xmi:id="_ScTgJFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ActivityGroup.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ActivityGroup"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScTgJVYCEeS0WsAAtVmToA"
- name="UML::ActivityNode"
- identifier="org.eclipse.papyrus.uml.ActivityNode"
- hint="UML::ActivityNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_ScTgJlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ActivityNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ActivityNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScTgJ1YCEeS0WsAAtVmToA"
- name="UML::ActivityParameterNode"
- identifier="org.eclipse.papyrus.uml.ActivityParameterNode"
- hint="UML::ActivityParameterNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_ScTgKFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ActivityParameterNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ActivityParameterNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScTgKVYCEeS0WsAAtVmToA"
- name="UML::ActivityPartition"
- identifier="org.eclipse.papyrus.uml.ActivityPartition"
- hint="UML::ActivityPartition"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityPartitionEditHelper">
- <iconEntry
- xmi:id="_ScTgKlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ActivityPartition.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ActivityPartition"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScV8UVYCEeS0WsAAtVmToA"
- name="UML::Actor"
- identifier="org.eclipse.papyrus.uml.Actor"
- hint="UML::Actor"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScV8UlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Actor.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Actor"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScWjU1YCEeS0WsAAtVmToA"
- name="UML::AddStructuralFeatureValueAction"
- identifier="org.eclipse.papyrus.uml.AddStructuralFeatureValueAction"
- hint="UML::AddStructuralFeatureValueAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_ScWjVFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/AddStructuralFeatureValueAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//AddStructuralFeatureValueAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScWjW1YCEeS0WsAAtVmToA"
- name="UML::AddVariableValueAction"
- identifier="org.eclipse.papyrus.uml.AddVariableValueAction"
- hint="UML::AddVariableValueAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_ScWjXFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/AddVariableValueAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//AddVariableValueAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScXKYFYCEeS0WsAAtVmToA"
- name="UML::AnyReceiveEvent"
- identifier="org.eclipse.papyrus.uml.AnyReceiveEvent"
- hint="UML::AnyReceiveEvent"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScXKYVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/AnyReceiveEvent.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//AnyReceiveEvent"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScXKaFYCEeS0WsAAtVmToA"
- name="UML::Artifact"
- identifier="org.eclipse.papyrus.uml.Artifact"
- hint="UML::Artifact"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScXKaVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Artifact.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Artifact"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScXxdFYCEeS0WsAAtVmToA"
- name="UML::AssociationBase"
- identifier="org.eclipse.papyrus.uml.AssociationBase"
- hint="UML::AssociationBase"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.AssociationBaseEditHelper">
- <iconEntry
- xmi:id="_ScXxdVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Association.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Association"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_f8dpoFYTEeSx49G4xBUj9Q"
- name="UML::Association"
- identifier="org.eclipse.papyrus.uml.Association"
- hint="UML::Association">
- <iconEntry
- xmi:id="_vYYlEFYTEeSx49G4xBUj9Q"
- iconPath="/icons/full/obj16/Association.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <specializedTypesID>org.eclipse.papyrus.uml.AssociationBase</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_4Jz-cFYTEeSx49G4xBUj9Q"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.AssociationEditHelperAdvice"/>
- <matcherConfiguration
- xmi:id="_-lvgEFYTEeSx49G4xBUj9Q"
- matcherClassName="org.eclipse.papyrus.uml.service.types.matcher.AssociationMatcher"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScXxdlYCEeS0WsAAtVmToA"
- name="UML::AssociationClassBase"
- identifier="org.eclipse.papyrus.uml.AssociationClassBase"
- hint="UML::AssociationClassBase"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.AssociationBaseEditHelper">
- <iconEntry
- xmi:id="_ScXxd1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/AssociationClass.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//AssociationClass"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_2JgRAHV3EeScr8rbRObDkA"
- name="UML::AssociationClass"
- identifier="org.eclipse.papyrus.uml.AssociationClass"
- hint="UML::AssociationClass">
- <iconEntry
- xmi:id="_2Jg4EHV3EeScr8rbRObDkA"
- iconPath="/icons/full/obj16/AssociationClass.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <specializedTypesID>org.eclipse.papyrus.uml.AssociationClassBase</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_2Jg4EXV3EeScr8rbRObDkA"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.AssociationEditHelperAdvice"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScaNsFYCEeS0WsAAtVmToA"
- name="UML::Behavior"
- identifier="org.eclipse.papyrus.uml.Behavior"
- hint="UML::Behavior"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScaNsVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Behavior.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Behavior"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScaNslYCEeS0WsAAtVmToA"
- name="UML::BehaviorExecutionSpecification"
- identifier="org.eclipse.papyrus.uml.BehaviorExecutionSpecification"
- hint="UML::BehaviorExecutionSpecification"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScaNs1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/BehaviorExecutionSpecification.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//BehaviorExecutionSpecification"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScaNtFYCEeS0WsAAtVmToA"
- name="UML::BehavioralFeature"
- identifier="org.eclipse.papyrus.uml.BehavioralFeature"
- hint="UML::BehavioralFeature"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScaNtVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/BehavioralFeature.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//BehavioralFeature"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScaNtlYCEeS0WsAAtVmToA"
- name="UML::BehavioredClassifier"
- identifier="org.eclipse.papyrus.uml.BehavioredClassifier"
- hint="UML::BehavioredClassifier"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.BehavioredClassifierEditHelper">
- <iconEntry
- xmi:id="_ScaNt1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/BehavioredClassifier.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//BehavioredClassifier"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScaNuFYCEeS0WsAAtVmToA"
- name="UML::BroadcastSignalAction"
- identifier="org.eclipse.papyrus.uml.BroadcastSignalAction"
- hint="UML::BroadcastSignalAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_ScaNuVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/BroadcastSignalAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//BroadcastSignalAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScaNwFYCEeS0WsAAtVmToA"
- name="UML::CallAction"
- identifier="org.eclipse.papyrus.uml.CallAction"
- hint="UML::CallAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_ScaNwVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/CallAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//CallAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScaNwlYCEeS0WsAAtVmToA"
- name="UML::CallBehaviorAction"
- identifier="org.eclipse.papyrus.uml.CallBehaviorAction"
- hint="UML::CallBehaviorAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_ScaNw1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/CallBehaviorAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//CallBehaviorAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScaNylYCEeS0WsAAtVmToA"
- name="UML::CallEvent"
- identifier="org.eclipse.papyrus.uml.CallEvent"
- hint="UML::CallEvent"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScaNy1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/CallEvent.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//CallEvent"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScaN0lYCEeS0WsAAtVmToA"
- name="UML::CallOperationAction"
- identifier="org.eclipse.papyrus.uml.CallOperationAction"
- hint="UML::CallOperationAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_ScaN01YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/CallOperationAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//CallOperationAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScaN2lYCEeS0WsAAtVmToA"
- name="UML::CentralBufferNode"
- identifier="org.eclipse.papyrus.uml.CentralBufferNode"
- hint="UML::CentralBufferNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_ScaN21YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/CentralBufferNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//CentralBufferNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScaN3FYCEeS0WsAAtVmToA"
- name="UML::ChangeEvent"
- identifier="org.eclipse.papyrus.uml.ChangeEvent"
- hint="UML::ChangeEvent"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScaN3VYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ChangeEvent.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ChangeEvent"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sca0wVYCEeS0WsAAtVmToA"
- name="UML::Class"
- identifier="org.eclipse.papyrus.uml.Class"
- hint="UML::Class"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ClassEditHelper">
- <iconEntry
- xmi:id="_Sca0wlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Class.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sca0z1YCEeS0WsAAtVmToA"
- name="UML::Classifier"
- identifier="org.eclipse.papyrus.uml.Classifier"
- hint="UML::Classifier"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sca00FYCEeS0WsAAtVmToA"
- iconPath="/icons/Classifier.gif"
- bundleId="org.eclipse.papyrus.uml.service.types"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Classifier"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sca00VYCEeS0WsAAtVmToA"
- name="UML::ClassifierTemplateParameterBase"
- identifier="org.eclipse.papyrus.uml.ClassifierTemplateParameterBase"
- hint="UML::ClassifierTemplateParameterBase"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sca00lYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ClassifierTemplateParameter.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ClassifierTemplateParameter"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_kyfxEH67EeSVzvxdAiQ3xA"
- name="UML::ClassifierTemplateParameter"
- identifier="org.eclipse.papyrus.uml.ClassifierTemplateParameter"
- hint="UML::ClassifierTemplateParameter">
- <specializedTypesID>org.eclipse.papyrus.uml.ClassifierTemplateParameterBase</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_uuHFoH67EeSVzvxdAiQ3xA"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ClassifierTemplateParameterEditHelperAdvice"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sca001YCEeS0WsAAtVmToA"
- name="UML::Clause"
- identifier="org.eclipse.papyrus.uml.Clause"
- hint="UML::Clause"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sca01FYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Clause.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Clause"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sca01VYCEeS0WsAAtVmToA"
- name="UML::ClearAssociationAction"
- identifier="org.eclipse.papyrus.uml.ClearAssociationAction"
- hint="UML::ClearAssociationAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Sca01lYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ClearAssociationAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ClearAssociationAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sca03VYCEeS0WsAAtVmToA"
- name="UML::ClearStructuralFeatureAction"
- identifier="org.eclipse.papyrus.uml.ClearStructuralFeatureAction"
- hint="UML::ClearStructuralFeatureAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Sca03lYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ClearStructuralFeatureAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ClearStructuralFeatureAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sca05VYCEeS0WsAAtVmToA"
- name="UML::ClearVariableAction"
- identifier="org.eclipse.papyrus.uml.ClearVariableAction"
- hint="UML::ClearVariableAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Sca05lYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ClearVariableAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ClearVariableAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sca07VYCEeS0WsAAtVmToA"
- name="UML::Collaboration"
- identifier="org.eclipse.papyrus.uml.Collaboration"
- hint="UML::Collaboration"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.CollaborationEditHelper">
- <iconEntry
- xmi:id="_Sca07lYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Collaboration.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Collaboration"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_IsX6UMc9EeS1POoqrCEMrQ"
- name="UML::Collaboration::CollaborationRole"
- identifier="org.eclipse.papyrus.uml.Collaboration.CollaborationRole"
- hint="UML::Collaboration::CollaborationRole">
- <iconEntry
- xmi:id="_XvNAUMc9EeS1POoqrCEMrQ"
- iconPath="/icons/full/obj16/ConnectableElement.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <specializedTypesID>org.eclipse.gmf.runtime.emf.type.core.null</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_8m8kIMc9EeS1POoqrCEMrQ"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.CollaborationCollaborationRoleEditHelperAdvice"
- inheritance="all"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sca071YCEeS0WsAAtVmToA"
- name="UML::CollaborationUse"
- identifier="org.eclipse.papyrus.uml.CollaborationUse"
- hint="UML::CollaborationUse"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sca08FYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/CollaborationUse.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//CollaborationUse"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scbb1lYCEeS0WsAAtVmToA"
- name="UML::CombinedFragment"
- identifier="org.eclipse.papyrus.uml.CombinedFragment"
- hint="UML::CombinedFragment"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Scbb11YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/CombinedFragment.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//CombinedFragment"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scbb2FYCEeS0WsAAtVmToA"
- name="UML::Comment"
- identifier="org.eclipse.papyrus.uml.Comment"
- hint="UML::Comment"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Scbb2VYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Comment.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Comment"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_poCSAGqWEeSE-IVtP6jQeA"
- name="UML::Comment::AnnotatedElements"
- identifier="org.eclipse.papyrus.uml.Comment.AnnotatedElements"
- hint="UML::Comment::AnnotatedElements">
- <specializedTypesID>org.eclipse.gmf.runtime.emf.type.core.null</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_6-K50HY7EeSaAZaF2vKiqg"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.CommentAnnotatedElementsEditHelperAdvice"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scbb2lYCEeS0WsAAtVmToA"
- name="UML::CommunicationPath"
- identifier="org.eclipse.papyrus.uml.CommunicationPath"
- hint="UML::CommunicationPath"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Scbb21YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/CommunicationPath.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//CommunicationPath"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scbb6FYCEeS0WsAAtVmToA"
- name="UML::Component"
- identifier="org.eclipse.papyrus.uml.Component"
- hint="UML::Component"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ComponentEditHelper">
- <iconEntry
- xmi:id="_Scbb6VYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Component.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Component"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scbb6lYCEeS0WsAAtVmToA"
- name="UML::ComponentRealization"
- identifier="org.eclipse.papyrus.uml.ComponentRealization"
- hint="UML::ComponentRealization"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ComponentRealizationEditHelper">
- <iconEntry
- xmi:id="_Scbb61YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ComponentRealization.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ComponentRealization"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScbcBFYCEeS0WsAAtVmToA"
- name="UML::ConditionalNode"
- identifier="org.eclipse.papyrus.uml.ConditionalNode"
- hint="UML::ConditionalNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.StructuredActivityNodeHelper">
- <iconEntry
- xmi:id="_ScbcBVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ConditionalNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ConditionalNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SccC71YCEeS0WsAAtVmToA"
- name="UML::ConnectableElement"
- identifier="org.eclipse.papyrus.uml.ConnectableElement"
- hint="UML::ConnectableElement"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SccC8FYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ConnectableElement.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ConnectableElement"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SccC8VYCEeS0WsAAtVmToA"
- name="UML::ConnectableElementTemplateParameterBase"
- identifier="org.eclipse.papyrus.uml.ConnectableElementTemplateParameterBase"
- hint="UML::ConnectableElementTemplateParameterBase"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SccC8lYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ConnectableElementTemplateParameter.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ConnectableElementTemplateParameter"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_yjhpkJXIEeSmV5hdT3HeBw"
- name="UML::ConnectableElementTemplateParameter"
- identifier="org.eclipse.papyrus.uml.ConnectableElementTemplateParameter"
- hint="UML::ConnectableElementTemplateParameter">
- <specializedTypesID>org.eclipse.papyrus.uml.ConnectableElementTemplateParameterBase</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_yjhpkZXIEeSmV5hdT3HeBw"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ConnectableElementTemplateParameterEditHelperAdvice"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SccC81YCEeS0WsAAtVmToA"
- name="UML::ConnectionPointReference"
- identifier="org.eclipse.papyrus.uml.ConnectionPointReference"
- hint="UML::ConnectionPointReference"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SccC9FYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ConnectionPointReference.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ConnectionPointReference"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SccC9VYCEeS0WsAAtVmToA"
- name="UML::Connector"
- identifier="org.eclipse.papyrus.uml.Connector"
- hint="UML::Connector"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ConnectorEditHelper">
- <iconEntry
- xmi:id="_SccC9lYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Connector.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Connector"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SccC91YCEeS0WsAAtVmToA"
- name="UML::ConnectorEnd"
- identifier="org.eclipse.papyrus.uml.ConnectorEnd"
- hint="UML::ConnectorEnd"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SccC-FYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ConnectorEnd.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ConnectorEnd"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SccC-VYCEeS0WsAAtVmToA"
- name="UML::ConsiderIgnoreFragment"
- identifier="org.eclipse.papyrus.uml.ConsiderIgnoreFragment"
- hint="UML::ConsiderIgnoreFragment"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SccC-lYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ConsiderIgnoreFragment.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ConsiderIgnoreFragment"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SccC-1YCEeS0WsAAtVmToA"
- name="UML::Constraint"
- identifier="org.eclipse.papyrus.uml.Constraint"
- hint="UML::Constraint"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ConstraintEditHelper">
- <iconEntry
- xmi:id="_SccC_FYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Constraint.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Constraint"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_XHjzcGslEeSELtwF_9-6fg"
- name="UML::Constraint::ConstrainedElements"
- identifier="org.eclipse.papyrus.uml.Constraint.ConstrainedElements"
- hint="UML::Constraint::ConstrainedElements">
- <specializedTypesID>org.eclipse.gmf.runtime.emf.type.core.null</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_njRJoHbmEeSsxehP964iKQ"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ConstraintConstrainedElementsEditHelperAdvice"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_ax9dwHZLEeSQEpHemLeWnw"
- name="UML::Constraint::Context"
- identifier="org.eclipse.papyrus.uml.Constraint.Context"
- hint="UML::Constraint::Context">
- <specializedTypesID>org.eclipse.gmf.runtime.emf.type.core.null</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_rZSY8HbmEeSsxehP964iKQ"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ConstraintContextEditHelperAdvice"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SccDFVYCEeS0WsAAtVmToA"
- name="UML::Continuation"
- identifier="org.eclipse.papyrus.uml.Continuation"
- hint="UML::Continuation"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SccDFlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Continuation.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Continuation"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SccDF1YCEeS0WsAAtVmToA"
- name="UML::ControlFlow"
- identifier="org.eclipse.papyrus.uml.ControlFlow"
- hint="UML::ControlFlow"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ControlFlowEditHelper">
- <iconEntry
- xmi:id="_SccDGFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ControlFlow.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ControlFlow"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SccDGVYCEeS0WsAAtVmToA"
- name="UML::ControlNode"
- identifier="org.eclipse.papyrus.uml.ControlNode"
- hint="UML::ControlNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Sccp8FYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ControlNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ControlNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sccp8VYCEeS0WsAAtVmToA"
- name="UML::CreateLinkAction"
- identifier="org.eclipse.papyrus.uml.CreateLinkAction"
- hint="UML::CreateLinkAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Sccp8lYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/CreateLinkAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//CreateLinkAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sccp-VYCEeS0WsAAtVmToA"
- name="UML::CreateLinkObjectAction"
- identifier="org.eclipse.papyrus.uml.CreateLinkObjectAction"
- hint="UML::CreateLinkObjectAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Sccp-lYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/CreateLinkObjectAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//CreateLinkObjectAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SccqAVYCEeS0WsAAtVmToA"
- name="UML::CreateObjectAction"
- identifier="org.eclipse.papyrus.uml.CreateObjectAction"
- hint="UML::CreateObjectAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SccqAlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/CreateObjectAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//CreateObjectAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SccqCVYCEeS0WsAAtVmToA"
- name="UML::DataStoreNode"
- identifier="org.eclipse.papyrus.uml.DataStoreNode"
- hint="UML::DataStoreNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SccqClYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/DataStoreNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//DataStoreNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SccqC1YCEeS0WsAAtVmToA"
- name="UML::DataType"
- identifier="org.eclipse.papyrus.uml.DataType"
- hint="UML::DataType"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SccqDFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/DataType.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//DataType"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SccqGVYCEeS0WsAAtVmToA"
- name="UML::DecisionNode"
- identifier="org.eclipse.papyrus.uml.DecisionNode"
- hint="UML::DecisionNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SccqGlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/DecisionNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//DecisionNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SccqG1YCEeS0WsAAtVmToA"
- name="UML::Dependency"
- identifier="org.eclipse.papyrus.uml.Dependency"
- hint="UML::Dependency"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.DependencyEditHelper">
- <iconEntry
- xmi:id="_SccqHFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Dependency.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Dependency"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_TFofsLhAEeSANYuUIb1qQA"
- name="UML::CollaborationUse::RoleBinding"
- identifier="org.eclipse.papyrus.uml.CollaborationUse.RoleBinding"
- hint="UML::CollaborationUse::RoleBinding">
- <iconEntry
- xmi:id="_m8FswLhAEeSANYuUIb1qQA"
- iconPath="/icons/CollaborationRoleBinding.gif"
- bundleId="org.eclipse.papyrus.uml.service.types"/>
- <specializedTypesID>org.eclipse.papyrus.uml.Dependency</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_Ao6QQLhBEeSANYuUIb1qQA"
- identifier=""
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.RoleBindingHelperAdvice"
- inheritance="all"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SccqI1YCEeS0WsAAtVmToA"
- name="UML::DeployedArtifact"
- identifier="org.eclipse.papyrus.uml.DeployedArtifact"
- hint="UML::DeployedArtifact"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SccqJFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/DeployedArtifact.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//DeployedArtifact"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SccqJVYCEeS0WsAAtVmToA"
- name="UML::Deployment"
- identifier="org.eclipse.papyrus.uml.Deployment"
- hint="UML::Deployment"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.DeploymentEditHelper">
- <iconEntry
- xmi:id="_SccqJlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Deployment.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Deployment"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScdRAFYCEeS0WsAAtVmToA"
- name="UML::DeploymentSpecification"
- identifier="org.eclipse.papyrus.uml.DeploymentSpecification"
- hint="UML::DeploymentSpecification"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScdRAVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/DeploymentSpecification.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//DeploymentSpecification"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScdRDlYCEeS0WsAAtVmToA"
- name="UML::DeploymentTarget"
- identifier="org.eclipse.papyrus.uml.DeploymentTarget"
- hint="UML::DeploymentTarget"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScdRD1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/DeploymentTarget.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//DeploymentTarget"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScdRFlYCEeS0WsAAtVmToA"
- name="UML::DestroyLinkAction"
- identifier="org.eclipse.papyrus.uml.DestroyLinkAction"
- hint="UML::DestroyLinkAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_ScdRF1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/DestroyLinkAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//DestroyLinkAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScdRHlYCEeS0WsAAtVmToA"
- name="UML::DestroyObjectAction"
- identifier="org.eclipse.papyrus.uml.DestroyObjectAction"
- hint="UML::DestroyObjectAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_ScdRH1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/DestroyObjectAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//DestroyObjectAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScdRJlYCEeS0WsAAtVmToA"
- name="UML::DestructionOccurrenceSpecification"
- identifier="org.eclipse.papyrus.uml.DestructionOccurrenceSpecification"
- hint="UML::DestructionOccurrenceSpecification"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScdRJ1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/DestructionOccurrenceSpecification.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//DestructionOccurrenceSpecification"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScdRKFYCEeS0WsAAtVmToA"
- name="UML::Device"
- identifier="org.eclipse.papyrus.uml.Device"
- hint="UML::Device"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScdRKVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Device.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Device"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scd4E1YCEeS0WsAAtVmToA"
- name="UML::DirectedRelationship"
- identifier="org.eclipse.papyrus.uml.DirectedRelationship"
- hint="UML::DirectedRelationship"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Scd4FFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/DirectedRelationship.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//DirectedRelationship"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scd4FVYCEeS0WsAAtVmToA"
- name="UML::Duration"
- identifier="org.eclipse.papyrus.uml.Duration"
- hint="UML::Duration"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Scd4FlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Duration.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Duration"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scd4F1YCEeS0WsAAtVmToA"
- name="UML::DurationConstraint"
- identifier="org.eclipse.papyrus.uml.DurationConstraint"
- hint="UML::DurationConstraint"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.DurationConstraintEditHelper">
- <iconEntry
- xmi:id="_Scd4GFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/DurationConstraint.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//DurationConstraint"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scd4MVYCEeS0WsAAtVmToA"
- name="UML::DurationInterval"
- identifier="org.eclipse.papyrus.uml.DurationInterval"
- hint="UML::DurationInterval"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Scd4MlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/DurationInterval.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//DurationInterval"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScefSlYCEeS0WsAAtVmToA"
- name="UML::DurationObservation"
- identifier="org.eclipse.papyrus.uml.DurationObservation"
- hint="UML::DurationObservation"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScefS1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/DurationObservation.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//DurationObservation"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScgUUFYCEeS0WsAAtVmToA"
- name="UML::Element"
- identifier="org.eclipse.papyrus.uml.Element"
- hint="UML::Element"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScgUUVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Element.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Element"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScgUUlYCEeS0WsAAtVmToA"
- name="UML::ElementImportBase"
- identifier="org.eclipse.papyrus.uml.ElementImportBase"
- hint="UML::ElementImportBase"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementImportEditHelper">
- <iconEntry
- xmi:id="_ScgUU1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ElementImport.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ElementImport"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_Dx12sJzPEeSEObywEoz_Cw"
- name="UML::ElementImport"
- identifier="org.eclipse.papyrus.uml.ElementImport"
- hint="UML::ElementImport">
- <specializedTypesID>org.eclipse.papyrus.uml.ElementImportBase</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_TB2dEJzPEeSEObywEoz_Cw"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ElementImportEditHelperAdvice"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScgUVFYCEeS0WsAAtVmToA"
- name="UML::EncapsulatedClassifier"
- identifier="org.eclipse.papyrus.uml.EncapsulatedClassifier"
- hint="UML::EncapsulatedClassifier"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScgUVVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/EncapsulatedClassifier.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//EncapsulatedClassifier"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScgUVlYCEeS0WsAAtVmToA"
- name="UML::Enumeration"
- identifier="org.eclipse.papyrus.uml.Enumeration"
- hint="UML::Enumeration"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScgUV1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Enumeration.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Enumeration"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScgUWFYCEeS0WsAAtVmToA"
- name="UML::EnumerationLiteral"
- identifier="org.eclipse.papyrus.uml.EnumerationLiteral"
- hint="UML::EnumerationLiteral"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScgUWVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/EnumerationLiteral.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//EnumerationLiteral"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scg7ZFYCEeS0WsAAtVmToA"
- name="UML::Event"
- identifier="org.eclipse.papyrus.uml.Event"
- hint="UML::Event"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Scg7ZVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Event.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Event"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scg7ZlYCEeS0WsAAtVmToA"
- name="UML::ExceptionHandler"
- identifier="org.eclipse.papyrus.uml.ExceptionHandler"
- hint="UML::ExceptionHandler"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ExceptionHandlerEditHelper">
- <iconEntry
- xmi:id="_Scg7Z1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ExceptionHandler.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ExceptionHandler"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scg7aFYCEeS0WsAAtVmToA"
- name="UML::ExecutableNode"
- identifier="org.eclipse.papyrus.uml.ExecutableNode"
- hint="UML::ExecutableNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Scg7aVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ExecutableNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ExecutableNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scg7alYCEeS0WsAAtVmToA"
- name="UML::ExecutionEnvironment"
- identifier="org.eclipse.papyrus.uml.ExecutionEnvironment"
- hint="UML::ExecutionEnvironment"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Scg7a1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ExecutionEnvironment.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ExecutionEnvironment"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SchicVYCEeS0WsAAtVmToA"
- name="UML::ExecutionOccurrenceSpecification"
- identifier="org.eclipse.papyrus.uml.ExecutionOccurrenceSpecification"
- hint="UML::ExecutionOccurrenceSpecification"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SchiclYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ExecutionOccurrenceSpecification.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ExecutionOccurrenceSpecification"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Schic1YCEeS0WsAAtVmToA"
- name="UML::ExecutionSpecification"
- identifier="org.eclipse.papyrus.uml.ExecutionSpecification"
- hint="UML::ExecutionSpecification"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SchidFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ExecutionSpecification.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ExecutionSpecification"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SchidVYCEeS0WsAAtVmToA"
- name="UML::ExpansionNode"
- identifier="org.eclipse.papyrus.uml.ExpansionNode"
- hint="UML::ExpansionNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ExpansionNodeHelper">
- <iconEntry
- xmi:id="_SchidlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ExpansionNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ExpansionNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Schid1YCEeS0WsAAtVmToA"
- name="UML::ExpansionRegion"
- identifier="org.eclipse.papyrus.uml.ExpansionRegion"
- hint="UML::ExpansionRegion"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ExpansionRegionHelper">
- <iconEntry
- xmi:id="_SchieFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ExpansionRegion.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ExpansionRegion"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SchiiFYCEeS0WsAAtVmToA"
- name="UML::Expression"
- identifier="org.eclipse.papyrus.uml.Expression"
- hint="UML::Expression"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SchiiVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Expression.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Expression"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SciwrFYCEeS0WsAAtVmToA"
- name="UML::ExtendBase"
- identifier="org.eclipse.papyrus.uml.ExtendBase"
- hint="UML::ExtendBase"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ExtendEditHelper">
- <iconEntry
- xmi:id="_ScjXoFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Extend.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Extend"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_kV8SgFrNEeSNSq3G9Z6fKQ"
- name="UML::Extend"
- identifier="org.eclipse.papyrus.uml.Extend"
- hint="UML::Extend">
- <iconEntry
- xmi:id="_t3ycMFrNEeSNSq3G9Z6fKQ"
- iconPath="/icons/full/obj16/Extend.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <specializedTypesID>org.eclipse.papyrus.uml.ExtendBase</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_8QiDYFrNEeSNSq3G9Z6fKQ"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ExtendEditHelperAdvice"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScjXoVYCEeS0WsAAtVmToA"
- name="UML::Extension"
- identifier="org.eclipse.papyrus.uml.Extension"
- hint="UML::Extension"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ExtensionEditHelper">
- <iconEntry
- xmi:id="_ScjXolYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Extension.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Extension"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScjXo1YCEeS0WsAAtVmToA"
- name="UML::ExtensionEnd"
- identifier="org.eclipse.papyrus.uml.ExtensionEnd"
- hint="UML::ExtensionEnd"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScjXpFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ExtensionEnd.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ExtensionEnd"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScjXq1YCEeS0WsAAtVmToA"
- name="UML::ExtensionPoint"
- identifier="org.eclipse.papyrus.uml.ExtensionPoint"
- hint="UML::ExtensionPoint"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScjXrFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ExtensionPoint.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ExtensionPoint"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScjXuVYCEeS0WsAAtVmToA"
- name="UML::Feature"
- identifier="org.eclipse.papyrus.uml.Feature"
- hint="UML::Feature"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScjXulYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Feature.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Feature"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scj-sFYCEeS0WsAAtVmToA"
- name="UML::FinalNode"
- identifier="org.eclipse.papyrus.uml.FinalNode"
- hint="UML::FinalNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Scj-sVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/FinalNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//FinalNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scj-slYCEeS0WsAAtVmToA"
- name="UML::FinalState"
- identifier="org.eclipse.papyrus.uml.FinalState"
- hint="UML::FinalState"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScklwFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/FinalState.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//FinalState"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScklwVYCEeS0WsAAtVmToA"
- name="UML::FlowFinalNode"
- identifier="org.eclipse.papyrus.uml.FlowFinalNode"
- hint="UML::FlowFinalNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_ScklwlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/FlowFinalNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//FlowFinalNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scklw1YCEeS0WsAAtVmToA"
- name="UML::ForkNode"
- identifier="org.eclipse.papyrus.uml.ForkNode"
- hint="UML::ForkNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_ScklxFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ForkNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ForkNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScklxVYCEeS0WsAAtVmToA"
- name="UML::FunctionBehavior"
- identifier="org.eclipse.papyrus.uml.FunctionBehavior"
- hint="UML::FunctionBehavior"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScklxlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/FunctionBehavior.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//FunctionBehavior"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sclz6lYCEeS0WsAAtVmToA"
- name="UML::Gate"
- identifier="org.eclipse.papyrus.uml.Gate"
- hint="UML::Gate"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sclz61YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Gate.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Gate"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sclz7FYCEeS0WsAAtVmToA"
- name="UML::GeneralOrdering"
- identifier="org.eclipse.papyrus.uml.GeneralOrdering"
- hint="UML::GeneralOrdering"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sclz7VYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/GeneralOrdering.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//GeneralOrdering"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scma8FYCEeS0WsAAtVmToA"
- name="UML::Generalization"
- identifier="org.eclipse.papyrus.uml.Generalization"
- hint="UML::Generalization"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.GeneralizationEditHelper">
- <iconEntry
- xmi:id="_Scma8VYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Generalization.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Generalization"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScnCAFYCEeS0WsAAtVmToA"
- name="UML::GeneralizationSet"
- identifier="org.eclipse.papyrus.uml.GeneralizationSet"
- hint="UML::GeneralizationSet"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.GeneralizationSetEditHelper">
- <iconEntry
- xmi:id="_ScnCAVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/GeneralizationSet.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//GeneralizationSet"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScnCCFYCEeS0WsAAtVmToA"
- name="UML::Image"
- identifier="org.eclipse.papyrus.uml.Image"
- hint="UML::Image"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScnCCVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Image.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Image"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScnCClYCEeS0WsAAtVmToA"
- name="UML::Include"
- identifier="org.eclipse.papyrus.uml.Include"
- hint="UML::Include"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.IncludeEditHelper">
- <iconEntry
- xmi:id="_ScnCC1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Include.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Include"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScnCDFYCEeS0WsAAtVmToA"
- name="UML::InformationFlowBase"
- identifier="org.eclipse.papyrus.uml.InformationFlowBase"
- hint="UML::InformationFlowBase"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.InformationFlowEditHelper">
- <iconEntry
- xmi:id="_ScnCDVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/InformationFlow.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//InformationFlow"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_ZLpUILgeEeSANYuUIb1qQA"
- name="UML::InformationFlow"
- identifier="org.eclipse.papyrus.uml.InformationFlow"
- hint="UML::InformationFlow">
- <iconEntry
- xmi:id="_jt-DYLgeEeSANYuUIb1qQA"
- iconPath="/icons/full/obj16/InformationFlow.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <specializedTypesID>org.eclipse.papyrus.uml.InformationFlowBase</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_lfPMsLgeEeSANYuUIb1qQA"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.InformationFlowEditHelperAdvice"
- inheritance="all"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScnCFFYCEeS0WsAAtVmToA"
- name="UML::InformationItem"
- identifier="org.eclipse.papyrus.uml.InformationItem"
- hint="UML::InformationItem"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScnCFVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/InformationItem.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//InformationItem"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sco3OVYCEeS0WsAAtVmToA"
- name="UML::InitialNode"
- identifier="org.eclipse.papyrus.uml.InitialNode"
- hint="UML::InitialNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Sco3OlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/InitialNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//InitialNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sco3O1YCEeS0WsAAtVmToA"
- name="UML::InputPin"
- identifier="org.eclipse.papyrus.uml.InputPin"
- hint="UML::InputPin"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Sco3PFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/InputPin.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//InputPin"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scr6iVYCEeS0WsAAtVmToA"
- name="UML::InstanceSpecification"
- identifier="org.eclipse.papyrus.uml.InstanceSpecification"
- hint="UML::InstanceSpecification"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Scr6ilYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/InstanceSpecification.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//InstanceSpecification"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_bvHrYJXNEeSmV5hdT3HeBw"
- name="UML::InstanceSpecification::Link"
- identifier="org.eclipse.papyrus.uml.InstanceSpecification.Link"
- hint="UML::InstanceSpecification::Link">
- <specializedTypesID>org.eclipse.papyrus.uml.InstanceSpecification</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_bvHrYZXNEeSmV5hdT3HeBw"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.InstanceSpecificationEditHelperAdvice"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scr6kVYCEeS0WsAAtVmToA"
- name="UML::InstanceValue"
- identifier="org.eclipse.papyrus.uml.InstanceValue"
- hint="UML::InstanceValue"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Scr6klYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/InstanceValue.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//InstanceValue"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SctIsVYCEeS0WsAAtVmToA"
- name="UML::Interaction"
- identifier="org.eclipse.papyrus.uml.Interaction"
- hint="UML::Interaction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SctIslYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Interaction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Interaction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SctIs1YCEeS0WsAAtVmToA"
- name="UML::InteractionConstraint"
- identifier="org.eclipse.papyrus.uml.InteractionConstraint"
- hint="UML::InteractionConstraint"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SctItFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/InteractionConstraint.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//InteractionConstraint"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SctvwlYCEeS0WsAAtVmToA"
- name="UML::InteractionFragment"
- identifier="org.eclipse.papyrus.uml.InteractionFragment"
- hint="UML::InteractionFragment"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sctvw1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/InteractionFragment.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//InteractionFragment"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SctvxFYCEeS0WsAAtVmToA"
- name="UML::InteractionOperand"
- identifier="org.eclipse.papyrus.uml.InteractionOperand"
- hint="UML::InteractionOperand"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SctvxVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/InteractionOperand.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//InteractionOperand"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SctvxlYCEeS0WsAAtVmToA"
- name="UML::InteractionUse"
- identifier="org.eclipse.papyrus.uml.InteractionUse"
- hint="UML::InteractionUse"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sctvx1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/InteractionUse.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//InteractionUse"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScuW2VYCEeS0WsAAtVmToA"
- name="UML::Interface"
- identifier="org.eclipse.papyrus.uml.Interface"
- hint="UML::Interface"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScuW2lYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Interface.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Interface"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScuW21YCEeS0WsAAtVmToA"
- name="UML::InterfaceRealization"
- identifier="org.eclipse.papyrus.uml.InterfaceRealization"
- hint="UML::InterfaceRealization"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.InterfaceRealizationEditHelper">
- <iconEntry
- xmi:id="_Scvk4FYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/InterfaceRealization.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//InterfaceRealization"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScwL-VYCEeS0WsAAtVmToA"
- name="UML::InterruptibleActivityRegion"
- identifier="org.eclipse.papyrus.uml.InterruptibleActivityRegion"
- hint="UML::InterruptibleActivityRegion"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.InterruptibleActivityRegionHelper">
- <iconEntry
- xmi:id="_ScwL-lYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/InterruptibleActivityRegion.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//InterruptibleActivityRegion"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScwL-1YCEeS0WsAAtVmToA"
- name="UML::Interval"
- identifier="org.eclipse.papyrus.uml.Interval"
- hint="UML::Interval"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_ScwL_FYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Interval.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Interval"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_ScxaEFYCEeS0WsAAtVmToA"
- name="UML::IntervalConstraint"
- identifier="org.eclipse.papyrus.uml.IntervalConstraint"
- hint="UML::IntervalConstraint"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.IntervalConstraintEditHelper">
- <iconEntry
- xmi:id="_ScxaEVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/IntervalConstraint.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//IntervalConstraint"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scz2U1YCEeS0WsAAtVmToA"
- name="UML::InvocationAction"
- identifier="org.eclipse.papyrus.uml.InvocationAction"
- hint="UML::InvocationAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Scz2VFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/InvocationAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//InvocationAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scz2VVYCEeS0WsAAtVmToA"
- name="UML::JoinNode"
- identifier="org.eclipse.papyrus.uml.JoinNode"
- hint="UML::JoinNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Scz2VlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/JoinNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//JoinNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scz2V1YCEeS0WsAAtVmToA"
- name="UML::Lifeline"
- identifier="org.eclipse.papyrus.uml.Lifeline"
- hint="UML::Lifeline"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Scz2WFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Lifeline.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Lifeline"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scz2WVYCEeS0WsAAtVmToA"
- name="UML::LinkAction"
- identifier="org.eclipse.papyrus.uml.LinkAction"
- hint="UML::LinkAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Scz2WlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/LinkAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//LinkAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scz2W1YCEeS0WsAAtVmToA"
- name="UML::LinkEndCreationData"
- identifier="org.eclipse.papyrus.uml.LinkEndCreationData"
- hint="UML::LinkEndCreationData"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Scz2XFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/LinkEndCreationData.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//LinkEndCreationData"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scz2XVYCEeS0WsAAtVmToA"
- name="UML::LinkEndData"
- identifier="org.eclipse.papyrus.uml.LinkEndData"
- hint="UML::LinkEndData"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Scz2XlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/LinkEndData.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//LinkEndData"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scz2X1YCEeS0WsAAtVmToA"
- name="UML::LinkEndDestructionData"
- identifier="org.eclipse.papyrus.uml.LinkEndDestructionData"
- hint="UML::LinkEndDestructionData"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Scz2YFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/LinkEndDestructionData.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//LinkEndDestructionData"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Scz2YVYCEeS0WsAAtVmToA"
- name="UML::LiteralBoolean"
- identifier="org.eclipse.papyrus.uml.LiteralBoolean"
- hint="UML::LiteralBoolean"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Scz2YlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/LiteralBoolean.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//LiteralBoolean"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc1EflYCEeS0WsAAtVmToA"
- name="UML::LiteralInteger"
- identifier="org.eclipse.papyrus.uml.LiteralInteger"
- hint="UML::LiteralInteger"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.LiteralIntegerEditHelper">
- <iconEntry
- xmi:id="_Sc1Ef1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/LiteralInteger.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//LiteralInteger"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc2Sk1YCEeS0WsAAtVmToA"
- name="UML::LiteralNull"
- identifier="org.eclipse.papyrus.uml.LiteralNull"
- hint="UML::LiteralNull"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc2SlFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/LiteralNull.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//LiteralNull"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc25v1YCEeS0WsAAtVmToA"
- name="UML::LiteralReal"
- identifier="org.eclipse.papyrus.uml.LiteralReal"
- hint="UML::LiteralReal"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc25wFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/LiteralReal.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//LiteralReal"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc4HxlYCEeS0WsAAtVmToA"
- name="UML::LiteralSpecification"
- identifier="org.eclipse.papyrus.uml.LiteralSpecification"
- hint="UML::LiteralSpecification"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc4Hx1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/LiteralSpecification.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//LiteralSpecification"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc4HyFYCEeS0WsAAtVmToA"
- name="UML::LiteralString"
- identifier="org.eclipse.papyrus.uml.LiteralString"
- hint="UML::LiteralString"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc4HyVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/LiteralString.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//LiteralString"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc4u7FYCEeS0WsAAtVmToA"
- name="UML::LiteralUnlimitedNatural"
- identifier="org.eclipse.papyrus.uml.LiteralUnlimitedNatural"
- hint="UML::LiteralUnlimitedNatural"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc4u7VYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/LiteralUnlimitedNatural.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//LiteralUnlimitedNatural"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc58-VYCEeS0WsAAtVmToA"
- name="UML::LoopNode"
- identifier="org.eclipse.papyrus.uml.LoopNode"
- hint="UML::LoopNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.StructuredActivityNodeHelper">
- <iconEntry
- xmi:id="_Sc58-lYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/LoopNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//LoopNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc59ClYCEeS0WsAAtVmToA"
- name="UML::Manifestation"
- identifier="org.eclipse.papyrus.uml.Manifestation"
- hint="UML::Manifestation"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ManifestationEditHelper">
- <iconEntry
- xmi:id="_Sc59C1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Manifestation.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Manifestation"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc59ElYCEeS0WsAAtVmToA"
- name="UML::MergeNode"
- identifier="org.eclipse.papyrus.uml.MergeNode"
- hint="UML::MergeNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Sc59E1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/MergeNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//MergeNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc59FFYCEeS0WsAAtVmToA"
- name="UML::Message"
- identifier="org.eclipse.papyrus.uml.Message"
- hint="UML::Message"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.MessageEditHelper">
- <iconEntry
- xmi:id="_Sc59FVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Message.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Message"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc59FlYCEeS0WsAAtVmToA"
- name="UML::MessageEnd"
- identifier="org.eclipse.papyrus.uml.MessageEnd"
- hint="UML::MessageEnd"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc59F1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/MessageEnd.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//MessageEnd"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc59GFYCEeS0WsAAtVmToA"
- name="UML::MessageEvent"
- identifier="org.eclipse.papyrus.uml.MessageEvent"
- hint="UML::MessageEvent"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc59GVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/MessageEvent.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//MessageEvent"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc6kAFYCEeS0WsAAtVmToA"
- name="UML::MessageOccurrenceSpecification"
- identifier="org.eclipse.papyrus.uml.MessageOccurrenceSpecification"
- hint="UML::MessageOccurrenceSpecification"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc6kAVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/MessageOccurrenceSpecification.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//MessageOccurrenceSpecification"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc6kAlYCEeS0WsAAtVmToA"
- name="UML::Model"
- identifier="org.eclipse.papyrus.uml.Model"
- hint="UML::Model"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc6kA1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Model.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Model"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc6kClYCEeS0WsAAtVmToA"
- name="UML::MultiplicityElement"
- identifier="org.eclipse.papyrus.uml.MultiplicityElement"
- hint="UML::MultiplicityElement"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc6kC1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/MultiplicityElement.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//MultiplicityElement"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc6kDFYCEeS0WsAAtVmToA"
- name="UML::NamedElement"
- identifier="org.eclipse.papyrus.uml.NamedElement"
- hint="UML::NamedElement"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc6kDVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/NamedElement.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//NamedElement"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc6kDlYCEeS0WsAAtVmToA"
- name="UML::Namespace"
- identifier="org.eclipse.papyrus.uml.Namespace"
- hint="UML::Namespace"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc6kD1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Namespace.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Namespace"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc6kEFYCEeS0WsAAtVmToA"
- name="UML::Node"
- identifier="org.eclipse.papyrus.uml.Node"
- hint="UML::Node"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc6kEVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Node.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Node"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc6kJFYCEeS0WsAAtVmToA"
- name="UML::ObjectFlow"
- identifier="org.eclipse.papyrus.uml.ObjectFlow"
- hint="UML::ObjectFlow"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ObjectFlowEditHelper">
- <iconEntry
- xmi:id="_Sc6kJVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ObjectFlow.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ObjectFlow"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc6kJlYCEeS0WsAAtVmToA"
- name="UML::ObjectNode"
- identifier="org.eclipse.papyrus.uml.ObjectNode"
- hint="UML::ObjectNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Sc6kJ1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ObjectNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ObjectNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc6kKFYCEeS0WsAAtVmToA"
- name="UML::Observation"
- identifier="org.eclipse.papyrus.uml.Observation"
- hint="UML::Observation"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc6kKVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Observation.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Observation"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc6kKlYCEeS0WsAAtVmToA"
- name="UML::OccurrenceSpecification"
- identifier="org.eclipse.papyrus.uml.OccurrenceSpecification"
- hint="UML::OccurrenceSpecification"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc7LEFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/OccurrenceSpecification.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//OccurrenceSpecification"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc7LEVYCEeS0WsAAtVmToA"
- name="UML::OpaqueAction"
- identifier="org.eclipse.papyrus.uml.OpaqueAction"
- hint="UML::OpaqueAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Sc7LElYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/OpaqueAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//OpaqueAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc7LGVYCEeS0WsAAtVmToA"
- name="UML::OpaqueBehavior"
- identifier="org.eclipse.papyrus.uml.OpaqueBehavior"
- hint="UML::OpaqueBehavior"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc7LGlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/OpaqueBehavior.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//OpaqueBehavior"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc7yIVYCEeS0WsAAtVmToA"
- name="UML::OpaqueExpression"
- identifier="org.eclipse.papyrus.uml.OpaqueExpression"
- hint="UML::OpaqueExpression"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc7yIlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/OpaqueExpression.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//OpaqueExpression"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc8ZVFYCEeS0WsAAtVmToA"
- name="UML::Operation"
- identifier="org.eclipse.papyrus.uml.Operation"
- hint="UML::Operation"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc8ZVVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Operation.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Operation"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc8ZVlYCEeS0WsAAtVmToA"
- name="UML::OperationTemplateParameterBase"
- identifier="org.eclipse.papyrus.uml.OperationTemplateParameterBase"
- hint="UML::OperationTemplateParameterBase"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc8ZV1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/OperationTemplateParameter.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//OperationTemplateParameter"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_vg_QMJXJEeSmV5hdT3HeBw"
- name="UML::OperationTemplateParameter"
- identifier="org.eclipse.papyrus.uml.OperationTemplateParameter"
- hint="UML::OperationTemplateParameter">
- <specializedTypesID>org.eclipse.papyrus.uml.OperationTemplateParameterBase</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_vg_QMZXJEeSmV5hdT3HeBw"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.OperationTemplateParameterEditHelperAdvice"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc9AQ1YCEeS0WsAAtVmToA"
- name="UML::OutputPin"
- identifier="org.eclipse.papyrus.uml.OutputPin"
- hint="UML::OutputPin"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Sc9ARFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/OutputPin.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//OutputPin"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc9nZVYCEeS0WsAAtVmToA"
- name="UML::Package"
- identifier="org.eclipse.papyrus.uml.Package"
- hint="UML::Package"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc9nZlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Package.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Package"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc9nZ1YCEeS0WsAAtVmToA"
- name="UML::PackageImportBase"
- identifier="org.eclipse.papyrus.uml.PackageImportBase"
- hint="UML::PackageImportBase"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.PackageImportEditHelper">
- <iconEntry
- xmi:id="_Sc9naFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/PackageImport.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//PackageImport"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_8kkk8GN5EeSrwvaW5Is9PQ"
- name="UML::PackageImport"
- identifier="org.eclipse.papyrus.uml.PackageImport"
- hint="UML::PackageImport">
- <specializedTypesID>org.eclipse.papyrus.uml.PackageImportBase</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_LSLo4GN6EeSrwvaW5Is9PQ"
- identifier=""
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.PackageImportEditHelperAdvice"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc9naVYCEeS0WsAAtVmToA"
- name="UML::PackageMergeBase"
- identifier="org.eclipse.papyrus.uml.PackageMergeBase"
- hint="UML::PackageMergeBase"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.PackageMergeEditHelper">
- <iconEntry
- xmi:id="_Sc9nalYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/PackageMerge.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//PackageMerge"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_5VbKkGOIEeSw8rz5ZQEURQ"
- name="UML::PackageMerge"
- identifier="org.eclipse.papyrus.uml.PackageMerge"
- hint="UML::PackageMerge">
- <specializedTypesID>org.eclipse.papyrus.uml.PackageMergeBase</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_EJxd8GOJEeSw8rz5ZQEURQ"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.PackageMergeEditHelperAdvice"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc9ncVYCEeS0WsAAtVmToA"
- name="UML::PackageableElement"
- identifier="org.eclipse.papyrus.uml.PackageableElement"
- hint="UML::PackageableElement"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc9nclYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/PackageableElement.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//PackageableElement"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc9nc1YCEeS0WsAAtVmToA"
- name="UML::Parameter"
- identifier="org.eclipse.papyrus.uml.Parameter"
- hint="UML::Parameter"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc9ndFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Parameter.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Parameter"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc9ndVYCEeS0WsAAtVmToA"
- name="UML::ParameterSet"
- identifier="org.eclipse.papyrus.uml.ParameterSet"
- hint="UML::ParameterSet"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc9ndlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ParameterSet.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ParameterSet"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc-OZlYCEeS0WsAAtVmToA"
- name="UML::ParameterableElement"
- identifier="org.eclipse.papyrus.uml.ParameterableElement"
- hint="UML::ParameterableElement"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc-OZ1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ParameterableElement.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ParameterableElement"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc-OaFYCEeS0WsAAtVmToA"
- name="UML::PartDecomposition"
- identifier="org.eclipse.papyrus.uml.PartDecomposition"
- hint="UML::PartDecomposition"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc-OaVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/PartDecomposition.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//PartDecomposition"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc-OalYCEeS0WsAAtVmToA"
- name="UML::Pin"
- identifier="org.eclipse.papyrus.uml.Pin"
- hint="UML::Pin"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Sc-Oa1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Pin.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Pin"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc-ObFYCEeS0WsAAtVmToA"
- name="UML::Port"
- identifier="org.eclipse.papyrus.uml.Port"
- hint="UML::Port"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.PortEditHelper">
- <iconEntry
- xmi:id="_Sc-ObVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Port.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Port"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc-OdFYCEeS0WsAAtVmToA"
- name="UML::PrimitiveType"
- identifier="org.eclipse.papyrus.uml.PrimitiveType"
- hint="UML::PrimitiveType"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc-OdVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/PrimitiveType.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//PrimitiveType"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc-OglYCEeS0WsAAtVmToA"
- name="UML::Profile"
- identifier="org.eclipse.papyrus.uml.Profile"
- hint="UML::Profile"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc-Og1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Profile.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Profile"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc-OhFYCEeS0WsAAtVmToA"
- name="UML::ProfileApplication"
- identifier="org.eclipse.papyrus.uml.ProfileApplication"
- hint="UML::ProfileApplication"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc-OhVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ProfileApplication.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ProfileApplication"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc-1cFYCEeS0WsAAtVmToA"
- name="UML::Property"
- identifier="org.eclipse.papyrus.uml.Property"
- hint="UML::Property"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc-1cVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Property.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Property"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_wdkpELhLEeSANYuUIb1qQA"
- name="UML::PropertyPart"
- identifier="org.eclipse.papyrus.uml.PropertyPart"
- hint="UML::PropertyPart">
- <iconEntry
- xmi:id="_5SIO8LhLEeSANYuUIb1qQA"
- iconPath="/icons/full/obj16/Property.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <specializedTypesID>org.eclipse.papyrus.uml.Property</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_509PMLhLEeSANYuUIb1qQA"
- identifier=""
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.PropertyPartHelperAdvice"
- inheritance="all"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc-1eFYCEeS0WsAAtVmToA"
- name="UML::ProtocolConformance"
- identifier="org.eclipse.papyrus.uml.ProtocolConformance"
- hint="UML::ProtocolConformance"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ProtocolConformanceEditHelper">
- <iconEntry
- xmi:id="_Sc-1eVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ProtocolConformance.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ProtocolConformance"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc-1elYCEeS0WsAAtVmToA"
- name="UML::ProtocolStateMachine"
- identifier="org.eclipse.papyrus.uml.ProtocolStateMachine"
- hint="UML::ProtocolStateMachine"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ProtocolStateMachineEditHelper">
- <iconEntry
- xmi:id="_Sc-1e1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ProtocolStateMachine.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ProtocolStateMachine"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc-1oFYCEeS0WsAAtVmToA"
- name="UML::ProtocolTransition"
- identifier="org.eclipse.papyrus.uml.ProtocolTransition"
- hint="UML::ProtocolTransition"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc_cgFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ProtocolTransition.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ProtocolTransition"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc_cgVYCEeS0WsAAtVmToA"
- name="UML::Pseudostate"
- identifier="org.eclipse.papyrus.uml.Pseudostate"
- hint="UML::Pseudostate"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc_cglYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Pseudostate.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Pseudostate"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc_cg1YCEeS0WsAAtVmToA"
- name="UML::QualifierValue"
- identifier="org.eclipse.papyrus.uml.QualifierValue"
- hint="UML::QualifierValue"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_Sc_chFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/QualifierValue.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//QualifierValue"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc_chVYCEeS0WsAAtVmToA"
- name="UML::RaiseExceptionAction"
- identifier="org.eclipse.papyrus.uml.RaiseExceptionAction"
- hint="UML::RaiseExceptionAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Sc_chlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/RaiseExceptionAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//RaiseExceptionAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc_cjVYCEeS0WsAAtVmToA"
- name="UML::ReadExtentAction"
- identifier="org.eclipse.papyrus.uml.ReadExtentAction"
- hint="UML::ReadExtentAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Sc_cjlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ReadExtentAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ReadExtentAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc_clVYCEeS0WsAAtVmToA"
- name="UML::ReadIsClassifiedObjectAction"
- identifier="org.eclipse.papyrus.uml.ReadIsClassifiedObjectAction"
- hint="UML::ReadIsClassifiedObjectAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Sc_cllYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ReadIsClassifiedObjectAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ReadIsClassifiedObjectAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc_cnVYCEeS0WsAAtVmToA"
- name="UML::ReadLinkAction"
- identifier="org.eclipse.papyrus.uml.ReadLinkAction"
- hint="UML::ReadLinkAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Sc_cnlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ReadLinkAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ReadLinkAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc_cpVYCEeS0WsAAtVmToA"
- name="UML::ReadLinkObjectEndAction"
- identifier="org.eclipse.papyrus.uml.ReadLinkObjectEndAction"
- hint="UML::ReadLinkObjectEndAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Sc_cplYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ReadLinkObjectEndAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ReadLinkObjectEndAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_Sc_crVYCEeS0WsAAtVmToA"
- name="UML::ReadLinkObjectEndQualifierAction"
- identifier="org.eclipse.papyrus.uml.ReadLinkObjectEndQualifierAction"
- hint="UML::ReadLinkObjectEndQualifierAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_Sc_crlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ReadLinkObjectEndQualifierAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ReadLinkObjectEndQualifierAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdADk1YCEeS0WsAAtVmToA"
- name="UML::ReadSelfAction"
- identifier="org.eclipse.papyrus.uml.ReadSelfAction"
- hint="UML::ReadSelfAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdADlFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ReadSelfAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ReadSelfAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdADm1YCEeS0WsAAtVmToA"
- name="UML::ReadStructuralFeatureAction"
- identifier="org.eclipse.papyrus.uml.ReadStructuralFeatureAction"
- hint="UML::ReadStructuralFeatureAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdADnFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ReadStructuralFeatureAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ReadStructuralFeatureAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdADo1YCEeS0WsAAtVmToA"
- name="UML::ReadVariableAction"
- identifier="org.eclipse.papyrus.uml.ReadVariableAction"
- hint="UML::ReadVariableAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdADpFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ReadVariableAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ReadVariableAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdADq1YCEeS0WsAAtVmToA"
- name="UML::Realization"
- identifier="org.eclipse.papyrus.uml.Realization"
- hint="UML::Realization"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.DependencyEditHelper">
- <iconEntry
- xmi:id="_SdADrFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Realization.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Realization"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdADs1YCEeS0WsAAtVmToA"
- name="UML::Reception"
- identifier="org.eclipse.papyrus.uml.Reception"
- hint="UML::Reception"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdADtFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Reception.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Reception"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdAqoFYCEeS0WsAAtVmToA"
- name="UML::ReclassifyObjectAction"
- identifier="org.eclipse.papyrus.uml.ReclassifyObjectAction"
- hint="UML::ReclassifyObjectAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdAqoVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ReclassifyObjectAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ReclassifyObjectAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdAqqFYCEeS0WsAAtVmToA"
- name="UML::RedefinableElement"
- identifier="org.eclipse.papyrus.uml.RedefinableElement"
- hint="UML::RedefinableElement"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdAqqVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/RedefinableElement.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//RedefinableElement"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdAqqlYCEeS0WsAAtVmToA"
- name="UML::RedefinableTemplateSignature"
- identifier="org.eclipse.papyrus.uml.RedefinableTemplateSignature"
- hint="UML::RedefinableTemplateSignature"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdAqq1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/RedefinableTemplateSignature.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//RedefinableTemplateSignature"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdAqrFYCEeS0WsAAtVmToA"
- name="UML::ReduceAction"
- identifier="org.eclipse.papyrus.uml.ReduceAction"
- hint="UML::ReduceAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdAqrVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ReduceAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ReduceAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdBRtlYCEeS0WsAAtVmToA"
- name="UML::Region"
- identifier="org.eclipse.papyrus.uml.Region"
- hint="UML::Region"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.RegionEditHelper">
- <iconEntry
- xmi:id="_SdBRt1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Region.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Region"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdBRuFYCEeS0WsAAtVmToA"
- name="UML::Relationship"
- identifier="org.eclipse.papyrus.uml.Relationship"
- hint="UML::Relationship"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdBRuVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Relationship.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Relationship"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdBRulYCEeS0WsAAtVmToA"
- name="UML::RemoveStructuralFeatureValueAction"
- identifier="org.eclipse.papyrus.uml.RemoveStructuralFeatureValueAction"
- hint="UML::RemoveStructuralFeatureValueAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdBRu1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/RemoveStructuralFeatureValueAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//RemoveStructuralFeatureValueAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdBRwlYCEeS0WsAAtVmToA"
- name="UML::RemoveVariableValueAction"
- identifier="org.eclipse.papyrus.uml.RemoveVariableValueAction"
- hint="UML::RemoveVariableValueAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdBRw1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/RemoveVariableValueAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//RemoveVariableValueAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdBRylYCEeS0WsAAtVmToA"
- name="UML::ReplyAction"
- identifier="org.eclipse.papyrus.uml.ReplyAction"
- hint="UML::ReplyAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdBRy1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ReplyAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ReplyAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdBR0lYCEeS0WsAAtVmToA"
- name="UML::SendObjectAction"
- identifier="org.eclipse.papyrus.uml.SendObjectAction"
- hint="UML::SendObjectAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdBR01YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/SendObjectAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//SendObjectAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdB4xlYCEeS0WsAAtVmToA"
- name="UML::SendSignalAction"
- identifier="org.eclipse.papyrus.uml.SendSignalAction"
- hint="UML::SendSignalAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdB4x1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/SendSignalAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//SendSignalAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdB4zlYCEeS0WsAAtVmToA"
- name="UML::SequenceNode"
- identifier="org.eclipse.papyrus.uml.SequenceNode"
- hint="UML::SequenceNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.SequenceNodeHelper">
- <iconEntry
- xmi:id="_SdB4z1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/SequenceNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//SequenceNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdB431YCEeS0WsAAtVmToA"
- name="UML::Signal"
- identifier="org.eclipse.papyrus.uml.Signal"
- hint="UML::Signal"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdB44FYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Signal.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Signal"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdB44VYCEeS0WsAAtVmToA"
- name="UML::SignalEvent"
- identifier="org.eclipse.papyrus.uml.SignalEvent"
- hint="UML::SignalEvent"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdB44lYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/SignalEvent.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//SignalEvent"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdCf4lYCEeS0WsAAtVmToA"
- name="UML::Slot"
- identifier="org.eclipse.papyrus.uml.Slot"
- hint="UML::Slot"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdCf41YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Slot.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Slot"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdCf5FYCEeS0WsAAtVmToA"
- name="UML::StartClassifierBehaviorAction"
- identifier="org.eclipse.papyrus.uml.StartClassifierBehaviorAction"
- hint="UML::StartClassifierBehaviorAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdCf5VYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/StartClassifierBehaviorAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//StartClassifierBehaviorAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdCf7FYCEeS0WsAAtVmToA"
- name="UML::StartObjectBehaviorAction"
- identifier="org.eclipse.papyrus.uml.StartObjectBehaviorAction"
- hint="UML::StartObjectBehaviorAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdCf7VYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/StartObjectBehaviorAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//StartObjectBehaviorAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdCf9FYCEeS0WsAAtVmToA"
- name="UML::State"
- identifier="org.eclipse.papyrus.uml.State"
- hint="UML::State"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdCf9VYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/State.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//State"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdCf9lYCEeS0WsAAtVmToA"
- name="UML::StateInvariant"
- identifier="org.eclipse.papyrus.uml.StateInvariant"
- hint="UML::StateInvariant"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdCf91YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/StateInvariant.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//StateInvariant"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdCf-FYCEeS0WsAAtVmToA"
- name="UML::StateMachine"
- identifier="org.eclipse.papyrus.uml.StateMachine"
- hint="UML::StateMachine"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdCf-VYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/StateMachine.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//StateMachine"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdDG91YCEeS0WsAAtVmToA"
- name="UML::Stereotype"
- identifier="org.eclipse.papyrus.uml.Stereotype"
- hint="UML::Stereotype"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdDG-FYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Stereotype.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Stereotype"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdDHBVYCEeS0WsAAtVmToA"
- name="UML::StringExpression"
- identifier="org.eclipse.papyrus.uml.StringExpression"
- hint="UML::StringExpression"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdDHBlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/StringExpression.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//StringExpression"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdGKSFYCEeS0WsAAtVmToA"
- name="UML::StructuralFeature"
- identifier="org.eclipse.papyrus.uml.StructuralFeature"
- hint="UML::StructuralFeature"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdGKSVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/StructuralFeature.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//StructuralFeature"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdGKSlYCEeS0WsAAtVmToA"
- name="UML::StructuralFeatureAction"
- identifier="org.eclipse.papyrus.uml.StructuralFeatureAction"
- hint="UML::StructuralFeatureAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdGKS1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/StructuralFeatureAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//StructuralFeatureAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdGxQFYCEeS0WsAAtVmToA"
- name="UML::StructuredActivityNode"
- identifier="org.eclipse.papyrus.uml.StructuredActivityNode"
- hint="UML::StructuredActivityNode"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.StructuredActivityNodeHelper">
- <iconEntry
- xmi:id="_SdGxQVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/StructuredActivityNode.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//StructuredActivityNode"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdGxUVYCEeS0WsAAtVmToA"
- name="UML::StructuredClassifier"
- identifier="org.eclipse.papyrus.uml.StructuredClassifier"
- hint="UML::StructuredClassifier"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdGxUlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/StructuredClassifier.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//StructuredClassifier"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdGxU1YCEeS0WsAAtVmToA"
- name="UML::Substitution"
- identifier="org.eclipse.papyrus.uml.Substitution"
- hint="UML::Substitution"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.SubstitutionEditHelper">
- <iconEntry
- xmi:id="_SdGxVFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Substitution.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Substitution"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdHYW1YCEeS0WsAAtVmToA"
- name="UML::TemplateBinding"
- identifier="org.eclipse.papyrus.uml.TemplateBinding"
- hint="UML::TemplateBinding"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.TemplateBindingEditHelper">
- <iconEntry
- xmi:id="_SdHYXFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/TemplateBinding.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//TemplateBinding"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdHYXVYCEeS0WsAAtVmToA"
- name="UML::TemplateParameterBase"
- identifier="org.eclipse.papyrus.uml.TemplateParameterBase"
- hint="UML::TemplateParameterBase"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdHYXlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/TemplateParameter.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//TemplateParameter"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_JCgQsJXMEeSmV5hdT3HeBw"
- name="UML::TemplateParameter"
- identifier="org.eclipse.papyrus.uml.TemplateParameter"
- hint="UML::TemplateParameter">
- <specializedTypesID>org.eclipse.papyrus.uml.TemplateParameterBase</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_JCgQsZXMEeSmV5hdT3HeBw"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.TemplateParameterEditHelperAdvice"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdHYX1YCEeS0WsAAtVmToA"
- name="UML::TemplateParameterSubstitution"
- identifier="org.eclipse.papyrus.uml.TemplateParameterSubstitution"
- hint="UML::TemplateParameterSubstitution"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdHYYFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/TemplateParameterSubstitution.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//TemplateParameterSubstitution"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdHYYVYCEeS0WsAAtVmToA"
- name="UML::TemplateSignature"
- identifier="org.eclipse.papyrus.uml.TemplateSignature"
- hint="UML::TemplateSignature"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdHYYlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/TemplateSignature.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//TemplateSignature"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdHYY1YCEeS0WsAAtVmToA"
- name="UML::TemplateableElement"
- identifier="org.eclipse.papyrus.uml.TemplateableElement"
- hint="UML::TemplateableElement"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdHYZFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/TemplateableElement.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//TemplateableElement"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdHYZVYCEeS0WsAAtVmToA"
- name="UML::TestIdentityAction"
- identifier="org.eclipse.papyrus.uml.TestIdentityAction"
- hint="UML::TestIdentityAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdHYZlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/TestIdentityAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//TestIdentityAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdHYbVYCEeS0WsAAtVmToA"
- name="UML::TimeConstraint"
- identifier="org.eclipse.papyrus.uml.TimeConstraint"
- hint="UML::TimeConstraint"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.TimeConstraintEditHelper">
- <iconEntry
- xmi:id="_SdHYblYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/TimeConstraint.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//TimeConstraint"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdH_eFYCEeS0WsAAtVmToA"
- name="UML::TimeEvent"
- identifier="org.eclipse.papyrus.uml.TimeEvent"
- hint="UML::TimeEvent"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdH_eVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/TimeEvent.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//TimeEvent"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdImcFYCEeS0WsAAtVmToA"
- name="UML::TimeExpression"
- identifier="org.eclipse.papyrus.uml.TimeExpression"
- hint="UML::TimeExpression"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdImcVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/TimeExpression.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//TimeExpression"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdJNklYCEeS0WsAAtVmToA"
- name="UML::TimeInterval"
- identifier="org.eclipse.papyrus.uml.TimeInterval"
- hint="UML::TimeInterval"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdJNk1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/TimeInterval.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//TimeInterval"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdKbvlYCEeS0WsAAtVmToA"
- name="UML::TimeObservation"
- identifier="org.eclipse.papyrus.uml.TimeObservation"
- hint="UML::TimeObservation"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdKbv1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/TimeObservation.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//TimeObservation"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdLCtVYCEeS0WsAAtVmToA"
- name="UML::Transition"
- identifier="org.eclipse.papyrus.uml.Transition"
- hint="UML::Transition"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.TransitionEditHelper">
- <iconEntry
- xmi:id="_SdLCtlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Transition.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Transition"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdLCt1YCEeS0WsAAtVmToA"
- name="UML::Trigger"
- identifier="org.eclipse.papyrus.uml.Trigger"
- hint="UML::Trigger"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdLCuFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Trigger.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Trigger"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdLCuVYCEeS0WsAAtVmToA"
- name="UML::Type"
- identifier="org.eclipse.papyrus.uml.Type"
- hint="UML::Type"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdLCulYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Type.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Type"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdLCu1YCEeS0WsAAtVmToA"
- name="UML::TypedElement"
- identifier="org.eclipse.papyrus.uml.TypedElement"
- hint="UML::TypedElement"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdLCvFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/TypedElement.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//TypedElement"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdLCvVYCEeS0WsAAtVmToA"
- name="UML::UnmarshallAction"
- identifier="org.eclipse.papyrus.uml.UnmarshallAction"
- hint="UML::UnmarshallAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdLCvlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/UnmarshallAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//UnmarshallAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdLCxVYCEeS0WsAAtVmToA"
- name="UML::Usage"
- identifier="org.eclipse.papyrus.uml.Usage"
- hint="UML::Usage"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.DependencyEditHelper">
- <iconEntry
- xmi:id="_SdLCxlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Usage.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Usage"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdLCzVYCEeS0WsAAtVmToA"
- name="UML::UseCase"
- identifier="org.eclipse.papyrus.uml.UseCase"
- hint="UML::UseCase"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.UseCaseEditHelper">
- <iconEntry
- xmi:id="_SdLCzlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/UseCase.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//UseCase"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdLp11YCEeS0WsAAtVmToA"
- name="UML::ValuePin"
- identifier="org.eclipse.papyrus.uml.ValuePin"
- hint="UML::ValuePin"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdLp2FYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ValuePin.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ValuePin"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdM3_1YCEeS0WsAAtVmToA"
- name="UML::ValueSpecification"
- identifier="org.eclipse.papyrus.uml.ValueSpecification"
- hint="UML::ValueSpecification"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdM4AFYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ValueSpecification.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ValueSpecification"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdM4AVYCEeS0WsAAtVmToA"
- name="UML::ValueSpecificationAction"
- identifier="org.eclipse.papyrus.uml.ValueSpecificationAction"
- hint="UML::ValueSpecificationAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdM4AlYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/ValueSpecificationAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//ValueSpecificationAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdNe8FYCEeS0WsAAtVmToA"
- name="UML::Variable"
- identifier="org.eclipse.papyrus.uml.Variable"
- hint="UML::Variable"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdNe8VYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Variable.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Variable"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdNe8lYCEeS0WsAAtVmToA"
- name="UML::VariableAction"
- identifier="org.eclipse.papyrus.uml.VariableAction"
- hint="UML::VariableAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdNe81YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/VariableAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//VariableAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdNe-lYCEeS0WsAAtVmToA"
- name="UML::Vertex"
- identifier="org.eclipse.papyrus.uml.Vertex"
- hint="UML::Vertex"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
- <iconEntry
- xmi:id="_SdNe-1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/Vertex.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//Vertex"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdNe_FYCEeS0WsAAtVmToA"
- name="UML::WriteLinkAction"
- identifier="org.eclipse.papyrus.uml.WriteLinkAction"
- hint="UML::WriteLinkAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdNe_VYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/WriteLinkAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//WriteLinkAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdNe_lYCEeS0WsAAtVmToA"
- name="UML::WriteStructuralFeatureAction"
- identifier="org.eclipse.papyrus.uml.WriteStructuralFeatureAction"
- hint="UML::WriteStructuralFeatureAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdNe_1YCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/WriteStructuralFeatureAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//WriteStructuralFeatureAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
- xmi:id="_SdNfAFYCEeS0WsAAtVmToA"
- name="UML::WriteVariableAction"
- identifier="org.eclipse.papyrus.uml.WriteVariableAction"
- hint="UML::WriteVariableAction"
- editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
- <iconEntry
- xmi:id="_SdNfAVYCEeS0WsAAtVmToA"
- iconPath="/icons/full/obj16/WriteVariableAction.gif"
- bundleId="org.eclipse.uml2.uml.edit"/>
- <eClass
- href="http://www.eclipse.org/uml2/5.0.0/UML#//WriteVariableAction"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_JPmakGskEeSELtwF_9-6fg"
- name="UML::Trace"
- identifier="org.eclipse.papyrus.uml.Trace"
- hint="UML::Trace">
- <specializedTypesID>org.eclipse.papyrus.uml.Abstraction</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_JPmakWskEeSELtwF_9-6fg"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.TraceEditHelperAdvice"/>
- <matcherConfiguration
- xmi:id="_LDOUUGskEeSELtwF_9-6fg"
- matcherClassName="org.eclipse.papyrus.uml.service.types.matcher.TraceMatcher"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_UGdZ8GslEeSELtwF_9-6fg"
- name="UML::Refine"
- identifier="org.eclipse.papyrus.uml.Refine"
- hint="UML::Refine">
- <specializedTypesID>org.eclipse.papyrus.uml.Abstraction</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_UGdZ8WslEeSELtwF_9-6fg"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.RefineEditHelperAdvice"/>
- <matcherConfiguration
- xmi:id="_UGdZ8mslEeSELtwF_9-6fg"
- matcherClassName="org.eclipse.papyrus.uml.service.types.matcher.RefineMatcher"/>
- </elementTypeConfigurations>
- <elementTypeConfigurations
- xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
- xmi:id="_xVU0MHlEEeSDaJF_npeEXw"
- name="UML::Element::OwnedElement"
- description="Created to support the ContainmentLink"
- identifier="org.eclipse.papyrus.uml.Element.OwnedElement"
- hint="UML::Element::OwnedElement">
- <specializedTypesID>org.eclipse.gmf.runtime.emf.type.core.null</specializedTypesID>
- <editHelperAdviceConfiguration
- xmi:id="_JdUX4MHTEeSpuJnfbRdiWQ"
- identifier=""
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ElementOwnedElementEditHelperAdvice"
- inheritance="all"/>
- </elementTypeConfigurations>
- <adviceBindingsConfigurations
- xmi:id="_mqX8YMHdEeSpuJnfbRdiWQ"
- identifier="org.eclipse.papyrus.uml.advice.Containment"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ElementOwnedElementReorientEditHelperAdvice"
- inheritance="all"
- target="_ScgUUFYCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_6AWx0MJaEeSl6M4_Zhyt7Q"
- identifier="org.eclipse.papyrus.uml.advice.ConstraintConstrainedElementsReorient"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ConstraintConstrainedElementsReorientEditHelperAdvice"
- inheritance="all"
- target="_SccC-1YCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_Biw5sMdFEeS1POoqrCEMrQ"
- identifier="org.eclipse.papyrus.uml.advice.CommentAnnotatedElementsReorient"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.CommentAnnotatedElementsReorientEditHelperAdvice"
- inheritance="all"
- target="_Scbb2FYCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_UdTKsMJbEeSl6M4_Zhyt7Q"
- identifier="org.eclipse.papyrus.uml.advice.ConstraintContextReorient"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ConstraintContextReorientEditHelperAdvice"
- inheritance="all"
- target="_SccC-1YCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pDcGT7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.ContainmentSubsetRemoval"
- identifier="org.eclipse.papyrus.uml.advice.ContainmentSubsetRemoval"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ContainmentSubsetRemovalAdvice"
- inheritance="all"
- target="_ScgUUFYCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pDcWT7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.Classifier"
- identifier="org.eclipse.papyrus.uml.advice.Classifier"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ClassifierHelperAdvice"
- inheritance="all"
- target="_Sca0z1YCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pDcmT7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.Collaboration"
- identifier="org.eclipse.papyrus.uml.advice.Collaboration"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.CollaborationHelperAdvice"
- target="_Sca07VYCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pDc2T7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.CollaborationUse"
- identifier="org.eclipse.papyrus.uml.advice.CollaborationUse"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.CollaborationUseHelperAdvice"
- target="_Sca071YCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pDdGT7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.Connector"
- identifier="org.eclipse.papyrus.uml.advice.Connector"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ConnectorHelperAdvice"
- inheritance="all"
- target="_SccC9VYCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pDdWT7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.ConnectorEnd"
- identifier="org.eclipse.papyrus.uml.advice.ConnectorEnd"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ConnectorEndHelperAdvice"
- target="_SccC91YCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pqgGT7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.EncapsulatedClassifier"
- identifier="org.eclipse.papyrus.uml.advice.EncapsulatedClassifier"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.EncapsulatedClassifierHelperAdvice"
- inheritance="all"
- target="_ScgUVFYCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pqgWT7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.ExecutionSpecification"
- identifier="org.eclipse.papyrus.uml.advice.ExecutionSpecification"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ExecutionSpecificationHelperAdvice"
- inheritance="all"
- target="_Schic1YCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pqg2T7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.Lifeline"
- identifier="org.eclipse.papyrus.uml.advice.Lifeline"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.LifelineHelperAdvice"
- inheritance="all"
- target="_Scz2V1YCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pqhGT7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.Message"
- identifier="org.eclipse.papyrus.uml.advice.Message"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.MessageHelperAdvice"
- inheritance="all"
- target="_Sc59FFYCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pqhWT7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.MessageEnd"
- identifier="org.eclipse.papyrus.uml.advice.MessageEnd"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.MessageEndHelperAdvice"
- inheritance="all"
- target="_Sc59FlYCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pqhmT7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.NamedElement"
- identifier="org.eclipse.papyrus.uml.advice.NamedElement"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.NamedElementHelperAdvice"
- inheritance="all"
- target="_Sc6kDFYCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pqh2T7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.NamedElementNameInitializer"
- identifier="org.eclipse.papyrus.uml.advice.NamedElementNameInitializer"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.NamedElementInitializerHelperAdvice"
- inheritance="all"
- target="_Sc6kDFYCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pqiGT7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.OccurrenceSpecification"
- identifier="org.eclipse.papyrus.uml.advice.OccurrenceSpecification"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.OccurrenceSpecificationHelperAdvice"
- inheritance="all"
- target="_Sc6kKlYCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pqiWT7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.Parameter"
- identifier="org.eclipse.papyrus.uml.advice.Parameter"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ParameterHelperAdvice"
- inheritance="all"
- target="_Sc9nc1YCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pqimT7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.PartDecomposition"
- identifier="org.eclipse.papyrus.uml.advice.PartDecomposition"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.PartDecompositionHelperAdvice"
- target="_Sc-OaFYCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pqi2T7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.Property"
- identifier="org.eclipse.papyrus.uml.advice.Property"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.PropertyHelperAdvice"
- inheritance="all"
- target="_Sc-1cFYCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pqjGT7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.StructuredClassifier"
- identifier="org.eclipse.papyrus.uml.advice.StructuredClassifier"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.StructuredClassifierHelperAdvice"
- inheritance="all"
- target="_SdGxUVYCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pqjWT7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.ActivityNode"
- identifier="org.eclipse.papyrus.uml.advice.ActivityNode"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ActivityNodeHelperAdvice"
- inheritance="all"
- target="_ScTgJVYCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_R_pqjmT7EeSzFvTXGJPhUg"
- name="org.eclipse.papyrus.uml.advice.ActivityGroup"
- identifier="org.eclipse.papyrus.uml.advice.ActivityGroup"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ActivityGroupEditHelperAdvice"
- inheritance="all"
- target="_ScTgI1YCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_yHsHwOg-EeSqZs7o0maBIQ"
- name="Stereotype Applications Advice"
- description="Advice for stereotype applications, primarily supplying them as dependents in the destruction of their base element."
- identifier="org.eclipse.papyrus.uml.advice.StereotypeApplication"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.StereotypeApplicationAdvice"
- inheritance="all"
- target="_ScgUUFYCEeS0WsAAtVmToA"/>
- <adviceBindingsConfigurations
- xmi:id="_HE0JMOnEEeSnv9na4RmO6Q"
- name="org.eclipse.papyrus.uml.advice.Extension"
- identifier="org.eclipse.papyrus.uml.advice.Extension"
- editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ExtensionEditHelperAdvice"
- inheritance="all"
- target="_ScjXoVYCEeS0WsAAtVmToA"/>
-</elementtypesconfigurations:ElementTypeSetConfiguration>
+<?xml version="1.0" encoding="ASCII"?>
+<elementtypesconfigurations:ElementTypeSetConfiguration
+ xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:elementtypesconfigurations="http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/1.0"
+ xmi:id="_ScP1oFYCEeS0WsAAtVmToA"
+ metamodelNsURI="http://www.eclipse.org/uml2/5.0.0/UML">
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScP1oVYCEeS0WsAAtVmToA"
+ name="UML::Abstraction"
+ identifier="org.eclipse.papyrus.uml.Abstraction"
+ hint="UML::Abstraction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.DependencyEditHelper">
+ <iconEntry
+ xmi:id="_ScP1olYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Abstraction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Abstraction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScQcs1YCEeS0WsAAtVmToA"
+ name="UML::AcceptCallAction"
+ identifier="org.eclipse.papyrus.uml.AcceptCallAction"
+ hint="UML::AcceptCallAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_ScQctFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/AcceptCallAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//AcceptCallAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScQcu1YCEeS0WsAAtVmToA"
+ name="UML::AcceptEventAction"
+ identifier="org.eclipse.papyrus.uml.AcceptEventAction"
+ hint="UML::AcceptEventAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_ScQcvFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/AcceptEventAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//AcceptEventAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScRDxFYCEeS0WsAAtVmToA"
+ name="UML::Action"
+ identifier="org.eclipse.papyrus.uml.Action"
+ hint="UML::Action"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_ScRDxVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Action.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Action"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScRDxlYCEeS0WsAAtVmToA"
+ name="UML::ActionExecutionSpecification"
+ identifier="org.eclipse.papyrus.uml.ActionExecutionSpecification"
+ hint="UML::ActionExecutionSpecification"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScRDx1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ActionExecutionSpecification.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ActionExecutionSpecification"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScRDyFYCEeS0WsAAtVmToA"
+ name="UML::ActionInputPin"
+ identifier="org.eclipse.papyrus.uml.ActionInputPin"
+ hint="UML::ActionInputPin"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_ScRDyVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ActionInputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ActionInputPin"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScTgG1YCEeS0WsAAtVmToA"
+ name="UML::Activity"
+ identifier="org.eclipse.papyrus.uml.Activity"
+ hint="UML::Activity"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityHelper">
+ <iconEntry
+ xmi:id="_ScTgHFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Activity.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Activity"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScTgHVYCEeS0WsAAtVmToA"
+ name="UML::ActivityContent"
+ identifier="org.eclipse.papyrus.uml.ActivityContent"
+ hint="UML::ActivityContent"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScTgHlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ActivityContent.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ActivityContent"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScTgH1YCEeS0WsAAtVmToA"
+ name="UML::ActivityEdge"
+ identifier="org.eclipse.papyrus.uml.ActivityEdge"
+ hint="UML::ActivityEdge"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScTgIFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ActivityEdge.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ActivityEdge"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScTgIVYCEeS0WsAAtVmToA"
+ name="UML::ActivityFinalNode"
+ identifier="org.eclipse.papyrus.uml.ActivityFinalNode"
+ hint="UML::ActivityFinalNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_ScTgIlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ActivityFinalNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ActivityFinalNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScTgI1YCEeS0WsAAtVmToA"
+ name="UML::ActivityGroup"
+ identifier="org.eclipse.papyrus.uml.ActivityGroup"
+ hint="UML::ActivityGroup"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityGroupHelper">
+ <iconEntry
+ xmi:id="_ScTgJFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ActivityGroup.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ActivityGroup"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScTgJVYCEeS0WsAAtVmToA"
+ name="UML::ActivityNode"
+ identifier="org.eclipse.papyrus.uml.ActivityNode"
+ hint="UML::ActivityNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_ScTgJlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ActivityNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ActivityNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScTgJ1YCEeS0WsAAtVmToA"
+ name="UML::ActivityParameterNode"
+ identifier="org.eclipse.papyrus.uml.ActivityParameterNode"
+ hint="UML::ActivityParameterNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_ScTgKFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ActivityParameterNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ActivityParameterNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScTgKVYCEeS0WsAAtVmToA"
+ name="UML::ActivityPartition"
+ identifier="org.eclipse.papyrus.uml.ActivityPartition"
+ hint="UML::ActivityPartition"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityPartitionEditHelper">
+ <iconEntry
+ xmi:id="_ScTgKlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ActivityPartition.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ActivityPartition"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScV8UVYCEeS0WsAAtVmToA"
+ name="UML::Actor"
+ identifier="org.eclipse.papyrus.uml.Actor"
+ hint="UML::Actor"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScV8UlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Actor.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Actor"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScWjU1YCEeS0WsAAtVmToA"
+ name="UML::AddStructuralFeatureValueAction"
+ identifier="org.eclipse.papyrus.uml.AddStructuralFeatureValueAction"
+ hint="UML::AddStructuralFeatureValueAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_ScWjVFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/AddStructuralFeatureValueAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//AddStructuralFeatureValueAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScWjW1YCEeS0WsAAtVmToA"
+ name="UML::AddVariableValueAction"
+ identifier="org.eclipse.papyrus.uml.AddVariableValueAction"
+ hint="UML::AddVariableValueAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_ScWjXFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/AddVariableValueAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//AddVariableValueAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScXKYFYCEeS0WsAAtVmToA"
+ name="UML::AnyReceiveEvent"
+ identifier="org.eclipse.papyrus.uml.AnyReceiveEvent"
+ hint="UML::AnyReceiveEvent"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScXKYVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/AnyReceiveEvent.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//AnyReceiveEvent"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScXKaFYCEeS0WsAAtVmToA"
+ name="UML::Artifact"
+ identifier="org.eclipse.papyrus.uml.Artifact"
+ hint="UML::Artifact"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScXKaVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Artifact.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Artifact"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScXxdFYCEeS0WsAAtVmToA"
+ name="UML::AssociationBase"
+ identifier="org.eclipse.papyrus.uml.AssociationBase"
+ hint="UML::AssociationBase"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.AssociationBaseEditHelper">
+ <iconEntry
+ xmi:id="_ScXxdVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Association.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Association"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_f8dpoFYTEeSx49G4xBUj9Q"
+ name="UML::Association"
+ identifier="org.eclipse.papyrus.uml.Association"
+ hint="UML::Association">
+ <iconEntry
+ xmi:id="_vYYlEFYTEeSx49G4xBUj9Q"
+ iconPath="/icons/full/obj16/Association.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.AssociationBase</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_4Jz-cFYTEeSx49G4xBUj9Q"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.AssociationEditHelperAdvice"/>
+ <matcherConfiguration
+ xmi:id="_-lvgEFYTEeSx49G4xBUj9Q"
+ matcherClassName="org.eclipse.papyrus.uml.service.types.matcher.AssociationMatcher"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScXxdlYCEeS0WsAAtVmToA"
+ name="UML::AssociationClassBase"
+ identifier="org.eclipse.papyrus.uml.AssociationClassBase"
+ hint="UML::AssociationClassBase"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.AssociationBaseEditHelper">
+ <iconEntry
+ xmi:id="_ScXxd1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/AssociationClass.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//AssociationClass"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_2JgRAHV3EeScr8rbRObDkA"
+ name="UML::AssociationClass"
+ identifier="org.eclipse.papyrus.uml.AssociationClass"
+ hint="UML::AssociationClass">
+ <iconEntry
+ xmi:id="_2Jg4EHV3EeScr8rbRObDkA"
+ iconPath="/icons/full/obj16/AssociationClass.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.AssociationClassBase</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_2Jg4EXV3EeScr8rbRObDkA"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.AssociationEditHelperAdvice"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScaNsFYCEeS0WsAAtVmToA"
+ name="UML::Behavior"
+ identifier="org.eclipse.papyrus.uml.Behavior"
+ hint="UML::Behavior"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScaNsVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Behavior.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Behavior"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScaNslYCEeS0WsAAtVmToA"
+ name="UML::BehaviorExecutionSpecification"
+ identifier="org.eclipse.papyrus.uml.BehaviorExecutionSpecification"
+ hint="UML::BehaviorExecutionSpecification"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScaNs1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/BehaviorExecutionSpecification.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//BehaviorExecutionSpecification"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScaNtFYCEeS0WsAAtVmToA"
+ name="UML::BehavioralFeature"
+ identifier="org.eclipse.papyrus.uml.BehavioralFeature"
+ hint="UML::BehavioralFeature"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScaNtVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/BehavioralFeature.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//BehavioralFeature"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScaNtlYCEeS0WsAAtVmToA"
+ name="UML::BehavioredClassifier"
+ identifier="org.eclipse.papyrus.uml.BehavioredClassifier"
+ hint="UML::BehavioredClassifier"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.BehavioredClassifierEditHelper">
+ <iconEntry
+ xmi:id="_ScaNt1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/BehavioredClassifier.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//BehavioredClassifier"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScaNuFYCEeS0WsAAtVmToA"
+ name="UML::BroadcastSignalAction"
+ identifier="org.eclipse.papyrus.uml.BroadcastSignalAction"
+ hint="UML::BroadcastSignalAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_ScaNuVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/BroadcastSignalAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//BroadcastSignalAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScaNwFYCEeS0WsAAtVmToA"
+ name="UML::CallAction"
+ identifier="org.eclipse.papyrus.uml.CallAction"
+ hint="UML::CallAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_ScaNwVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/CallAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//CallAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScaNwlYCEeS0WsAAtVmToA"
+ name="UML::CallBehaviorAction"
+ identifier="org.eclipse.papyrus.uml.CallBehaviorAction"
+ hint="UML::CallBehaviorAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_ScaNw1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/CallBehaviorAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//CallBehaviorAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScaNylYCEeS0WsAAtVmToA"
+ name="UML::CallEvent"
+ identifier="org.eclipse.papyrus.uml.CallEvent"
+ hint="UML::CallEvent"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScaNy1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/CallEvent.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//CallEvent"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScaN0lYCEeS0WsAAtVmToA"
+ name="UML::CallOperationAction"
+ identifier="org.eclipse.papyrus.uml.CallOperationAction"
+ hint="UML::CallOperationAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_ScaN01YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/CallOperationAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//CallOperationAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScaN2lYCEeS0WsAAtVmToA"
+ name="UML::CentralBufferNode"
+ identifier="org.eclipse.papyrus.uml.CentralBufferNode"
+ hint="UML::CentralBufferNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_ScaN21YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/CentralBufferNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//CentralBufferNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScaN3FYCEeS0WsAAtVmToA"
+ name="UML::ChangeEvent"
+ identifier="org.eclipse.papyrus.uml.ChangeEvent"
+ hint="UML::ChangeEvent"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScaN3VYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ChangeEvent.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ChangeEvent"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sca0wVYCEeS0WsAAtVmToA"
+ name="UML::Class"
+ identifier="org.eclipse.papyrus.uml.Class"
+ hint="UML::Class"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ClassEditHelper">
+ <iconEntry
+ xmi:id="_Sca0wlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Class.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sca0z1YCEeS0WsAAtVmToA"
+ name="UML::Classifier"
+ identifier="org.eclipse.papyrus.uml.Classifier"
+ hint="UML::Classifier"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sca00FYCEeS0WsAAtVmToA"
+ iconPath="/icons/Classifier.gif"
+ bundleId="org.eclipse.papyrus.uml.service.types"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Classifier"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sca00VYCEeS0WsAAtVmToA"
+ name="UML::ClassifierTemplateParameterBase"
+ identifier="org.eclipse.papyrus.uml.ClassifierTemplateParameterBase"
+ hint="UML::ClassifierTemplateParameterBase"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sca00lYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ClassifierTemplateParameter.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ClassifierTemplateParameter"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_kyfxEH67EeSVzvxdAiQ3xA"
+ name="UML::ClassifierTemplateParameter"
+ identifier="org.eclipse.papyrus.uml.ClassifierTemplateParameter"
+ hint="UML::ClassifierTemplateParameter">
+ <specializedTypesID>org.eclipse.papyrus.uml.ClassifierTemplateParameterBase</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_uuHFoH67EeSVzvxdAiQ3xA"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ClassifierTemplateParameterEditHelperAdvice"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sca001YCEeS0WsAAtVmToA"
+ name="UML::Clause"
+ identifier="org.eclipse.papyrus.uml.Clause"
+ hint="UML::Clause"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sca01FYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Clause.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Clause"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sca01VYCEeS0WsAAtVmToA"
+ name="UML::ClearAssociationAction"
+ identifier="org.eclipse.papyrus.uml.ClearAssociationAction"
+ hint="UML::ClearAssociationAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sca01lYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ClearAssociationAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ClearAssociationAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sca03VYCEeS0WsAAtVmToA"
+ name="UML::ClearStructuralFeatureAction"
+ identifier="org.eclipse.papyrus.uml.ClearStructuralFeatureAction"
+ hint="UML::ClearStructuralFeatureAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sca03lYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ClearStructuralFeatureAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ClearStructuralFeatureAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sca05VYCEeS0WsAAtVmToA"
+ name="UML::ClearVariableAction"
+ identifier="org.eclipse.papyrus.uml.ClearVariableAction"
+ hint="UML::ClearVariableAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sca05lYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ClearVariableAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ClearVariableAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sca07VYCEeS0WsAAtVmToA"
+ name="UML::Collaboration"
+ identifier="org.eclipse.papyrus.uml.Collaboration"
+ hint="UML::Collaboration"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.CollaborationEditHelper">
+ <iconEntry
+ xmi:id="_Sca07lYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Collaboration.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Collaboration"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_IsX6UMc9EeS1POoqrCEMrQ"
+ name="UML::Collaboration::CollaborationRole"
+ identifier="org.eclipse.papyrus.uml.Collaboration.CollaborationRole"
+ hint="UML::Collaboration::CollaborationRole">
+ <iconEntry
+ xmi:id="_XvNAUMc9EeS1POoqrCEMrQ"
+ iconPath="/icons/full/obj16/ConnectableElement.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.gmf.runtime.emf.type.core.null</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_8m8kIMc9EeS1POoqrCEMrQ"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.CollaborationCollaborationRoleEditHelperAdvice"
+ inheritance="all"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sca071YCEeS0WsAAtVmToA"
+ name="UML::CollaborationUse"
+ identifier="org.eclipse.papyrus.uml.CollaborationUse"
+ hint="UML::CollaborationUse"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sca08FYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/CollaborationUse.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//CollaborationUse"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scbb1lYCEeS0WsAAtVmToA"
+ name="UML::CombinedFragment"
+ identifier="org.eclipse.papyrus.uml.CombinedFragment"
+ hint="UML::CombinedFragment"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Scbb11YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/CombinedFragment.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//CombinedFragment"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scbb2FYCEeS0WsAAtVmToA"
+ name="UML::Comment"
+ identifier="org.eclipse.papyrus.uml.Comment"
+ hint="UML::Comment"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Scbb2VYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Comment.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Comment"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_poCSAGqWEeSE-IVtP6jQeA"
+ name="UML::Comment::AnnotatedElements"
+ identifier="org.eclipse.papyrus.uml.Comment.AnnotatedElements"
+ hint="UML::Comment::AnnotatedElements">
+ <specializedTypesID>org.eclipse.gmf.runtime.emf.type.core.null</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_6-K50HY7EeSaAZaF2vKiqg"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.CommentAnnotatedElementsEditHelperAdvice"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scbb2lYCEeS0WsAAtVmToA"
+ name="UML::CommunicationPath"
+ identifier="org.eclipse.papyrus.uml.CommunicationPath"
+ hint="UML::CommunicationPath"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Scbb21YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/CommunicationPath.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//CommunicationPath"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scbb6FYCEeS0WsAAtVmToA"
+ name="UML::Component"
+ identifier="org.eclipse.papyrus.uml.Component"
+ hint="UML::Component"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ComponentEditHelper">
+ <iconEntry
+ xmi:id="_Scbb6VYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Component.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Component"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scbb6lYCEeS0WsAAtVmToA"
+ name="UML::ComponentRealization"
+ identifier="org.eclipse.papyrus.uml.ComponentRealization"
+ hint="UML::ComponentRealization"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ComponentRealizationEditHelper">
+ <iconEntry
+ xmi:id="_Scbb61YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ComponentRealization.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ComponentRealization"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScbcBFYCEeS0WsAAtVmToA"
+ name="UML::ConditionalNode"
+ identifier="org.eclipse.papyrus.uml.ConditionalNode"
+ hint="UML::ConditionalNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.StructuredActivityNodeHelper">
+ <iconEntry
+ xmi:id="_ScbcBVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ConditionalNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ConditionalNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SccC71YCEeS0WsAAtVmToA"
+ name="UML::ConnectableElement"
+ identifier="org.eclipse.papyrus.uml.ConnectableElement"
+ hint="UML::ConnectableElement"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SccC8FYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ConnectableElement.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ConnectableElement"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SccC8VYCEeS0WsAAtVmToA"
+ name="UML::ConnectableElementTemplateParameterBase"
+ identifier="org.eclipse.papyrus.uml.ConnectableElementTemplateParameterBase"
+ hint="UML::ConnectableElementTemplateParameterBase"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SccC8lYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ConnectableElementTemplateParameter.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ConnectableElementTemplateParameter"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_yjhpkJXIEeSmV5hdT3HeBw"
+ name="UML::ConnectableElementTemplateParameter"
+ identifier="org.eclipse.papyrus.uml.ConnectableElementTemplateParameter"
+ hint="UML::ConnectableElementTemplateParameter">
+ <specializedTypesID>org.eclipse.papyrus.uml.ConnectableElementTemplateParameterBase</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_yjhpkZXIEeSmV5hdT3HeBw"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ConnectableElementTemplateParameterEditHelperAdvice"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SccC81YCEeS0WsAAtVmToA"
+ name="UML::ConnectionPointReference"
+ identifier="org.eclipse.papyrus.uml.ConnectionPointReference"
+ hint="UML::ConnectionPointReference"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SccC9FYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ConnectionPointReference.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ConnectionPointReference"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SccC9VYCEeS0WsAAtVmToA"
+ name="UML::Connector"
+ identifier="org.eclipse.papyrus.uml.Connector"
+ hint="UML::Connector"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ConnectorEditHelper">
+ <iconEntry
+ xmi:id="_SccC9lYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Connector.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Connector"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SccC91YCEeS0WsAAtVmToA"
+ name="UML::ConnectorEnd"
+ identifier="org.eclipse.papyrus.uml.ConnectorEnd"
+ hint="UML::ConnectorEnd"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SccC-FYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ConnectorEnd.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ConnectorEnd"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SccC-VYCEeS0WsAAtVmToA"
+ name="UML::ConsiderIgnoreFragment"
+ identifier="org.eclipse.papyrus.uml.ConsiderIgnoreFragment"
+ hint="UML::ConsiderIgnoreFragment"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SccC-lYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ConsiderIgnoreFragment.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ConsiderIgnoreFragment"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SccC-1YCEeS0WsAAtVmToA"
+ name="UML::Constraint"
+ identifier="org.eclipse.papyrus.uml.Constraint"
+ hint="UML::Constraint"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ConstraintEditHelper">
+ <iconEntry
+ xmi:id="_SccC_FYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Constraint.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Constraint"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_XHjzcGslEeSELtwF_9-6fg"
+ name="UML::Constraint::ConstrainedElements"
+ identifier="org.eclipse.papyrus.uml.Constraint.ConstrainedElements"
+ hint="UML::Constraint::ConstrainedElements">
+ <specializedTypesID>org.eclipse.gmf.runtime.emf.type.core.null</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_njRJoHbmEeSsxehP964iKQ"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ConstraintConstrainedElementsEditHelperAdvice"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_ax9dwHZLEeSQEpHemLeWnw"
+ name="UML::Constraint::Context"
+ identifier="org.eclipse.papyrus.uml.Constraint.Context"
+ hint="UML::Constraint::Context">
+ <specializedTypesID>org.eclipse.gmf.runtime.emf.type.core.null</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_rZSY8HbmEeSsxehP964iKQ"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ConstraintContextEditHelperAdvice"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SccDFVYCEeS0WsAAtVmToA"
+ name="UML::Continuation"
+ identifier="org.eclipse.papyrus.uml.Continuation"
+ hint="UML::Continuation"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SccDFlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Continuation.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Continuation"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SccDF1YCEeS0WsAAtVmToA"
+ name="UML::ControlFlow"
+ identifier="org.eclipse.papyrus.uml.ControlFlow"
+ hint="UML::ControlFlow"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ControlFlowEditHelper">
+ <iconEntry
+ xmi:id="_SccDGFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ControlFlow.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ControlFlow"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SccDGVYCEeS0WsAAtVmToA"
+ name="UML::ControlNode"
+ identifier="org.eclipse.papyrus.uml.ControlNode"
+ hint="UML::ControlNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sccp8FYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ControlNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ControlNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sccp8VYCEeS0WsAAtVmToA"
+ name="UML::CreateLinkAction"
+ identifier="org.eclipse.papyrus.uml.CreateLinkAction"
+ hint="UML::CreateLinkAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sccp8lYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/CreateLinkAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//CreateLinkAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sccp-VYCEeS0WsAAtVmToA"
+ name="UML::CreateLinkObjectAction"
+ identifier="org.eclipse.papyrus.uml.CreateLinkObjectAction"
+ hint="UML::CreateLinkObjectAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sccp-lYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/CreateLinkObjectAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//CreateLinkObjectAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SccqAVYCEeS0WsAAtVmToA"
+ name="UML::CreateObjectAction"
+ identifier="org.eclipse.papyrus.uml.CreateObjectAction"
+ hint="UML::CreateObjectAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SccqAlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/CreateObjectAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//CreateObjectAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SccqCVYCEeS0WsAAtVmToA"
+ name="UML::DataStoreNode"
+ identifier="org.eclipse.papyrus.uml.DataStoreNode"
+ hint="UML::DataStoreNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SccqClYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/DataStoreNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//DataStoreNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SccqC1YCEeS0WsAAtVmToA"
+ name="UML::DataType"
+ identifier="org.eclipse.papyrus.uml.DataType"
+ hint="UML::DataType"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SccqDFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/DataType.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//DataType"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SccqGVYCEeS0WsAAtVmToA"
+ name="UML::DecisionNode"
+ identifier="org.eclipse.papyrus.uml.DecisionNode"
+ hint="UML::DecisionNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SccqGlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/DecisionNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//DecisionNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SccqG1YCEeS0WsAAtVmToA"
+ name="UML::Dependency"
+ identifier="org.eclipse.papyrus.uml.Dependency"
+ hint="UML::Dependency"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.DependencyEditHelper">
+ <iconEntry
+ xmi:id="_SccqHFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Dependency.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Dependency"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_TFofsLhAEeSANYuUIb1qQA"
+ name="UML::CollaborationUse::RoleBinding"
+ identifier="org.eclipse.papyrus.uml.CollaborationUse.RoleBinding"
+ hint="UML::CollaborationUse::RoleBinding">
+ <iconEntry
+ xmi:id="_m8FswLhAEeSANYuUIb1qQA"
+ iconPath="/icons/CollaborationRoleBinding.gif"
+ bundleId="org.eclipse.papyrus.uml.service.types"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Dependency</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_Ao6QQLhBEeSANYuUIb1qQA"
+ identifier=""
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.RoleBindingHelperAdvice"
+ inheritance="all"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SccqI1YCEeS0WsAAtVmToA"
+ name="UML::DeployedArtifact"
+ identifier="org.eclipse.papyrus.uml.DeployedArtifact"
+ hint="UML::DeployedArtifact"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SccqJFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/DeployedArtifact.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//DeployedArtifact"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SccqJVYCEeS0WsAAtVmToA"
+ name="UML::Deployment"
+ identifier="org.eclipse.papyrus.uml.Deployment"
+ hint="UML::Deployment"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.DeploymentEditHelper">
+ <iconEntry
+ xmi:id="_SccqJlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Deployment.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Deployment"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScdRAFYCEeS0WsAAtVmToA"
+ name="UML::DeploymentSpecification"
+ identifier="org.eclipse.papyrus.uml.DeploymentSpecification"
+ hint="UML::DeploymentSpecification"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScdRAVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/DeploymentSpecification.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//DeploymentSpecification"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScdRDlYCEeS0WsAAtVmToA"
+ name="UML::DeploymentTarget"
+ identifier="org.eclipse.papyrus.uml.DeploymentTarget"
+ hint="UML::DeploymentTarget"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScdRD1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/DeploymentTarget.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//DeploymentTarget"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScdRFlYCEeS0WsAAtVmToA"
+ name="UML::DestroyLinkAction"
+ identifier="org.eclipse.papyrus.uml.DestroyLinkAction"
+ hint="UML::DestroyLinkAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_ScdRF1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/DestroyLinkAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//DestroyLinkAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScdRHlYCEeS0WsAAtVmToA"
+ name="UML::DestroyObjectAction"
+ identifier="org.eclipse.papyrus.uml.DestroyObjectAction"
+ hint="UML::DestroyObjectAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_ScdRH1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/DestroyObjectAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//DestroyObjectAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScdRJlYCEeS0WsAAtVmToA"
+ name="UML::DestructionOccurrenceSpecification"
+ identifier="org.eclipse.papyrus.uml.DestructionOccurrenceSpecification"
+ hint="UML::DestructionOccurrenceSpecification"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScdRJ1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/DestructionOccurrenceSpecification.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//DestructionOccurrenceSpecification"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScdRKFYCEeS0WsAAtVmToA"
+ name="UML::Device"
+ identifier="org.eclipse.papyrus.uml.Device"
+ hint="UML::Device"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScdRKVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Device.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Device"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scd4E1YCEeS0WsAAtVmToA"
+ name="UML::DirectedRelationship"
+ identifier="org.eclipse.papyrus.uml.DirectedRelationship"
+ hint="UML::DirectedRelationship"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Scd4FFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/DirectedRelationship.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//DirectedRelationship"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scd4FVYCEeS0WsAAtVmToA"
+ name="UML::Duration"
+ identifier="org.eclipse.papyrus.uml.Duration"
+ hint="UML::Duration"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Scd4FlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Duration.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Duration"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scd4F1YCEeS0WsAAtVmToA"
+ name="UML::DurationConstraint"
+ identifier="org.eclipse.papyrus.uml.DurationConstraint"
+ hint="UML::DurationConstraint"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.DurationConstraintEditHelper">
+ <iconEntry
+ xmi:id="_Scd4GFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/DurationConstraint.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//DurationConstraint"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scd4MVYCEeS0WsAAtVmToA"
+ name="UML::DurationInterval"
+ identifier="org.eclipse.papyrus.uml.DurationInterval"
+ hint="UML::DurationInterval"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Scd4MlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/DurationInterval.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//DurationInterval"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScefSlYCEeS0WsAAtVmToA"
+ name="UML::DurationObservation"
+ identifier="org.eclipse.papyrus.uml.DurationObservation"
+ hint="UML::DurationObservation"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScefS1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/DurationObservation.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//DurationObservation"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScgUUFYCEeS0WsAAtVmToA"
+ name="UML::Element"
+ identifier="org.eclipse.papyrus.uml.Element"
+ hint="UML::Element"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScgUUVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Element.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Element"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScgUUlYCEeS0WsAAtVmToA"
+ name="UML::ElementImportBase"
+ identifier="org.eclipse.papyrus.uml.ElementImportBase"
+ hint="UML::ElementImportBase"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementImportEditHelper">
+ <iconEntry
+ xmi:id="_ScgUU1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ElementImport.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ElementImport"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_Dx12sJzPEeSEObywEoz_Cw"
+ name="UML::ElementImport"
+ identifier="org.eclipse.papyrus.uml.ElementImport"
+ hint="UML::ElementImport">
+ <iconEntry
+ xmi:id="_H_ygYAOyEeWv4ca2-olBmg"
+ iconPath="/icons/full/obj16/ElementImport.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.ElementImportBase</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_TB2dEJzPEeSEObywEoz_Cw"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ElementImportEditHelperAdvice"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScgUVFYCEeS0WsAAtVmToA"
+ name="UML::EncapsulatedClassifier"
+ identifier="org.eclipse.papyrus.uml.EncapsulatedClassifier"
+ hint="UML::EncapsulatedClassifier"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScgUVVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/EncapsulatedClassifier.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//EncapsulatedClassifier"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScgUVlYCEeS0WsAAtVmToA"
+ name="UML::Enumeration"
+ identifier="org.eclipse.papyrus.uml.Enumeration"
+ hint="UML::Enumeration"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScgUV1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Enumeration.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Enumeration"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScgUWFYCEeS0WsAAtVmToA"
+ name="UML::EnumerationLiteral"
+ identifier="org.eclipse.papyrus.uml.EnumerationLiteral"
+ hint="UML::EnumerationLiteral"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScgUWVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/EnumerationLiteral.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//EnumerationLiteral"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scg7ZFYCEeS0WsAAtVmToA"
+ name="UML::Event"
+ identifier="org.eclipse.papyrus.uml.Event"
+ hint="UML::Event"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Scg7ZVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Event.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Event"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scg7ZlYCEeS0WsAAtVmToA"
+ name="UML::ExceptionHandler"
+ identifier="org.eclipse.papyrus.uml.ExceptionHandler"
+ hint="UML::ExceptionHandler"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ExceptionHandlerEditHelper">
+ <iconEntry
+ xmi:id="_Scg7Z1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ExceptionHandler.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ExceptionHandler"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scg7aFYCEeS0WsAAtVmToA"
+ name="UML::ExecutableNode"
+ identifier="org.eclipse.papyrus.uml.ExecutableNode"
+ hint="UML::ExecutableNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Scg7aVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ExecutableNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ExecutableNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scg7alYCEeS0WsAAtVmToA"
+ name="UML::ExecutionEnvironment"
+ identifier="org.eclipse.papyrus.uml.ExecutionEnvironment"
+ hint="UML::ExecutionEnvironment"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Scg7a1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ExecutionEnvironment.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ExecutionEnvironment"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SchicVYCEeS0WsAAtVmToA"
+ name="UML::ExecutionOccurrenceSpecification"
+ identifier="org.eclipse.papyrus.uml.ExecutionOccurrenceSpecification"
+ hint="UML::ExecutionOccurrenceSpecification"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SchiclYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ExecutionOccurrenceSpecification.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ExecutionOccurrenceSpecification"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Schic1YCEeS0WsAAtVmToA"
+ name="UML::ExecutionSpecification"
+ identifier="org.eclipse.papyrus.uml.ExecutionSpecification"
+ hint="UML::ExecutionSpecification"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SchidFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ExecutionSpecification.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ExecutionSpecification"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SchidVYCEeS0WsAAtVmToA"
+ name="UML::ExpansionNode"
+ identifier="org.eclipse.papyrus.uml.ExpansionNode"
+ hint="UML::ExpansionNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ExpansionNodeHelper">
+ <iconEntry
+ xmi:id="_SchidlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ExpansionNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ExpansionNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Schid1YCEeS0WsAAtVmToA"
+ name="UML::ExpansionRegion"
+ identifier="org.eclipse.papyrus.uml.ExpansionRegion"
+ hint="UML::ExpansionRegion"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ExpansionRegionHelper">
+ <iconEntry
+ xmi:id="_SchieFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ExpansionRegion.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ExpansionRegion"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SchiiFYCEeS0WsAAtVmToA"
+ name="UML::Expression"
+ identifier="org.eclipse.papyrus.uml.Expression"
+ hint="UML::Expression"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SchiiVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Expression.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Expression"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SciwrFYCEeS0WsAAtVmToA"
+ name="UML::ExtendBase"
+ identifier="org.eclipse.papyrus.uml.ExtendBase"
+ hint="UML::ExtendBase"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ExtendEditHelper">
+ <iconEntry
+ xmi:id="_ScjXoFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Extend.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Extend"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_kV8SgFrNEeSNSq3G9Z6fKQ"
+ name="UML::Extend"
+ identifier="org.eclipse.papyrus.uml.Extend"
+ hint="UML::Extend">
+ <iconEntry
+ xmi:id="_t3ycMFrNEeSNSq3G9Z6fKQ"
+ iconPath="/icons/full/obj16/Extend.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.ExtendBase</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_8QiDYFrNEeSNSq3G9Z6fKQ"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ExtendEditHelperAdvice"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScjXoVYCEeS0WsAAtVmToA"
+ name="UML::Extension"
+ identifier="org.eclipse.papyrus.uml.Extension"
+ hint="UML::Extension"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ExtensionEditHelper">
+ <iconEntry
+ xmi:id="_ScjXolYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Extension.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Extension"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScjXo1YCEeS0WsAAtVmToA"
+ name="UML::ExtensionEnd"
+ identifier="org.eclipse.papyrus.uml.ExtensionEnd"
+ hint="UML::ExtensionEnd"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScjXpFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ExtensionEnd.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ExtensionEnd"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScjXq1YCEeS0WsAAtVmToA"
+ name="UML::ExtensionPoint"
+ identifier="org.eclipse.papyrus.uml.ExtensionPoint"
+ hint="UML::ExtensionPoint"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScjXrFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ExtensionPoint.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ExtensionPoint"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScjXuVYCEeS0WsAAtVmToA"
+ name="UML::Feature"
+ identifier="org.eclipse.papyrus.uml.Feature"
+ hint="UML::Feature"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScjXulYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Feature.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Feature"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scj-sFYCEeS0WsAAtVmToA"
+ name="UML::FinalNode"
+ identifier="org.eclipse.papyrus.uml.FinalNode"
+ hint="UML::FinalNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Scj-sVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/FinalNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//FinalNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scj-slYCEeS0WsAAtVmToA"
+ name="UML::FinalState"
+ identifier="org.eclipse.papyrus.uml.FinalState"
+ hint="UML::FinalState"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScklwFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/FinalState.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//FinalState"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScklwVYCEeS0WsAAtVmToA"
+ name="UML::FlowFinalNode"
+ identifier="org.eclipse.papyrus.uml.FlowFinalNode"
+ hint="UML::FlowFinalNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_ScklwlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/FlowFinalNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//FlowFinalNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scklw1YCEeS0WsAAtVmToA"
+ name="UML::ForkNode"
+ identifier="org.eclipse.papyrus.uml.ForkNode"
+ hint="UML::ForkNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_ScklxFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ForkNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ForkNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScklxVYCEeS0WsAAtVmToA"
+ name="UML::FunctionBehavior"
+ identifier="org.eclipse.papyrus.uml.FunctionBehavior"
+ hint="UML::FunctionBehavior"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScklxlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/FunctionBehavior.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//FunctionBehavior"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sclz6lYCEeS0WsAAtVmToA"
+ name="UML::Gate"
+ identifier="org.eclipse.papyrus.uml.Gate"
+ hint="UML::Gate"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sclz61YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Gate.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Gate"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sclz7FYCEeS0WsAAtVmToA"
+ name="UML::GeneralOrdering"
+ identifier="org.eclipse.papyrus.uml.GeneralOrdering"
+ hint="UML::GeneralOrdering"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sclz7VYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/GeneralOrdering.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//GeneralOrdering"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scma8FYCEeS0WsAAtVmToA"
+ name="UML::Generalization"
+ identifier="org.eclipse.papyrus.uml.Generalization"
+ hint="UML::Generalization"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.GeneralizationEditHelper">
+ <iconEntry
+ xmi:id="_Scma8VYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Generalization.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Generalization"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScnCAFYCEeS0WsAAtVmToA"
+ name="UML::GeneralizationSet"
+ identifier="org.eclipse.papyrus.uml.GeneralizationSet"
+ hint="UML::GeneralizationSet"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.GeneralizationSetEditHelper">
+ <iconEntry
+ xmi:id="_ScnCAVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/GeneralizationSet.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//GeneralizationSet"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScnCCFYCEeS0WsAAtVmToA"
+ name="UML::Image"
+ identifier="org.eclipse.papyrus.uml.Image"
+ hint="UML::Image"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScnCCVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Image.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Image"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScnCClYCEeS0WsAAtVmToA"
+ name="UML::Include"
+ identifier="org.eclipse.papyrus.uml.Include"
+ hint="UML::Include"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.IncludeEditHelper">
+ <iconEntry
+ xmi:id="_ScnCC1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Include.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Include"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScnCDFYCEeS0WsAAtVmToA"
+ name="UML::InformationFlowBase"
+ identifier="org.eclipse.papyrus.uml.InformationFlowBase"
+ hint="UML::InformationFlowBase"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.InformationFlowEditHelper">
+ <iconEntry
+ xmi:id="_ScnCDVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/InformationFlow.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//InformationFlow"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_ZLpUILgeEeSANYuUIb1qQA"
+ name="UML::InformationFlow"
+ identifier="org.eclipse.papyrus.uml.InformationFlow"
+ hint="UML::InformationFlow">
+ <iconEntry
+ xmi:id="_jt-DYLgeEeSANYuUIb1qQA"
+ iconPath="/icons/full/obj16/InformationFlow.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.InformationFlowBase</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_lfPMsLgeEeSANYuUIb1qQA"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.InformationFlowEditHelperAdvice"
+ inheritance="all"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScnCFFYCEeS0WsAAtVmToA"
+ name="UML::InformationItem"
+ identifier="org.eclipse.papyrus.uml.InformationItem"
+ hint="UML::InformationItem"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScnCFVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/InformationItem.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//InformationItem"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sco3OVYCEeS0WsAAtVmToA"
+ name="UML::InitialNode"
+ identifier="org.eclipse.papyrus.uml.InitialNode"
+ hint="UML::InitialNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sco3OlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/InitialNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//InitialNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sco3O1YCEeS0WsAAtVmToA"
+ name="UML::InputPin"
+ identifier="org.eclipse.papyrus.uml.InputPin"
+ hint="UML::InputPin"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sco3PFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/InputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//InputPin"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scr6iVYCEeS0WsAAtVmToA"
+ name="UML::InstanceSpecification"
+ identifier="org.eclipse.papyrus.uml.InstanceSpecification"
+ hint="UML::InstanceSpecification"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Scr6ilYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/InstanceSpecification.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//InstanceSpecification"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_bvHrYJXNEeSmV5hdT3HeBw"
+ name="UML::InstanceSpecification::Link"
+ identifier="org.eclipse.papyrus.uml.InstanceSpecification.Link"
+ hint="UML::InstanceSpecification::Link">
+ <specializedTypesID>org.eclipse.papyrus.uml.InstanceSpecification</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_bvHrYZXNEeSmV5hdT3HeBw"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.InstanceSpecificationEditHelperAdvice"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scr6kVYCEeS0WsAAtVmToA"
+ name="UML::InstanceValue"
+ identifier="org.eclipse.papyrus.uml.InstanceValue"
+ hint="UML::InstanceValue"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Scr6klYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/InstanceValue.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//InstanceValue"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SctIsVYCEeS0WsAAtVmToA"
+ name="UML::Interaction"
+ identifier="org.eclipse.papyrus.uml.Interaction"
+ hint="UML::Interaction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SctIslYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Interaction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Interaction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SctIs1YCEeS0WsAAtVmToA"
+ name="UML::InteractionConstraint"
+ identifier="org.eclipse.papyrus.uml.InteractionConstraint"
+ hint="UML::InteractionConstraint"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SctItFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/InteractionConstraint.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//InteractionConstraint"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SctvwlYCEeS0WsAAtVmToA"
+ name="UML::InteractionFragment"
+ identifier="org.eclipse.papyrus.uml.InteractionFragment"
+ hint="UML::InteractionFragment"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sctvw1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/InteractionFragment.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//InteractionFragment"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SctvxFYCEeS0WsAAtVmToA"
+ name="UML::InteractionOperand"
+ identifier="org.eclipse.papyrus.uml.InteractionOperand"
+ hint="UML::InteractionOperand"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SctvxVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/InteractionOperand.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//InteractionOperand"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SctvxlYCEeS0WsAAtVmToA"
+ name="UML::InteractionUse"
+ identifier="org.eclipse.papyrus.uml.InteractionUse"
+ hint="UML::InteractionUse"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sctvx1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/InteractionUse.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//InteractionUse"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScuW2VYCEeS0WsAAtVmToA"
+ name="UML::Interface"
+ identifier="org.eclipse.papyrus.uml.Interface"
+ hint="UML::Interface"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScuW2lYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Interface.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Interface"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScuW21YCEeS0WsAAtVmToA"
+ name="UML::InterfaceRealization"
+ identifier="org.eclipse.papyrus.uml.InterfaceRealization"
+ hint="UML::InterfaceRealization"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.InterfaceRealizationEditHelper">
+ <iconEntry
+ xmi:id="_Scvk4FYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/InterfaceRealization.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//InterfaceRealization"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScwL-VYCEeS0WsAAtVmToA"
+ name="UML::InterruptibleActivityRegion"
+ identifier="org.eclipse.papyrus.uml.InterruptibleActivityRegion"
+ hint="UML::InterruptibleActivityRegion"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.InterruptibleActivityRegionHelper">
+ <iconEntry
+ xmi:id="_ScwL-lYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/InterruptibleActivityRegion.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//InterruptibleActivityRegion"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScwL-1YCEeS0WsAAtVmToA"
+ name="UML::Interval"
+ identifier="org.eclipse.papyrus.uml.Interval"
+ hint="UML::Interval"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_ScwL_FYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Interval.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Interval"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_ScxaEFYCEeS0WsAAtVmToA"
+ name="UML::IntervalConstraint"
+ identifier="org.eclipse.papyrus.uml.IntervalConstraint"
+ hint="UML::IntervalConstraint"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.IntervalConstraintEditHelper">
+ <iconEntry
+ xmi:id="_ScxaEVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/IntervalConstraint.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//IntervalConstraint"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scz2U1YCEeS0WsAAtVmToA"
+ name="UML::InvocationAction"
+ identifier="org.eclipse.papyrus.uml.InvocationAction"
+ hint="UML::InvocationAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Scz2VFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/InvocationAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//InvocationAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scz2VVYCEeS0WsAAtVmToA"
+ name="UML::JoinNode"
+ identifier="org.eclipse.papyrus.uml.JoinNode"
+ hint="UML::JoinNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Scz2VlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/JoinNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//JoinNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scz2V1YCEeS0WsAAtVmToA"
+ name="UML::Lifeline"
+ identifier="org.eclipse.papyrus.uml.Lifeline"
+ hint="UML::Lifeline"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Scz2WFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Lifeline.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Lifeline"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scz2WVYCEeS0WsAAtVmToA"
+ name="UML::LinkAction"
+ identifier="org.eclipse.papyrus.uml.LinkAction"
+ hint="UML::LinkAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Scz2WlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/LinkAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//LinkAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scz2W1YCEeS0WsAAtVmToA"
+ name="UML::LinkEndCreationData"
+ identifier="org.eclipse.papyrus.uml.LinkEndCreationData"
+ hint="UML::LinkEndCreationData"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Scz2XFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/LinkEndCreationData.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//LinkEndCreationData"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scz2XVYCEeS0WsAAtVmToA"
+ name="UML::LinkEndData"
+ identifier="org.eclipse.papyrus.uml.LinkEndData"
+ hint="UML::LinkEndData"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Scz2XlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/LinkEndData.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//LinkEndData"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scz2X1YCEeS0WsAAtVmToA"
+ name="UML::LinkEndDestructionData"
+ identifier="org.eclipse.papyrus.uml.LinkEndDestructionData"
+ hint="UML::LinkEndDestructionData"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Scz2YFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/LinkEndDestructionData.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//LinkEndDestructionData"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Scz2YVYCEeS0WsAAtVmToA"
+ name="UML::LiteralBoolean"
+ identifier="org.eclipse.papyrus.uml.LiteralBoolean"
+ hint="UML::LiteralBoolean"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Scz2YlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/LiteralBoolean.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//LiteralBoolean"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc1EflYCEeS0WsAAtVmToA"
+ name="UML::LiteralInteger"
+ identifier="org.eclipse.papyrus.uml.LiteralInteger"
+ hint="UML::LiteralInteger"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.LiteralIntegerEditHelper">
+ <iconEntry
+ xmi:id="_Sc1Ef1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/LiteralInteger.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//LiteralInteger"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc2Sk1YCEeS0WsAAtVmToA"
+ name="UML::LiteralNull"
+ identifier="org.eclipse.papyrus.uml.LiteralNull"
+ hint="UML::LiteralNull"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc2SlFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/LiteralNull.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//LiteralNull"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc25v1YCEeS0WsAAtVmToA"
+ name="UML::LiteralReal"
+ identifier="org.eclipse.papyrus.uml.LiteralReal"
+ hint="UML::LiteralReal"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc25wFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/LiteralReal.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//LiteralReal"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc4HxlYCEeS0WsAAtVmToA"
+ name="UML::LiteralSpecification"
+ identifier="org.eclipse.papyrus.uml.LiteralSpecification"
+ hint="UML::LiteralSpecification"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc4Hx1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/LiteralSpecification.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//LiteralSpecification"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc4HyFYCEeS0WsAAtVmToA"
+ name="UML::LiteralString"
+ identifier="org.eclipse.papyrus.uml.LiteralString"
+ hint="UML::LiteralString"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc4HyVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/LiteralString.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//LiteralString"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc4u7FYCEeS0WsAAtVmToA"
+ name="UML::LiteralUnlimitedNatural"
+ identifier="org.eclipse.papyrus.uml.LiteralUnlimitedNatural"
+ hint="UML::LiteralUnlimitedNatural"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc4u7VYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/LiteralUnlimitedNatural.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//LiteralUnlimitedNatural"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc58-VYCEeS0WsAAtVmToA"
+ name="UML::LoopNode"
+ identifier="org.eclipse.papyrus.uml.LoopNode"
+ hint="UML::LoopNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.StructuredActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sc58-lYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/LoopNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//LoopNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc59ClYCEeS0WsAAtVmToA"
+ name="UML::Manifestation"
+ identifier="org.eclipse.papyrus.uml.Manifestation"
+ hint="UML::Manifestation"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ManifestationEditHelper">
+ <iconEntry
+ xmi:id="_Sc59C1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Manifestation.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Manifestation"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc59ElYCEeS0WsAAtVmToA"
+ name="UML::MergeNode"
+ identifier="org.eclipse.papyrus.uml.MergeNode"
+ hint="UML::MergeNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sc59E1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/MergeNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//MergeNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc59FFYCEeS0WsAAtVmToA"
+ name="UML::Message"
+ identifier="org.eclipse.papyrus.uml.Message"
+ hint="UML::Message"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.MessageEditHelper">
+ <iconEntry
+ xmi:id="_Sc59FVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Message.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Message"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc59FlYCEeS0WsAAtVmToA"
+ name="UML::MessageEnd"
+ identifier="org.eclipse.papyrus.uml.MessageEnd"
+ hint="UML::MessageEnd"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc59F1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/MessageEnd.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//MessageEnd"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc59GFYCEeS0WsAAtVmToA"
+ name="UML::MessageEvent"
+ identifier="org.eclipse.papyrus.uml.MessageEvent"
+ hint="UML::MessageEvent"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc59GVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/MessageEvent.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//MessageEvent"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc6kAFYCEeS0WsAAtVmToA"
+ name="UML::MessageOccurrenceSpecification"
+ identifier="org.eclipse.papyrus.uml.MessageOccurrenceSpecification"
+ hint="UML::MessageOccurrenceSpecification"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc6kAVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/MessageOccurrenceSpecification.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//MessageOccurrenceSpecification"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc6kAlYCEeS0WsAAtVmToA"
+ name="UML::Model"
+ identifier="org.eclipse.papyrus.uml.Model"
+ hint="UML::Model"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc6kA1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Model.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Model"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc6kClYCEeS0WsAAtVmToA"
+ name="UML::MultiplicityElement"
+ identifier="org.eclipse.papyrus.uml.MultiplicityElement"
+ hint="UML::MultiplicityElement"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc6kC1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/MultiplicityElement.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//MultiplicityElement"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc6kDFYCEeS0WsAAtVmToA"
+ name="UML::NamedElement"
+ identifier="org.eclipse.papyrus.uml.NamedElement"
+ hint="UML::NamedElement"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc6kDVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/NamedElement.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//NamedElement"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc6kDlYCEeS0WsAAtVmToA"
+ name="UML::Namespace"
+ identifier="org.eclipse.papyrus.uml.Namespace"
+ hint="UML::Namespace"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc6kD1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Namespace.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Namespace"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc6kEFYCEeS0WsAAtVmToA"
+ name="UML::Node"
+ identifier="org.eclipse.papyrus.uml.Node"
+ hint="UML::Node"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc6kEVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Node.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Node"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc6kJFYCEeS0WsAAtVmToA"
+ name="UML::ObjectFlow"
+ identifier="org.eclipse.papyrus.uml.ObjectFlow"
+ hint="UML::ObjectFlow"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ObjectFlowEditHelper">
+ <iconEntry
+ xmi:id="_Sc6kJVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ObjectFlow.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ObjectFlow"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc6kJlYCEeS0WsAAtVmToA"
+ name="UML::ObjectNode"
+ identifier="org.eclipse.papyrus.uml.ObjectNode"
+ hint="UML::ObjectNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sc6kJ1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ObjectNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ObjectNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc6kKFYCEeS0WsAAtVmToA"
+ name="UML::Observation"
+ identifier="org.eclipse.papyrus.uml.Observation"
+ hint="UML::Observation"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc6kKVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Observation.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Observation"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc6kKlYCEeS0WsAAtVmToA"
+ name="UML::OccurrenceSpecification"
+ identifier="org.eclipse.papyrus.uml.OccurrenceSpecification"
+ hint="UML::OccurrenceSpecification"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc7LEFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/OccurrenceSpecification.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//OccurrenceSpecification"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc7LEVYCEeS0WsAAtVmToA"
+ name="UML::OpaqueAction"
+ identifier="org.eclipse.papyrus.uml.OpaqueAction"
+ hint="UML::OpaqueAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sc7LElYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/OpaqueAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//OpaqueAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc7LGVYCEeS0WsAAtVmToA"
+ name="UML::OpaqueBehavior"
+ identifier="org.eclipse.papyrus.uml.OpaqueBehavior"
+ hint="UML::OpaqueBehavior"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc7LGlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/OpaqueBehavior.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//OpaqueBehavior"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc7yIVYCEeS0WsAAtVmToA"
+ name="UML::OpaqueExpression"
+ identifier="org.eclipse.papyrus.uml.OpaqueExpression"
+ hint="UML::OpaqueExpression"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc7yIlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/OpaqueExpression.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//OpaqueExpression"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc8ZVFYCEeS0WsAAtVmToA"
+ name="UML::Operation"
+ identifier="org.eclipse.papyrus.uml.Operation"
+ hint="UML::Operation"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc8ZVVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Operation.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Operation"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc8ZVlYCEeS0WsAAtVmToA"
+ name="UML::OperationTemplateParameterBase"
+ identifier="org.eclipse.papyrus.uml.OperationTemplateParameterBase"
+ hint="UML::OperationTemplateParameterBase"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc8ZV1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/OperationTemplateParameter.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//OperationTemplateParameter"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_vg_QMJXJEeSmV5hdT3HeBw"
+ name="UML::OperationTemplateParameter"
+ identifier="org.eclipse.papyrus.uml.OperationTemplateParameter"
+ hint="UML::OperationTemplateParameter">
+ <specializedTypesID>org.eclipse.papyrus.uml.OperationTemplateParameterBase</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_vg_QMZXJEeSmV5hdT3HeBw"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.OperationTemplateParameterEditHelperAdvice"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc9AQ1YCEeS0WsAAtVmToA"
+ name="UML::OutputPin"
+ identifier="org.eclipse.papyrus.uml.OutputPin"
+ hint="UML::OutputPin"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sc9ARFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/OutputPin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//OutputPin"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc9nZVYCEeS0WsAAtVmToA"
+ name="UML::Package"
+ identifier="org.eclipse.papyrus.uml.Package"
+ hint="UML::Package"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc9nZlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Package.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Package"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc9nZ1YCEeS0WsAAtVmToA"
+ name="UML::PackageImportBase"
+ identifier="org.eclipse.papyrus.uml.PackageImportBase"
+ hint="UML::PackageImportBase"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.PackageImportEditHelper">
+ <iconEntry
+ xmi:id="_Sc9naFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/PackageImport.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//PackageImport"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_8kkk8GN5EeSrwvaW5Is9PQ"
+ name="UML::PackageImport"
+ identifier="org.eclipse.papyrus.uml.PackageImport"
+ hint="UML::PackageImport">
+ <iconEntry
+ xmi:id="_WI3T4AOyEeWv4ca2-olBmg"
+ iconPath="/icons/full/obj16/PackageImport.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.PackageImportBase</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_LSLo4GN6EeSrwvaW5Is9PQ"
+ identifier=""
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.PackageImportEditHelperAdvice"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc9naVYCEeS0WsAAtVmToA"
+ name="UML::PackageMergeBase"
+ identifier="org.eclipse.papyrus.uml.PackageMergeBase"
+ hint="UML::PackageMergeBase"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.PackageMergeEditHelper">
+ <iconEntry
+ xmi:id="_Sc9nalYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/PackageMerge.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//PackageMerge"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_5VbKkGOIEeSw8rz5ZQEURQ"
+ name="UML::PackageMerge"
+ identifier="org.eclipse.papyrus.uml.PackageMerge"
+ hint="UML::PackageMerge">
+ <iconEntry
+ xmi:id="_697XIAOyEeWv4ca2-olBmg"
+ iconPath="/icons/full/obj16/PackageMerge.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.PackageMergeBase</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_EJxd8GOJEeSw8rz5ZQEURQ"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.PackageMergeEditHelperAdvice"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc9ncVYCEeS0WsAAtVmToA"
+ name="UML::PackageableElement"
+ identifier="org.eclipse.papyrus.uml.PackageableElement"
+ hint="UML::PackageableElement"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc9nclYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/PackageableElement.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//PackageableElement"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc9nc1YCEeS0WsAAtVmToA"
+ name="UML::Parameter"
+ identifier="org.eclipse.papyrus.uml.Parameter"
+ hint="UML::Parameter"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc9ndFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Parameter.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Parameter"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc9ndVYCEeS0WsAAtVmToA"
+ name="UML::ParameterSet"
+ identifier="org.eclipse.papyrus.uml.ParameterSet"
+ hint="UML::ParameterSet"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc9ndlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ParameterSet.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ParameterSet"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc-OZlYCEeS0WsAAtVmToA"
+ name="UML::ParameterableElement"
+ identifier="org.eclipse.papyrus.uml.ParameterableElement"
+ hint="UML::ParameterableElement"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc-OZ1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ParameterableElement.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ParameterableElement"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc-OaFYCEeS0WsAAtVmToA"
+ name="UML::PartDecomposition"
+ identifier="org.eclipse.papyrus.uml.PartDecomposition"
+ hint="UML::PartDecomposition"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc-OaVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/PartDecomposition.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//PartDecomposition"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc-OalYCEeS0WsAAtVmToA"
+ name="UML::Pin"
+ identifier="org.eclipse.papyrus.uml.Pin"
+ hint="UML::Pin"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sc-Oa1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Pin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Pin"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc-ObFYCEeS0WsAAtVmToA"
+ name="UML::Port"
+ identifier="org.eclipse.papyrus.uml.Port"
+ hint="UML::Port"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.PortEditHelper">
+ <iconEntry
+ xmi:id="_Sc-ObVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Port.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Port"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc-OdFYCEeS0WsAAtVmToA"
+ name="UML::PrimitiveType"
+ identifier="org.eclipse.papyrus.uml.PrimitiveType"
+ hint="UML::PrimitiveType"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc-OdVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/PrimitiveType.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//PrimitiveType"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc-OglYCEeS0WsAAtVmToA"
+ name="UML::Profile"
+ identifier="org.eclipse.papyrus.uml.Profile"
+ hint="UML::Profile"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc-Og1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Profile.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Profile"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc-OhFYCEeS0WsAAtVmToA"
+ name="UML::ProfileApplication"
+ identifier="org.eclipse.papyrus.uml.ProfileApplication"
+ hint="UML::ProfileApplication"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc-OhVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ProfileApplication.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ProfileApplication"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc-1cFYCEeS0WsAAtVmToA"
+ name="UML::Property"
+ identifier="org.eclipse.papyrus.uml.Property"
+ hint="UML::Property"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc-1cVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Property.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Property"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_wdkpELhLEeSANYuUIb1qQA"
+ name="UML::PropertyPart"
+ identifier="org.eclipse.papyrus.uml.PropertyPart"
+ hint="UML::PropertyPart">
+ <iconEntry
+ xmi:id="_5SIO8LhLEeSANYuUIb1qQA"
+ iconPath="/icons/full/obj16/Property.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Property</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_509PMLhLEeSANYuUIb1qQA"
+ identifier=""
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.PropertyPartHelperAdvice"
+ inheritance="all"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc-1eFYCEeS0WsAAtVmToA"
+ name="UML::ProtocolConformance"
+ identifier="org.eclipse.papyrus.uml.ProtocolConformance"
+ hint="UML::ProtocolConformance"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ProtocolConformanceEditHelper">
+ <iconEntry
+ xmi:id="_Sc-1eVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ProtocolConformance.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ProtocolConformance"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc-1elYCEeS0WsAAtVmToA"
+ name="UML::ProtocolStateMachine"
+ identifier="org.eclipse.papyrus.uml.ProtocolStateMachine"
+ hint="UML::ProtocolStateMachine"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ProtocolStateMachineEditHelper">
+ <iconEntry
+ xmi:id="_Sc-1e1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ProtocolStateMachine.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ProtocolStateMachine"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc-1oFYCEeS0WsAAtVmToA"
+ name="UML::ProtocolTransition"
+ identifier="org.eclipse.papyrus.uml.ProtocolTransition"
+ hint="UML::ProtocolTransition"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc_cgFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ProtocolTransition.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ProtocolTransition"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc_cgVYCEeS0WsAAtVmToA"
+ name="UML::Pseudostate"
+ identifier="org.eclipse.papyrus.uml.Pseudostate"
+ hint="UML::Pseudostate"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc_cglYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Pseudostate.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Pseudostate"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc_cg1YCEeS0WsAAtVmToA"
+ name="UML::QualifierValue"
+ identifier="org.eclipse.papyrus.uml.QualifierValue"
+ hint="UML::QualifierValue"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_Sc_chFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/QualifierValue.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//QualifierValue"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc_chVYCEeS0WsAAtVmToA"
+ name="UML::RaiseExceptionAction"
+ identifier="org.eclipse.papyrus.uml.RaiseExceptionAction"
+ hint="UML::RaiseExceptionAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sc_chlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/RaiseExceptionAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//RaiseExceptionAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc_cjVYCEeS0WsAAtVmToA"
+ name="UML::ReadExtentAction"
+ identifier="org.eclipse.papyrus.uml.ReadExtentAction"
+ hint="UML::ReadExtentAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sc_cjlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ReadExtentAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ReadExtentAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc_clVYCEeS0WsAAtVmToA"
+ name="UML::ReadIsClassifiedObjectAction"
+ identifier="org.eclipse.papyrus.uml.ReadIsClassifiedObjectAction"
+ hint="UML::ReadIsClassifiedObjectAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sc_cllYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ReadIsClassifiedObjectAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ReadIsClassifiedObjectAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc_cnVYCEeS0WsAAtVmToA"
+ name="UML::ReadLinkAction"
+ identifier="org.eclipse.papyrus.uml.ReadLinkAction"
+ hint="UML::ReadLinkAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sc_cnlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ReadLinkAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ReadLinkAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc_cpVYCEeS0WsAAtVmToA"
+ name="UML::ReadLinkObjectEndAction"
+ identifier="org.eclipse.papyrus.uml.ReadLinkObjectEndAction"
+ hint="UML::ReadLinkObjectEndAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sc_cplYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ReadLinkObjectEndAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ReadLinkObjectEndAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_Sc_crVYCEeS0WsAAtVmToA"
+ name="UML::ReadLinkObjectEndQualifierAction"
+ identifier="org.eclipse.papyrus.uml.ReadLinkObjectEndQualifierAction"
+ hint="UML::ReadLinkObjectEndQualifierAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_Sc_crlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ReadLinkObjectEndQualifierAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ReadLinkObjectEndQualifierAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdADk1YCEeS0WsAAtVmToA"
+ name="UML::ReadSelfAction"
+ identifier="org.eclipse.papyrus.uml.ReadSelfAction"
+ hint="UML::ReadSelfAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdADlFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ReadSelfAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ReadSelfAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdADm1YCEeS0WsAAtVmToA"
+ name="UML::ReadStructuralFeatureAction"
+ identifier="org.eclipse.papyrus.uml.ReadStructuralFeatureAction"
+ hint="UML::ReadStructuralFeatureAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdADnFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ReadStructuralFeatureAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ReadStructuralFeatureAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdADo1YCEeS0WsAAtVmToA"
+ name="UML::ReadVariableAction"
+ identifier="org.eclipse.papyrus.uml.ReadVariableAction"
+ hint="UML::ReadVariableAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdADpFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ReadVariableAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ReadVariableAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdADq1YCEeS0WsAAtVmToA"
+ name="UML::Realization"
+ identifier="org.eclipse.papyrus.uml.Realization"
+ hint="UML::Realization"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.DependencyEditHelper">
+ <iconEntry
+ xmi:id="_SdADrFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Realization.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Realization"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdADs1YCEeS0WsAAtVmToA"
+ name="UML::Reception"
+ identifier="org.eclipse.papyrus.uml.Reception"
+ hint="UML::Reception"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdADtFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Reception.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Reception"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdAqoFYCEeS0WsAAtVmToA"
+ name="UML::ReclassifyObjectAction"
+ identifier="org.eclipse.papyrus.uml.ReclassifyObjectAction"
+ hint="UML::ReclassifyObjectAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdAqoVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ReclassifyObjectAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ReclassifyObjectAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdAqqFYCEeS0WsAAtVmToA"
+ name="UML::RedefinableElement"
+ identifier="org.eclipse.papyrus.uml.RedefinableElement"
+ hint="UML::RedefinableElement"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdAqqVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/RedefinableElement.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//RedefinableElement"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdAqqlYCEeS0WsAAtVmToA"
+ name="UML::RedefinableTemplateSignature"
+ identifier="org.eclipse.papyrus.uml.RedefinableTemplateSignature"
+ hint="UML::RedefinableTemplateSignature"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdAqq1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/RedefinableTemplateSignature.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//RedefinableTemplateSignature"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdAqrFYCEeS0WsAAtVmToA"
+ name="UML::ReduceAction"
+ identifier="org.eclipse.papyrus.uml.ReduceAction"
+ hint="UML::ReduceAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdAqrVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ReduceAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ReduceAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdBRtlYCEeS0WsAAtVmToA"
+ name="UML::Region"
+ identifier="org.eclipse.papyrus.uml.Region"
+ hint="UML::Region"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.RegionEditHelper">
+ <iconEntry
+ xmi:id="_SdBRt1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Region.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Region"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdBRuFYCEeS0WsAAtVmToA"
+ name="UML::Relationship"
+ identifier="org.eclipse.papyrus.uml.Relationship"
+ hint="UML::Relationship"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdBRuVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Relationship.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Relationship"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdBRulYCEeS0WsAAtVmToA"
+ name="UML::RemoveStructuralFeatureValueAction"
+ identifier="org.eclipse.papyrus.uml.RemoveStructuralFeatureValueAction"
+ hint="UML::RemoveStructuralFeatureValueAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdBRu1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/RemoveStructuralFeatureValueAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//RemoveStructuralFeatureValueAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdBRwlYCEeS0WsAAtVmToA"
+ name="UML::RemoveVariableValueAction"
+ identifier="org.eclipse.papyrus.uml.RemoveVariableValueAction"
+ hint="UML::RemoveVariableValueAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdBRw1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/RemoveVariableValueAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//RemoveVariableValueAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdBRylYCEeS0WsAAtVmToA"
+ name="UML::ReplyAction"
+ identifier="org.eclipse.papyrus.uml.ReplyAction"
+ hint="UML::ReplyAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdBRy1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ReplyAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ReplyAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdBR0lYCEeS0WsAAtVmToA"
+ name="UML::SendObjectAction"
+ identifier="org.eclipse.papyrus.uml.SendObjectAction"
+ hint="UML::SendObjectAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdBR01YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/SendObjectAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//SendObjectAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdB4xlYCEeS0WsAAtVmToA"
+ name="UML::SendSignalAction"
+ identifier="org.eclipse.papyrus.uml.SendSignalAction"
+ hint="UML::SendSignalAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdB4x1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/SendSignalAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//SendSignalAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdB4zlYCEeS0WsAAtVmToA"
+ name="UML::SequenceNode"
+ identifier="org.eclipse.papyrus.uml.SequenceNode"
+ hint="UML::SequenceNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.SequenceNodeHelper">
+ <iconEntry
+ xmi:id="_SdB4z1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/SequenceNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//SequenceNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdB431YCEeS0WsAAtVmToA"
+ name="UML::Signal"
+ identifier="org.eclipse.papyrus.uml.Signal"
+ hint="UML::Signal"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdB44FYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Signal.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Signal"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdB44VYCEeS0WsAAtVmToA"
+ name="UML::SignalEvent"
+ identifier="org.eclipse.papyrus.uml.SignalEvent"
+ hint="UML::SignalEvent"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdB44lYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/SignalEvent.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//SignalEvent"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdCf4lYCEeS0WsAAtVmToA"
+ name="UML::Slot"
+ identifier="org.eclipse.papyrus.uml.Slot"
+ hint="UML::Slot"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdCf41YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Slot.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Slot"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdCf5FYCEeS0WsAAtVmToA"
+ name="UML::StartClassifierBehaviorAction"
+ identifier="org.eclipse.papyrus.uml.StartClassifierBehaviorAction"
+ hint="UML::StartClassifierBehaviorAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdCf5VYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/StartClassifierBehaviorAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//StartClassifierBehaviorAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdCf7FYCEeS0WsAAtVmToA"
+ name="UML::StartObjectBehaviorAction"
+ identifier="org.eclipse.papyrus.uml.StartObjectBehaviorAction"
+ hint="UML::StartObjectBehaviorAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdCf7VYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/StartObjectBehaviorAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//StartObjectBehaviorAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdCf9FYCEeS0WsAAtVmToA"
+ name="UML::State"
+ identifier="org.eclipse.papyrus.uml.State"
+ hint="UML::State"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdCf9VYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/State.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//State"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdCf9lYCEeS0WsAAtVmToA"
+ name="UML::StateInvariant"
+ identifier="org.eclipse.papyrus.uml.StateInvariant"
+ hint="UML::StateInvariant"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdCf91YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/StateInvariant.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//StateInvariant"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdCf-FYCEeS0WsAAtVmToA"
+ name="UML::StateMachine"
+ identifier="org.eclipse.papyrus.uml.StateMachine"
+ hint="UML::StateMachine"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdCf-VYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/StateMachine.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//StateMachine"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdDG91YCEeS0WsAAtVmToA"
+ name="UML::Stereotype"
+ identifier="org.eclipse.papyrus.uml.Stereotype"
+ hint="UML::Stereotype"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdDG-FYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Stereotype.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Stereotype"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdDHBVYCEeS0WsAAtVmToA"
+ name="UML::StringExpression"
+ identifier="org.eclipse.papyrus.uml.StringExpression"
+ hint="UML::StringExpression"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdDHBlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/StringExpression.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//StringExpression"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdGKSFYCEeS0WsAAtVmToA"
+ name="UML::StructuralFeature"
+ identifier="org.eclipse.papyrus.uml.StructuralFeature"
+ hint="UML::StructuralFeature"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdGKSVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/StructuralFeature.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//StructuralFeature"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdGKSlYCEeS0WsAAtVmToA"
+ name="UML::StructuralFeatureAction"
+ identifier="org.eclipse.papyrus.uml.StructuralFeatureAction"
+ hint="UML::StructuralFeatureAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdGKS1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/StructuralFeatureAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//StructuralFeatureAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdGxQFYCEeS0WsAAtVmToA"
+ name="UML::StructuredActivityNode"
+ identifier="org.eclipse.papyrus.uml.StructuredActivityNode"
+ hint="UML::StructuredActivityNode"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.StructuredActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdGxQVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/StructuredActivityNode.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//StructuredActivityNode"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdGxUVYCEeS0WsAAtVmToA"
+ name="UML::StructuredClassifier"
+ identifier="org.eclipse.papyrus.uml.StructuredClassifier"
+ hint="UML::StructuredClassifier"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdGxUlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/StructuredClassifier.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//StructuredClassifier"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdGxU1YCEeS0WsAAtVmToA"
+ name="UML::Substitution"
+ identifier="org.eclipse.papyrus.uml.Substitution"
+ hint="UML::Substitution"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.SubstitutionEditHelper">
+ <iconEntry
+ xmi:id="_SdGxVFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Substitution.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Substitution"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdHYW1YCEeS0WsAAtVmToA"
+ name="UML::TemplateBinding"
+ identifier="org.eclipse.papyrus.uml.TemplateBinding"
+ hint="UML::TemplateBinding"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.TemplateBindingEditHelper">
+ <iconEntry
+ xmi:id="_SdHYXFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/TemplateBinding.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//TemplateBinding"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdHYXVYCEeS0WsAAtVmToA"
+ name="UML::TemplateParameterBase"
+ identifier="org.eclipse.papyrus.uml.TemplateParameterBase"
+ hint="UML::TemplateParameterBase"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdHYXlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/TemplateParameter.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//TemplateParameter"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_JCgQsJXMEeSmV5hdT3HeBw"
+ name="UML::TemplateParameter"
+ identifier="org.eclipse.papyrus.uml.TemplateParameter"
+ hint="UML::TemplateParameter">
+ <specializedTypesID>org.eclipse.papyrus.uml.TemplateParameterBase</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_JCgQsZXMEeSmV5hdT3HeBw"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.TemplateParameterEditHelperAdvice"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdHYX1YCEeS0WsAAtVmToA"
+ name="UML::TemplateParameterSubstitution"
+ identifier="org.eclipse.papyrus.uml.TemplateParameterSubstitution"
+ hint="UML::TemplateParameterSubstitution"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdHYYFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/TemplateParameterSubstitution.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//TemplateParameterSubstitution"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdHYYVYCEeS0WsAAtVmToA"
+ name="UML::TemplateSignature"
+ identifier="org.eclipse.papyrus.uml.TemplateSignature"
+ hint="UML::TemplateSignature"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdHYYlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/TemplateSignature.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//TemplateSignature"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdHYY1YCEeS0WsAAtVmToA"
+ name="UML::TemplateableElement"
+ identifier="org.eclipse.papyrus.uml.TemplateableElement"
+ hint="UML::TemplateableElement"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdHYZFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/TemplateableElement.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//TemplateableElement"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdHYZVYCEeS0WsAAtVmToA"
+ name="UML::TestIdentityAction"
+ identifier="org.eclipse.papyrus.uml.TestIdentityAction"
+ hint="UML::TestIdentityAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdHYZlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/TestIdentityAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//TestIdentityAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdHYbVYCEeS0WsAAtVmToA"
+ name="UML::TimeConstraint"
+ identifier="org.eclipse.papyrus.uml.TimeConstraint"
+ hint="UML::TimeConstraint"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.TimeConstraintEditHelper">
+ <iconEntry
+ xmi:id="_SdHYblYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/TimeConstraint.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//TimeConstraint"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdH_eFYCEeS0WsAAtVmToA"
+ name="UML::TimeEvent"
+ identifier="org.eclipse.papyrus.uml.TimeEvent"
+ hint="UML::TimeEvent"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdH_eVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/TimeEvent.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//TimeEvent"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdImcFYCEeS0WsAAtVmToA"
+ name="UML::TimeExpression"
+ identifier="org.eclipse.papyrus.uml.TimeExpression"
+ hint="UML::TimeExpression"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdImcVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/TimeExpression.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//TimeExpression"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdJNklYCEeS0WsAAtVmToA"
+ name="UML::TimeInterval"
+ identifier="org.eclipse.papyrus.uml.TimeInterval"
+ hint="UML::TimeInterval"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdJNk1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/TimeInterval.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//TimeInterval"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdKbvlYCEeS0WsAAtVmToA"
+ name="UML::TimeObservation"
+ identifier="org.eclipse.papyrus.uml.TimeObservation"
+ hint="UML::TimeObservation"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdKbv1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/TimeObservation.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//TimeObservation"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdLCtVYCEeS0WsAAtVmToA"
+ name="UML::Transition"
+ identifier="org.eclipse.papyrus.uml.Transition"
+ hint="UML::Transition"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.TransitionEditHelper">
+ <iconEntry
+ xmi:id="_SdLCtlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Transition.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Transition"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdLCt1YCEeS0WsAAtVmToA"
+ name="UML::Trigger"
+ identifier="org.eclipse.papyrus.uml.Trigger"
+ hint="UML::Trigger"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdLCuFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Trigger.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Trigger"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdLCuVYCEeS0WsAAtVmToA"
+ name="UML::Type"
+ identifier="org.eclipse.papyrus.uml.Type"
+ hint="UML::Type"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdLCulYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Type.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Type"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdLCu1YCEeS0WsAAtVmToA"
+ name="UML::TypedElement"
+ identifier="org.eclipse.papyrus.uml.TypedElement"
+ hint="UML::TypedElement"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdLCvFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/TypedElement.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//TypedElement"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdLCvVYCEeS0WsAAtVmToA"
+ name="UML::UnmarshallAction"
+ identifier="org.eclipse.papyrus.uml.UnmarshallAction"
+ hint="UML::UnmarshallAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdLCvlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/UnmarshallAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//UnmarshallAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdLCxVYCEeS0WsAAtVmToA"
+ name="UML::Usage"
+ identifier="org.eclipse.papyrus.uml.Usage"
+ hint="UML::Usage"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.DependencyEditHelper">
+ <iconEntry
+ xmi:id="_SdLCxlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Usage.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Usage"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdLCzVYCEeS0WsAAtVmToA"
+ name="UML::UseCase"
+ identifier="org.eclipse.papyrus.uml.UseCase"
+ hint="UML::UseCase"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.UseCaseEditHelper">
+ <iconEntry
+ xmi:id="_SdLCzlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/UseCase.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//UseCase"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdLp11YCEeS0WsAAtVmToA"
+ name="UML::ValuePin"
+ identifier="org.eclipse.papyrus.uml.ValuePin"
+ hint="UML::ValuePin"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdLp2FYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ValuePin.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ValuePin"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdM3_1YCEeS0WsAAtVmToA"
+ name="UML::ValueSpecification"
+ identifier="org.eclipse.papyrus.uml.ValueSpecification"
+ hint="UML::ValueSpecification"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdM4AFYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ValueSpecification.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ValueSpecification"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdM4AVYCEeS0WsAAtVmToA"
+ name="UML::ValueSpecificationAction"
+ identifier="org.eclipse.papyrus.uml.ValueSpecificationAction"
+ hint="UML::ValueSpecificationAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdM4AlYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/ValueSpecificationAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//ValueSpecificationAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdNe8FYCEeS0WsAAtVmToA"
+ name="UML::Variable"
+ identifier="org.eclipse.papyrus.uml.Variable"
+ hint="UML::Variable"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdNe8VYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Variable.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Variable"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdNe8lYCEeS0WsAAtVmToA"
+ name="UML::VariableAction"
+ identifier="org.eclipse.papyrus.uml.VariableAction"
+ hint="UML::VariableAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdNe81YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/VariableAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//VariableAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdNe-lYCEeS0WsAAtVmToA"
+ name="UML::Vertex"
+ identifier="org.eclipse.papyrus.uml.Vertex"
+ hint="UML::Vertex"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ElementEditHelper">
+ <iconEntry
+ xmi:id="_SdNe-1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/Vertex.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//Vertex"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdNe_FYCEeS0WsAAtVmToA"
+ name="UML::WriteLinkAction"
+ identifier="org.eclipse.papyrus.uml.WriteLinkAction"
+ hint="UML::WriteLinkAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdNe_VYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/WriteLinkAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//WriteLinkAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdNe_lYCEeS0WsAAtVmToA"
+ name="UML::WriteStructuralFeatureAction"
+ identifier="org.eclipse.papyrus.uml.WriteStructuralFeatureAction"
+ hint="UML::WriteStructuralFeatureAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdNe_1YCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/WriteStructuralFeatureAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//WriteStructuralFeatureAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:MetamodelTypeConfiguration"
+ xmi:id="_SdNfAFYCEeS0WsAAtVmToA"
+ name="UML::WriteVariableAction"
+ identifier="org.eclipse.papyrus.uml.WriteVariableAction"
+ hint="UML::WriteVariableAction"
+ editHelperClassName="org.eclipse.papyrus.uml.service.types.helper.ActivityNodeHelper">
+ <iconEntry
+ xmi:id="_SdNfAVYCEeS0WsAAtVmToA"
+ iconPath="/icons/full/obj16/WriteVariableAction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <eClass
+ href="http://www.eclipse.org/uml2/5.0.0/UML#//WriteVariableAction"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_JPmakGskEeSELtwF_9-6fg"
+ name="UML::Trace"
+ identifier="org.eclipse.papyrus.uml.Trace"
+ hint="UML::Trace">
+ <iconEntry
+ xmi:id="_QcxB0AO0EeWv4ca2-olBmg"
+ iconPath="/icons/full/obj16/Abstraction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Abstraction</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_JPmakWskEeSELtwF_9-6fg"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.TraceEditHelperAdvice"/>
+ <matcherConfiguration
+ xmi:id="_LDOUUGskEeSELtwF_9-6fg"
+ matcherClassName="org.eclipse.papyrus.uml.service.types.matcher.TraceMatcher"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_UGdZ8GslEeSELtwF_9-6fg"
+ name="UML::Refine"
+ identifier="org.eclipse.papyrus.uml.Refine"
+ hint="UML::Refine">
+ <iconEntry
+ xmi:id="_N0U_8AO0EeWv4ca2-olBmg"
+ iconPath="/icons/full/obj16/Abstraction.gif"
+ bundleId="org.eclipse.uml2.uml.edit"/>
+ <specializedTypesID>org.eclipse.papyrus.uml.Abstraction</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_UGdZ8WslEeSELtwF_9-6fg"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.RefineEditHelperAdvice"/>
+ <matcherConfiguration
+ xmi:id="_UGdZ8mslEeSELtwF_9-6fg"
+ matcherClassName="org.eclipse.papyrus.uml.service.types.matcher.RefineMatcher"/>
+ </elementTypeConfigurations>
+ <elementTypeConfigurations
+ xsi:type="elementtypesconfigurations:SpecializationTypeConfiguration"
+ xmi:id="_xVU0MHlEEeSDaJF_npeEXw"
+ name="UML::Element::OwnedElement"
+ description="Created to support the ContainmentLink"
+ identifier="org.eclipse.papyrus.uml.Element.OwnedElement"
+ hint="UML::Element::OwnedElement">
+ <specializedTypesID>org.eclipse.gmf.runtime.emf.type.core.null</specializedTypesID>
+ <editHelperAdviceConfiguration
+ xmi:id="_JdUX4MHTEeSpuJnfbRdiWQ"
+ identifier=""
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ElementOwnedElementEditHelperAdvice"
+ inheritance="all"/>
+ </elementTypeConfigurations>
+ <adviceBindingsConfigurations
+ xmi:id="_mqX8YMHdEeSpuJnfbRdiWQ"
+ identifier="org.eclipse.papyrus.uml.advice.Containment"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ElementOwnedElementReorientEditHelperAdvice"
+ inheritance="all"
+ target="_ScgUUFYCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_6AWx0MJaEeSl6M4_Zhyt7Q"
+ identifier="org.eclipse.papyrus.uml.advice.ConstraintConstrainedElementsReorient"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ConstraintConstrainedElementsReorientEditHelperAdvice"
+ inheritance="all"
+ target="_SccC-1YCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_Biw5sMdFEeS1POoqrCEMrQ"
+ identifier="org.eclipse.papyrus.uml.advice.CommentAnnotatedElementsReorient"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.CommentAnnotatedElementsReorientEditHelperAdvice"
+ inheritance="all"
+ target="_Scbb2FYCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_UdTKsMJbEeSl6M4_Zhyt7Q"
+ identifier="org.eclipse.papyrus.uml.advice.ConstraintContextReorient"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ConstraintContextReorientEditHelperAdvice"
+ inheritance="all"
+ target="_SccC-1YCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pDcGT7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.ContainmentSubsetRemoval"
+ identifier="org.eclipse.papyrus.uml.advice.ContainmentSubsetRemoval"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ContainmentSubsetRemovalAdvice"
+ inheritance="all"
+ target="_ScgUUFYCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pDcWT7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.Classifier"
+ identifier="org.eclipse.papyrus.uml.advice.Classifier"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ClassifierHelperAdvice"
+ inheritance="all"
+ target="_Sca0z1YCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pDcmT7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.Collaboration"
+ identifier="org.eclipse.papyrus.uml.advice.Collaboration"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.CollaborationHelperAdvice"
+ target="_Sca07VYCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pDc2T7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.CollaborationUse"
+ identifier="org.eclipse.papyrus.uml.advice.CollaborationUse"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.CollaborationUseHelperAdvice"
+ target="_Sca071YCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pDdGT7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.Connector"
+ identifier="org.eclipse.papyrus.uml.advice.Connector"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ConnectorHelperAdvice"
+ inheritance="all"
+ target="_SccC9VYCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pDdWT7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.ConnectorEnd"
+ identifier="org.eclipse.papyrus.uml.advice.ConnectorEnd"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ConnectorEndHelperAdvice"
+ target="_SccC91YCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pqgGT7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.EncapsulatedClassifier"
+ identifier="org.eclipse.papyrus.uml.advice.EncapsulatedClassifier"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.EncapsulatedClassifierHelperAdvice"
+ inheritance="all"
+ target="_ScgUVFYCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pqgWT7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.ExecutionSpecification"
+ identifier="org.eclipse.papyrus.uml.advice.ExecutionSpecification"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ExecutionSpecificationHelperAdvice"
+ inheritance="all"
+ target="_Schic1YCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pqg2T7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.Lifeline"
+ identifier="org.eclipse.papyrus.uml.advice.Lifeline"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.LifelineHelperAdvice"
+ inheritance="all"
+ target="_Scz2V1YCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pqhGT7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.Message"
+ identifier="org.eclipse.papyrus.uml.advice.Message"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.MessageHelperAdvice"
+ inheritance="all"
+ target="_Sc59FFYCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pqhWT7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.MessageEnd"
+ identifier="org.eclipse.papyrus.uml.advice.MessageEnd"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.MessageEndHelperAdvice"
+ inheritance="all"
+ target="_Sc59FlYCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pqhmT7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.NamedElement"
+ identifier="org.eclipse.papyrus.uml.advice.NamedElement"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.NamedElementHelperAdvice"
+ inheritance="all"
+ target="_Sc6kDFYCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pqh2T7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.NamedElementNameInitializer"
+ identifier="org.eclipse.papyrus.uml.advice.NamedElementNameInitializer"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.NamedElementInitializerHelperAdvice"
+ inheritance="all"
+ target="_Sc6kDFYCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pqiGT7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.OccurrenceSpecification"
+ identifier="org.eclipse.papyrus.uml.advice.OccurrenceSpecification"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.OccurrenceSpecificationHelperAdvice"
+ inheritance="all"
+ target="_Sc6kKlYCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pqiWT7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.Parameter"
+ identifier="org.eclipse.papyrus.uml.advice.Parameter"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ParameterHelperAdvice"
+ inheritance="all"
+ target="_Sc9nc1YCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pqimT7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.PartDecomposition"
+ identifier="org.eclipse.papyrus.uml.advice.PartDecomposition"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.PartDecompositionHelperAdvice"
+ target="_Sc-OaFYCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pqi2T7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.Property"
+ identifier="org.eclipse.papyrus.uml.advice.Property"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.PropertyHelperAdvice"
+ inheritance="all"
+ target="_Sc-1cFYCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pqjGT7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.StructuredClassifier"
+ identifier="org.eclipse.papyrus.uml.advice.StructuredClassifier"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.StructuredClassifierHelperAdvice"
+ inheritance="all"
+ target="_SdGxUVYCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pqjWT7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.ActivityNode"
+ identifier="org.eclipse.papyrus.uml.advice.ActivityNode"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ActivityNodeHelperAdvice"
+ inheritance="all"
+ target="_ScTgJVYCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_R_pqjmT7EeSzFvTXGJPhUg"
+ name="org.eclipse.papyrus.uml.advice.ActivityGroup"
+ identifier="org.eclipse.papyrus.uml.advice.ActivityGroup"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ActivityGroupEditHelperAdvice"
+ inheritance="all"
+ target="_ScTgI1YCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_yHsHwOg-EeSqZs7o0maBIQ"
+ name="Stereotype Applications Advice"
+ description="Advice for stereotype applications, primarily supplying them as dependents in the destruction of their base element."
+ identifier="org.eclipse.papyrus.uml.advice.StereotypeApplication"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.StereotypeApplicationAdvice"
+ inheritance="all"
+ target="_ScgUUFYCEeS0WsAAtVmToA"/>
+ <adviceBindingsConfigurations
+ xmi:id="_HE0JMOnEEeSnv9na4RmO6Q"
+ name="org.eclipse.papyrus.uml.advice.Extension"
+ identifier="org.eclipse.papyrus.uml.advice.Extension"
+ editHelperAdviceClassName="org.eclipse.papyrus.uml.service.types.helper.advice.ExtensionEditHelperAdvice"
+ inheritance="all"
+ target="_ScjXoVYCEeS0WsAAtVmToA"/>
+</elementtypesconfigurations:ElementTypeSetConfiguration>
diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ActivityGroupHelper.java b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ActivityGroupHelper.java
index 18ccc6562f6..636aac5c1e4 100644
--- a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ActivityGroupHelper.java
+++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ActivityGroupHelper.java
@@ -16,6 +16,7 @@ package org.eclipse.papyrus.uml.service.types.helper;
import org.eclipse.gmf.runtime.common.core.command.ICommand;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
import org.eclipse.uml2.uml.UMLPackage;
@@ -45,4 +46,19 @@ public class ActivityGroupHelper extends ElementEditHelper {
return type.getEClass() != null && UMLPackage.eINSTANCE.getActivityNode().isSuperTypeOf(type.getEClass());
}
+ /**
+ * Activity nodes creation relies on substitution of the containment feature from advices.
+ * So in contrast to base class logic, we need to approve creation requests even if the actually passed feature is not a containment.
+ */
+ protected boolean approveNonContainmentActivityNode(CreateElementRequest request) {
+ IElementType type = request.getElementType();
+ if (type == null || type.getEClass() == null) {
+ return false;
+ }
+ if (UMLPackage.eINSTANCE.getActivityNode().isSuperTypeOf(type.getEClass())) {
+ return true;
+ }
+ return super.approveRequest(request);
+ }
+
}
diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ActivityHelper.java b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ActivityHelper.java
index 975fd2f1382..2449c3850d7 100644
--- a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ActivityHelper.java
+++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ActivityHelper.java
@@ -14,6 +14,7 @@
package org.eclipse.papyrus.uml.service.types.helper;
import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
import org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest;
import org.eclipse.papyrus.uml.service.types.command.NotContainmentMoveCommand;
@@ -32,123 +33,121 @@ public class ActivityHelper extends ElementEditHelper {
protected ICommand getMoveCommand(MoveRequest req) {
return new NotContainmentMoveCommand(req);
}
-
+
@Override
protected ICommand getCreateCommand(CreateElementRequest req) {
-// CreateElementRequest request;
-// boolean isActivityNode = isActivityNode(req.getElementType());
-// if (isActivityNode) {
-// request = createActivityNodeRequest(req);
-// } else {
-// boolean isStructureNode = isStructuredNode(req.getElementType());
-// if (isStructureNode) {
-// request = createStructuredNodeRequest(req);
-// } else {
-// request = req;
-// }
-// }
- // return super.getCreateCommand(request);
- return super.getCreateCommand(req);
- }
-
- /**
- * @param elementType
- * @return
- */
- private CreateElementRequest createActivityNodeRequest(CreateElementRequest baseReq) {
- CreateElementRequest req = new CreateElementRequest(baseReq.getEditingDomain(), baseReq.getContainer(), baseReq.getElementType());
- req.addParameters(baseReq.getParameters());
- req.setContainmentFeature(UMLPackage.eINSTANCE.getActivity_OwnedNode());
- return req;
+ CreateElementRequest request;
+ IElementType elementType = req.getElementType();
+ if (isStructuredNode(elementType)) {
+ request = createStructuredNodeRequest(req);
+ }
+ // else if (isActivityNode(elementType)) {
+ // request = createActivityNodeRequest(req);
+ // }
+ else {
+ request = req;
+ }
+ return super.getCreateCommand(request);
}
// /**
// * @param elementType
// * @return
// */
+ // private CreateElementRequest createActivityNodeRequest(CreateElementRequest baseReq) {
+ // CreateElementRequest req = new CreateElementRequest(baseReq.getEditingDomain(), baseReq.getContainer(), baseReq.getElementType());
+ // req.addParameters(baseReq.getParameters());
+ // req.setContainmentFeature(UMLPackage.eINSTANCE.getActivity_OwnedNode());
+ // return req;
+ // }
+ //
+ // /**
+ // * @param elementType
+ // * @return
+ // */
// protected boolean isActivityNode(IElementType type) {
// return type.getEClass() != null && UMLPackage.eINSTANCE.getActivityNode().isSuperTypeOf(type.getEClass());
// }
//
- // protected CreateElementRequest createStructuredNodeRequest(CreateElementRequest baseReq) {
- // CreateElementRequest req = new CreateElementRequest(baseReq.getEditingDomain(), baseReq.getContainer(), baseReq.getElementType());
- // req.addParameters(baseReq.getParameters());
- // req.setContainmentFeature(UMLPackage.eINSTANCE.getActivity_StructuredNode());
- // return req;
+ protected CreateElementRequest createStructuredNodeRequest(CreateElementRequest baseReq) {
+ CreateElementRequest req = new CreateElementRequest(baseReq.getEditingDomain(), baseReq.getContainer(), baseReq.getElementType());
+ req.addParameters(baseReq.getParameters());
+ req.setContainmentFeature(UMLPackage.eINSTANCE.getActivity_StructuredNode());
+ return req;
+ }
+
+ protected boolean isStructuredNode(IElementType type) {
+ return type.getEClass() != null && UMLPackage.eINSTANCE.getStructuredActivityNode().isSuperTypeOf(type.getEClass());
+ }
+
+ // {
+ // getDefaultContainmentFeatures().put(UMLPackage.eINSTANCE.getCentralBufferNode(), UMLPackage.eINSTANCE.getActivity_OwnedNode());
+ // }
+ //
+ // @Override
+ // protected ICommand getCreateCommand(CreateElementRequest req) {
+ // return super.getCreateCommand(req);
+ // // return new CreateActivityNode(req);
+ // }
+ //
+ //
+ // /**
+ // * this inner class is used to call specific command of UML
+ // *
+ // */
+ // private class CreateActivityNode extends CreateElementCommand{
+ //
+ // protected Command emfcmd=null;
+ // public CreateActivityNode(CreateElementRequest request) {
+ // super(request);
+ // }
+ // @Override
+ // protected EObject doDefaultElementCreation() {
+ // EObject result = null;
+ // EReference containment = getContainmentFeature();
+ // EClass eClass = getElementType().getEClass();
+ //
+ // if (containment != null) {
+ // EObject element = getElementToEdit();
+ // if (element != null) {
+ // result = eClass.getEPackage().getEFactoryInstance().create(eClass);
+ // //Command cmd=new CreateChildCommand(getRequest().getEditingDomain(), element, UMLPackage.eINSTANCE.getActivity_OwnedNode(), UMLFactory.eINSTANCE.createOpaqueAction(), Collections.EMPTY_LIST);
+ // emfcmd= new CreateChildCommand(getRequest().getEditingDomain(),element, containment, result, Collections.EMPTY_LIST);
+ // emfcmd.canExecute();
+ // emfcmd.execute();
+ // if(!emfcmd.getResult().isEmpty()){
+ // result=(EObject)emfcmd.getResult().toArray()[0];
// }
+ // }
+ // }
+ //
+ // IStatus status = (result != null) ? Status.OK_STATUS
+ // : new Status(
+ // Status.ERROR,
+ // EMFTypePlugin.getPluginId(),
+ // EMFTypeCoreMessages
+ // .bind(
+ // EMFTypeCoreMessages.createElementCommand_noElementCreated,
+ // getElementType().getDisplayName()));
//
- // protected boolean isStructuredNode(IElementType type) {
- // return type.getEClass() != null && UMLPackage.eINSTANCE.getStructuredActivityNode().isSuperTypeOf(type.getEClass());
+ // setDefaultElementCreationStatus(status);
+ //
+ // return result;
+ // }
+ // @Override
+ // protected IStatus doUndo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ // emfcmd.undo();
+ // return super.doUndo(monitor, info);
// }
-
-// {
-// getDefaultContainmentFeatures().put(UMLPackage.eINSTANCE.getCentralBufferNode(), UMLPackage.eINSTANCE.getActivity_OwnedNode());
-// }
-//
-// @Override
-// protected ICommand getCreateCommand(CreateElementRequest req) {
-// return super.getCreateCommand(req);
-// // return new CreateActivityNode(req);
-// }
-//
-//
-// /**
-// * this inner class is used to call specific command of UML
-// *
-// */
-// private class CreateActivityNode extends CreateElementCommand{
-//
-// protected Command emfcmd=null;
-// public CreateActivityNode(CreateElementRequest request) {
-// super(request);
-// }
-// @Override
-// protected EObject doDefaultElementCreation() {
-// EObject result = null;
-// EReference containment = getContainmentFeature();
-// EClass eClass = getElementType().getEClass();
-//
-// if (containment != null) {
-// EObject element = getElementToEdit();
-// if (element != null) {
-// result = eClass.getEPackage().getEFactoryInstance().create(eClass);
-// //Command cmd=new CreateChildCommand(getRequest().getEditingDomain(), element, UMLPackage.eINSTANCE.getActivity_OwnedNode(), UMLFactory.eINSTANCE.createOpaqueAction(), Collections.EMPTY_LIST);
-// emfcmd= new CreateChildCommand(getRequest().getEditingDomain(),element, containment, result, Collections.EMPTY_LIST);
-// emfcmd.canExecute();
-// emfcmd.execute();
-// if(!emfcmd.getResult().isEmpty()){
-// result=(EObject)emfcmd.getResult().toArray()[0];
-// }
-// }
-// }
-//
-// IStatus status = (result != null) ? Status.OK_STATUS
-// : new Status(
-// Status.ERROR,
-// EMFTypePlugin.getPluginId(),
-// EMFTypeCoreMessages
-// .bind(
-// EMFTypeCoreMessages.createElementCommand_noElementCreated,
-// getElementType().getDisplayName()));
-//
-// setDefaultElementCreationStatus(status);
-//
-// return result;
-// }
-// @Override
-// protected IStatus doUndo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-// emfcmd.undo();
-// return super.doUndo(monitor, info);
-// }
-//
-// @Override
-// protected IStatus doRedo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
-//
-// IStatus status= super.doRedo(monitor, info);
-// emfcmd.redo();
-// return status;
-// }
-// }
-//
-//
+ //
+ // @Override
+ // protected IStatus doRedo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
+ //
+ // IStatus status= super.doRedo(monitor, info);
+ // emfcmd.redo();
+ // return status;
+ // }
+ // }
+ //
+ //
}
diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ActivityPartitionEditHelper.java b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ActivityPartitionEditHelper.java
index 2dabe3011d4..cfb04fa763d 100644
--- a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ActivityPartitionEditHelper.java
+++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ActivityPartitionEditHelper.java
@@ -7,6 +7,7 @@ import org.eclipse.gmf.runtime.common.core.command.CompositeCommand;
import org.eclipse.gmf.runtime.common.core.command.ICommand;
import org.eclipse.gmf.runtime.emf.type.core.commands.SetValueCommand;
import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
import org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest;
import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
import org.eclipse.papyrus.uml.service.types.command.NotContainmentMoveCommand;
@@ -125,4 +126,12 @@ public class ActivityPartitionEditHelper extends ActivityGroupHelper {
}
return null;
}
+
+ @Override
+ protected boolean approveRequest(IEditCommandRequest request) {
+ if (false == request instanceof CreateElementRequest) {
+ return super.approveRequest(request);
+ }
+ return approveNonContainmentActivityNode((CreateElementRequest)request);
+ }
} \ No newline at end of file
diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ExpansionRegionHelper.java b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ExpansionRegionHelper.java
index 14d65c505d4..e1f11122c34 100644
--- a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ExpansionRegionHelper.java
+++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/ExpansionRegionHelper.java
@@ -4,6 +4,7 @@ import org.eclipse.emf.ecore.EReference;
import org.eclipse.gmf.runtime.common.core.command.ICommand;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
import org.eclipse.uml2.uml.ExpansionNode;
import org.eclipse.uml2.uml.ExpansionRegion;
import org.eclipse.uml2.uml.StructuredActivityNode;
@@ -67,6 +68,18 @@ public class ExpansionRegionHelper extends StructuredActivityNodeHelper {
* the {@link CreateElementRequest} new {@link IElementType}
*/
protected boolean isExpansionNodeType(IElementType type) {
- return UMLPackage.eINSTANCE.getExpansionNode().equals(type.getEClass());
+ return type != null && UMLPackage.eINSTANCE.getExpansionNode().equals(type.getEClass());
+ }
+
+ @Override
+ protected boolean approveRequest(IEditCommandRequest request) {
+ if (request instanceof CreateElementRequest) {
+ CreateElementRequest createReq = (CreateElementRequest) request;
+ // containment feature will set in ExpansionRegionHelper#getCreateCommand(CreateElementRequest)
+ if (isExpansionNodeType(createReq.getElementType())) {
+ return true;
+ }
+ }
+ return super.approveRequest(request);
}
}
diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/InterruptibleActivityRegionHelper.java b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/InterruptibleActivityRegionHelper.java
index 507b3f584bb..986692e1f3f 100644
--- a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/InterruptibleActivityRegionHelper.java
+++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/InterruptibleActivityRegionHelper.java
@@ -9,6 +9,7 @@ import org.eclipse.gmf.runtime.common.core.command.ICommand;
import org.eclipse.gmf.runtime.emf.type.core.commands.MoveElementsCommand;
import org.eclipse.gmf.runtime.emf.type.core.commands.SetValueCommand;
import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
import org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest;
import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
import org.eclipse.papyrus.uml.service.types.command.NotContainmentMoveCommand;
@@ -113,4 +114,12 @@ public class InterruptibleActivityRegionHelper extends ActivityGroupHelper {
}
return result;
}
+
+ @Override
+ protected boolean approveRequest(IEditCommandRequest request) {
+ if (false == request instanceof CreateElementRequest) {
+ return super.approveRequest(request);
+ }
+ return approveNonContainmentActivityNode((CreateElementRequest)request);
+ }
}
diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/advice/RefineEditHelperAdvice.java b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/advice/RefineEditHelperAdvice.java
index aadd127a98d..2f86612ee0f 100644
--- a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/advice/RefineEditHelperAdvice.java
+++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/advice/RefineEditHelperAdvice.java
@@ -1,13 +1,17 @@
/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
+ * Copyright (c) 2011, 2015 CEA LIST, Christian W. Damus, and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ * Christian W. Damus - bug 467920
+ *
*****************************************************************************/
+
package org.eclipse.papyrus.uml.service.types.helper.advice;
import org.eclipse.core.commands.ExecutionException;
@@ -17,7 +21,7 @@ import org.eclipse.gmf.runtime.common.core.command.CommandResult;
import org.eclipse.gmf.runtime.common.core.command.ICommand;
import org.eclipse.gmf.runtime.emf.type.core.commands.ConfigureElementCommand;
import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.papyrus.uml.service.types.utils.NamedElementHelper;
+import org.eclipse.papyrus.uml.tools.utils.NamedElementUtil;
import org.eclipse.uml2.uml.NamedElement;
import org.eclipse.uml2.uml.profile.standard.Refine;
import org.eclipse.uml2.uml.profile.standard.StandardPackage;
@@ -39,13 +43,13 @@ public class RefineEditHelperAdvice extends AbstractStereotypedElementEditHelper
@Override
protected CommandResult doExecuteWithResult(IProgressMonitor progressMonitor, IAdaptable info) throws ExecutionException {
- NamedElement element = (NamedElement)request.getElementToConfigure();
- if(element != null) {
- StereotypeApplicationHelper.INSTANCE.applyStereotype(element, StandardPackage.eINSTANCE.getRefine());
+ NamedElement element = (NamedElement) request.getElementToConfigure();
+ if (element != null) {
+ StereotypeApplicationHelper.getInstance(element).applyStereotype(element, StandardPackage.Literals.REFINE);
// Set default name
// Initialize the element name based on the created IElementType
- String initializedName = NamedElementHelper.getDefaultNameWithIncrementFromBase(StandardPackage.eINSTANCE.getRefine().getName(), element.eContainer().eContents());
+ String initializedName = NamedElementUtil.getDefaultNameWithIncrementFromBase(StandardPackage.Literals.REFINE.getName(), element.eContainer().eContents());
element.setName(initializedName);
}
return CommandResult.newOKCommandResult(element);
diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/advice/TraceEditHelperAdvice.java b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/advice/TraceEditHelperAdvice.java
index a4398e55b23..53085b63380 100644
--- a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/advice/TraceEditHelperAdvice.java
+++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/advice/TraceEditHelperAdvice.java
@@ -1,13 +1,17 @@
/*****************************************************************************
- * Copyright (c) 2011 CEA LIST.
- *
+ * Copyright (c) 2011, 2015 CEA LIST, Christian W. Damus, and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ * Christian W. Damus - bug 467920
+ *
*****************************************************************************/
+
package org.eclipse.papyrus.uml.service.types.helper.advice;
import org.eclipse.core.commands.ExecutionException;
@@ -17,7 +21,7 @@ import org.eclipse.gmf.runtime.common.core.command.CommandResult;
import org.eclipse.gmf.runtime.common.core.command.ICommand;
import org.eclipse.gmf.runtime.emf.type.core.commands.ConfigureElementCommand;
import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
-import org.eclipse.papyrus.uml.service.types.utils.NamedElementHelper;
+import org.eclipse.papyrus.uml.tools.utils.NamedElementUtil;
import org.eclipse.uml2.uml.NamedElement;
import org.eclipse.uml2.uml.profile.standard.StandardPackage;
import org.eclipse.uml2.uml.profile.standard.Trace;
@@ -39,13 +43,13 @@ public class TraceEditHelperAdvice extends AbstractStereotypedElementEditHelperA
@Override
protected CommandResult doExecuteWithResult(IProgressMonitor progressMonitor, IAdaptable info) throws ExecutionException {
- NamedElement element = (NamedElement)request.getElementToConfigure();
- if(element != null) {
- StereotypeApplicationHelper.INSTANCE.applyStereotype(element, StandardPackage.eINSTANCE.getRefine());
+ NamedElement element = (NamedElement) request.getElementToConfigure();
+ if (element != null) {
+ StereotypeApplicationHelper.getInstance(element).applyStereotype(element, StandardPackage.Literals.TRACE);
// Set default name
// Initialize the element name based on the created IElementType
- String initializedName = NamedElementHelper.getDefaultNameWithIncrementFromBase(StandardPackage.eINSTANCE.getTrace().getName(), element.eContainer().eContents());
+ String initializedName = NamedElementUtil.getDefaultNameWithIncrementFromBase(StandardPackage.Literals.TRACE.getName(), element.eContainer().eContents());
element.setName(initializedName);
}
return CommandResult.newOKCommandResult(element);
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/AbstractUmlPortUiModule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/AbstractUmlPortUiModule.java
index bbeeeb75488..f40388b82a9 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/AbstractUmlPortUiModule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/AbstractUmlPortUiModule.java
@@ -1,145 +1,136 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.ui;
-
-import org.eclipse.xtext.ui.DefaultUiModule;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-
-/**
- * Manual modifications go to {org.eclipse.papyrus.uml.textedit.port.xtext.ui.UmlPortUiModule}
- */
-@SuppressWarnings("all")
-public abstract class AbstractUmlPortUiModule extends DefaultUiModule {
-
- public AbstractUmlPortUiModule(AbstractUIPlugin plugin) {
- super(plugin);
- }
-
-
- // contributed by org.eclipse.xtext.ui.generator.ImplicitUiFragment
- public com.google.inject.Provider<org.eclipse.xtext.resource.containers.IAllContainersState> provideIAllContainersState() {
- return org.eclipse.xtext.ui.shared.Access.getJavaProjectsState();
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public Class<? extends org.eclipse.xtext.ui.editor.contentassist.IProposalConflictHelper> bindIProposalConflictHelper() {
- return org.eclipse.xtext.ui.editor.contentassist.antlr.AntlrProposalConflictHelper.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public void configureHighlightingLexer(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.HIGHLIGHTING))
- .to(org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal.InternalUmlPortLexer.class);
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public void configureHighlightingTokenDefProvider(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.parser.antlr.ITokenDefProvider.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.HIGHLIGHTING)).to(org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class);
- }
-
- // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment
- public Class<? extends org.eclipse.xtext.ui.editor.contentassist.PrefixMatcher> bindPrefixMatcher() {
- return org.eclipse.xtext.ui.editor.contentassist.FQNPrefixMatcher.class;
- }
-
- // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment
- public Class<? extends org.eclipse.xtext.ui.refactoring.IDependentElementsCalculator> bindIDependentElementsCalculator() {
- return org.eclipse.xtext.ui.refactoring.impl.DefaultDependentElementsCalculator.class;
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public void configureIResourceDescriptionsBuilderScope(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE))
- .to(org.eclipse.xtext.builder.clustering.CurrentDescriptions.ResourceSetAware.class);
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public Class<? extends org.eclipse.xtext.ui.editor.IXtextEditorCallback> bindIXtextEditorCallback() {
- return org.eclipse.xtext.builder.nature.NatureAddingEditorCallback.class;
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public void configureIResourceDescriptionsPersisted(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS))
- .to(org.eclipse.xtext.builder.builderState.IBuilderState.class);
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public Class<? extends org.eclipse.xtext.ui.editor.DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() {
- return org.eclipse.xtext.builder.impl.PersistentDataAwareDirtyResource.class;
- }
-
- // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
- public Class<? extends org.eclipse.xtext.builder.IXtextBuilderParticipant> bindIXtextBuilderParticipant() {
- return org.eclipse.xtext.builder.BuilderParticipant.class;
- }
-
- // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
- public org.eclipse.core.resources.IWorkspaceRoot bindIWorkspaceRootToInstance() {
- return org.eclipse.core.resources.ResourcesPlugin.getWorkspace().getRoot();
- }
-
- // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
- public void configureBuilderPreferenceStoreInitializer(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer.class).annotatedWith(com.google.inject.name.Names.named("builderPreferenceInitializer"))
- .to(org.eclipse.xtext.builder.preferences.BuilderPreferenceAccess.Initializer.class);
- }
-
- // contributed by org.eclipse.xtext.ui.generator.labeling.LabelProviderFragment
- @Override
- public Class<? extends org.eclipse.jface.viewers.ILabelProvider> bindILabelProvider() {
- return org.eclipse.papyrus.uml.textedit.port.xtext.ui.labeling.UmlPortLabelProvider.class;
- }
-
- // contributed by org.eclipse.xtext.ui.generator.labeling.LabelProviderFragment
- @Override
- public void configureResourceUIServiceLabelProvider(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.jface.viewers.ILabelProvider.class).annotatedWith(org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider.class).to(org.eclipse.papyrus.uml.textedit.port.xtext.ui.labeling.UmlPortDescriptionLabelProvider.class);
- }
-
- // contributed by org.eclipse.xtext.ui.generator.outline.OutlineTreeProviderFragment
- public Class<? extends org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider> bindIOutlineTreeProvider() {
- return org.eclipse.papyrus.uml.textedit.port.xtext.ui.outline.UmlPortOutlineTreeProvider.class;
- }
-
- // contributed by org.eclipse.xtext.ui.generator.outline.OutlineTreeProviderFragment
- public Class<? extends org.eclipse.xtext.ui.editor.outline.impl.IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() {
- return org.eclipse.papyrus.uml.textedit.port.xtext.ui.outline.UmlPortOutlineTreeProvider.class;
- }
-
- // contributed by org.eclipse.xtext.ui.generator.quickfix.QuickfixProviderFragment
- @Override
- public Class<? extends org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider> bindIssueResolutionProvider() {
- return org.eclipse.papyrus.uml.textedit.port.xtext.ui.quickfix.UmlPortQuickfixProvider.class;
- }
-
- // contributed by org.eclipse.xtext.ui.generator.contentAssist.JavaBasedContentAssistFragment
- public Class<? extends org.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider> bindIContentProposalProvider() {
- return org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.UmlPortProposalProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment
- public Class<? extends org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext.Factory> bindContentAssistContext$Factory() {
- return org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment
- public Class<? extends org.eclipse.xtext.ui.editor.contentassist.antlr.IContentAssistParser> bindIContentAssistParser() {
- return org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.UmlPortParser.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment
- public void configureContentAssistLexerProvider(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal.InternalUmlPortLexer.class).toProvider(
- org.eclipse.xtext.parser.antlr.LexerProvider.create(org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal.InternalUmlPortLexer.class));
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment
- public void configureContentAssistLexer(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.CONTENT_ASSIST))
- .to(org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal.InternalUmlPortLexer.class);
- }
-
-
-}
+
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.ui;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+
+/**
+ * Manual modifications go to {org.eclipse.papyrus.uml.textedit.port.xtext.ui.UmlPortUiModule}
+ */
+@SuppressWarnings("all")
+public abstract class AbstractUmlPortUiModule extends org.eclipse.xtext.ui.DefaultUiModule {
+
+ public AbstractUmlPortUiModule(AbstractUIPlugin plugin) {
+ super(plugin);
+ }
+
+
+ // contributed by org.eclipse.xtext.ui.generator.ImplicitUiFragment
+ public com.google.inject.Provider<org.eclipse.xtext.resource.containers.IAllContainersState> provideIAllContainersState() {
+ return org.eclipse.xtext.ui.shared.Access.getJavaProjectsState();
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.contentassist.IProposalConflictHelper> bindIProposalConflictHelper() {
+ return org.eclipse.xtext.ui.editor.contentassist.antlr.AntlrProposalConflictHelper.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public void configureHighlightingLexer(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.HIGHLIGHTING)).to(org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal.InternalUmlPortLexer.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public void configureHighlightingTokenDefProvider(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.parser.antlr.ITokenDefProvider.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.HIGHLIGHTING)).to(org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.contentassist.PrefixMatcher> bindPrefixMatcher() {
+ return org.eclipse.xtext.ui.editor.contentassist.FQNPrefixMatcher.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment
+ public Class<? extends org.eclipse.xtext.ui.refactoring.IDependentElementsCalculator> bindIDependentElementsCalculator() {
+ return org.eclipse.xtext.ui.refactoring.impl.DefaultDependentElementsCalculator.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public void configureIResourceDescriptionsBuilderScope(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)).to(org.eclipse.xtext.builder.clustering.CurrentDescriptions.ResourceSetAware.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.IXtextEditorCallback> bindIXtextEditorCallback() {
+ return org.eclipse.xtext.builder.nature.NatureAddingEditorCallback.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public void configureIResourceDescriptionsPersisted(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(org.eclipse.xtext.builder.builderState.IBuilderState.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() {
+ return org.eclipse.xtext.builder.impl.PersistentDataAwareDirtyResource.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
+ public Class<? extends org.eclipse.xtext.builder.IXtextBuilderParticipant> bindIXtextBuilderParticipant() {
+ return org.eclipse.xtext.builder.BuilderParticipant.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
+ public org.eclipse.core.resources.IWorkspaceRoot bindIWorkspaceRootToInstance() {
+ return org.eclipse.core.resources.ResourcesPlugin.getWorkspace().getRoot();
+ }
+
+ // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
+ public void configureBuilderPreferenceStoreInitializer(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer.class).annotatedWith(com.google.inject.name.Names.named("builderPreferenceInitializer")).to(org.eclipse.xtext.builder.preferences.BuilderPreferenceAccess.Initializer.class);
+ }
+
+ // contributed by org.eclipse.xtext.ui.generator.labeling.LabelProviderFragment
+ public Class<? extends org.eclipse.jface.viewers.ILabelProvider> bindILabelProvider() {
+ return org.eclipse.papyrus.uml.textedit.port.xtext.ui.labeling.UmlPortLabelProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.ui.generator.labeling.LabelProviderFragment
+ public void configureResourceUIServiceLabelProvider(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.jface.viewers.ILabelProvider.class).annotatedWith(org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider.class).to(org.eclipse.papyrus.uml.textedit.port.xtext.ui.labeling.UmlPortDescriptionLabelProvider.class);
+ }
+
+ // contributed by org.eclipse.xtext.ui.generator.outline.OutlineTreeProviderFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider> bindIOutlineTreeProvider() {
+ return org.eclipse.papyrus.uml.textedit.port.xtext.ui.outline.UmlPortOutlineTreeProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.ui.generator.outline.OutlineTreeProviderFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.outline.impl.IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() {
+ return org.eclipse.papyrus.uml.textedit.port.xtext.ui.outline.UmlPortOutlineTreeProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.ui.generator.quickfix.QuickfixProviderFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider> bindIssueResolutionProvider() {
+ return org.eclipse.papyrus.uml.textedit.port.xtext.ui.quickfix.UmlPortQuickfixProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.ui.generator.contentAssist.JavaBasedContentAssistFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider> bindIContentProposalProvider() {
+ return org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.UmlPortProposalProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext.Factory> bindContentAssistContext$Factory() {
+ return org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.contentassist.antlr.IContentAssistParser> bindIContentAssistParser() {
+ return org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.UmlPortParser.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment
+ public void configureContentAssistLexerProvider(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal.InternalUmlPortLexer.class).toProvider(org.eclipse.xtext.parser.antlr.LexerProvider.create(org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal.InternalUmlPortLexer.class));
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment
+ public void configureContentAssistLexer(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.CONTENT_ASSIST)).to(org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal.InternalUmlPortLexer.class);
+ }
+
+
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/UmlPortExecutableExtensionFactory.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/UmlPortExecutableExtensionFactory.java
index e37fb09756f..24575692676 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/UmlPortExecutableExtensionFactory.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/UmlPortExecutableExtensionFactory.java
@@ -1,29 +1,29 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.ui;
-
-import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory;
-import org.osgi.framework.Bundle;
-
-import com.google.inject.Injector;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.ui.internal.UmlPortActivator;
-
-/**
- * This class was generated. Customizations should only happen in a newly
- * introduced subclass.
- */
-public class UmlPortExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory {
-
- @Override
- protected Bundle getBundle() {
- return UmlPortActivator.getInstance().getBundle();
- }
-
- @Override
- protected Injector getInjector() {
- return UmlPortActivator.getInstance().getInjector(UmlPortActivator.ORG_ECLIPSE_PAPYRUS_UML_TEXTEDIT_PORT_XTEXT_UMLPORT);
- }
-
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.ui;
+
+import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory;
+import org.osgi.framework.Bundle;
+
+import com.google.inject.Injector;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.ui.internal.UmlPortActivator;
+
+/**
+ * This class was generated. Customizations should only happen in a newly
+ * introduced subclass.
+ */
+public class UmlPortExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory {
+
+ @Override
+ protected Bundle getBundle() {
+ return UmlPortActivator.getInstance().getBundle();
+ }
+
+ @Override
+ protected Injector getInjector() {
+ return UmlPortActivator.getInstance().getInjector(UmlPortActivator.ORG_ECLIPSE_PAPYRUS_UML_TEXTEDIT_PORT_XTEXT_UMLPORT);
+ }
+
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/AbstractUmlPortProposalProvider.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/AbstractUmlPortProposalProvider.java
index 99c56aa5bef..96e47f2b167 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/AbstractUmlPortProposalProvider.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/AbstractUmlPortProposalProvider.java
@@ -1,218 +1,174 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.xtext.*;
-import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor;
-import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext;
-
-/**
- * Represents a generated, default implementation of superclass {@link org.eclipse.papyrus.uml.alf.ui.contentassist.CommonProposalProvider}.
- * Methods are dynamically dispatched on the first parameter, i.e., you can override them
- * with a more concrete subtype.
- */
-@SuppressWarnings("all")
-public class AbstractUmlPortProposalProvider extends org.eclipse.papyrus.uml.alf.ui.contentassist.CommonProposalProvider {
-
- public void completePortRule_Visibility(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completePortRule_Derived(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void completePortRule_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completePortRule_Conjugated(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void completePortRule_Type(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completePortRule_TypeUndefined(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void completePortRule_Multiplicity(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completePortRule_Modifiers(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completePortRule_Default(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeVisibilityRule_Visibility(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeTypeRule_Path(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeTypeRule_Type(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- lookupCrossReference(((CrossReference) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeQualifiedName_Path(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- lookupCrossReference(((CrossReference) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeQualifiedName_Remaining(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeMultiplicityRule_Bounds(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeBoundSpecification_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeModifiersRule_Values(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeModifierSpecification_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeModifierSpecification_Redefines(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeModifierSpecification_Subsets(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeRedefinesRule_Port(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- lookupCrossReference(((CrossReference) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeSubsetsRule_Port(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- lookupCrossReference(((CrossReference) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeDefaultValueRule_Default(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeIntValue_LiteralInteger(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeStringValue_LiteralString(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeBooleanValue_LiteralBoolean(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeRealValue_Integer(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeRealValue_Fraction(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void complete_PortRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_VisibilityKind(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_VisibilityRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_TypeRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_QualifiedName(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_MultiplicityRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_BoundSpecification(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_UnlimitedLiteral(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_ModifiersRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_ModifierSpecification(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_ModifierKind(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_RedefinesRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_SubsetsRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_DefaultValueRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_Value(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_IntValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_StringValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_BooleanLiterals(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_BooleanValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_RealValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_NullValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_NoValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.xtext.*;
+import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor;
+import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext;
+
+/**
+ * Represents a generated, default implementation of superclass {@link org.eclipse.papyrus.uml.alf.ui.contentassist.CommonProposalProvider}.
+ * Methods are dynamically dispatched on the first parameter, i.e., you can override them
+ * with a more concrete subtype.
+ */
+@SuppressWarnings("all")
+public class AbstractUmlPortProposalProvider extends org.eclipse.papyrus.uml.alf.ui.contentassist.CommonProposalProvider {
+
+ public void completePortRule_Visibility(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completePortRule_Derived(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void completePortRule_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completePortRule_Conjugated(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void completePortRule_Type(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completePortRule_TypeUndefined(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void completePortRule_Multiplicity(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completePortRule_Modifiers(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completePortRule_Default(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeVisibilityRule_Visibility(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeTypeRule_Path(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeTypeRule_Type(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeQualifiedName_Path(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeQualifiedName_Remaining(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeMultiplicityRule_Bounds(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeBoundSpecification_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(0)), context, acceptor);
+ completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(1)), context, acceptor);
+ }
+ public void completeModifiersRule_Values(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeModifierSpecification_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeModifierSpecification_Redefines(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeModifierSpecification_Subsets(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeRedefinesRule_Port(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeSubsetsRule_Port(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeDefaultValueRule_Default(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeIntValue_LiteralInteger(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeStringValue_LiteralString(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeBooleanValue_LiteralBoolean(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeRealValue_Integer(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeRealValue_Fraction(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+
+ public void complete_PortRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_VisibilityKind(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_VisibilityRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_TypeRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_QualifiedName(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_MultiplicityRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_BoundSpecification(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_UnlimitedLiteral(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_StringLiteral(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_ModifiersRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_ModifierSpecification(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_ModifierKind(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_RedefinesRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_SubsetsRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_DefaultValueRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_Value(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_IntValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_StringValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_BooleanLiterals(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_BooleanValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_RealValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_NullValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_NoValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/UmlPortParser.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/UmlPortParser.java
index 3f16e639487..0f646134387 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/UmlPortParser.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/UmlPortParser.java
@@ -1,126 +1,127 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr;
-
-import java.util.Collection;
-import java.util.Map;
-import java.util.HashMap;
-
-import org.antlr.runtime.RecognitionException;
-import org.eclipse.xtext.AbstractElement;
-import org.eclipse.xtext.ui.editor.contentassist.antlr.AbstractContentAssistParser;
-import org.eclipse.xtext.ui.editor.contentassist.antlr.FollowElement;
-import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser;
-
-import com.google.inject.Inject;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.services.UmlPortGrammarAccess;
-
-public class UmlPortParser extends AbstractContentAssistParser {
-
- @Inject
- private UmlPortGrammarAccess grammarAccess;
-
- private Map<AbstractElement, String> nameMappings;
-
- @Override
- protected org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal.InternalUmlPortParser createParser() {
- org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal.InternalUmlPortParser result = new org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal.InternalUmlPortParser(null);
- result.setGrammarAccess(grammarAccess);
- return result;
- }
-
- @Override
- protected String getRuleName(AbstractElement element) {
- if (nameMappings == null) {
- nameMappings = new HashMap<AbstractElement, String>() {
- private static final long serialVersionUID = 1L;
- {
- put(grammarAccess.getPortRuleAccess().getAlternatives_3_2(), "rule__PortRule__Alternatives_3_2");
- put(grammarAccess.getUnlimitedLiteralAccess().getAlternatives(), "rule__UnlimitedLiteral__Alternatives");
- put(grammarAccess.getModifierSpecificationAccess().getAlternatives(), "rule__ModifierSpecification__Alternatives");
- put(grammarAccess.getValueAccess().getAlternatives(), "rule__Value__Alternatives");
- put(grammarAccess.getRealValueAccess().getAlternatives(), "rule__RealValue__Alternatives");
- put(grammarAccess.getVisibilityKindAccess().getAlternatives(), "rule__VisibilityKind__Alternatives");
- put(grammarAccess.getModifierKindAccess().getAlternatives(), "rule__ModifierKind__Alternatives");
- put(grammarAccess.getBooleanLiteralsAccess().getAlternatives(), "rule__BooleanLiterals__Alternatives");
- put(grammarAccess.getPortRuleAccess().getGroup(), "rule__PortRule__Group__0");
- put(grammarAccess.getPortRuleAccess().getGroup_3(), "rule__PortRule__Group_3__0");
- put(grammarAccess.getTypeRuleAccess().getGroup(), "rule__TypeRule__Group__0");
- put(grammarAccess.getQualifiedNameAccess().getGroup(), "rule__QualifiedName__Group__0");
- put(grammarAccess.getMultiplicityRuleAccess().getGroup(), "rule__MultiplicityRule__Group__0");
- put(grammarAccess.getMultiplicityRuleAccess().getGroup_2(), "rule__MultiplicityRule__Group_2__0");
- put(grammarAccess.getModifiersRuleAccess().getGroup(), "rule__ModifiersRule__Group__0");
- put(grammarAccess.getModifiersRuleAccess().getGroup_2(), "rule__ModifiersRule__Group_2__0");
- put(grammarAccess.getModifiersRuleAccess().getGroup_2_1(), "rule__ModifiersRule__Group_2_1__0");
- put(grammarAccess.getRedefinesRuleAccess().getGroup(), "rule__RedefinesRule__Group__0");
- put(grammarAccess.getSubsetsRuleAccess().getGroup(), "rule__SubsetsRule__Group__0");
- put(grammarAccess.getDefaultValueRuleAccess().getGroup(), "rule__DefaultValueRule__Group__0");
- put(grammarAccess.getRealValueAccess().getGroup_0(), "rule__RealValue__Group_0__0");
- put(grammarAccess.getRealValueAccess().getGroup_1(), "rule__RealValue__Group_1__0");
- put(grammarAccess.getRealValueAccess().getGroup_2(), "rule__RealValue__Group_2__0");
- put(grammarAccess.getNullValueAccess().getGroup(), "rule__NullValue__Group__0");
- put(grammarAccess.getNoValueAccess().getGroup(), "rule__NoValue__Group__0");
- put(grammarAccess.getPortRuleAccess().getVisibilityAssignment_0(), "rule__PortRule__VisibilityAssignment_0");
- put(grammarAccess.getPortRuleAccess().getDerivedAssignment_1(), "rule__PortRule__DerivedAssignment_1");
- put(grammarAccess.getPortRuleAccess().getNameAssignment_2(), "rule__PortRule__NameAssignment_2");
- put(grammarAccess.getPortRuleAccess().getConjugatedAssignment_3_1(), "rule__PortRule__ConjugatedAssignment_3_1");
- put(grammarAccess.getPortRuleAccess().getTypeAssignment_3_2_0(), "rule__PortRule__TypeAssignment_3_2_0");
- put(grammarAccess.getPortRuleAccess().getTypeUndefinedAssignment_3_2_1(), "rule__PortRule__TypeUndefinedAssignment_3_2_1");
- put(grammarAccess.getPortRuleAccess().getMultiplicityAssignment_4(), "rule__PortRule__MultiplicityAssignment_4");
- put(grammarAccess.getPortRuleAccess().getModifiersAssignment_5(), "rule__PortRule__ModifiersAssignment_5");
- put(grammarAccess.getPortRuleAccess().getDefaultAssignment_6(), "rule__PortRule__DefaultAssignment_6");
- put(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment(), "rule__VisibilityRule__VisibilityAssignment");
- put(grammarAccess.getTypeRuleAccess().getPathAssignment_0(), "rule__TypeRule__PathAssignment_0");
- put(grammarAccess.getTypeRuleAccess().getTypeAssignment_1(), "rule__TypeRule__TypeAssignment_1");
- put(grammarAccess.getQualifiedNameAccess().getPathAssignment_0(), "rule__QualifiedName__PathAssignment_0");
- put(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2(), "rule__QualifiedName__RemainingAssignment_2");
- put(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1(), "rule__MultiplicityRule__BoundsAssignment_1");
- put(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2_1(), "rule__MultiplicityRule__BoundsAssignment_2_1");
- put(grammarAccess.getBoundSpecificationAccess().getValueAssignment(), "rule__BoundSpecification__ValueAssignment");
- put(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0(), "rule__ModifiersRule__ValuesAssignment_2_0");
- put(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1(), "rule__ModifiersRule__ValuesAssignment_2_1_1");
- put(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0(), "rule__ModifierSpecification__ValueAssignment_0");
- put(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1(), "rule__ModifierSpecification__RedefinesAssignment_1");
- put(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2(), "rule__ModifierSpecification__SubsetsAssignment_2");
- put(grammarAccess.getRedefinesRuleAccess().getPortAssignment_1(), "rule__RedefinesRule__PortAssignment_1");
- put(grammarAccess.getSubsetsRuleAccess().getPortAssignment_1(), "rule__SubsetsRule__PortAssignment_1");
- put(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1(), "rule__DefaultValueRule__DefaultAssignment_1");
- put(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment(), "rule__IntValue__LiteralIntegerAssignment");
- put(grammarAccess.getStringValueAccess().getLiteralStringAssignment(), "rule__StringValue__LiteralStringAssignment");
- put(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment(), "rule__BooleanValue__LiteralBooleanAssignment");
- put(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0(), "rule__RealValue__IntegerAssignment_0_0");
- put(grammarAccess.getRealValueAccess().getFractionAssignment_1_1(), "rule__RealValue__FractionAssignment_1_1");
- put(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0(), "rule__RealValue__IntegerAssignment_2_0");
- put(grammarAccess.getRealValueAccess().getFractionAssignment_2_2(), "rule__RealValue__FractionAssignment_2_2");
- }
- };
- }
- return nameMappings.get(element);
- }
-
- @Override
- protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
- try {
- org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal.InternalUmlPortParser typedParser = (org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal.InternalUmlPortParser) parser;
- typedParser.entryRulePortRule();
- return typedParser.getFollowElements();
- } catch (RecognitionException ex) {
- throw new RuntimeException(ex);
- }
- }
-
- @Override
- protected String[] getInitialHiddenTokens() {
- return new String[] { "RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT" };
- }
-
- public UmlPortGrammarAccess getGrammarAccess() {
- return this.grammarAccess;
- }
-
- public void setGrammarAccess(UmlPortGrammarAccess grammarAccess) {
- this.grammarAccess = grammarAccess;
- }
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr;
+
+import java.util.Collection;
+import java.util.Map;
+import java.util.HashMap;
+
+import org.antlr.runtime.RecognitionException;
+import org.eclipse.xtext.AbstractElement;
+import org.eclipse.xtext.ui.editor.contentassist.antlr.AbstractContentAssistParser;
+import org.eclipse.xtext.ui.editor.contentassist.antlr.FollowElement;
+import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser;
+
+import com.google.inject.Inject;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.services.UmlPortGrammarAccess;
+
+public class UmlPortParser extends AbstractContentAssistParser {
+
+ @Inject
+ private UmlPortGrammarAccess grammarAccess;
+
+ private Map<AbstractElement, String> nameMappings;
+
+ @Override
+ protected org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal.InternalUmlPortParser createParser() {
+ org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal.InternalUmlPortParser result = new org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal.InternalUmlPortParser(null);
+ result.setGrammarAccess(grammarAccess);
+ return result;
+ }
+
+ @Override
+ protected String getRuleName(AbstractElement element) {
+ if (nameMappings == null) {
+ nameMappings = new HashMap<AbstractElement, String>() {
+ private static final long serialVersionUID = 1L;
+ {
+ put(grammarAccess.getPortRuleAccess().getAlternatives_3_2(), "rule__PortRule__Alternatives_3_2");
+ put(grammarAccess.getBoundSpecificationAccess().getValueAlternatives_0(), "rule__BoundSpecification__ValueAlternatives_0");
+ put(grammarAccess.getUnlimitedLiteralAccess().getAlternatives(), "rule__UnlimitedLiteral__Alternatives");
+ put(grammarAccess.getModifierSpecificationAccess().getAlternatives(), "rule__ModifierSpecification__Alternatives");
+ put(grammarAccess.getValueAccess().getAlternatives(), "rule__Value__Alternatives");
+ put(grammarAccess.getRealValueAccess().getAlternatives(), "rule__RealValue__Alternatives");
+ put(grammarAccess.getVisibilityKindAccess().getAlternatives(), "rule__VisibilityKind__Alternatives");
+ put(grammarAccess.getModifierKindAccess().getAlternatives(), "rule__ModifierKind__Alternatives");
+ put(grammarAccess.getBooleanLiteralsAccess().getAlternatives(), "rule__BooleanLiterals__Alternatives");
+ put(grammarAccess.getPortRuleAccess().getGroup(), "rule__PortRule__Group__0");
+ put(grammarAccess.getPortRuleAccess().getGroup_3(), "rule__PortRule__Group_3__0");
+ put(grammarAccess.getTypeRuleAccess().getGroup(), "rule__TypeRule__Group__0");
+ put(grammarAccess.getQualifiedNameAccess().getGroup(), "rule__QualifiedName__Group__0");
+ put(grammarAccess.getMultiplicityRuleAccess().getGroup(), "rule__MultiplicityRule__Group__0");
+ put(grammarAccess.getMultiplicityRuleAccess().getGroup_1(), "rule__MultiplicityRule__Group_1__0");
+ put(grammarAccess.getModifiersRuleAccess().getGroup(), "rule__ModifiersRule__Group__0");
+ put(grammarAccess.getModifiersRuleAccess().getGroup_2(), "rule__ModifiersRule__Group_2__0");
+ put(grammarAccess.getModifiersRuleAccess().getGroup_2_1(), "rule__ModifiersRule__Group_2_1__0");
+ put(grammarAccess.getRedefinesRuleAccess().getGroup(), "rule__RedefinesRule__Group__0");
+ put(grammarAccess.getSubsetsRuleAccess().getGroup(), "rule__SubsetsRule__Group__0");
+ put(grammarAccess.getDefaultValueRuleAccess().getGroup(), "rule__DefaultValueRule__Group__0");
+ put(grammarAccess.getRealValueAccess().getGroup_0(), "rule__RealValue__Group_0__0");
+ put(grammarAccess.getRealValueAccess().getGroup_1(), "rule__RealValue__Group_1__0");
+ put(grammarAccess.getRealValueAccess().getGroup_2(), "rule__RealValue__Group_2__0");
+ put(grammarAccess.getNullValueAccess().getGroup(), "rule__NullValue__Group__0");
+ put(grammarAccess.getNoValueAccess().getGroup(), "rule__NoValue__Group__0");
+ put(grammarAccess.getPortRuleAccess().getVisibilityAssignment_0(), "rule__PortRule__VisibilityAssignment_0");
+ put(grammarAccess.getPortRuleAccess().getDerivedAssignment_1(), "rule__PortRule__DerivedAssignment_1");
+ put(grammarAccess.getPortRuleAccess().getNameAssignment_2(), "rule__PortRule__NameAssignment_2");
+ put(grammarAccess.getPortRuleAccess().getConjugatedAssignment_3_1(), "rule__PortRule__ConjugatedAssignment_3_1");
+ put(grammarAccess.getPortRuleAccess().getTypeAssignment_3_2_0(), "rule__PortRule__TypeAssignment_3_2_0");
+ put(grammarAccess.getPortRuleAccess().getTypeUndefinedAssignment_3_2_1(), "rule__PortRule__TypeUndefinedAssignment_3_2_1");
+ put(grammarAccess.getPortRuleAccess().getMultiplicityAssignment_4(), "rule__PortRule__MultiplicityAssignment_4");
+ put(grammarAccess.getPortRuleAccess().getModifiersAssignment_5(), "rule__PortRule__ModifiersAssignment_5");
+ put(grammarAccess.getPortRuleAccess().getDefaultAssignment_6(), "rule__PortRule__DefaultAssignment_6");
+ put(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment(), "rule__VisibilityRule__VisibilityAssignment");
+ put(grammarAccess.getTypeRuleAccess().getPathAssignment_0(), "rule__TypeRule__PathAssignment_0");
+ put(grammarAccess.getTypeRuleAccess().getTypeAssignment_1(), "rule__TypeRule__TypeAssignment_1");
+ put(grammarAccess.getQualifiedNameAccess().getPathAssignment_0(), "rule__QualifiedName__PathAssignment_0");
+ put(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2(), "rule__QualifiedName__RemainingAssignment_2");
+ put(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1_0(), "rule__MultiplicityRule__BoundsAssignment_1_0");
+ put(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2(), "rule__MultiplicityRule__BoundsAssignment_2");
+ put(grammarAccess.getBoundSpecificationAccess().getValueAssignment(), "rule__BoundSpecification__ValueAssignment");
+ put(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0(), "rule__ModifiersRule__ValuesAssignment_2_0");
+ put(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1(), "rule__ModifiersRule__ValuesAssignment_2_1_1");
+ put(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0(), "rule__ModifierSpecification__ValueAssignment_0");
+ put(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1(), "rule__ModifierSpecification__RedefinesAssignment_1");
+ put(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2(), "rule__ModifierSpecification__SubsetsAssignment_2");
+ put(grammarAccess.getRedefinesRuleAccess().getPortAssignment_1(), "rule__RedefinesRule__PortAssignment_1");
+ put(grammarAccess.getSubsetsRuleAccess().getPortAssignment_1(), "rule__SubsetsRule__PortAssignment_1");
+ put(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1(), "rule__DefaultValueRule__DefaultAssignment_1");
+ put(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment(), "rule__IntValue__LiteralIntegerAssignment");
+ put(grammarAccess.getStringValueAccess().getLiteralStringAssignment(), "rule__StringValue__LiteralStringAssignment");
+ put(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment(), "rule__BooleanValue__LiteralBooleanAssignment");
+ put(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0(), "rule__RealValue__IntegerAssignment_0_0");
+ put(grammarAccess.getRealValueAccess().getFractionAssignment_1_1(), "rule__RealValue__FractionAssignment_1_1");
+ put(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0(), "rule__RealValue__IntegerAssignment_2_0");
+ put(grammarAccess.getRealValueAccess().getFractionAssignment_2_2(), "rule__RealValue__FractionAssignment_2_2");
+ }
+ };
+ }
+ return nameMappings.get(element);
+ }
+
+ @Override
+ protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
+ try {
+ org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal.InternalUmlPortParser typedParser = (org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal.InternalUmlPortParser) parser;
+ typedParser.entryRulePortRule();
+ return typedParser.getFollowElements();
+ } catch(RecognitionException ex) {
+ throw new RuntimeException(ex);
+ }
+ }
+
+ @Override
+ protected String[] getInitialHiddenTokens() {
+ return new String[] { "RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT" };
+ }
+
+ public UmlPortGrammarAccess getGrammarAccess() {
+ return this.grammarAccess;
+ }
+
+ public void setGrammarAccess(UmlPortGrammarAccess grammarAccess) {
+ this.grammarAccess = grammarAccess;
+ }
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g
index c35b754450a..b62b048948b 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g
@@ -1,2884 +1,2935 @@
-/*
-* generated by Xtext
-*/
-grammar InternalUmlPort;
-
-options {
- superClass=AbstractInternalContentAssistParser;
-
-}
-
-@lexer::header {
-package org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal;
-
-// Hack: Use our own Lexer superclass by means of import.
-// Currently there is no other way to specify the superclass for the lexer.
-import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer;
-}
-
-@parser::header {
-package org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal;
-
-import java.io.InputStream;
-import org.eclipse.xtext.*;
-import org.eclipse.xtext.parser.*;
-import org.eclipse.xtext.parser.impl.*;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.xtext.parser.antlr.XtextTokenStream;
-import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
-import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser;
-import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.DFA;
-import org.eclipse.papyrus.uml.textedit.port.xtext.services.UmlPortGrammarAccess;
-
-}
-
-@parser::members {
-
- private UmlPortGrammarAccess grammarAccess;
-
- public void setGrammarAccess(UmlPortGrammarAccess grammarAccess) {
- this.grammarAccess = grammarAccess;
- }
-
- @Override
- protected Grammar getGrammar() {
- return grammarAccess.getGrammar();
- }
-
- @Override
- protected String getValueForTokenName(String tokenName) {
- return tokenName;
- }
-
-}
-
-
-
-
-// Entry rule entryRulePortRule
-entryRulePortRule
-:
-{ before(grammarAccess.getPortRuleRule()); }
- rulePortRule
-{ after(grammarAccess.getPortRuleRule()); }
- EOF
-;
-
-// Rule PortRule
-rulePortRule
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getPortRuleAccess().getGroup()); }
-(rule__PortRule__Group__0)
-{ after(grammarAccess.getPortRuleAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleVisibilityRule
-entryRuleVisibilityRule
-:
-{ before(grammarAccess.getVisibilityRuleRule()); }
- ruleVisibilityRule
-{ after(grammarAccess.getVisibilityRuleRule()); }
- EOF
-;
-
-// Rule VisibilityRule
-ruleVisibilityRule
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment()); }
-(rule__VisibilityRule__VisibilityAssignment)
-{ after(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleTypeRule
-entryRuleTypeRule
-:
-{ before(grammarAccess.getTypeRuleRule()); }
- ruleTypeRule
-{ after(grammarAccess.getTypeRuleRule()); }
- EOF
-;
-
-// Rule TypeRule
-ruleTypeRule
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getTypeRuleAccess().getGroup()); }
-(rule__TypeRule__Group__0)
-{ after(grammarAccess.getTypeRuleAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleQualifiedName
-entryRuleQualifiedName
-:
-{ before(grammarAccess.getQualifiedNameRule()); }
- ruleQualifiedName
-{ after(grammarAccess.getQualifiedNameRule()); }
- EOF
-;
-
-// Rule QualifiedName
-ruleQualifiedName
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getQualifiedNameAccess().getGroup()); }
-(rule__QualifiedName__Group__0)
-{ after(grammarAccess.getQualifiedNameAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleMultiplicityRule
-entryRuleMultiplicityRule
-:
-{ before(grammarAccess.getMultiplicityRuleRule()); }
- ruleMultiplicityRule
-{ after(grammarAccess.getMultiplicityRuleRule()); }
- EOF
-;
-
-// Rule MultiplicityRule
-ruleMultiplicityRule
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getMultiplicityRuleAccess().getGroup()); }
-(rule__MultiplicityRule__Group__0)
-{ after(grammarAccess.getMultiplicityRuleAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleBoundSpecification
-entryRuleBoundSpecification
-:
-{ before(grammarAccess.getBoundSpecificationRule()); }
- ruleBoundSpecification
-{ after(grammarAccess.getBoundSpecificationRule()); }
- EOF
-;
-
-// Rule BoundSpecification
-ruleBoundSpecification
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getBoundSpecificationAccess().getValueAssignment()); }
-(rule__BoundSpecification__ValueAssignment)
-{ after(grammarAccess.getBoundSpecificationAccess().getValueAssignment()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleUnlimitedLiteral
-entryRuleUnlimitedLiteral
-:
-{ before(grammarAccess.getUnlimitedLiteralRule()); }
- ruleUnlimitedLiteral
-{ after(grammarAccess.getUnlimitedLiteralRule()); }
- EOF
-;
-
-// Rule UnlimitedLiteral
-ruleUnlimitedLiteral
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getUnlimitedLiteralAccess().getAlternatives()); }
-(rule__UnlimitedLiteral__Alternatives)
-{ after(grammarAccess.getUnlimitedLiteralAccess().getAlternatives()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleModifiersRule
-entryRuleModifiersRule
-:
-{ before(grammarAccess.getModifiersRuleRule()); }
- ruleModifiersRule
-{ after(grammarAccess.getModifiersRuleRule()); }
- EOF
-;
-
-// Rule ModifiersRule
-ruleModifiersRule
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getModifiersRuleAccess().getGroup()); }
-(rule__ModifiersRule__Group__0)
-{ after(grammarAccess.getModifiersRuleAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleModifierSpecification
-entryRuleModifierSpecification
-:
-{ before(grammarAccess.getModifierSpecificationRule()); }
- ruleModifierSpecification
-{ after(grammarAccess.getModifierSpecificationRule()); }
- EOF
-;
-
-// Rule ModifierSpecification
-ruleModifierSpecification
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getModifierSpecificationAccess().getAlternatives()); }
-(rule__ModifierSpecification__Alternatives)
-{ after(grammarAccess.getModifierSpecificationAccess().getAlternatives()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleRedefinesRule
-entryRuleRedefinesRule
-:
-{ before(grammarAccess.getRedefinesRuleRule()); }
- ruleRedefinesRule
-{ after(grammarAccess.getRedefinesRuleRule()); }
- EOF
-;
-
-// Rule RedefinesRule
-ruleRedefinesRule
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getRedefinesRuleAccess().getGroup()); }
-(rule__RedefinesRule__Group__0)
-{ after(grammarAccess.getRedefinesRuleAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleSubsetsRule
-entryRuleSubsetsRule
-:
-{ before(grammarAccess.getSubsetsRuleRule()); }
- ruleSubsetsRule
-{ after(grammarAccess.getSubsetsRuleRule()); }
- EOF
-;
-
-// Rule SubsetsRule
-ruleSubsetsRule
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getSubsetsRuleAccess().getGroup()); }
-(rule__SubsetsRule__Group__0)
-{ after(grammarAccess.getSubsetsRuleAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleDefaultValueRule
-entryRuleDefaultValueRule
-:
-{ before(grammarAccess.getDefaultValueRuleRule()); }
- ruleDefaultValueRule
-{ after(grammarAccess.getDefaultValueRuleRule()); }
- EOF
-;
-
-// Rule DefaultValueRule
-ruleDefaultValueRule
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getDefaultValueRuleAccess().getGroup()); }
-(rule__DefaultValueRule__Group__0)
-{ after(grammarAccess.getDefaultValueRuleAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleValue
-entryRuleValue
-:
-{ before(grammarAccess.getValueRule()); }
- ruleValue
-{ after(grammarAccess.getValueRule()); }
- EOF
-;
-
-// Rule Value
-ruleValue
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getValueAccess().getAlternatives()); }
-(rule__Value__Alternatives)
-{ after(grammarAccess.getValueAccess().getAlternatives()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleIntValue
-entryRuleIntValue
-:
-{ before(grammarAccess.getIntValueRule()); }
- ruleIntValue
-{ after(grammarAccess.getIntValueRule()); }
- EOF
-;
-
-// Rule IntValue
-ruleIntValue
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment()); }
-(rule__IntValue__LiteralIntegerAssignment)
-{ after(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleStringValue
-entryRuleStringValue
-:
-{ before(grammarAccess.getStringValueRule()); }
- ruleStringValue
-{ after(grammarAccess.getStringValueRule()); }
- EOF
-;
-
-// Rule StringValue
-ruleStringValue
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getStringValueAccess().getLiteralStringAssignment()); }
-(rule__StringValue__LiteralStringAssignment)
-{ after(grammarAccess.getStringValueAccess().getLiteralStringAssignment()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleBooleanValue
-entryRuleBooleanValue
-:
-{ before(grammarAccess.getBooleanValueRule()); }
- ruleBooleanValue
-{ after(grammarAccess.getBooleanValueRule()); }
- EOF
-;
-
-// Rule BooleanValue
-ruleBooleanValue
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment()); }
-(rule__BooleanValue__LiteralBooleanAssignment)
-{ after(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleRealValue
-entryRuleRealValue
-:
-{ before(grammarAccess.getRealValueRule()); }
- ruleRealValue
-{ after(grammarAccess.getRealValueRule()); }
- EOF
-;
-
-// Rule RealValue
-ruleRealValue
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getRealValueAccess().getAlternatives()); }
-(rule__RealValue__Alternatives)
-{ after(grammarAccess.getRealValueAccess().getAlternatives()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleNullValue
-entryRuleNullValue
-:
-{ before(grammarAccess.getNullValueRule()); }
- ruleNullValue
-{ after(grammarAccess.getNullValueRule()); }
- EOF
-;
-
-// Rule NullValue
-ruleNullValue
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getNullValueAccess().getGroup()); }
-(rule__NullValue__Group__0)
-{ after(grammarAccess.getNullValueAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleNoValue
-entryRuleNoValue
-:
-{ before(grammarAccess.getNoValueRule()); }
- ruleNoValue
-{ after(grammarAccess.getNoValueRule()); }
- EOF
-;
-
-// Rule NoValue
-ruleNoValue
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getNoValueAccess().getGroup()); }
-(rule__NoValue__Group__0)
-{ after(grammarAccess.getNoValueAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-// Rule VisibilityKind
-ruleVisibilityKind
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getVisibilityKindAccess().getAlternatives()); }
-(rule__VisibilityKind__Alternatives)
-{ after(grammarAccess.getVisibilityKindAccess().getAlternatives()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Rule ModifierKind
-ruleModifierKind
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifierKindAccess().getAlternatives()); }
-(rule__ModifierKind__Alternatives)
-{ after(grammarAccess.getModifierKindAccess().getAlternatives()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Rule BooleanLiterals
-ruleBooleanLiterals
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getBooleanLiteralsAccess().getAlternatives()); }
-(rule__BooleanLiterals__Alternatives)
-{ after(grammarAccess.getBooleanLiteralsAccess().getAlternatives()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-rule__PortRule__Alternatives_3_2
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getTypeAssignment_3_2_0()); }
-(rule__PortRule__TypeAssignment_3_2_0)
-{ after(grammarAccess.getPortRuleAccess().getTypeAssignment_3_2_0()); }
-)
-
- |(
-{ before(grammarAccess.getPortRuleAccess().getTypeUndefinedAssignment_3_2_1()); }
-(rule__PortRule__TypeUndefinedAssignment_3_2_1)
-{ after(grammarAccess.getPortRuleAccess().getTypeUndefinedAssignment_3_2_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__UnlimitedLiteral__Alternatives
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0()); }
- RULE_INT
-{ after(grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0()); }
-)
-
- |(
-{ before(grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1()); }
-
- '*'
-
-{ after(grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifierSpecification__Alternatives
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0()); }
-(rule__ModifierSpecification__ValueAssignment_0)
-{ after(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0()); }
-)
-
- |(
-{ before(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1()); }
-(rule__ModifierSpecification__RedefinesAssignment_1)
-{ after(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1()); }
-)
-
- |(
-{ before(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2()); }
-(rule__ModifierSpecification__SubsetsAssignment_2)
-{ after(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__Value__Alternatives
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getValueAccess().getIntValueParserRuleCall_0()); }
- ruleIntValue
-{ after(grammarAccess.getValueAccess().getIntValueParserRuleCall_0()); }
-)
-
- |(
-{ before(grammarAccess.getValueAccess().getStringValueParserRuleCall_1()); }
- ruleStringValue
-{ after(grammarAccess.getValueAccess().getStringValueParserRuleCall_1()); }
-)
-
- |(
-{ before(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2()); }
- ruleBooleanValue
-{ after(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2()); }
-)
-
- |(
-{ before(grammarAccess.getValueAccess().getRealValueParserRuleCall_3()); }
- ruleRealValue
-{ after(grammarAccess.getValueAccess().getRealValueParserRuleCall_3()); }
-)
-
- |(
-{ before(grammarAccess.getValueAccess().getNullValueParserRuleCall_4()); }
- ruleNullValue
-{ after(grammarAccess.getValueAccess().getNullValueParserRuleCall_4()); }
-)
-
- |(
-{ before(grammarAccess.getValueAccess().getNoValueParserRuleCall_5()); }
- ruleNoValue
-{ after(grammarAccess.getValueAccess().getNoValueParserRuleCall_5()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__Alternatives
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getGroup_0()); }
-(rule__RealValue__Group_0__0)
-{ after(grammarAccess.getRealValueAccess().getGroup_0()); }
-)
-
- |(
-{ before(grammarAccess.getRealValueAccess().getGroup_1()); }
-(rule__RealValue__Group_1__0)
-{ after(grammarAccess.getRealValueAccess().getGroup_1()); }
-)
-
- |(
-{ before(grammarAccess.getRealValueAccess().getGroup_2()); }
-(rule__RealValue__Group_2__0)
-{ after(grammarAccess.getRealValueAccess().getGroup_2()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__VisibilityKind__Alternatives
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0()); }
-( '+'
-)
-{ after(grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0()); }
-)
-
- |(
-{ before(grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1()); }
-( '-'
-)
-{ after(grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1()); }
-)
-
- |(
-{ before(grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2()); }
-( '#'
-)
-{ after(grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2()); }
-)
-
- |(
-{ before(grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3()); }
-( '~'
-)
-{ after(grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifierKind__Alternatives
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0()); }
-( 'readOnly'
-)
-{ after(grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0()); }
-)
-
- |(
-{ before(grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1()); }
-( 'union'
-)
-{ after(grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1()); }
-)
-
- |(
-{ before(grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2()); }
-( 'ordered'
-)
-{ after(grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2()); }
-)
-
- |(
-{ before(grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3()); }
-( 'unique'
-)
-{ after(grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__BooleanLiterals__Alternatives
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0()); }
-( 'true'
-)
-{ after(grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0()); }
-)
-
- |(
-{ before(grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1()); }
-( 'false'
-)
-{ after(grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-rule__PortRule__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__PortRule__Group__0__Impl
- rule__PortRule__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PortRule__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getVisibilityAssignment_0()); }
-(rule__PortRule__VisibilityAssignment_0)?
-{ after(grammarAccess.getPortRuleAccess().getVisibilityAssignment_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__PortRule__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__PortRule__Group__1__Impl
- rule__PortRule__Group__2
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PortRule__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getDerivedAssignment_1()); }
-(rule__PortRule__DerivedAssignment_1)?
-{ after(grammarAccess.getPortRuleAccess().getDerivedAssignment_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__PortRule__Group__2
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__PortRule__Group__2__Impl
- rule__PortRule__Group__3
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PortRule__Group__2__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getNameAssignment_2()); }
-(rule__PortRule__NameAssignment_2)
-{ after(grammarAccess.getPortRuleAccess().getNameAssignment_2()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__PortRule__Group__3
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__PortRule__Group__3__Impl
- rule__PortRule__Group__4
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PortRule__Group__3__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getGroup_3()); }
-(rule__PortRule__Group_3__0)?
-{ after(grammarAccess.getPortRuleAccess().getGroup_3()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__PortRule__Group__4
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__PortRule__Group__4__Impl
- rule__PortRule__Group__5
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PortRule__Group__4__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getMultiplicityAssignment_4()); }
-(rule__PortRule__MultiplicityAssignment_4)?
-{ after(grammarAccess.getPortRuleAccess().getMultiplicityAssignment_4()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__PortRule__Group__5
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__PortRule__Group__5__Impl
- rule__PortRule__Group__6
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PortRule__Group__5__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getModifiersAssignment_5()); }
-(rule__PortRule__ModifiersAssignment_5)?
-{ after(grammarAccess.getPortRuleAccess().getModifiersAssignment_5()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__PortRule__Group__6
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__PortRule__Group__6__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PortRule__Group__6__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getDefaultAssignment_6()); }
-(rule__PortRule__DefaultAssignment_6)?
-{ after(grammarAccess.getPortRuleAccess().getDefaultAssignment_6()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-rule__PortRule__Group_3__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__PortRule__Group_3__0__Impl
- rule__PortRule__Group_3__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PortRule__Group_3__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getColonKeyword_3_0()); }
-
- ':'
-
-{ after(grammarAccess.getPortRuleAccess().getColonKeyword_3_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__PortRule__Group_3__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__PortRule__Group_3__1__Impl
- rule__PortRule__Group_3__2
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PortRule__Group_3__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getConjugatedAssignment_3_1()); }
-(rule__PortRule__ConjugatedAssignment_3_1)?
-{ after(grammarAccess.getPortRuleAccess().getConjugatedAssignment_3_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__PortRule__Group_3__2
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__PortRule__Group_3__2__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PortRule__Group_3__2__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getAlternatives_3_2()); }
-(rule__PortRule__Alternatives_3_2)
-{ after(grammarAccess.getPortRuleAccess().getAlternatives_3_2()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-
-
-rule__TypeRule__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__TypeRule__Group__0__Impl
- rule__TypeRule__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__TypeRule__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getTypeRuleAccess().getPathAssignment_0()); }
-(rule__TypeRule__PathAssignment_0)?
-{ after(grammarAccess.getTypeRuleAccess().getPathAssignment_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__TypeRule__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__TypeRule__Group__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__TypeRule__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getTypeRuleAccess().getTypeAssignment_1()); }
-(rule__TypeRule__TypeAssignment_1)
-{ after(grammarAccess.getTypeRuleAccess().getTypeAssignment_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__QualifiedName__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__QualifiedName__Group__0__Impl
- rule__QualifiedName__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__QualifiedName__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getQualifiedNameAccess().getPathAssignment_0()); }
-(rule__QualifiedName__PathAssignment_0)
-{ after(grammarAccess.getQualifiedNameAccess().getPathAssignment_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__QualifiedName__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__QualifiedName__Group__1__Impl
- rule__QualifiedName__Group__2
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__QualifiedName__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1()); }
-
- '::'
-
-{ after(grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__QualifiedName__Group__2
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__QualifiedName__Group__2__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__QualifiedName__Group__2__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2()); }
-(rule__QualifiedName__RemainingAssignment_2)?
-{ after(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-
-
-rule__MultiplicityRule__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__MultiplicityRule__Group__0__Impl
- rule__MultiplicityRule__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__MultiplicityRule__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0()); }
-
- '['
-
-{ after(grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__MultiplicityRule__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__MultiplicityRule__Group__1__Impl
- rule__MultiplicityRule__Group__2
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__MultiplicityRule__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1()); }
-(rule__MultiplicityRule__BoundsAssignment_1)
-{ after(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__MultiplicityRule__Group__2
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__MultiplicityRule__Group__2__Impl
- rule__MultiplicityRule__Group__3
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__MultiplicityRule__Group__2__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getMultiplicityRuleAccess().getGroup_2()); }
-(rule__MultiplicityRule__Group_2__0)?
-{ after(grammarAccess.getMultiplicityRuleAccess().getGroup_2()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__MultiplicityRule__Group__3
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__MultiplicityRule__Group__3__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__MultiplicityRule__Group__3__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3()); }
-
- ']'
-
-{ after(grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-
-
-
-
-rule__MultiplicityRule__Group_2__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__MultiplicityRule__Group_2__0__Impl
- rule__MultiplicityRule__Group_2__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__MultiplicityRule__Group_2__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0()); }
-
- '..'
-
-{ after(grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__MultiplicityRule__Group_2__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__MultiplicityRule__Group_2__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__MultiplicityRule__Group_2__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2_1()); }
-(rule__MultiplicityRule__BoundsAssignment_2_1)
-{ after(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__ModifiersRule__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__ModifiersRule__Group__0__Impl
- rule__ModifiersRule__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0()); }
-(
-
-)
-{ after(grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__ModifiersRule__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__ModifiersRule__Group__1__Impl
- rule__ModifiersRule__Group__2
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1()); }
-
- '{'
-
-{ after(grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__ModifiersRule__Group__2
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__ModifiersRule__Group__2__Impl
- rule__ModifiersRule__Group__3
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__Group__2__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getGroup_2()); }
-(rule__ModifiersRule__Group_2__0)?
-{ after(grammarAccess.getModifiersRuleAccess().getGroup_2()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__ModifiersRule__Group__3
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__ModifiersRule__Group__3__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__Group__3__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3()); }
-
- '}'
-
-{ after(grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-
-
-
-
-rule__ModifiersRule__Group_2__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__ModifiersRule__Group_2__0__Impl
- rule__ModifiersRule__Group_2__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__Group_2__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0()); }
-(rule__ModifiersRule__ValuesAssignment_2_0)
-{ after(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__ModifiersRule__Group_2__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__ModifiersRule__Group_2__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__Group_2__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getGroup_2_1()); }
-(rule__ModifiersRule__Group_2_1__0)*
-{ after(grammarAccess.getModifiersRuleAccess().getGroup_2_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__ModifiersRule__Group_2_1__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__ModifiersRule__Group_2_1__0__Impl
- rule__ModifiersRule__Group_2_1__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__Group_2_1__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0()); }
-
- ','
-
-{ after(grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__ModifiersRule__Group_2_1__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__ModifiersRule__Group_2_1__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__Group_2_1__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1()); }
-(rule__ModifiersRule__ValuesAssignment_2_1_1)
-{ after(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__RedefinesRule__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__RedefinesRule__Group__0__Impl
- rule__RedefinesRule__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RedefinesRule__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0()); }
-
- 'redefines'
-
-{ after(grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__RedefinesRule__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__RedefinesRule__Group__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RedefinesRule__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRedefinesRuleAccess().getPortAssignment_1()); }
-(rule__RedefinesRule__PortAssignment_1)
-{ after(grammarAccess.getRedefinesRuleAccess().getPortAssignment_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__SubsetsRule__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__SubsetsRule__Group__0__Impl
- rule__SubsetsRule__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__SubsetsRule__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0()); }
-
- 'subsets'
-
-{ after(grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__SubsetsRule__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__SubsetsRule__Group__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__SubsetsRule__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getSubsetsRuleAccess().getPortAssignment_1()); }
-(rule__SubsetsRule__PortAssignment_1)
-{ after(grammarAccess.getSubsetsRuleAccess().getPortAssignment_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__DefaultValueRule__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__DefaultValueRule__Group__0__Impl
- rule__DefaultValueRule__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__DefaultValueRule__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0()); }
-
- '='
-
-{ after(grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__DefaultValueRule__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__DefaultValueRule__Group__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__DefaultValueRule__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1()); }
-(rule__DefaultValueRule__DefaultAssignment_1)
-{ after(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__RealValue__Group_0__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__RealValue__Group_0__0__Impl
- rule__RealValue__Group_0__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__Group_0__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0()); }
-(rule__RealValue__IntegerAssignment_0_0)
-{ after(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__RealValue__Group_0__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__RealValue__Group_0__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__Group_0__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getFullStopKeyword_0_1()); }
-
- '.'
-
-{ after(grammarAccess.getRealValueAccess().getFullStopKeyword_0_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__RealValue__Group_1__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__RealValue__Group_1__0__Impl
- rule__RealValue__Group_1__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__Group_1__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getFullStopKeyword_1_0()); }
-
- '.'
-
-{ after(grammarAccess.getRealValueAccess().getFullStopKeyword_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__RealValue__Group_1__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__RealValue__Group_1__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__Group_1__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getFractionAssignment_1_1()); }
-(rule__RealValue__FractionAssignment_1_1)
-{ after(grammarAccess.getRealValueAccess().getFractionAssignment_1_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__RealValue__Group_2__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__RealValue__Group_2__0__Impl
- rule__RealValue__Group_2__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__Group_2__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0()); }
-(rule__RealValue__IntegerAssignment_2_0)
-{ after(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__RealValue__Group_2__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__RealValue__Group_2__1__Impl
- rule__RealValue__Group_2__2
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__Group_2__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getFullStopKeyword_2_1()); }
-
- '.'
-
-{ after(grammarAccess.getRealValueAccess().getFullStopKeyword_2_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__RealValue__Group_2__2
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__RealValue__Group_2__2__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__Group_2__2__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getFractionAssignment_2_2()); }
-(rule__RealValue__FractionAssignment_2_2)
-{ after(grammarAccess.getRealValueAccess().getFractionAssignment_2_2()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-
-
-rule__NullValue__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__NullValue__Group__0__Impl
- rule__NullValue__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__NullValue__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getNullValueAccess().getNullValueAction_0()); }
-(
-
-)
-{ after(grammarAccess.getNullValueAccess().getNullValueAction_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__NullValue__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__NullValue__Group__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__NullValue__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getNullValueAccess().getNullKeyword_1()); }
-
- 'null'
-
-{ after(grammarAccess.getNullValueAccess().getNullKeyword_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__NoValue__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__NoValue__Group__0__Impl
- rule__NoValue__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__NoValue__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getNoValueAccess().getNoValueAction_0()); }
-(
-
-)
-{ after(grammarAccess.getNoValueAccess().getNoValueAction_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__NoValue__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__NoValue__Group__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__NoValue__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getNoValueAccess().getNoneKeyword_1()); }
-
- 'none'
-
-{ after(grammarAccess.getNoValueAccess().getNoneKeyword_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-
-rule__PortRule__VisibilityAssignment_0
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0()); }
- ruleVisibilityRule{ after(grammarAccess.getPortRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PortRule__DerivedAssignment_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0()); }
-(
-{ before(grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0()); }
-
- '/'
-
-{ after(grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0()); }
-)
-
-{ after(grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PortRule__NameAssignment_2
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getNameIDTerminalRuleCall_2_0()); }
- RULE_ID{ after(grammarAccess.getPortRuleAccess().getNameIDTerminalRuleCall_2_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PortRule__ConjugatedAssignment_3_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0()); }
-(
-{ before(grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0()); }
-
- '~'
-
-{ after(grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0()); }
-)
-
-{ after(grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PortRule__TypeAssignment_3_2_0
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getTypeTypeRuleParserRuleCall_3_2_0_0()); }
- ruleTypeRule{ after(grammarAccess.getPortRuleAccess().getTypeTypeRuleParserRuleCall_3_2_0_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PortRule__TypeUndefinedAssignment_3_2_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0()); }
-(
-{ before(grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0()); }
-
- '<Undefined>'
-
-{ after(grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0()); }
-)
-
-{ after(grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PortRule__MultiplicityAssignment_4
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0()); }
- ruleMultiplicityRule{ after(grammarAccess.getPortRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PortRule__ModifiersAssignment_5
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0()); }
- ruleModifiersRule{ after(grammarAccess.getPortRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PortRule__DefaultAssignment_6
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPortRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0()); }
- ruleDefaultValueRule{ after(grammarAccess.getPortRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__VisibilityRule__VisibilityAssignment
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0()); }
- ruleVisibilityKind{ after(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__TypeRule__PathAssignment_0
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0()); }
- ruleQualifiedName{ after(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__TypeRule__TypeAssignment_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0()); }
-(
-{ before(grammarAccess.getTypeRuleAccess().getTypeClassifierIDTerminalRuleCall_1_0_1()); }
- RULE_ID{ after(grammarAccess.getTypeRuleAccess().getTypeClassifierIDTerminalRuleCall_1_0_1()); }
-)
-{ after(grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__QualifiedName__PathAssignment_0
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0()); }
-(
-{ before(grammarAccess.getQualifiedNameAccess().getPathNamespaceIDTerminalRuleCall_0_0_1()); }
- RULE_ID{ after(grammarAccess.getQualifiedNameAccess().getPathNamespaceIDTerminalRuleCall_0_0_1()); }
-)
-{ after(grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__QualifiedName__RemainingAssignment_2
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0()); }
- ruleQualifiedName{ after(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__MultiplicityRule__BoundsAssignment_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0()); }
- ruleBoundSpecification{ after(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__MultiplicityRule__BoundsAssignment_2_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0()); }
- ruleBoundSpecification{ after(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__BoundSpecification__ValueAssignment
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0()); }
- ruleUnlimitedLiteral{ after(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__ValuesAssignment_2_0
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0()); }
- ruleModifierSpecification{ after(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__ValuesAssignment_2_1_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0()); }
- ruleModifierSpecification{ after(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifierSpecification__ValueAssignment_0
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0()); }
- ruleModifierKind{ after(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifierSpecification__RedefinesAssignment_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0()); }
- ruleRedefinesRule{ after(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifierSpecification__SubsetsAssignment_2
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0()); }
- ruleSubsetsRule{ after(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RedefinesRule__PortAssignment_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRedefinesRuleAccess().getPortPortCrossReference_1_0()); }
-(
-{ before(grammarAccess.getRedefinesRuleAccess().getPortPortIDTerminalRuleCall_1_0_1()); }
- RULE_ID{ after(grammarAccess.getRedefinesRuleAccess().getPortPortIDTerminalRuleCall_1_0_1()); }
-)
-{ after(grammarAccess.getRedefinesRuleAccess().getPortPortCrossReference_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__SubsetsRule__PortAssignment_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getSubsetsRuleAccess().getPortPortCrossReference_1_0()); }
-(
-{ before(grammarAccess.getSubsetsRuleAccess().getPortPortIDTerminalRuleCall_1_0_1()); }
- RULE_ID{ after(grammarAccess.getSubsetsRuleAccess().getPortPortIDTerminalRuleCall_1_0_1()); }
-)
-{ after(grammarAccess.getSubsetsRuleAccess().getPortPortCrossReference_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__DefaultValueRule__DefaultAssignment_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0()); }
- ruleValue{ after(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__IntValue__LiteralIntegerAssignment
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0()); }
- RULE_INT{ after(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__StringValue__LiteralStringAssignment
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0()); }
- RULE_STRING{ after(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__BooleanValue__LiteralBooleanAssignment
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0()); }
- ruleBooleanLiterals{ after(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__IntegerAssignment_0_0
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0()); }
- RULE_INT{ after(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__FractionAssignment_1_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0()); }
- RULE_INT{ after(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__IntegerAssignment_2_0
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0()); }
- RULE_INT{ after(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__FractionAssignment_2_2
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0()); }
- RULE_INT{ after(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-RULE_ID : (('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*|'\'' ( options {greedy=false;} : . )*'\'');
-
-RULE_STRING : '"' ('\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')|~(('\\'|'"')))* '"';
-
-RULE_ML_COMMENT : '/*' ~('@') ( options {greedy=false;} : . )*'*/';
-
-RULE_SL_COMMENT : '//' ~(('\n'|'\r'|'@'))* ('\r'? '\n')?;
-
-RULE_INT : ('0'..'9')+;
-
-RULE_INTEGER_VALUE : (('0'|'1'..'9' ('_'? '0'..'9')*)|('0b'|'0B') '0'..'1' ('_'? '0'..'1')*|('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F') ('_'? ('0'..'9'|'a'..'f'|'A'..'F'))*|'0' '_'? '0'..'7' ('_'? '0'..'7')*);
-
-RULE_WS : (' '|'\t'|'\r'|'\n')+;
-
-RULE_ANY_OTHER : .;
-
-
+/*
+ * generated by Xtext
+ */
+grammar InternalUmlPort;
+
+options {
+ superClass=AbstractInternalContentAssistParser;
+
+}
+
+@lexer::header {
+package org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal;
+
+// Hack: Use our own Lexer superclass by means of import.
+// Currently there is no other way to specify the superclass for the lexer.
+import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer;
+}
+
+@parser::header {
+package org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal;
+
+import java.io.InputStream;
+import org.eclipse.xtext.*;
+import org.eclipse.xtext.parser.*;
+import org.eclipse.xtext.parser.impl.*;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
+import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser;
+import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.DFA;
+import org.eclipse.papyrus.uml.textedit.port.xtext.services.UmlPortGrammarAccess;
+
+}
+
+@parser::members {
+
+ private UmlPortGrammarAccess grammarAccess;
+
+ public void setGrammarAccess(UmlPortGrammarAccess grammarAccess) {
+ this.grammarAccess = grammarAccess;
+ }
+
+ @Override
+ protected Grammar getGrammar() {
+ return grammarAccess.getGrammar();
+ }
+
+ @Override
+ protected String getValueForTokenName(String tokenName) {
+ return tokenName;
+ }
+
+}
+
+
+
+
+// Entry rule entryRulePortRule
+entryRulePortRule
+:
+{ before(grammarAccess.getPortRuleRule()); }
+ rulePortRule
+{ after(grammarAccess.getPortRuleRule()); }
+ EOF
+;
+
+// Rule PortRule
+rulePortRule
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getPortRuleAccess().getGroup()); }
+(rule__PortRule__Group__0)
+{ after(grammarAccess.getPortRuleAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleVisibilityRule
+entryRuleVisibilityRule
+:
+{ before(grammarAccess.getVisibilityRuleRule()); }
+ ruleVisibilityRule
+{ after(grammarAccess.getVisibilityRuleRule()); }
+ EOF
+;
+
+// Rule VisibilityRule
+ruleVisibilityRule
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment()); }
+(rule__VisibilityRule__VisibilityAssignment)
+{ after(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleTypeRule
+entryRuleTypeRule
+:
+{ before(grammarAccess.getTypeRuleRule()); }
+ ruleTypeRule
+{ after(grammarAccess.getTypeRuleRule()); }
+ EOF
+;
+
+// Rule TypeRule
+ruleTypeRule
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getTypeRuleAccess().getGroup()); }
+(rule__TypeRule__Group__0)
+{ after(grammarAccess.getTypeRuleAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleQualifiedName
+entryRuleQualifiedName
+:
+{ before(grammarAccess.getQualifiedNameRule()); }
+ ruleQualifiedName
+{ after(grammarAccess.getQualifiedNameRule()); }
+ EOF
+;
+
+// Rule QualifiedName
+ruleQualifiedName
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getQualifiedNameAccess().getGroup()); }
+(rule__QualifiedName__Group__0)
+{ after(grammarAccess.getQualifiedNameAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleMultiplicityRule
+entryRuleMultiplicityRule
+:
+{ before(grammarAccess.getMultiplicityRuleRule()); }
+ ruleMultiplicityRule
+{ after(grammarAccess.getMultiplicityRuleRule()); }
+ EOF
+;
+
+// Rule MultiplicityRule
+ruleMultiplicityRule
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getMultiplicityRuleAccess().getGroup()); }
+(rule__MultiplicityRule__Group__0)
+{ after(grammarAccess.getMultiplicityRuleAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleBoundSpecification
+entryRuleBoundSpecification
+:
+{ before(grammarAccess.getBoundSpecificationRule()); }
+ ruleBoundSpecification
+{ after(grammarAccess.getBoundSpecificationRule()); }
+ EOF
+;
+
+// Rule BoundSpecification
+ruleBoundSpecification
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getBoundSpecificationAccess().getValueAssignment()); }
+(rule__BoundSpecification__ValueAssignment)
+{ after(grammarAccess.getBoundSpecificationAccess().getValueAssignment()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleUnlimitedLiteral
+entryRuleUnlimitedLiteral
+:
+{ before(grammarAccess.getUnlimitedLiteralRule()); }
+ ruleUnlimitedLiteral
+{ after(grammarAccess.getUnlimitedLiteralRule()); }
+ EOF
+;
+
+// Rule UnlimitedLiteral
+ruleUnlimitedLiteral
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getUnlimitedLiteralAccess().getAlternatives()); }
+(rule__UnlimitedLiteral__Alternatives)
+{ after(grammarAccess.getUnlimitedLiteralAccess().getAlternatives()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleStringLiteral
+entryRuleStringLiteral
+:
+{ before(grammarAccess.getStringLiteralRule()); }
+ ruleStringLiteral
+{ after(grammarAccess.getStringLiteralRule()); }
+ EOF
+;
+
+// Rule StringLiteral
+ruleStringLiteral
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getStringLiteralAccess().getSTRINGTerminalRuleCall()); }
+ RULE_STRING
+{ after(grammarAccess.getStringLiteralAccess().getSTRINGTerminalRuleCall()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleModifiersRule
+entryRuleModifiersRule
+:
+{ before(grammarAccess.getModifiersRuleRule()); }
+ ruleModifiersRule
+{ after(grammarAccess.getModifiersRuleRule()); }
+ EOF
+;
+
+// Rule ModifiersRule
+ruleModifiersRule
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getModifiersRuleAccess().getGroup()); }
+(rule__ModifiersRule__Group__0)
+{ after(grammarAccess.getModifiersRuleAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleModifierSpecification
+entryRuleModifierSpecification
+:
+{ before(grammarAccess.getModifierSpecificationRule()); }
+ ruleModifierSpecification
+{ after(grammarAccess.getModifierSpecificationRule()); }
+ EOF
+;
+
+// Rule ModifierSpecification
+ruleModifierSpecification
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getModifierSpecificationAccess().getAlternatives()); }
+(rule__ModifierSpecification__Alternatives)
+{ after(grammarAccess.getModifierSpecificationAccess().getAlternatives()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleRedefinesRule
+entryRuleRedefinesRule
+:
+{ before(grammarAccess.getRedefinesRuleRule()); }
+ ruleRedefinesRule
+{ after(grammarAccess.getRedefinesRuleRule()); }
+ EOF
+;
+
+// Rule RedefinesRule
+ruleRedefinesRule
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getRedefinesRuleAccess().getGroup()); }
+(rule__RedefinesRule__Group__0)
+{ after(grammarAccess.getRedefinesRuleAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleSubsetsRule
+entryRuleSubsetsRule
+:
+{ before(grammarAccess.getSubsetsRuleRule()); }
+ ruleSubsetsRule
+{ after(grammarAccess.getSubsetsRuleRule()); }
+ EOF
+;
+
+// Rule SubsetsRule
+ruleSubsetsRule
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getSubsetsRuleAccess().getGroup()); }
+(rule__SubsetsRule__Group__0)
+{ after(grammarAccess.getSubsetsRuleAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleDefaultValueRule
+entryRuleDefaultValueRule
+:
+{ before(grammarAccess.getDefaultValueRuleRule()); }
+ ruleDefaultValueRule
+{ after(grammarAccess.getDefaultValueRuleRule()); }
+ EOF
+;
+
+// Rule DefaultValueRule
+ruleDefaultValueRule
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getDefaultValueRuleAccess().getGroup()); }
+(rule__DefaultValueRule__Group__0)
+{ after(grammarAccess.getDefaultValueRuleAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleValue
+entryRuleValue
+:
+{ before(grammarAccess.getValueRule()); }
+ ruleValue
+{ after(grammarAccess.getValueRule()); }
+ EOF
+;
+
+// Rule Value
+ruleValue
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getValueAccess().getAlternatives()); }
+(rule__Value__Alternatives)
+{ after(grammarAccess.getValueAccess().getAlternatives()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleIntValue
+entryRuleIntValue
+:
+{ before(grammarAccess.getIntValueRule()); }
+ ruleIntValue
+{ after(grammarAccess.getIntValueRule()); }
+ EOF
+;
+
+// Rule IntValue
+ruleIntValue
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment()); }
+(rule__IntValue__LiteralIntegerAssignment)
+{ after(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleStringValue
+entryRuleStringValue
+:
+{ before(grammarAccess.getStringValueRule()); }
+ ruleStringValue
+{ after(grammarAccess.getStringValueRule()); }
+ EOF
+;
+
+// Rule StringValue
+ruleStringValue
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getStringValueAccess().getLiteralStringAssignment()); }
+(rule__StringValue__LiteralStringAssignment)
+{ after(grammarAccess.getStringValueAccess().getLiteralStringAssignment()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleBooleanValue
+entryRuleBooleanValue
+:
+{ before(grammarAccess.getBooleanValueRule()); }
+ ruleBooleanValue
+{ after(grammarAccess.getBooleanValueRule()); }
+ EOF
+;
+
+// Rule BooleanValue
+ruleBooleanValue
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment()); }
+(rule__BooleanValue__LiteralBooleanAssignment)
+{ after(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleRealValue
+entryRuleRealValue
+:
+{ before(grammarAccess.getRealValueRule()); }
+ ruleRealValue
+{ after(grammarAccess.getRealValueRule()); }
+ EOF
+;
+
+// Rule RealValue
+ruleRealValue
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getRealValueAccess().getAlternatives()); }
+(rule__RealValue__Alternatives)
+{ after(grammarAccess.getRealValueAccess().getAlternatives()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleNullValue
+entryRuleNullValue
+:
+{ before(grammarAccess.getNullValueRule()); }
+ ruleNullValue
+{ after(grammarAccess.getNullValueRule()); }
+ EOF
+;
+
+// Rule NullValue
+ruleNullValue
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getNullValueAccess().getGroup()); }
+(rule__NullValue__Group__0)
+{ after(grammarAccess.getNullValueAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleNoValue
+entryRuleNoValue
+:
+{ before(grammarAccess.getNoValueRule()); }
+ ruleNoValue
+{ after(grammarAccess.getNoValueRule()); }
+ EOF
+;
+
+// Rule NoValue
+ruleNoValue
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getNoValueAccess().getGroup()); }
+(rule__NoValue__Group__0)
+{ after(grammarAccess.getNoValueAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+// Rule VisibilityKind
+ruleVisibilityKind
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getVisibilityKindAccess().getAlternatives()); }
+(rule__VisibilityKind__Alternatives)
+{ after(grammarAccess.getVisibilityKindAccess().getAlternatives()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Rule ModifierKind
+ruleModifierKind
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifierKindAccess().getAlternatives()); }
+(rule__ModifierKind__Alternatives)
+{ after(grammarAccess.getModifierKindAccess().getAlternatives()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Rule BooleanLiterals
+ruleBooleanLiterals
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getBooleanLiteralsAccess().getAlternatives()); }
+(rule__BooleanLiterals__Alternatives)
+{ after(grammarAccess.getBooleanLiteralsAccess().getAlternatives()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+rule__PortRule__Alternatives_3_2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getTypeAssignment_3_2_0()); }
+(rule__PortRule__TypeAssignment_3_2_0)
+{ after(grammarAccess.getPortRuleAccess().getTypeAssignment_3_2_0()); }
+)
+
+ |(
+{ before(grammarAccess.getPortRuleAccess().getTypeUndefinedAssignment_3_2_1()); }
+(rule__PortRule__TypeUndefinedAssignment_3_2_1)
+{ after(grammarAccess.getPortRuleAccess().getTypeUndefinedAssignment_3_2_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__BoundSpecification__ValueAlternatives_0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0_0()); }
+ ruleUnlimitedLiteral
+{ after(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0_0()); }
+)
+
+ |(
+{ before(grammarAccess.getBoundSpecificationAccess().getValueStringLiteralParserRuleCall_0_1()); }
+ ruleStringLiteral
+{ after(grammarAccess.getBoundSpecificationAccess().getValueStringLiteralParserRuleCall_0_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__UnlimitedLiteral__Alternatives
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0()); }
+ RULE_INT
+{ after(grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0()); }
+)
+
+ |(
+{ before(grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1()); }
+
+ '*'
+
+{ after(grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifierSpecification__Alternatives
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0()); }
+(rule__ModifierSpecification__ValueAssignment_0)
+{ after(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0()); }
+)
+
+ |(
+{ before(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1()); }
+(rule__ModifierSpecification__RedefinesAssignment_1)
+{ after(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1()); }
+)
+
+ |(
+{ before(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2()); }
+(rule__ModifierSpecification__SubsetsAssignment_2)
+{ after(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__Value__Alternatives
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getValueAccess().getIntValueParserRuleCall_0()); }
+ ruleIntValue
+{ after(grammarAccess.getValueAccess().getIntValueParserRuleCall_0()); }
+)
+
+ |(
+{ before(grammarAccess.getValueAccess().getStringValueParserRuleCall_1()); }
+ ruleStringValue
+{ after(grammarAccess.getValueAccess().getStringValueParserRuleCall_1()); }
+)
+
+ |(
+{ before(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2()); }
+ ruleBooleanValue
+{ after(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2()); }
+)
+
+ |(
+{ before(grammarAccess.getValueAccess().getRealValueParserRuleCall_3()); }
+ ruleRealValue
+{ after(grammarAccess.getValueAccess().getRealValueParserRuleCall_3()); }
+)
+
+ |(
+{ before(grammarAccess.getValueAccess().getNullValueParserRuleCall_4()); }
+ ruleNullValue
+{ after(grammarAccess.getValueAccess().getNullValueParserRuleCall_4()); }
+)
+
+ |(
+{ before(grammarAccess.getValueAccess().getNoValueParserRuleCall_5()); }
+ ruleNoValue
+{ after(grammarAccess.getValueAccess().getNoValueParserRuleCall_5()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__Alternatives
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getGroup_0()); }
+(rule__RealValue__Group_0__0)
+{ after(grammarAccess.getRealValueAccess().getGroup_0()); }
+)
+
+ |(
+{ before(grammarAccess.getRealValueAccess().getGroup_1()); }
+(rule__RealValue__Group_1__0)
+{ after(grammarAccess.getRealValueAccess().getGroup_1()); }
+)
+
+ |(
+{ before(grammarAccess.getRealValueAccess().getGroup_2()); }
+(rule__RealValue__Group_2__0)
+{ after(grammarAccess.getRealValueAccess().getGroup_2()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__VisibilityKind__Alternatives
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0()); }
+( '+'
+)
+{ after(grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0()); }
+)
+
+ |(
+{ before(grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1()); }
+( '-'
+)
+{ after(grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1()); }
+)
+
+ |(
+{ before(grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2()); }
+( '#'
+)
+{ after(grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2()); }
+)
+
+ |(
+{ before(grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3()); }
+( '~'
+)
+{ after(grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifierKind__Alternatives
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0()); }
+( 'readOnly'
+)
+{ after(grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0()); }
+)
+
+ |(
+{ before(grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1()); }
+( 'union'
+)
+{ after(grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1()); }
+)
+
+ |(
+{ before(grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2()); }
+( 'ordered'
+)
+{ after(grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2()); }
+)
+
+ |(
+{ before(grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3()); }
+( 'unique'
+)
+{ after(grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__BooleanLiterals__Alternatives
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0()); }
+( 'true'
+)
+{ after(grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0()); }
+)
+
+ |(
+{ before(grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1()); }
+( 'false'
+)
+{ after(grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+rule__PortRule__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__PortRule__Group__0__Impl
+ rule__PortRule__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PortRule__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getVisibilityAssignment_0()); }
+(rule__PortRule__VisibilityAssignment_0)?
+{ after(grammarAccess.getPortRuleAccess().getVisibilityAssignment_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__PortRule__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__PortRule__Group__1__Impl
+ rule__PortRule__Group__2
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PortRule__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getDerivedAssignment_1()); }
+(rule__PortRule__DerivedAssignment_1)?
+{ after(grammarAccess.getPortRuleAccess().getDerivedAssignment_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__PortRule__Group__2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__PortRule__Group__2__Impl
+ rule__PortRule__Group__3
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PortRule__Group__2__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getNameAssignment_2()); }
+(rule__PortRule__NameAssignment_2)
+{ after(grammarAccess.getPortRuleAccess().getNameAssignment_2()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__PortRule__Group__3
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__PortRule__Group__3__Impl
+ rule__PortRule__Group__4
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PortRule__Group__3__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getGroup_3()); }
+(rule__PortRule__Group_3__0)?
+{ after(grammarAccess.getPortRuleAccess().getGroup_3()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__PortRule__Group__4
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__PortRule__Group__4__Impl
+ rule__PortRule__Group__5
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PortRule__Group__4__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getMultiplicityAssignment_4()); }
+(rule__PortRule__MultiplicityAssignment_4)?
+{ after(grammarAccess.getPortRuleAccess().getMultiplicityAssignment_4()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__PortRule__Group__5
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__PortRule__Group__5__Impl
+ rule__PortRule__Group__6
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PortRule__Group__5__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getModifiersAssignment_5()); }
+(rule__PortRule__ModifiersAssignment_5)?
+{ after(grammarAccess.getPortRuleAccess().getModifiersAssignment_5()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__PortRule__Group__6
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__PortRule__Group__6__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PortRule__Group__6__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getDefaultAssignment_6()); }
+(rule__PortRule__DefaultAssignment_6)?
+{ after(grammarAccess.getPortRuleAccess().getDefaultAssignment_6()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+rule__PortRule__Group_3__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__PortRule__Group_3__0__Impl
+ rule__PortRule__Group_3__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PortRule__Group_3__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getColonKeyword_3_0()); }
+
+ ':'
+
+{ after(grammarAccess.getPortRuleAccess().getColonKeyword_3_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__PortRule__Group_3__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__PortRule__Group_3__1__Impl
+ rule__PortRule__Group_3__2
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PortRule__Group_3__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getConjugatedAssignment_3_1()); }
+(rule__PortRule__ConjugatedAssignment_3_1)?
+{ after(grammarAccess.getPortRuleAccess().getConjugatedAssignment_3_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__PortRule__Group_3__2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__PortRule__Group_3__2__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PortRule__Group_3__2__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getAlternatives_3_2()); }
+(rule__PortRule__Alternatives_3_2)
+{ after(grammarAccess.getPortRuleAccess().getAlternatives_3_2()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+
+
+rule__TypeRule__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__TypeRule__Group__0__Impl
+ rule__TypeRule__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__TypeRule__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getTypeRuleAccess().getPathAssignment_0()); }
+(rule__TypeRule__PathAssignment_0)?
+{ after(grammarAccess.getTypeRuleAccess().getPathAssignment_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__TypeRule__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__TypeRule__Group__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__TypeRule__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getTypeRuleAccess().getTypeAssignment_1()); }
+(rule__TypeRule__TypeAssignment_1)
+{ after(grammarAccess.getTypeRuleAccess().getTypeAssignment_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__QualifiedName__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__QualifiedName__Group__0__Impl
+ rule__QualifiedName__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__QualifiedName__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getQualifiedNameAccess().getPathAssignment_0()); }
+(rule__QualifiedName__PathAssignment_0)
+{ after(grammarAccess.getQualifiedNameAccess().getPathAssignment_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__QualifiedName__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__QualifiedName__Group__1__Impl
+ rule__QualifiedName__Group__2
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__QualifiedName__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1()); }
+
+ '::'
+
+{ after(grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__QualifiedName__Group__2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__QualifiedName__Group__2__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__QualifiedName__Group__2__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2()); }
+(rule__QualifiedName__RemainingAssignment_2)?
+{ after(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+
+
+rule__MultiplicityRule__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__MultiplicityRule__Group__0__Impl
+ rule__MultiplicityRule__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__MultiplicityRule__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0()); }
+
+ '['
+
+{ after(grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__MultiplicityRule__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__MultiplicityRule__Group__1__Impl
+ rule__MultiplicityRule__Group__2
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__MultiplicityRule__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getMultiplicityRuleAccess().getGroup_1()); }
+(rule__MultiplicityRule__Group_1__0)?
+{ after(grammarAccess.getMultiplicityRuleAccess().getGroup_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__MultiplicityRule__Group__2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__MultiplicityRule__Group__2__Impl
+ rule__MultiplicityRule__Group__3
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__MultiplicityRule__Group__2__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2()); }
+(rule__MultiplicityRule__BoundsAssignment_2)
+{ after(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__MultiplicityRule__Group__3
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__MultiplicityRule__Group__3__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__MultiplicityRule__Group__3__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3()); }
+
+ ']'
+
+{ after(grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+
+
+
+
+rule__MultiplicityRule__Group_1__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__MultiplicityRule__Group_1__0__Impl
+ rule__MultiplicityRule__Group_1__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__MultiplicityRule__Group_1__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1_0()); }
+(rule__MultiplicityRule__BoundsAssignment_1_0)
+{ after(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__MultiplicityRule__Group_1__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__MultiplicityRule__Group_1__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__MultiplicityRule__Group_1__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_1_1()); }
+
+ '..'
+
+{ after(grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_1_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__ModifiersRule__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__ModifiersRule__Group__0__Impl
+ rule__ModifiersRule__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0()); }
+(
+
+)
+{ after(grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__ModifiersRule__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__ModifiersRule__Group__1__Impl
+ rule__ModifiersRule__Group__2
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1()); }
+
+ '{'
+
+{ after(grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__ModifiersRule__Group__2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__ModifiersRule__Group__2__Impl
+ rule__ModifiersRule__Group__3
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__Group__2__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getGroup_2()); }
+(rule__ModifiersRule__Group_2__0)?
+{ after(grammarAccess.getModifiersRuleAccess().getGroup_2()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__ModifiersRule__Group__3
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__ModifiersRule__Group__3__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__Group__3__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3()); }
+
+ '}'
+
+{ after(grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+
+
+
+
+rule__ModifiersRule__Group_2__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__ModifiersRule__Group_2__0__Impl
+ rule__ModifiersRule__Group_2__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__Group_2__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0()); }
+(rule__ModifiersRule__ValuesAssignment_2_0)
+{ after(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__ModifiersRule__Group_2__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__ModifiersRule__Group_2__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__Group_2__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getGroup_2_1()); }
+(rule__ModifiersRule__Group_2_1__0)*
+{ after(grammarAccess.getModifiersRuleAccess().getGroup_2_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__ModifiersRule__Group_2_1__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__ModifiersRule__Group_2_1__0__Impl
+ rule__ModifiersRule__Group_2_1__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__Group_2_1__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0()); }
+
+ ','
+
+{ after(grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__ModifiersRule__Group_2_1__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__ModifiersRule__Group_2_1__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__Group_2_1__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1()); }
+(rule__ModifiersRule__ValuesAssignment_2_1_1)
+{ after(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__RedefinesRule__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RedefinesRule__Group__0__Impl
+ rule__RedefinesRule__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RedefinesRule__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0()); }
+
+ 'redefines'
+
+{ after(grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__RedefinesRule__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RedefinesRule__Group__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RedefinesRule__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRedefinesRuleAccess().getPortAssignment_1()); }
+(rule__RedefinesRule__PortAssignment_1)
+{ after(grammarAccess.getRedefinesRuleAccess().getPortAssignment_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__SubsetsRule__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__SubsetsRule__Group__0__Impl
+ rule__SubsetsRule__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__SubsetsRule__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0()); }
+
+ 'subsets'
+
+{ after(grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__SubsetsRule__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__SubsetsRule__Group__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__SubsetsRule__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getSubsetsRuleAccess().getPortAssignment_1()); }
+(rule__SubsetsRule__PortAssignment_1)
+{ after(grammarAccess.getSubsetsRuleAccess().getPortAssignment_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__DefaultValueRule__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__DefaultValueRule__Group__0__Impl
+ rule__DefaultValueRule__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__DefaultValueRule__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0()); }
+
+ '='
+
+{ after(grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__DefaultValueRule__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__DefaultValueRule__Group__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__DefaultValueRule__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1()); }
+(rule__DefaultValueRule__DefaultAssignment_1)
+{ after(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__RealValue__Group_0__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RealValue__Group_0__0__Impl
+ rule__RealValue__Group_0__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__Group_0__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0()); }
+(rule__RealValue__IntegerAssignment_0_0)
+{ after(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__RealValue__Group_0__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RealValue__Group_0__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__Group_0__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getFullStopKeyword_0_1()); }
+
+ '.'
+
+{ after(grammarAccess.getRealValueAccess().getFullStopKeyword_0_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__RealValue__Group_1__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RealValue__Group_1__0__Impl
+ rule__RealValue__Group_1__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__Group_1__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getFullStopKeyword_1_0()); }
+
+ '.'
+
+{ after(grammarAccess.getRealValueAccess().getFullStopKeyword_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__RealValue__Group_1__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RealValue__Group_1__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__Group_1__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getFractionAssignment_1_1()); }
+(rule__RealValue__FractionAssignment_1_1)
+{ after(grammarAccess.getRealValueAccess().getFractionAssignment_1_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__RealValue__Group_2__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RealValue__Group_2__0__Impl
+ rule__RealValue__Group_2__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__Group_2__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0()); }
+(rule__RealValue__IntegerAssignment_2_0)
+{ after(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__RealValue__Group_2__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RealValue__Group_2__1__Impl
+ rule__RealValue__Group_2__2
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__Group_2__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getFullStopKeyword_2_1()); }
+
+ '.'
+
+{ after(grammarAccess.getRealValueAccess().getFullStopKeyword_2_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__RealValue__Group_2__2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RealValue__Group_2__2__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__Group_2__2__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getFractionAssignment_2_2()); }
+(rule__RealValue__FractionAssignment_2_2)
+{ after(grammarAccess.getRealValueAccess().getFractionAssignment_2_2()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+
+
+rule__NullValue__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__NullValue__Group__0__Impl
+ rule__NullValue__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__NullValue__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getNullValueAccess().getNullValueAction_0()); }
+(
+
+)
+{ after(grammarAccess.getNullValueAccess().getNullValueAction_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__NullValue__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__NullValue__Group__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__NullValue__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getNullValueAccess().getNullKeyword_1()); }
+
+ 'null'
+
+{ after(grammarAccess.getNullValueAccess().getNullKeyword_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__NoValue__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__NoValue__Group__0__Impl
+ rule__NoValue__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__NoValue__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getNoValueAccess().getNoValueAction_0()); }
+(
+
+)
+{ after(grammarAccess.getNoValueAccess().getNoValueAction_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__NoValue__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__NoValue__Group__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__NoValue__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getNoValueAccess().getNoneKeyword_1()); }
+
+ 'none'
+
+{ after(grammarAccess.getNoValueAccess().getNoneKeyword_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+
+rule__PortRule__VisibilityAssignment_0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0()); }
+ ruleVisibilityRule{ after(grammarAccess.getPortRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PortRule__DerivedAssignment_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0()); }
+(
+{ before(grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0()); }
+
+ '/'
+
+{ after(grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0()); }
+)
+
+{ after(grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PortRule__NameAssignment_2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getNameIDTerminalRuleCall_2_0()); }
+ RULE_ID{ after(grammarAccess.getPortRuleAccess().getNameIDTerminalRuleCall_2_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PortRule__ConjugatedAssignment_3_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0()); }
+(
+{ before(grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0()); }
+
+ '~'
+
+{ after(grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0()); }
+)
+
+{ after(grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PortRule__TypeAssignment_3_2_0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getTypeTypeRuleParserRuleCall_3_2_0_0()); }
+ ruleTypeRule{ after(grammarAccess.getPortRuleAccess().getTypeTypeRuleParserRuleCall_3_2_0_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PortRule__TypeUndefinedAssignment_3_2_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0()); }
+(
+{ before(grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0()); }
+
+ '<Undefined>'
+
+{ after(grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0()); }
+)
+
+{ after(grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PortRule__MultiplicityAssignment_4
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0()); }
+ ruleMultiplicityRule{ after(grammarAccess.getPortRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PortRule__ModifiersAssignment_5
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0()); }
+ ruleModifiersRule{ after(grammarAccess.getPortRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PortRule__DefaultAssignment_6
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPortRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0()); }
+ ruleDefaultValueRule{ after(grammarAccess.getPortRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__VisibilityRule__VisibilityAssignment
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0()); }
+ ruleVisibilityKind{ after(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__TypeRule__PathAssignment_0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0()); }
+ ruleQualifiedName{ after(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__TypeRule__TypeAssignment_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0()); }
+(
+{ before(grammarAccess.getTypeRuleAccess().getTypeClassifierIDTerminalRuleCall_1_0_1()); }
+ RULE_ID{ after(grammarAccess.getTypeRuleAccess().getTypeClassifierIDTerminalRuleCall_1_0_1()); }
+)
+{ after(grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__QualifiedName__PathAssignment_0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0()); }
+(
+{ before(grammarAccess.getQualifiedNameAccess().getPathNamespaceIDTerminalRuleCall_0_0_1()); }
+ RULE_ID{ after(grammarAccess.getQualifiedNameAccess().getPathNamespaceIDTerminalRuleCall_0_0_1()); }
+)
+{ after(grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__QualifiedName__RemainingAssignment_2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0()); }
+ ruleQualifiedName{ after(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__MultiplicityRule__BoundsAssignment_1_0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0_0()); }
+ ruleBoundSpecification{ after(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__MultiplicityRule__BoundsAssignment_2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_0()); }
+ ruleBoundSpecification{ after(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__BoundSpecification__ValueAssignment
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getBoundSpecificationAccess().getValueAlternatives_0()); }
+(rule__BoundSpecification__ValueAlternatives_0)
+{ after(grammarAccess.getBoundSpecificationAccess().getValueAlternatives_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__ValuesAssignment_2_0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0()); }
+ ruleModifierSpecification{ after(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__ValuesAssignment_2_1_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0()); }
+ ruleModifierSpecification{ after(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifierSpecification__ValueAssignment_0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0()); }
+ ruleModifierKind{ after(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifierSpecification__RedefinesAssignment_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0()); }
+ ruleRedefinesRule{ after(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifierSpecification__SubsetsAssignment_2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0()); }
+ ruleSubsetsRule{ after(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RedefinesRule__PortAssignment_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRedefinesRuleAccess().getPortPortCrossReference_1_0()); }
+(
+{ before(grammarAccess.getRedefinesRuleAccess().getPortPortIDTerminalRuleCall_1_0_1()); }
+ RULE_ID{ after(grammarAccess.getRedefinesRuleAccess().getPortPortIDTerminalRuleCall_1_0_1()); }
+)
+{ after(grammarAccess.getRedefinesRuleAccess().getPortPortCrossReference_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__SubsetsRule__PortAssignment_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getSubsetsRuleAccess().getPortPortCrossReference_1_0()); }
+(
+{ before(grammarAccess.getSubsetsRuleAccess().getPortPortIDTerminalRuleCall_1_0_1()); }
+ RULE_ID{ after(grammarAccess.getSubsetsRuleAccess().getPortPortIDTerminalRuleCall_1_0_1()); }
+)
+{ after(grammarAccess.getSubsetsRuleAccess().getPortPortCrossReference_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__DefaultValueRule__DefaultAssignment_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0()); }
+ ruleValue{ after(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__IntValue__LiteralIntegerAssignment
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0()); }
+ RULE_INT{ after(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__StringValue__LiteralStringAssignment
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0()); }
+ RULE_STRING{ after(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__BooleanValue__LiteralBooleanAssignment
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0()); }
+ ruleBooleanLiterals{ after(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__IntegerAssignment_0_0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0()); }
+ RULE_INT{ after(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__FractionAssignment_1_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0()); }
+ RULE_INT{ after(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__IntegerAssignment_2_0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0()); }
+ RULE_INT{ after(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__FractionAssignment_2_2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0()); }
+ RULE_INT{ after(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+RULE_ID : (('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*|'\'' ( options {greedy=false;} : . )*'\'');
+
+RULE_STRING : '"' ('\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')|~(('\\'|'"')))* '"';
+
+RULE_ML_COMMENT : '/*' ~('@') ( options {greedy=false;} : . )*'*/';
+
+RULE_SL_COMMENT : '//' ~(('\n'|'\r'|'@'))* ('\r'? '\n')?;
+
+RULE_INT : ('0'..'9')+;
+
+RULE_INTEGER_VALUE : (('0'|'1'..'9' ('_'? '0'..'9')*)|('0b'|'0B') '0'..'1' ('_'? '0'..'1')*|('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F') ('_'? ('0'..'9'|'a'..'f'|'A'..'F'))*|'0' '_'? '0'..'7' ('_'? '0'..'7')*);
+
+RULE_WS : (' '|'\t'|'\r'|'\n')+;
+
+RULE_ANY_OTHER : .;
+
+
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.tokens b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.tokens
index c25eb9f63ad..e8650d58a3d 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.tokens
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.tokens
@@ -1,62 +1,62 @@
-'#'=15
-'*'=12
-'+'=13
-','=30
-'-'=14
-'.'=34
-'..'=27
-'/'=37
-':'=23
-'::'=24
-'<Undefined>'=38
-'='=33
-'['=25
-']'=26
-'false'=22
-'none'=36
-'null'=35
-'ordered'=19
-'readOnly'=17
-'redefines'=31
-'subsets'=32
-'true'=21
-'union'=18
-'unique'=20
-'{'=28
-'}'=29
-'~'=16
-RULE_ANY_OTHER=11
-RULE_ID=5
-RULE_INT=4
-RULE_INTEGER_VALUE=9
-RULE_ML_COMMENT=7
-RULE_SL_COMMENT=8
-RULE_STRING=6
-RULE_WS=10
-T__12=12
-T__13=13
-T__14=14
-T__15=15
-T__16=16
-T__17=17
-T__18=18
-T__19=19
-T__20=20
-T__21=21
-T__22=22
-T__23=23
-T__24=24
-T__25=25
-T__26=26
-T__27=27
-T__28=28
-T__29=29
-T__30=30
-T__31=31
-T__32=32
-T__33=33
-T__34=34
-T__35=35
-T__36=36
-T__37=37
-T__38=38
+'#'=15
+'*'=12
+'+'=13
+','=30
+'-'=14
+'.'=34
+'..'=27
+'/'=37
+':'=23
+'::'=24
+'<Undefined>'=38
+'='=33
+'['=25
+']'=26
+'false'=22
+'none'=36
+'null'=35
+'ordered'=19
+'readOnly'=17
+'redefines'=31
+'subsets'=32
+'true'=21
+'union'=18
+'unique'=20
+'{'=28
+'}'=29
+'~'=16
+RULE_ANY_OTHER=11
+RULE_ID=6
+RULE_INT=5
+RULE_INTEGER_VALUE=9
+RULE_ML_COMMENT=7
+RULE_SL_COMMENT=8
+RULE_STRING=4
+RULE_WS=10
+T__12=12
+T__13=13
+T__14=14
+T__15=15
+T__16=16
+T__17=17
+T__18=18
+T__19=19
+T__20=20
+T__21=21
+T__22=22
+T__23=23
+T__24=24
+T__25=25
+T__26=26
+T__27=27
+T__28=28
+T__29=29
+T__30=30
+T__31=31
+T__32=32
+T__33=33
+T__34=34
+T__35=35
+T__36=36
+T__37=37
+T__38=38
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPortLexer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPortLexer.java
index 73d1172a3e0..d9935d77479 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPortLexer.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPortLexer.java
@@ -1,2158 +1,2068 @@
-package org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal;
-
-// Hack: Use our own Lexer superclass by means of import.
-// Currently there is no other way to specify the superclass for the lexer.
-import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer;
-
-import org.antlr.runtime.*;
-
-@SuppressWarnings("all")
-public class InternalUmlPortLexer extends Lexer {
- public static final int RULE_ID = 5;
- public static final int T__29 = 29;
- public static final int T__28 = 28;
- public static final int T__27 = 27;
- public static final int T__26 = 26;
- public static final int T__25 = 25;
- public static final int T__24 = 24;
- public static final int T__23 = 23;
- public static final int T__22 = 22;
- public static final int RULE_ANY_OTHER = 11;
- public static final int T__21 = 21;
- public static final int T__20 = 20;
- public static final int RULE_INTEGER_VALUE = 9;
- public static final int EOF = -1;
- public static final int RULE_SL_COMMENT = 8;
- public static final int RULE_ML_COMMENT = 7;
- public static final int T__19 = 19;
- public static final int T__30 = 30;
- public static final int T__31 = 31;
- public static final int T__32 = 32;
- public static final int RULE_STRING = 6;
- public static final int T__16 = 16;
- public static final int T__33 = 33;
- public static final int T__15 = 15;
- public static final int T__34 = 34;
- public static final int T__18 = 18;
- public static final int T__35 = 35;
- public static final int T__17 = 17;
- public static final int T__36 = 36;
- public static final int T__12 = 12;
- public static final int T__37 = 37;
- public static final int T__38 = 38;
- public static final int T__14 = 14;
- public static final int T__13 = 13;
- public static final int RULE_INT = 4;
- public static final int RULE_WS = 10;
-
- // delegates
- // delegators
-
- public InternalUmlPortLexer() {
- ;
- }
-
- public InternalUmlPortLexer(CharStream input) {
- this(input, new RecognizerSharedState());
- }
-
- public InternalUmlPortLexer(CharStream input, RecognizerSharedState state) {
- super(input, state);
-
- }
-
- @Override
- public String getGrammarFileName() {
- return "../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g";
- }
-
- // $ANTLR start "T__12"
- public final void mT__12() throws RecognitionException {
- try {
- int _type = T__12;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:11:7: ( '*' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:11:9: '*'
- {
- match('*');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__12"
-
- // $ANTLR start "T__13"
- public final void mT__13() throws RecognitionException {
- try {
- int _type = T__13;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:12:7: ( '+' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:12:9: '+'
- {
- match('+');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__13"
-
- // $ANTLR start "T__14"
- public final void mT__14() throws RecognitionException {
- try {
- int _type = T__14;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:13:7: ( '-' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:13:9: '-'
- {
- match('-');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__14"
-
- // $ANTLR start "T__15"
- public final void mT__15() throws RecognitionException {
- try {
- int _type = T__15;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:14:7: ( '#' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:14:9: '#'
- {
- match('#');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__15"
-
- // $ANTLR start "T__16"
- public final void mT__16() throws RecognitionException {
- try {
- int _type = T__16;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:15:7: ( '~' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:15:9: '~'
- {
- match('~');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__16"
-
- // $ANTLR start "T__17"
- public final void mT__17() throws RecognitionException {
- try {
- int _type = T__17;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:16:7: ( 'readOnly' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:16:9: 'readOnly'
- {
- match("readOnly");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__17"
-
- // $ANTLR start "T__18"
- public final void mT__18() throws RecognitionException {
- try {
- int _type = T__18;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:17:7: ( 'union' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:17:9: 'union'
- {
- match("union");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__18"
-
- // $ANTLR start "T__19"
- public final void mT__19() throws RecognitionException {
- try {
- int _type = T__19;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:18:7: ( 'ordered' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:18:9: 'ordered'
- {
- match("ordered");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__19"
-
- // $ANTLR start "T__20"
- public final void mT__20() throws RecognitionException {
- try {
- int _type = T__20;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:19:7: ( 'unique' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:19:9: 'unique'
- {
- match("unique");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__20"
-
- // $ANTLR start "T__21"
- public final void mT__21() throws RecognitionException {
- try {
- int _type = T__21;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:20:7: ( 'true' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:20:9: 'true'
- {
- match("true");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__21"
-
- // $ANTLR start "T__22"
- public final void mT__22() throws RecognitionException {
- try {
- int _type = T__22;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:21:7: ( 'false' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:21:9: 'false'
- {
- match("false");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__22"
-
- // $ANTLR start "T__23"
- public final void mT__23() throws RecognitionException {
- try {
- int _type = T__23;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:22:7: ( ':' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:22:9: ':'
- {
- match(':');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__23"
-
- // $ANTLR start "T__24"
- public final void mT__24() throws RecognitionException {
- try {
- int _type = T__24;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:23:7: ( '::' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:23:9: '::'
- {
- match("::");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__24"
-
- // $ANTLR start "T__25"
- public final void mT__25() throws RecognitionException {
- try {
- int _type = T__25;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:24:7: ( '[' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:24:9: '['
- {
- match('[');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__25"
-
- // $ANTLR start "T__26"
- public final void mT__26() throws RecognitionException {
- try {
- int _type = T__26;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:25:7: ( ']' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:25:9: ']'
- {
- match(']');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__26"
-
- // $ANTLR start "T__27"
- public final void mT__27() throws RecognitionException {
- try {
- int _type = T__27;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:26:7: ( '..' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:26:9: '..'
- {
- match("..");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__27"
-
- // $ANTLR start "T__28"
- public final void mT__28() throws RecognitionException {
- try {
- int _type = T__28;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:27:7: ( '{' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:27:9: '{'
- {
- match('{');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__28"
-
- // $ANTLR start "T__29"
- public final void mT__29() throws RecognitionException {
- try {
- int _type = T__29;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:28:7: ( '}' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:28:9: '}'
- {
- match('}');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__29"
-
- // $ANTLR start "T__30"
- public final void mT__30() throws RecognitionException {
- try {
- int _type = T__30;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:29:7: ( ',' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:29:9: ','
- {
- match(',');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__30"
-
- // $ANTLR start "T__31"
- public final void mT__31() throws RecognitionException {
- try {
- int _type = T__31;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:30:7: ( 'redefines' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:30:9: 'redefines'
- {
- match("redefines");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__31"
-
- // $ANTLR start "T__32"
- public final void mT__32() throws RecognitionException {
- try {
- int _type = T__32;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:31:7: ( 'subsets' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:31:9: 'subsets'
- {
- match("subsets");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__32"
-
- // $ANTLR start "T__33"
- public final void mT__33() throws RecognitionException {
- try {
- int _type = T__33;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:32:7: ( '=' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:32:9: '='
- {
- match('=');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__33"
-
- // $ANTLR start "T__34"
- public final void mT__34() throws RecognitionException {
- try {
- int _type = T__34;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:33:7: ( '.' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:33:9: '.'
- {
- match('.');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__34"
-
- // $ANTLR start "T__35"
- public final void mT__35() throws RecognitionException {
- try {
- int _type = T__35;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:34:7: ( 'null' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:34:9: 'null'
- {
- match("null");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__35"
-
- // $ANTLR start "T__36"
- public final void mT__36() throws RecognitionException {
- try {
- int _type = T__36;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:35:7: ( 'none' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:35:9: 'none'
- {
- match("none");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__36"
-
- // $ANTLR start "T__37"
- public final void mT__37() throws RecognitionException {
- try {
- int _type = T__37;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:36:7: ( '/' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:36:9: '/'
- {
- match('/');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__37"
-
- // $ANTLR start "T__38"
- public final void mT__38() throws RecognitionException {
- try {
- int _type = T__38;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:37:7: ( '<Undefined>' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:37:9: '<Undefined>'
- {
- match("<Undefined>");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__38"
-
- // $ANTLR start "RULE_ID"
- public final void mRULE_ID() throws RecognitionException {
- try {
- int _type = RULE_ID;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2868:9: ( ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
- // | '\\'' ( options {greedy=false; } : . )* '\\'' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2868:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
- // | '\\'' ( options {greedy=false; } : . )* '\\'' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2868:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9'
- // )* | '\\'' ( options {greedy=false; } : . )* '\\'' )
- int alt3 = 2;
- int LA3_0 = input.LA(1);
-
- if (((LA3_0 >= 'A' && LA3_0 <= 'Z') || LA3_0 == '_' || (LA3_0 >= 'a' && LA3_0 <= 'z'))) {
- alt3 = 1;
- }
- else if ((LA3_0 == '\'')) {
- alt3 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 3, 0, input);
-
- throw nvae;
- }
- switch (alt3) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2868:12: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9'
- // )*
- {
- if ((input.LA(1) >= 'A' && input.LA(1) <= 'Z') || input.LA(1) == '_' || (input.LA(1) >= 'a' && input.LA(1) <= 'z')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2868:36: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
- loop1: do {
- int alt1 = 2;
- int LA1_0 = input.LA(1);
-
- if (((LA1_0 >= '0' && LA1_0 <= '9') || (LA1_0 >= 'A' && LA1_0 <= 'Z') || LA1_0 == '_' || (LA1_0 >= 'a' && LA1_0 <= 'z'))) {
- alt1 = 1;
- }
-
-
- switch (alt1) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:
- {
- if ((input.LA(1) >= '0' && input.LA(1) <= '9') || (input.LA(1) >= 'A' && input.LA(1) <= 'Z') || input.LA(1) == '_' || (input.LA(1) >= 'a' && input.LA(1) <= 'z')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- break loop1;
- }
- } while (true);
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2868:70: '\\'' ( options {greedy=false; } : . )* '\\''
- {
- match('\'');
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2868:75: ( options {greedy=false; } : . )*
- loop2: do {
- int alt2 = 2;
- int LA2_0 = input.LA(1);
-
- if ((LA2_0 == '\'')) {
- alt2 = 2;
- }
- else if (((LA2_0 >= '\u0000' && LA2_0 <= '&') || (LA2_0 >= '(' && LA2_0 <= '\uFFFF'))) {
- alt2 = 1;
- }
-
-
- switch (alt2) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2868:103: .
- {
- matchAny();
-
- }
- break;
-
- default:
- break loop2;
- }
- } while (true);
-
- match('\'');
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_ID"
-
- // $ANTLR start "RULE_STRING"
- public final void mRULE_STRING() throws RecognitionException {
- try {
- int _type = RULE_STRING;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2870:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( (
- // '\\\\' | '\"' ) ) )* '\"' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2870:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\'
- // | '\"' ) ) )* '\"'
- {
- match('\"');
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2870:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\'
- // | '\"' ) ) )*
- loop4: do {
- int alt4 = 3;
- int LA4_0 = input.LA(1);
-
- if ((LA4_0 == '\\')) {
- alt4 = 1;
- }
- else if (((LA4_0 >= '\u0000' && LA4_0 <= '!') || (LA4_0 >= '#' && LA4_0 <= '[') || (LA4_0 >= ']' && LA4_0 <= '\uFFFF'))) {
- alt4 = 2;
- }
-
-
- switch (alt4) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2870:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
- {
- match('\\');
- if (input.LA(1) == '\"' || input.LA(1) == '\'' || input.LA(1) == '\\' || input.LA(1) == 'b' || input.LA(1) == 'f' || input.LA(1) == 'n' || input.LA(1) == 'r' || input.LA(1) == 't') {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2870:61: ~ ( ( '\\\\' | '\"' ) )
- {
- if ((input.LA(1) >= '\u0000' && input.LA(1) <= '!') || (input.LA(1) >= '#' && input.LA(1) <= '[') || (input.LA(1) >= ']' && input.LA(1) <= '\uFFFF')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- break loop4;
- }
- } while (true);
-
- match('\"');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_STRING"
-
- // $ANTLR start "RULE_ML_COMMENT"
- public final void mRULE_ML_COMMENT() throws RecognitionException {
- try {
- int _type = RULE_ML_COMMENT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2872:17: ( '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2872:19: '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/'
- {
- match("/*");
-
- if ((input.LA(1) >= '\u0000' && input.LA(1) <= '?') || (input.LA(1) >= 'A' && input.LA(1) <= '\uFFFF')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2872:31: ( options {greedy=false; } : . )*
- loop5: do {
- int alt5 = 2;
- int LA5_0 = input.LA(1);
-
- if ((LA5_0 == '*')) {
- int LA5_1 = input.LA(2);
-
- if ((LA5_1 == '/')) {
- alt5 = 2;
- }
- else if (((LA5_1 >= '\u0000' && LA5_1 <= '.') || (LA5_1 >= '0' && LA5_1 <= '\uFFFF'))) {
- alt5 = 1;
- }
-
-
- }
- else if (((LA5_0 >= '\u0000' && LA5_0 <= ')') || (LA5_0 >= '+' && LA5_0 <= '\uFFFF'))) {
- alt5 = 1;
- }
-
-
- switch (alt5) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2872:59: .
- {
- matchAny();
-
- }
- break;
-
- default:
- break loop5;
- }
- } while (true);
-
- match("*/");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_ML_COMMENT"
-
- // $ANTLR start "RULE_SL_COMMENT"
- public final void mRULE_SL_COMMENT() throws RecognitionException {
- try {
- int _type = RULE_SL_COMMENT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2874:17: ( '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2874:19: '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )?
- {
- match("//");
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2874:24: (~ ( ( '\\n' | '\\r' | '@' ) ) )*
- loop6: do {
- int alt6 = 2;
- int LA6_0 = input.LA(1);
-
- if (((LA6_0 >= '\u0000' && LA6_0 <= '\t') || (LA6_0 >= '\u000B' && LA6_0 <= '\f') || (LA6_0 >= '\u000E' && LA6_0 <= '?') || (LA6_0 >= 'A' && LA6_0 <= '\uFFFF'))) {
- alt6 = 1;
- }
-
-
- switch (alt6) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2874:24: ~ ( ( '\\n' | '\\r' | '@' ) )
- {
- if ((input.LA(1) >= '\u0000' && input.LA(1) <= '\t') || (input.LA(1) >= '\u000B' && input.LA(1) <= '\f') || (input.LA(1) >= '\u000E' && input.LA(1) <= '?') || (input.LA(1) >= 'A' && input.LA(1) <= '\uFFFF')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- break loop6;
- }
- } while (true);
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2874:44: ( ( '\\r' )? '\\n' )?
- int alt8 = 2;
- int LA8_0 = input.LA(1);
-
- if ((LA8_0 == '\n' || LA8_0 == '\r')) {
- alt8 = 1;
- }
- switch (alt8) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2874:45: ( '\\r' )? '\\n'
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2874:45: ( '\\r' )?
- int alt7 = 2;
- int LA7_0 = input.LA(1);
-
- if ((LA7_0 == '\r')) {
- alt7 = 1;
- }
- switch (alt7) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2874:45: '\\r'
- {
- match('\r');
-
- }
- break;
-
- }
-
- match('\n');
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_SL_COMMENT"
-
- // $ANTLR start "RULE_INT"
- public final void mRULE_INT() throws RecognitionException {
- try {
- int _type = RULE_INT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2876:10: ( ( '0' .. '9' )+ )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2876:12: ( '0' .. '9' )+
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2876:12: ( '0' .. '9' )+
- int cnt9 = 0;
- loop9: do {
- int alt9 = 2;
- int LA9_0 = input.LA(1);
-
- if (((LA9_0 >= '0' && LA9_0 <= '9'))) {
- alt9 = 1;
- }
-
-
- switch (alt9) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2876:13: '0' .. '9'
- {
- matchRange('0', '9');
-
- }
- break;
-
- default:
- if (cnt9 >= 1) {
- break loop9;
- }
- EarlyExitException eee =
- new EarlyExitException(9, input);
- throw eee;
- }
- cnt9++;
- } while (true);
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_INT"
-
- // $ANTLR start "RULE_INTEGER_VALUE"
- public final void mRULE_INTEGER_VALUE() throws RecognitionException {
- try {
- int _type = RULE_INTEGER_VALUE;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:20: ( ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( (
- // '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_'
- // )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( (
- // '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
- int alt22 = 4;
- int LA22_0 = input.LA(1);
-
- if ((LA22_0 == '0')) {
- switch (input.LA(2)) {
- case 'B':
- case 'b': {
- alt22 = 2;
- }
- break;
- case 'X':
- case 'x': {
- alt22 = 3;
- }
- break;
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '_': {
- alt22 = 4;
- }
- break;
- default:
- alt22 = 1;
- }
-
- }
- else if (((LA22_0 >= '1' && LA22_0 <= '9'))) {
- alt22 = 1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 22, 0, input);
-
- throw nvae;
- }
- switch (alt22) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
- int alt12 = 2;
- int LA12_0 = input.LA(1);
-
- if ((LA12_0 == '0')) {
- alt12 = 1;
- }
- else if (((LA12_0 >= '1' && LA12_0 <= '9'))) {
- alt12 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 12, 0, input);
-
- throw nvae;
- }
- switch (alt12) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:24: '0'
- {
- match('0');
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:28: '1' .. '9' ( ( '_' )? '0' .. '9' )*
- {
- matchRange('1', '9');
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:37: ( ( '_' )? '0' .. '9' )*
- loop11: do {
- int alt11 = 2;
- int LA11_0 = input.LA(1);
-
- if (((LA11_0 >= '0' && LA11_0 <= '9') || LA11_0 == '_')) {
- alt11 = 1;
- }
-
-
- switch (alt11) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:38: ( '_' )? '0' .. '9'
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:38: ( '_' )?
- int alt10 = 2;
- int LA10_0 = input.LA(1);
-
- if ((LA10_0 == '_')) {
- alt10 = 1;
- }
- switch (alt10) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:38: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0', '9');
-
- }
- break;
-
- default:
- break loop11;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:55: ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )*
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:55: ( '0b' | '0B' )
- int alt13 = 2;
- int LA13_0 = input.LA(1);
-
- if ((LA13_0 == '0')) {
- int LA13_1 = input.LA(2);
-
- if ((LA13_1 == 'b')) {
- alt13 = 1;
- }
- else if ((LA13_1 == 'B')) {
- alt13 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 13, 1, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 13, 0, input);
-
- throw nvae;
- }
- switch (alt13) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:56: '0b'
- {
- match("0b");
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:61: '0B'
- {
- match("0B");
-
-
- }
- break;
-
- }
-
- matchRange('0', '1');
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:76: ( ( '_' )? '0' .. '1' )*
- loop15: do {
- int alt15 = 2;
- int LA15_0 = input.LA(1);
-
- if (((LA15_0 >= '0' && LA15_0 <= '1') || LA15_0 == '_')) {
- alt15 = 1;
- }
-
-
- switch (alt15) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:77: ( '_' )? '0' .. '1'
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:77: ( '_' )?
- int alt14 = 2;
- int LA14_0 = input.LA(1);
-
- if ((LA14_0 == '_')) {
- alt14 = 1;
- }
- switch (alt14) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:77: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0', '1');
-
- }
- break;
-
- default:
- break loop15;
- }
- } while (true);
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:93: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9'
- // | 'a' .. 'f' | 'A' .. 'F' ) )*
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:93: ( '0x' | '0X' )
- int alt16 = 2;
- int LA16_0 = input.LA(1);
-
- if ((LA16_0 == '0')) {
- int LA16_1 = input.LA(2);
-
- if ((LA16_1 == 'x')) {
- alt16 = 1;
- }
- else if ((LA16_1 == 'X')) {
- alt16 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 16, 1, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 16, 0, input);
-
- throw nvae;
- }
- switch (alt16) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:94: '0x'
- {
- match("0x");
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:99: '0X'
- {
- match("0X");
-
-
- }
- break;
-
- }
-
- if ((input.LA(1) >= '0' && input.LA(1) <= '9') || (input.LA(1) >= 'A' && input.LA(1) <= 'F') || (input.LA(1) >= 'a' && input.LA(1) <= 'f')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:134: ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
- loop18: do {
- int alt18 = 2;
- int LA18_0 = input.LA(1);
-
- if (((LA18_0 >= '0' && LA18_0 <= '9') || (LA18_0 >= 'A' && LA18_0 <= 'F') || LA18_0 == '_' || (LA18_0 >= 'a' && LA18_0 <= 'f'))) {
- alt18 = 1;
- }
-
-
- switch (alt18) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:135: ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:135: ( '_' )?
- int alt17 = 2;
- int LA17_0 = input.LA(1);
-
- if ((LA17_0 == '_')) {
- alt17 = 1;
- }
- switch (alt17) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:135: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- if ((input.LA(1) >= '0' && input.LA(1) <= '9') || (input.LA(1) >= 'A' && input.LA(1) <= 'F') || (input.LA(1) >= 'a' && input.LA(1) <= 'f')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- break loop18;
- }
- } while (true);
-
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:171: '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )*
- {
- match('0');
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:175: ( '_' )?
- int alt19 = 2;
- int LA19_0 = input.LA(1);
-
- if ((LA19_0 == '_')) {
- alt19 = 1;
- }
- switch (alt19) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:175: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0', '7');
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:189: ( ( '_' )? '0' .. '7' )*
- loop21: do {
- int alt21 = 2;
- int LA21_0 = input.LA(1);
-
- if (((LA21_0 >= '0' && LA21_0 <= '7') || LA21_0 == '_')) {
- alt21 = 1;
- }
-
-
- switch (alt21) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:190: ( '_' )? '0' .. '7'
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:190: ( '_' )?
- int alt20 = 2;
- int LA20_0 = input.LA(1);
-
- if ((LA20_0 == '_')) {
- alt20 = 1;
- }
- switch (alt20) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:190: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0', '7');
-
- }
- break;
-
- default:
- break loop21;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_INTEGER_VALUE"
-
- // $ANTLR start "RULE_WS"
- public final void mRULE_WS() throws RecognitionException {
- try {
- int _type = RULE_WS;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2880:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2880:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2880:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
- int cnt23 = 0;
- loop23: do {
- int alt23 = 2;
- int LA23_0 = input.LA(1);
-
- if (((LA23_0 >= '\t' && LA23_0 <= '\n') || LA23_0 == '\r' || LA23_0 == ' ')) {
- alt23 = 1;
- }
-
-
- switch (alt23) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:
- {
- if ((input.LA(1) >= '\t' && input.LA(1) <= '\n') || input.LA(1) == '\r' || input.LA(1) == ' ') {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- if (cnt23 >= 1) {
- break loop23;
- }
- EarlyExitException eee =
- new EarlyExitException(23, input);
- throw eee;
- }
- cnt23++;
- } while (true);
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_WS"
-
- // $ANTLR start "RULE_ANY_OTHER"
- public final void mRULE_ANY_OTHER() throws RecognitionException {
- try {
- int _type = RULE_ANY_OTHER;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2882:16: ( . )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2882:18: .
- {
- matchAny();
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_ANY_OTHER"
-
- @Override
- public void mTokens() throws RecognitionException {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 |
- // T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER )
- int alt24 = 35;
- alt24 = dfa24.predict(input);
- switch (alt24) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:10: T__12
- {
- mT__12();
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:16: T__13
- {
- mT__13();
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:22: T__14
- {
- mT__14();
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:28: T__15
- {
- mT__15();
-
- }
- break;
- case 5:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:34: T__16
- {
- mT__16();
-
- }
- break;
- case 6:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:40: T__17
- {
- mT__17();
-
- }
- break;
- case 7:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:46: T__18
- {
- mT__18();
-
- }
- break;
- case 8:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:52: T__19
- {
- mT__19();
-
- }
- break;
- case 9:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:58: T__20
- {
- mT__20();
-
- }
- break;
- case 10:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:64: T__21
- {
- mT__21();
-
- }
- break;
- case 11:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:70: T__22
- {
- mT__22();
-
- }
- break;
- case 12:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:76: T__23
- {
- mT__23();
-
- }
- break;
- case 13:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:82: T__24
- {
- mT__24();
-
- }
- break;
- case 14:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:88: T__25
- {
- mT__25();
-
- }
- break;
- case 15:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:94: T__26
- {
- mT__26();
-
- }
- break;
- case 16:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:100: T__27
- {
- mT__27();
-
- }
- break;
- case 17:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:106: T__28
- {
- mT__28();
-
- }
- break;
- case 18:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:112: T__29
- {
- mT__29();
-
- }
- break;
- case 19:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:118: T__30
- {
- mT__30();
-
- }
- break;
- case 20:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:124: T__31
- {
- mT__31();
-
- }
- break;
- case 21:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:130: T__32
- {
- mT__32();
-
- }
- break;
- case 22:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:136: T__33
- {
- mT__33();
-
- }
- break;
- case 23:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:142: T__34
- {
- mT__34();
-
- }
- break;
- case 24:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:148: T__35
- {
- mT__35();
-
- }
- break;
- case 25:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:154: T__36
- {
- mT__36();
-
- }
- break;
- case 26:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:160: T__37
- {
- mT__37();
-
- }
- break;
- case 27:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:166: T__38
- {
- mT__38();
-
- }
- break;
- case 28:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:172: RULE_ID
- {
- mRULE_ID();
-
- }
- break;
- case 29:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:180: RULE_STRING
- {
- mRULE_STRING();
-
- }
- break;
- case 30:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:192: RULE_ML_COMMENT
- {
- mRULE_ML_COMMENT();
-
- }
- break;
- case 31:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:208: RULE_SL_COMMENT
- {
- mRULE_SL_COMMENT();
-
- }
- break;
- case 32:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:224: RULE_INT
- {
- mRULE_INT();
-
- }
- break;
- case 33:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:233: RULE_INTEGER_VALUE
- {
- mRULE_INTEGER_VALUE();
-
- }
- break;
- case 34:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:252: RULE_WS
- {
- mRULE_WS();
-
- }
- break;
- case 35:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:260: RULE_ANY_OTHER
- {
- mRULE_ANY_OTHER();
-
- }
- break;
-
- }
-
- }
-
-
- protected DFA24 dfa24 = new DFA24(this);
- static final String DFA24_eotS =
- "\6\uffff\5\44\1\52\2\uffff\1\56\3\uffff\1\44\1\uffff\1\44\1\70" +
- "\1\35\1\uffff\2\35\2\75\7\uffff\1\44\1\uffff\4\44\11\uffff\1\44" +
- "\1\uffff\2\44\6\uffff\1\75\1\uffff\1\75\1\uffff\11\44\1\75\5\44" +
- "\1\131\2\44\1\134\1\135\2\44\1\140\2\44\1\uffff\1\143\1\44\2\uffff" +
- "\2\44\1\uffff\1\147\1\44\1\uffff\3\44\1\uffff\1\154\1\155\1\156" +
- "\1\44\3\uffff\1\160\1\uffff";
- static final String DFA24_eofS =
- "\161\uffff";
- static final String DFA24_minS =
- "\1\0\5\uffff\1\145\1\156\2\162\1\141\1\72\2\uffff\1\56\3\uffff" +
- "\1\165\1\uffff\1\157\1\52\1\125\1\uffff\2\0\2\60\7\uffff\1\141\1" +
- "\uffff\1\151\1\144\1\165\1\154\11\uffff\1\142\1\uffff\1\154\1\156" +
- "\6\uffff\1\60\1\uffff\1\60\1\uffff\1\144\1\145\1\157\2\145\2\163" +
- "\1\154\1\145\1\60\1\117\1\146\1\156\1\165\1\162\1\60\2\145\2\60" +
- "\1\156\1\151\1\60\2\145\1\uffff\1\60\1\164\2\uffff\1\154\1\156\1" +
- "\uffff\1\60\1\144\1\uffff\1\163\1\171\1\145\1\uffff\3\60\1\163\3" +
- "\uffff\1\60\1\uffff";
- static final String DFA24_maxS =
- "\1\uffff\5\uffff\1\145\1\156\2\162\1\141\1\72\2\uffff\1\56\3\uffff" +
- "\1\165\1\uffff\1\165\1\57\1\125\1\uffff\2\uffff\1\170\1\137\7\uffff" +
- "\1\144\1\uffff\1\151\1\144\1\165\1\154\11\uffff\1\142\1\uffff\1" +
- "\154\1\156\6\uffff\1\137\1\uffff\1\137\1\uffff\1\144\1\145\1\161" +
- "\2\145\2\163\1\154\1\145\1\137\1\117\1\146\1\156\1\165\1\162\1\172" +
- "\2\145\2\172\1\156\1\151\1\172\2\145\1\uffff\1\172\1\164\2\uffff" +
- "\1\154\1\156\1\uffff\1\172\1\144\1\uffff\1\163\1\171\1\145\1\uffff" +
- "\3\172\1\163\3\uffff\1\172\1\uffff";
- static final String DFA24_acceptS =
- "\1\uffff\1\1\1\2\1\3\1\4\1\5\6\uffff\1\16\1\17\1\uffff\1\21\1\22" +
- "\1\23\1\uffff\1\26\3\uffff\1\34\4\uffff\1\42\1\43\1\1\1\2\1\3\1" +
- "\4\1\5\1\uffff\1\34\4\uffff\1\15\1\14\1\16\1\17\1\20\1\27\1\21\1" +
- "\22\1\23\1\uffff\1\26\2\uffff\1\36\1\37\1\32\1\33\1\35\1\41\1\uffff" +
- "\1\40\1\uffff\1\42\31\uffff\1\12\2\uffff\1\30\1\31\2\uffff\1\7\2" +
- "\uffff\1\13\3\uffff\1\11\4\uffff\1\10\1\25\1\6\1\uffff\1\24";
- static final String DFA24_specialS =
- "\1\0\27\uffff\1\1\1\2\127\uffff}>";
- static final String[] DFA24_transitionS = {
- "\11\35\2\34\2\35\1\34\22\35\1\34\1\35\1\31\1\4\3\35\1\30\2" +
- "\35\1\1\1\2\1\21\1\3\1\16\1\25\1\32\11\33\1\13\1\35\1\26\1\23" +
- "\3\35\32\27\1\14\1\35\1\15\1\35\1\27\1\35\5\27\1\12\7\27\1\24" +
- "\1\10\2\27\1\6\1\22\1\11\1\7\5\27\1\17\1\35\1\20\1\5\uff81\35",
- "",
- "",
- "",
- "",
- "",
- "\1\43",
- "\1\45",
- "\1\46",
- "\1\47",
- "\1\50",
- "\1\51",
- "",
- "",
- "\1\55",
- "",
- "",
- "",
- "\1\62",
- "",
- "\1\65\5\uffff\1\64",
- "\1\66\4\uffff\1\67",
- "\1\71",
- "",
- "\0\44",
- "\0\72",
- "\10\74\12\uffff\1\73\25\uffff\1\73\6\uffff\1\73\2\uffff\1" +
- "\73\25\uffff\1\73",
- "\12\76\45\uffff\1\73",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "\1\100\2\uffff\1\101",
- "",
- "\1\102",
- "\1\103",
- "\1\104",
- "\1\105",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "\1\106",
- "",
- "\1\107",
- "\1\110",
- "",
- "",
- "",
- "",
- "",
- "",
- "\10\111\47\uffff\1\73",
- "",
- "\12\76\45\uffff\1\73",
- "",
- "\1\112",
- "\1\113",
- "\1\114\1\uffff\1\115",
- "\1\116",
- "\1\117",
- "\1\120",
- "\1\121",
- "\1\122",
- "\1\123",
- "\10\111\47\uffff\1\73",
- "\1\124",
- "\1\125",
- "\1\126",
- "\1\127",
- "\1\130",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- "\1\132",
- "\1\133",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- "\1\136",
- "\1\137",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- "\1\141",
- "\1\142",
- "",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- "\1\144",
- "",
- "",
- "\1\145",
- "\1\146",
- "",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- "\1\150",
- "",
- "\1\151",
- "\1\152",
- "\1\153",
- "",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- "\1\157",
- "",
- "",
- "",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- ""
- };
-
- static final short[] DFA24_eot = DFA.unpackEncodedString(DFA24_eotS);
- static final short[] DFA24_eof = DFA.unpackEncodedString(DFA24_eofS);
- static final char[] DFA24_min = DFA.unpackEncodedStringToUnsignedChars(DFA24_minS);
- static final char[] DFA24_max = DFA.unpackEncodedStringToUnsignedChars(DFA24_maxS);
- static final short[] DFA24_accept = DFA.unpackEncodedString(DFA24_acceptS);
- static final short[] DFA24_special = DFA.unpackEncodedString(DFA24_specialS);
- static final short[][] DFA24_transition;
-
- static {
- int numStates = DFA24_transitionS.length;
- DFA24_transition = new short[numStates][];
- for (int i = 0; i < numStates; i++) {
- DFA24_transition[i] = DFA.unpackEncodedString(DFA24_transitionS[i]);
- }
- }
-
- class DFA24 extends DFA {
-
- public DFA24(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 24;
- this.eot = DFA24_eot;
- this.eof = DFA24_eof;
- this.min = DFA24_min;
- this.max = DFA24_max;
- this.accept = DFA24_accept;
- this.special = DFA24_special;
- this.transition = DFA24_transition;
- }
-
- @Override
- public String getDescription() {
- return "1:1: Tokens : ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER );";
- }
-
- @Override
- public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
- IntStream input = _input;
- int _s = s;
- switch (s) {
- case 0:
- int LA24_0 = input.LA(1);
-
- s = -1;
- if ((LA24_0 == '*')) {
- s = 1;
- }
-
- else if ((LA24_0 == '+')) {
- s = 2;
- }
-
- else if ((LA24_0 == '-')) {
- s = 3;
- }
-
- else if ((LA24_0 == '#')) {
- s = 4;
- }
-
- else if ((LA24_0 == '~')) {
- s = 5;
- }
-
- else if ((LA24_0 == 'r')) {
- s = 6;
- }
-
- else if ((LA24_0 == 'u')) {
- s = 7;
- }
-
- else if ((LA24_0 == 'o')) {
- s = 8;
- }
-
- else if ((LA24_0 == 't')) {
- s = 9;
- }
-
- else if ((LA24_0 == 'f')) {
- s = 10;
- }
-
- else if ((LA24_0 == ':')) {
- s = 11;
- }
-
- else if ((LA24_0 == '[')) {
- s = 12;
- }
-
- else if ((LA24_0 == ']')) {
- s = 13;
- }
-
- else if ((LA24_0 == '.')) {
- s = 14;
- }
-
- else if ((LA24_0 == '{')) {
- s = 15;
- }
-
- else if ((LA24_0 == '}')) {
- s = 16;
- }
-
- else if ((LA24_0 == ',')) {
- s = 17;
- }
-
- else if ((LA24_0 == 's')) {
- s = 18;
- }
-
- else if ((LA24_0 == '=')) {
- s = 19;
- }
-
- else if ((LA24_0 == 'n')) {
- s = 20;
- }
-
- else if ((LA24_0 == '/')) {
- s = 21;
- }
-
- else if ((LA24_0 == '<')) {
- s = 22;
- }
-
- else if (((LA24_0 >= 'A' && LA24_0 <= 'Z') || LA24_0 == '_' || (LA24_0 >= 'a' && LA24_0 <= 'e') || (LA24_0 >= 'g' && LA24_0 <= 'm') || (LA24_0 >= 'p' && LA24_0 <= 'q') || (LA24_0 >= 'v' && LA24_0 <= 'z'))) {
- s = 23;
- }
-
- else if ((LA24_0 == '\'')) {
- s = 24;
- }
-
- else if ((LA24_0 == '\"')) {
- s = 25;
- }
-
- else if ((LA24_0 == '0')) {
- s = 26;
- }
-
- else if (((LA24_0 >= '1' && LA24_0 <= '9'))) {
- s = 27;
- }
-
- else if (((LA24_0 >= '\t' && LA24_0 <= '\n') || LA24_0 == '\r' || LA24_0 == ' ')) {
- s = 28;
- }
-
- else if (((LA24_0 >= '\u0000' && LA24_0 <= '\b') || (LA24_0 >= '\u000B' && LA24_0 <= '\f') || (LA24_0 >= '\u000E' && LA24_0 <= '\u001F') || LA24_0 == '!' || (LA24_0 >= '$' && LA24_0 <= '&') || (LA24_0 >= '(' && LA24_0 <= ')') || LA24_0 == ';'
- || (LA24_0 >= '>' && LA24_0 <= '@') || LA24_0 == '\\' || LA24_0 == '^' || LA24_0 == '`' || LA24_0 == '|' || (LA24_0 >= '\u007F' && LA24_0 <= '\uFFFF'))) {
- s = 29;
- }
-
- if (s >= 0) {
- return s;
- }
- break;
- case 1:
- int LA24_24 = input.LA(1);
-
- s = -1;
- if (((LA24_24 >= '\u0000' && LA24_24 <= '\uFFFF'))) {
- s = 36;
- } else {
- s = 29;
- }
-
- if (s >= 0) {
- return s;
- }
- break;
- case 2:
- int LA24_25 = input.LA(1);
-
- s = -1;
- if (((LA24_25 >= '\u0000' && LA24_25 <= '\uFFFF'))) {
- s = 58;
- } else {
- s = 29;
- }
-
- if (s >= 0) {
- return s;
- }
- break;
- }
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 24, _s, input);
- error(nvae);
- throw nvae;
- }
- }
-
-
+package org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal;
+
+// Hack: Use our own Lexer superclass by means of import.
+// Currently there is no other way to specify the superclass for the lexer.
+import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer;
+
+
+import org.antlr.runtime.*;
+import java.util.Stack;
+import java.util.List;
+import java.util.ArrayList;
+
+@SuppressWarnings("all")
+public class InternalUmlPortLexer extends Lexer {
+ public static final int RULE_ID=6;
+ public static final int T__29=29;
+ public static final int T__28=28;
+ public static final int T__27=27;
+ public static final int T__26=26;
+ public static final int T__25=25;
+ public static final int T__24=24;
+ public static final int T__23=23;
+ public static final int T__22=22;
+ public static final int RULE_ANY_OTHER=11;
+ public static final int T__21=21;
+ public static final int T__20=20;
+ public static final int RULE_INTEGER_VALUE=9;
+ public static final int EOF=-1;
+ public static final int RULE_SL_COMMENT=8;
+ public static final int RULE_ML_COMMENT=7;
+ public static final int T__19=19;
+ public static final int T__30=30;
+ public static final int T__31=31;
+ public static final int T__32=32;
+ public static final int RULE_STRING=4;
+ public static final int T__16=16;
+ public static final int T__33=33;
+ public static final int T__15=15;
+ public static final int T__34=34;
+ public static final int T__18=18;
+ public static final int T__35=35;
+ public static final int T__17=17;
+ public static final int T__36=36;
+ public static final int T__12=12;
+ public static final int T__37=37;
+ public static final int T__38=38;
+ public static final int T__14=14;
+ public static final int T__13=13;
+ public static final int RULE_INT=5;
+ public static final int RULE_WS=10;
+
+ // delegates
+ // delegators
+
+ public InternalUmlPortLexer() {;}
+ public InternalUmlPortLexer(CharStream input) {
+ this(input, new RecognizerSharedState());
+ }
+ public InternalUmlPortLexer(CharStream input, RecognizerSharedState state) {
+ super(input,state);
+
+ }
+ public String getGrammarFileName() { return "../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g"; }
+
+ // $ANTLR start "T__12"
+ public final void mT__12() throws RecognitionException {
+ try {
+ int _type = T__12;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:11:7: ( '*' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:11:9: '*'
+ {
+ match('*');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__12"
+
+ // $ANTLR start "T__13"
+ public final void mT__13() throws RecognitionException {
+ try {
+ int _type = T__13;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:12:7: ( '+' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:12:9: '+'
+ {
+ match('+');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__13"
+
+ // $ANTLR start "T__14"
+ public final void mT__14() throws RecognitionException {
+ try {
+ int _type = T__14;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:13:7: ( '-' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:13:9: '-'
+ {
+ match('-');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__14"
+
+ // $ANTLR start "T__15"
+ public final void mT__15() throws RecognitionException {
+ try {
+ int _type = T__15;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:14:7: ( '#' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:14:9: '#'
+ {
+ match('#');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__15"
+
+ // $ANTLR start "T__16"
+ public final void mT__16() throws RecognitionException {
+ try {
+ int _type = T__16;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:15:7: ( '~' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:15:9: '~'
+ {
+ match('~');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__16"
+
+ // $ANTLR start "T__17"
+ public final void mT__17() throws RecognitionException {
+ try {
+ int _type = T__17;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:16:7: ( 'readOnly' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:16:9: 'readOnly'
+ {
+ match("readOnly");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__17"
+
+ // $ANTLR start "T__18"
+ public final void mT__18() throws RecognitionException {
+ try {
+ int _type = T__18;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:17:7: ( 'union' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:17:9: 'union'
+ {
+ match("union");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__18"
+
+ // $ANTLR start "T__19"
+ public final void mT__19() throws RecognitionException {
+ try {
+ int _type = T__19;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:18:7: ( 'ordered' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:18:9: 'ordered'
+ {
+ match("ordered");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__19"
+
+ // $ANTLR start "T__20"
+ public final void mT__20() throws RecognitionException {
+ try {
+ int _type = T__20;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:19:7: ( 'unique' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:19:9: 'unique'
+ {
+ match("unique");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__20"
+
+ // $ANTLR start "T__21"
+ public final void mT__21() throws RecognitionException {
+ try {
+ int _type = T__21;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:20:7: ( 'true' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:20:9: 'true'
+ {
+ match("true");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__21"
+
+ // $ANTLR start "T__22"
+ public final void mT__22() throws RecognitionException {
+ try {
+ int _type = T__22;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:21:7: ( 'false' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:21:9: 'false'
+ {
+ match("false");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__22"
+
+ // $ANTLR start "T__23"
+ public final void mT__23() throws RecognitionException {
+ try {
+ int _type = T__23;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:22:7: ( ':' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:22:9: ':'
+ {
+ match(':');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__23"
+
+ // $ANTLR start "T__24"
+ public final void mT__24() throws RecognitionException {
+ try {
+ int _type = T__24;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:23:7: ( '::' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:23:9: '::'
+ {
+ match("::");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__24"
+
+ // $ANTLR start "T__25"
+ public final void mT__25() throws RecognitionException {
+ try {
+ int _type = T__25;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:24:7: ( '[' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:24:9: '['
+ {
+ match('[');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__25"
+
+ // $ANTLR start "T__26"
+ public final void mT__26() throws RecognitionException {
+ try {
+ int _type = T__26;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:25:7: ( ']' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:25:9: ']'
+ {
+ match(']');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__26"
+
+ // $ANTLR start "T__27"
+ public final void mT__27() throws RecognitionException {
+ try {
+ int _type = T__27;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:26:7: ( '..' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:26:9: '..'
+ {
+ match("..");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__27"
+
+ // $ANTLR start "T__28"
+ public final void mT__28() throws RecognitionException {
+ try {
+ int _type = T__28;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:27:7: ( '{' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:27:9: '{'
+ {
+ match('{');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__28"
+
+ // $ANTLR start "T__29"
+ public final void mT__29() throws RecognitionException {
+ try {
+ int _type = T__29;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:28:7: ( '}' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:28:9: '}'
+ {
+ match('}');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__29"
+
+ // $ANTLR start "T__30"
+ public final void mT__30() throws RecognitionException {
+ try {
+ int _type = T__30;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:29:7: ( ',' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:29:9: ','
+ {
+ match(',');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__30"
+
+ // $ANTLR start "T__31"
+ public final void mT__31() throws RecognitionException {
+ try {
+ int _type = T__31;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:30:7: ( 'redefines' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:30:9: 'redefines'
+ {
+ match("redefines");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__31"
+
+ // $ANTLR start "T__32"
+ public final void mT__32() throws RecognitionException {
+ try {
+ int _type = T__32;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:31:7: ( 'subsets' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:31:9: 'subsets'
+ {
+ match("subsets");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__32"
+
+ // $ANTLR start "T__33"
+ public final void mT__33() throws RecognitionException {
+ try {
+ int _type = T__33;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:32:7: ( '=' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:32:9: '='
+ {
+ match('=');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__33"
+
+ // $ANTLR start "T__34"
+ public final void mT__34() throws RecognitionException {
+ try {
+ int _type = T__34;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:33:7: ( '.' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:33:9: '.'
+ {
+ match('.');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__34"
+
+ // $ANTLR start "T__35"
+ public final void mT__35() throws RecognitionException {
+ try {
+ int _type = T__35;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:34:7: ( 'null' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:34:9: 'null'
+ {
+ match("null");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__35"
+
+ // $ANTLR start "T__36"
+ public final void mT__36() throws RecognitionException {
+ try {
+ int _type = T__36;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:35:7: ( 'none' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:35:9: 'none'
+ {
+ match("none");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__36"
+
+ // $ANTLR start "T__37"
+ public final void mT__37() throws RecognitionException {
+ try {
+ int _type = T__37;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:36:7: ( '/' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:36:9: '/'
+ {
+ match('/');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__37"
+
+ // $ANTLR start "T__38"
+ public final void mT__38() throws RecognitionException {
+ try {
+ int _type = T__38;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:37:7: ( '<Undefined>' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:37:9: '<Undefined>'
+ {
+ match("<Undefined>");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__38"
+
+ // $ANTLR start "RULE_ID"
+ public final void mRULE_ID() throws RecognitionException {
+ try {
+ int _type = RULE_ID;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2919:9: ( ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2919:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2919:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' )
+ int alt3=2;
+ int LA3_0 = input.LA(1);
+
+ if ( ((LA3_0>='A' && LA3_0<='Z')||LA3_0=='_'||(LA3_0>='a' && LA3_0<='z')) ) {
+ alt3=1;
+ }
+ else if ( (LA3_0=='\'') ) {
+ alt3=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 3, 0, input);
+
+ throw nvae;
+ }
+ switch (alt3) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2919:12: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ {
+ if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2919:36: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ loop1:
+ do {
+ int alt1=2;
+ int LA1_0 = input.LA(1);
+
+ if ( ((LA1_0>='0' && LA1_0<='9')||(LA1_0>='A' && LA1_0<='Z')||LA1_0=='_'||(LA1_0>='a' && LA1_0<='z')) ) {
+ alt1=1;
+ }
+
+
+ switch (alt1) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:
+ {
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop1;
+ }
+ } while (true);
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2919:70: '\\'' ( options {greedy=false; } : . )* '\\''
+ {
+ match('\'');
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2919:75: ( options {greedy=false; } : . )*
+ loop2:
+ do {
+ int alt2=2;
+ int LA2_0 = input.LA(1);
+
+ if ( (LA2_0=='\'') ) {
+ alt2=2;
+ }
+ else if ( ((LA2_0>='\u0000' && LA2_0<='&')||(LA2_0>='(' && LA2_0<='\uFFFF')) ) {
+ alt2=1;
+ }
+
+
+ switch (alt2) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2919:103: .
+ {
+ matchAny();
+
+ }
+ break;
+
+ default :
+ break loop2;
+ }
+ } while (true);
+
+ match('\'');
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_ID"
+
+ // $ANTLR start "RULE_STRING"
+ public final void mRULE_STRING() throws RecognitionException {
+ try {
+ int _type = RULE_STRING;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2921:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2921:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
+ {
+ match('\"');
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2921:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
+ loop4:
+ do {
+ int alt4=3;
+ int LA4_0 = input.LA(1);
+
+ if ( (LA4_0=='\\') ) {
+ alt4=1;
+ }
+ else if ( ((LA4_0>='\u0000' && LA4_0<='!')||(LA4_0>='#' && LA4_0<='[')||(LA4_0>=']' && LA4_0<='\uFFFF')) ) {
+ alt4=2;
+ }
+
+
+ switch (alt4) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2921:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
+ {
+ match('\\');
+ if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2921:61: ~ ( ( '\\\\' | '\"' ) )
+ {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop4;
+ }
+ } while (true);
+
+ match('\"');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_STRING"
+
+ // $ANTLR start "RULE_ML_COMMENT"
+ public final void mRULE_ML_COMMENT() throws RecognitionException {
+ try {
+ int _type = RULE_ML_COMMENT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2923:17: ( '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2923:19: '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/'
+ {
+ match("/*");
+
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='?')||(input.LA(1)>='A' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2923:31: ( options {greedy=false; } : . )*
+ loop5:
+ do {
+ int alt5=2;
+ int LA5_0 = input.LA(1);
+
+ if ( (LA5_0=='*') ) {
+ int LA5_1 = input.LA(2);
+
+ if ( (LA5_1=='/') ) {
+ alt5=2;
+ }
+ else if ( ((LA5_1>='\u0000' && LA5_1<='.')||(LA5_1>='0' && LA5_1<='\uFFFF')) ) {
+ alt5=1;
+ }
+
+
+ }
+ else if ( ((LA5_0>='\u0000' && LA5_0<=')')||(LA5_0>='+' && LA5_0<='\uFFFF')) ) {
+ alt5=1;
+ }
+
+
+ switch (alt5) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2923:59: .
+ {
+ matchAny();
+
+ }
+ break;
+
+ default :
+ break loop5;
+ }
+ } while (true);
+
+ match("*/");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_ML_COMMENT"
+
+ // $ANTLR start "RULE_SL_COMMENT"
+ public final void mRULE_SL_COMMENT() throws RecognitionException {
+ try {
+ int _type = RULE_SL_COMMENT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2925:17: ( '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2925:19: '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )?
+ {
+ match("//");
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2925:24: (~ ( ( '\\n' | '\\r' | '@' ) ) )*
+ loop6:
+ do {
+ int alt6=2;
+ int LA6_0 = input.LA(1);
+
+ if ( ((LA6_0>='\u0000' && LA6_0<='\t')||(LA6_0>='\u000B' && LA6_0<='\f')||(LA6_0>='\u000E' && LA6_0<='?')||(LA6_0>='A' && LA6_0<='\uFFFF')) ) {
+ alt6=1;
+ }
+
+
+ switch (alt6) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2925:24: ~ ( ( '\\n' | '\\r' | '@' ) )
+ {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='?')||(input.LA(1)>='A' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop6;
+ }
+ } while (true);
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2925:44: ( ( '\\r' )? '\\n' )?
+ int alt8=2;
+ int LA8_0 = input.LA(1);
+
+ if ( (LA8_0=='\n'||LA8_0=='\r') ) {
+ alt8=1;
+ }
+ switch (alt8) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2925:45: ( '\\r' )? '\\n'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2925:45: ( '\\r' )?
+ int alt7=2;
+ int LA7_0 = input.LA(1);
+
+ if ( (LA7_0=='\r') ) {
+ alt7=1;
+ }
+ switch (alt7) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2925:45: '\\r'
+ {
+ match('\r');
+
+ }
+ break;
+
+ }
+
+ match('\n');
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_SL_COMMENT"
+
+ // $ANTLR start "RULE_INT"
+ public final void mRULE_INT() throws RecognitionException {
+ try {
+ int _type = RULE_INT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2927:10: ( ( '0' .. '9' )+ )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2927:12: ( '0' .. '9' )+
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2927:12: ( '0' .. '9' )+
+ int cnt9=0;
+ loop9:
+ do {
+ int alt9=2;
+ int LA9_0 = input.LA(1);
+
+ if ( ((LA9_0>='0' && LA9_0<='9')) ) {
+ alt9=1;
+ }
+
+
+ switch (alt9) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2927:13: '0' .. '9'
+ {
+ matchRange('0','9');
+
+ }
+ break;
+
+ default :
+ if ( cnt9 >= 1 ) break loop9;
+ EarlyExitException eee =
+ new EarlyExitException(9, input);
+ throw eee;
+ }
+ cnt9++;
+ } while (true);
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_INT"
+
+ // $ANTLR start "RULE_INTEGER_VALUE"
+ public final void mRULE_INTEGER_VALUE() throws RecognitionException {
+ try {
+ int _type = RULE_INTEGER_VALUE;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:20: ( ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
+ int alt22=4;
+ int LA22_0 = input.LA(1);
+
+ if ( (LA22_0=='0') ) {
+ switch ( input.LA(2) ) {
+ case 'B':
+ case 'b':
+ {
+ alt22=2;
+ }
+ break;
+ case 'X':
+ case 'x':
+ {
+ alt22=3;
+ }
+ break;
+ case '0':
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ case '_':
+ {
+ alt22=4;
+ }
+ break;
+ default:
+ alt22=1;}
+
+ }
+ else if ( ((LA22_0>='1' && LA22_0<='9')) ) {
+ alt22=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 22, 0, input);
+
+ throw nvae;
+ }
+ switch (alt22) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
+ int alt12=2;
+ int LA12_0 = input.LA(1);
+
+ if ( (LA12_0=='0') ) {
+ alt12=1;
+ }
+ else if ( ((LA12_0>='1' && LA12_0<='9')) ) {
+ alt12=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 12, 0, input);
+
+ throw nvae;
+ }
+ switch (alt12) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:24: '0'
+ {
+ match('0');
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:28: '1' .. '9' ( ( '_' )? '0' .. '9' )*
+ {
+ matchRange('1','9');
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:37: ( ( '_' )? '0' .. '9' )*
+ loop11:
+ do {
+ int alt11=2;
+ int LA11_0 = input.LA(1);
+
+ if ( ((LA11_0>='0' && LA11_0<='9')||LA11_0=='_') ) {
+ alt11=1;
+ }
+
+
+ switch (alt11) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:38: ( '_' )? '0' .. '9'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:38: ( '_' )?
+ int alt10=2;
+ int LA10_0 = input.LA(1);
+
+ if ( (LA10_0=='_') ) {
+ alt10=1;
+ }
+ switch (alt10) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:38: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','9');
+
+ }
+ break;
+
+ default :
+ break loop11;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:55: ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )*
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:55: ( '0b' | '0B' )
+ int alt13=2;
+ int LA13_0 = input.LA(1);
+
+ if ( (LA13_0=='0') ) {
+ int LA13_1 = input.LA(2);
+
+ if ( (LA13_1=='b') ) {
+ alt13=1;
+ }
+ else if ( (LA13_1=='B') ) {
+ alt13=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 13, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 13, 0, input);
+
+ throw nvae;
+ }
+ switch (alt13) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:56: '0b'
+ {
+ match("0b");
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:61: '0B'
+ {
+ match("0B");
+
+
+ }
+ break;
+
+ }
+
+ matchRange('0','1');
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:76: ( ( '_' )? '0' .. '1' )*
+ loop15:
+ do {
+ int alt15=2;
+ int LA15_0 = input.LA(1);
+
+ if ( ((LA15_0>='0' && LA15_0<='1')||LA15_0=='_') ) {
+ alt15=1;
+ }
+
+
+ switch (alt15) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:77: ( '_' )? '0' .. '1'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:77: ( '_' )?
+ int alt14=2;
+ int LA14_0 = input.LA(1);
+
+ if ( (LA14_0=='_') ) {
+ alt14=1;
+ }
+ switch (alt14) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:77: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','1');
+
+ }
+ break;
+
+ default :
+ break loop15;
+ }
+ } while (true);
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:93: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:93: ( '0x' | '0X' )
+ int alt16=2;
+ int LA16_0 = input.LA(1);
+
+ if ( (LA16_0=='0') ) {
+ int LA16_1 = input.LA(2);
+
+ if ( (LA16_1=='x') ) {
+ alt16=1;
+ }
+ else if ( (LA16_1=='X') ) {
+ alt16=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 16, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 16, 0, input);
+
+ throw nvae;
+ }
+ switch (alt16) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:94: '0x'
+ {
+ match("0x");
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:99: '0X'
+ {
+ match("0X");
+
+
+ }
+ break;
+
+ }
+
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:134: ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
+ loop18:
+ do {
+ int alt18=2;
+ int LA18_0 = input.LA(1);
+
+ if ( ((LA18_0>='0' && LA18_0<='9')||(LA18_0>='A' && LA18_0<='F')||LA18_0=='_'||(LA18_0>='a' && LA18_0<='f')) ) {
+ alt18=1;
+ }
+
+
+ switch (alt18) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:135: ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:135: ( '_' )?
+ int alt17=2;
+ int LA17_0 = input.LA(1);
+
+ if ( (LA17_0=='_') ) {
+ alt17=1;
+ }
+ switch (alt17) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:135: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop18;
+ }
+ } while (true);
+
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:171: '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )*
+ {
+ match('0');
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:175: ( '_' )?
+ int alt19=2;
+ int LA19_0 = input.LA(1);
+
+ if ( (LA19_0=='_') ) {
+ alt19=1;
+ }
+ switch (alt19) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:175: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','7');
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:189: ( ( '_' )? '0' .. '7' )*
+ loop21:
+ do {
+ int alt21=2;
+ int LA21_0 = input.LA(1);
+
+ if ( ((LA21_0>='0' && LA21_0<='7')||LA21_0=='_') ) {
+ alt21=1;
+ }
+
+
+ switch (alt21) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:190: ( '_' )? '0' .. '7'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:190: ( '_' )?
+ int alt20=2;
+ int LA20_0 = input.LA(1);
+
+ if ( (LA20_0=='_') ) {
+ alt20=1;
+ }
+ switch (alt20) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2929:190: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','7');
+
+ }
+ break;
+
+ default :
+ break loop21;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_INTEGER_VALUE"
+
+ // $ANTLR start "RULE_WS"
+ public final void mRULE_WS() throws RecognitionException {
+ try {
+ int _type = RULE_WS;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2931:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2931:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2931:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ int cnt23=0;
+ loop23:
+ do {
+ int alt23=2;
+ int LA23_0 = input.LA(1);
+
+ if ( ((LA23_0>='\t' && LA23_0<='\n')||LA23_0=='\r'||LA23_0==' ') ) {
+ alt23=1;
+ }
+
+
+ switch (alt23) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:
+ {
+ if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ if ( cnt23 >= 1 ) break loop23;
+ EarlyExitException eee =
+ new EarlyExitException(23, input);
+ throw eee;
+ }
+ cnt23++;
+ } while (true);
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_WS"
+
+ // $ANTLR start "RULE_ANY_OTHER"
+ public final void mRULE_ANY_OTHER() throws RecognitionException {
+ try {
+ int _type = RULE_ANY_OTHER;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2933:16: ( . )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2933:18: .
+ {
+ matchAny();
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_ANY_OTHER"
+
+ public void mTokens() throws RecognitionException {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER )
+ int alt24=35;
+ alt24 = dfa24.predict(input);
+ switch (alt24) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:10: T__12
+ {
+ mT__12();
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:16: T__13
+ {
+ mT__13();
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:22: T__14
+ {
+ mT__14();
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:28: T__15
+ {
+ mT__15();
+
+ }
+ break;
+ case 5 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:34: T__16
+ {
+ mT__16();
+
+ }
+ break;
+ case 6 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:40: T__17
+ {
+ mT__17();
+
+ }
+ break;
+ case 7 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:46: T__18
+ {
+ mT__18();
+
+ }
+ break;
+ case 8 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:52: T__19
+ {
+ mT__19();
+
+ }
+ break;
+ case 9 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:58: T__20
+ {
+ mT__20();
+
+ }
+ break;
+ case 10 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:64: T__21
+ {
+ mT__21();
+
+ }
+ break;
+ case 11 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:70: T__22
+ {
+ mT__22();
+
+ }
+ break;
+ case 12 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:76: T__23
+ {
+ mT__23();
+
+ }
+ break;
+ case 13 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:82: T__24
+ {
+ mT__24();
+
+ }
+ break;
+ case 14 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:88: T__25
+ {
+ mT__25();
+
+ }
+ break;
+ case 15 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:94: T__26
+ {
+ mT__26();
+
+ }
+ break;
+ case 16 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:100: T__27
+ {
+ mT__27();
+
+ }
+ break;
+ case 17 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:106: T__28
+ {
+ mT__28();
+
+ }
+ break;
+ case 18 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:112: T__29
+ {
+ mT__29();
+
+ }
+ break;
+ case 19 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:118: T__30
+ {
+ mT__30();
+
+ }
+ break;
+ case 20 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:124: T__31
+ {
+ mT__31();
+
+ }
+ break;
+ case 21 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:130: T__32
+ {
+ mT__32();
+
+ }
+ break;
+ case 22 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:136: T__33
+ {
+ mT__33();
+
+ }
+ break;
+ case 23 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:142: T__34
+ {
+ mT__34();
+
+ }
+ break;
+ case 24 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:148: T__35
+ {
+ mT__35();
+
+ }
+ break;
+ case 25 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:154: T__36
+ {
+ mT__36();
+
+ }
+ break;
+ case 26 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:160: T__37
+ {
+ mT__37();
+
+ }
+ break;
+ case 27 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:166: T__38
+ {
+ mT__38();
+
+ }
+ break;
+ case 28 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:172: RULE_ID
+ {
+ mRULE_ID();
+
+ }
+ break;
+ case 29 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:180: RULE_STRING
+ {
+ mRULE_STRING();
+
+ }
+ break;
+ case 30 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:192: RULE_ML_COMMENT
+ {
+ mRULE_ML_COMMENT();
+
+ }
+ break;
+ case 31 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:208: RULE_SL_COMMENT
+ {
+ mRULE_SL_COMMENT();
+
+ }
+ break;
+ case 32 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:224: RULE_INT
+ {
+ mRULE_INT();
+
+ }
+ break;
+ case 33 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:233: RULE_INTEGER_VALUE
+ {
+ mRULE_INTEGER_VALUE();
+
+ }
+ break;
+ case 34 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:252: RULE_WS
+ {
+ mRULE_WS();
+
+ }
+ break;
+ case 35 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1:260: RULE_ANY_OTHER
+ {
+ mRULE_ANY_OTHER();
+
+ }
+ break;
+
+ }
+
+ }
+
+
+ protected DFA24 dfa24 = new DFA24(this);
+ static final String DFA24_eotS =
+ "\6\uffff\5\44\1\52\2\uffff\1\56\3\uffff\1\44\1\uffff\1\44\1\70"+
+ "\1\35\1\uffff\2\35\2\75\7\uffff\1\44\1\uffff\4\44\11\uffff\1\44"+
+ "\1\uffff\2\44\6\uffff\1\75\1\uffff\1\75\1\uffff\11\44\1\75\5\44"+
+ "\1\131\2\44\1\134\1\135\2\44\1\140\2\44\1\uffff\1\143\1\44\2\uffff"+
+ "\2\44\1\uffff\1\147\1\44\1\uffff\3\44\1\uffff\1\154\1\155\1\156"+
+ "\1\44\3\uffff\1\160\1\uffff";
+ static final String DFA24_eofS =
+ "\161\uffff";
+ static final String DFA24_minS =
+ "\1\0\5\uffff\1\145\1\156\2\162\1\141\1\72\2\uffff\1\56\3\uffff"+
+ "\1\165\1\uffff\1\157\1\52\1\125\1\uffff\2\0\2\60\7\uffff\1\141\1"+
+ "\uffff\1\151\1\144\1\165\1\154\11\uffff\1\142\1\uffff\1\154\1\156"+
+ "\6\uffff\1\60\1\uffff\1\60\1\uffff\1\144\1\145\1\157\2\145\2\163"+
+ "\1\154\1\145\1\60\1\117\1\146\1\156\1\165\1\162\1\60\2\145\2\60"+
+ "\1\156\1\151\1\60\2\145\1\uffff\1\60\1\164\2\uffff\1\154\1\156\1"+
+ "\uffff\1\60\1\144\1\uffff\1\163\1\171\1\145\1\uffff\3\60\1\163\3"+
+ "\uffff\1\60\1\uffff";
+ static final String DFA24_maxS =
+ "\1\uffff\5\uffff\1\145\1\156\2\162\1\141\1\72\2\uffff\1\56\3\uffff"+
+ "\1\165\1\uffff\1\165\1\57\1\125\1\uffff\2\uffff\1\170\1\137\7\uffff"+
+ "\1\144\1\uffff\1\151\1\144\1\165\1\154\11\uffff\1\142\1\uffff\1"+
+ "\154\1\156\6\uffff\1\137\1\uffff\1\137\1\uffff\1\144\1\145\1\161"+
+ "\2\145\2\163\1\154\1\145\1\137\1\117\1\146\1\156\1\165\1\162\1\172"+
+ "\2\145\2\172\1\156\1\151\1\172\2\145\1\uffff\1\172\1\164\2\uffff"+
+ "\1\154\1\156\1\uffff\1\172\1\144\1\uffff\1\163\1\171\1\145\1\uffff"+
+ "\3\172\1\163\3\uffff\1\172\1\uffff";
+ static final String DFA24_acceptS =
+ "\1\uffff\1\1\1\2\1\3\1\4\1\5\6\uffff\1\16\1\17\1\uffff\1\21\1\22"+
+ "\1\23\1\uffff\1\26\3\uffff\1\34\4\uffff\1\42\1\43\1\1\1\2\1\3\1"+
+ "\4\1\5\1\uffff\1\34\4\uffff\1\15\1\14\1\16\1\17\1\20\1\27\1\21\1"+
+ "\22\1\23\1\uffff\1\26\2\uffff\1\36\1\37\1\32\1\33\1\35\1\41\1\uffff"+
+ "\1\40\1\uffff\1\42\31\uffff\1\12\2\uffff\1\30\1\31\2\uffff\1\7\2"+
+ "\uffff\1\13\3\uffff\1\11\4\uffff\1\10\1\25\1\6\1\uffff\1\24";
+ static final String DFA24_specialS =
+ "\1\0\27\uffff\1\1\1\2\127\uffff}>";
+ static final String[] DFA24_transitionS = {
+ "\11\35\2\34\2\35\1\34\22\35\1\34\1\35\1\31\1\4\3\35\1\30\2"+
+ "\35\1\1\1\2\1\21\1\3\1\16\1\25\1\32\11\33\1\13\1\35\1\26\1\23"+
+ "\3\35\32\27\1\14\1\35\1\15\1\35\1\27\1\35\5\27\1\12\7\27\1\24"+
+ "\1\10\2\27\1\6\1\22\1\11\1\7\5\27\1\17\1\35\1\20\1\5\uff81\35",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\43",
+ "\1\45",
+ "\1\46",
+ "\1\47",
+ "\1\50",
+ "\1\51",
+ "",
+ "",
+ "\1\55",
+ "",
+ "",
+ "",
+ "\1\62",
+ "",
+ "\1\65\5\uffff\1\64",
+ "\1\66\4\uffff\1\67",
+ "\1\71",
+ "",
+ "\0\44",
+ "\0\72",
+ "\10\74\12\uffff\1\73\25\uffff\1\73\6\uffff\1\73\2\uffff\1"+
+ "\73\25\uffff\1\73",
+ "\12\76\45\uffff\1\73",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\100\2\uffff\1\101",
+ "",
+ "\1\102",
+ "\1\103",
+ "\1\104",
+ "\1\105",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\106",
+ "",
+ "\1\107",
+ "\1\110",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\10\111\47\uffff\1\73",
+ "",
+ "\12\76\45\uffff\1\73",
+ "",
+ "\1\112",
+ "\1\113",
+ "\1\114\1\uffff\1\115",
+ "\1\116",
+ "\1\117",
+ "\1\120",
+ "\1\121",
+ "\1\122",
+ "\1\123",
+ "\10\111\47\uffff\1\73",
+ "\1\124",
+ "\1\125",
+ "\1\126",
+ "\1\127",
+ "\1\130",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\1\132",
+ "\1\133",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\1\136",
+ "\1\137",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\1\141",
+ "\1\142",
+ "",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\1\144",
+ "",
+ "",
+ "\1\145",
+ "\1\146",
+ "",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\1\150",
+ "",
+ "\1\151",
+ "\1\152",
+ "\1\153",
+ "",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\1\157",
+ "",
+ "",
+ "",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ ""
+ };
+
+ static final short[] DFA24_eot = DFA.unpackEncodedString(DFA24_eotS);
+ static final short[] DFA24_eof = DFA.unpackEncodedString(DFA24_eofS);
+ static final char[] DFA24_min = DFA.unpackEncodedStringToUnsignedChars(DFA24_minS);
+ static final char[] DFA24_max = DFA.unpackEncodedStringToUnsignedChars(DFA24_maxS);
+ static final short[] DFA24_accept = DFA.unpackEncodedString(DFA24_acceptS);
+ static final short[] DFA24_special = DFA.unpackEncodedString(DFA24_specialS);
+ static final short[][] DFA24_transition;
+
+ static {
+ int numStates = DFA24_transitionS.length;
+ DFA24_transition = new short[numStates][];
+ for (int i=0; i<numStates; i++) {
+ DFA24_transition[i] = DFA.unpackEncodedString(DFA24_transitionS[i]);
+ }
+ }
+
+ class DFA24 extends DFA {
+
+ public DFA24(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 24;
+ this.eot = DFA24_eot;
+ this.eof = DFA24_eof;
+ this.min = DFA24_min;
+ this.max = DFA24_max;
+ this.accept = DFA24_accept;
+ this.special = DFA24_special;
+ this.transition = DFA24_transition;
+ }
+ public String getDescription() {
+ return "1:1: Tokens : ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER );";
+ }
+ public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
+ IntStream input = _input;
+ int _s = s;
+ switch ( s ) {
+ case 0 :
+ int LA24_0 = input.LA(1);
+
+ s = -1;
+ if ( (LA24_0=='*') ) {s = 1;}
+
+ else if ( (LA24_0=='+') ) {s = 2;}
+
+ else if ( (LA24_0=='-') ) {s = 3;}
+
+ else if ( (LA24_0=='#') ) {s = 4;}
+
+ else if ( (LA24_0=='~') ) {s = 5;}
+
+ else if ( (LA24_0=='r') ) {s = 6;}
+
+ else if ( (LA24_0=='u') ) {s = 7;}
+
+ else if ( (LA24_0=='o') ) {s = 8;}
+
+ else if ( (LA24_0=='t') ) {s = 9;}
+
+ else if ( (LA24_0=='f') ) {s = 10;}
+
+ else if ( (LA24_0==':') ) {s = 11;}
+
+ else if ( (LA24_0=='[') ) {s = 12;}
+
+ else if ( (LA24_0==']') ) {s = 13;}
+
+ else if ( (LA24_0=='.') ) {s = 14;}
+
+ else if ( (LA24_0=='{') ) {s = 15;}
+
+ else if ( (LA24_0=='}') ) {s = 16;}
+
+ else if ( (LA24_0==',') ) {s = 17;}
+
+ else if ( (LA24_0=='s') ) {s = 18;}
+
+ else if ( (LA24_0=='=') ) {s = 19;}
+
+ else if ( (LA24_0=='n') ) {s = 20;}
+
+ else if ( (LA24_0=='/') ) {s = 21;}
+
+ else if ( (LA24_0=='<') ) {s = 22;}
+
+ else if ( ((LA24_0>='A' && LA24_0<='Z')||LA24_0=='_'||(LA24_0>='a' && LA24_0<='e')||(LA24_0>='g' && LA24_0<='m')||(LA24_0>='p' && LA24_0<='q')||(LA24_0>='v' && LA24_0<='z')) ) {s = 23;}
+
+ else if ( (LA24_0=='\'') ) {s = 24;}
+
+ else if ( (LA24_0=='\"') ) {s = 25;}
+
+ else if ( (LA24_0=='0') ) {s = 26;}
+
+ else if ( ((LA24_0>='1' && LA24_0<='9')) ) {s = 27;}
+
+ else if ( ((LA24_0>='\t' && LA24_0<='\n')||LA24_0=='\r'||LA24_0==' ') ) {s = 28;}
+
+ else if ( ((LA24_0>='\u0000' && LA24_0<='\b')||(LA24_0>='\u000B' && LA24_0<='\f')||(LA24_0>='\u000E' && LA24_0<='\u001F')||LA24_0=='!'||(LA24_0>='$' && LA24_0<='&')||(LA24_0>='(' && LA24_0<=')')||LA24_0==';'||(LA24_0>='>' && LA24_0<='@')||LA24_0=='\\'||LA24_0=='^'||LA24_0=='`'||LA24_0=='|'||(LA24_0>='\u007F' && LA24_0<='\uFFFF')) ) {s = 29;}
+
+ if ( s>=0 ) return s;
+ break;
+ case 1 :
+ int LA24_24 = input.LA(1);
+
+ s = -1;
+ if ( ((LA24_24>='\u0000' && LA24_24<='\uFFFF')) ) {s = 36;}
+
+ else s = 29;
+
+ if ( s>=0 ) return s;
+ break;
+ case 2 :
+ int LA24_25 = input.LA(1);
+
+ s = -1;
+ if ( ((LA24_25>='\u0000' && LA24_25<='\uFFFF')) ) {s = 58;}
+
+ else s = 29;
+
+ if ( s>=0 ) return s;
+ break;
+ }
+ NoViableAltException nvae =
+ new NoViableAltException(getDescription(), 24, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+
+
} \ No newline at end of file
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPortParser.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPortParser.java
index 3246aeb25b2..3afca8661df 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPortParser.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPortParser.java
@@ -1,7857 +1,8205 @@
-package org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal;
-
-import org.eclipse.xtext.*;
-import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser;
-import org.eclipse.papyrus.uml.textedit.port.xtext.services.UmlPortGrammarAccess;
-
-import org.antlr.runtime.*;
-
-@SuppressWarnings("all")
-public class InternalUmlPortParser extends AbstractInternalContentAssistParser {
- public static final String[] tokenNames = new String[] {
- "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_INT", "RULE_ID", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_INTEGER_VALUE", "RULE_WS", "RULE_ANY_OTHER", "'*'", "'+'", "'-'", "'#'", "'~'", "'readOnly'", "'union'", "'ordered'",
- "'unique'", "'true'", "'false'", "':'", "'::'", "'['", "']'", "'..'", "'{'", "'}'", "','", "'redefines'", "'subsets'", "'='", "'.'", "'null'", "'none'", "'/'", "'<Undefined>'"
- };
- public static final int RULE_ID = 5;
- public static final int T__29 = 29;
- public static final int T__28 = 28;
- public static final int T__27 = 27;
- public static final int T__26 = 26;
- public static final int T__25 = 25;
- public static final int T__24 = 24;
- public static final int T__23 = 23;
- public static final int T__22 = 22;
- public static final int RULE_ANY_OTHER = 11;
- public static final int T__21 = 21;
- public static final int T__20 = 20;
- public static final int RULE_INTEGER_VALUE = 9;
- public static final int RULE_SL_COMMENT = 8;
- public static final int EOF = -1;
- public static final int RULE_ML_COMMENT = 7;
- public static final int T__30 = 30;
- public static final int T__19 = 19;
- public static final int T__31 = 31;
- public static final int RULE_STRING = 6;
- public static final int T__32 = 32;
- public static final int T__33 = 33;
- public static final int T__16 = 16;
- public static final int T__34 = 34;
- public static final int T__15 = 15;
- public static final int T__35 = 35;
- public static final int T__18 = 18;
- public static final int T__36 = 36;
- public static final int T__17 = 17;
- public static final int T__37 = 37;
- public static final int T__12 = 12;
- public static final int T__38 = 38;
- public static final int T__14 = 14;
- public static final int T__13 = 13;
- public static final int RULE_INT = 4;
- public static final int RULE_WS = 10;
-
- // delegates
- // delegators
-
-
- public InternalUmlPortParser(TokenStream input) {
- this(input, new RecognizerSharedState());
- }
-
- public InternalUmlPortParser(TokenStream input, RecognizerSharedState state) {
- super(input, state);
-
- }
-
-
- @Override
- public String[] getTokenNames() {
- return InternalUmlPortParser.tokenNames;
- }
-
- @Override
- public String getGrammarFileName() {
- return "../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g";
- }
-
-
-
- private UmlPortGrammarAccess grammarAccess;
-
- public void setGrammarAccess(UmlPortGrammarAccess grammarAccess) {
- this.grammarAccess = grammarAccess;
- }
-
- @Override
- protected Grammar getGrammar() {
- return grammarAccess.getGrammar();
- }
-
- @Override
- protected String getValueForTokenName(String tokenName) {
- return tokenName;
- }
-
-
-
-
- // $ANTLR start "entryRulePortRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:60:1: entryRulePortRule : rulePortRule EOF ;
- public final void entryRulePortRule() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:61:1: ( rulePortRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:62:1: rulePortRule EOF
- {
- before(grammarAccess.getPortRuleRule());
- pushFollow(FOLLOW_rulePortRule_in_entryRulePortRule61);
- rulePortRule();
-
- state._fsp--;
-
- after(grammarAccess.getPortRuleRule());
- match(input, EOF, FOLLOW_EOF_in_entryRulePortRule68);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRulePortRule"
-
-
- // $ANTLR start "rulePortRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:69:1: rulePortRule : ( ( rule__PortRule__Group__0 ) ) ;
- public final void rulePortRule() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:73:2: ( ( ( rule__PortRule__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:74:1: ( ( rule__PortRule__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:74:1: ( ( rule__PortRule__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:75:1: ( rule__PortRule__Group__0 )
- {
- before(grammarAccess.getPortRuleAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:76:1: ( rule__PortRule__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:76:2: rule__PortRule__Group__0
- {
- pushFollow(FOLLOW_rule__PortRule__Group__0_in_rulePortRule94);
- rule__PortRule__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getPortRuleAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rulePortRule"
-
-
- // $ANTLR start "entryRuleVisibilityRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:88:1: entryRuleVisibilityRule : ruleVisibilityRule EOF ;
- public final void entryRuleVisibilityRule() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:89:1: ( ruleVisibilityRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:90:1: ruleVisibilityRule EOF
- {
- before(grammarAccess.getVisibilityRuleRule());
- pushFollow(FOLLOW_ruleVisibilityRule_in_entryRuleVisibilityRule121);
- ruleVisibilityRule();
-
- state._fsp--;
-
- after(grammarAccess.getVisibilityRuleRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleVisibilityRule128);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleVisibilityRule"
-
-
- // $ANTLR start "ruleVisibilityRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:97:1: ruleVisibilityRule : ( ( rule__VisibilityRule__VisibilityAssignment ) ) ;
- public final void ruleVisibilityRule() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:101:2: ( ( ( rule__VisibilityRule__VisibilityAssignment ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:102:1: ( ( rule__VisibilityRule__VisibilityAssignment ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:102:1: ( ( rule__VisibilityRule__VisibilityAssignment ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:103:1: ( rule__VisibilityRule__VisibilityAssignment )
- {
- before(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:104:1: ( rule__VisibilityRule__VisibilityAssignment )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:104:2: rule__VisibilityRule__VisibilityAssignment
- {
- pushFollow(FOLLOW_rule__VisibilityRule__VisibilityAssignment_in_ruleVisibilityRule154);
- rule__VisibilityRule__VisibilityAssignment();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleVisibilityRule"
-
-
- // $ANTLR start "entryRuleTypeRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:116:1: entryRuleTypeRule : ruleTypeRule EOF ;
- public final void entryRuleTypeRule() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:117:1: ( ruleTypeRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:118:1: ruleTypeRule EOF
- {
- before(grammarAccess.getTypeRuleRule());
- pushFollow(FOLLOW_ruleTypeRule_in_entryRuleTypeRule181);
- ruleTypeRule();
-
- state._fsp--;
-
- after(grammarAccess.getTypeRuleRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleTypeRule188);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleTypeRule"
-
-
- // $ANTLR start "ruleTypeRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:125:1: ruleTypeRule : ( ( rule__TypeRule__Group__0 ) ) ;
- public final void ruleTypeRule() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:129:2: ( ( ( rule__TypeRule__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:130:1: ( ( rule__TypeRule__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:130:1: ( ( rule__TypeRule__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:131:1: ( rule__TypeRule__Group__0 )
- {
- before(grammarAccess.getTypeRuleAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:132:1: ( rule__TypeRule__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:132:2: rule__TypeRule__Group__0
- {
- pushFollow(FOLLOW_rule__TypeRule__Group__0_in_ruleTypeRule214);
- rule__TypeRule__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getTypeRuleAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleTypeRule"
-
-
- // $ANTLR start "entryRuleQualifiedName"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:144:1: entryRuleQualifiedName : ruleQualifiedName EOF ;
- public final void entryRuleQualifiedName() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:145:1: ( ruleQualifiedName EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:146:1: ruleQualifiedName EOF
- {
- before(grammarAccess.getQualifiedNameRule());
- pushFollow(FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName241);
- ruleQualifiedName();
-
- state._fsp--;
-
- after(grammarAccess.getQualifiedNameRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleQualifiedName248);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleQualifiedName"
-
-
- // $ANTLR start "ruleQualifiedName"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:153:1: ruleQualifiedName : ( ( rule__QualifiedName__Group__0 ) ) ;
- public final void ruleQualifiedName() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:157:2: ( ( ( rule__QualifiedName__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:158:1: ( ( rule__QualifiedName__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:158:1: ( ( rule__QualifiedName__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:159:1: ( rule__QualifiedName__Group__0 )
- {
- before(grammarAccess.getQualifiedNameAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:160:1: ( rule__QualifiedName__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:160:2: rule__QualifiedName__Group__0
- {
- pushFollow(FOLLOW_rule__QualifiedName__Group__0_in_ruleQualifiedName274);
- rule__QualifiedName__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getQualifiedNameAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleQualifiedName"
-
-
- // $ANTLR start "entryRuleMultiplicityRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:172:1: entryRuleMultiplicityRule : ruleMultiplicityRule EOF ;
- public final void entryRuleMultiplicityRule() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:173:1: ( ruleMultiplicityRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:174:1: ruleMultiplicityRule EOF
- {
- before(grammarAccess.getMultiplicityRuleRule());
- pushFollow(FOLLOW_ruleMultiplicityRule_in_entryRuleMultiplicityRule301);
- ruleMultiplicityRule();
-
- state._fsp--;
-
- after(grammarAccess.getMultiplicityRuleRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleMultiplicityRule308);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleMultiplicityRule"
-
-
- // $ANTLR start "ruleMultiplicityRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:181:1: ruleMultiplicityRule : ( ( rule__MultiplicityRule__Group__0 ) ) ;
- public final void ruleMultiplicityRule() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:185:2: ( ( ( rule__MultiplicityRule__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:186:1: ( ( rule__MultiplicityRule__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:186:1: ( ( rule__MultiplicityRule__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:187:1: ( rule__MultiplicityRule__Group__0 )
- {
- before(grammarAccess.getMultiplicityRuleAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:188:1: ( rule__MultiplicityRule__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:188:2: rule__MultiplicityRule__Group__0
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__Group__0_in_ruleMultiplicityRule334);
- rule__MultiplicityRule__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getMultiplicityRuleAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleMultiplicityRule"
-
-
- // $ANTLR start "entryRuleBoundSpecification"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:200:1: entryRuleBoundSpecification : ruleBoundSpecification EOF ;
- public final void entryRuleBoundSpecification() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:201:1: ( ruleBoundSpecification EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:202:1: ruleBoundSpecification EOF
- {
- before(grammarAccess.getBoundSpecificationRule());
- pushFollow(FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification361);
- ruleBoundSpecification();
-
- state._fsp--;
-
- after(grammarAccess.getBoundSpecificationRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleBoundSpecification368);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleBoundSpecification"
-
-
- // $ANTLR start "ruleBoundSpecification"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:209:1: ruleBoundSpecification : ( ( rule__BoundSpecification__ValueAssignment ) ) ;
- public final void ruleBoundSpecification() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:213:2: ( ( ( rule__BoundSpecification__ValueAssignment ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:214:1: ( ( rule__BoundSpecification__ValueAssignment ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:214:1: ( ( rule__BoundSpecification__ValueAssignment ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:215:1: ( rule__BoundSpecification__ValueAssignment )
- {
- before(grammarAccess.getBoundSpecificationAccess().getValueAssignment());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:216:1: ( rule__BoundSpecification__ValueAssignment )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:216:2: rule__BoundSpecification__ValueAssignment
- {
- pushFollow(FOLLOW_rule__BoundSpecification__ValueAssignment_in_ruleBoundSpecification394);
- rule__BoundSpecification__ValueAssignment();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getBoundSpecificationAccess().getValueAssignment());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleBoundSpecification"
-
-
- // $ANTLR start "entryRuleUnlimitedLiteral"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:228:1: entryRuleUnlimitedLiteral : ruleUnlimitedLiteral EOF ;
- public final void entryRuleUnlimitedLiteral() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:229:1: ( ruleUnlimitedLiteral EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:230:1: ruleUnlimitedLiteral EOF
- {
- before(grammarAccess.getUnlimitedLiteralRule());
- pushFollow(FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral421);
- ruleUnlimitedLiteral();
-
- state._fsp--;
-
- after(grammarAccess.getUnlimitedLiteralRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleUnlimitedLiteral428);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleUnlimitedLiteral"
-
-
- // $ANTLR start "ruleUnlimitedLiteral"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:237:1: ruleUnlimitedLiteral : ( ( rule__UnlimitedLiteral__Alternatives ) ) ;
- public final void ruleUnlimitedLiteral() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:241:2: ( ( ( rule__UnlimitedLiteral__Alternatives ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:242:1: ( ( rule__UnlimitedLiteral__Alternatives ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:242:1: ( ( rule__UnlimitedLiteral__Alternatives ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:243:1: ( rule__UnlimitedLiteral__Alternatives )
- {
- before(grammarAccess.getUnlimitedLiteralAccess().getAlternatives());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:244:1: ( rule__UnlimitedLiteral__Alternatives )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:244:2: rule__UnlimitedLiteral__Alternatives
- {
- pushFollow(FOLLOW_rule__UnlimitedLiteral__Alternatives_in_ruleUnlimitedLiteral454);
- rule__UnlimitedLiteral__Alternatives();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getUnlimitedLiteralAccess().getAlternatives());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleUnlimitedLiteral"
-
-
- // $ANTLR start "entryRuleModifiersRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:256:1: entryRuleModifiersRule : ruleModifiersRule EOF ;
- public final void entryRuleModifiersRule() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:257:1: ( ruleModifiersRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:258:1: ruleModifiersRule EOF
- {
- before(grammarAccess.getModifiersRuleRule());
- pushFollow(FOLLOW_ruleModifiersRule_in_entryRuleModifiersRule481);
- ruleModifiersRule();
-
- state._fsp--;
-
- after(grammarAccess.getModifiersRuleRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleModifiersRule488);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleModifiersRule"
-
-
- // $ANTLR start "ruleModifiersRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:265:1: ruleModifiersRule : ( ( rule__ModifiersRule__Group__0 ) ) ;
- public final void ruleModifiersRule() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:269:2: ( ( ( rule__ModifiersRule__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:270:1: ( ( rule__ModifiersRule__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:270:1: ( ( rule__ModifiersRule__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:271:1: ( rule__ModifiersRule__Group__0 )
- {
- before(grammarAccess.getModifiersRuleAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:272:1: ( rule__ModifiersRule__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:272:2: rule__ModifiersRule__Group__0
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group__0_in_ruleModifiersRule514);
- rule__ModifiersRule__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getModifiersRuleAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleModifiersRule"
-
-
- // $ANTLR start "entryRuleModifierSpecification"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:284:1: entryRuleModifierSpecification : ruleModifierSpecification EOF ;
- public final void entryRuleModifierSpecification() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:285:1: ( ruleModifierSpecification EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:286:1: ruleModifierSpecification EOF
- {
- before(grammarAccess.getModifierSpecificationRule());
- pushFollow(FOLLOW_ruleModifierSpecification_in_entryRuleModifierSpecification541);
- ruleModifierSpecification();
-
- state._fsp--;
-
- after(grammarAccess.getModifierSpecificationRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleModifierSpecification548);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleModifierSpecification"
-
-
- // $ANTLR start "ruleModifierSpecification"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:293:1: ruleModifierSpecification : ( ( rule__ModifierSpecification__Alternatives ) ) ;
- public final void ruleModifierSpecification() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:297:2: ( ( ( rule__ModifierSpecification__Alternatives ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:298:1: ( ( rule__ModifierSpecification__Alternatives ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:298:1: ( ( rule__ModifierSpecification__Alternatives ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:299:1: ( rule__ModifierSpecification__Alternatives )
- {
- before(grammarAccess.getModifierSpecificationAccess().getAlternatives());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:300:1: ( rule__ModifierSpecification__Alternatives )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:300:2: rule__ModifierSpecification__Alternatives
- {
- pushFollow(FOLLOW_rule__ModifierSpecification__Alternatives_in_ruleModifierSpecification574);
- rule__ModifierSpecification__Alternatives();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getModifierSpecificationAccess().getAlternatives());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleModifierSpecification"
-
-
- // $ANTLR start "entryRuleRedefinesRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:312:1: entryRuleRedefinesRule : ruleRedefinesRule EOF ;
- public final void entryRuleRedefinesRule() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:313:1: ( ruleRedefinesRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:314:1: ruleRedefinesRule EOF
- {
- before(grammarAccess.getRedefinesRuleRule());
- pushFollow(FOLLOW_ruleRedefinesRule_in_entryRuleRedefinesRule601);
- ruleRedefinesRule();
-
- state._fsp--;
-
- after(grammarAccess.getRedefinesRuleRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleRedefinesRule608);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleRedefinesRule"
-
-
- // $ANTLR start "ruleRedefinesRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:321:1: ruleRedefinesRule : ( ( rule__RedefinesRule__Group__0 ) ) ;
- public final void ruleRedefinesRule() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:325:2: ( ( ( rule__RedefinesRule__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:326:1: ( ( rule__RedefinesRule__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:326:1: ( ( rule__RedefinesRule__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:327:1: ( rule__RedefinesRule__Group__0 )
- {
- before(grammarAccess.getRedefinesRuleAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:328:1: ( rule__RedefinesRule__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:328:2: rule__RedefinesRule__Group__0
- {
- pushFollow(FOLLOW_rule__RedefinesRule__Group__0_in_ruleRedefinesRule634);
- rule__RedefinesRule__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRedefinesRuleAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleRedefinesRule"
-
-
- // $ANTLR start "entryRuleSubsetsRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:340:1: entryRuleSubsetsRule : ruleSubsetsRule EOF ;
- public final void entryRuleSubsetsRule() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:341:1: ( ruleSubsetsRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:342:1: ruleSubsetsRule EOF
- {
- before(grammarAccess.getSubsetsRuleRule());
- pushFollow(FOLLOW_ruleSubsetsRule_in_entryRuleSubsetsRule661);
- ruleSubsetsRule();
-
- state._fsp--;
-
- after(grammarAccess.getSubsetsRuleRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleSubsetsRule668);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleSubsetsRule"
-
-
- // $ANTLR start "ruleSubsetsRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:349:1: ruleSubsetsRule : ( ( rule__SubsetsRule__Group__0 ) ) ;
- public final void ruleSubsetsRule() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:353:2: ( ( ( rule__SubsetsRule__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:354:1: ( ( rule__SubsetsRule__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:354:1: ( ( rule__SubsetsRule__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:355:1: ( rule__SubsetsRule__Group__0 )
- {
- before(grammarAccess.getSubsetsRuleAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:356:1: ( rule__SubsetsRule__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:356:2: rule__SubsetsRule__Group__0
- {
- pushFollow(FOLLOW_rule__SubsetsRule__Group__0_in_ruleSubsetsRule694);
- rule__SubsetsRule__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getSubsetsRuleAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleSubsetsRule"
-
-
- // $ANTLR start "entryRuleDefaultValueRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:368:1: entryRuleDefaultValueRule : ruleDefaultValueRule EOF ;
- public final void entryRuleDefaultValueRule() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:369:1: ( ruleDefaultValueRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:370:1: ruleDefaultValueRule EOF
- {
- before(grammarAccess.getDefaultValueRuleRule());
- pushFollow(FOLLOW_ruleDefaultValueRule_in_entryRuleDefaultValueRule721);
- ruleDefaultValueRule();
-
- state._fsp--;
-
- after(grammarAccess.getDefaultValueRuleRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleDefaultValueRule728);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleDefaultValueRule"
-
-
- // $ANTLR start "ruleDefaultValueRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:377:1: ruleDefaultValueRule : ( ( rule__DefaultValueRule__Group__0 ) ) ;
- public final void ruleDefaultValueRule() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:381:2: ( ( ( rule__DefaultValueRule__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:382:1: ( ( rule__DefaultValueRule__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:382:1: ( ( rule__DefaultValueRule__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:383:1: ( rule__DefaultValueRule__Group__0 )
- {
- before(grammarAccess.getDefaultValueRuleAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:384:1: ( rule__DefaultValueRule__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:384:2: rule__DefaultValueRule__Group__0
- {
- pushFollow(FOLLOW_rule__DefaultValueRule__Group__0_in_ruleDefaultValueRule754);
- rule__DefaultValueRule__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getDefaultValueRuleAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleDefaultValueRule"
-
-
- // $ANTLR start "entryRuleValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:396:1: entryRuleValue : ruleValue EOF ;
- public final void entryRuleValue() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:397:1: ( ruleValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:398:1: ruleValue EOF
- {
- before(grammarAccess.getValueRule());
- pushFollow(FOLLOW_ruleValue_in_entryRuleValue781);
- ruleValue();
-
- state._fsp--;
-
- after(grammarAccess.getValueRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleValue788);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleValue"
-
-
- // $ANTLR start "ruleValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:405:1: ruleValue : ( ( rule__Value__Alternatives ) ) ;
- public final void ruleValue() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:409:2: ( ( ( rule__Value__Alternatives ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:410:1: ( ( rule__Value__Alternatives ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:410:1: ( ( rule__Value__Alternatives ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:411:1: ( rule__Value__Alternatives )
- {
- before(grammarAccess.getValueAccess().getAlternatives());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:412:1: ( rule__Value__Alternatives )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:412:2: rule__Value__Alternatives
- {
- pushFollow(FOLLOW_rule__Value__Alternatives_in_ruleValue814);
- rule__Value__Alternatives();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getValueAccess().getAlternatives());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleValue"
-
-
- // $ANTLR start "entryRuleIntValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:424:1: entryRuleIntValue : ruleIntValue EOF ;
- public final void entryRuleIntValue() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:425:1: ( ruleIntValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:426:1: ruleIntValue EOF
- {
- before(grammarAccess.getIntValueRule());
- pushFollow(FOLLOW_ruleIntValue_in_entryRuleIntValue841);
- ruleIntValue();
-
- state._fsp--;
-
- after(grammarAccess.getIntValueRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleIntValue848);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleIntValue"
-
-
- // $ANTLR start "ruleIntValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:433:1: ruleIntValue : ( ( rule__IntValue__LiteralIntegerAssignment ) ) ;
- public final void ruleIntValue() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:437:2: ( ( ( rule__IntValue__LiteralIntegerAssignment ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:438:1: ( ( rule__IntValue__LiteralIntegerAssignment ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:438:1: ( ( rule__IntValue__LiteralIntegerAssignment ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:439:1: ( rule__IntValue__LiteralIntegerAssignment )
- {
- before(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:440:1: ( rule__IntValue__LiteralIntegerAssignment )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:440:2: rule__IntValue__LiteralIntegerAssignment
- {
- pushFollow(FOLLOW_rule__IntValue__LiteralIntegerAssignment_in_ruleIntValue874);
- rule__IntValue__LiteralIntegerAssignment();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleIntValue"
-
-
- // $ANTLR start "entryRuleStringValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:452:1: entryRuleStringValue : ruleStringValue EOF ;
- public final void entryRuleStringValue() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:453:1: ( ruleStringValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:454:1: ruleStringValue EOF
- {
- before(grammarAccess.getStringValueRule());
- pushFollow(FOLLOW_ruleStringValue_in_entryRuleStringValue901);
- ruleStringValue();
-
- state._fsp--;
-
- after(grammarAccess.getStringValueRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleStringValue908);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleStringValue"
-
-
- // $ANTLR start "ruleStringValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:461:1: ruleStringValue : ( ( rule__StringValue__LiteralStringAssignment ) ) ;
- public final void ruleStringValue() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:465:2: ( ( ( rule__StringValue__LiteralStringAssignment ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:466:1: ( ( rule__StringValue__LiteralStringAssignment ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:466:1: ( ( rule__StringValue__LiteralStringAssignment ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:467:1: ( rule__StringValue__LiteralStringAssignment )
- {
- before(grammarAccess.getStringValueAccess().getLiteralStringAssignment());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:468:1: ( rule__StringValue__LiteralStringAssignment )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:468:2: rule__StringValue__LiteralStringAssignment
- {
- pushFollow(FOLLOW_rule__StringValue__LiteralStringAssignment_in_ruleStringValue934);
- rule__StringValue__LiteralStringAssignment();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getStringValueAccess().getLiteralStringAssignment());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleStringValue"
-
-
- // $ANTLR start "entryRuleBooleanValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:480:1: entryRuleBooleanValue : ruleBooleanValue EOF ;
- public final void entryRuleBooleanValue() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:481:1: ( ruleBooleanValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:482:1: ruleBooleanValue EOF
- {
- before(grammarAccess.getBooleanValueRule());
- pushFollow(FOLLOW_ruleBooleanValue_in_entryRuleBooleanValue961);
- ruleBooleanValue();
-
- state._fsp--;
-
- after(grammarAccess.getBooleanValueRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleBooleanValue968);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleBooleanValue"
-
-
- // $ANTLR start "ruleBooleanValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:489:1: ruleBooleanValue : ( ( rule__BooleanValue__LiteralBooleanAssignment ) ) ;
- public final void ruleBooleanValue() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:493:2: ( ( ( rule__BooleanValue__LiteralBooleanAssignment ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:494:1: ( ( rule__BooleanValue__LiteralBooleanAssignment ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:494:1: ( ( rule__BooleanValue__LiteralBooleanAssignment ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:495:1: ( rule__BooleanValue__LiteralBooleanAssignment )
- {
- before(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:496:1: ( rule__BooleanValue__LiteralBooleanAssignment )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:496:2: rule__BooleanValue__LiteralBooleanAssignment
- {
- pushFollow(FOLLOW_rule__BooleanValue__LiteralBooleanAssignment_in_ruleBooleanValue994);
- rule__BooleanValue__LiteralBooleanAssignment();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleBooleanValue"
-
-
- // $ANTLR start "entryRuleRealValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:508:1: entryRuleRealValue : ruleRealValue EOF ;
- public final void entryRuleRealValue() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:509:1: ( ruleRealValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:510:1: ruleRealValue EOF
- {
- before(grammarAccess.getRealValueRule());
- pushFollow(FOLLOW_ruleRealValue_in_entryRuleRealValue1021);
- ruleRealValue();
-
- state._fsp--;
-
- after(grammarAccess.getRealValueRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleRealValue1028);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleRealValue"
-
-
- // $ANTLR start "ruleRealValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:517:1: ruleRealValue : ( ( rule__RealValue__Alternatives ) ) ;
- public final void ruleRealValue() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:521:2: ( ( ( rule__RealValue__Alternatives ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:522:1: ( ( rule__RealValue__Alternatives ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:522:1: ( ( rule__RealValue__Alternatives ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:523:1: ( rule__RealValue__Alternatives )
- {
- before(grammarAccess.getRealValueAccess().getAlternatives());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:524:1: ( rule__RealValue__Alternatives )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:524:2: rule__RealValue__Alternatives
- {
- pushFollow(FOLLOW_rule__RealValue__Alternatives_in_ruleRealValue1054);
- rule__RealValue__Alternatives();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRealValueAccess().getAlternatives());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleRealValue"
-
-
- // $ANTLR start "entryRuleNullValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:536:1: entryRuleNullValue : ruleNullValue EOF ;
- public final void entryRuleNullValue() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:537:1: ( ruleNullValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:538:1: ruleNullValue EOF
- {
- before(grammarAccess.getNullValueRule());
- pushFollow(FOLLOW_ruleNullValue_in_entryRuleNullValue1081);
- ruleNullValue();
-
- state._fsp--;
-
- after(grammarAccess.getNullValueRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleNullValue1088);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleNullValue"
-
-
- // $ANTLR start "ruleNullValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:545:1: ruleNullValue : ( ( rule__NullValue__Group__0 ) ) ;
- public final void ruleNullValue() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:549:2: ( ( ( rule__NullValue__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:550:1: ( ( rule__NullValue__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:550:1: ( ( rule__NullValue__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:551:1: ( rule__NullValue__Group__0 )
- {
- before(grammarAccess.getNullValueAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:552:1: ( rule__NullValue__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:552:2: rule__NullValue__Group__0
- {
- pushFollow(FOLLOW_rule__NullValue__Group__0_in_ruleNullValue1114);
- rule__NullValue__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getNullValueAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleNullValue"
-
-
- // $ANTLR start "entryRuleNoValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:564:1: entryRuleNoValue : ruleNoValue EOF ;
- public final void entryRuleNoValue() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:565:1: ( ruleNoValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:566:1: ruleNoValue EOF
- {
- before(grammarAccess.getNoValueRule());
- pushFollow(FOLLOW_ruleNoValue_in_entryRuleNoValue1141);
- ruleNoValue();
-
- state._fsp--;
-
- after(grammarAccess.getNoValueRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleNoValue1148);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleNoValue"
-
-
- // $ANTLR start "ruleNoValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:573:1: ruleNoValue : ( ( rule__NoValue__Group__0 ) ) ;
- public final void ruleNoValue() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:577:2: ( ( ( rule__NoValue__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:578:1: ( ( rule__NoValue__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:578:1: ( ( rule__NoValue__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:579:1: ( rule__NoValue__Group__0 )
- {
- before(grammarAccess.getNoValueAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:580:1: ( rule__NoValue__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:580:2: rule__NoValue__Group__0
- {
- pushFollow(FOLLOW_rule__NoValue__Group__0_in_ruleNoValue1174);
- rule__NoValue__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getNoValueAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleNoValue"
-
-
- // $ANTLR start "ruleVisibilityKind"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:593:1: ruleVisibilityKind : ( ( rule__VisibilityKind__Alternatives ) ) ;
- public final void ruleVisibilityKind() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:597:1: ( ( ( rule__VisibilityKind__Alternatives ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:598:1: ( ( rule__VisibilityKind__Alternatives ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:598:1: ( ( rule__VisibilityKind__Alternatives ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:599:1: ( rule__VisibilityKind__Alternatives )
- {
- before(grammarAccess.getVisibilityKindAccess().getAlternatives());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:600:1: ( rule__VisibilityKind__Alternatives )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:600:2: rule__VisibilityKind__Alternatives
- {
- pushFollow(FOLLOW_rule__VisibilityKind__Alternatives_in_ruleVisibilityKind1211);
- rule__VisibilityKind__Alternatives();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getVisibilityKindAccess().getAlternatives());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleVisibilityKind"
-
-
- // $ANTLR start "ruleModifierKind"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:612:1: ruleModifierKind : ( ( rule__ModifierKind__Alternatives ) ) ;
- public final void ruleModifierKind() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:616:1: ( ( ( rule__ModifierKind__Alternatives ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:617:1: ( ( rule__ModifierKind__Alternatives ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:617:1: ( ( rule__ModifierKind__Alternatives ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:618:1: ( rule__ModifierKind__Alternatives )
- {
- before(grammarAccess.getModifierKindAccess().getAlternatives());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:619:1: ( rule__ModifierKind__Alternatives )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:619:2: rule__ModifierKind__Alternatives
- {
- pushFollow(FOLLOW_rule__ModifierKind__Alternatives_in_ruleModifierKind1247);
- rule__ModifierKind__Alternatives();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getModifierKindAccess().getAlternatives());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleModifierKind"
-
-
- // $ANTLR start "ruleBooleanLiterals"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:631:1: ruleBooleanLiterals : ( ( rule__BooleanLiterals__Alternatives ) ) ;
- public final void ruleBooleanLiterals() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:635:1: ( ( ( rule__BooleanLiterals__Alternatives ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:636:1: ( ( rule__BooleanLiterals__Alternatives ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:636:1: ( ( rule__BooleanLiterals__Alternatives ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:637:1: ( rule__BooleanLiterals__Alternatives )
- {
- before(grammarAccess.getBooleanLiteralsAccess().getAlternatives());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:638:1: ( rule__BooleanLiterals__Alternatives )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:638:2: rule__BooleanLiterals__Alternatives
- {
- pushFollow(FOLLOW_rule__BooleanLiterals__Alternatives_in_ruleBooleanLiterals1283);
- rule__BooleanLiterals__Alternatives();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getBooleanLiteralsAccess().getAlternatives());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleBooleanLiterals"
-
-
- // $ANTLR start "rule__PortRule__Alternatives_3_2"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:649:1: rule__PortRule__Alternatives_3_2 : ( ( ( rule__PortRule__TypeAssignment_3_2_0 ) ) | ( (
- // rule__PortRule__TypeUndefinedAssignment_3_2_1 ) ) );
- public final void rule__PortRule__Alternatives_3_2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:653:1: ( ( ( rule__PortRule__TypeAssignment_3_2_0 ) ) | ( (
- // rule__PortRule__TypeUndefinedAssignment_3_2_1 ) ) )
- int alt1 = 2;
- int LA1_0 = input.LA(1);
-
- if ((LA1_0 == RULE_ID)) {
- alt1 = 1;
- }
- else if ((LA1_0 == 38)) {
- alt1 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 1, 0, input);
-
- throw nvae;
- }
- switch (alt1) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:654:1: ( ( rule__PortRule__TypeAssignment_3_2_0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:654:1: ( ( rule__PortRule__TypeAssignment_3_2_0 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:655:1: ( rule__PortRule__TypeAssignment_3_2_0 )
- {
- before(grammarAccess.getPortRuleAccess().getTypeAssignment_3_2_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:656:1: ( rule__PortRule__TypeAssignment_3_2_0 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:656:2: rule__PortRule__TypeAssignment_3_2_0
- {
- pushFollow(FOLLOW_rule__PortRule__TypeAssignment_3_2_0_in_rule__PortRule__Alternatives_3_21318);
- rule__PortRule__TypeAssignment_3_2_0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getPortRuleAccess().getTypeAssignment_3_2_0());
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:660:6: ( ( rule__PortRule__TypeUndefinedAssignment_3_2_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:660:6: ( ( rule__PortRule__TypeUndefinedAssignment_3_2_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:661:1: ( rule__PortRule__TypeUndefinedAssignment_3_2_1 )
- {
- before(grammarAccess.getPortRuleAccess().getTypeUndefinedAssignment_3_2_1());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:662:1: ( rule__PortRule__TypeUndefinedAssignment_3_2_1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:662:2: rule__PortRule__TypeUndefinedAssignment_3_2_1
- {
- pushFollow(FOLLOW_rule__PortRule__TypeUndefinedAssignment_3_2_1_in_rule__PortRule__Alternatives_3_21336);
- rule__PortRule__TypeUndefinedAssignment_3_2_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getPortRuleAccess().getTypeUndefinedAssignment_3_2_1());
-
- }
-
-
- }
- break;
-
- }
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Alternatives_3_2"
-
-
- // $ANTLR start "rule__UnlimitedLiteral__Alternatives"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:671:1: rule__UnlimitedLiteral__Alternatives : ( ( RULE_INT ) | ( '*' ) );
- public final void rule__UnlimitedLiteral__Alternatives() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:675:1: ( ( RULE_INT ) | ( '*' ) )
- int alt2 = 2;
- int LA2_0 = input.LA(1);
-
- if ((LA2_0 == RULE_INT)) {
- alt2 = 1;
- }
- else if ((LA2_0 == 12)) {
- alt2 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 2, 0, input);
-
- throw nvae;
- }
- switch (alt2) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:676:1: ( RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:676:1: ( RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:677:1: RULE_INT
- {
- before(grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0());
- match(input, RULE_INT, FOLLOW_RULE_INT_in_rule__UnlimitedLiteral__Alternatives1369);
- after(grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0());
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:682:6: ( '*' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:682:6: ( '*' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:683:1: '*'
- {
- before(grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1());
- match(input, 12, FOLLOW_12_in_rule__UnlimitedLiteral__Alternatives1387);
- after(grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1());
-
- }
-
-
- }
- break;
-
- }
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__UnlimitedLiteral__Alternatives"
-
-
- // $ANTLR start "rule__ModifierSpecification__Alternatives"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:695:1: rule__ModifierSpecification__Alternatives : ( ( (
- // rule__ModifierSpecification__ValueAssignment_0 ) ) | ( ( rule__ModifierSpecification__RedefinesAssignment_1 ) ) | ( ( rule__ModifierSpecification__SubsetsAssignment_2 ) ) );
- public final void rule__ModifierSpecification__Alternatives() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:699:1: ( ( ( rule__ModifierSpecification__ValueAssignment_0 ) ) | ( (
- // rule__ModifierSpecification__RedefinesAssignment_1 ) ) | ( ( rule__ModifierSpecification__SubsetsAssignment_2 ) ) )
- int alt3 = 3;
- switch (input.LA(1)) {
- case 17:
- case 18:
- case 19:
- case 20: {
- alt3 = 1;
- }
- break;
- case 31: {
- alt3 = 2;
- }
- break;
- case 32: {
- alt3 = 3;
- }
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 3, 0, input);
-
- throw nvae;
- }
-
- switch (alt3) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:700:1: ( ( rule__ModifierSpecification__ValueAssignment_0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:700:1: ( ( rule__ModifierSpecification__ValueAssignment_0 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:701:1: ( rule__ModifierSpecification__ValueAssignment_0 )
- {
- before(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:702:1: ( rule__ModifierSpecification__ValueAssignment_0 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:702:2: rule__ModifierSpecification__ValueAssignment_0
- {
- pushFollow(FOLLOW_rule__ModifierSpecification__ValueAssignment_0_in_rule__ModifierSpecification__Alternatives1421);
- rule__ModifierSpecification__ValueAssignment_0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0());
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:706:6: ( ( rule__ModifierSpecification__RedefinesAssignment_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:706:6: ( ( rule__ModifierSpecification__RedefinesAssignment_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:707:1: ( rule__ModifierSpecification__RedefinesAssignment_1 )
- {
- before(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:708:1: ( rule__ModifierSpecification__RedefinesAssignment_1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:708:2: rule__ModifierSpecification__RedefinesAssignment_1
- {
- pushFollow(FOLLOW_rule__ModifierSpecification__RedefinesAssignment_1_in_rule__ModifierSpecification__Alternatives1439);
- rule__ModifierSpecification__RedefinesAssignment_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1());
-
- }
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:712:6: ( ( rule__ModifierSpecification__SubsetsAssignment_2 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:712:6: ( ( rule__ModifierSpecification__SubsetsAssignment_2 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:713:1: ( rule__ModifierSpecification__SubsetsAssignment_2 )
- {
- before(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:714:1: ( rule__ModifierSpecification__SubsetsAssignment_2 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:714:2: rule__ModifierSpecification__SubsetsAssignment_2
- {
- pushFollow(FOLLOW_rule__ModifierSpecification__SubsetsAssignment_2_in_rule__ModifierSpecification__Alternatives1457);
- rule__ModifierSpecification__SubsetsAssignment_2();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2());
-
- }
-
-
- }
- break;
-
- }
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifierSpecification__Alternatives"
-
-
- // $ANTLR start "rule__Value__Alternatives"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:723:1: rule__Value__Alternatives : ( ( ruleIntValue ) | ( ruleStringValue ) | ( ruleBooleanValue ) |
- // ( ruleRealValue ) | ( ruleNullValue ) | ( ruleNoValue ) );
- public final void rule__Value__Alternatives() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:727:1: ( ( ruleIntValue ) | ( ruleStringValue ) | ( ruleBooleanValue ) | ( ruleRealValue ) |
- // ( ruleNullValue ) | ( ruleNoValue ) )
- int alt4 = 6;
- switch (input.LA(1)) {
- case RULE_INT: {
- int LA4_1 = input.LA(2);
-
- if ((LA4_1 == EOF)) {
- alt4 = 1;
- }
- else if ((LA4_1 == 34)) {
- alt4 = 4;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 4, 1, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_STRING: {
- alt4 = 2;
- }
- break;
- case 21:
- case 22: {
- alt4 = 3;
- }
- break;
- case 34: {
- alt4 = 4;
- }
- break;
- case 35: {
- alt4 = 5;
- }
- break;
- case 36: {
- alt4 = 6;
- }
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 0, input);
-
- throw nvae;
- }
-
- switch (alt4) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:728:1: ( ruleIntValue )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:728:1: ( ruleIntValue )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:729:1: ruleIntValue
- {
- before(grammarAccess.getValueAccess().getIntValueParserRuleCall_0());
- pushFollow(FOLLOW_ruleIntValue_in_rule__Value__Alternatives1490);
- ruleIntValue();
-
- state._fsp--;
-
- after(grammarAccess.getValueAccess().getIntValueParserRuleCall_0());
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:734:6: ( ruleStringValue )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:734:6: ( ruleStringValue )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:735:1: ruleStringValue
- {
- before(grammarAccess.getValueAccess().getStringValueParserRuleCall_1());
- pushFollow(FOLLOW_ruleStringValue_in_rule__Value__Alternatives1507);
- ruleStringValue();
-
- state._fsp--;
-
- after(grammarAccess.getValueAccess().getStringValueParserRuleCall_1());
-
- }
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:740:6: ( ruleBooleanValue )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:740:6: ( ruleBooleanValue )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:741:1: ruleBooleanValue
- {
- before(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2());
- pushFollow(FOLLOW_ruleBooleanValue_in_rule__Value__Alternatives1524);
- ruleBooleanValue();
-
- state._fsp--;
-
- after(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2());
-
- }
-
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:746:6: ( ruleRealValue )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:746:6: ( ruleRealValue )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:747:1: ruleRealValue
- {
- before(grammarAccess.getValueAccess().getRealValueParserRuleCall_3());
- pushFollow(FOLLOW_ruleRealValue_in_rule__Value__Alternatives1541);
- ruleRealValue();
-
- state._fsp--;
-
- after(grammarAccess.getValueAccess().getRealValueParserRuleCall_3());
-
- }
-
-
- }
- break;
- case 5:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:752:6: ( ruleNullValue )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:752:6: ( ruleNullValue )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:753:1: ruleNullValue
- {
- before(grammarAccess.getValueAccess().getNullValueParserRuleCall_4());
- pushFollow(FOLLOW_ruleNullValue_in_rule__Value__Alternatives1558);
- ruleNullValue();
-
- state._fsp--;
-
- after(grammarAccess.getValueAccess().getNullValueParserRuleCall_4());
-
- }
-
-
- }
- break;
- case 6:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:758:6: ( ruleNoValue )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:758:6: ( ruleNoValue )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:759:1: ruleNoValue
- {
- before(grammarAccess.getValueAccess().getNoValueParserRuleCall_5());
- pushFollow(FOLLOW_ruleNoValue_in_rule__Value__Alternatives1575);
- ruleNoValue();
-
- state._fsp--;
-
- after(grammarAccess.getValueAccess().getNoValueParserRuleCall_5());
-
- }
-
-
- }
- break;
-
- }
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__Value__Alternatives"
-
-
- // $ANTLR start "rule__RealValue__Alternatives"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:769:1: rule__RealValue__Alternatives : ( ( ( rule__RealValue__Group_0__0 ) ) | ( (
- // rule__RealValue__Group_1__0 ) ) | ( ( rule__RealValue__Group_2__0 ) ) );
- public final void rule__RealValue__Alternatives() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:773:1: ( ( ( rule__RealValue__Group_0__0 ) ) | ( ( rule__RealValue__Group_1__0 ) ) | ( (
- // rule__RealValue__Group_2__0 ) ) )
- int alt5 = 3;
- int LA5_0 = input.LA(1);
-
- if ((LA5_0 == RULE_INT)) {
- int LA5_1 = input.LA(2);
-
- if ((LA5_1 == 34)) {
- int LA5_3 = input.LA(3);
-
- if ((LA5_3 == EOF)) {
- alt5 = 1;
- }
- else if ((LA5_3 == RULE_INT)) {
- alt5 = 3;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 5, 3, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 5, 1, input);
-
- throw nvae;
- }
- }
- else if ((LA5_0 == 34)) {
- alt5 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 5, 0, input);
-
- throw nvae;
- }
- switch (alt5) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:774:1: ( ( rule__RealValue__Group_0__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:774:1: ( ( rule__RealValue__Group_0__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:775:1: ( rule__RealValue__Group_0__0 )
- {
- before(grammarAccess.getRealValueAccess().getGroup_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:776:1: ( rule__RealValue__Group_0__0 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:776:2: rule__RealValue__Group_0__0
- {
- pushFollow(FOLLOW_rule__RealValue__Group_0__0_in_rule__RealValue__Alternatives1607);
- rule__RealValue__Group_0__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRealValueAccess().getGroup_0());
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:780:6: ( ( rule__RealValue__Group_1__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:780:6: ( ( rule__RealValue__Group_1__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:781:1: ( rule__RealValue__Group_1__0 )
- {
- before(grammarAccess.getRealValueAccess().getGroup_1());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:782:1: ( rule__RealValue__Group_1__0 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:782:2: rule__RealValue__Group_1__0
- {
- pushFollow(FOLLOW_rule__RealValue__Group_1__0_in_rule__RealValue__Alternatives1625);
- rule__RealValue__Group_1__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRealValueAccess().getGroup_1());
-
- }
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:786:6: ( ( rule__RealValue__Group_2__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:786:6: ( ( rule__RealValue__Group_2__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:787:1: ( rule__RealValue__Group_2__0 )
- {
- before(grammarAccess.getRealValueAccess().getGroup_2());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:788:1: ( rule__RealValue__Group_2__0 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:788:2: rule__RealValue__Group_2__0
- {
- pushFollow(FOLLOW_rule__RealValue__Group_2__0_in_rule__RealValue__Alternatives1643);
- rule__RealValue__Group_2__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRealValueAccess().getGroup_2());
-
- }
-
-
- }
- break;
-
- }
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Alternatives"
-
-
- // $ANTLR start "rule__VisibilityKind__Alternatives"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:797:1: rule__VisibilityKind__Alternatives : ( ( ( '+' ) ) | ( ( '-' ) ) | ( ( '#' ) ) | ( ( '~' ) )
- // );
- public final void rule__VisibilityKind__Alternatives() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:801:1: ( ( ( '+' ) ) | ( ( '-' ) ) | ( ( '#' ) ) | ( ( '~' ) ) )
- int alt6 = 4;
- switch (input.LA(1)) {
- case 13: {
- alt6 = 1;
- }
- break;
- case 14: {
- alt6 = 2;
- }
- break;
- case 15: {
- alt6 = 3;
- }
- break;
- case 16: {
- alt6 = 4;
- }
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 6, 0, input);
-
- throw nvae;
- }
-
- switch (alt6) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:802:1: ( ( '+' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:802:1: ( ( '+' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:803:1: ( '+' )
- {
- before(grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:804:1: ( '+' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:804:3: '+'
- {
- match(input, 13, FOLLOW_13_in_rule__VisibilityKind__Alternatives1677);
-
- }
-
- after(grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0());
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:809:6: ( ( '-' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:809:6: ( ( '-' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:810:1: ( '-' )
- {
- before(grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:811:1: ( '-' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:811:3: '-'
- {
- match(input, 14, FOLLOW_14_in_rule__VisibilityKind__Alternatives1698);
-
- }
-
- after(grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1());
-
- }
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:816:6: ( ( '#' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:816:6: ( ( '#' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:817:1: ( '#' )
- {
- before(grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:818:1: ( '#' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:818:3: '#'
- {
- match(input, 15, FOLLOW_15_in_rule__VisibilityKind__Alternatives1719);
-
- }
-
- after(grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2());
-
- }
-
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:823:6: ( ( '~' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:823:6: ( ( '~' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:824:1: ( '~' )
- {
- before(grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:825:1: ( '~' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:825:3: '~'
- {
- match(input, 16, FOLLOW_16_in_rule__VisibilityKind__Alternatives1740);
-
- }
-
- after(grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3());
-
- }
-
-
- }
- break;
-
- }
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__VisibilityKind__Alternatives"
-
-
- // $ANTLR start "rule__ModifierKind__Alternatives"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:835:1: rule__ModifierKind__Alternatives : ( ( ( 'readOnly' ) ) | ( ( 'union' ) ) | ( ( 'ordered' ) )
- // | ( ( 'unique' ) ) );
- public final void rule__ModifierKind__Alternatives() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:839:1: ( ( ( 'readOnly' ) ) | ( ( 'union' ) ) | ( ( 'ordered' ) ) | ( ( 'unique' ) ) )
- int alt7 = 4;
- switch (input.LA(1)) {
- case 17: {
- alt7 = 1;
- }
- break;
- case 18: {
- alt7 = 2;
- }
- break;
- case 19: {
- alt7 = 3;
- }
- break;
- case 20: {
- alt7 = 4;
- }
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 7, 0, input);
-
- throw nvae;
- }
-
- switch (alt7) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:840:1: ( ( 'readOnly' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:840:1: ( ( 'readOnly' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:841:1: ( 'readOnly' )
- {
- before(grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:842:1: ( 'readOnly' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:842:3: 'readOnly'
- {
- match(input, 17, FOLLOW_17_in_rule__ModifierKind__Alternatives1776);
-
- }
-
- after(grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0());
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:847:6: ( ( 'union' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:847:6: ( ( 'union' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:848:1: ( 'union' )
- {
- before(grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:849:1: ( 'union' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:849:3: 'union'
- {
- match(input, 18, FOLLOW_18_in_rule__ModifierKind__Alternatives1797);
-
- }
-
- after(grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1());
-
- }
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:854:6: ( ( 'ordered' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:854:6: ( ( 'ordered' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:855:1: ( 'ordered' )
- {
- before(grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:856:1: ( 'ordered' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:856:3: 'ordered'
- {
- match(input, 19, FOLLOW_19_in_rule__ModifierKind__Alternatives1818);
-
- }
-
- after(grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2());
-
- }
-
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:861:6: ( ( 'unique' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:861:6: ( ( 'unique' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:862:1: ( 'unique' )
- {
- before(grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:863:1: ( 'unique' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:863:3: 'unique'
- {
- match(input, 20, FOLLOW_20_in_rule__ModifierKind__Alternatives1839);
-
- }
-
- after(grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3());
-
- }
-
-
- }
- break;
-
- }
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifierKind__Alternatives"
-
-
- // $ANTLR start "rule__BooleanLiterals__Alternatives"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:873:1: rule__BooleanLiterals__Alternatives : ( ( ( 'true' ) ) | ( ( 'false' ) ) );
- public final void rule__BooleanLiterals__Alternatives() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:877:1: ( ( ( 'true' ) ) | ( ( 'false' ) ) )
- int alt8 = 2;
- int LA8_0 = input.LA(1);
-
- if ((LA8_0 == 21)) {
- alt8 = 1;
- }
- else if ((LA8_0 == 22)) {
- alt8 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 8, 0, input);
-
- throw nvae;
- }
- switch (alt8) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:878:1: ( ( 'true' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:878:1: ( ( 'true' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:879:1: ( 'true' )
- {
- before(grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:880:1: ( 'true' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:880:3: 'true'
- {
- match(input, 21, FOLLOW_21_in_rule__BooleanLiterals__Alternatives1875);
-
- }
-
- after(grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0());
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:885:6: ( ( 'false' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:885:6: ( ( 'false' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:886:1: ( 'false' )
- {
- before(grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:887:1: ( 'false' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:887:3: 'false'
- {
- match(input, 22, FOLLOW_22_in_rule__BooleanLiterals__Alternatives1896);
-
- }
-
- after(grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1());
-
- }
-
-
- }
- break;
-
- }
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__BooleanLiterals__Alternatives"
-
-
- // $ANTLR start "rule__PortRule__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:899:1: rule__PortRule__Group__0 : rule__PortRule__Group__0__Impl rule__PortRule__Group__1 ;
- public final void rule__PortRule__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:903:1: ( rule__PortRule__Group__0__Impl rule__PortRule__Group__1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:904:2: rule__PortRule__Group__0__Impl rule__PortRule__Group__1
- {
- pushFollow(FOLLOW_rule__PortRule__Group__0__Impl_in_rule__PortRule__Group__01929);
- rule__PortRule__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__PortRule__Group__1_in_rule__PortRule__Group__01932);
- rule__PortRule__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group__0"
-
-
- // $ANTLR start "rule__PortRule__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:911:1: rule__PortRule__Group__0__Impl : ( ( rule__PortRule__VisibilityAssignment_0 )? ) ;
- public final void rule__PortRule__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:915:1: ( ( ( rule__PortRule__VisibilityAssignment_0 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:916:1: ( ( rule__PortRule__VisibilityAssignment_0 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:916:1: ( ( rule__PortRule__VisibilityAssignment_0 )? )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:917:1: ( rule__PortRule__VisibilityAssignment_0 )?
- {
- before(grammarAccess.getPortRuleAccess().getVisibilityAssignment_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:918:1: ( rule__PortRule__VisibilityAssignment_0 )?
- int alt9 = 2;
- int LA9_0 = input.LA(1);
-
- if (((LA9_0 >= 13 && LA9_0 <= 16))) {
- alt9 = 1;
- }
- switch (alt9) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:918:2: rule__PortRule__VisibilityAssignment_0
- {
- pushFollow(FOLLOW_rule__PortRule__VisibilityAssignment_0_in_rule__PortRule__Group__0__Impl1959);
- rule__PortRule__VisibilityAssignment_0();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getPortRuleAccess().getVisibilityAssignment_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group__0__Impl"
-
-
- // $ANTLR start "rule__PortRule__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:928:1: rule__PortRule__Group__1 : rule__PortRule__Group__1__Impl rule__PortRule__Group__2 ;
- public final void rule__PortRule__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:932:1: ( rule__PortRule__Group__1__Impl rule__PortRule__Group__2 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:933:2: rule__PortRule__Group__1__Impl rule__PortRule__Group__2
- {
- pushFollow(FOLLOW_rule__PortRule__Group__1__Impl_in_rule__PortRule__Group__11990);
- rule__PortRule__Group__1__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__PortRule__Group__2_in_rule__PortRule__Group__11993);
- rule__PortRule__Group__2();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group__1"
-
-
- // $ANTLR start "rule__PortRule__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:940:1: rule__PortRule__Group__1__Impl : ( ( rule__PortRule__DerivedAssignment_1 )? ) ;
- public final void rule__PortRule__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:944:1: ( ( ( rule__PortRule__DerivedAssignment_1 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:945:1: ( ( rule__PortRule__DerivedAssignment_1 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:945:1: ( ( rule__PortRule__DerivedAssignment_1 )? )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:946:1: ( rule__PortRule__DerivedAssignment_1 )?
- {
- before(grammarAccess.getPortRuleAccess().getDerivedAssignment_1());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:947:1: ( rule__PortRule__DerivedAssignment_1 )?
- int alt10 = 2;
- int LA10_0 = input.LA(1);
-
- if ((LA10_0 == 37)) {
- alt10 = 1;
- }
- switch (alt10) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:947:2: rule__PortRule__DerivedAssignment_1
- {
- pushFollow(FOLLOW_rule__PortRule__DerivedAssignment_1_in_rule__PortRule__Group__1__Impl2020);
- rule__PortRule__DerivedAssignment_1();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getPortRuleAccess().getDerivedAssignment_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group__1__Impl"
-
-
- // $ANTLR start "rule__PortRule__Group__2"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:957:1: rule__PortRule__Group__2 : rule__PortRule__Group__2__Impl rule__PortRule__Group__3 ;
- public final void rule__PortRule__Group__2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:961:1: ( rule__PortRule__Group__2__Impl rule__PortRule__Group__3 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:962:2: rule__PortRule__Group__2__Impl rule__PortRule__Group__3
- {
- pushFollow(FOLLOW_rule__PortRule__Group__2__Impl_in_rule__PortRule__Group__22051);
- rule__PortRule__Group__2__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__PortRule__Group__3_in_rule__PortRule__Group__22054);
- rule__PortRule__Group__3();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group__2"
-
-
- // $ANTLR start "rule__PortRule__Group__2__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:969:1: rule__PortRule__Group__2__Impl : ( ( rule__PortRule__NameAssignment_2 ) ) ;
- public final void rule__PortRule__Group__2__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:973:1: ( ( ( rule__PortRule__NameAssignment_2 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:974:1: ( ( rule__PortRule__NameAssignment_2 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:974:1: ( ( rule__PortRule__NameAssignment_2 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:975:1: ( rule__PortRule__NameAssignment_2 )
- {
- before(grammarAccess.getPortRuleAccess().getNameAssignment_2());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:976:1: ( rule__PortRule__NameAssignment_2 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:976:2: rule__PortRule__NameAssignment_2
- {
- pushFollow(FOLLOW_rule__PortRule__NameAssignment_2_in_rule__PortRule__Group__2__Impl2081);
- rule__PortRule__NameAssignment_2();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getPortRuleAccess().getNameAssignment_2());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group__2__Impl"
-
-
- // $ANTLR start "rule__PortRule__Group__3"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:986:1: rule__PortRule__Group__3 : rule__PortRule__Group__3__Impl rule__PortRule__Group__4 ;
- public final void rule__PortRule__Group__3() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:990:1: ( rule__PortRule__Group__3__Impl rule__PortRule__Group__4 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:991:2: rule__PortRule__Group__3__Impl rule__PortRule__Group__4
- {
- pushFollow(FOLLOW_rule__PortRule__Group__3__Impl_in_rule__PortRule__Group__32111);
- rule__PortRule__Group__3__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__PortRule__Group__4_in_rule__PortRule__Group__32114);
- rule__PortRule__Group__4();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group__3"
-
-
- // $ANTLR start "rule__PortRule__Group__3__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:998:1: rule__PortRule__Group__3__Impl : ( ( rule__PortRule__Group_3__0 )? ) ;
- public final void rule__PortRule__Group__3__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1002:1: ( ( ( rule__PortRule__Group_3__0 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1003:1: ( ( rule__PortRule__Group_3__0 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1003:1: ( ( rule__PortRule__Group_3__0 )? )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1004:1: ( rule__PortRule__Group_3__0 )?
- {
- before(grammarAccess.getPortRuleAccess().getGroup_3());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1005:1: ( rule__PortRule__Group_3__0 )?
- int alt11 = 2;
- int LA11_0 = input.LA(1);
-
- if ((LA11_0 == 23)) {
- alt11 = 1;
- }
- switch (alt11) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1005:2: rule__PortRule__Group_3__0
- {
- pushFollow(FOLLOW_rule__PortRule__Group_3__0_in_rule__PortRule__Group__3__Impl2141);
- rule__PortRule__Group_3__0();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getPortRuleAccess().getGroup_3());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group__3__Impl"
-
-
- // $ANTLR start "rule__PortRule__Group__4"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1015:1: rule__PortRule__Group__4 : rule__PortRule__Group__4__Impl rule__PortRule__Group__5 ;
- public final void rule__PortRule__Group__4() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1019:1: ( rule__PortRule__Group__4__Impl rule__PortRule__Group__5 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1020:2: rule__PortRule__Group__4__Impl rule__PortRule__Group__5
- {
- pushFollow(FOLLOW_rule__PortRule__Group__4__Impl_in_rule__PortRule__Group__42172);
- rule__PortRule__Group__4__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__PortRule__Group__5_in_rule__PortRule__Group__42175);
- rule__PortRule__Group__5();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group__4"
-
-
- // $ANTLR start "rule__PortRule__Group__4__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1027:1: rule__PortRule__Group__4__Impl : ( ( rule__PortRule__MultiplicityAssignment_4 )? ) ;
- public final void rule__PortRule__Group__4__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1031:1: ( ( ( rule__PortRule__MultiplicityAssignment_4 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1032:1: ( ( rule__PortRule__MultiplicityAssignment_4 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1032:1: ( ( rule__PortRule__MultiplicityAssignment_4 )? )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1033:1: ( rule__PortRule__MultiplicityAssignment_4 )?
- {
- before(grammarAccess.getPortRuleAccess().getMultiplicityAssignment_4());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1034:1: ( rule__PortRule__MultiplicityAssignment_4 )?
- int alt12 = 2;
- int LA12_0 = input.LA(1);
-
- if ((LA12_0 == 25)) {
- alt12 = 1;
- }
- switch (alt12) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1034:2: rule__PortRule__MultiplicityAssignment_4
- {
- pushFollow(FOLLOW_rule__PortRule__MultiplicityAssignment_4_in_rule__PortRule__Group__4__Impl2202);
- rule__PortRule__MultiplicityAssignment_4();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getPortRuleAccess().getMultiplicityAssignment_4());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group__4__Impl"
-
-
- // $ANTLR start "rule__PortRule__Group__5"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1044:1: rule__PortRule__Group__5 : rule__PortRule__Group__5__Impl rule__PortRule__Group__6 ;
- public final void rule__PortRule__Group__5() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1048:1: ( rule__PortRule__Group__5__Impl rule__PortRule__Group__6 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1049:2: rule__PortRule__Group__5__Impl rule__PortRule__Group__6
- {
- pushFollow(FOLLOW_rule__PortRule__Group__5__Impl_in_rule__PortRule__Group__52233);
- rule__PortRule__Group__5__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__PortRule__Group__6_in_rule__PortRule__Group__52236);
- rule__PortRule__Group__6();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group__5"
-
-
- // $ANTLR start "rule__PortRule__Group__5__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1056:1: rule__PortRule__Group__5__Impl : ( ( rule__PortRule__ModifiersAssignment_5 )? ) ;
- public final void rule__PortRule__Group__5__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1060:1: ( ( ( rule__PortRule__ModifiersAssignment_5 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1061:1: ( ( rule__PortRule__ModifiersAssignment_5 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1061:1: ( ( rule__PortRule__ModifiersAssignment_5 )? )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1062:1: ( rule__PortRule__ModifiersAssignment_5 )?
- {
- before(grammarAccess.getPortRuleAccess().getModifiersAssignment_5());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1063:1: ( rule__PortRule__ModifiersAssignment_5 )?
- int alt13 = 2;
- int LA13_0 = input.LA(1);
-
- if ((LA13_0 == 28)) {
- alt13 = 1;
- }
- switch (alt13) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1063:2: rule__PortRule__ModifiersAssignment_5
- {
- pushFollow(FOLLOW_rule__PortRule__ModifiersAssignment_5_in_rule__PortRule__Group__5__Impl2263);
- rule__PortRule__ModifiersAssignment_5();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getPortRuleAccess().getModifiersAssignment_5());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group__5__Impl"
-
-
- // $ANTLR start "rule__PortRule__Group__6"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1073:1: rule__PortRule__Group__6 : rule__PortRule__Group__6__Impl ;
- public final void rule__PortRule__Group__6() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1077:1: ( rule__PortRule__Group__6__Impl )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1078:2: rule__PortRule__Group__6__Impl
- {
- pushFollow(FOLLOW_rule__PortRule__Group__6__Impl_in_rule__PortRule__Group__62294);
- rule__PortRule__Group__6__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group__6"
-
-
- // $ANTLR start "rule__PortRule__Group__6__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1084:1: rule__PortRule__Group__6__Impl : ( ( rule__PortRule__DefaultAssignment_6 )? ) ;
- public final void rule__PortRule__Group__6__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1088:1: ( ( ( rule__PortRule__DefaultAssignment_6 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1089:1: ( ( rule__PortRule__DefaultAssignment_6 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1089:1: ( ( rule__PortRule__DefaultAssignment_6 )? )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1090:1: ( rule__PortRule__DefaultAssignment_6 )?
- {
- before(grammarAccess.getPortRuleAccess().getDefaultAssignment_6());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1091:1: ( rule__PortRule__DefaultAssignment_6 )?
- int alt14 = 2;
- int LA14_0 = input.LA(1);
-
- if ((LA14_0 == 33)) {
- alt14 = 1;
- }
- switch (alt14) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1091:2: rule__PortRule__DefaultAssignment_6
- {
- pushFollow(FOLLOW_rule__PortRule__DefaultAssignment_6_in_rule__PortRule__Group__6__Impl2321);
- rule__PortRule__DefaultAssignment_6();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getPortRuleAccess().getDefaultAssignment_6());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group__6__Impl"
-
-
- // $ANTLR start "rule__PortRule__Group_3__0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1115:1: rule__PortRule__Group_3__0 : rule__PortRule__Group_3__0__Impl rule__PortRule__Group_3__1 ;
- public final void rule__PortRule__Group_3__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1119:1: ( rule__PortRule__Group_3__0__Impl rule__PortRule__Group_3__1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1120:2: rule__PortRule__Group_3__0__Impl rule__PortRule__Group_3__1
- {
- pushFollow(FOLLOW_rule__PortRule__Group_3__0__Impl_in_rule__PortRule__Group_3__02366);
- rule__PortRule__Group_3__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__PortRule__Group_3__1_in_rule__PortRule__Group_3__02369);
- rule__PortRule__Group_3__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group_3__0"
-
-
- // $ANTLR start "rule__PortRule__Group_3__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1127:1: rule__PortRule__Group_3__0__Impl : ( ':' ) ;
- public final void rule__PortRule__Group_3__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1131:1: ( ( ':' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1132:1: ( ':' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1132:1: ( ':' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1133:1: ':'
- {
- before(grammarAccess.getPortRuleAccess().getColonKeyword_3_0());
- match(input, 23, FOLLOW_23_in_rule__PortRule__Group_3__0__Impl2397);
- after(grammarAccess.getPortRuleAccess().getColonKeyword_3_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group_3__0__Impl"
-
-
- // $ANTLR start "rule__PortRule__Group_3__1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1146:1: rule__PortRule__Group_3__1 : rule__PortRule__Group_3__1__Impl rule__PortRule__Group_3__2 ;
- public final void rule__PortRule__Group_3__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1150:1: ( rule__PortRule__Group_3__1__Impl rule__PortRule__Group_3__2 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1151:2: rule__PortRule__Group_3__1__Impl rule__PortRule__Group_3__2
- {
- pushFollow(FOLLOW_rule__PortRule__Group_3__1__Impl_in_rule__PortRule__Group_3__12428);
- rule__PortRule__Group_3__1__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__PortRule__Group_3__2_in_rule__PortRule__Group_3__12431);
- rule__PortRule__Group_3__2();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group_3__1"
-
-
- // $ANTLR start "rule__PortRule__Group_3__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1158:1: rule__PortRule__Group_3__1__Impl : ( ( rule__PortRule__ConjugatedAssignment_3_1 )? ) ;
- public final void rule__PortRule__Group_3__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1162:1: ( ( ( rule__PortRule__ConjugatedAssignment_3_1 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1163:1: ( ( rule__PortRule__ConjugatedAssignment_3_1 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1163:1: ( ( rule__PortRule__ConjugatedAssignment_3_1 )? )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1164:1: ( rule__PortRule__ConjugatedAssignment_3_1 )?
- {
- before(grammarAccess.getPortRuleAccess().getConjugatedAssignment_3_1());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1165:1: ( rule__PortRule__ConjugatedAssignment_3_1 )?
- int alt15 = 2;
- int LA15_0 = input.LA(1);
-
- if ((LA15_0 == 16)) {
- alt15 = 1;
- }
- switch (alt15) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1165:2: rule__PortRule__ConjugatedAssignment_3_1
- {
- pushFollow(FOLLOW_rule__PortRule__ConjugatedAssignment_3_1_in_rule__PortRule__Group_3__1__Impl2458);
- rule__PortRule__ConjugatedAssignment_3_1();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getPortRuleAccess().getConjugatedAssignment_3_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group_3__1__Impl"
-
-
- // $ANTLR start "rule__PortRule__Group_3__2"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1175:1: rule__PortRule__Group_3__2 : rule__PortRule__Group_3__2__Impl ;
- public final void rule__PortRule__Group_3__2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1179:1: ( rule__PortRule__Group_3__2__Impl )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1180:2: rule__PortRule__Group_3__2__Impl
- {
- pushFollow(FOLLOW_rule__PortRule__Group_3__2__Impl_in_rule__PortRule__Group_3__22489);
- rule__PortRule__Group_3__2__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group_3__2"
-
-
- // $ANTLR start "rule__PortRule__Group_3__2__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1186:1: rule__PortRule__Group_3__2__Impl : ( ( rule__PortRule__Alternatives_3_2 ) ) ;
- public final void rule__PortRule__Group_3__2__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1190:1: ( ( ( rule__PortRule__Alternatives_3_2 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1191:1: ( ( rule__PortRule__Alternatives_3_2 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1191:1: ( ( rule__PortRule__Alternatives_3_2 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1192:1: ( rule__PortRule__Alternatives_3_2 )
- {
- before(grammarAccess.getPortRuleAccess().getAlternatives_3_2());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1193:1: ( rule__PortRule__Alternatives_3_2 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1193:2: rule__PortRule__Alternatives_3_2
- {
- pushFollow(FOLLOW_rule__PortRule__Alternatives_3_2_in_rule__PortRule__Group_3__2__Impl2516);
- rule__PortRule__Alternatives_3_2();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getPortRuleAccess().getAlternatives_3_2());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__Group_3__2__Impl"
-
-
- // $ANTLR start "rule__TypeRule__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1209:1: rule__TypeRule__Group__0 : rule__TypeRule__Group__0__Impl rule__TypeRule__Group__1 ;
- public final void rule__TypeRule__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1213:1: ( rule__TypeRule__Group__0__Impl rule__TypeRule__Group__1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1214:2: rule__TypeRule__Group__0__Impl rule__TypeRule__Group__1
- {
- pushFollow(FOLLOW_rule__TypeRule__Group__0__Impl_in_rule__TypeRule__Group__02552);
- rule__TypeRule__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__TypeRule__Group__1_in_rule__TypeRule__Group__02555);
- rule__TypeRule__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__TypeRule__Group__0"
-
-
- // $ANTLR start "rule__TypeRule__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1221:1: rule__TypeRule__Group__0__Impl : ( ( rule__TypeRule__PathAssignment_0 )? ) ;
- public final void rule__TypeRule__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1225:1: ( ( ( rule__TypeRule__PathAssignment_0 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1226:1: ( ( rule__TypeRule__PathAssignment_0 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1226:1: ( ( rule__TypeRule__PathAssignment_0 )? )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1227:1: ( rule__TypeRule__PathAssignment_0 )?
- {
- before(grammarAccess.getTypeRuleAccess().getPathAssignment_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1228:1: ( rule__TypeRule__PathAssignment_0 )?
- int alt16 = 2;
- int LA16_0 = input.LA(1);
-
- if ((LA16_0 == RULE_ID)) {
- int LA16_1 = input.LA(2);
-
- if ((LA16_1 == 24)) {
- alt16 = 1;
- }
- }
- switch (alt16) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1228:2: rule__TypeRule__PathAssignment_0
- {
- pushFollow(FOLLOW_rule__TypeRule__PathAssignment_0_in_rule__TypeRule__Group__0__Impl2582);
- rule__TypeRule__PathAssignment_0();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getTypeRuleAccess().getPathAssignment_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__TypeRule__Group__0__Impl"
-
-
- // $ANTLR start "rule__TypeRule__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1238:1: rule__TypeRule__Group__1 : rule__TypeRule__Group__1__Impl ;
- public final void rule__TypeRule__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1242:1: ( rule__TypeRule__Group__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1243:2: rule__TypeRule__Group__1__Impl
- {
- pushFollow(FOLLOW_rule__TypeRule__Group__1__Impl_in_rule__TypeRule__Group__12613);
- rule__TypeRule__Group__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__TypeRule__Group__1"
-
-
- // $ANTLR start "rule__TypeRule__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1249:1: rule__TypeRule__Group__1__Impl : ( ( rule__TypeRule__TypeAssignment_1 ) ) ;
- public final void rule__TypeRule__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1253:1: ( ( ( rule__TypeRule__TypeAssignment_1 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1254:1: ( ( rule__TypeRule__TypeAssignment_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1254:1: ( ( rule__TypeRule__TypeAssignment_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1255:1: ( rule__TypeRule__TypeAssignment_1 )
- {
- before(grammarAccess.getTypeRuleAccess().getTypeAssignment_1());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1256:1: ( rule__TypeRule__TypeAssignment_1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1256:2: rule__TypeRule__TypeAssignment_1
- {
- pushFollow(FOLLOW_rule__TypeRule__TypeAssignment_1_in_rule__TypeRule__Group__1__Impl2640);
- rule__TypeRule__TypeAssignment_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getTypeRuleAccess().getTypeAssignment_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__TypeRule__Group__1__Impl"
-
-
- // $ANTLR start "rule__QualifiedName__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1270:1: rule__QualifiedName__Group__0 : rule__QualifiedName__Group__0__Impl
- // rule__QualifiedName__Group__1 ;
- public final void rule__QualifiedName__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1274:1: ( rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1275:2: rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1
- {
- pushFollow(FOLLOW_rule__QualifiedName__Group__0__Impl_in_rule__QualifiedName__Group__02674);
- rule__QualifiedName__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__QualifiedName__Group__1_in_rule__QualifiedName__Group__02677);
- rule__QualifiedName__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__QualifiedName__Group__0"
-
-
- // $ANTLR start "rule__QualifiedName__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1282:1: rule__QualifiedName__Group__0__Impl : ( ( rule__QualifiedName__PathAssignment_0 ) ) ;
- public final void rule__QualifiedName__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1286:1: ( ( ( rule__QualifiedName__PathAssignment_0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1287:1: ( ( rule__QualifiedName__PathAssignment_0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1287:1: ( ( rule__QualifiedName__PathAssignment_0 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1288:1: ( rule__QualifiedName__PathAssignment_0 )
- {
- before(grammarAccess.getQualifiedNameAccess().getPathAssignment_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1289:1: ( rule__QualifiedName__PathAssignment_0 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1289:2: rule__QualifiedName__PathAssignment_0
- {
- pushFollow(FOLLOW_rule__QualifiedName__PathAssignment_0_in_rule__QualifiedName__Group__0__Impl2704);
- rule__QualifiedName__PathAssignment_0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getQualifiedNameAccess().getPathAssignment_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__QualifiedName__Group__0__Impl"
-
-
- // $ANTLR start "rule__QualifiedName__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1299:1: rule__QualifiedName__Group__1 : rule__QualifiedName__Group__1__Impl
- // rule__QualifiedName__Group__2 ;
- public final void rule__QualifiedName__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1303:1: ( rule__QualifiedName__Group__1__Impl rule__QualifiedName__Group__2 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1304:2: rule__QualifiedName__Group__1__Impl rule__QualifiedName__Group__2
- {
- pushFollow(FOLLOW_rule__QualifiedName__Group__1__Impl_in_rule__QualifiedName__Group__12734);
- rule__QualifiedName__Group__1__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__QualifiedName__Group__2_in_rule__QualifiedName__Group__12737);
- rule__QualifiedName__Group__2();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__QualifiedName__Group__1"
-
-
- // $ANTLR start "rule__QualifiedName__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1311:1: rule__QualifiedName__Group__1__Impl : ( '::' ) ;
- public final void rule__QualifiedName__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1315:1: ( ( '::' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1316:1: ( '::' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1316:1: ( '::' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1317:1: '::'
- {
- before(grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1());
- match(input, 24, FOLLOW_24_in_rule__QualifiedName__Group__1__Impl2765);
- after(grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__QualifiedName__Group__1__Impl"
-
-
- // $ANTLR start "rule__QualifiedName__Group__2"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1330:1: rule__QualifiedName__Group__2 : rule__QualifiedName__Group__2__Impl ;
- public final void rule__QualifiedName__Group__2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1334:1: ( rule__QualifiedName__Group__2__Impl )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1335:2: rule__QualifiedName__Group__2__Impl
- {
- pushFollow(FOLLOW_rule__QualifiedName__Group__2__Impl_in_rule__QualifiedName__Group__22796);
- rule__QualifiedName__Group__2__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__QualifiedName__Group__2"
-
-
- // $ANTLR start "rule__QualifiedName__Group__2__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1341:1: rule__QualifiedName__Group__2__Impl : ( ( rule__QualifiedName__RemainingAssignment_2 )? ) ;
- public final void rule__QualifiedName__Group__2__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1345:1: ( ( ( rule__QualifiedName__RemainingAssignment_2 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1346:1: ( ( rule__QualifiedName__RemainingAssignment_2 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1346:1: ( ( rule__QualifiedName__RemainingAssignment_2 )? )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1347:1: ( rule__QualifiedName__RemainingAssignment_2 )?
- {
- before(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1348:1: ( rule__QualifiedName__RemainingAssignment_2 )?
- int alt17 = 2;
- int LA17_0 = input.LA(1);
-
- if ((LA17_0 == RULE_ID)) {
- int LA17_1 = input.LA(2);
-
- if ((LA17_1 == 24)) {
- alt17 = 1;
- }
- }
- switch (alt17) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1348:2: rule__QualifiedName__RemainingAssignment_2
- {
- pushFollow(FOLLOW_rule__QualifiedName__RemainingAssignment_2_in_rule__QualifiedName__Group__2__Impl2823);
- rule__QualifiedName__RemainingAssignment_2();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__QualifiedName__Group__2__Impl"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1364:1: rule__MultiplicityRule__Group__0 : rule__MultiplicityRule__Group__0__Impl
- // rule__MultiplicityRule__Group__1 ;
- public final void rule__MultiplicityRule__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1368:1: ( rule__MultiplicityRule__Group__0__Impl rule__MultiplicityRule__Group__1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1369:2: rule__MultiplicityRule__Group__0__Impl rule__MultiplicityRule__Group__1
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__Group__0__Impl_in_rule__MultiplicityRule__Group__02860);
- rule__MultiplicityRule__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__MultiplicityRule__Group__1_in_rule__MultiplicityRule__Group__02863);
- rule__MultiplicityRule__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group__0"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1376:1: rule__MultiplicityRule__Group__0__Impl : ( '[' ) ;
- public final void rule__MultiplicityRule__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1380:1: ( ( '[' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1381:1: ( '[' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1381:1: ( '[' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1382:1: '['
- {
- before(grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0());
- match(input, 25, FOLLOW_25_in_rule__MultiplicityRule__Group__0__Impl2891);
- after(grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group__0__Impl"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1395:1: rule__MultiplicityRule__Group__1 : rule__MultiplicityRule__Group__1__Impl
- // rule__MultiplicityRule__Group__2 ;
- public final void rule__MultiplicityRule__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1399:1: ( rule__MultiplicityRule__Group__1__Impl rule__MultiplicityRule__Group__2 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1400:2: rule__MultiplicityRule__Group__1__Impl rule__MultiplicityRule__Group__2
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__Group__1__Impl_in_rule__MultiplicityRule__Group__12922);
- rule__MultiplicityRule__Group__1__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__MultiplicityRule__Group__2_in_rule__MultiplicityRule__Group__12925);
- rule__MultiplicityRule__Group__2();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group__1"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1407:1: rule__MultiplicityRule__Group__1__Impl : ( ( rule__MultiplicityRule__BoundsAssignment_1 ) ) ;
- public final void rule__MultiplicityRule__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1411:1: ( ( ( rule__MultiplicityRule__BoundsAssignment_1 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1412:1: ( ( rule__MultiplicityRule__BoundsAssignment_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1412:1: ( ( rule__MultiplicityRule__BoundsAssignment_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1413:1: ( rule__MultiplicityRule__BoundsAssignment_1 )
- {
- before(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1414:1: ( rule__MultiplicityRule__BoundsAssignment_1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1414:2: rule__MultiplicityRule__BoundsAssignment_1
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__BoundsAssignment_1_in_rule__MultiplicityRule__Group__1__Impl2952);
- rule__MultiplicityRule__BoundsAssignment_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group__1__Impl"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group__2"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1424:1: rule__MultiplicityRule__Group__2 : rule__MultiplicityRule__Group__2__Impl
- // rule__MultiplicityRule__Group__3 ;
- public final void rule__MultiplicityRule__Group__2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1428:1: ( rule__MultiplicityRule__Group__2__Impl rule__MultiplicityRule__Group__3 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1429:2: rule__MultiplicityRule__Group__2__Impl rule__MultiplicityRule__Group__3
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__Group__2__Impl_in_rule__MultiplicityRule__Group__22982);
- rule__MultiplicityRule__Group__2__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__MultiplicityRule__Group__3_in_rule__MultiplicityRule__Group__22985);
- rule__MultiplicityRule__Group__3();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group__2"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group__2__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1436:1: rule__MultiplicityRule__Group__2__Impl : ( ( rule__MultiplicityRule__Group_2__0 )? ) ;
- public final void rule__MultiplicityRule__Group__2__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1440:1: ( ( ( rule__MultiplicityRule__Group_2__0 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1441:1: ( ( rule__MultiplicityRule__Group_2__0 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1441:1: ( ( rule__MultiplicityRule__Group_2__0 )? )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1442:1: ( rule__MultiplicityRule__Group_2__0 )?
- {
- before(grammarAccess.getMultiplicityRuleAccess().getGroup_2());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1443:1: ( rule__MultiplicityRule__Group_2__0 )?
- int alt18 = 2;
- int LA18_0 = input.LA(1);
-
- if ((LA18_0 == 27)) {
- alt18 = 1;
- }
- switch (alt18) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1443:2: rule__MultiplicityRule__Group_2__0
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__Group_2__0_in_rule__MultiplicityRule__Group__2__Impl3012);
- rule__MultiplicityRule__Group_2__0();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getMultiplicityRuleAccess().getGroup_2());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group__2__Impl"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group__3"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1453:1: rule__MultiplicityRule__Group__3 : rule__MultiplicityRule__Group__3__Impl ;
- public final void rule__MultiplicityRule__Group__3() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1457:1: ( rule__MultiplicityRule__Group__3__Impl )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1458:2: rule__MultiplicityRule__Group__3__Impl
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__Group__3__Impl_in_rule__MultiplicityRule__Group__33043);
- rule__MultiplicityRule__Group__3__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group__3"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group__3__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1464:1: rule__MultiplicityRule__Group__3__Impl : ( ']' ) ;
- public final void rule__MultiplicityRule__Group__3__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1468:1: ( ( ']' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1469:1: ( ']' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1469:1: ( ']' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1470:1: ']'
- {
- before(grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3());
- match(input, 26, FOLLOW_26_in_rule__MultiplicityRule__Group__3__Impl3071);
- after(grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group__3__Impl"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group_2__0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1491:1: rule__MultiplicityRule__Group_2__0 : rule__MultiplicityRule__Group_2__0__Impl
- // rule__MultiplicityRule__Group_2__1 ;
- public final void rule__MultiplicityRule__Group_2__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1495:1: ( rule__MultiplicityRule__Group_2__0__Impl rule__MultiplicityRule__Group_2__1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1496:2: rule__MultiplicityRule__Group_2__0__Impl rule__MultiplicityRule__Group_2__1
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__Group_2__0__Impl_in_rule__MultiplicityRule__Group_2__03110);
- rule__MultiplicityRule__Group_2__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__MultiplicityRule__Group_2__1_in_rule__MultiplicityRule__Group_2__03113);
- rule__MultiplicityRule__Group_2__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group_2__0"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group_2__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1503:1: rule__MultiplicityRule__Group_2__0__Impl : ( '..' ) ;
- public final void rule__MultiplicityRule__Group_2__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1507:1: ( ( '..' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1508:1: ( '..' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1508:1: ( '..' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1509:1: '..'
- {
- before(grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0());
- match(input, 27, FOLLOW_27_in_rule__MultiplicityRule__Group_2__0__Impl3141);
- after(grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group_2__0__Impl"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group_2__1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1522:1: rule__MultiplicityRule__Group_2__1 : rule__MultiplicityRule__Group_2__1__Impl ;
- public final void rule__MultiplicityRule__Group_2__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1526:1: ( rule__MultiplicityRule__Group_2__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1527:2: rule__MultiplicityRule__Group_2__1__Impl
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__Group_2__1__Impl_in_rule__MultiplicityRule__Group_2__13172);
- rule__MultiplicityRule__Group_2__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group_2__1"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group_2__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1533:1: rule__MultiplicityRule__Group_2__1__Impl : ( ( rule__MultiplicityRule__BoundsAssignment_2_1 )
- // ) ;
- public final void rule__MultiplicityRule__Group_2__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1537:1: ( ( ( rule__MultiplicityRule__BoundsAssignment_2_1 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1538:1: ( ( rule__MultiplicityRule__BoundsAssignment_2_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1538:1: ( ( rule__MultiplicityRule__BoundsAssignment_2_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1539:1: ( rule__MultiplicityRule__BoundsAssignment_2_1 )
- {
- before(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2_1());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1540:1: ( rule__MultiplicityRule__BoundsAssignment_2_1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1540:2: rule__MultiplicityRule__BoundsAssignment_2_1
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__BoundsAssignment_2_1_in_rule__MultiplicityRule__Group_2__1__Impl3199);
- rule__MultiplicityRule__BoundsAssignment_2_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group_2__1__Impl"
-
-
- // $ANTLR start "rule__ModifiersRule__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1554:1: rule__ModifiersRule__Group__0 : rule__ModifiersRule__Group__0__Impl
- // rule__ModifiersRule__Group__1 ;
- public final void rule__ModifiersRule__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1558:1: ( rule__ModifiersRule__Group__0__Impl rule__ModifiersRule__Group__1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1559:2: rule__ModifiersRule__Group__0__Impl rule__ModifiersRule__Group__1
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group__0__Impl_in_rule__ModifiersRule__Group__03233);
- rule__ModifiersRule__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__ModifiersRule__Group__1_in_rule__ModifiersRule__Group__03236);
- rule__ModifiersRule__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group__0"
-
-
- // $ANTLR start "rule__ModifiersRule__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1566:1: rule__ModifiersRule__Group__0__Impl : ( () ) ;
- public final void rule__ModifiersRule__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1570:1: ( ( () ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1571:1: ( () )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1571:1: ( () )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1572:1: ()
- {
- before(grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1573:1: ()
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1575:1:
- {
- }
-
- after(grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0());
-
- }
-
-
- }
-
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group__0__Impl"
-
-
- // $ANTLR start "rule__ModifiersRule__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1585:1: rule__ModifiersRule__Group__1 : rule__ModifiersRule__Group__1__Impl
- // rule__ModifiersRule__Group__2 ;
- public final void rule__ModifiersRule__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1589:1: ( rule__ModifiersRule__Group__1__Impl rule__ModifiersRule__Group__2 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1590:2: rule__ModifiersRule__Group__1__Impl rule__ModifiersRule__Group__2
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group__1__Impl_in_rule__ModifiersRule__Group__13294);
- rule__ModifiersRule__Group__1__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__ModifiersRule__Group__2_in_rule__ModifiersRule__Group__13297);
- rule__ModifiersRule__Group__2();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group__1"
-
-
- // $ANTLR start "rule__ModifiersRule__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1597:1: rule__ModifiersRule__Group__1__Impl : ( '{' ) ;
- public final void rule__ModifiersRule__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1601:1: ( ( '{' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1602:1: ( '{' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1602:1: ( '{' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1603:1: '{'
- {
- before(grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1());
- match(input, 28, FOLLOW_28_in_rule__ModifiersRule__Group__1__Impl3325);
- after(grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group__1__Impl"
-
-
- // $ANTLR start "rule__ModifiersRule__Group__2"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1616:1: rule__ModifiersRule__Group__2 : rule__ModifiersRule__Group__2__Impl
- // rule__ModifiersRule__Group__3 ;
- public final void rule__ModifiersRule__Group__2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1620:1: ( rule__ModifiersRule__Group__2__Impl rule__ModifiersRule__Group__3 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1621:2: rule__ModifiersRule__Group__2__Impl rule__ModifiersRule__Group__3
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group__2__Impl_in_rule__ModifiersRule__Group__23356);
- rule__ModifiersRule__Group__2__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__ModifiersRule__Group__3_in_rule__ModifiersRule__Group__23359);
- rule__ModifiersRule__Group__3();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group__2"
-
-
- // $ANTLR start "rule__ModifiersRule__Group__2__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1628:1: rule__ModifiersRule__Group__2__Impl : ( ( rule__ModifiersRule__Group_2__0 )? ) ;
- public final void rule__ModifiersRule__Group__2__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1632:1: ( ( ( rule__ModifiersRule__Group_2__0 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1633:1: ( ( rule__ModifiersRule__Group_2__0 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1633:1: ( ( rule__ModifiersRule__Group_2__0 )? )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1634:1: ( rule__ModifiersRule__Group_2__0 )?
- {
- before(grammarAccess.getModifiersRuleAccess().getGroup_2());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1635:1: ( rule__ModifiersRule__Group_2__0 )?
- int alt19 = 2;
- int LA19_0 = input.LA(1);
-
- if (((LA19_0 >= 17 && LA19_0 <= 20) || (LA19_0 >= 31 && LA19_0 <= 32))) {
- alt19 = 1;
- }
- switch (alt19) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1635:2: rule__ModifiersRule__Group_2__0
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group_2__0_in_rule__ModifiersRule__Group__2__Impl3386);
- rule__ModifiersRule__Group_2__0();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getModifiersRuleAccess().getGroup_2());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group__2__Impl"
-
-
- // $ANTLR start "rule__ModifiersRule__Group__3"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1645:1: rule__ModifiersRule__Group__3 : rule__ModifiersRule__Group__3__Impl ;
- public final void rule__ModifiersRule__Group__3() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1649:1: ( rule__ModifiersRule__Group__3__Impl )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1650:2: rule__ModifiersRule__Group__3__Impl
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group__3__Impl_in_rule__ModifiersRule__Group__33417);
- rule__ModifiersRule__Group__3__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group__3"
-
-
- // $ANTLR start "rule__ModifiersRule__Group__3__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1656:1: rule__ModifiersRule__Group__3__Impl : ( '}' ) ;
- public final void rule__ModifiersRule__Group__3__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1660:1: ( ( '}' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1661:1: ( '}' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1661:1: ( '}' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1662:1: '}'
- {
- before(grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3());
- match(input, 29, FOLLOW_29_in_rule__ModifiersRule__Group__3__Impl3445);
- after(grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group__3__Impl"
-
-
- // $ANTLR start "rule__ModifiersRule__Group_2__0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1683:1: rule__ModifiersRule__Group_2__0 : rule__ModifiersRule__Group_2__0__Impl
- // rule__ModifiersRule__Group_2__1 ;
- public final void rule__ModifiersRule__Group_2__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1687:1: ( rule__ModifiersRule__Group_2__0__Impl rule__ModifiersRule__Group_2__1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1688:2: rule__ModifiersRule__Group_2__0__Impl rule__ModifiersRule__Group_2__1
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group_2__0__Impl_in_rule__ModifiersRule__Group_2__03484);
- rule__ModifiersRule__Group_2__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__ModifiersRule__Group_2__1_in_rule__ModifiersRule__Group_2__03487);
- rule__ModifiersRule__Group_2__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group_2__0"
-
-
- // $ANTLR start "rule__ModifiersRule__Group_2__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1695:1: rule__ModifiersRule__Group_2__0__Impl : ( ( rule__ModifiersRule__ValuesAssignment_2_0 ) ) ;
- public final void rule__ModifiersRule__Group_2__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1699:1: ( ( ( rule__ModifiersRule__ValuesAssignment_2_0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1700:1: ( ( rule__ModifiersRule__ValuesAssignment_2_0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1700:1: ( ( rule__ModifiersRule__ValuesAssignment_2_0 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1701:1: ( rule__ModifiersRule__ValuesAssignment_2_0 )
- {
- before(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1702:1: ( rule__ModifiersRule__ValuesAssignment_2_0 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1702:2: rule__ModifiersRule__ValuesAssignment_2_0
- {
- pushFollow(FOLLOW_rule__ModifiersRule__ValuesAssignment_2_0_in_rule__ModifiersRule__Group_2__0__Impl3514);
- rule__ModifiersRule__ValuesAssignment_2_0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group_2__0__Impl"
-
-
- // $ANTLR start "rule__ModifiersRule__Group_2__1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1712:1: rule__ModifiersRule__Group_2__1 : rule__ModifiersRule__Group_2__1__Impl ;
- public final void rule__ModifiersRule__Group_2__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1716:1: ( rule__ModifiersRule__Group_2__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1717:2: rule__ModifiersRule__Group_2__1__Impl
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group_2__1__Impl_in_rule__ModifiersRule__Group_2__13544);
- rule__ModifiersRule__Group_2__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group_2__1"
-
-
- // $ANTLR start "rule__ModifiersRule__Group_2__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1723:1: rule__ModifiersRule__Group_2__1__Impl : ( ( rule__ModifiersRule__Group_2_1__0 )* ) ;
- public final void rule__ModifiersRule__Group_2__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1727:1: ( ( ( rule__ModifiersRule__Group_2_1__0 )* ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1728:1: ( ( rule__ModifiersRule__Group_2_1__0 )* )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1728:1: ( ( rule__ModifiersRule__Group_2_1__0 )* )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1729:1: ( rule__ModifiersRule__Group_2_1__0 )*
- {
- before(grammarAccess.getModifiersRuleAccess().getGroup_2_1());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1730:1: ( rule__ModifiersRule__Group_2_1__0 )*
- loop20: do {
- int alt20 = 2;
- int LA20_0 = input.LA(1);
-
- if ((LA20_0 == 30)) {
- alt20 = 1;
- }
-
-
- switch (alt20) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1730:2: rule__ModifiersRule__Group_2_1__0
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group_2_1__0_in_rule__ModifiersRule__Group_2__1__Impl3571);
- rule__ModifiersRule__Group_2_1__0();
-
- state._fsp--;
-
-
- }
- break;
-
- default:
- break loop20;
- }
- } while (true);
-
- after(grammarAccess.getModifiersRuleAccess().getGroup_2_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group_2__1__Impl"
-
-
- // $ANTLR start "rule__ModifiersRule__Group_2_1__0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1744:1: rule__ModifiersRule__Group_2_1__0 : rule__ModifiersRule__Group_2_1__0__Impl
- // rule__ModifiersRule__Group_2_1__1 ;
- public final void rule__ModifiersRule__Group_2_1__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1748:1: ( rule__ModifiersRule__Group_2_1__0__Impl rule__ModifiersRule__Group_2_1__1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1749:2: rule__ModifiersRule__Group_2_1__0__Impl rule__ModifiersRule__Group_2_1__1
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group_2_1__0__Impl_in_rule__ModifiersRule__Group_2_1__03606);
- rule__ModifiersRule__Group_2_1__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__ModifiersRule__Group_2_1__1_in_rule__ModifiersRule__Group_2_1__03609);
- rule__ModifiersRule__Group_2_1__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group_2_1__0"
-
-
- // $ANTLR start "rule__ModifiersRule__Group_2_1__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1756:1: rule__ModifiersRule__Group_2_1__0__Impl : ( ',' ) ;
- public final void rule__ModifiersRule__Group_2_1__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1760:1: ( ( ',' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1761:1: ( ',' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1761:1: ( ',' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1762:1: ','
- {
- before(grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0());
- match(input, 30, FOLLOW_30_in_rule__ModifiersRule__Group_2_1__0__Impl3637);
- after(grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group_2_1__0__Impl"
-
-
- // $ANTLR start "rule__ModifiersRule__Group_2_1__1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1775:1: rule__ModifiersRule__Group_2_1__1 : rule__ModifiersRule__Group_2_1__1__Impl ;
- public final void rule__ModifiersRule__Group_2_1__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1779:1: ( rule__ModifiersRule__Group_2_1__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1780:2: rule__ModifiersRule__Group_2_1__1__Impl
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group_2_1__1__Impl_in_rule__ModifiersRule__Group_2_1__13668);
- rule__ModifiersRule__Group_2_1__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group_2_1__1"
-
-
- // $ANTLR start "rule__ModifiersRule__Group_2_1__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1786:1: rule__ModifiersRule__Group_2_1__1__Impl : ( ( rule__ModifiersRule__ValuesAssignment_2_1_1 ) )
- // ;
- public final void rule__ModifiersRule__Group_2_1__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1790:1: ( ( ( rule__ModifiersRule__ValuesAssignment_2_1_1 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1791:1: ( ( rule__ModifiersRule__ValuesAssignment_2_1_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1791:1: ( ( rule__ModifiersRule__ValuesAssignment_2_1_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1792:1: ( rule__ModifiersRule__ValuesAssignment_2_1_1 )
- {
- before(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1793:1: ( rule__ModifiersRule__ValuesAssignment_2_1_1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1793:2: rule__ModifiersRule__ValuesAssignment_2_1_1
- {
- pushFollow(FOLLOW_rule__ModifiersRule__ValuesAssignment_2_1_1_in_rule__ModifiersRule__Group_2_1__1__Impl3695);
- rule__ModifiersRule__ValuesAssignment_2_1_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group_2_1__1__Impl"
-
-
- // $ANTLR start "rule__RedefinesRule__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1807:1: rule__RedefinesRule__Group__0 : rule__RedefinesRule__Group__0__Impl
- // rule__RedefinesRule__Group__1 ;
- public final void rule__RedefinesRule__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1811:1: ( rule__RedefinesRule__Group__0__Impl rule__RedefinesRule__Group__1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1812:2: rule__RedefinesRule__Group__0__Impl rule__RedefinesRule__Group__1
- {
- pushFollow(FOLLOW_rule__RedefinesRule__Group__0__Impl_in_rule__RedefinesRule__Group__03729);
- rule__RedefinesRule__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__RedefinesRule__Group__1_in_rule__RedefinesRule__Group__03732);
- rule__RedefinesRule__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RedefinesRule__Group__0"
-
-
- // $ANTLR start "rule__RedefinesRule__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1819:1: rule__RedefinesRule__Group__0__Impl : ( 'redefines' ) ;
- public final void rule__RedefinesRule__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1823:1: ( ( 'redefines' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1824:1: ( 'redefines' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1824:1: ( 'redefines' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1825:1: 'redefines'
- {
- before(grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0());
- match(input, 31, FOLLOW_31_in_rule__RedefinesRule__Group__0__Impl3760);
- after(grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RedefinesRule__Group__0__Impl"
-
-
- // $ANTLR start "rule__RedefinesRule__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1838:1: rule__RedefinesRule__Group__1 : rule__RedefinesRule__Group__1__Impl ;
- public final void rule__RedefinesRule__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1842:1: ( rule__RedefinesRule__Group__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1843:2: rule__RedefinesRule__Group__1__Impl
- {
- pushFollow(FOLLOW_rule__RedefinesRule__Group__1__Impl_in_rule__RedefinesRule__Group__13791);
- rule__RedefinesRule__Group__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RedefinesRule__Group__1"
-
-
- // $ANTLR start "rule__RedefinesRule__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1849:1: rule__RedefinesRule__Group__1__Impl : ( ( rule__RedefinesRule__PortAssignment_1 ) ) ;
- public final void rule__RedefinesRule__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1853:1: ( ( ( rule__RedefinesRule__PortAssignment_1 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1854:1: ( ( rule__RedefinesRule__PortAssignment_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1854:1: ( ( rule__RedefinesRule__PortAssignment_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1855:1: ( rule__RedefinesRule__PortAssignment_1 )
- {
- before(grammarAccess.getRedefinesRuleAccess().getPortAssignment_1());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1856:1: ( rule__RedefinesRule__PortAssignment_1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1856:2: rule__RedefinesRule__PortAssignment_1
- {
- pushFollow(FOLLOW_rule__RedefinesRule__PortAssignment_1_in_rule__RedefinesRule__Group__1__Impl3818);
- rule__RedefinesRule__PortAssignment_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRedefinesRuleAccess().getPortAssignment_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RedefinesRule__Group__1__Impl"
-
-
- // $ANTLR start "rule__SubsetsRule__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1870:1: rule__SubsetsRule__Group__0 : rule__SubsetsRule__Group__0__Impl rule__SubsetsRule__Group__1 ;
- public final void rule__SubsetsRule__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1874:1: ( rule__SubsetsRule__Group__0__Impl rule__SubsetsRule__Group__1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1875:2: rule__SubsetsRule__Group__0__Impl rule__SubsetsRule__Group__1
- {
- pushFollow(FOLLOW_rule__SubsetsRule__Group__0__Impl_in_rule__SubsetsRule__Group__03852);
- rule__SubsetsRule__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__SubsetsRule__Group__1_in_rule__SubsetsRule__Group__03855);
- rule__SubsetsRule__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__SubsetsRule__Group__0"
-
-
- // $ANTLR start "rule__SubsetsRule__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1882:1: rule__SubsetsRule__Group__0__Impl : ( 'subsets' ) ;
- public final void rule__SubsetsRule__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1886:1: ( ( 'subsets' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1887:1: ( 'subsets' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1887:1: ( 'subsets' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1888:1: 'subsets'
- {
- before(grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0());
- match(input, 32, FOLLOW_32_in_rule__SubsetsRule__Group__0__Impl3883);
- after(grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__SubsetsRule__Group__0__Impl"
-
-
- // $ANTLR start "rule__SubsetsRule__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1901:1: rule__SubsetsRule__Group__1 : rule__SubsetsRule__Group__1__Impl ;
- public final void rule__SubsetsRule__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1905:1: ( rule__SubsetsRule__Group__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1906:2: rule__SubsetsRule__Group__1__Impl
- {
- pushFollow(FOLLOW_rule__SubsetsRule__Group__1__Impl_in_rule__SubsetsRule__Group__13914);
- rule__SubsetsRule__Group__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__SubsetsRule__Group__1"
-
-
- // $ANTLR start "rule__SubsetsRule__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1912:1: rule__SubsetsRule__Group__1__Impl : ( ( rule__SubsetsRule__PortAssignment_1 ) ) ;
- public final void rule__SubsetsRule__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1916:1: ( ( ( rule__SubsetsRule__PortAssignment_1 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1917:1: ( ( rule__SubsetsRule__PortAssignment_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1917:1: ( ( rule__SubsetsRule__PortAssignment_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1918:1: ( rule__SubsetsRule__PortAssignment_1 )
- {
- before(grammarAccess.getSubsetsRuleAccess().getPortAssignment_1());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1919:1: ( rule__SubsetsRule__PortAssignment_1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1919:2: rule__SubsetsRule__PortAssignment_1
- {
- pushFollow(FOLLOW_rule__SubsetsRule__PortAssignment_1_in_rule__SubsetsRule__Group__1__Impl3941);
- rule__SubsetsRule__PortAssignment_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getSubsetsRuleAccess().getPortAssignment_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__SubsetsRule__Group__1__Impl"
-
-
- // $ANTLR start "rule__DefaultValueRule__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1933:1: rule__DefaultValueRule__Group__0 : rule__DefaultValueRule__Group__0__Impl
- // rule__DefaultValueRule__Group__1 ;
- public final void rule__DefaultValueRule__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1937:1: ( rule__DefaultValueRule__Group__0__Impl rule__DefaultValueRule__Group__1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1938:2: rule__DefaultValueRule__Group__0__Impl rule__DefaultValueRule__Group__1
- {
- pushFollow(FOLLOW_rule__DefaultValueRule__Group__0__Impl_in_rule__DefaultValueRule__Group__03975);
- rule__DefaultValueRule__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__DefaultValueRule__Group__1_in_rule__DefaultValueRule__Group__03978);
- rule__DefaultValueRule__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__DefaultValueRule__Group__0"
-
-
- // $ANTLR start "rule__DefaultValueRule__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1945:1: rule__DefaultValueRule__Group__0__Impl : ( '=' ) ;
- public final void rule__DefaultValueRule__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1949:1: ( ( '=' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1950:1: ( '=' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1950:1: ( '=' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1951:1: '='
- {
- before(grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0());
- match(input, 33, FOLLOW_33_in_rule__DefaultValueRule__Group__0__Impl4006);
- after(grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__DefaultValueRule__Group__0__Impl"
-
-
- // $ANTLR start "rule__DefaultValueRule__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1964:1: rule__DefaultValueRule__Group__1 : rule__DefaultValueRule__Group__1__Impl ;
- public final void rule__DefaultValueRule__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1968:1: ( rule__DefaultValueRule__Group__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1969:2: rule__DefaultValueRule__Group__1__Impl
- {
- pushFollow(FOLLOW_rule__DefaultValueRule__Group__1__Impl_in_rule__DefaultValueRule__Group__14037);
- rule__DefaultValueRule__Group__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__DefaultValueRule__Group__1"
-
-
- // $ANTLR start "rule__DefaultValueRule__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1975:1: rule__DefaultValueRule__Group__1__Impl : ( ( rule__DefaultValueRule__DefaultAssignment_1 ) )
- // ;
- public final void rule__DefaultValueRule__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1979:1: ( ( ( rule__DefaultValueRule__DefaultAssignment_1 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1980:1: ( ( rule__DefaultValueRule__DefaultAssignment_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1980:1: ( ( rule__DefaultValueRule__DefaultAssignment_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1981:1: ( rule__DefaultValueRule__DefaultAssignment_1 )
- {
- before(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1982:1: ( rule__DefaultValueRule__DefaultAssignment_1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1982:2: rule__DefaultValueRule__DefaultAssignment_1
- {
- pushFollow(FOLLOW_rule__DefaultValueRule__DefaultAssignment_1_in_rule__DefaultValueRule__Group__1__Impl4064);
- rule__DefaultValueRule__DefaultAssignment_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__DefaultValueRule__Group__1__Impl"
-
-
- // $ANTLR start "rule__RealValue__Group_0__0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1996:1: rule__RealValue__Group_0__0 : rule__RealValue__Group_0__0__Impl rule__RealValue__Group_0__1 ;
- public final void rule__RealValue__Group_0__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2000:1: ( rule__RealValue__Group_0__0__Impl rule__RealValue__Group_0__1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2001:2: rule__RealValue__Group_0__0__Impl rule__RealValue__Group_0__1
- {
- pushFollow(FOLLOW_rule__RealValue__Group_0__0__Impl_in_rule__RealValue__Group_0__04098);
- rule__RealValue__Group_0__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__RealValue__Group_0__1_in_rule__RealValue__Group_0__04101);
- rule__RealValue__Group_0__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_0__0"
-
-
- // $ANTLR start "rule__RealValue__Group_0__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2008:1: rule__RealValue__Group_0__0__Impl : ( ( rule__RealValue__IntegerAssignment_0_0 ) ) ;
- public final void rule__RealValue__Group_0__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2012:1: ( ( ( rule__RealValue__IntegerAssignment_0_0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2013:1: ( ( rule__RealValue__IntegerAssignment_0_0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2013:1: ( ( rule__RealValue__IntegerAssignment_0_0 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2014:1: ( rule__RealValue__IntegerAssignment_0_0 )
- {
- before(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2015:1: ( rule__RealValue__IntegerAssignment_0_0 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2015:2: rule__RealValue__IntegerAssignment_0_0
- {
- pushFollow(FOLLOW_rule__RealValue__IntegerAssignment_0_0_in_rule__RealValue__Group_0__0__Impl4128);
- rule__RealValue__IntegerAssignment_0_0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_0__0__Impl"
-
-
- // $ANTLR start "rule__RealValue__Group_0__1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2025:1: rule__RealValue__Group_0__1 : rule__RealValue__Group_0__1__Impl ;
- public final void rule__RealValue__Group_0__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2029:1: ( rule__RealValue__Group_0__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2030:2: rule__RealValue__Group_0__1__Impl
- {
- pushFollow(FOLLOW_rule__RealValue__Group_0__1__Impl_in_rule__RealValue__Group_0__14158);
- rule__RealValue__Group_0__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_0__1"
-
-
- // $ANTLR start "rule__RealValue__Group_0__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2036:1: rule__RealValue__Group_0__1__Impl : ( '.' ) ;
- public final void rule__RealValue__Group_0__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2040:1: ( ( '.' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2041:1: ( '.' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2041:1: ( '.' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2042:1: '.'
- {
- before(grammarAccess.getRealValueAccess().getFullStopKeyword_0_1());
- match(input, 34, FOLLOW_34_in_rule__RealValue__Group_0__1__Impl4186);
- after(grammarAccess.getRealValueAccess().getFullStopKeyword_0_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_0__1__Impl"
-
-
- // $ANTLR start "rule__RealValue__Group_1__0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2059:1: rule__RealValue__Group_1__0 : rule__RealValue__Group_1__0__Impl rule__RealValue__Group_1__1 ;
- public final void rule__RealValue__Group_1__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2063:1: ( rule__RealValue__Group_1__0__Impl rule__RealValue__Group_1__1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2064:2: rule__RealValue__Group_1__0__Impl rule__RealValue__Group_1__1
- {
- pushFollow(FOLLOW_rule__RealValue__Group_1__0__Impl_in_rule__RealValue__Group_1__04221);
- rule__RealValue__Group_1__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__RealValue__Group_1__1_in_rule__RealValue__Group_1__04224);
- rule__RealValue__Group_1__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_1__0"
-
-
- // $ANTLR start "rule__RealValue__Group_1__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2071:1: rule__RealValue__Group_1__0__Impl : ( '.' ) ;
- public final void rule__RealValue__Group_1__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2075:1: ( ( '.' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2076:1: ( '.' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2076:1: ( '.' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2077:1: '.'
- {
- before(grammarAccess.getRealValueAccess().getFullStopKeyword_1_0());
- match(input, 34, FOLLOW_34_in_rule__RealValue__Group_1__0__Impl4252);
- after(grammarAccess.getRealValueAccess().getFullStopKeyword_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_1__0__Impl"
-
-
- // $ANTLR start "rule__RealValue__Group_1__1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2090:1: rule__RealValue__Group_1__1 : rule__RealValue__Group_1__1__Impl ;
- public final void rule__RealValue__Group_1__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2094:1: ( rule__RealValue__Group_1__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2095:2: rule__RealValue__Group_1__1__Impl
- {
- pushFollow(FOLLOW_rule__RealValue__Group_1__1__Impl_in_rule__RealValue__Group_1__14283);
- rule__RealValue__Group_1__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_1__1"
-
-
- // $ANTLR start "rule__RealValue__Group_1__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2101:1: rule__RealValue__Group_1__1__Impl : ( ( rule__RealValue__FractionAssignment_1_1 ) ) ;
- public final void rule__RealValue__Group_1__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2105:1: ( ( ( rule__RealValue__FractionAssignment_1_1 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2106:1: ( ( rule__RealValue__FractionAssignment_1_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2106:1: ( ( rule__RealValue__FractionAssignment_1_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2107:1: ( rule__RealValue__FractionAssignment_1_1 )
- {
- before(grammarAccess.getRealValueAccess().getFractionAssignment_1_1());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2108:1: ( rule__RealValue__FractionAssignment_1_1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2108:2: rule__RealValue__FractionAssignment_1_1
- {
- pushFollow(FOLLOW_rule__RealValue__FractionAssignment_1_1_in_rule__RealValue__Group_1__1__Impl4310);
- rule__RealValue__FractionAssignment_1_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRealValueAccess().getFractionAssignment_1_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_1__1__Impl"
-
-
- // $ANTLR start "rule__RealValue__Group_2__0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2122:1: rule__RealValue__Group_2__0 : rule__RealValue__Group_2__0__Impl rule__RealValue__Group_2__1 ;
- public final void rule__RealValue__Group_2__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2126:1: ( rule__RealValue__Group_2__0__Impl rule__RealValue__Group_2__1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2127:2: rule__RealValue__Group_2__0__Impl rule__RealValue__Group_2__1
- {
- pushFollow(FOLLOW_rule__RealValue__Group_2__0__Impl_in_rule__RealValue__Group_2__04344);
- rule__RealValue__Group_2__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__RealValue__Group_2__1_in_rule__RealValue__Group_2__04347);
- rule__RealValue__Group_2__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_2__0"
-
-
- // $ANTLR start "rule__RealValue__Group_2__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2134:1: rule__RealValue__Group_2__0__Impl : ( ( rule__RealValue__IntegerAssignment_2_0 ) ) ;
- public final void rule__RealValue__Group_2__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2138:1: ( ( ( rule__RealValue__IntegerAssignment_2_0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2139:1: ( ( rule__RealValue__IntegerAssignment_2_0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2139:1: ( ( rule__RealValue__IntegerAssignment_2_0 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2140:1: ( rule__RealValue__IntegerAssignment_2_0 )
- {
- before(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2141:1: ( rule__RealValue__IntegerAssignment_2_0 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2141:2: rule__RealValue__IntegerAssignment_2_0
- {
- pushFollow(FOLLOW_rule__RealValue__IntegerAssignment_2_0_in_rule__RealValue__Group_2__0__Impl4374);
- rule__RealValue__IntegerAssignment_2_0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_2__0__Impl"
-
-
- // $ANTLR start "rule__RealValue__Group_2__1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2151:1: rule__RealValue__Group_2__1 : rule__RealValue__Group_2__1__Impl rule__RealValue__Group_2__2 ;
- public final void rule__RealValue__Group_2__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2155:1: ( rule__RealValue__Group_2__1__Impl rule__RealValue__Group_2__2 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2156:2: rule__RealValue__Group_2__1__Impl rule__RealValue__Group_2__2
- {
- pushFollow(FOLLOW_rule__RealValue__Group_2__1__Impl_in_rule__RealValue__Group_2__14404);
- rule__RealValue__Group_2__1__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__RealValue__Group_2__2_in_rule__RealValue__Group_2__14407);
- rule__RealValue__Group_2__2();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_2__1"
-
-
- // $ANTLR start "rule__RealValue__Group_2__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2163:1: rule__RealValue__Group_2__1__Impl : ( '.' ) ;
- public final void rule__RealValue__Group_2__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2167:1: ( ( '.' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2168:1: ( '.' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2168:1: ( '.' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2169:1: '.'
- {
- before(grammarAccess.getRealValueAccess().getFullStopKeyword_2_1());
- match(input, 34, FOLLOW_34_in_rule__RealValue__Group_2__1__Impl4435);
- after(grammarAccess.getRealValueAccess().getFullStopKeyword_2_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_2__1__Impl"
-
-
- // $ANTLR start "rule__RealValue__Group_2__2"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2182:1: rule__RealValue__Group_2__2 : rule__RealValue__Group_2__2__Impl ;
- public final void rule__RealValue__Group_2__2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2186:1: ( rule__RealValue__Group_2__2__Impl )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2187:2: rule__RealValue__Group_2__2__Impl
- {
- pushFollow(FOLLOW_rule__RealValue__Group_2__2__Impl_in_rule__RealValue__Group_2__24466);
- rule__RealValue__Group_2__2__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_2__2"
-
-
- // $ANTLR start "rule__RealValue__Group_2__2__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2193:1: rule__RealValue__Group_2__2__Impl : ( ( rule__RealValue__FractionAssignment_2_2 ) ) ;
- public final void rule__RealValue__Group_2__2__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2197:1: ( ( ( rule__RealValue__FractionAssignment_2_2 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2198:1: ( ( rule__RealValue__FractionAssignment_2_2 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2198:1: ( ( rule__RealValue__FractionAssignment_2_2 ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2199:1: ( rule__RealValue__FractionAssignment_2_2 )
- {
- before(grammarAccess.getRealValueAccess().getFractionAssignment_2_2());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2200:1: ( rule__RealValue__FractionAssignment_2_2 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2200:2: rule__RealValue__FractionAssignment_2_2
- {
- pushFollow(FOLLOW_rule__RealValue__FractionAssignment_2_2_in_rule__RealValue__Group_2__2__Impl4493);
- rule__RealValue__FractionAssignment_2_2();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRealValueAccess().getFractionAssignment_2_2());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_2__2__Impl"
-
-
- // $ANTLR start "rule__NullValue__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2216:1: rule__NullValue__Group__0 : rule__NullValue__Group__0__Impl rule__NullValue__Group__1 ;
- public final void rule__NullValue__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2220:1: ( rule__NullValue__Group__0__Impl rule__NullValue__Group__1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2221:2: rule__NullValue__Group__0__Impl rule__NullValue__Group__1
- {
- pushFollow(FOLLOW_rule__NullValue__Group__0__Impl_in_rule__NullValue__Group__04529);
- rule__NullValue__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__NullValue__Group__1_in_rule__NullValue__Group__04532);
- rule__NullValue__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__NullValue__Group__0"
-
-
- // $ANTLR start "rule__NullValue__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2228:1: rule__NullValue__Group__0__Impl : ( () ) ;
- public final void rule__NullValue__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2232:1: ( ( () ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2233:1: ( () )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2233:1: ( () )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2234:1: ()
- {
- before(grammarAccess.getNullValueAccess().getNullValueAction_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2235:1: ()
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2237:1:
- {
- }
-
- after(grammarAccess.getNullValueAccess().getNullValueAction_0());
-
- }
-
-
- }
-
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__NullValue__Group__0__Impl"
-
-
- // $ANTLR start "rule__NullValue__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2247:1: rule__NullValue__Group__1 : rule__NullValue__Group__1__Impl ;
- public final void rule__NullValue__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2251:1: ( rule__NullValue__Group__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2252:2: rule__NullValue__Group__1__Impl
- {
- pushFollow(FOLLOW_rule__NullValue__Group__1__Impl_in_rule__NullValue__Group__14590);
- rule__NullValue__Group__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__NullValue__Group__1"
-
-
- // $ANTLR start "rule__NullValue__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2258:1: rule__NullValue__Group__1__Impl : ( 'null' ) ;
- public final void rule__NullValue__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2262:1: ( ( 'null' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2263:1: ( 'null' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2263:1: ( 'null' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2264:1: 'null'
- {
- before(grammarAccess.getNullValueAccess().getNullKeyword_1());
- match(input, 35, FOLLOW_35_in_rule__NullValue__Group__1__Impl4618);
- after(grammarAccess.getNullValueAccess().getNullKeyword_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__NullValue__Group__1__Impl"
-
-
- // $ANTLR start "rule__NoValue__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2281:1: rule__NoValue__Group__0 : rule__NoValue__Group__0__Impl rule__NoValue__Group__1 ;
- public final void rule__NoValue__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2285:1: ( rule__NoValue__Group__0__Impl rule__NoValue__Group__1 )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2286:2: rule__NoValue__Group__0__Impl rule__NoValue__Group__1
- {
- pushFollow(FOLLOW_rule__NoValue__Group__0__Impl_in_rule__NoValue__Group__04653);
- rule__NoValue__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__NoValue__Group__1_in_rule__NoValue__Group__04656);
- rule__NoValue__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__NoValue__Group__0"
-
-
- // $ANTLR start "rule__NoValue__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2293:1: rule__NoValue__Group__0__Impl : ( () ) ;
- public final void rule__NoValue__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2297:1: ( ( () ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2298:1: ( () )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2298:1: ( () )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2299:1: ()
- {
- before(grammarAccess.getNoValueAccess().getNoValueAction_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2300:1: ()
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2302:1:
- {
- }
-
- after(grammarAccess.getNoValueAccess().getNoValueAction_0());
-
- }
-
-
- }
-
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__NoValue__Group__0__Impl"
-
-
- // $ANTLR start "rule__NoValue__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2312:1: rule__NoValue__Group__1 : rule__NoValue__Group__1__Impl ;
- public final void rule__NoValue__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2316:1: ( rule__NoValue__Group__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2317:2: rule__NoValue__Group__1__Impl
- {
- pushFollow(FOLLOW_rule__NoValue__Group__1__Impl_in_rule__NoValue__Group__14714);
- rule__NoValue__Group__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__NoValue__Group__1"
-
-
- // $ANTLR start "rule__NoValue__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2323:1: rule__NoValue__Group__1__Impl : ( 'none' ) ;
- public final void rule__NoValue__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2327:1: ( ( 'none' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2328:1: ( 'none' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2328:1: ( 'none' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2329:1: 'none'
- {
- before(grammarAccess.getNoValueAccess().getNoneKeyword_1());
- match(input, 36, FOLLOW_36_in_rule__NoValue__Group__1__Impl4742);
- after(grammarAccess.getNoValueAccess().getNoneKeyword_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__NoValue__Group__1__Impl"
-
-
- // $ANTLR start "rule__PortRule__VisibilityAssignment_0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2347:1: rule__PortRule__VisibilityAssignment_0 : ( ruleVisibilityRule ) ;
- public final void rule__PortRule__VisibilityAssignment_0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2351:1: ( ( ruleVisibilityRule ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2352:1: ( ruleVisibilityRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2352:1: ( ruleVisibilityRule )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2353:1: ruleVisibilityRule
- {
- before(grammarAccess.getPortRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0());
- pushFollow(FOLLOW_ruleVisibilityRule_in_rule__PortRule__VisibilityAssignment_04782);
- ruleVisibilityRule();
-
- state._fsp--;
-
- after(grammarAccess.getPortRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__VisibilityAssignment_0"
-
-
- // $ANTLR start "rule__PortRule__DerivedAssignment_1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2362:1: rule__PortRule__DerivedAssignment_1 : ( ( '/' ) ) ;
- public final void rule__PortRule__DerivedAssignment_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2366:1: ( ( ( '/' ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2367:1: ( ( '/' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2367:1: ( ( '/' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2368:1: ( '/' )
- {
- before(grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2369:1: ( '/' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2370:1: '/'
- {
- before(grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0());
- match(input, 37, FOLLOW_37_in_rule__PortRule__DerivedAssignment_14818);
- after(grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0());
-
- }
-
- after(grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__DerivedAssignment_1"
-
-
- // $ANTLR start "rule__PortRule__NameAssignment_2"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2385:1: rule__PortRule__NameAssignment_2 : ( RULE_ID ) ;
- public final void rule__PortRule__NameAssignment_2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2389:1: ( ( RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2390:1: ( RULE_ID )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2390:1: ( RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2391:1: RULE_ID
- {
- before(grammarAccess.getPortRuleAccess().getNameIDTerminalRuleCall_2_0());
- match(input, RULE_ID, FOLLOW_RULE_ID_in_rule__PortRule__NameAssignment_24857);
- after(grammarAccess.getPortRuleAccess().getNameIDTerminalRuleCall_2_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__NameAssignment_2"
-
-
- // $ANTLR start "rule__PortRule__ConjugatedAssignment_3_1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2400:1: rule__PortRule__ConjugatedAssignment_3_1 : ( ( '~' ) ) ;
- public final void rule__PortRule__ConjugatedAssignment_3_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2404:1: ( ( ( '~' ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2405:1: ( ( '~' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2405:1: ( ( '~' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2406:1: ( '~' )
- {
- before(grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2407:1: ( '~' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2408:1: '~'
- {
- before(grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0());
- match(input, 16, FOLLOW_16_in_rule__PortRule__ConjugatedAssignment_3_14893);
- after(grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0());
-
- }
-
- after(grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__ConjugatedAssignment_3_1"
-
-
- // $ANTLR start "rule__PortRule__TypeAssignment_3_2_0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2423:1: rule__PortRule__TypeAssignment_3_2_0 : ( ruleTypeRule ) ;
- public final void rule__PortRule__TypeAssignment_3_2_0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2427:1: ( ( ruleTypeRule ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2428:1: ( ruleTypeRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2428:1: ( ruleTypeRule )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2429:1: ruleTypeRule
- {
- before(grammarAccess.getPortRuleAccess().getTypeTypeRuleParserRuleCall_3_2_0_0());
- pushFollow(FOLLOW_ruleTypeRule_in_rule__PortRule__TypeAssignment_3_2_04932);
- ruleTypeRule();
-
- state._fsp--;
-
- after(grammarAccess.getPortRuleAccess().getTypeTypeRuleParserRuleCall_3_2_0_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__TypeAssignment_3_2_0"
-
-
- // $ANTLR start "rule__PortRule__TypeUndefinedAssignment_3_2_1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2438:1: rule__PortRule__TypeUndefinedAssignment_3_2_1 : ( ( '<Undefined>' ) ) ;
- public final void rule__PortRule__TypeUndefinedAssignment_3_2_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2442:1: ( ( ( '<Undefined>' ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2443:1: ( ( '<Undefined>' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2443:1: ( ( '<Undefined>' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2444:1: ( '<Undefined>' )
- {
- before(grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2445:1: ( '<Undefined>' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2446:1: '<Undefined>'
- {
- before(grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0());
- match(input, 38, FOLLOW_38_in_rule__PortRule__TypeUndefinedAssignment_3_2_14968);
- after(grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0());
-
- }
-
- after(grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__TypeUndefinedAssignment_3_2_1"
-
-
- // $ANTLR start "rule__PortRule__MultiplicityAssignment_4"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2461:1: rule__PortRule__MultiplicityAssignment_4 : ( ruleMultiplicityRule ) ;
- public final void rule__PortRule__MultiplicityAssignment_4() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2465:1: ( ( ruleMultiplicityRule ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2466:1: ( ruleMultiplicityRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2466:1: ( ruleMultiplicityRule )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2467:1: ruleMultiplicityRule
- {
- before(grammarAccess.getPortRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0());
- pushFollow(FOLLOW_ruleMultiplicityRule_in_rule__PortRule__MultiplicityAssignment_45007);
- ruleMultiplicityRule();
-
- state._fsp--;
-
- after(grammarAccess.getPortRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__MultiplicityAssignment_4"
-
-
- // $ANTLR start "rule__PortRule__ModifiersAssignment_5"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2476:1: rule__PortRule__ModifiersAssignment_5 : ( ruleModifiersRule ) ;
- public final void rule__PortRule__ModifiersAssignment_5() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2480:1: ( ( ruleModifiersRule ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2481:1: ( ruleModifiersRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2481:1: ( ruleModifiersRule )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2482:1: ruleModifiersRule
- {
- before(grammarAccess.getPortRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0());
- pushFollow(FOLLOW_ruleModifiersRule_in_rule__PortRule__ModifiersAssignment_55038);
- ruleModifiersRule();
-
- state._fsp--;
-
- after(grammarAccess.getPortRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__ModifiersAssignment_5"
-
-
- // $ANTLR start "rule__PortRule__DefaultAssignment_6"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2491:1: rule__PortRule__DefaultAssignment_6 : ( ruleDefaultValueRule ) ;
- public final void rule__PortRule__DefaultAssignment_6() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2495:1: ( ( ruleDefaultValueRule ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2496:1: ( ruleDefaultValueRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2496:1: ( ruleDefaultValueRule )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2497:1: ruleDefaultValueRule
- {
- before(grammarAccess.getPortRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0());
- pushFollow(FOLLOW_ruleDefaultValueRule_in_rule__PortRule__DefaultAssignment_65069);
- ruleDefaultValueRule();
-
- state._fsp--;
-
- after(grammarAccess.getPortRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PortRule__DefaultAssignment_6"
-
-
- // $ANTLR start "rule__VisibilityRule__VisibilityAssignment"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2506:1: rule__VisibilityRule__VisibilityAssignment : ( ruleVisibilityKind ) ;
- public final void rule__VisibilityRule__VisibilityAssignment() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2510:1: ( ( ruleVisibilityKind ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2511:1: ( ruleVisibilityKind )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2511:1: ( ruleVisibilityKind )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2512:1: ruleVisibilityKind
- {
- before(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0());
- pushFollow(FOLLOW_ruleVisibilityKind_in_rule__VisibilityRule__VisibilityAssignment5100);
- ruleVisibilityKind();
-
- state._fsp--;
-
- after(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__VisibilityRule__VisibilityAssignment"
-
-
- // $ANTLR start "rule__TypeRule__PathAssignment_0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2521:1: rule__TypeRule__PathAssignment_0 : ( ruleQualifiedName ) ;
- public final void rule__TypeRule__PathAssignment_0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2525:1: ( ( ruleQualifiedName ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2526:1: ( ruleQualifiedName )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2526:1: ( ruleQualifiedName )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2527:1: ruleQualifiedName
- {
- before(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0());
- pushFollow(FOLLOW_ruleQualifiedName_in_rule__TypeRule__PathAssignment_05131);
- ruleQualifiedName();
-
- state._fsp--;
-
- after(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__TypeRule__PathAssignment_0"
-
-
- // $ANTLR start "rule__TypeRule__TypeAssignment_1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2536:1: rule__TypeRule__TypeAssignment_1 : ( ( RULE_ID ) ) ;
- public final void rule__TypeRule__TypeAssignment_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2540:1: ( ( ( RULE_ID ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2541:1: ( ( RULE_ID ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2541:1: ( ( RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2542:1: ( RULE_ID )
- {
- before(grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2543:1: ( RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2544:1: RULE_ID
- {
- before(grammarAccess.getTypeRuleAccess().getTypeClassifierIDTerminalRuleCall_1_0_1());
- match(input, RULE_ID, FOLLOW_RULE_ID_in_rule__TypeRule__TypeAssignment_15166);
- after(grammarAccess.getTypeRuleAccess().getTypeClassifierIDTerminalRuleCall_1_0_1());
-
- }
-
- after(grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__TypeRule__TypeAssignment_1"
-
-
- // $ANTLR start "rule__QualifiedName__PathAssignment_0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2555:1: rule__QualifiedName__PathAssignment_0 : ( ( RULE_ID ) ) ;
- public final void rule__QualifiedName__PathAssignment_0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2559:1: ( ( ( RULE_ID ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2560:1: ( ( RULE_ID ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2560:1: ( ( RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2561:1: ( RULE_ID )
- {
- before(grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2562:1: ( RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2563:1: RULE_ID
- {
- before(grammarAccess.getQualifiedNameAccess().getPathNamespaceIDTerminalRuleCall_0_0_1());
- match(input, RULE_ID, FOLLOW_RULE_ID_in_rule__QualifiedName__PathAssignment_05205);
- after(grammarAccess.getQualifiedNameAccess().getPathNamespaceIDTerminalRuleCall_0_0_1());
-
- }
-
- after(grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__QualifiedName__PathAssignment_0"
-
-
- // $ANTLR start "rule__QualifiedName__RemainingAssignment_2"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2574:1: rule__QualifiedName__RemainingAssignment_2 : ( ruleQualifiedName ) ;
- public final void rule__QualifiedName__RemainingAssignment_2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2578:1: ( ( ruleQualifiedName ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2579:1: ( ruleQualifiedName )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2579:1: ( ruleQualifiedName )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2580:1: ruleQualifiedName
- {
- before(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0());
- pushFollow(FOLLOW_ruleQualifiedName_in_rule__QualifiedName__RemainingAssignment_25240);
- ruleQualifiedName();
-
- state._fsp--;
-
- after(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__QualifiedName__RemainingAssignment_2"
-
-
- // $ANTLR start "rule__MultiplicityRule__BoundsAssignment_1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2589:1: rule__MultiplicityRule__BoundsAssignment_1 : ( ruleBoundSpecification ) ;
- public final void rule__MultiplicityRule__BoundsAssignment_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2593:1: ( ( ruleBoundSpecification ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2594:1: ( ruleBoundSpecification )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2594:1: ( ruleBoundSpecification )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2595:1: ruleBoundSpecification
- {
- before(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0());
- pushFollow(FOLLOW_ruleBoundSpecification_in_rule__MultiplicityRule__BoundsAssignment_15271);
- ruleBoundSpecification();
-
- state._fsp--;
-
- after(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__BoundsAssignment_1"
-
-
- // $ANTLR start "rule__MultiplicityRule__BoundsAssignment_2_1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2604:1: rule__MultiplicityRule__BoundsAssignment_2_1 : ( ruleBoundSpecification ) ;
- public final void rule__MultiplicityRule__BoundsAssignment_2_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2608:1: ( ( ruleBoundSpecification ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2609:1: ( ruleBoundSpecification )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2609:1: ( ruleBoundSpecification )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2610:1: ruleBoundSpecification
- {
- before(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0());
- pushFollow(FOLLOW_ruleBoundSpecification_in_rule__MultiplicityRule__BoundsAssignment_2_15302);
- ruleBoundSpecification();
-
- state._fsp--;
-
- after(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__BoundsAssignment_2_1"
-
-
- // $ANTLR start "rule__BoundSpecification__ValueAssignment"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2619:1: rule__BoundSpecification__ValueAssignment : ( ruleUnlimitedLiteral ) ;
- public final void rule__BoundSpecification__ValueAssignment() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2623:1: ( ( ruleUnlimitedLiteral ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2624:1: ( ruleUnlimitedLiteral )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2624:1: ( ruleUnlimitedLiteral )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2625:1: ruleUnlimitedLiteral
- {
- before(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0());
- pushFollow(FOLLOW_ruleUnlimitedLiteral_in_rule__BoundSpecification__ValueAssignment5333);
- ruleUnlimitedLiteral();
-
- state._fsp--;
-
- after(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__BoundSpecification__ValueAssignment"
-
-
- // $ANTLR start "rule__ModifiersRule__ValuesAssignment_2_0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2634:1: rule__ModifiersRule__ValuesAssignment_2_0 : ( ruleModifierSpecification ) ;
- public final void rule__ModifiersRule__ValuesAssignment_2_0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2638:1: ( ( ruleModifierSpecification ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2639:1: ( ruleModifierSpecification )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2639:1: ( ruleModifierSpecification )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2640:1: ruleModifierSpecification
- {
- before(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0());
- pushFollow(FOLLOW_ruleModifierSpecification_in_rule__ModifiersRule__ValuesAssignment_2_05364);
- ruleModifierSpecification();
-
- state._fsp--;
-
- after(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__ValuesAssignment_2_0"
-
-
- // $ANTLR start "rule__ModifiersRule__ValuesAssignment_2_1_1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2649:1: rule__ModifiersRule__ValuesAssignment_2_1_1 : ( ruleModifierSpecification ) ;
- public final void rule__ModifiersRule__ValuesAssignment_2_1_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2653:1: ( ( ruleModifierSpecification ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2654:1: ( ruleModifierSpecification )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2654:1: ( ruleModifierSpecification )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2655:1: ruleModifierSpecification
- {
- before(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0());
- pushFollow(FOLLOW_ruleModifierSpecification_in_rule__ModifiersRule__ValuesAssignment_2_1_15395);
- ruleModifierSpecification();
-
- state._fsp--;
-
- after(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__ValuesAssignment_2_1_1"
-
-
- // $ANTLR start "rule__ModifierSpecification__ValueAssignment_0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2664:1: rule__ModifierSpecification__ValueAssignment_0 : ( ruleModifierKind ) ;
- public final void rule__ModifierSpecification__ValueAssignment_0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2668:1: ( ( ruleModifierKind ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2669:1: ( ruleModifierKind )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2669:1: ( ruleModifierKind )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2670:1: ruleModifierKind
- {
- before(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0());
- pushFollow(FOLLOW_ruleModifierKind_in_rule__ModifierSpecification__ValueAssignment_05426);
- ruleModifierKind();
-
- state._fsp--;
-
- after(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifierSpecification__ValueAssignment_0"
-
-
- // $ANTLR start "rule__ModifierSpecification__RedefinesAssignment_1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2679:1: rule__ModifierSpecification__RedefinesAssignment_1 : ( ruleRedefinesRule ) ;
- public final void rule__ModifierSpecification__RedefinesAssignment_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2683:1: ( ( ruleRedefinesRule ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2684:1: ( ruleRedefinesRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2684:1: ( ruleRedefinesRule )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2685:1: ruleRedefinesRule
- {
- before(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0());
- pushFollow(FOLLOW_ruleRedefinesRule_in_rule__ModifierSpecification__RedefinesAssignment_15457);
- ruleRedefinesRule();
-
- state._fsp--;
-
- after(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifierSpecification__RedefinesAssignment_1"
-
-
- // $ANTLR start "rule__ModifierSpecification__SubsetsAssignment_2"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2694:1: rule__ModifierSpecification__SubsetsAssignment_2 : ( ruleSubsetsRule ) ;
- public final void rule__ModifierSpecification__SubsetsAssignment_2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2698:1: ( ( ruleSubsetsRule ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2699:1: ( ruleSubsetsRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2699:1: ( ruleSubsetsRule )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2700:1: ruleSubsetsRule
- {
- before(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0());
- pushFollow(FOLLOW_ruleSubsetsRule_in_rule__ModifierSpecification__SubsetsAssignment_25488);
- ruleSubsetsRule();
-
- state._fsp--;
-
- after(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifierSpecification__SubsetsAssignment_2"
-
-
- // $ANTLR start "rule__RedefinesRule__PortAssignment_1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2709:1: rule__RedefinesRule__PortAssignment_1 : ( ( RULE_ID ) ) ;
- public final void rule__RedefinesRule__PortAssignment_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2713:1: ( ( ( RULE_ID ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2714:1: ( ( RULE_ID ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2714:1: ( ( RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2715:1: ( RULE_ID )
- {
- before(grammarAccess.getRedefinesRuleAccess().getPortPortCrossReference_1_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2716:1: ( RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2717:1: RULE_ID
- {
- before(grammarAccess.getRedefinesRuleAccess().getPortPortIDTerminalRuleCall_1_0_1());
- match(input, RULE_ID, FOLLOW_RULE_ID_in_rule__RedefinesRule__PortAssignment_15523);
- after(grammarAccess.getRedefinesRuleAccess().getPortPortIDTerminalRuleCall_1_0_1());
-
- }
-
- after(grammarAccess.getRedefinesRuleAccess().getPortPortCrossReference_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RedefinesRule__PortAssignment_1"
-
-
- // $ANTLR start "rule__SubsetsRule__PortAssignment_1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2728:1: rule__SubsetsRule__PortAssignment_1 : ( ( RULE_ID ) ) ;
- public final void rule__SubsetsRule__PortAssignment_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2732:1: ( ( ( RULE_ID ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2733:1: ( ( RULE_ID ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2733:1: ( ( RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2734:1: ( RULE_ID )
- {
- before(grammarAccess.getSubsetsRuleAccess().getPortPortCrossReference_1_0());
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2735:1: ( RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2736:1: RULE_ID
- {
- before(grammarAccess.getSubsetsRuleAccess().getPortPortIDTerminalRuleCall_1_0_1());
- match(input, RULE_ID, FOLLOW_RULE_ID_in_rule__SubsetsRule__PortAssignment_15562);
- after(grammarAccess.getSubsetsRuleAccess().getPortPortIDTerminalRuleCall_1_0_1());
-
- }
-
- after(grammarAccess.getSubsetsRuleAccess().getPortPortCrossReference_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__SubsetsRule__PortAssignment_1"
-
-
- // $ANTLR start "rule__DefaultValueRule__DefaultAssignment_1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2747:1: rule__DefaultValueRule__DefaultAssignment_1 : ( ruleValue ) ;
- public final void rule__DefaultValueRule__DefaultAssignment_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2751:1: ( ( ruleValue ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2752:1: ( ruleValue )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2752:1: ( ruleValue )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2753:1: ruleValue
- {
- before(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0());
- pushFollow(FOLLOW_ruleValue_in_rule__DefaultValueRule__DefaultAssignment_15597);
- ruleValue();
-
- state._fsp--;
-
- after(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__DefaultValueRule__DefaultAssignment_1"
-
-
- // $ANTLR start "rule__IntValue__LiteralIntegerAssignment"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2762:1: rule__IntValue__LiteralIntegerAssignment : ( RULE_INT ) ;
- public final void rule__IntValue__LiteralIntegerAssignment() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2766:1: ( ( RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2767:1: ( RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2767:1: ( RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2768:1: RULE_INT
- {
- before(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0());
- match(input, RULE_INT, FOLLOW_RULE_INT_in_rule__IntValue__LiteralIntegerAssignment5628);
- after(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__IntValue__LiteralIntegerAssignment"
-
-
- // $ANTLR start "rule__StringValue__LiteralStringAssignment"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2777:1: rule__StringValue__LiteralStringAssignment : ( RULE_STRING ) ;
- public final void rule__StringValue__LiteralStringAssignment() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2781:1: ( ( RULE_STRING ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2782:1: ( RULE_STRING )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2782:1: ( RULE_STRING )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2783:1: RULE_STRING
- {
- before(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0());
- match(input, RULE_STRING, FOLLOW_RULE_STRING_in_rule__StringValue__LiteralStringAssignment5659);
- after(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__StringValue__LiteralStringAssignment"
-
-
- // $ANTLR start "rule__BooleanValue__LiteralBooleanAssignment"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2792:1: rule__BooleanValue__LiteralBooleanAssignment : ( ruleBooleanLiterals ) ;
- public final void rule__BooleanValue__LiteralBooleanAssignment() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2796:1: ( ( ruleBooleanLiterals ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2797:1: ( ruleBooleanLiterals )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2797:1: ( ruleBooleanLiterals )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2798:1: ruleBooleanLiterals
- {
- before(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0());
- pushFollow(FOLLOW_ruleBooleanLiterals_in_rule__BooleanValue__LiteralBooleanAssignment5690);
- ruleBooleanLiterals();
-
- state._fsp--;
-
- after(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__BooleanValue__LiteralBooleanAssignment"
-
-
- // $ANTLR start "rule__RealValue__IntegerAssignment_0_0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2807:1: rule__RealValue__IntegerAssignment_0_0 : ( RULE_INT ) ;
- public final void rule__RealValue__IntegerAssignment_0_0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2811:1: ( ( RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2812:1: ( RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2812:1: ( RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2813:1: RULE_INT
- {
- before(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0());
- match(input, RULE_INT, FOLLOW_RULE_INT_in_rule__RealValue__IntegerAssignment_0_05721);
- after(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__IntegerAssignment_0_0"
-
-
- // $ANTLR start "rule__RealValue__FractionAssignment_1_1"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2822:1: rule__RealValue__FractionAssignment_1_1 : ( RULE_INT ) ;
- public final void rule__RealValue__FractionAssignment_1_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2826:1: ( ( RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2827:1: ( RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2827:1: ( RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2828:1: RULE_INT
- {
- before(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0());
- match(input, RULE_INT, FOLLOW_RULE_INT_in_rule__RealValue__FractionAssignment_1_15752);
- after(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__FractionAssignment_1_1"
-
-
- // $ANTLR start "rule__RealValue__IntegerAssignment_2_0"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2837:1: rule__RealValue__IntegerAssignment_2_0 : ( RULE_INT ) ;
- public final void rule__RealValue__IntegerAssignment_2_0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2841:1: ( ( RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2842:1: ( RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2842:1: ( RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2843:1: RULE_INT
- {
- before(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0());
- match(input, RULE_INT, FOLLOW_RULE_INT_in_rule__RealValue__IntegerAssignment_2_05783);
- after(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__IntegerAssignment_2_0"
-
-
- // $ANTLR start "rule__RealValue__FractionAssignment_2_2"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2852:1: rule__RealValue__FractionAssignment_2_2 : ( RULE_INT ) ;
- public final void rule__RealValue__FractionAssignment_2_2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2856:1: ( ( RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2857:1: ( RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2857:1: ( RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2858:1: RULE_INT
- {
- before(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0());
- match(input, RULE_INT, FOLLOW_RULE_INT_in_rule__RealValue__FractionAssignment_2_25814);
- after(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__FractionAssignment_2_2"
-
- // Delegated rules
-
-
-
-
- public static final BitSet FOLLOW_rulePortRule_in_entryRulePortRule61 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRulePortRule68 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__Group__0_in_rulePortRule94 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleVisibilityRule_in_entryRuleVisibilityRule121 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleVisibilityRule128 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__VisibilityRule__VisibilityAssignment_in_ruleVisibilityRule154 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleTypeRule_in_entryRuleTypeRule181 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleTypeRule188 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__TypeRule__Group__0_in_ruleTypeRule214 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName241 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleQualifiedName248 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__QualifiedName__Group__0_in_ruleQualifiedName274 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleMultiplicityRule_in_entryRuleMultiplicityRule301 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleMultiplicityRule308 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group__0_in_ruleMultiplicityRule334 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification361 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleBoundSpecification368 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__BoundSpecification__ValueAssignment_in_ruleBoundSpecification394 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral421 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleUnlimitedLiteral428 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__UnlimitedLiteral__Alternatives_in_ruleUnlimitedLiteral454 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleModifiersRule_in_entryRuleModifiersRule481 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleModifiersRule488 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group__0_in_ruleModifiersRule514 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleModifierSpecification_in_entryRuleModifierSpecification541 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleModifierSpecification548 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifierSpecification__Alternatives_in_ruleModifierSpecification574 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleRedefinesRule_in_entryRuleRedefinesRule601 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleRedefinesRule608 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RedefinesRule__Group__0_in_ruleRedefinesRule634 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleSubsetsRule_in_entryRuleSubsetsRule661 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleSubsetsRule668 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__SubsetsRule__Group__0_in_ruleSubsetsRule694 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleDefaultValueRule_in_entryRuleDefaultValueRule721 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleDefaultValueRule728 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__DefaultValueRule__Group__0_in_ruleDefaultValueRule754 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleValue_in_entryRuleValue781 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleValue788 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__Value__Alternatives_in_ruleValue814 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleIntValue_in_entryRuleIntValue841 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleIntValue848 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__IntValue__LiteralIntegerAssignment_in_ruleIntValue874 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleStringValue_in_entryRuleStringValue901 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleStringValue908 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__StringValue__LiteralStringAssignment_in_ruleStringValue934 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBooleanValue_in_entryRuleBooleanValue961 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleBooleanValue968 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__BooleanValue__LiteralBooleanAssignment_in_ruleBooleanValue994 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleRealValue_in_entryRuleRealValue1021 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleRealValue1028 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Alternatives_in_ruleRealValue1054 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleNullValue_in_entryRuleNullValue1081 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleNullValue1088 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__NullValue__Group__0_in_ruleNullValue1114 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleNoValue_in_entryRuleNoValue1141 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleNoValue1148 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__NoValue__Group__0_in_ruleNoValue1174 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__VisibilityKind__Alternatives_in_ruleVisibilityKind1211 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifierKind__Alternatives_in_ruleModifierKind1247 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__BooleanLiterals__Alternatives_in_ruleBooleanLiterals1283 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__TypeAssignment_3_2_0_in_rule__PortRule__Alternatives_3_21318 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__TypeUndefinedAssignment_3_2_1_in_rule__PortRule__Alternatives_3_21336 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_rule__UnlimitedLiteral__Alternatives1369 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_12_in_rule__UnlimitedLiteral__Alternatives1387 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifierSpecification__ValueAssignment_0_in_rule__ModifierSpecification__Alternatives1421 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifierSpecification__RedefinesAssignment_1_in_rule__ModifierSpecification__Alternatives1439 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifierSpecification__SubsetsAssignment_2_in_rule__ModifierSpecification__Alternatives1457 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleIntValue_in_rule__Value__Alternatives1490 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleStringValue_in_rule__Value__Alternatives1507 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBooleanValue_in_rule__Value__Alternatives1524 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleRealValue_in_rule__Value__Alternatives1541 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleNullValue_in_rule__Value__Alternatives1558 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleNoValue_in_rule__Value__Alternatives1575 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_0__0_in_rule__RealValue__Alternatives1607 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_1__0_in_rule__RealValue__Alternatives1625 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_2__0_in_rule__RealValue__Alternatives1643 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_13_in_rule__VisibilityKind__Alternatives1677 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_14_in_rule__VisibilityKind__Alternatives1698 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_15_in_rule__VisibilityKind__Alternatives1719 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_16_in_rule__VisibilityKind__Alternatives1740 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_17_in_rule__ModifierKind__Alternatives1776 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_18_in_rule__ModifierKind__Alternatives1797 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_19_in_rule__ModifierKind__Alternatives1818 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_20_in_rule__ModifierKind__Alternatives1839 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_21_in_rule__BooleanLiterals__Alternatives1875 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_22_in_rule__BooleanLiterals__Alternatives1896 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__Group__0__Impl_in_rule__PortRule__Group__01929 = new BitSet(new long[] { 0x0000002000000020L });
- public static final BitSet FOLLOW_rule__PortRule__Group__1_in_rule__PortRule__Group__01932 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__VisibilityAssignment_0_in_rule__PortRule__Group__0__Impl1959 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__Group__1__Impl_in_rule__PortRule__Group__11990 = new BitSet(new long[] { 0x0000002000000020L });
- public static final BitSet FOLLOW_rule__PortRule__Group__2_in_rule__PortRule__Group__11993 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__DerivedAssignment_1_in_rule__PortRule__Group__1__Impl2020 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__Group__2__Impl_in_rule__PortRule__Group__22051 = new BitSet(new long[] { 0x0000000212800000L });
- public static final BitSet FOLLOW_rule__PortRule__Group__3_in_rule__PortRule__Group__22054 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__NameAssignment_2_in_rule__PortRule__Group__2__Impl2081 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__Group__3__Impl_in_rule__PortRule__Group__32111 = new BitSet(new long[] { 0x0000000212800000L });
- public static final BitSet FOLLOW_rule__PortRule__Group__4_in_rule__PortRule__Group__32114 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__Group_3__0_in_rule__PortRule__Group__3__Impl2141 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__Group__4__Impl_in_rule__PortRule__Group__42172 = new BitSet(new long[] { 0x0000000212800000L });
- public static final BitSet FOLLOW_rule__PortRule__Group__5_in_rule__PortRule__Group__42175 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__MultiplicityAssignment_4_in_rule__PortRule__Group__4__Impl2202 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__Group__5__Impl_in_rule__PortRule__Group__52233 = new BitSet(new long[] { 0x0000000212800000L });
- public static final BitSet FOLLOW_rule__PortRule__Group__6_in_rule__PortRule__Group__52236 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__ModifiersAssignment_5_in_rule__PortRule__Group__5__Impl2263 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__Group__6__Impl_in_rule__PortRule__Group__62294 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__DefaultAssignment_6_in_rule__PortRule__Group__6__Impl2321 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__Group_3__0__Impl_in_rule__PortRule__Group_3__02366 = new BitSet(new long[] { 0x0000004000010020L });
- public static final BitSet FOLLOW_rule__PortRule__Group_3__1_in_rule__PortRule__Group_3__02369 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_23_in_rule__PortRule__Group_3__0__Impl2397 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__Group_3__1__Impl_in_rule__PortRule__Group_3__12428 = new BitSet(new long[] { 0x0000004000010020L });
- public static final BitSet FOLLOW_rule__PortRule__Group_3__2_in_rule__PortRule__Group_3__12431 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__ConjugatedAssignment_3_1_in_rule__PortRule__Group_3__1__Impl2458 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__Group_3__2__Impl_in_rule__PortRule__Group_3__22489 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PortRule__Alternatives_3_2_in_rule__PortRule__Group_3__2__Impl2516 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__TypeRule__Group__0__Impl_in_rule__TypeRule__Group__02552 = new BitSet(new long[] { 0x0000000000000020L });
- public static final BitSet FOLLOW_rule__TypeRule__Group__1_in_rule__TypeRule__Group__02555 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__TypeRule__PathAssignment_0_in_rule__TypeRule__Group__0__Impl2582 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__TypeRule__Group__1__Impl_in_rule__TypeRule__Group__12613 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__TypeRule__TypeAssignment_1_in_rule__TypeRule__Group__1__Impl2640 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__QualifiedName__Group__0__Impl_in_rule__QualifiedName__Group__02674 = new BitSet(new long[] { 0x0000000001000000L });
- public static final BitSet FOLLOW_rule__QualifiedName__Group__1_in_rule__QualifiedName__Group__02677 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__QualifiedName__PathAssignment_0_in_rule__QualifiedName__Group__0__Impl2704 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__QualifiedName__Group__1__Impl_in_rule__QualifiedName__Group__12734 = new BitSet(new long[] { 0x0000000000000020L });
- public static final BitSet FOLLOW_rule__QualifiedName__Group__2_in_rule__QualifiedName__Group__12737 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_24_in_rule__QualifiedName__Group__1__Impl2765 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__QualifiedName__Group__2__Impl_in_rule__QualifiedName__Group__22796 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__QualifiedName__RemainingAssignment_2_in_rule__QualifiedName__Group__2__Impl2823 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group__0__Impl_in_rule__MultiplicityRule__Group__02860 = new BitSet(new long[] { 0x0000000000001010L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group__1_in_rule__MultiplicityRule__Group__02863 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_25_in_rule__MultiplicityRule__Group__0__Impl2891 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group__1__Impl_in_rule__MultiplicityRule__Group__12922 = new BitSet(new long[] { 0x000000000C000000L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group__2_in_rule__MultiplicityRule__Group__12925 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__BoundsAssignment_1_in_rule__MultiplicityRule__Group__1__Impl2952 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group__2__Impl_in_rule__MultiplicityRule__Group__22982 = new BitSet(new long[] { 0x000000000C000000L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group__3_in_rule__MultiplicityRule__Group__22985 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group_2__0_in_rule__MultiplicityRule__Group__2__Impl3012 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group__3__Impl_in_rule__MultiplicityRule__Group__33043 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_26_in_rule__MultiplicityRule__Group__3__Impl3071 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group_2__0__Impl_in_rule__MultiplicityRule__Group_2__03110 = new BitSet(new long[] { 0x0000000000001010L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group_2__1_in_rule__MultiplicityRule__Group_2__03113 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_27_in_rule__MultiplicityRule__Group_2__0__Impl3141 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group_2__1__Impl_in_rule__MultiplicityRule__Group_2__13172 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__BoundsAssignment_2_1_in_rule__MultiplicityRule__Group_2__1__Impl3199 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group__0__Impl_in_rule__ModifiersRule__Group__03233 = new BitSet(new long[] { 0x0000000010000000L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group__1_in_rule__ModifiersRule__Group__03236 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group__1__Impl_in_rule__ModifiersRule__Group__13294 = new BitSet(new long[] { 0x00000001A01E0000L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group__2_in_rule__ModifiersRule__Group__13297 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_28_in_rule__ModifiersRule__Group__1__Impl3325 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group__2__Impl_in_rule__ModifiersRule__Group__23356 = new BitSet(new long[] { 0x00000001A01E0000L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group__3_in_rule__ModifiersRule__Group__23359 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group_2__0_in_rule__ModifiersRule__Group__2__Impl3386 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group__3__Impl_in_rule__ModifiersRule__Group__33417 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_29_in_rule__ModifiersRule__Group__3__Impl3445 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group_2__0__Impl_in_rule__ModifiersRule__Group_2__03484 = new BitSet(new long[] { 0x0000000040000000L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group_2__1_in_rule__ModifiersRule__Group_2__03487 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__ValuesAssignment_2_0_in_rule__ModifiersRule__Group_2__0__Impl3514 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group_2__1__Impl_in_rule__ModifiersRule__Group_2__13544 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group_2_1__0_in_rule__ModifiersRule__Group_2__1__Impl3571 = new BitSet(new long[] { 0x0000000040000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group_2_1__0__Impl_in_rule__ModifiersRule__Group_2_1__03606 = new BitSet(new long[] { 0x00000001801E0000L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group_2_1__1_in_rule__ModifiersRule__Group_2_1__03609 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_30_in_rule__ModifiersRule__Group_2_1__0__Impl3637 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group_2_1__1__Impl_in_rule__ModifiersRule__Group_2_1__13668 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__ValuesAssignment_2_1_1_in_rule__ModifiersRule__Group_2_1__1__Impl3695 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RedefinesRule__Group__0__Impl_in_rule__RedefinesRule__Group__03729 = new BitSet(new long[] { 0x0000000000000020L });
- public static final BitSet FOLLOW_rule__RedefinesRule__Group__1_in_rule__RedefinesRule__Group__03732 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_31_in_rule__RedefinesRule__Group__0__Impl3760 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RedefinesRule__Group__1__Impl_in_rule__RedefinesRule__Group__13791 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RedefinesRule__PortAssignment_1_in_rule__RedefinesRule__Group__1__Impl3818 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__SubsetsRule__Group__0__Impl_in_rule__SubsetsRule__Group__03852 = new BitSet(new long[] { 0x0000000000000020L });
- public static final BitSet FOLLOW_rule__SubsetsRule__Group__1_in_rule__SubsetsRule__Group__03855 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_32_in_rule__SubsetsRule__Group__0__Impl3883 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__SubsetsRule__Group__1__Impl_in_rule__SubsetsRule__Group__13914 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__SubsetsRule__PortAssignment_1_in_rule__SubsetsRule__Group__1__Impl3941 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__DefaultValueRule__Group__0__Impl_in_rule__DefaultValueRule__Group__03975 = new BitSet(new long[] { 0x0000001C00600050L });
- public static final BitSet FOLLOW_rule__DefaultValueRule__Group__1_in_rule__DefaultValueRule__Group__03978 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_33_in_rule__DefaultValueRule__Group__0__Impl4006 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__DefaultValueRule__Group__1__Impl_in_rule__DefaultValueRule__Group__14037 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__DefaultValueRule__DefaultAssignment_1_in_rule__DefaultValueRule__Group__1__Impl4064 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_0__0__Impl_in_rule__RealValue__Group_0__04098 = new BitSet(new long[] { 0x0000000400000000L });
- public static final BitSet FOLLOW_rule__RealValue__Group_0__1_in_rule__RealValue__Group_0__04101 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__IntegerAssignment_0_0_in_rule__RealValue__Group_0__0__Impl4128 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_0__1__Impl_in_rule__RealValue__Group_0__14158 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_34_in_rule__RealValue__Group_0__1__Impl4186 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_1__0__Impl_in_rule__RealValue__Group_1__04221 = new BitSet(new long[] { 0x0000000000000010L });
- public static final BitSet FOLLOW_rule__RealValue__Group_1__1_in_rule__RealValue__Group_1__04224 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_34_in_rule__RealValue__Group_1__0__Impl4252 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_1__1__Impl_in_rule__RealValue__Group_1__14283 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__FractionAssignment_1_1_in_rule__RealValue__Group_1__1__Impl4310 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_2__0__Impl_in_rule__RealValue__Group_2__04344 = new BitSet(new long[] { 0x0000000400000000L });
- public static final BitSet FOLLOW_rule__RealValue__Group_2__1_in_rule__RealValue__Group_2__04347 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__IntegerAssignment_2_0_in_rule__RealValue__Group_2__0__Impl4374 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_2__1__Impl_in_rule__RealValue__Group_2__14404 = new BitSet(new long[] { 0x0000000000000010L });
- public static final BitSet FOLLOW_rule__RealValue__Group_2__2_in_rule__RealValue__Group_2__14407 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_34_in_rule__RealValue__Group_2__1__Impl4435 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_2__2__Impl_in_rule__RealValue__Group_2__24466 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__FractionAssignment_2_2_in_rule__RealValue__Group_2__2__Impl4493 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__NullValue__Group__0__Impl_in_rule__NullValue__Group__04529 = new BitSet(new long[] { 0x0000000800000000L });
- public static final BitSet FOLLOW_rule__NullValue__Group__1_in_rule__NullValue__Group__04532 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__NullValue__Group__1__Impl_in_rule__NullValue__Group__14590 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_35_in_rule__NullValue__Group__1__Impl4618 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__NoValue__Group__0__Impl_in_rule__NoValue__Group__04653 = new BitSet(new long[] { 0x0000001C00600050L });
- public static final BitSet FOLLOW_rule__NoValue__Group__1_in_rule__NoValue__Group__04656 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__NoValue__Group__1__Impl_in_rule__NoValue__Group__14714 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_36_in_rule__NoValue__Group__1__Impl4742 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleVisibilityRule_in_rule__PortRule__VisibilityAssignment_04782 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_37_in_rule__PortRule__DerivedAssignment_14818 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_ID_in_rule__PortRule__NameAssignment_24857 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_16_in_rule__PortRule__ConjugatedAssignment_3_14893 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleTypeRule_in_rule__PortRule__TypeAssignment_3_2_04932 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_38_in_rule__PortRule__TypeUndefinedAssignment_3_2_14968 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleMultiplicityRule_in_rule__PortRule__MultiplicityAssignment_45007 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleModifiersRule_in_rule__PortRule__ModifiersAssignment_55038 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleDefaultValueRule_in_rule__PortRule__DefaultAssignment_65069 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleVisibilityKind_in_rule__VisibilityRule__VisibilityAssignment5100 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleQualifiedName_in_rule__TypeRule__PathAssignment_05131 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_ID_in_rule__TypeRule__TypeAssignment_15166 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_ID_in_rule__QualifiedName__PathAssignment_05205 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleQualifiedName_in_rule__QualifiedName__RemainingAssignment_25240 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBoundSpecification_in_rule__MultiplicityRule__BoundsAssignment_15271 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBoundSpecification_in_rule__MultiplicityRule__BoundsAssignment_2_15302 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_rule__BoundSpecification__ValueAssignment5333 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleModifierSpecification_in_rule__ModifiersRule__ValuesAssignment_2_05364 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleModifierSpecification_in_rule__ModifiersRule__ValuesAssignment_2_1_15395 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleModifierKind_in_rule__ModifierSpecification__ValueAssignment_05426 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleRedefinesRule_in_rule__ModifierSpecification__RedefinesAssignment_15457 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleSubsetsRule_in_rule__ModifierSpecification__SubsetsAssignment_25488 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_ID_in_rule__RedefinesRule__PortAssignment_15523 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_ID_in_rule__SubsetsRule__PortAssignment_15562 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleValue_in_rule__DefaultValueRule__DefaultAssignment_15597 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_rule__IntValue__LiteralIntegerAssignment5628 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_STRING_in_rule__StringValue__LiteralStringAssignment5659 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBooleanLiterals_in_rule__BooleanValue__LiteralBooleanAssignment5690 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_rule__RealValue__IntegerAssignment_0_05721 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_rule__RealValue__FractionAssignment_1_15752 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_rule__RealValue__IntegerAssignment_2_05783 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_rule__RealValue__FractionAssignment_2_25814 = new BitSet(new long[] { 0x0000000000000002L });
-
+package org.eclipse.papyrus.uml.textedit.port.xtext.ui.contentassist.antlr.internal;
+
+import java.io.InputStream;
+import org.eclipse.xtext.*;
+import org.eclipse.xtext.parser.*;
+import org.eclipse.xtext.parser.impl.*;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
+import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser;
+import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.DFA;
+import org.eclipse.papyrus.uml.textedit.port.xtext.services.UmlPortGrammarAccess;
+
+
+
+import org.antlr.runtime.*;
+import java.util.Stack;
+import java.util.List;
+import java.util.ArrayList;
+
+@SuppressWarnings("all")
+public class InternalUmlPortParser extends AbstractInternalContentAssistParser {
+ public static final String[] tokenNames = new String[] {
+ "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_STRING", "RULE_INT", "RULE_ID", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_INTEGER_VALUE", "RULE_WS", "RULE_ANY_OTHER", "'*'", "'+'", "'-'", "'#'", "'~'", "'readOnly'", "'union'", "'ordered'", "'unique'", "'true'", "'false'", "':'", "'::'", "'['", "']'", "'..'", "'{'", "'}'", "','", "'redefines'", "'subsets'", "'='", "'.'", "'null'", "'none'", "'/'", "'<Undefined>'"
+ };
+ public static final int RULE_ID=6;
+ public static final int T__29=29;
+ public static final int T__28=28;
+ public static final int T__27=27;
+ public static final int T__26=26;
+ public static final int T__25=25;
+ public static final int T__24=24;
+ public static final int T__23=23;
+ public static final int T__22=22;
+ public static final int RULE_ANY_OTHER=11;
+ public static final int T__21=21;
+ public static final int T__20=20;
+ public static final int RULE_INTEGER_VALUE=9;
+ public static final int RULE_SL_COMMENT=8;
+ public static final int EOF=-1;
+ public static final int RULE_ML_COMMENT=7;
+ public static final int T__30=30;
+ public static final int T__19=19;
+ public static final int T__31=31;
+ public static final int RULE_STRING=4;
+ public static final int T__32=32;
+ public static final int T__33=33;
+ public static final int T__16=16;
+ public static final int T__34=34;
+ public static final int T__15=15;
+ public static final int T__35=35;
+ public static final int T__18=18;
+ public static final int T__36=36;
+ public static final int T__17=17;
+ public static final int T__37=37;
+ public static final int T__12=12;
+ public static final int T__38=38;
+ public static final int T__14=14;
+ public static final int T__13=13;
+ public static final int RULE_INT=5;
+ public static final int RULE_WS=10;
+
+ // delegates
+ // delegators
+
+
+ public InternalUmlPortParser(TokenStream input) {
+ this(input, new RecognizerSharedState());
+ }
+ public InternalUmlPortParser(TokenStream input, RecognizerSharedState state) {
+ super(input, state);
+
+ }
+
+
+ public String[] getTokenNames() { return InternalUmlPortParser.tokenNames; }
+ public String getGrammarFileName() { return "../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g"; }
+
+
+
+ private UmlPortGrammarAccess grammarAccess;
+
+ public void setGrammarAccess(UmlPortGrammarAccess grammarAccess) {
+ this.grammarAccess = grammarAccess;
+ }
+
+ @Override
+ protected Grammar getGrammar() {
+ return grammarAccess.getGrammar();
+ }
+
+ @Override
+ protected String getValueForTokenName(String tokenName) {
+ return tokenName;
+ }
+
+
+
+
+ // $ANTLR start "entryRulePortRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:60:1: entryRulePortRule : rulePortRule EOF ;
+ public final void entryRulePortRule() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:61:1: ( rulePortRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:62:1: rulePortRule EOF
+ {
+ before(grammarAccess.getPortRuleRule());
+ pushFollow(FOLLOW_rulePortRule_in_entryRulePortRule61);
+ rulePortRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getPortRuleRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRulePortRule68);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRulePortRule"
+
+
+ // $ANTLR start "rulePortRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:69:1: rulePortRule : ( ( rule__PortRule__Group__0 ) ) ;
+ public final void rulePortRule() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:73:2: ( ( ( rule__PortRule__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:74:1: ( ( rule__PortRule__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:74:1: ( ( rule__PortRule__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:75:1: ( rule__PortRule__Group__0 )
+ {
+ before(grammarAccess.getPortRuleAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:76:1: ( rule__PortRule__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:76:2: rule__PortRule__Group__0
+ {
+ pushFollow(FOLLOW_rule__PortRule__Group__0_in_rulePortRule94);
+ rule__PortRule__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getPortRuleAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rulePortRule"
+
+
+ // $ANTLR start "entryRuleVisibilityRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:88:1: entryRuleVisibilityRule : ruleVisibilityRule EOF ;
+ public final void entryRuleVisibilityRule() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:89:1: ( ruleVisibilityRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:90:1: ruleVisibilityRule EOF
+ {
+ before(grammarAccess.getVisibilityRuleRule());
+ pushFollow(FOLLOW_ruleVisibilityRule_in_entryRuleVisibilityRule121);
+ ruleVisibilityRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getVisibilityRuleRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleVisibilityRule128);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleVisibilityRule"
+
+
+ // $ANTLR start "ruleVisibilityRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:97:1: ruleVisibilityRule : ( ( rule__VisibilityRule__VisibilityAssignment ) ) ;
+ public final void ruleVisibilityRule() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:101:2: ( ( ( rule__VisibilityRule__VisibilityAssignment ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:102:1: ( ( rule__VisibilityRule__VisibilityAssignment ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:102:1: ( ( rule__VisibilityRule__VisibilityAssignment ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:103:1: ( rule__VisibilityRule__VisibilityAssignment )
+ {
+ before(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:104:1: ( rule__VisibilityRule__VisibilityAssignment )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:104:2: rule__VisibilityRule__VisibilityAssignment
+ {
+ pushFollow(FOLLOW_rule__VisibilityRule__VisibilityAssignment_in_ruleVisibilityRule154);
+ rule__VisibilityRule__VisibilityAssignment();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleVisibilityRule"
+
+
+ // $ANTLR start "entryRuleTypeRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:116:1: entryRuleTypeRule : ruleTypeRule EOF ;
+ public final void entryRuleTypeRule() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:117:1: ( ruleTypeRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:118:1: ruleTypeRule EOF
+ {
+ before(grammarAccess.getTypeRuleRule());
+ pushFollow(FOLLOW_ruleTypeRule_in_entryRuleTypeRule181);
+ ruleTypeRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getTypeRuleRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleTypeRule188);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleTypeRule"
+
+
+ // $ANTLR start "ruleTypeRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:125:1: ruleTypeRule : ( ( rule__TypeRule__Group__0 ) ) ;
+ public final void ruleTypeRule() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:129:2: ( ( ( rule__TypeRule__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:130:1: ( ( rule__TypeRule__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:130:1: ( ( rule__TypeRule__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:131:1: ( rule__TypeRule__Group__0 )
+ {
+ before(grammarAccess.getTypeRuleAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:132:1: ( rule__TypeRule__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:132:2: rule__TypeRule__Group__0
+ {
+ pushFollow(FOLLOW_rule__TypeRule__Group__0_in_ruleTypeRule214);
+ rule__TypeRule__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getTypeRuleAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleTypeRule"
+
+
+ // $ANTLR start "entryRuleQualifiedName"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:144:1: entryRuleQualifiedName : ruleQualifiedName EOF ;
+ public final void entryRuleQualifiedName() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:145:1: ( ruleQualifiedName EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:146:1: ruleQualifiedName EOF
+ {
+ before(grammarAccess.getQualifiedNameRule());
+ pushFollow(FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName241);
+ ruleQualifiedName();
+
+ state._fsp--;
+
+ after(grammarAccess.getQualifiedNameRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleQualifiedName248);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleQualifiedName"
+
+
+ // $ANTLR start "ruleQualifiedName"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:153:1: ruleQualifiedName : ( ( rule__QualifiedName__Group__0 ) ) ;
+ public final void ruleQualifiedName() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:157:2: ( ( ( rule__QualifiedName__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:158:1: ( ( rule__QualifiedName__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:158:1: ( ( rule__QualifiedName__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:159:1: ( rule__QualifiedName__Group__0 )
+ {
+ before(grammarAccess.getQualifiedNameAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:160:1: ( rule__QualifiedName__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:160:2: rule__QualifiedName__Group__0
+ {
+ pushFollow(FOLLOW_rule__QualifiedName__Group__0_in_ruleQualifiedName274);
+ rule__QualifiedName__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getQualifiedNameAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleQualifiedName"
+
+
+ // $ANTLR start "entryRuleMultiplicityRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:172:1: entryRuleMultiplicityRule : ruleMultiplicityRule EOF ;
+ public final void entryRuleMultiplicityRule() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:173:1: ( ruleMultiplicityRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:174:1: ruleMultiplicityRule EOF
+ {
+ before(grammarAccess.getMultiplicityRuleRule());
+ pushFollow(FOLLOW_ruleMultiplicityRule_in_entryRuleMultiplicityRule301);
+ ruleMultiplicityRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getMultiplicityRuleRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleMultiplicityRule308);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleMultiplicityRule"
+
+
+ // $ANTLR start "ruleMultiplicityRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:181:1: ruleMultiplicityRule : ( ( rule__MultiplicityRule__Group__0 ) ) ;
+ public final void ruleMultiplicityRule() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:185:2: ( ( ( rule__MultiplicityRule__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:186:1: ( ( rule__MultiplicityRule__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:186:1: ( ( rule__MultiplicityRule__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:187:1: ( rule__MultiplicityRule__Group__0 )
+ {
+ before(grammarAccess.getMultiplicityRuleAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:188:1: ( rule__MultiplicityRule__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:188:2: rule__MultiplicityRule__Group__0
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group__0_in_ruleMultiplicityRule334);
+ rule__MultiplicityRule__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getMultiplicityRuleAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleMultiplicityRule"
+
+
+ // $ANTLR start "entryRuleBoundSpecification"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:200:1: entryRuleBoundSpecification : ruleBoundSpecification EOF ;
+ public final void entryRuleBoundSpecification() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:201:1: ( ruleBoundSpecification EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:202:1: ruleBoundSpecification EOF
+ {
+ before(grammarAccess.getBoundSpecificationRule());
+ pushFollow(FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification361);
+ ruleBoundSpecification();
+
+ state._fsp--;
+
+ after(grammarAccess.getBoundSpecificationRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleBoundSpecification368);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleBoundSpecification"
+
+
+ // $ANTLR start "ruleBoundSpecification"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:209:1: ruleBoundSpecification : ( ( rule__BoundSpecification__ValueAssignment ) ) ;
+ public final void ruleBoundSpecification() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:213:2: ( ( ( rule__BoundSpecification__ValueAssignment ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:214:1: ( ( rule__BoundSpecification__ValueAssignment ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:214:1: ( ( rule__BoundSpecification__ValueAssignment ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:215:1: ( rule__BoundSpecification__ValueAssignment )
+ {
+ before(grammarAccess.getBoundSpecificationAccess().getValueAssignment());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:216:1: ( rule__BoundSpecification__ValueAssignment )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:216:2: rule__BoundSpecification__ValueAssignment
+ {
+ pushFollow(FOLLOW_rule__BoundSpecification__ValueAssignment_in_ruleBoundSpecification394);
+ rule__BoundSpecification__ValueAssignment();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getBoundSpecificationAccess().getValueAssignment());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleBoundSpecification"
+
+
+ // $ANTLR start "entryRuleUnlimitedLiteral"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:228:1: entryRuleUnlimitedLiteral : ruleUnlimitedLiteral EOF ;
+ public final void entryRuleUnlimitedLiteral() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:229:1: ( ruleUnlimitedLiteral EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:230:1: ruleUnlimitedLiteral EOF
+ {
+ before(grammarAccess.getUnlimitedLiteralRule());
+ pushFollow(FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral421);
+ ruleUnlimitedLiteral();
+
+ state._fsp--;
+
+ after(grammarAccess.getUnlimitedLiteralRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleUnlimitedLiteral428);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleUnlimitedLiteral"
+
+
+ // $ANTLR start "ruleUnlimitedLiteral"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:237:1: ruleUnlimitedLiteral : ( ( rule__UnlimitedLiteral__Alternatives ) ) ;
+ public final void ruleUnlimitedLiteral() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:241:2: ( ( ( rule__UnlimitedLiteral__Alternatives ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:242:1: ( ( rule__UnlimitedLiteral__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:242:1: ( ( rule__UnlimitedLiteral__Alternatives ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:243:1: ( rule__UnlimitedLiteral__Alternatives )
+ {
+ before(grammarAccess.getUnlimitedLiteralAccess().getAlternatives());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:244:1: ( rule__UnlimitedLiteral__Alternatives )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:244:2: rule__UnlimitedLiteral__Alternatives
+ {
+ pushFollow(FOLLOW_rule__UnlimitedLiteral__Alternatives_in_ruleUnlimitedLiteral454);
+ rule__UnlimitedLiteral__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getUnlimitedLiteralAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleUnlimitedLiteral"
+
+
+ // $ANTLR start "entryRuleStringLiteral"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:256:1: entryRuleStringLiteral : ruleStringLiteral EOF ;
+ public final void entryRuleStringLiteral() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:257:1: ( ruleStringLiteral EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:258:1: ruleStringLiteral EOF
+ {
+ before(grammarAccess.getStringLiteralRule());
+ pushFollow(FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral481);
+ ruleStringLiteral();
+
+ state._fsp--;
+
+ after(grammarAccess.getStringLiteralRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleStringLiteral488);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleStringLiteral"
+
+
+ // $ANTLR start "ruleStringLiteral"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:265:1: ruleStringLiteral : ( RULE_STRING ) ;
+ public final void ruleStringLiteral() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:269:2: ( ( RULE_STRING ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:270:1: ( RULE_STRING )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:270:1: ( RULE_STRING )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:271:1: RULE_STRING
+ {
+ before(grammarAccess.getStringLiteralAccess().getSTRINGTerminalRuleCall());
+ match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleStringLiteral514);
+ after(grammarAccess.getStringLiteralAccess().getSTRINGTerminalRuleCall());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleStringLiteral"
+
+
+ // $ANTLR start "entryRuleModifiersRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:284:1: entryRuleModifiersRule : ruleModifiersRule EOF ;
+ public final void entryRuleModifiersRule() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:285:1: ( ruleModifiersRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:286:1: ruleModifiersRule EOF
+ {
+ before(grammarAccess.getModifiersRuleRule());
+ pushFollow(FOLLOW_ruleModifiersRule_in_entryRuleModifiersRule540);
+ ruleModifiersRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getModifiersRuleRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleModifiersRule547);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleModifiersRule"
+
+
+ // $ANTLR start "ruleModifiersRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:293:1: ruleModifiersRule : ( ( rule__ModifiersRule__Group__0 ) ) ;
+ public final void ruleModifiersRule() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:297:2: ( ( ( rule__ModifiersRule__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:298:1: ( ( rule__ModifiersRule__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:298:1: ( ( rule__ModifiersRule__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:299:1: ( rule__ModifiersRule__Group__0 )
+ {
+ before(grammarAccess.getModifiersRuleAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:300:1: ( rule__ModifiersRule__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:300:2: rule__ModifiersRule__Group__0
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group__0_in_ruleModifiersRule573);
+ rule__ModifiersRule__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getModifiersRuleAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleModifiersRule"
+
+
+ // $ANTLR start "entryRuleModifierSpecification"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:312:1: entryRuleModifierSpecification : ruleModifierSpecification EOF ;
+ public final void entryRuleModifierSpecification() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:313:1: ( ruleModifierSpecification EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:314:1: ruleModifierSpecification EOF
+ {
+ before(grammarAccess.getModifierSpecificationRule());
+ pushFollow(FOLLOW_ruleModifierSpecification_in_entryRuleModifierSpecification600);
+ ruleModifierSpecification();
+
+ state._fsp--;
+
+ after(grammarAccess.getModifierSpecificationRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleModifierSpecification607);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleModifierSpecification"
+
+
+ // $ANTLR start "ruleModifierSpecification"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:321:1: ruleModifierSpecification : ( ( rule__ModifierSpecification__Alternatives ) ) ;
+ public final void ruleModifierSpecification() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:325:2: ( ( ( rule__ModifierSpecification__Alternatives ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:326:1: ( ( rule__ModifierSpecification__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:326:1: ( ( rule__ModifierSpecification__Alternatives ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:327:1: ( rule__ModifierSpecification__Alternatives )
+ {
+ before(grammarAccess.getModifierSpecificationAccess().getAlternatives());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:328:1: ( rule__ModifierSpecification__Alternatives )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:328:2: rule__ModifierSpecification__Alternatives
+ {
+ pushFollow(FOLLOW_rule__ModifierSpecification__Alternatives_in_ruleModifierSpecification633);
+ rule__ModifierSpecification__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getModifierSpecificationAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleModifierSpecification"
+
+
+ // $ANTLR start "entryRuleRedefinesRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:340:1: entryRuleRedefinesRule : ruleRedefinesRule EOF ;
+ public final void entryRuleRedefinesRule() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:341:1: ( ruleRedefinesRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:342:1: ruleRedefinesRule EOF
+ {
+ before(grammarAccess.getRedefinesRuleRule());
+ pushFollow(FOLLOW_ruleRedefinesRule_in_entryRuleRedefinesRule660);
+ ruleRedefinesRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getRedefinesRuleRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleRedefinesRule667);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleRedefinesRule"
+
+
+ // $ANTLR start "ruleRedefinesRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:349:1: ruleRedefinesRule : ( ( rule__RedefinesRule__Group__0 ) ) ;
+ public final void ruleRedefinesRule() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:353:2: ( ( ( rule__RedefinesRule__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:354:1: ( ( rule__RedefinesRule__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:354:1: ( ( rule__RedefinesRule__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:355:1: ( rule__RedefinesRule__Group__0 )
+ {
+ before(grammarAccess.getRedefinesRuleAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:356:1: ( rule__RedefinesRule__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:356:2: rule__RedefinesRule__Group__0
+ {
+ pushFollow(FOLLOW_rule__RedefinesRule__Group__0_in_ruleRedefinesRule693);
+ rule__RedefinesRule__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRedefinesRuleAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleRedefinesRule"
+
+
+ // $ANTLR start "entryRuleSubsetsRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:368:1: entryRuleSubsetsRule : ruleSubsetsRule EOF ;
+ public final void entryRuleSubsetsRule() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:369:1: ( ruleSubsetsRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:370:1: ruleSubsetsRule EOF
+ {
+ before(grammarAccess.getSubsetsRuleRule());
+ pushFollow(FOLLOW_ruleSubsetsRule_in_entryRuleSubsetsRule720);
+ ruleSubsetsRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getSubsetsRuleRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleSubsetsRule727);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleSubsetsRule"
+
+
+ // $ANTLR start "ruleSubsetsRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:377:1: ruleSubsetsRule : ( ( rule__SubsetsRule__Group__0 ) ) ;
+ public final void ruleSubsetsRule() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:381:2: ( ( ( rule__SubsetsRule__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:382:1: ( ( rule__SubsetsRule__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:382:1: ( ( rule__SubsetsRule__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:383:1: ( rule__SubsetsRule__Group__0 )
+ {
+ before(grammarAccess.getSubsetsRuleAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:384:1: ( rule__SubsetsRule__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:384:2: rule__SubsetsRule__Group__0
+ {
+ pushFollow(FOLLOW_rule__SubsetsRule__Group__0_in_ruleSubsetsRule753);
+ rule__SubsetsRule__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getSubsetsRuleAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleSubsetsRule"
+
+
+ // $ANTLR start "entryRuleDefaultValueRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:396:1: entryRuleDefaultValueRule : ruleDefaultValueRule EOF ;
+ public final void entryRuleDefaultValueRule() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:397:1: ( ruleDefaultValueRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:398:1: ruleDefaultValueRule EOF
+ {
+ before(grammarAccess.getDefaultValueRuleRule());
+ pushFollow(FOLLOW_ruleDefaultValueRule_in_entryRuleDefaultValueRule780);
+ ruleDefaultValueRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getDefaultValueRuleRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleDefaultValueRule787);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleDefaultValueRule"
+
+
+ // $ANTLR start "ruleDefaultValueRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:405:1: ruleDefaultValueRule : ( ( rule__DefaultValueRule__Group__0 ) ) ;
+ public final void ruleDefaultValueRule() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:409:2: ( ( ( rule__DefaultValueRule__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:410:1: ( ( rule__DefaultValueRule__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:410:1: ( ( rule__DefaultValueRule__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:411:1: ( rule__DefaultValueRule__Group__0 )
+ {
+ before(grammarAccess.getDefaultValueRuleAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:412:1: ( rule__DefaultValueRule__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:412:2: rule__DefaultValueRule__Group__0
+ {
+ pushFollow(FOLLOW_rule__DefaultValueRule__Group__0_in_ruleDefaultValueRule813);
+ rule__DefaultValueRule__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getDefaultValueRuleAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleDefaultValueRule"
+
+
+ // $ANTLR start "entryRuleValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:424:1: entryRuleValue : ruleValue EOF ;
+ public final void entryRuleValue() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:425:1: ( ruleValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:426:1: ruleValue EOF
+ {
+ before(grammarAccess.getValueRule());
+ pushFollow(FOLLOW_ruleValue_in_entryRuleValue840);
+ ruleValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getValueRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleValue847);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleValue"
+
+
+ // $ANTLR start "ruleValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:433:1: ruleValue : ( ( rule__Value__Alternatives ) ) ;
+ public final void ruleValue() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:437:2: ( ( ( rule__Value__Alternatives ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:438:1: ( ( rule__Value__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:438:1: ( ( rule__Value__Alternatives ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:439:1: ( rule__Value__Alternatives )
+ {
+ before(grammarAccess.getValueAccess().getAlternatives());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:440:1: ( rule__Value__Alternatives )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:440:2: rule__Value__Alternatives
+ {
+ pushFollow(FOLLOW_rule__Value__Alternatives_in_ruleValue873);
+ rule__Value__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getValueAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleValue"
+
+
+ // $ANTLR start "entryRuleIntValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:452:1: entryRuleIntValue : ruleIntValue EOF ;
+ public final void entryRuleIntValue() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:453:1: ( ruleIntValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:454:1: ruleIntValue EOF
+ {
+ before(grammarAccess.getIntValueRule());
+ pushFollow(FOLLOW_ruleIntValue_in_entryRuleIntValue900);
+ ruleIntValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getIntValueRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleIntValue907);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleIntValue"
+
+
+ // $ANTLR start "ruleIntValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:461:1: ruleIntValue : ( ( rule__IntValue__LiteralIntegerAssignment ) ) ;
+ public final void ruleIntValue() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:465:2: ( ( ( rule__IntValue__LiteralIntegerAssignment ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:466:1: ( ( rule__IntValue__LiteralIntegerAssignment ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:466:1: ( ( rule__IntValue__LiteralIntegerAssignment ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:467:1: ( rule__IntValue__LiteralIntegerAssignment )
+ {
+ before(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:468:1: ( rule__IntValue__LiteralIntegerAssignment )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:468:2: rule__IntValue__LiteralIntegerAssignment
+ {
+ pushFollow(FOLLOW_rule__IntValue__LiteralIntegerAssignment_in_ruleIntValue933);
+ rule__IntValue__LiteralIntegerAssignment();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleIntValue"
+
+
+ // $ANTLR start "entryRuleStringValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:480:1: entryRuleStringValue : ruleStringValue EOF ;
+ public final void entryRuleStringValue() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:481:1: ( ruleStringValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:482:1: ruleStringValue EOF
+ {
+ before(grammarAccess.getStringValueRule());
+ pushFollow(FOLLOW_ruleStringValue_in_entryRuleStringValue960);
+ ruleStringValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getStringValueRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleStringValue967);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleStringValue"
+
+
+ // $ANTLR start "ruleStringValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:489:1: ruleStringValue : ( ( rule__StringValue__LiteralStringAssignment ) ) ;
+ public final void ruleStringValue() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:493:2: ( ( ( rule__StringValue__LiteralStringAssignment ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:494:1: ( ( rule__StringValue__LiteralStringAssignment ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:494:1: ( ( rule__StringValue__LiteralStringAssignment ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:495:1: ( rule__StringValue__LiteralStringAssignment )
+ {
+ before(grammarAccess.getStringValueAccess().getLiteralStringAssignment());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:496:1: ( rule__StringValue__LiteralStringAssignment )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:496:2: rule__StringValue__LiteralStringAssignment
+ {
+ pushFollow(FOLLOW_rule__StringValue__LiteralStringAssignment_in_ruleStringValue993);
+ rule__StringValue__LiteralStringAssignment();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getStringValueAccess().getLiteralStringAssignment());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleStringValue"
+
+
+ // $ANTLR start "entryRuleBooleanValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:508:1: entryRuleBooleanValue : ruleBooleanValue EOF ;
+ public final void entryRuleBooleanValue() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:509:1: ( ruleBooleanValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:510:1: ruleBooleanValue EOF
+ {
+ before(grammarAccess.getBooleanValueRule());
+ pushFollow(FOLLOW_ruleBooleanValue_in_entryRuleBooleanValue1020);
+ ruleBooleanValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getBooleanValueRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleBooleanValue1027);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleBooleanValue"
+
+
+ // $ANTLR start "ruleBooleanValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:517:1: ruleBooleanValue : ( ( rule__BooleanValue__LiteralBooleanAssignment ) ) ;
+ public final void ruleBooleanValue() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:521:2: ( ( ( rule__BooleanValue__LiteralBooleanAssignment ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:522:1: ( ( rule__BooleanValue__LiteralBooleanAssignment ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:522:1: ( ( rule__BooleanValue__LiteralBooleanAssignment ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:523:1: ( rule__BooleanValue__LiteralBooleanAssignment )
+ {
+ before(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:524:1: ( rule__BooleanValue__LiteralBooleanAssignment )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:524:2: rule__BooleanValue__LiteralBooleanAssignment
+ {
+ pushFollow(FOLLOW_rule__BooleanValue__LiteralBooleanAssignment_in_ruleBooleanValue1053);
+ rule__BooleanValue__LiteralBooleanAssignment();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleBooleanValue"
+
+
+ // $ANTLR start "entryRuleRealValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:536:1: entryRuleRealValue : ruleRealValue EOF ;
+ public final void entryRuleRealValue() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:537:1: ( ruleRealValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:538:1: ruleRealValue EOF
+ {
+ before(grammarAccess.getRealValueRule());
+ pushFollow(FOLLOW_ruleRealValue_in_entryRuleRealValue1080);
+ ruleRealValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getRealValueRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleRealValue1087);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleRealValue"
+
+
+ // $ANTLR start "ruleRealValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:545:1: ruleRealValue : ( ( rule__RealValue__Alternatives ) ) ;
+ public final void ruleRealValue() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:549:2: ( ( ( rule__RealValue__Alternatives ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:550:1: ( ( rule__RealValue__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:550:1: ( ( rule__RealValue__Alternatives ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:551:1: ( rule__RealValue__Alternatives )
+ {
+ before(grammarAccess.getRealValueAccess().getAlternatives());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:552:1: ( rule__RealValue__Alternatives )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:552:2: rule__RealValue__Alternatives
+ {
+ pushFollow(FOLLOW_rule__RealValue__Alternatives_in_ruleRealValue1113);
+ rule__RealValue__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRealValueAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleRealValue"
+
+
+ // $ANTLR start "entryRuleNullValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:564:1: entryRuleNullValue : ruleNullValue EOF ;
+ public final void entryRuleNullValue() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:565:1: ( ruleNullValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:566:1: ruleNullValue EOF
+ {
+ before(grammarAccess.getNullValueRule());
+ pushFollow(FOLLOW_ruleNullValue_in_entryRuleNullValue1140);
+ ruleNullValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getNullValueRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleNullValue1147);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleNullValue"
+
+
+ // $ANTLR start "ruleNullValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:573:1: ruleNullValue : ( ( rule__NullValue__Group__0 ) ) ;
+ public final void ruleNullValue() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:577:2: ( ( ( rule__NullValue__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:578:1: ( ( rule__NullValue__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:578:1: ( ( rule__NullValue__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:579:1: ( rule__NullValue__Group__0 )
+ {
+ before(grammarAccess.getNullValueAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:580:1: ( rule__NullValue__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:580:2: rule__NullValue__Group__0
+ {
+ pushFollow(FOLLOW_rule__NullValue__Group__0_in_ruleNullValue1173);
+ rule__NullValue__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getNullValueAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleNullValue"
+
+
+ // $ANTLR start "entryRuleNoValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:592:1: entryRuleNoValue : ruleNoValue EOF ;
+ public final void entryRuleNoValue() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:593:1: ( ruleNoValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:594:1: ruleNoValue EOF
+ {
+ before(grammarAccess.getNoValueRule());
+ pushFollow(FOLLOW_ruleNoValue_in_entryRuleNoValue1200);
+ ruleNoValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getNoValueRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleNoValue1207);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleNoValue"
+
+
+ // $ANTLR start "ruleNoValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:601:1: ruleNoValue : ( ( rule__NoValue__Group__0 ) ) ;
+ public final void ruleNoValue() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:605:2: ( ( ( rule__NoValue__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:606:1: ( ( rule__NoValue__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:606:1: ( ( rule__NoValue__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:607:1: ( rule__NoValue__Group__0 )
+ {
+ before(grammarAccess.getNoValueAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:608:1: ( rule__NoValue__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:608:2: rule__NoValue__Group__0
+ {
+ pushFollow(FOLLOW_rule__NoValue__Group__0_in_ruleNoValue1233);
+ rule__NoValue__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getNoValueAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleNoValue"
+
+
+ // $ANTLR start "ruleVisibilityKind"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:621:1: ruleVisibilityKind : ( ( rule__VisibilityKind__Alternatives ) ) ;
+ public final void ruleVisibilityKind() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:625:1: ( ( ( rule__VisibilityKind__Alternatives ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:626:1: ( ( rule__VisibilityKind__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:626:1: ( ( rule__VisibilityKind__Alternatives ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:627:1: ( rule__VisibilityKind__Alternatives )
+ {
+ before(grammarAccess.getVisibilityKindAccess().getAlternatives());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:628:1: ( rule__VisibilityKind__Alternatives )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:628:2: rule__VisibilityKind__Alternatives
+ {
+ pushFollow(FOLLOW_rule__VisibilityKind__Alternatives_in_ruleVisibilityKind1270);
+ rule__VisibilityKind__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getVisibilityKindAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleVisibilityKind"
+
+
+ // $ANTLR start "ruleModifierKind"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:640:1: ruleModifierKind : ( ( rule__ModifierKind__Alternatives ) ) ;
+ public final void ruleModifierKind() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:644:1: ( ( ( rule__ModifierKind__Alternatives ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:645:1: ( ( rule__ModifierKind__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:645:1: ( ( rule__ModifierKind__Alternatives ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:646:1: ( rule__ModifierKind__Alternatives )
+ {
+ before(grammarAccess.getModifierKindAccess().getAlternatives());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:647:1: ( rule__ModifierKind__Alternatives )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:647:2: rule__ModifierKind__Alternatives
+ {
+ pushFollow(FOLLOW_rule__ModifierKind__Alternatives_in_ruleModifierKind1306);
+ rule__ModifierKind__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getModifierKindAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleModifierKind"
+
+
+ // $ANTLR start "ruleBooleanLiterals"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:659:1: ruleBooleanLiterals : ( ( rule__BooleanLiterals__Alternatives ) ) ;
+ public final void ruleBooleanLiterals() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:663:1: ( ( ( rule__BooleanLiterals__Alternatives ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:664:1: ( ( rule__BooleanLiterals__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:664:1: ( ( rule__BooleanLiterals__Alternatives ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:665:1: ( rule__BooleanLiterals__Alternatives )
+ {
+ before(grammarAccess.getBooleanLiteralsAccess().getAlternatives());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:666:1: ( rule__BooleanLiterals__Alternatives )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:666:2: rule__BooleanLiterals__Alternatives
+ {
+ pushFollow(FOLLOW_rule__BooleanLiterals__Alternatives_in_ruleBooleanLiterals1342);
+ rule__BooleanLiterals__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getBooleanLiteralsAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleBooleanLiterals"
+
+
+ // $ANTLR start "rule__PortRule__Alternatives_3_2"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:677:1: rule__PortRule__Alternatives_3_2 : ( ( ( rule__PortRule__TypeAssignment_3_2_0 ) ) | ( ( rule__PortRule__TypeUndefinedAssignment_3_2_1 ) ) );
+ public final void rule__PortRule__Alternatives_3_2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:681:1: ( ( ( rule__PortRule__TypeAssignment_3_2_0 ) ) | ( ( rule__PortRule__TypeUndefinedAssignment_3_2_1 ) ) )
+ int alt1=2;
+ int LA1_0 = input.LA(1);
+
+ if ( (LA1_0==RULE_ID) ) {
+ alt1=1;
+ }
+ else if ( (LA1_0==38) ) {
+ alt1=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 1, 0, input);
+
+ throw nvae;
+ }
+ switch (alt1) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:682:1: ( ( rule__PortRule__TypeAssignment_3_2_0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:682:1: ( ( rule__PortRule__TypeAssignment_3_2_0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:683:1: ( rule__PortRule__TypeAssignment_3_2_0 )
+ {
+ before(grammarAccess.getPortRuleAccess().getTypeAssignment_3_2_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:684:1: ( rule__PortRule__TypeAssignment_3_2_0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:684:2: rule__PortRule__TypeAssignment_3_2_0
+ {
+ pushFollow(FOLLOW_rule__PortRule__TypeAssignment_3_2_0_in_rule__PortRule__Alternatives_3_21377);
+ rule__PortRule__TypeAssignment_3_2_0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getPortRuleAccess().getTypeAssignment_3_2_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:688:6: ( ( rule__PortRule__TypeUndefinedAssignment_3_2_1 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:688:6: ( ( rule__PortRule__TypeUndefinedAssignment_3_2_1 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:689:1: ( rule__PortRule__TypeUndefinedAssignment_3_2_1 )
+ {
+ before(grammarAccess.getPortRuleAccess().getTypeUndefinedAssignment_3_2_1());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:690:1: ( rule__PortRule__TypeUndefinedAssignment_3_2_1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:690:2: rule__PortRule__TypeUndefinedAssignment_3_2_1
+ {
+ pushFollow(FOLLOW_rule__PortRule__TypeUndefinedAssignment_3_2_1_in_rule__PortRule__Alternatives_3_21395);
+ rule__PortRule__TypeUndefinedAssignment_3_2_1();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getPortRuleAccess().getTypeUndefinedAssignment_3_2_1());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Alternatives_3_2"
+
+
+ // $ANTLR start "rule__BoundSpecification__ValueAlternatives_0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:699:1: rule__BoundSpecification__ValueAlternatives_0 : ( ( ruleUnlimitedLiteral ) | ( ruleStringLiteral ) );
+ public final void rule__BoundSpecification__ValueAlternatives_0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:703:1: ( ( ruleUnlimitedLiteral ) | ( ruleStringLiteral ) )
+ int alt2=2;
+ int LA2_0 = input.LA(1);
+
+ if ( (LA2_0==RULE_INT||LA2_0==12) ) {
+ alt2=1;
+ }
+ else if ( (LA2_0==RULE_STRING) ) {
+ alt2=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 2, 0, input);
+
+ throw nvae;
+ }
+ switch (alt2) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:704:1: ( ruleUnlimitedLiteral )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:704:1: ( ruleUnlimitedLiteral )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:705:1: ruleUnlimitedLiteral
+ {
+ before(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0_0());
+ pushFollow(FOLLOW_ruleUnlimitedLiteral_in_rule__BoundSpecification__ValueAlternatives_01428);
+ ruleUnlimitedLiteral();
+
+ state._fsp--;
+
+ after(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:710:6: ( ruleStringLiteral )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:710:6: ( ruleStringLiteral )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:711:1: ruleStringLiteral
+ {
+ before(grammarAccess.getBoundSpecificationAccess().getValueStringLiteralParserRuleCall_0_1());
+ pushFollow(FOLLOW_ruleStringLiteral_in_rule__BoundSpecification__ValueAlternatives_01445);
+ ruleStringLiteral();
+
+ state._fsp--;
+
+ after(grammarAccess.getBoundSpecificationAccess().getValueStringLiteralParserRuleCall_0_1());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__BoundSpecification__ValueAlternatives_0"
+
+
+ // $ANTLR start "rule__UnlimitedLiteral__Alternatives"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:721:1: rule__UnlimitedLiteral__Alternatives : ( ( RULE_INT ) | ( '*' ) );
+ public final void rule__UnlimitedLiteral__Alternatives() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:725:1: ( ( RULE_INT ) | ( '*' ) )
+ int alt3=2;
+ int LA3_0 = input.LA(1);
+
+ if ( (LA3_0==RULE_INT) ) {
+ alt3=1;
+ }
+ else if ( (LA3_0==12) ) {
+ alt3=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 3, 0, input);
+
+ throw nvae;
+ }
+ switch (alt3) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:726:1: ( RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:726:1: ( RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:727:1: RULE_INT
+ {
+ before(grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0());
+ match(input,RULE_INT,FOLLOW_RULE_INT_in_rule__UnlimitedLiteral__Alternatives1477);
+ after(grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:732:6: ( '*' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:732:6: ( '*' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:733:1: '*'
+ {
+ before(grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1());
+ match(input,12,FOLLOW_12_in_rule__UnlimitedLiteral__Alternatives1495);
+ after(grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__UnlimitedLiteral__Alternatives"
+
+
+ // $ANTLR start "rule__ModifierSpecification__Alternatives"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:745:1: rule__ModifierSpecification__Alternatives : ( ( ( rule__ModifierSpecification__ValueAssignment_0 ) ) | ( ( rule__ModifierSpecification__RedefinesAssignment_1 ) ) | ( ( rule__ModifierSpecification__SubsetsAssignment_2 ) ) );
+ public final void rule__ModifierSpecification__Alternatives() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:749:1: ( ( ( rule__ModifierSpecification__ValueAssignment_0 ) ) | ( ( rule__ModifierSpecification__RedefinesAssignment_1 ) ) | ( ( rule__ModifierSpecification__SubsetsAssignment_2 ) ) )
+ int alt4=3;
+ switch ( input.LA(1) ) {
+ case 17:
+ case 18:
+ case 19:
+ case 20:
+ {
+ alt4=1;
+ }
+ break;
+ case 31:
+ {
+ alt4=2;
+ }
+ break;
+ case 32:
+ {
+ alt4=3;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 4, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt4) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:750:1: ( ( rule__ModifierSpecification__ValueAssignment_0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:750:1: ( ( rule__ModifierSpecification__ValueAssignment_0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:751:1: ( rule__ModifierSpecification__ValueAssignment_0 )
+ {
+ before(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:752:1: ( rule__ModifierSpecification__ValueAssignment_0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:752:2: rule__ModifierSpecification__ValueAssignment_0
+ {
+ pushFollow(FOLLOW_rule__ModifierSpecification__ValueAssignment_0_in_rule__ModifierSpecification__Alternatives1529);
+ rule__ModifierSpecification__ValueAssignment_0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:756:6: ( ( rule__ModifierSpecification__RedefinesAssignment_1 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:756:6: ( ( rule__ModifierSpecification__RedefinesAssignment_1 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:757:1: ( rule__ModifierSpecification__RedefinesAssignment_1 )
+ {
+ before(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:758:1: ( rule__ModifierSpecification__RedefinesAssignment_1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:758:2: rule__ModifierSpecification__RedefinesAssignment_1
+ {
+ pushFollow(FOLLOW_rule__ModifierSpecification__RedefinesAssignment_1_in_rule__ModifierSpecification__Alternatives1547);
+ rule__ModifierSpecification__RedefinesAssignment_1();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1());
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:762:6: ( ( rule__ModifierSpecification__SubsetsAssignment_2 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:762:6: ( ( rule__ModifierSpecification__SubsetsAssignment_2 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:763:1: ( rule__ModifierSpecification__SubsetsAssignment_2 )
+ {
+ before(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:764:1: ( rule__ModifierSpecification__SubsetsAssignment_2 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:764:2: rule__ModifierSpecification__SubsetsAssignment_2
+ {
+ pushFollow(FOLLOW_rule__ModifierSpecification__SubsetsAssignment_2_in_rule__ModifierSpecification__Alternatives1565);
+ rule__ModifierSpecification__SubsetsAssignment_2();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifierSpecification__Alternatives"
+
+
+ // $ANTLR start "rule__Value__Alternatives"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:773:1: rule__Value__Alternatives : ( ( ruleIntValue ) | ( ruleStringValue ) | ( ruleBooleanValue ) | ( ruleRealValue ) | ( ruleNullValue ) | ( ruleNoValue ) );
+ public final void rule__Value__Alternatives() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:777:1: ( ( ruleIntValue ) | ( ruleStringValue ) | ( ruleBooleanValue ) | ( ruleRealValue ) | ( ruleNullValue ) | ( ruleNoValue ) )
+ int alt5=6;
+ switch ( input.LA(1) ) {
+ case RULE_INT:
+ {
+ int LA5_1 = input.LA(2);
+
+ if ( (LA5_1==34) ) {
+ alt5=4;
+ }
+ else if ( (LA5_1==EOF) ) {
+ alt5=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 5, 1, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_STRING:
+ {
+ alt5=2;
+ }
+ break;
+ case 21:
+ case 22:
+ {
+ alt5=3;
+ }
+ break;
+ case 34:
+ {
+ alt5=4;
+ }
+ break;
+ case 35:
+ {
+ alt5=5;
+ }
+ break;
+ case 36:
+ {
+ alt5=6;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 5, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt5) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:778:1: ( ruleIntValue )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:778:1: ( ruleIntValue )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:779:1: ruleIntValue
+ {
+ before(grammarAccess.getValueAccess().getIntValueParserRuleCall_0());
+ pushFollow(FOLLOW_ruleIntValue_in_rule__Value__Alternatives1598);
+ ruleIntValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getValueAccess().getIntValueParserRuleCall_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:784:6: ( ruleStringValue )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:784:6: ( ruleStringValue )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:785:1: ruleStringValue
+ {
+ before(grammarAccess.getValueAccess().getStringValueParserRuleCall_1());
+ pushFollow(FOLLOW_ruleStringValue_in_rule__Value__Alternatives1615);
+ ruleStringValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getValueAccess().getStringValueParserRuleCall_1());
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:790:6: ( ruleBooleanValue )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:790:6: ( ruleBooleanValue )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:791:1: ruleBooleanValue
+ {
+ before(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2());
+ pushFollow(FOLLOW_ruleBooleanValue_in_rule__Value__Alternatives1632);
+ ruleBooleanValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2());
+
+ }
+
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:796:6: ( ruleRealValue )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:796:6: ( ruleRealValue )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:797:1: ruleRealValue
+ {
+ before(grammarAccess.getValueAccess().getRealValueParserRuleCall_3());
+ pushFollow(FOLLOW_ruleRealValue_in_rule__Value__Alternatives1649);
+ ruleRealValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getValueAccess().getRealValueParserRuleCall_3());
+
+ }
+
+
+ }
+ break;
+ case 5 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:802:6: ( ruleNullValue )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:802:6: ( ruleNullValue )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:803:1: ruleNullValue
+ {
+ before(grammarAccess.getValueAccess().getNullValueParserRuleCall_4());
+ pushFollow(FOLLOW_ruleNullValue_in_rule__Value__Alternatives1666);
+ ruleNullValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getValueAccess().getNullValueParserRuleCall_4());
+
+ }
+
+
+ }
+ break;
+ case 6 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:808:6: ( ruleNoValue )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:808:6: ( ruleNoValue )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:809:1: ruleNoValue
+ {
+ before(grammarAccess.getValueAccess().getNoValueParserRuleCall_5());
+ pushFollow(FOLLOW_ruleNoValue_in_rule__Value__Alternatives1683);
+ ruleNoValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getValueAccess().getNoValueParserRuleCall_5());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__Value__Alternatives"
+
+
+ // $ANTLR start "rule__RealValue__Alternatives"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:819:1: rule__RealValue__Alternatives : ( ( ( rule__RealValue__Group_0__0 ) ) | ( ( rule__RealValue__Group_1__0 ) ) | ( ( rule__RealValue__Group_2__0 ) ) );
+ public final void rule__RealValue__Alternatives() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:823:1: ( ( ( rule__RealValue__Group_0__0 ) ) | ( ( rule__RealValue__Group_1__0 ) ) | ( ( rule__RealValue__Group_2__0 ) ) )
+ int alt6=3;
+ int LA6_0 = input.LA(1);
+
+ if ( (LA6_0==RULE_INT) ) {
+ int LA6_1 = input.LA(2);
+
+ if ( (LA6_1==34) ) {
+ int LA6_3 = input.LA(3);
+
+ if ( (LA6_3==EOF) ) {
+ alt6=1;
+ }
+ else if ( (LA6_3==RULE_INT) ) {
+ alt6=3;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 6, 3, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 6, 1, input);
+
+ throw nvae;
+ }
+ }
+ else if ( (LA6_0==34) ) {
+ alt6=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 6, 0, input);
+
+ throw nvae;
+ }
+ switch (alt6) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:824:1: ( ( rule__RealValue__Group_0__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:824:1: ( ( rule__RealValue__Group_0__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:825:1: ( rule__RealValue__Group_0__0 )
+ {
+ before(grammarAccess.getRealValueAccess().getGroup_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:826:1: ( rule__RealValue__Group_0__0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:826:2: rule__RealValue__Group_0__0
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_0__0_in_rule__RealValue__Alternatives1715);
+ rule__RealValue__Group_0__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRealValueAccess().getGroup_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:830:6: ( ( rule__RealValue__Group_1__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:830:6: ( ( rule__RealValue__Group_1__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:831:1: ( rule__RealValue__Group_1__0 )
+ {
+ before(grammarAccess.getRealValueAccess().getGroup_1());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:832:1: ( rule__RealValue__Group_1__0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:832:2: rule__RealValue__Group_1__0
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_1__0_in_rule__RealValue__Alternatives1733);
+ rule__RealValue__Group_1__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRealValueAccess().getGroup_1());
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:836:6: ( ( rule__RealValue__Group_2__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:836:6: ( ( rule__RealValue__Group_2__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:837:1: ( rule__RealValue__Group_2__0 )
+ {
+ before(grammarAccess.getRealValueAccess().getGroup_2());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:838:1: ( rule__RealValue__Group_2__0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:838:2: rule__RealValue__Group_2__0
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_2__0_in_rule__RealValue__Alternatives1751);
+ rule__RealValue__Group_2__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRealValueAccess().getGroup_2());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Alternatives"
+
+
+ // $ANTLR start "rule__VisibilityKind__Alternatives"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:847:1: rule__VisibilityKind__Alternatives : ( ( ( '+' ) ) | ( ( '-' ) ) | ( ( '#' ) ) | ( ( '~' ) ) );
+ public final void rule__VisibilityKind__Alternatives() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:851:1: ( ( ( '+' ) ) | ( ( '-' ) ) | ( ( '#' ) ) | ( ( '~' ) ) )
+ int alt7=4;
+ switch ( input.LA(1) ) {
+ case 13:
+ {
+ alt7=1;
+ }
+ break;
+ case 14:
+ {
+ alt7=2;
+ }
+ break;
+ case 15:
+ {
+ alt7=3;
+ }
+ break;
+ case 16:
+ {
+ alt7=4;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 7, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt7) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:852:1: ( ( '+' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:852:1: ( ( '+' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:853:1: ( '+' )
+ {
+ before(grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:854:1: ( '+' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:854:3: '+'
+ {
+ match(input,13,FOLLOW_13_in_rule__VisibilityKind__Alternatives1785);
+
+ }
+
+ after(grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:859:6: ( ( '-' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:859:6: ( ( '-' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:860:1: ( '-' )
+ {
+ before(grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:861:1: ( '-' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:861:3: '-'
+ {
+ match(input,14,FOLLOW_14_in_rule__VisibilityKind__Alternatives1806);
+
+ }
+
+ after(grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1());
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:866:6: ( ( '#' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:866:6: ( ( '#' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:867:1: ( '#' )
+ {
+ before(grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:868:1: ( '#' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:868:3: '#'
+ {
+ match(input,15,FOLLOW_15_in_rule__VisibilityKind__Alternatives1827);
+
+ }
+
+ after(grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2());
+
+ }
+
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:873:6: ( ( '~' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:873:6: ( ( '~' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:874:1: ( '~' )
+ {
+ before(grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:875:1: ( '~' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:875:3: '~'
+ {
+ match(input,16,FOLLOW_16_in_rule__VisibilityKind__Alternatives1848);
+
+ }
+
+ after(grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__VisibilityKind__Alternatives"
+
+
+ // $ANTLR start "rule__ModifierKind__Alternatives"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:885:1: rule__ModifierKind__Alternatives : ( ( ( 'readOnly' ) ) | ( ( 'union' ) ) | ( ( 'ordered' ) ) | ( ( 'unique' ) ) );
+ public final void rule__ModifierKind__Alternatives() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:889:1: ( ( ( 'readOnly' ) ) | ( ( 'union' ) ) | ( ( 'ordered' ) ) | ( ( 'unique' ) ) )
+ int alt8=4;
+ switch ( input.LA(1) ) {
+ case 17:
+ {
+ alt8=1;
+ }
+ break;
+ case 18:
+ {
+ alt8=2;
+ }
+ break;
+ case 19:
+ {
+ alt8=3;
+ }
+ break;
+ case 20:
+ {
+ alt8=4;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 8, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt8) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:890:1: ( ( 'readOnly' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:890:1: ( ( 'readOnly' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:891:1: ( 'readOnly' )
+ {
+ before(grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:892:1: ( 'readOnly' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:892:3: 'readOnly'
+ {
+ match(input,17,FOLLOW_17_in_rule__ModifierKind__Alternatives1884);
+
+ }
+
+ after(grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:897:6: ( ( 'union' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:897:6: ( ( 'union' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:898:1: ( 'union' )
+ {
+ before(grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:899:1: ( 'union' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:899:3: 'union'
+ {
+ match(input,18,FOLLOW_18_in_rule__ModifierKind__Alternatives1905);
+
+ }
+
+ after(grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1());
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:904:6: ( ( 'ordered' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:904:6: ( ( 'ordered' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:905:1: ( 'ordered' )
+ {
+ before(grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:906:1: ( 'ordered' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:906:3: 'ordered'
+ {
+ match(input,19,FOLLOW_19_in_rule__ModifierKind__Alternatives1926);
+
+ }
+
+ after(grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2());
+
+ }
+
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:911:6: ( ( 'unique' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:911:6: ( ( 'unique' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:912:1: ( 'unique' )
+ {
+ before(grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:913:1: ( 'unique' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:913:3: 'unique'
+ {
+ match(input,20,FOLLOW_20_in_rule__ModifierKind__Alternatives1947);
+
+ }
+
+ after(grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifierKind__Alternatives"
+
+
+ // $ANTLR start "rule__BooleanLiterals__Alternatives"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:923:1: rule__BooleanLiterals__Alternatives : ( ( ( 'true' ) ) | ( ( 'false' ) ) );
+ public final void rule__BooleanLiterals__Alternatives() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:927:1: ( ( ( 'true' ) ) | ( ( 'false' ) ) )
+ int alt9=2;
+ int LA9_0 = input.LA(1);
+
+ if ( (LA9_0==21) ) {
+ alt9=1;
+ }
+ else if ( (LA9_0==22) ) {
+ alt9=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 9, 0, input);
+
+ throw nvae;
+ }
+ switch (alt9) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:928:1: ( ( 'true' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:928:1: ( ( 'true' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:929:1: ( 'true' )
+ {
+ before(grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:930:1: ( 'true' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:930:3: 'true'
+ {
+ match(input,21,FOLLOW_21_in_rule__BooleanLiterals__Alternatives1983);
+
+ }
+
+ after(grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:935:6: ( ( 'false' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:935:6: ( ( 'false' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:936:1: ( 'false' )
+ {
+ before(grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:937:1: ( 'false' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:937:3: 'false'
+ {
+ match(input,22,FOLLOW_22_in_rule__BooleanLiterals__Alternatives2004);
+
+ }
+
+ after(grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__BooleanLiterals__Alternatives"
+
+
+ // $ANTLR start "rule__PortRule__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:949:1: rule__PortRule__Group__0 : rule__PortRule__Group__0__Impl rule__PortRule__Group__1 ;
+ public final void rule__PortRule__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:953:1: ( rule__PortRule__Group__0__Impl rule__PortRule__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:954:2: rule__PortRule__Group__0__Impl rule__PortRule__Group__1
+ {
+ pushFollow(FOLLOW_rule__PortRule__Group__0__Impl_in_rule__PortRule__Group__02037);
+ rule__PortRule__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__PortRule__Group__1_in_rule__PortRule__Group__02040);
+ rule__PortRule__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group__0"
+
+
+ // $ANTLR start "rule__PortRule__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:961:1: rule__PortRule__Group__0__Impl : ( ( rule__PortRule__VisibilityAssignment_0 )? ) ;
+ public final void rule__PortRule__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:965:1: ( ( ( rule__PortRule__VisibilityAssignment_0 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:966:1: ( ( rule__PortRule__VisibilityAssignment_0 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:966:1: ( ( rule__PortRule__VisibilityAssignment_0 )? )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:967:1: ( rule__PortRule__VisibilityAssignment_0 )?
+ {
+ before(grammarAccess.getPortRuleAccess().getVisibilityAssignment_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:968:1: ( rule__PortRule__VisibilityAssignment_0 )?
+ int alt10=2;
+ int LA10_0 = input.LA(1);
+
+ if ( ((LA10_0>=13 && LA10_0<=16)) ) {
+ alt10=1;
+ }
+ switch (alt10) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:968:2: rule__PortRule__VisibilityAssignment_0
+ {
+ pushFollow(FOLLOW_rule__PortRule__VisibilityAssignment_0_in_rule__PortRule__Group__0__Impl2067);
+ rule__PortRule__VisibilityAssignment_0();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getPortRuleAccess().getVisibilityAssignment_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group__0__Impl"
+
+
+ // $ANTLR start "rule__PortRule__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:978:1: rule__PortRule__Group__1 : rule__PortRule__Group__1__Impl rule__PortRule__Group__2 ;
+ public final void rule__PortRule__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:982:1: ( rule__PortRule__Group__1__Impl rule__PortRule__Group__2 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:983:2: rule__PortRule__Group__1__Impl rule__PortRule__Group__2
+ {
+ pushFollow(FOLLOW_rule__PortRule__Group__1__Impl_in_rule__PortRule__Group__12098);
+ rule__PortRule__Group__1__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__PortRule__Group__2_in_rule__PortRule__Group__12101);
+ rule__PortRule__Group__2();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group__1"
+
+
+ // $ANTLR start "rule__PortRule__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:990:1: rule__PortRule__Group__1__Impl : ( ( rule__PortRule__DerivedAssignment_1 )? ) ;
+ public final void rule__PortRule__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:994:1: ( ( ( rule__PortRule__DerivedAssignment_1 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:995:1: ( ( rule__PortRule__DerivedAssignment_1 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:995:1: ( ( rule__PortRule__DerivedAssignment_1 )? )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:996:1: ( rule__PortRule__DerivedAssignment_1 )?
+ {
+ before(grammarAccess.getPortRuleAccess().getDerivedAssignment_1());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:997:1: ( rule__PortRule__DerivedAssignment_1 )?
+ int alt11=2;
+ int LA11_0 = input.LA(1);
+
+ if ( (LA11_0==37) ) {
+ alt11=1;
+ }
+ switch (alt11) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:997:2: rule__PortRule__DerivedAssignment_1
+ {
+ pushFollow(FOLLOW_rule__PortRule__DerivedAssignment_1_in_rule__PortRule__Group__1__Impl2128);
+ rule__PortRule__DerivedAssignment_1();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getPortRuleAccess().getDerivedAssignment_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group__1__Impl"
+
+
+ // $ANTLR start "rule__PortRule__Group__2"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1007:1: rule__PortRule__Group__2 : rule__PortRule__Group__2__Impl rule__PortRule__Group__3 ;
+ public final void rule__PortRule__Group__2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1011:1: ( rule__PortRule__Group__2__Impl rule__PortRule__Group__3 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1012:2: rule__PortRule__Group__2__Impl rule__PortRule__Group__3
+ {
+ pushFollow(FOLLOW_rule__PortRule__Group__2__Impl_in_rule__PortRule__Group__22159);
+ rule__PortRule__Group__2__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__PortRule__Group__3_in_rule__PortRule__Group__22162);
+ rule__PortRule__Group__3();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group__2"
+
+
+ // $ANTLR start "rule__PortRule__Group__2__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1019:1: rule__PortRule__Group__2__Impl : ( ( rule__PortRule__NameAssignment_2 ) ) ;
+ public final void rule__PortRule__Group__2__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1023:1: ( ( ( rule__PortRule__NameAssignment_2 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1024:1: ( ( rule__PortRule__NameAssignment_2 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1024:1: ( ( rule__PortRule__NameAssignment_2 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1025:1: ( rule__PortRule__NameAssignment_2 )
+ {
+ before(grammarAccess.getPortRuleAccess().getNameAssignment_2());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1026:1: ( rule__PortRule__NameAssignment_2 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1026:2: rule__PortRule__NameAssignment_2
+ {
+ pushFollow(FOLLOW_rule__PortRule__NameAssignment_2_in_rule__PortRule__Group__2__Impl2189);
+ rule__PortRule__NameAssignment_2();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getPortRuleAccess().getNameAssignment_2());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group__2__Impl"
+
+
+ // $ANTLR start "rule__PortRule__Group__3"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1036:1: rule__PortRule__Group__3 : rule__PortRule__Group__3__Impl rule__PortRule__Group__4 ;
+ public final void rule__PortRule__Group__3() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1040:1: ( rule__PortRule__Group__3__Impl rule__PortRule__Group__4 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1041:2: rule__PortRule__Group__3__Impl rule__PortRule__Group__4
+ {
+ pushFollow(FOLLOW_rule__PortRule__Group__3__Impl_in_rule__PortRule__Group__32219);
+ rule__PortRule__Group__3__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__PortRule__Group__4_in_rule__PortRule__Group__32222);
+ rule__PortRule__Group__4();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group__3"
+
+
+ // $ANTLR start "rule__PortRule__Group__3__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1048:1: rule__PortRule__Group__3__Impl : ( ( rule__PortRule__Group_3__0 )? ) ;
+ public final void rule__PortRule__Group__3__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1052:1: ( ( ( rule__PortRule__Group_3__0 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1053:1: ( ( rule__PortRule__Group_3__0 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1053:1: ( ( rule__PortRule__Group_3__0 )? )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1054:1: ( rule__PortRule__Group_3__0 )?
+ {
+ before(grammarAccess.getPortRuleAccess().getGroup_3());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1055:1: ( rule__PortRule__Group_3__0 )?
+ int alt12=2;
+ int LA12_0 = input.LA(1);
+
+ if ( (LA12_0==23) ) {
+ alt12=1;
+ }
+ switch (alt12) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1055:2: rule__PortRule__Group_3__0
+ {
+ pushFollow(FOLLOW_rule__PortRule__Group_3__0_in_rule__PortRule__Group__3__Impl2249);
+ rule__PortRule__Group_3__0();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getPortRuleAccess().getGroup_3());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group__3__Impl"
+
+
+ // $ANTLR start "rule__PortRule__Group__4"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1065:1: rule__PortRule__Group__4 : rule__PortRule__Group__4__Impl rule__PortRule__Group__5 ;
+ public final void rule__PortRule__Group__4() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1069:1: ( rule__PortRule__Group__4__Impl rule__PortRule__Group__5 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1070:2: rule__PortRule__Group__4__Impl rule__PortRule__Group__5
+ {
+ pushFollow(FOLLOW_rule__PortRule__Group__4__Impl_in_rule__PortRule__Group__42280);
+ rule__PortRule__Group__4__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__PortRule__Group__5_in_rule__PortRule__Group__42283);
+ rule__PortRule__Group__5();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group__4"
+
+
+ // $ANTLR start "rule__PortRule__Group__4__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1077:1: rule__PortRule__Group__4__Impl : ( ( rule__PortRule__MultiplicityAssignment_4 )? ) ;
+ public final void rule__PortRule__Group__4__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1081:1: ( ( ( rule__PortRule__MultiplicityAssignment_4 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1082:1: ( ( rule__PortRule__MultiplicityAssignment_4 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1082:1: ( ( rule__PortRule__MultiplicityAssignment_4 )? )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1083:1: ( rule__PortRule__MultiplicityAssignment_4 )?
+ {
+ before(grammarAccess.getPortRuleAccess().getMultiplicityAssignment_4());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1084:1: ( rule__PortRule__MultiplicityAssignment_4 )?
+ int alt13=2;
+ int LA13_0 = input.LA(1);
+
+ if ( (LA13_0==25) ) {
+ alt13=1;
+ }
+ switch (alt13) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1084:2: rule__PortRule__MultiplicityAssignment_4
+ {
+ pushFollow(FOLLOW_rule__PortRule__MultiplicityAssignment_4_in_rule__PortRule__Group__4__Impl2310);
+ rule__PortRule__MultiplicityAssignment_4();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getPortRuleAccess().getMultiplicityAssignment_4());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group__4__Impl"
+
+
+ // $ANTLR start "rule__PortRule__Group__5"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1094:1: rule__PortRule__Group__5 : rule__PortRule__Group__5__Impl rule__PortRule__Group__6 ;
+ public final void rule__PortRule__Group__5() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1098:1: ( rule__PortRule__Group__5__Impl rule__PortRule__Group__6 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1099:2: rule__PortRule__Group__5__Impl rule__PortRule__Group__6
+ {
+ pushFollow(FOLLOW_rule__PortRule__Group__5__Impl_in_rule__PortRule__Group__52341);
+ rule__PortRule__Group__5__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__PortRule__Group__6_in_rule__PortRule__Group__52344);
+ rule__PortRule__Group__6();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group__5"
+
+
+ // $ANTLR start "rule__PortRule__Group__5__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1106:1: rule__PortRule__Group__5__Impl : ( ( rule__PortRule__ModifiersAssignment_5 )? ) ;
+ public final void rule__PortRule__Group__5__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1110:1: ( ( ( rule__PortRule__ModifiersAssignment_5 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1111:1: ( ( rule__PortRule__ModifiersAssignment_5 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1111:1: ( ( rule__PortRule__ModifiersAssignment_5 )? )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1112:1: ( rule__PortRule__ModifiersAssignment_5 )?
+ {
+ before(grammarAccess.getPortRuleAccess().getModifiersAssignment_5());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1113:1: ( rule__PortRule__ModifiersAssignment_5 )?
+ int alt14=2;
+ int LA14_0 = input.LA(1);
+
+ if ( (LA14_0==28) ) {
+ alt14=1;
+ }
+ switch (alt14) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1113:2: rule__PortRule__ModifiersAssignment_5
+ {
+ pushFollow(FOLLOW_rule__PortRule__ModifiersAssignment_5_in_rule__PortRule__Group__5__Impl2371);
+ rule__PortRule__ModifiersAssignment_5();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getPortRuleAccess().getModifiersAssignment_5());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group__5__Impl"
+
+
+ // $ANTLR start "rule__PortRule__Group__6"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1123:1: rule__PortRule__Group__6 : rule__PortRule__Group__6__Impl ;
+ public final void rule__PortRule__Group__6() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1127:1: ( rule__PortRule__Group__6__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1128:2: rule__PortRule__Group__6__Impl
+ {
+ pushFollow(FOLLOW_rule__PortRule__Group__6__Impl_in_rule__PortRule__Group__62402);
+ rule__PortRule__Group__6__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group__6"
+
+
+ // $ANTLR start "rule__PortRule__Group__6__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1134:1: rule__PortRule__Group__6__Impl : ( ( rule__PortRule__DefaultAssignment_6 )? ) ;
+ public final void rule__PortRule__Group__6__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1138:1: ( ( ( rule__PortRule__DefaultAssignment_6 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1139:1: ( ( rule__PortRule__DefaultAssignment_6 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1139:1: ( ( rule__PortRule__DefaultAssignment_6 )? )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1140:1: ( rule__PortRule__DefaultAssignment_6 )?
+ {
+ before(grammarAccess.getPortRuleAccess().getDefaultAssignment_6());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1141:1: ( rule__PortRule__DefaultAssignment_6 )?
+ int alt15=2;
+ int LA15_0 = input.LA(1);
+
+ if ( (LA15_0==33) ) {
+ alt15=1;
+ }
+ switch (alt15) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1141:2: rule__PortRule__DefaultAssignment_6
+ {
+ pushFollow(FOLLOW_rule__PortRule__DefaultAssignment_6_in_rule__PortRule__Group__6__Impl2429);
+ rule__PortRule__DefaultAssignment_6();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getPortRuleAccess().getDefaultAssignment_6());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group__6__Impl"
+
+
+ // $ANTLR start "rule__PortRule__Group_3__0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1165:1: rule__PortRule__Group_3__0 : rule__PortRule__Group_3__0__Impl rule__PortRule__Group_3__1 ;
+ public final void rule__PortRule__Group_3__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1169:1: ( rule__PortRule__Group_3__0__Impl rule__PortRule__Group_3__1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1170:2: rule__PortRule__Group_3__0__Impl rule__PortRule__Group_3__1
+ {
+ pushFollow(FOLLOW_rule__PortRule__Group_3__0__Impl_in_rule__PortRule__Group_3__02474);
+ rule__PortRule__Group_3__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__PortRule__Group_3__1_in_rule__PortRule__Group_3__02477);
+ rule__PortRule__Group_3__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group_3__0"
+
+
+ // $ANTLR start "rule__PortRule__Group_3__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1177:1: rule__PortRule__Group_3__0__Impl : ( ':' ) ;
+ public final void rule__PortRule__Group_3__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1181:1: ( ( ':' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1182:1: ( ':' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1182:1: ( ':' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1183:1: ':'
+ {
+ before(grammarAccess.getPortRuleAccess().getColonKeyword_3_0());
+ match(input,23,FOLLOW_23_in_rule__PortRule__Group_3__0__Impl2505);
+ after(grammarAccess.getPortRuleAccess().getColonKeyword_3_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group_3__0__Impl"
+
+
+ // $ANTLR start "rule__PortRule__Group_3__1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1196:1: rule__PortRule__Group_3__1 : rule__PortRule__Group_3__1__Impl rule__PortRule__Group_3__2 ;
+ public final void rule__PortRule__Group_3__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1200:1: ( rule__PortRule__Group_3__1__Impl rule__PortRule__Group_3__2 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1201:2: rule__PortRule__Group_3__1__Impl rule__PortRule__Group_3__2
+ {
+ pushFollow(FOLLOW_rule__PortRule__Group_3__1__Impl_in_rule__PortRule__Group_3__12536);
+ rule__PortRule__Group_3__1__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__PortRule__Group_3__2_in_rule__PortRule__Group_3__12539);
+ rule__PortRule__Group_3__2();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group_3__1"
+
+
+ // $ANTLR start "rule__PortRule__Group_3__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1208:1: rule__PortRule__Group_3__1__Impl : ( ( rule__PortRule__ConjugatedAssignment_3_1 )? ) ;
+ public final void rule__PortRule__Group_3__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1212:1: ( ( ( rule__PortRule__ConjugatedAssignment_3_1 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1213:1: ( ( rule__PortRule__ConjugatedAssignment_3_1 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1213:1: ( ( rule__PortRule__ConjugatedAssignment_3_1 )? )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1214:1: ( rule__PortRule__ConjugatedAssignment_3_1 )?
+ {
+ before(grammarAccess.getPortRuleAccess().getConjugatedAssignment_3_1());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1215:1: ( rule__PortRule__ConjugatedAssignment_3_1 )?
+ int alt16=2;
+ int LA16_0 = input.LA(1);
+
+ if ( (LA16_0==16) ) {
+ alt16=1;
+ }
+ switch (alt16) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1215:2: rule__PortRule__ConjugatedAssignment_3_1
+ {
+ pushFollow(FOLLOW_rule__PortRule__ConjugatedAssignment_3_1_in_rule__PortRule__Group_3__1__Impl2566);
+ rule__PortRule__ConjugatedAssignment_3_1();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getPortRuleAccess().getConjugatedAssignment_3_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group_3__1__Impl"
+
+
+ // $ANTLR start "rule__PortRule__Group_3__2"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1225:1: rule__PortRule__Group_3__2 : rule__PortRule__Group_3__2__Impl ;
+ public final void rule__PortRule__Group_3__2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1229:1: ( rule__PortRule__Group_3__2__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1230:2: rule__PortRule__Group_3__2__Impl
+ {
+ pushFollow(FOLLOW_rule__PortRule__Group_3__2__Impl_in_rule__PortRule__Group_3__22597);
+ rule__PortRule__Group_3__2__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group_3__2"
+
+
+ // $ANTLR start "rule__PortRule__Group_3__2__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1236:1: rule__PortRule__Group_3__2__Impl : ( ( rule__PortRule__Alternatives_3_2 ) ) ;
+ public final void rule__PortRule__Group_3__2__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1240:1: ( ( ( rule__PortRule__Alternatives_3_2 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1241:1: ( ( rule__PortRule__Alternatives_3_2 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1241:1: ( ( rule__PortRule__Alternatives_3_2 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1242:1: ( rule__PortRule__Alternatives_3_2 )
+ {
+ before(grammarAccess.getPortRuleAccess().getAlternatives_3_2());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1243:1: ( rule__PortRule__Alternatives_3_2 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1243:2: rule__PortRule__Alternatives_3_2
+ {
+ pushFollow(FOLLOW_rule__PortRule__Alternatives_3_2_in_rule__PortRule__Group_3__2__Impl2624);
+ rule__PortRule__Alternatives_3_2();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getPortRuleAccess().getAlternatives_3_2());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__Group_3__2__Impl"
+
+
+ // $ANTLR start "rule__TypeRule__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1259:1: rule__TypeRule__Group__0 : rule__TypeRule__Group__0__Impl rule__TypeRule__Group__1 ;
+ public final void rule__TypeRule__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1263:1: ( rule__TypeRule__Group__0__Impl rule__TypeRule__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1264:2: rule__TypeRule__Group__0__Impl rule__TypeRule__Group__1
+ {
+ pushFollow(FOLLOW_rule__TypeRule__Group__0__Impl_in_rule__TypeRule__Group__02660);
+ rule__TypeRule__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__TypeRule__Group__1_in_rule__TypeRule__Group__02663);
+ rule__TypeRule__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__TypeRule__Group__0"
+
+
+ // $ANTLR start "rule__TypeRule__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1271:1: rule__TypeRule__Group__0__Impl : ( ( rule__TypeRule__PathAssignment_0 )? ) ;
+ public final void rule__TypeRule__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1275:1: ( ( ( rule__TypeRule__PathAssignment_0 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1276:1: ( ( rule__TypeRule__PathAssignment_0 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1276:1: ( ( rule__TypeRule__PathAssignment_0 )? )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1277:1: ( rule__TypeRule__PathAssignment_0 )?
+ {
+ before(grammarAccess.getTypeRuleAccess().getPathAssignment_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1278:1: ( rule__TypeRule__PathAssignment_0 )?
+ int alt17=2;
+ int LA17_0 = input.LA(1);
+
+ if ( (LA17_0==RULE_ID) ) {
+ int LA17_1 = input.LA(2);
+
+ if ( (LA17_1==24) ) {
+ alt17=1;
+ }
+ }
+ switch (alt17) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1278:2: rule__TypeRule__PathAssignment_0
+ {
+ pushFollow(FOLLOW_rule__TypeRule__PathAssignment_0_in_rule__TypeRule__Group__0__Impl2690);
+ rule__TypeRule__PathAssignment_0();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getTypeRuleAccess().getPathAssignment_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__TypeRule__Group__0__Impl"
+
+
+ // $ANTLR start "rule__TypeRule__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1288:1: rule__TypeRule__Group__1 : rule__TypeRule__Group__1__Impl ;
+ public final void rule__TypeRule__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1292:1: ( rule__TypeRule__Group__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1293:2: rule__TypeRule__Group__1__Impl
+ {
+ pushFollow(FOLLOW_rule__TypeRule__Group__1__Impl_in_rule__TypeRule__Group__12721);
+ rule__TypeRule__Group__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__TypeRule__Group__1"
+
+
+ // $ANTLR start "rule__TypeRule__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1299:1: rule__TypeRule__Group__1__Impl : ( ( rule__TypeRule__TypeAssignment_1 ) ) ;
+ public final void rule__TypeRule__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1303:1: ( ( ( rule__TypeRule__TypeAssignment_1 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1304:1: ( ( rule__TypeRule__TypeAssignment_1 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1304:1: ( ( rule__TypeRule__TypeAssignment_1 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1305:1: ( rule__TypeRule__TypeAssignment_1 )
+ {
+ before(grammarAccess.getTypeRuleAccess().getTypeAssignment_1());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1306:1: ( rule__TypeRule__TypeAssignment_1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1306:2: rule__TypeRule__TypeAssignment_1
+ {
+ pushFollow(FOLLOW_rule__TypeRule__TypeAssignment_1_in_rule__TypeRule__Group__1__Impl2748);
+ rule__TypeRule__TypeAssignment_1();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getTypeRuleAccess().getTypeAssignment_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__TypeRule__Group__1__Impl"
+
+
+ // $ANTLR start "rule__QualifiedName__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1320:1: rule__QualifiedName__Group__0 : rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 ;
+ public final void rule__QualifiedName__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1324:1: ( rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1325:2: rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1
+ {
+ pushFollow(FOLLOW_rule__QualifiedName__Group__0__Impl_in_rule__QualifiedName__Group__02782);
+ rule__QualifiedName__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__QualifiedName__Group__1_in_rule__QualifiedName__Group__02785);
+ rule__QualifiedName__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__QualifiedName__Group__0"
+
+
+ // $ANTLR start "rule__QualifiedName__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1332:1: rule__QualifiedName__Group__0__Impl : ( ( rule__QualifiedName__PathAssignment_0 ) ) ;
+ public final void rule__QualifiedName__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1336:1: ( ( ( rule__QualifiedName__PathAssignment_0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1337:1: ( ( rule__QualifiedName__PathAssignment_0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1337:1: ( ( rule__QualifiedName__PathAssignment_0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1338:1: ( rule__QualifiedName__PathAssignment_0 )
+ {
+ before(grammarAccess.getQualifiedNameAccess().getPathAssignment_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1339:1: ( rule__QualifiedName__PathAssignment_0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1339:2: rule__QualifiedName__PathAssignment_0
+ {
+ pushFollow(FOLLOW_rule__QualifiedName__PathAssignment_0_in_rule__QualifiedName__Group__0__Impl2812);
+ rule__QualifiedName__PathAssignment_0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getQualifiedNameAccess().getPathAssignment_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__QualifiedName__Group__0__Impl"
+
+
+ // $ANTLR start "rule__QualifiedName__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1349:1: rule__QualifiedName__Group__1 : rule__QualifiedName__Group__1__Impl rule__QualifiedName__Group__2 ;
+ public final void rule__QualifiedName__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1353:1: ( rule__QualifiedName__Group__1__Impl rule__QualifiedName__Group__2 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1354:2: rule__QualifiedName__Group__1__Impl rule__QualifiedName__Group__2
+ {
+ pushFollow(FOLLOW_rule__QualifiedName__Group__1__Impl_in_rule__QualifiedName__Group__12842);
+ rule__QualifiedName__Group__1__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__QualifiedName__Group__2_in_rule__QualifiedName__Group__12845);
+ rule__QualifiedName__Group__2();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__QualifiedName__Group__1"
+
+
+ // $ANTLR start "rule__QualifiedName__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1361:1: rule__QualifiedName__Group__1__Impl : ( '::' ) ;
+ public final void rule__QualifiedName__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1365:1: ( ( '::' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1366:1: ( '::' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1366:1: ( '::' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1367:1: '::'
+ {
+ before(grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1());
+ match(input,24,FOLLOW_24_in_rule__QualifiedName__Group__1__Impl2873);
+ after(grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__QualifiedName__Group__1__Impl"
+
+
+ // $ANTLR start "rule__QualifiedName__Group__2"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1380:1: rule__QualifiedName__Group__2 : rule__QualifiedName__Group__2__Impl ;
+ public final void rule__QualifiedName__Group__2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1384:1: ( rule__QualifiedName__Group__2__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1385:2: rule__QualifiedName__Group__2__Impl
+ {
+ pushFollow(FOLLOW_rule__QualifiedName__Group__2__Impl_in_rule__QualifiedName__Group__22904);
+ rule__QualifiedName__Group__2__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__QualifiedName__Group__2"
+
+
+ // $ANTLR start "rule__QualifiedName__Group__2__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1391:1: rule__QualifiedName__Group__2__Impl : ( ( rule__QualifiedName__RemainingAssignment_2 )? ) ;
+ public final void rule__QualifiedName__Group__2__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1395:1: ( ( ( rule__QualifiedName__RemainingAssignment_2 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1396:1: ( ( rule__QualifiedName__RemainingAssignment_2 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1396:1: ( ( rule__QualifiedName__RemainingAssignment_2 )? )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1397:1: ( rule__QualifiedName__RemainingAssignment_2 )?
+ {
+ before(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1398:1: ( rule__QualifiedName__RemainingAssignment_2 )?
+ int alt18=2;
+ int LA18_0 = input.LA(1);
+
+ if ( (LA18_0==RULE_ID) ) {
+ int LA18_1 = input.LA(2);
+
+ if ( (LA18_1==24) ) {
+ alt18=1;
+ }
+ }
+ switch (alt18) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1398:2: rule__QualifiedName__RemainingAssignment_2
+ {
+ pushFollow(FOLLOW_rule__QualifiedName__RemainingAssignment_2_in_rule__QualifiedName__Group__2__Impl2931);
+ rule__QualifiedName__RemainingAssignment_2();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__QualifiedName__Group__2__Impl"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1414:1: rule__MultiplicityRule__Group__0 : rule__MultiplicityRule__Group__0__Impl rule__MultiplicityRule__Group__1 ;
+ public final void rule__MultiplicityRule__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1418:1: ( rule__MultiplicityRule__Group__0__Impl rule__MultiplicityRule__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1419:2: rule__MultiplicityRule__Group__0__Impl rule__MultiplicityRule__Group__1
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group__0__Impl_in_rule__MultiplicityRule__Group__02968);
+ rule__MultiplicityRule__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group__1_in_rule__MultiplicityRule__Group__02971);
+ rule__MultiplicityRule__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group__0"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1426:1: rule__MultiplicityRule__Group__0__Impl : ( '[' ) ;
+ public final void rule__MultiplicityRule__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1430:1: ( ( '[' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1431:1: ( '[' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1431:1: ( '[' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1432:1: '['
+ {
+ before(grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0());
+ match(input,25,FOLLOW_25_in_rule__MultiplicityRule__Group__0__Impl2999);
+ after(grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group__0__Impl"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1445:1: rule__MultiplicityRule__Group__1 : rule__MultiplicityRule__Group__1__Impl rule__MultiplicityRule__Group__2 ;
+ public final void rule__MultiplicityRule__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1449:1: ( rule__MultiplicityRule__Group__1__Impl rule__MultiplicityRule__Group__2 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1450:2: rule__MultiplicityRule__Group__1__Impl rule__MultiplicityRule__Group__2
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group__1__Impl_in_rule__MultiplicityRule__Group__13030);
+ rule__MultiplicityRule__Group__1__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group__2_in_rule__MultiplicityRule__Group__13033);
+ rule__MultiplicityRule__Group__2();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group__1"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1457:1: rule__MultiplicityRule__Group__1__Impl : ( ( rule__MultiplicityRule__Group_1__0 )? ) ;
+ public final void rule__MultiplicityRule__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1461:1: ( ( ( rule__MultiplicityRule__Group_1__0 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1462:1: ( ( rule__MultiplicityRule__Group_1__0 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1462:1: ( ( rule__MultiplicityRule__Group_1__0 )? )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1463:1: ( rule__MultiplicityRule__Group_1__0 )?
+ {
+ before(grammarAccess.getMultiplicityRuleAccess().getGroup_1());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1464:1: ( rule__MultiplicityRule__Group_1__0 )?
+ int alt19=2;
+ switch ( input.LA(1) ) {
+ case RULE_INT:
+ {
+ int LA19_1 = input.LA(2);
+
+ if ( (LA19_1==27) ) {
+ alt19=1;
+ }
+ }
+ break;
+ case 12:
+ {
+ int LA19_2 = input.LA(2);
+
+ if ( (LA19_2==27) ) {
+ alt19=1;
+ }
+ }
+ break;
+ case RULE_STRING:
+ {
+ int LA19_3 = input.LA(2);
+
+ if ( (LA19_3==27) ) {
+ alt19=1;
+ }
+ }
+ break;
+ }
+
+ switch (alt19) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1464:2: rule__MultiplicityRule__Group_1__0
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group_1__0_in_rule__MultiplicityRule__Group__1__Impl3060);
+ rule__MultiplicityRule__Group_1__0();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getMultiplicityRuleAccess().getGroup_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group__1__Impl"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group__2"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1474:1: rule__MultiplicityRule__Group__2 : rule__MultiplicityRule__Group__2__Impl rule__MultiplicityRule__Group__3 ;
+ public final void rule__MultiplicityRule__Group__2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1478:1: ( rule__MultiplicityRule__Group__2__Impl rule__MultiplicityRule__Group__3 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1479:2: rule__MultiplicityRule__Group__2__Impl rule__MultiplicityRule__Group__3
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group__2__Impl_in_rule__MultiplicityRule__Group__23091);
+ rule__MultiplicityRule__Group__2__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group__3_in_rule__MultiplicityRule__Group__23094);
+ rule__MultiplicityRule__Group__3();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group__2"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group__2__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1486:1: rule__MultiplicityRule__Group__2__Impl : ( ( rule__MultiplicityRule__BoundsAssignment_2 ) ) ;
+ public final void rule__MultiplicityRule__Group__2__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1490:1: ( ( ( rule__MultiplicityRule__BoundsAssignment_2 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1491:1: ( ( rule__MultiplicityRule__BoundsAssignment_2 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1491:1: ( ( rule__MultiplicityRule__BoundsAssignment_2 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1492:1: ( rule__MultiplicityRule__BoundsAssignment_2 )
+ {
+ before(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1493:1: ( rule__MultiplicityRule__BoundsAssignment_2 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1493:2: rule__MultiplicityRule__BoundsAssignment_2
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__BoundsAssignment_2_in_rule__MultiplicityRule__Group__2__Impl3121);
+ rule__MultiplicityRule__BoundsAssignment_2();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group__2__Impl"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group__3"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1503:1: rule__MultiplicityRule__Group__3 : rule__MultiplicityRule__Group__3__Impl ;
+ public final void rule__MultiplicityRule__Group__3() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1507:1: ( rule__MultiplicityRule__Group__3__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1508:2: rule__MultiplicityRule__Group__3__Impl
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group__3__Impl_in_rule__MultiplicityRule__Group__33151);
+ rule__MultiplicityRule__Group__3__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group__3"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group__3__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1514:1: rule__MultiplicityRule__Group__3__Impl : ( ']' ) ;
+ public final void rule__MultiplicityRule__Group__3__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1518:1: ( ( ']' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1519:1: ( ']' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1519:1: ( ']' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1520:1: ']'
+ {
+ before(grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3());
+ match(input,26,FOLLOW_26_in_rule__MultiplicityRule__Group__3__Impl3179);
+ after(grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group__3__Impl"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group_1__0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1541:1: rule__MultiplicityRule__Group_1__0 : rule__MultiplicityRule__Group_1__0__Impl rule__MultiplicityRule__Group_1__1 ;
+ public final void rule__MultiplicityRule__Group_1__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1545:1: ( rule__MultiplicityRule__Group_1__0__Impl rule__MultiplicityRule__Group_1__1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1546:2: rule__MultiplicityRule__Group_1__0__Impl rule__MultiplicityRule__Group_1__1
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group_1__0__Impl_in_rule__MultiplicityRule__Group_1__03218);
+ rule__MultiplicityRule__Group_1__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group_1__1_in_rule__MultiplicityRule__Group_1__03221);
+ rule__MultiplicityRule__Group_1__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group_1__0"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group_1__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1553:1: rule__MultiplicityRule__Group_1__0__Impl : ( ( rule__MultiplicityRule__BoundsAssignment_1_0 ) ) ;
+ public final void rule__MultiplicityRule__Group_1__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1557:1: ( ( ( rule__MultiplicityRule__BoundsAssignment_1_0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1558:1: ( ( rule__MultiplicityRule__BoundsAssignment_1_0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1558:1: ( ( rule__MultiplicityRule__BoundsAssignment_1_0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1559:1: ( rule__MultiplicityRule__BoundsAssignment_1_0 )
+ {
+ before(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1560:1: ( rule__MultiplicityRule__BoundsAssignment_1_0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1560:2: rule__MultiplicityRule__BoundsAssignment_1_0
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__BoundsAssignment_1_0_in_rule__MultiplicityRule__Group_1__0__Impl3248);
+ rule__MultiplicityRule__BoundsAssignment_1_0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group_1__0__Impl"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group_1__1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1570:1: rule__MultiplicityRule__Group_1__1 : rule__MultiplicityRule__Group_1__1__Impl ;
+ public final void rule__MultiplicityRule__Group_1__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1574:1: ( rule__MultiplicityRule__Group_1__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1575:2: rule__MultiplicityRule__Group_1__1__Impl
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group_1__1__Impl_in_rule__MultiplicityRule__Group_1__13278);
+ rule__MultiplicityRule__Group_1__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group_1__1"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group_1__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1581:1: rule__MultiplicityRule__Group_1__1__Impl : ( '..' ) ;
+ public final void rule__MultiplicityRule__Group_1__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1585:1: ( ( '..' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1586:1: ( '..' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1586:1: ( '..' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1587:1: '..'
+ {
+ before(grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_1_1());
+ match(input,27,FOLLOW_27_in_rule__MultiplicityRule__Group_1__1__Impl3306);
+ after(grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_1_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group_1__1__Impl"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1604:1: rule__ModifiersRule__Group__0 : rule__ModifiersRule__Group__0__Impl rule__ModifiersRule__Group__1 ;
+ public final void rule__ModifiersRule__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1608:1: ( rule__ModifiersRule__Group__0__Impl rule__ModifiersRule__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1609:2: rule__ModifiersRule__Group__0__Impl rule__ModifiersRule__Group__1
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group__0__Impl_in_rule__ModifiersRule__Group__03341);
+ rule__ModifiersRule__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__ModifiersRule__Group__1_in_rule__ModifiersRule__Group__03344);
+ rule__ModifiersRule__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group__0"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1616:1: rule__ModifiersRule__Group__0__Impl : ( () ) ;
+ public final void rule__ModifiersRule__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1620:1: ( ( () ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1621:1: ( () )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1621:1: ( () )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1622:1: ()
+ {
+ before(grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1623:1: ()
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1625:1:
+ {
+ }
+
+ after(grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0());
+
+ }
+
+
+ }
+
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group__0__Impl"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1635:1: rule__ModifiersRule__Group__1 : rule__ModifiersRule__Group__1__Impl rule__ModifiersRule__Group__2 ;
+ public final void rule__ModifiersRule__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1639:1: ( rule__ModifiersRule__Group__1__Impl rule__ModifiersRule__Group__2 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1640:2: rule__ModifiersRule__Group__1__Impl rule__ModifiersRule__Group__2
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group__1__Impl_in_rule__ModifiersRule__Group__13402);
+ rule__ModifiersRule__Group__1__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__ModifiersRule__Group__2_in_rule__ModifiersRule__Group__13405);
+ rule__ModifiersRule__Group__2();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group__1"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1647:1: rule__ModifiersRule__Group__1__Impl : ( '{' ) ;
+ public final void rule__ModifiersRule__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1651:1: ( ( '{' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1652:1: ( '{' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1652:1: ( '{' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1653:1: '{'
+ {
+ before(grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1());
+ match(input,28,FOLLOW_28_in_rule__ModifiersRule__Group__1__Impl3433);
+ after(grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group__1__Impl"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group__2"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1666:1: rule__ModifiersRule__Group__2 : rule__ModifiersRule__Group__2__Impl rule__ModifiersRule__Group__3 ;
+ public final void rule__ModifiersRule__Group__2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1670:1: ( rule__ModifiersRule__Group__2__Impl rule__ModifiersRule__Group__3 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1671:2: rule__ModifiersRule__Group__2__Impl rule__ModifiersRule__Group__3
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group__2__Impl_in_rule__ModifiersRule__Group__23464);
+ rule__ModifiersRule__Group__2__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__ModifiersRule__Group__3_in_rule__ModifiersRule__Group__23467);
+ rule__ModifiersRule__Group__3();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group__2"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group__2__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1678:1: rule__ModifiersRule__Group__2__Impl : ( ( rule__ModifiersRule__Group_2__0 )? ) ;
+ public final void rule__ModifiersRule__Group__2__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1682:1: ( ( ( rule__ModifiersRule__Group_2__0 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1683:1: ( ( rule__ModifiersRule__Group_2__0 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1683:1: ( ( rule__ModifiersRule__Group_2__0 )? )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1684:1: ( rule__ModifiersRule__Group_2__0 )?
+ {
+ before(grammarAccess.getModifiersRuleAccess().getGroup_2());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1685:1: ( rule__ModifiersRule__Group_2__0 )?
+ int alt20=2;
+ int LA20_0 = input.LA(1);
+
+ if ( ((LA20_0>=17 && LA20_0<=20)||(LA20_0>=31 && LA20_0<=32)) ) {
+ alt20=1;
+ }
+ switch (alt20) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1685:2: rule__ModifiersRule__Group_2__0
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group_2__0_in_rule__ModifiersRule__Group__2__Impl3494);
+ rule__ModifiersRule__Group_2__0();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getModifiersRuleAccess().getGroup_2());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group__2__Impl"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group__3"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1695:1: rule__ModifiersRule__Group__3 : rule__ModifiersRule__Group__3__Impl ;
+ public final void rule__ModifiersRule__Group__3() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1699:1: ( rule__ModifiersRule__Group__3__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1700:2: rule__ModifiersRule__Group__3__Impl
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group__3__Impl_in_rule__ModifiersRule__Group__33525);
+ rule__ModifiersRule__Group__3__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group__3"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group__3__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1706:1: rule__ModifiersRule__Group__3__Impl : ( '}' ) ;
+ public final void rule__ModifiersRule__Group__3__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1710:1: ( ( '}' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1711:1: ( '}' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1711:1: ( '}' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1712:1: '}'
+ {
+ before(grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3());
+ match(input,29,FOLLOW_29_in_rule__ModifiersRule__Group__3__Impl3553);
+ after(grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group__3__Impl"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group_2__0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1733:1: rule__ModifiersRule__Group_2__0 : rule__ModifiersRule__Group_2__0__Impl rule__ModifiersRule__Group_2__1 ;
+ public final void rule__ModifiersRule__Group_2__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1737:1: ( rule__ModifiersRule__Group_2__0__Impl rule__ModifiersRule__Group_2__1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1738:2: rule__ModifiersRule__Group_2__0__Impl rule__ModifiersRule__Group_2__1
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group_2__0__Impl_in_rule__ModifiersRule__Group_2__03592);
+ rule__ModifiersRule__Group_2__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__ModifiersRule__Group_2__1_in_rule__ModifiersRule__Group_2__03595);
+ rule__ModifiersRule__Group_2__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group_2__0"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group_2__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1745:1: rule__ModifiersRule__Group_2__0__Impl : ( ( rule__ModifiersRule__ValuesAssignment_2_0 ) ) ;
+ public final void rule__ModifiersRule__Group_2__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1749:1: ( ( ( rule__ModifiersRule__ValuesAssignment_2_0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1750:1: ( ( rule__ModifiersRule__ValuesAssignment_2_0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1750:1: ( ( rule__ModifiersRule__ValuesAssignment_2_0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1751:1: ( rule__ModifiersRule__ValuesAssignment_2_0 )
+ {
+ before(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1752:1: ( rule__ModifiersRule__ValuesAssignment_2_0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1752:2: rule__ModifiersRule__ValuesAssignment_2_0
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__ValuesAssignment_2_0_in_rule__ModifiersRule__Group_2__0__Impl3622);
+ rule__ModifiersRule__ValuesAssignment_2_0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group_2__0__Impl"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group_2__1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1762:1: rule__ModifiersRule__Group_2__1 : rule__ModifiersRule__Group_2__1__Impl ;
+ public final void rule__ModifiersRule__Group_2__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1766:1: ( rule__ModifiersRule__Group_2__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1767:2: rule__ModifiersRule__Group_2__1__Impl
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group_2__1__Impl_in_rule__ModifiersRule__Group_2__13652);
+ rule__ModifiersRule__Group_2__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group_2__1"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group_2__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1773:1: rule__ModifiersRule__Group_2__1__Impl : ( ( rule__ModifiersRule__Group_2_1__0 )* ) ;
+ public final void rule__ModifiersRule__Group_2__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1777:1: ( ( ( rule__ModifiersRule__Group_2_1__0 )* ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1778:1: ( ( rule__ModifiersRule__Group_2_1__0 )* )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1778:1: ( ( rule__ModifiersRule__Group_2_1__0 )* )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1779:1: ( rule__ModifiersRule__Group_2_1__0 )*
+ {
+ before(grammarAccess.getModifiersRuleAccess().getGroup_2_1());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1780:1: ( rule__ModifiersRule__Group_2_1__0 )*
+ loop21:
+ do {
+ int alt21=2;
+ int LA21_0 = input.LA(1);
+
+ if ( (LA21_0==30) ) {
+ alt21=1;
+ }
+
+
+ switch (alt21) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1780:2: rule__ModifiersRule__Group_2_1__0
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group_2_1__0_in_rule__ModifiersRule__Group_2__1__Impl3679);
+ rule__ModifiersRule__Group_2_1__0();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ default :
+ break loop21;
+ }
+ } while (true);
+
+ after(grammarAccess.getModifiersRuleAccess().getGroup_2_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group_2__1__Impl"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group_2_1__0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1794:1: rule__ModifiersRule__Group_2_1__0 : rule__ModifiersRule__Group_2_1__0__Impl rule__ModifiersRule__Group_2_1__1 ;
+ public final void rule__ModifiersRule__Group_2_1__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1798:1: ( rule__ModifiersRule__Group_2_1__0__Impl rule__ModifiersRule__Group_2_1__1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1799:2: rule__ModifiersRule__Group_2_1__0__Impl rule__ModifiersRule__Group_2_1__1
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group_2_1__0__Impl_in_rule__ModifiersRule__Group_2_1__03714);
+ rule__ModifiersRule__Group_2_1__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__ModifiersRule__Group_2_1__1_in_rule__ModifiersRule__Group_2_1__03717);
+ rule__ModifiersRule__Group_2_1__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group_2_1__0"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group_2_1__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1806:1: rule__ModifiersRule__Group_2_1__0__Impl : ( ',' ) ;
+ public final void rule__ModifiersRule__Group_2_1__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1810:1: ( ( ',' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1811:1: ( ',' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1811:1: ( ',' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1812:1: ','
+ {
+ before(grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0());
+ match(input,30,FOLLOW_30_in_rule__ModifiersRule__Group_2_1__0__Impl3745);
+ after(grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group_2_1__0__Impl"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group_2_1__1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1825:1: rule__ModifiersRule__Group_2_1__1 : rule__ModifiersRule__Group_2_1__1__Impl ;
+ public final void rule__ModifiersRule__Group_2_1__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1829:1: ( rule__ModifiersRule__Group_2_1__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1830:2: rule__ModifiersRule__Group_2_1__1__Impl
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group_2_1__1__Impl_in_rule__ModifiersRule__Group_2_1__13776);
+ rule__ModifiersRule__Group_2_1__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group_2_1__1"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group_2_1__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1836:1: rule__ModifiersRule__Group_2_1__1__Impl : ( ( rule__ModifiersRule__ValuesAssignment_2_1_1 ) ) ;
+ public final void rule__ModifiersRule__Group_2_1__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1840:1: ( ( ( rule__ModifiersRule__ValuesAssignment_2_1_1 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1841:1: ( ( rule__ModifiersRule__ValuesAssignment_2_1_1 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1841:1: ( ( rule__ModifiersRule__ValuesAssignment_2_1_1 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1842:1: ( rule__ModifiersRule__ValuesAssignment_2_1_1 )
+ {
+ before(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1843:1: ( rule__ModifiersRule__ValuesAssignment_2_1_1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1843:2: rule__ModifiersRule__ValuesAssignment_2_1_1
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__ValuesAssignment_2_1_1_in_rule__ModifiersRule__Group_2_1__1__Impl3803);
+ rule__ModifiersRule__ValuesAssignment_2_1_1();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group_2_1__1__Impl"
+
+
+ // $ANTLR start "rule__RedefinesRule__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1857:1: rule__RedefinesRule__Group__0 : rule__RedefinesRule__Group__0__Impl rule__RedefinesRule__Group__1 ;
+ public final void rule__RedefinesRule__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1861:1: ( rule__RedefinesRule__Group__0__Impl rule__RedefinesRule__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1862:2: rule__RedefinesRule__Group__0__Impl rule__RedefinesRule__Group__1
+ {
+ pushFollow(FOLLOW_rule__RedefinesRule__Group__0__Impl_in_rule__RedefinesRule__Group__03837);
+ rule__RedefinesRule__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__RedefinesRule__Group__1_in_rule__RedefinesRule__Group__03840);
+ rule__RedefinesRule__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RedefinesRule__Group__0"
+
+
+ // $ANTLR start "rule__RedefinesRule__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1869:1: rule__RedefinesRule__Group__0__Impl : ( 'redefines' ) ;
+ public final void rule__RedefinesRule__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1873:1: ( ( 'redefines' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1874:1: ( 'redefines' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1874:1: ( 'redefines' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1875:1: 'redefines'
+ {
+ before(grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0());
+ match(input,31,FOLLOW_31_in_rule__RedefinesRule__Group__0__Impl3868);
+ after(grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RedefinesRule__Group__0__Impl"
+
+
+ // $ANTLR start "rule__RedefinesRule__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1888:1: rule__RedefinesRule__Group__1 : rule__RedefinesRule__Group__1__Impl ;
+ public final void rule__RedefinesRule__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1892:1: ( rule__RedefinesRule__Group__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1893:2: rule__RedefinesRule__Group__1__Impl
+ {
+ pushFollow(FOLLOW_rule__RedefinesRule__Group__1__Impl_in_rule__RedefinesRule__Group__13899);
+ rule__RedefinesRule__Group__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RedefinesRule__Group__1"
+
+
+ // $ANTLR start "rule__RedefinesRule__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1899:1: rule__RedefinesRule__Group__1__Impl : ( ( rule__RedefinesRule__PortAssignment_1 ) ) ;
+ public final void rule__RedefinesRule__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1903:1: ( ( ( rule__RedefinesRule__PortAssignment_1 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1904:1: ( ( rule__RedefinesRule__PortAssignment_1 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1904:1: ( ( rule__RedefinesRule__PortAssignment_1 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1905:1: ( rule__RedefinesRule__PortAssignment_1 )
+ {
+ before(grammarAccess.getRedefinesRuleAccess().getPortAssignment_1());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1906:1: ( rule__RedefinesRule__PortAssignment_1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1906:2: rule__RedefinesRule__PortAssignment_1
+ {
+ pushFollow(FOLLOW_rule__RedefinesRule__PortAssignment_1_in_rule__RedefinesRule__Group__1__Impl3926);
+ rule__RedefinesRule__PortAssignment_1();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRedefinesRuleAccess().getPortAssignment_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RedefinesRule__Group__1__Impl"
+
+
+ // $ANTLR start "rule__SubsetsRule__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1920:1: rule__SubsetsRule__Group__0 : rule__SubsetsRule__Group__0__Impl rule__SubsetsRule__Group__1 ;
+ public final void rule__SubsetsRule__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1924:1: ( rule__SubsetsRule__Group__0__Impl rule__SubsetsRule__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1925:2: rule__SubsetsRule__Group__0__Impl rule__SubsetsRule__Group__1
+ {
+ pushFollow(FOLLOW_rule__SubsetsRule__Group__0__Impl_in_rule__SubsetsRule__Group__03960);
+ rule__SubsetsRule__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__SubsetsRule__Group__1_in_rule__SubsetsRule__Group__03963);
+ rule__SubsetsRule__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__SubsetsRule__Group__0"
+
+
+ // $ANTLR start "rule__SubsetsRule__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1932:1: rule__SubsetsRule__Group__0__Impl : ( 'subsets' ) ;
+ public final void rule__SubsetsRule__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1936:1: ( ( 'subsets' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1937:1: ( 'subsets' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1937:1: ( 'subsets' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1938:1: 'subsets'
+ {
+ before(grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0());
+ match(input,32,FOLLOW_32_in_rule__SubsetsRule__Group__0__Impl3991);
+ after(grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__SubsetsRule__Group__0__Impl"
+
+
+ // $ANTLR start "rule__SubsetsRule__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1951:1: rule__SubsetsRule__Group__1 : rule__SubsetsRule__Group__1__Impl ;
+ public final void rule__SubsetsRule__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1955:1: ( rule__SubsetsRule__Group__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1956:2: rule__SubsetsRule__Group__1__Impl
+ {
+ pushFollow(FOLLOW_rule__SubsetsRule__Group__1__Impl_in_rule__SubsetsRule__Group__14022);
+ rule__SubsetsRule__Group__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__SubsetsRule__Group__1"
+
+
+ // $ANTLR start "rule__SubsetsRule__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1962:1: rule__SubsetsRule__Group__1__Impl : ( ( rule__SubsetsRule__PortAssignment_1 ) ) ;
+ public final void rule__SubsetsRule__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1966:1: ( ( ( rule__SubsetsRule__PortAssignment_1 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1967:1: ( ( rule__SubsetsRule__PortAssignment_1 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1967:1: ( ( rule__SubsetsRule__PortAssignment_1 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1968:1: ( rule__SubsetsRule__PortAssignment_1 )
+ {
+ before(grammarAccess.getSubsetsRuleAccess().getPortAssignment_1());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1969:1: ( rule__SubsetsRule__PortAssignment_1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1969:2: rule__SubsetsRule__PortAssignment_1
+ {
+ pushFollow(FOLLOW_rule__SubsetsRule__PortAssignment_1_in_rule__SubsetsRule__Group__1__Impl4049);
+ rule__SubsetsRule__PortAssignment_1();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getSubsetsRuleAccess().getPortAssignment_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__SubsetsRule__Group__1__Impl"
+
+
+ // $ANTLR start "rule__DefaultValueRule__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1983:1: rule__DefaultValueRule__Group__0 : rule__DefaultValueRule__Group__0__Impl rule__DefaultValueRule__Group__1 ;
+ public final void rule__DefaultValueRule__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1987:1: ( rule__DefaultValueRule__Group__0__Impl rule__DefaultValueRule__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1988:2: rule__DefaultValueRule__Group__0__Impl rule__DefaultValueRule__Group__1
+ {
+ pushFollow(FOLLOW_rule__DefaultValueRule__Group__0__Impl_in_rule__DefaultValueRule__Group__04083);
+ rule__DefaultValueRule__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__DefaultValueRule__Group__1_in_rule__DefaultValueRule__Group__04086);
+ rule__DefaultValueRule__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__DefaultValueRule__Group__0"
+
+
+ // $ANTLR start "rule__DefaultValueRule__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1995:1: rule__DefaultValueRule__Group__0__Impl : ( '=' ) ;
+ public final void rule__DefaultValueRule__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:1999:1: ( ( '=' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2000:1: ( '=' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2000:1: ( '=' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2001:1: '='
+ {
+ before(grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0());
+ match(input,33,FOLLOW_33_in_rule__DefaultValueRule__Group__0__Impl4114);
+ after(grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__DefaultValueRule__Group__0__Impl"
+
+
+ // $ANTLR start "rule__DefaultValueRule__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2014:1: rule__DefaultValueRule__Group__1 : rule__DefaultValueRule__Group__1__Impl ;
+ public final void rule__DefaultValueRule__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2018:1: ( rule__DefaultValueRule__Group__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2019:2: rule__DefaultValueRule__Group__1__Impl
+ {
+ pushFollow(FOLLOW_rule__DefaultValueRule__Group__1__Impl_in_rule__DefaultValueRule__Group__14145);
+ rule__DefaultValueRule__Group__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__DefaultValueRule__Group__1"
+
+
+ // $ANTLR start "rule__DefaultValueRule__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2025:1: rule__DefaultValueRule__Group__1__Impl : ( ( rule__DefaultValueRule__DefaultAssignment_1 ) ) ;
+ public final void rule__DefaultValueRule__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2029:1: ( ( ( rule__DefaultValueRule__DefaultAssignment_1 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2030:1: ( ( rule__DefaultValueRule__DefaultAssignment_1 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2030:1: ( ( rule__DefaultValueRule__DefaultAssignment_1 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2031:1: ( rule__DefaultValueRule__DefaultAssignment_1 )
+ {
+ before(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2032:1: ( rule__DefaultValueRule__DefaultAssignment_1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2032:2: rule__DefaultValueRule__DefaultAssignment_1
+ {
+ pushFollow(FOLLOW_rule__DefaultValueRule__DefaultAssignment_1_in_rule__DefaultValueRule__Group__1__Impl4172);
+ rule__DefaultValueRule__DefaultAssignment_1();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__DefaultValueRule__Group__1__Impl"
+
+
+ // $ANTLR start "rule__RealValue__Group_0__0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2046:1: rule__RealValue__Group_0__0 : rule__RealValue__Group_0__0__Impl rule__RealValue__Group_0__1 ;
+ public final void rule__RealValue__Group_0__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2050:1: ( rule__RealValue__Group_0__0__Impl rule__RealValue__Group_0__1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2051:2: rule__RealValue__Group_0__0__Impl rule__RealValue__Group_0__1
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_0__0__Impl_in_rule__RealValue__Group_0__04206);
+ rule__RealValue__Group_0__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__RealValue__Group_0__1_in_rule__RealValue__Group_0__04209);
+ rule__RealValue__Group_0__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_0__0"
+
+
+ // $ANTLR start "rule__RealValue__Group_0__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2058:1: rule__RealValue__Group_0__0__Impl : ( ( rule__RealValue__IntegerAssignment_0_0 ) ) ;
+ public final void rule__RealValue__Group_0__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2062:1: ( ( ( rule__RealValue__IntegerAssignment_0_0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2063:1: ( ( rule__RealValue__IntegerAssignment_0_0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2063:1: ( ( rule__RealValue__IntegerAssignment_0_0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2064:1: ( rule__RealValue__IntegerAssignment_0_0 )
+ {
+ before(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2065:1: ( rule__RealValue__IntegerAssignment_0_0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2065:2: rule__RealValue__IntegerAssignment_0_0
+ {
+ pushFollow(FOLLOW_rule__RealValue__IntegerAssignment_0_0_in_rule__RealValue__Group_0__0__Impl4236);
+ rule__RealValue__IntegerAssignment_0_0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_0__0__Impl"
+
+
+ // $ANTLR start "rule__RealValue__Group_0__1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2075:1: rule__RealValue__Group_0__1 : rule__RealValue__Group_0__1__Impl ;
+ public final void rule__RealValue__Group_0__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2079:1: ( rule__RealValue__Group_0__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2080:2: rule__RealValue__Group_0__1__Impl
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_0__1__Impl_in_rule__RealValue__Group_0__14266);
+ rule__RealValue__Group_0__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_0__1"
+
+
+ // $ANTLR start "rule__RealValue__Group_0__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2086:1: rule__RealValue__Group_0__1__Impl : ( '.' ) ;
+ public final void rule__RealValue__Group_0__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2090:1: ( ( '.' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2091:1: ( '.' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2091:1: ( '.' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2092:1: '.'
+ {
+ before(grammarAccess.getRealValueAccess().getFullStopKeyword_0_1());
+ match(input,34,FOLLOW_34_in_rule__RealValue__Group_0__1__Impl4294);
+ after(grammarAccess.getRealValueAccess().getFullStopKeyword_0_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_0__1__Impl"
+
+
+ // $ANTLR start "rule__RealValue__Group_1__0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2109:1: rule__RealValue__Group_1__0 : rule__RealValue__Group_1__0__Impl rule__RealValue__Group_1__1 ;
+ public final void rule__RealValue__Group_1__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2113:1: ( rule__RealValue__Group_1__0__Impl rule__RealValue__Group_1__1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2114:2: rule__RealValue__Group_1__0__Impl rule__RealValue__Group_1__1
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_1__0__Impl_in_rule__RealValue__Group_1__04329);
+ rule__RealValue__Group_1__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__RealValue__Group_1__1_in_rule__RealValue__Group_1__04332);
+ rule__RealValue__Group_1__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_1__0"
+
+
+ // $ANTLR start "rule__RealValue__Group_1__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2121:1: rule__RealValue__Group_1__0__Impl : ( '.' ) ;
+ public final void rule__RealValue__Group_1__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2125:1: ( ( '.' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2126:1: ( '.' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2126:1: ( '.' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2127:1: '.'
+ {
+ before(grammarAccess.getRealValueAccess().getFullStopKeyword_1_0());
+ match(input,34,FOLLOW_34_in_rule__RealValue__Group_1__0__Impl4360);
+ after(grammarAccess.getRealValueAccess().getFullStopKeyword_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_1__0__Impl"
+
+
+ // $ANTLR start "rule__RealValue__Group_1__1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2140:1: rule__RealValue__Group_1__1 : rule__RealValue__Group_1__1__Impl ;
+ public final void rule__RealValue__Group_1__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2144:1: ( rule__RealValue__Group_1__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2145:2: rule__RealValue__Group_1__1__Impl
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_1__1__Impl_in_rule__RealValue__Group_1__14391);
+ rule__RealValue__Group_1__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_1__1"
+
+
+ // $ANTLR start "rule__RealValue__Group_1__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2151:1: rule__RealValue__Group_1__1__Impl : ( ( rule__RealValue__FractionAssignment_1_1 ) ) ;
+ public final void rule__RealValue__Group_1__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2155:1: ( ( ( rule__RealValue__FractionAssignment_1_1 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2156:1: ( ( rule__RealValue__FractionAssignment_1_1 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2156:1: ( ( rule__RealValue__FractionAssignment_1_1 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2157:1: ( rule__RealValue__FractionAssignment_1_1 )
+ {
+ before(grammarAccess.getRealValueAccess().getFractionAssignment_1_1());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2158:1: ( rule__RealValue__FractionAssignment_1_1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2158:2: rule__RealValue__FractionAssignment_1_1
+ {
+ pushFollow(FOLLOW_rule__RealValue__FractionAssignment_1_1_in_rule__RealValue__Group_1__1__Impl4418);
+ rule__RealValue__FractionAssignment_1_1();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRealValueAccess().getFractionAssignment_1_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_1__1__Impl"
+
+
+ // $ANTLR start "rule__RealValue__Group_2__0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2172:1: rule__RealValue__Group_2__0 : rule__RealValue__Group_2__0__Impl rule__RealValue__Group_2__1 ;
+ public final void rule__RealValue__Group_2__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2176:1: ( rule__RealValue__Group_2__0__Impl rule__RealValue__Group_2__1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2177:2: rule__RealValue__Group_2__0__Impl rule__RealValue__Group_2__1
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_2__0__Impl_in_rule__RealValue__Group_2__04452);
+ rule__RealValue__Group_2__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__RealValue__Group_2__1_in_rule__RealValue__Group_2__04455);
+ rule__RealValue__Group_2__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_2__0"
+
+
+ // $ANTLR start "rule__RealValue__Group_2__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2184:1: rule__RealValue__Group_2__0__Impl : ( ( rule__RealValue__IntegerAssignment_2_0 ) ) ;
+ public final void rule__RealValue__Group_2__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2188:1: ( ( ( rule__RealValue__IntegerAssignment_2_0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2189:1: ( ( rule__RealValue__IntegerAssignment_2_0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2189:1: ( ( rule__RealValue__IntegerAssignment_2_0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2190:1: ( rule__RealValue__IntegerAssignment_2_0 )
+ {
+ before(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2191:1: ( rule__RealValue__IntegerAssignment_2_0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2191:2: rule__RealValue__IntegerAssignment_2_0
+ {
+ pushFollow(FOLLOW_rule__RealValue__IntegerAssignment_2_0_in_rule__RealValue__Group_2__0__Impl4482);
+ rule__RealValue__IntegerAssignment_2_0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_2__0__Impl"
+
+
+ // $ANTLR start "rule__RealValue__Group_2__1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2201:1: rule__RealValue__Group_2__1 : rule__RealValue__Group_2__1__Impl rule__RealValue__Group_2__2 ;
+ public final void rule__RealValue__Group_2__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2205:1: ( rule__RealValue__Group_2__1__Impl rule__RealValue__Group_2__2 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2206:2: rule__RealValue__Group_2__1__Impl rule__RealValue__Group_2__2
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_2__1__Impl_in_rule__RealValue__Group_2__14512);
+ rule__RealValue__Group_2__1__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__RealValue__Group_2__2_in_rule__RealValue__Group_2__14515);
+ rule__RealValue__Group_2__2();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_2__1"
+
+
+ // $ANTLR start "rule__RealValue__Group_2__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2213:1: rule__RealValue__Group_2__1__Impl : ( '.' ) ;
+ public final void rule__RealValue__Group_2__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2217:1: ( ( '.' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2218:1: ( '.' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2218:1: ( '.' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2219:1: '.'
+ {
+ before(grammarAccess.getRealValueAccess().getFullStopKeyword_2_1());
+ match(input,34,FOLLOW_34_in_rule__RealValue__Group_2__1__Impl4543);
+ after(grammarAccess.getRealValueAccess().getFullStopKeyword_2_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_2__1__Impl"
+
+
+ // $ANTLR start "rule__RealValue__Group_2__2"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2232:1: rule__RealValue__Group_2__2 : rule__RealValue__Group_2__2__Impl ;
+ public final void rule__RealValue__Group_2__2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2236:1: ( rule__RealValue__Group_2__2__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2237:2: rule__RealValue__Group_2__2__Impl
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_2__2__Impl_in_rule__RealValue__Group_2__24574);
+ rule__RealValue__Group_2__2__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_2__2"
+
+
+ // $ANTLR start "rule__RealValue__Group_2__2__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2243:1: rule__RealValue__Group_2__2__Impl : ( ( rule__RealValue__FractionAssignment_2_2 ) ) ;
+ public final void rule__RealValue__Group_2__2__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2247:1: ( ( ( rule__RealValue__FractionAssignment_2_2 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2248:1: ( ( rule__RealValue__FractionAssignment_2_2 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2248:1: ( ( rule__RealValue__FractionAssignment_2_2 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2249:1: ( rule__RealValue__FractionAssignment_2_2 )
+ {
+ before(grammarAccess.getRealValueAccess().getFractionAssignment_2_2());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2250:1: ( rule__RealValue__FractionAssignment_2_2 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2250:2: rule__RealValue__FractionAssignment_2_2
+ {
+ pushFollow(FOLLOW_rule__RealValue__FractionAssignment_2_2_in_rule__RealValue__Group_2__2__Impl4601);
+ rule__RealValue__FractionAssignment_2_2();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRealValueAccess().getFractionAssignment_2_2());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_2__2__Impl"
+
+
+ // $ANTLR start "rule__NullValue__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2266:1: rule__NullValue__Group__0 : rule__NullValue__Group__0__Impl rule__NullValue__Group__1 ;
+ public final void rule__NullValue__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2270:1: ( rule__NullValue__Group__0__Impl rule__NullValue__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2271:2: rule__NullValue__Group__0__Impl rule__NullValue__Group__1
+ {
+ pushFollow(FOLLOW_rule__NullValue__Group__0__Impl_in_rule__NullValue__Group__04637);
+ rule__NullValue__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__NullValue__Group__1_in_rule__NullValue__Group__04640);
+ rule__NullValue__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__NullValue__Group__0"
+
+
+ // $ANTLR start "rule__NullValue__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2278:1: rule__NullValue__Group__0__Impl : ( () ) ;
+ public final void rule__NullValue__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2282:1: ( ( () ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2283:1: ( () )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2283:1: ( () )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2284:1: ()
+ {
+ before(grammarAccess.getNullValueAccess().getNullValueAction_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2285:1: ()
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2287:1:
+ {
+ }
+
+ after(grammarAccess.getNullValueAccess().getNullValueAction_0());
+
+ }
+
+
+ }
+
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__NullValue__Group__0__Impl"
+
+
+ // $ANTLR start "rule__NullValue__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2297:1: rule__NullValue__Group__1 : rule__NullValue__Group__1__Impl ;
+ public final void rule__NullValue__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2301:1: ( rule__NullValue__Group__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2302:2: rule__NullValue__Group__1__Impl
+ {
+ pushFollow(FOLLOW_rule__NullValue__Group__1__Impl_in_rule__NullValue__Group__14698);
+ rule__NullValue__Group__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__NullValue__Group__1"
+
+
+ // $ANTLR start "rule__NullValue__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2308:1: rule__NullValue__Group__1__Impl : ( 'null' ) ;
+ public final void rule__NullValue__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2312:1: ( ( 'null' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2313:1: ( 'null' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2313:1: ( 'null' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2314:1: 'null'
+ {
+ before(grammarAccess.getNullValueAccess().getNullKeyword_1());
+ match(input,35,FOLLOW_35_in_rule__NullValue__Group__1__Impl4726);
+ after(grammarAccess.getNullValueAccess().getNullKeyword_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__NullValue__Group__1__Impl"
+
+
+ // $ANTLR start "rule__NoValue__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2331:1: rule__NoValue__Group__0 : rule__NoValue__Group__0__Impl rule__NoValue__Group__1 ;
+ public final void rule__NoValue__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2335:1: ( rule__NoValue__Group__0__Impl rule__NoValue__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2336:2: rule__NoValue__Group__0__Impl rule__NoValue__Group__1
+ {
+ pushFollow(FOLLOW_rule__NoValue__Group__0__Impl_in_rule__NoValue__Group__04761);
+ rule__NoValue__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__NoValue__Group__1_in_rule__NoValue__Group__04764);
+ rule__NoValue__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__NoValue__Group__0"
+
+
+ // $ANTLR start "rule__NoValue__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2343:1: rule__NoValue__Group__0__Impl : ( () ) ;
+ public final void rule__NoValue__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2347:1: ( ( () ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2348:1: ( () )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2348:1: ( () )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2349:1: ()
+ {
+ before(grammarAccess.getNoValueAccess().getNoValueAction_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2350:1: ()
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2352:1:
+ {
+ }
+
+ after(grammarAccess.getNoValueAccess().getNoValueAction_0());
+
+ }
+
+
+ }
+
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__NoValue__Group__0__Impl"
+
+
+ // $ANTLR start "rule__NoValue__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2362:1: rule__NoValue__Group__1 : rule__NoValue__Group__1__Impl ;
+ public final void rule__NoValue__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2366:1: ( rule__NoValue__Group__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2367:2: rule__NoValue__Group__1__Impl
+ {
+ pushFollow(FOLLOW_rule__NoValue__Group__1__Impl_in_rule__NoValue__Group__14822);
+ rule__NoValue__Group__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__NoValue__Group__1"
+
+
+ // $ANTLR start "rule__NoValue__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2373:1: rule__NoValue__Group__1__Impl : ( 'none' ) ;
+ public final void rule__NoValue__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2377:1: ( ( 'none' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2378:1: ( 'none' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2378:1: ( 'none' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2379:1: 'none'
+ {
+ before(grammarAccess.getNoValueAccess().getNoneKeyword_1());
+ match(input,36,FOLLOW_36_in_rule__NoValue__Group__1__Impl4850);
+ after(grammarAccess.getNoValueAccess().getNoneKeyword_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__NoValue__Group__1__Impl"
+
+
+ // $ANTLR start "rule__PortRule__VisibilityAssignment_0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2397:1: rule__PortRule__VisibilityAssignment_0 : ( ruleVisibilityRule ) ;
+ public final void rule__PortRule__VisibilityAssignment_0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2401:1: ( ( ruleVisibilityRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2402:1: ( ruleVisibilityRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2402:1: ( ruleVisibilityRule )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2403:1: ruleVisibilityRule
+ {
+ before(grammarAccess.getPortRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0());
+ pushFollow(FOLLOW_ruleVisibilityRule_in_rule__PortRule__VisibilityAssignment_04890);
+ ruleVisibilityRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getPortRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__VisibilityAssignment_0"
+
+
+ // $ANTLR start "rule__PortRule__DerivedAssignment_1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2412:1: rule__PortRule__DerivedAssignment_1 : ( ( '/' ) ) ;
+ public final void rule__PortRule__DerivedAssignment_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2416:1: ( ( ( '/' ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2417:1: ( ( '/' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2417:1: ( ( '/' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2418:1: ( '/' )
+ {
+ before(grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2419:1: ( '/' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2420:1: '/'
+ {
+ before(grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0());
+ match(input,37,FOLLOW_37_in_rule__PortRule__DerivedAssignment_14926);
+ after(grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0());
+
+ }
+
+ after(grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__DerivedAssignment_1"
+
+
+ // $ANTLR start "rule__PortRule__NameAssignment_2"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2435:1: rule__PortRule__NameAssignment_2 : ( RULE_ID ) ;
+ public final void rule__PortRule__NameAssignment_2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2439:1: ( ( RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2440:1: ( RULE_ID )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2440:1: ( RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2441:1: RULE_ID
+ {
+ before(grammarAccess.getPortRuleAccess().getNameIDTerminalRuleCall_2_0());
+ match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__PortRule__NameAssignment_24965);
+ after(grammarAccess.getPortRuleAccess().getNameIDTerminalRuleCall_2_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__NameAssignment_2"
+
+
+ // $ANTLR start "rule__PortRule__ConjugatedAssignment_3_1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2450:1: rule__PortRule__ConjugatedAssignment_3_1 : ( ( '~' ) ) ;
+ public final void rule__PortRule__ConjugatedAssignment_3_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2454:1: ( ( ( '~' ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2455:1: ( ( '~' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2455:1: ( ( '~' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2456:1: ( '~' )
+ {
+ before(grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2457:1: ( '~' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2458:1: '~'
+ {
+ before(grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0());
+ match(input,16,FOLLOW_16_in_rule__PortRule__ConjugatedAssignment_3_15001);
+ after(grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0());
+
+ }
+
+ after(grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__ConjugatedAssignment_3_1"
+
+
+ // $ANTLR start "rule__PortRule__TypeAssignment_3_2_0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2473:1: rule__PortRule__TypeAssignment_3_2_0 : ( ruleTypeRule ) ;
+ public final void rule__PortRule__TypeAssignment_3_2_0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2477:1: ( ( ruleTypeRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2478:1: ( ruleTypeRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2478:1: ( ruleTypeRule )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2479:1: ruleTypeRule
+ {
+ before(grammarAccess.getPortRuleAccess().getTypeTypeRuleParserRuleCall_3_2_0_0());
+ pushFollow(FOLLOW_ruleTypeRule_in_rule__PortRule__TypeAssignment_3_2_05040);
+ ruleTypeRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getPortRuleAccess().getTypeTypeRuleParserRuleCall_3_2_0_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__TypeAssignment_3_2_0"
+
+
+ // $ANTLR start "rule__PortRule__TypeUndefinedAssignment_3_2_1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2488:1: rule__PortRule__TypeUndefinedAssignment_3_2_1 : ( ( '<Undefined>' ) ) ;
+ public final void rule__PortRule__TypeUndefinedAssignment_3_2_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2492:1: ( ( ( '<Undefined>' ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2493:1: ( ( '<Undefined>' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2493:1: ( ( '<Undefined>' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2494:1: ( '<Undefined>' )
+ {
+ before(grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2495:1: ( '<Undefined>' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2496:1: '<Undefined>'
+ {
+ before(grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0());
+ match(input,38,FOLLOW_38_in_rule__PortRule__TypeUndefinedAssignment_3_2_15076);
+ after(grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0());
+
+ }
+
+ after(grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__TypeUndefinedAssignment_3_2_1"
+
+
+ // $ANTLR start "rule__PortRule__MultiplicityAssignment_4"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2511:1: rule__PortRule__MultiplicityAssignment_4 : ( ruleMultiplicityRule ) ;
+ public final void rule__PortRule__MultiplicityAssignment_4() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2515:1: ( ( ruleMultiplicityRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2516:1: ( ruleMultiplicityRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2516:1: ( ruleMultiplicityRule )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2517:1: ruleMultiplicityRule
+ {
+ before(grammarAccess.getPortRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0());
+ pushFollow(FOLLOW_ruleMultiplicityRule_in_rule__PortRule__MultiplicityAssignment_45115);
+ ruleMultiplicityRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getPortRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__MultiplicityAssignment_4"
+
+
+ // $ANTLR start "rule__PortRule__ModifiersAssignment_5"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2526:1: rule__PortRule__ModifiersAssignment_5 : ( ruleModifiersRule ) ;
+ public final void rule__PortRule__ModifiersAssignment_5() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2530:1: ( ( ruleModifiersRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2531:1: ( ruleModifiersRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2531:1: ( ruleModifiersRule )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2532:1: ruleModifiersRule
+ {
+ before(grammarAccess.getPortRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0());
+ pushFollow(FOLLOW_ruleModifiersRule_in_rule__PortRule__ModifiersAssignment_55146);
+ ruleModifiersRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getPortRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__ModifiersAssignment_5"
+
+
+ // $ANTLR start "rule__PortRule__DefaultAssignment_6"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2541:1: rule__PortRule__DefaultAssignment_6 : ( ruleDefaultValueRule ) ;
+ public final void rule__PortRule__DefaultAssignment_6() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2545:1: ( ( ruleDefaultValueRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2546:1: ( ruleDefaultValueRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2546:1: ( ruleDefaultValueRule )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2547:1: ruleDefaultValueRule
+ {
+ before(grammarAccess.getPortRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0());
+ pushFollow(FOLLOW_ruleDefaultValueRule_in_rule__PortRule__DefaultAssignment_65177);
+ ruleDefaultValueRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getPortRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PortRule__DefaultAssignment_6"
+
+
+ // $ANTLR start "rule__VisibilityRule__VisibilityAssignment"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2556:1: rule__VisibilityRule__VisibilityAssignment : ( ruleVisibilityKind ) ;
+ public final void rule__VisibilityRule__VisibilityAssignment() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2560:1: ( ( ruleVisibilityKind ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2561:1: ( ruleVisibilityKind )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2561:1: ( ruleVisibilityKind )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2562:1: ruleVisibilityKind
+ {
+ before(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0());
+ pushFollow(FOLLOW_ruleVisibilityKind_in_rule__VisibilityRule__VisibilityAssignment5208);
+ ruleVisibilityKind();
+
+ state._fsp--;
+
+ after(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__VisibilityRule__VisibilityAssignment"
+
+
+ // $ANTLR start "rule__TypeRule__PathAssignment_0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2571:1: rule__TypeRule__PathAssignment_0 : ( ruleQualifiedName ) ;
+ public final void rule__TypeRule__PathAssignment_0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2575:1: ( ( ruleQualifiedName ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2576:1: ( ruleQualifiedName )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2576:1: ( ruleQualifiedName )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2577:1: ruleQualifiedName
+ {
+ before(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0());
+ pushFollow(FOLLOW_ruleQualifiedName_in_rule__TypeRule__PathAssignment_05239);
+ ruleQualifiedName();
+
+ state._fsp--;
+
+ after(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__TypeRule__PathAssignment_0"
+
+
+ // $ANTLR start "rule__TypeRule__TypeAssignment_1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2586:1: rule__TypeRule__TypeAssignment_1 : ( ( RULE_ID ) ) ;
+ public final void rule__TypeRule__TypeAssignment_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2590:1: ( ( ( RULE_ID ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2591:1: ( ( RULE_ID ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2591:1: ( ( RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2592:1: ( RULE_ID )
+ {
+ before(grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2593:1: ( RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2594:1: RULE_ID
+ {
+ before(grammarAccess.getTypeRuleAccess().getTypeClassifierIDTerminalRuleCall_1_0_1());
+ match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__TypeRule__TypeAssignment_15274);
+ after(grammarAccess.getTypeRuleAccess().getTypeClassifierIDTerminalRuleCall_1_0_1());
+
+ }
+
+ after(grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__TypeRule__TypeAssignment_1"
+
+
+ // $ANTLR start "rule__QualifiedName__PathAssignment_0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2605:1: rule__QualifiedName__PathAssignment_0 : ( ( RULE_ID ) ) ;
+ public final void rule__QualifiedName__PathAssignment_0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2609:1: ( ( ( RULE_ID ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2610:1: ( ( RULE_ID ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2610:1: ( ( RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2611:1: ( RULE_ID )
+ {
+ before(grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2612:1: ( RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2613:1: RULE_ID
+ {
+ before(grammarAccess.getQualifiedNameAccess().getPathNamespaceIDTerminalRuleCall_0_0_1());
+ match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__QualifiedName__PathAssignment_05313);
+ after(grammarAccess.getQualifiedNameAccess().getPathNamespaceIDTerminalRuleCall_0_0_1());
+
+ }
+
+ after(grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__QualifiedName__PathAssignment_0"
+
+
+ // $ANTLR start "rule__QualifiedName__RemainingAssignment_2"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2624:1: rule__QualifiedName__RemainingAssignment_2 : ( ruleQualifiedName ) ;
+ public final void rule__QualifiedName__RemainingAssignment_2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2628:1: ( ( ruleQualifiedName ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2629:1: ( ruleQualifiedName )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2629:1: ( ruleQualifiedName )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2630:1: ruleQualifiedName
+ {
+ before(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0());
+ pushFollow(FOLLOW_ruleQualifiedName_in_rule__QualifiedName__RemainingAssignment_25348);
+ ruleQualifiedName();
+
+ state._fsp--;
+
+ after(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__QualifiedName__RemainingAssignment_2"
+
+
+ // $ANTLR start "rule__MultiplicityRule__BoundsAssignment_1_0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2639:1: rule__MultiplicityRule__BoundsAssignment_1_0 : ( ruleBoundSpecification ) ;
+ public final void rule__MultiplicityRule__BoundsAssignment_1_0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2643:1: ( ( ruleBoundSpecification ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2644:1: ( ruleBoundSpecification )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2644:1: ( ruleBoundSpecification )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2645:1: ruleBoundSpecification
+ {
+ before(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0_0());
+ pushFollow(FOLLOW_ruleBoundSpecification_in_rule__MultiplicityRule__BoundsAssignment_1_05379);
+ ruleBoundSpecification();
+
+ state._fsp--;
+
+ after(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__BoundsAssignment_1_0"
+
+
+ // $ANTLR start "rule__MultiplicityRule__BoundsAssignment_2"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2654:1: rule__MultiplicityRule__BoundsAssignment_2 : ( ruleBoundSpecification ) ;
+ public final void rule__MultiplicityRule__BoundsAssignment_2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2658:1: ( ( ruleBoundSpecification ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2659:1: ( ruleBoundSpecification )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2659:1: ( ruleBoundSpecification )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2660:1: ruleBoundSpecification
+ {
+ before(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_0());
+ pushFollow(FOLLOW_ruleBoundSpecification_in_rule__MultiplicityRule__BoundsAssignment_25410);
+ ruleBoundSpecification();
+
+ state._fsp--;
+
+ after(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__BoundsAssignment_2"
+
+
+ // $ANTLR start "rule__BoundSpecification__ValueAssignment"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2669:1: rule__BoundSpecification__ValueAssignment : ( ( rule__BoundSpecification__ValueAlternatives_0 ) ) ;
+ public final void rule__BoundSpecification__ValueAssignment() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2673:1: ( ( ( rule__BoundSpecification__ValueAlternatives_0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2674:1: ( ( rule__BoundSpecification__ValueAlternatives_0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2674:1: ( ( rule__BoundSpecification__ValueAlternatives_0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2675:1: ( rule__BoundSpecification__ValueAlternatives_0 )
+ {
+ before(grammarAccess.getBoundSpecificationAccess().getValueAlternatives_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2676:1: ( rule__BoundSpecification__ValueAlternatives_0 )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2676:2: rule__BoundSpecification__ValueAlternatives_0
+ {
+ pushFollow(FOLLOW_rule__BoundSpecification__ValueAlternatives_0_in_rule__BoundSpecification__ValueAssignment5441);
+ rule__BoundSpecification__ValueAlternatives_0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getBoundSpecificationAccess().getValueAlternatives_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__BoundSpecification__ValueAssignment"
+
+
+ // $ANTLR start "rule__ModifiersRule__ValuesAssignment_2_0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2685:1: rule__ModifiersRule__ValuesAssignment_2_0 : ( ruleModifierSpecification ) ;
+ public final void rule__ModifiersRule__ValuesAssignment_2_0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2689:1: ( ( ruleModifierSpecification ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2690:1: ( ruleModifierSpecification )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2690:1: ( ruleModifierSpecification )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2691:1: ruleModifierSpecification
+ {
+ before(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0());
+ pushFollow(FOLLOW_ruleModifierSpecification_in_rule__ModifiersRule__ValuesAssignment_2_05474);
+ ruleModifierSpecification();
+
+ state._fsp--;
+
+ after(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__ValuesAssignment_2_0"
+
+
+ // $ANTLR start "rule__ModifiersRule__ValuesAssignment_2_1_1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2700:1: rule__ModifiersRule__ValuesAssignment_2_1_1 : ( ruleModifierSpecification ) ;
+ public final void rule__ModifiersRule__ValuesAssignment_2_1_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2704:1: ( ( ruleModifierSpecification ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2705:1: ( ruleModifierSpecification )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2705:1: ( ruleModifierSpecification )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2706:1: ruleModifierSpecification
+ {
+ before(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0());
+ pushFollow(FOLLOW_ruleModifierSpecification_in_rule__ModifiersRule__ValuesAssignment_2_1_15505);
+ ruleModifierSpecification();
+
+ state._fsp--;
+
+ after(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__ValuesAssignment_2_1_1"
+
+
+ // $ANTLR start "rule__ModifierSpecification__ValueAssignment_0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2715:1: rule__ModifierSpecification__ValueAssignment_0 : ( ruleModifierKind ) ;
+ public final void rule__ModifierSpecification__ValueAssignment_0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2719:1: ( ( ruleModifierKind ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2720:1: ( ruleModifierKind )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2720:1: ( ruleModifierKind )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2721:1: ruleModifierKind
+ {
+ before(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0());
+ pushFollow(FOLLOW_ruleModifierKind_in_rule__ModifierSpecification__ValueAssignment_05536);
+ ruleModifierKind();
+
+ state._fsp--;
+
+ after(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifierSpecification__ValueAssignment_0"
+
+
+ // $ANTLR start "rule__ModifierSpecification__RedefinesAssignment_1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2730:1: rule__ModifierSpecification__RedefinesAssignment_1 : ( ruleRedefinesRule ) ;
+ public final void rule__ModifierSpecification__RedefinesAssignment_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2734:1: ( ( ruleRedefinesRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2735:1: ( ruleRedefinesRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2735:1: ( ruleRedefinesRule )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2736:1: ruleRedefinesRule
+ {
+ before(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0());
+ pushFollow(FOLLOW_ruleRedefinesRule_in_rule__ModifierSpecification__RedefinesAssignment_15567);
+ ruleRedefinesRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifierSpecification__RedefinesAssignment_1"
+
+
+ // $ANTLR start "rule__ModifierSpecification__SubsetsAssignment_2"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2745:1: rule__ModifierSpecification__SubsetsAssignment_2 : ( ruleSubsetsRule ) ;
+ public final void rule__ModifierSpecification__SubsetsAssignment_2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2749:1: ( ( ruleSubsetsRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2750:1: ( ruleSubsetsRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2750:1: ( ruleSubsetsRule )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2751:1: ruleSubsetsRule
+ {
+ before(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0());
+ pushFollow(FOLLOW_ruleSubsetsRule_in_rule__ModifierSpecification__SubsetsAssignment_25598);
+ ruleSubsetsRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifierSpecification__SubsetsAssignment_2"
+
+
+ // $ANTLR start "rule__RedefinesRule__PortAssignment_1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2760:1: rule__RedefinesRule__PortAssignment_1 : ( ( RULE_ID ) ) ;
+ public final void rule__RedefinesRule__PortAssignment_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2764:1: ( ( ( RULE_ID ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2765:1: ( ( RULE_ID ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2765:1: ( ( RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2766:1: ( RULE_ID )
+ {
+ before(grammarAccess.getRedefinesRuleAccess().getPortPortCrossReference_1_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2767:1: ( RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2768:1: RULE_ID
+ {
+ before(grammarAccess.getRedefinesRuleAccess().getPortPortIDTerminalRuleCall_1_0_1());
+ match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__RedefinesRule__PortAssignment_15633);
+ after(grammarAccess.getRedefinesRuleAccess().getPortPortIDTerminalRuleCall_1_0_1());
+
+ }
+
+ after(grammarAccess.getRedefinesRuleAccess().getPortPortCrossReference_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RedefinesRule__PortAssignment_1"
+
+
+ // $ANTLR start "rule__SubsetsRule__PortAssignment_1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2779:1: rule__SubsetsRule__PortAssignment_1 : ( ( RULE_ID ) ) ;
+ public final void rule__SubsetsRule__PortAssignment_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2783:1: ( ( ( RULE_ID ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2784:1: ( ( RULE_ID ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2784:1: ( ( RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2785:1: ( RULE_ID )
+ {
+ before(grammarAccess.getSubsetsRuleAccess().getPortPortCrossReference_1_0());
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2786:1: ( RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2787:1: RULE_ID
+ {
+ before(grammarAccess.getSubsetsRuleAccess().getPortPortIDTerminalRuleCall_1_0_1());
+ match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__SubsetsRule__PortAssignment_15672);
+ after(grammarAccess.getSubsetsRuleAccess().getPortPortIDTerminalRuleCall_1_0_1());
+
+ }
+
+ after(grammarAccess.getSubsetsRuleAccess().getPortPortCrossReference_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__SubsetsRule__PortAssignment_1"
+
+
+ // $ANTLR start "rule__DefaultValueRule__DefaultAssignment_1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2798:1: rule__DefaultValueRule__DefaultAssignment_1 : ( ruleValue ) ;
+ public final void rule__DefaultValueRule__DefaultAssignment_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2802:1: ( ( ruleValue ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2803:1: ( ruleValue )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2803:1: ( ruleValue )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2804:1: ruleValue
+ {
+ before(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0());
+ pushFollow(FOLLOW_ruleValue_in_rule__DefaultValueRule__DefaultAssignment_15707);
+ ruleValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__DefaultValueRule__DefaultAssignment_1"
+
+
+ // $ANTLR start "rule__IntValue__LiteralIntegerAssignment"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2813:1: rule__IntValue__LiteralIntegerAssignment : ( RULE_INT ) ;
+ public final void rule__IntValue__LiteralIntegerAssignment() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2817:1: ( ( RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2818:1: ( RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2818:1: ( RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2819:1: RULE_INT
+ {
+ before(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0());
+ match(input,RULE_INT,FOLLOW_RULE_INT_in_rule__IntValue__LiteralIntegerAssignment5738);
+ after(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__IntValue__LiteralIntegerAssignment"
+
+
+ // $ANTLR start "rule__StringValue__LiteralStringAssignment"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2828:1: rule__StringValue__LiteralStringAssignment : ( RULE_STRING ) ;
+ public final void rule__StringValue__LiteralStringAssignment() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2832:1: ( ( RULE_STRING ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2833:1: ( RULE_STRING )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2833:1: ( RULE_STRING )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2834:1: RULE_STRING
+ {
+ before(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0());
+ match(input,RULE_STRING,FOLLOW_RULE_STRING_in_rule__StringValue__LiteralStringAssignment5769);
+ after(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__StringValue__LiteralStringAssignment"
+
+
+ // $ANTLR start "rule__BooleanValue__LiteralBooleanAssignment"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2843:1: rule__BooleanValue__LiteralBooleanAssignment : ( ruleBooleanLiterals ) ;
+ public final void rule__BooleanValue__LiteralBooleanAssignment() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2847:1: ( ( ruleBooleanLiterals ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2848:1: ( ruleBooleanLiterals )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2848:1: ( ruleBooleanLiterals )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2849:1: ruleBooleanLiterals
+ {
+ before(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0());
+ pushFollow(FOLLOW_ruleBooleanLiterals_in_rule__BooleanValue__LiteralBooleanAssignment5800);
+ ruleBooleanLiterals();
+
+ state._fsp--;
+
+ after(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__BooleanValue__LiteralBooleanAssignment"
+
+
+ // $ANTLR start "rule__RealValue__IntegerAssignment_0_0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2858:1: rule__RealValue__IntegerAssignment_0_0 : ( RULE_INT ) ;
+ public final void rule__RealValue__IntegerAssignment_0_0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2862:1: ( ( RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2863:1: ( RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2863:1: ( RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2864:1: RULE_INT
+ {
+ before(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0());
+ match(input,RULE_INT,FOLLOW_RULE_INT_in_rule__RealValue__IntegerAssignment_0_05831);
+ after(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__IntegerAssignment_0_0"
+
+
+ // $ANTLR start "rule__RealValue__FractionAssignment_1_1"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2873:1: rule__RealValue__FractionAssignment_1_1 : ( RULE_INT ) ;
+ public final void rule__RealValue__FractionAssignment_1_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2877:1: ( ( RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:1: ( RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2878:1: ( RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2879:1: RULE_INT
+ {
+ before(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0());
+ match(input,RULE_INT,FOLLOW_RULE_INT_in_rule__RealValue__FractionAssignment_1_15862);
+ after(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__FractionAssignment_1_1"
+
+
+ // $ANTLR start "rule__RealValue__IntegerAssignment_2_0"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2888:1: rule__RealValue__IntegerAssignment_2_0 : ( RULE_INT ) ;
+ public final void rule__RealValue__IntegerAssignment_2_0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2892:1: ( ( RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2893:1: ( RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2893:1: ( RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2894:1: RULE_INT
+ {
+ before(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0());
+ match(input,RULE_INT,FOLLOW_RULE_INT_in_rule__RealValue__IntegerAssignment_2_05893);
+ after(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__IntegerAssignment_2_0"
+
+
+ // $ANTLR start "rule__RealValue__FractionAssignment_2_2"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2903:1: rule__RealValue__FractionAssignment_2_2 : ( RULE_INT ) ;
+ public final void rule__RealValue__FractionAssignment_2_2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2907:1: ( ( RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2908:1: ( RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2908:1: ( RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contentassist/antlr/internal/InternalUmlPort.g:2909:1: RULE_INT
+ {
+ before(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0());
+ match(input,RULE_INT,FOLLOW_RULE_INT_in_rule__RealValue__FractionAssignment_2_25924);
+ after(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__FractionAssignment_2_2"
+
+ // Delegated rules
+
+
+
+
+ public static final BitSet FOLLOW_rulePortRule_in_entryRulePortRule61 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRulePortRule68 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__Group__0_in_rulePortRule94 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleVisibilityRule_in_entryRuleVisibilityRule121 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleVisibilityRule128 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__VisibilityRule__VisibilityAssignment_in_ruleVisibilityRule154 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleTypeRule_in_entryRuleTypeRule181 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleTypeRule188 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__TypeRule__Group__0_in_ruleTypeRule214 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName241 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleQualifiedName248 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__QualifiedName__Group__0_in_ruleQualifiedName274 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleMultiplicityRule_in_entryRuleMultiplicityRule301 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleMultiplicityRule308 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group__0_in_ruleMultiplicityRule334 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification361 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleBoundSpecification368 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__BoundSpecification__ValueAssignment_in_ruleBoundSpecification394 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral421 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleUnlimitedLiteral428 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__UnlimitedLiteral__Alternatives_in_ruleUnlimitedLiteral454 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral481 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleStringLiteral488 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_STRING_in_ruleStringLiteral514 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleModifiersRule_in_entryRuleModifiersRule540 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleModifiersRule547 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group__0_in_ruleModifiersRule573 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleModifierSpecification_in_entryRuleModifierSpecification600 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleModifierSpecification607 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifierSpecification__Alternatives_in_ruleModifierSpecification633 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleRedefinesRule_in_entryRuleRedefinesRule660 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleRedefinesRule667 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RedefinesRule__Group__0_in_ruleRedefinesRule693 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleSubsetsRule_in_entryRuleSubsetsRule720 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleSubsetsRule727 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__SubsetsRule__Group__0_in_ruleSubsetsRule753 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleDefaultValueRule_in_entryRuleDefaultValueRule780 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleDefaultValueRule787 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__DefaultValueRule__Group__0_in_ruleDefaultValueRule813 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleValue_in_entryRuleValue840 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleValue847 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__Value__Alternatives_in_ruleValue873 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleIntValue_in_entryRuleIntValue900 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleIntValue907 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__IntValue__LiteralIntegerAssignment_in_ruleIntValue933 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleStringValue_in_entryRuleStringValue960 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleStringValue967 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__StringValue__LiteralStringAssignment_in_ruleStringValue993 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBooleanValue_in_entryRuleBooleanValue1020 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleBooleanValue1027 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__BooleanValue__LiteralBooleanAssignment_in_ruleBooleanValue1053 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleRealValue_in_entryRuleRealValue1080 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleRealValue1087 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Alternatives_in_ruleRealValue1113 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleNullValue_in_entryRuleNullValue1140 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleNullValue1147 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__NullValue__Group__0_in_ruleNullValue1173 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleNoValue_in_entryRuleNoValue1200 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleNoValue1207 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__NoValue__Group__0_in_ruleNoValue1233 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__VisibilityKind__Alternatives_in_ruleVisibilityKind1270 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifierKind__Alternatives_in_ruleModifierKind1306 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__BooleanLiterals__Alternatives_in_ruleBooleanLiterals1342 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__TypeAssignment_3_2_0_in_rule__PortRule__Alternatives_3_21377 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__TypeUndefinedAssignment_3_2_1_in_rule__PortRule__Alternatives_3_21395 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_rule__BoundSpecification__ValueAlternatives_01428 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleStringLiteral_in_rule__BoundSpecification__ValueAlternatives_01445 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_rule__UnlimitedLiteral__Alternatives1477 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_12_in_rule__UnlimitedLiteral__Alternatives1495 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifierSpecification__ValueAssignment_0_in_rule__ModifierSpecification__Alternatives1529 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifierSpecification__RedefinesAssignment_1_in_rule__ModifierSpecification__Alternatives1547 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifierSpecification__SubsetsAssignment_2_in_rule__ModifierSpecification__Alternatives1565 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleIntValue_in_rule__Value__Alternatives1598 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleStringValue_in_rule__Value__Alternatives1615 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBooleanValue_in_rule__Value__Alternatives1632 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleRealValue_in_rule__Value__Alternatives1649 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleNullValue_in_rule__Value__Alternatives1666 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleNoValue_in_rule__Value__Alternatives1683 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_0__0_in_rule__RealValue__Alternatives1715 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_1__0_in_rule__RealValue__Alternatives1733 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_2__0_in_rule__RealValue__Alternatives1751 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_13_in_rule__VisibilityKind__Alternatives1785 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_14_in_rule__VisibilityKind__Alternatives1806 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_15_in_rule__VisibilityKind__Alternatives1827 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_16_in_rule__VisibilityKind__Alternatives1848 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_17_in_rule__ModifierKind__Alternatives1884 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_18_in_rule__ModifierKind__Alternatives1905 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_19_in_rule__ModifierKind__Alternatives1926 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_20_in_rule__ModifierKind__Alternatives1947 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_21_in_rule__BooleanLiterals__Alternatives1983 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_22_in_rule__BooleanLiterals__Alternatives2004 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__Group__0__Impl_in_rule__PortRule__Group__02037 = new BitSet(new long[]{0x0000002000000040L});
+ public static final BitSet FOLLOW_rule__PortRule__Group__1_in_rule__PortRule__Group__02040 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__VisibilityAssignment_0_in_rule__PortRule__Group__0__Impl2067 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__Group__1__Impl_in_rule__PortRule__Group__12098 = new BitSet(new long[]{0x0000002000000040L});
+ public static final BitSet FOLLOW_rule__PortRule__Group__2_in_rule__PortRule__Group__12101 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__DerivedAssignment_1_in_rule__PortRule__Group__1__Impl2128 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__Group__2__Impl_in_rule__PortRule__Group__22159 = new BitSet(new long[]{0x0000000212800000L});
+ public static final BitSet FOLLOW_rule__PortRule__Group__3_in_rule__PortRule__Group__22162 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__NameAssignment_2_in_rule__PortRule__Group__2__Impl2189 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__Group__3__Impl_in_rule__PortRule__Group__32219 = new BitSet(new long[]{0x0000000212800000L});
+ public static final BitSet FOLLOW_rule__PortRule__Group__4_in_rule__PortRule__Group__32222 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__Group_3__0_in_rule__PortRule__Group__3__Impl2249 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__Group__4__Impl_in_rule__PortRule__Group__42280 = new BitSet(new long[]{0x0000000212800000L});
+ public static final BitSet FOLLOW_rule__PortRule__Group__5_in_rule__PortRule__Group__42283 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__MultiplicityAssignment_4_in_rule__PortRule__Group__4__Impl2310 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__Group__5__Impl_in_rule__PortRule__Group__52341 = new BitSet(new long[]{0x0000000212800000L});
+ public static final BitSet FOLLOW_rule__PortRule__Group__6_in_rule__PortRule__Group__52344 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__ModifiersAssignment_5_in_rule__PortRule__Group__5__Impl2371 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__Group__6__Impl_in_rule__PortRule__Group__62402 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__DefaultAssignment_6_in_rule__PortRule__Group__6__Impl2429 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__Group_3__0__Impl_in_rule__PortRule__Group_3__02474 = new BitSet(new long[]{0x0000004000010040L});
+ public static final BitSet FOLLOW_rule__PortRule__Group_3__1_in_rule__PortRule__Group_3__02477 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_23_in_rule__PortRule__Group_3__0__Impl2505 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__Group_3__1__Impl_in_rule__PortRule__Group_3__12536 = new BitSet(new long[]{0x0000004000010040L});
+ public static final BitSet FOLLOW_rule__PortRule__Group_3__2_in_rule__PortRule__Group_3__12539 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__ConjugatedAssignment_3_1_in_rule__PortRule__Group_3__1__Impl2566 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__Group_3__2__Impl_in_rule__PortRule__Group_3__22597 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PortRule__Alternatives_3_2_in_rule__PortRule__Group_3__2__Impl2624 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__TypeRule__Group__0__Impl_in_rule__TypeRule__Group__02660 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_rule__TypeRule__Group__1_in_rule__TypeRule__Group__02663 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__TypeRule__PathAssignment_0_in_rule__TypeRule__Group__0__Impl2690 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__TypeRule__Group__1__Impl_in_rule__TypeRule__Group__12721 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__TypeRule__TypeAssignment_1_in_rule__TypeRule__Group__1__Impl2748 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__QualifiedName__Group__0__Impl_in_rule__QualifiedName__Group__02782 = new BitSet(new long[]{0x0000000001000000L});
+ public static final BitSet FOLLOW_rule__QualifiedName__Group__1_in_rule__QualifiedName__Group__02785 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__QualifiedName__PathAssignment_0_in_rule__QualifiedName__Group__0__Impl2812 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__QualifiedName__Group__1__Impl_in_rule__QualifiedName__Group__12842 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_rule__QualifiedName__Group__2_in_rule__QualifiedName__Group__12845 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_24_in_rule__QualifiedName__Group__1__Impl2873 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__QualifiedName__Group__2__Impl_in_rule__QualifiedName__Group__22904 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__QualifiedName__RemainingAssignment_2_in_rule__QualifiedName__Group__2__Impl2931 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group__0__Impl_in_rule__MultiplicityRule__Group__02968 = new BitSet(new long[]{0x0000000000001030L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group__1_in_rule__MultiplicityRule__Group__02971 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_25_in_rule__MultiplicityRule__Group__0__Impl2999 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group__1__Impl_in_rule__MultiplicityRule__Group__13030 = new BitSet(new long[]{0x0000000000001030L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group__2_in_rule__MultiplicityRule__Group__13033 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group_1__0_in_rule__MultiplicityRule__Group__1__Impl3060 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group__2__Impl_in_rule__MultiplicityRule__Group__23091 = new BitSet(new long[]{0x0000000004000000L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group__3_in_rule__MultiplicityRule__Group__23094 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__BoundsAssignment_2_in_rule__MultiplicityRule__Group__2__Impl3121 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group__3__Impl_in_rule__MultiplicityRule__Group__33151 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_26_in_rule__MultiplicityRule__Group__3__Impl3179 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group_1__0__Impl_in_rule__MultiplicityRule__Group_1__03218 = new BitSet(new long[]{0x0000000008000000L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group_1__1_in_rule__MultiplicityRule__Group_1__03221 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__BoundsAssignment_1_0_in_rule__MultiplicityRule__Group_1__0__Impl3248 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group_1__1__Impl_in_rule__MultiplicityRule__Group_1__13278 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_27_in_rule__MultiplicityRule__Group_1__1__Impl3306 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group__0__Impl_in_rule__ModifiersRule__Group__03341 = new BitSet(new long[]{0x0000000010000000L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group__1_in_rule__ModifiersRule__Group__03344 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group__1__Impl_in_rule__ModifiersRule__Group__13402 = new BitSet(new long[]{0x00000001A01E0000L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group__2_in_rule__ModifiersRule__Group__13405 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_28_in_rule__ModifiersRule__Group__1__Impl3433 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group__2__Impl_in_rule__ModifiersRule__Group__23464 = new BitSet(new long[]{0x00000001A01E0000L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group__3_in_rule__ModifiersRule__Group__23467 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group_2__0_in_rule__ModifiersRule__Group__2__Impl3494 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group__3__Impl_in_rule__ModifiersRule__Group__33525 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_29_in_rule__ModifiersRule__Group__3__Impl3553 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group_2__0__Impl_in_rule__ModifiersRule__Group_2__03592 = new BitSet(new long[]{0x0000000040000000L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group_2__1_in_rule__ModifiersRule__Group_2__03595 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__ValuesAssignment_2_0_in_rule__ModifiersRule__Group_2__0__Impl3622 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group_2__1__Impl_in_rule__ModifiersRule__Group_2__13652 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group_2_1__0_in_rule__ModifiersRule__Group_2__1__Impl3679 = new BitSet(new long[]{0x0000000040000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group_2_1__0__Impl_in_rule__ModifiersRule__Group_2_1__03714 = new BitSet(new long[]{0x00000001801E0000L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group_2_1__1_in_rule__ModifiersRule__Group_2_1__03717 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_30_in_rule__ModifiersRule__Group_2_1__0__Impl3745 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group_2_1__1__Impl_in_rule__ModifiersRule__Group_2_1__13776 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__ValuesAssignment_2_1_1_in_rule__ModifiersRule__Group_2_1__1__Impl3803 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RedefinesRule__Group__0__Impl_in_rule__RedefinesRule__Group__03837 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_rule__RedefinesRule__Group__1_in_rule__RedefinesRule__Group__03840 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_31_in_rule__RedefinesRule__Group__0__Impl3868 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RedefinesRule__Group__1__Impl_in_rule__RedefinesRule__Group__13899 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RedefinesRule__PortAssignment_1_in_rule__RedefinesRule__Group__1__Impl3926 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__SubsetsRule__Group__0__Impl_in_rule__SubsetsRule__Group__03960 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_rule__SubsetsRule__Group__1_in_rule__SubsetsRule__Group__03963 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_32_in_rule__SubsetsRule__Group__0__Impl3991 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__SubsetsRule__Group__1__Impl_in_rule__SubsetsRule__Group__14022 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__SubsetsRule__PortAssignment_1_in_rule__SubsetsRule__Group__1__Impl4049 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__DefaultValueRule__Group__0__Impl_in_rule__DefaultValueRule__Group__04083 = new BitSet(new long[]{0x0000001C00600030L});
+ public static final BitSet FOLLOW_rule__DefaultValueRule__Group__1_in_rule__DefaultValueRule__Group__04086 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_33_in_rule__DefaultValueRule__Group__0__Impl4114 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__DefaultValueRule__Group__1__Impl_in_rule__DefaultValueRule__Group__14145 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__DefaultValueRule__DefaultAssignment_1_in_rule__DefaultValueRule__Group__1__Impl4172 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_0__0__Impl_in_rule__RealValue__Group_0__04206 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_0__1_in_rule__RealValue__Group_0__04209 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__IntegerAssignment_0_0_in_rule__RealValue__Group_0__0__Impl4236 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_0__1__Impl_in_rule__RealValue__Group_0__14266 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_34_in_rule__RealValue__Group_0__1__Impl4294 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_1__0__Impl_in_rule__RealValue__Group_1__04329 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_1__1_in_rule__RealValue__Group_1__04332 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_34_in_rule__RealValue__Group_1__0__Impl4360 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_1__1__Impl_in_rule__RealValue__Group_1__14391 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__FractionAssignment_1_1_in_rule__RealValue__Group_1__1__Impl4418 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_2__0__Impl_in_rule__RealValue__Group_2__04452 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_2__1_in_rule__RealValue__Group_2__04455 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__IntegerAssignment_2_0_in_rule__RealValue__Group_2__0__Impl4482 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_2__1__Impl_in_rule__RealValue__Group_2__14512 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_2__2_in_rule__RealValue__Group_2__14515 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_34_in_rule__RealValue__Group_2__1__Impl4543 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_2__2__Impl_in_rule__RealValue__Group_2__24574 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__FractionAssignment_2_2_in_rule__RealValue__Group_2__2__Impl4601 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__NullValue__Group__0__Impl_in_rule__NullValue__Group__04637 = new BitSet(new long[]{0x0000000800000000L});
+ public static final BitSet FOLLOW_rule__NullValue__Group__1_in_rule__NullValue__Group__04640 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__NullValue__Group__1__Impl_in_rule__NullValue__Group__14698 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_35_in_rule__NullValue__Group__1__Impl4726 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__NoValue__Group__0__Impl_in_rule__NoValue__Group__04761 = new BitSet(new long[]{0x0000001C00600030L});
+ public static final BitSet FOLLOW_rule__NoValue__Group__1_in_rule__NoValue__Group__04764 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__NoValue__Group__1__Impl_in_rule__NoValue__Group__14822 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_36_in_rule__NoValue__Group__1__Impl4850 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleVisibilityRule_in_rule__PortRule__VisibilityAssignment_04890 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_37_in_rule__PortRule__DerivedAssignment_14926 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_ID_in_rule__PortRule__NameAssignment_24965 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_16_in_rule__PortRule__ConjugatedAssignment_3_15001 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleTypeRule_in_rule__PortRule__TypeAssignment_3_2_05040 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_38_in_rule__PortRule__TypeUndefinedAssignment_3_2_15076 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleMultiplicityRule_in_rule__PortRule__MultiplicityAssignment_45115 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleModifiersRule_in_rule__PortRule__ModifiersAssignment_55146 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleDefaultValueRule_in_rule__PortRule__DefaultAssignment_65177 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleVisibilityKind_in_rule__VisibilityRule__VisibilityAssignment5208 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleQualifiedName_in_rule__TypeRule__PathAssignment_05239 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_ID_in_rule__TypeRule__TypeAssignment_15274 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_ID_in_rule__QualifiedName__PathAssignment_05313 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleQualifiedName_in_rule__QualifiedName__RemainingAssignment_25348 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBoundSpecification_in_rule__MultiplicityRule__BoundsAssignment_1_05379 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBoundSpecification_in_rule__MultiplicityRule__BoundsAssignment_25410 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__BoundSpecification__ValueAlternatives_0_in_rule__BoundSpecification__ValueAssignment5441 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleModifierSpecification_in_rule__ModifiersRule__ValuesAssignment_2_05474 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleModifierSpecification_in_rule__ModifiersRule__ValuesAssignment_2_1_15505 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleModifierKind_in_rule__ModifierSpecification__ValueAssignment_05536 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleRedefinesRule_in_rule__ModifierSpecification__RedefinesAssignment_15567 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleSubsetsRule_in_rule__ModifierSpecification__SubsetsAssignment_25598 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_ID_in_rule__RedefinesRule__PortAssignment_15633 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_ID_in_rule__SubsetsRule__PortAssignment_15672 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleValue_in_rule__DefaultValueRule__DefaultAssignment_15707 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_rule__IntValue__LiteralIntegerAssignment5738 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_STRING_in_rule__StringValue__LiteralStringAssignment5769 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBooleanLiterals_in_rule__BooleanValue__LiteralBooleanAssignment5800 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_rule__RealValue__IntegerAssignment_0_05831 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_rule__RealValue__FractionAssignment_1_15862 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_rule__RealValue__IntegerAssignment_2_05893 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_rule__RealValue__FractionAssignment_2_25924 = new BitSet(new long[]{0x0000000000000002L});
+
} \ No newline at end of file
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/internal/UmlPortActivator.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/internal/UmlPortActivator.java
index 8b89646b3e3..e77861a009c 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/internal/UmlPortActivator.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/ui/internal/UmlPortActivator.java
@@ -1,95 +1,95 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.ui.internal;
-
-import java.util.Collections;
-import java.util.Map;
-
-import org.apache.log4j.Logger;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.eclipse.xtext.ui.shared.SharedStateModule;
-import org.eclipse.xtext.util.Modules2;
-import org.osgi.framework.BundleContext;
-
-import com.google.common.collect.Maps;
-import com.google.inject.Guice;
-import com.google.inject.Injector;
-import com.google.inject.Module;
-
-/**
- * This class was generated. Customizations should only happen in a newly
- * introduced subclass.
- */
-public class UmlPortActivator extends AbstractUIPlugin {
-
- public static final String ORG_ECLIPSE_PAPYRUS_UML_TEXTEDIT_PORT_XTEXT_UMLPORT = "org.eclipse.papyrus.uml.textedit.port.xtext.UmlPort";
-
- private static final Logger logger = Logger.getLogger(UmlPortActivator.class);
-
- private static UmlPortActivator INSTANCE;
-
- private Map<String, Injector> injectors = Collections.synchronizedMap(Maps.<String, Injector> newHashMapWithExpectedSize(1));
-
- @Override
- public void start(BundleContext context) throws Exception {
- super.start(context);
- INSTANCE = this;
- }
-
- @Override
- public void stop(BundleContext context) throws Exception {
- injectors.clear();
- INSTANCE = null;
- super.stop(context);
- }
-
- public static UmlPortActivator getInstance() {
- return INSTANCE;
- }
-
- public Injector getInjector(String language) {
- synchronized (injectors) {
- Injector injector = injectors.get(language);
- if (injector == null) {
- injectors.put(language, injector = createInjector(language));
- }
- return injector;
- }
- }
-
- protected Injector createInjector(String language) {
- try {
- Module runtimeModule = getRuntimeModule(language);
- Module sharedStateModule = getSharedStateModule();
- Module uiModule = getUiModule(language);
- Module mergedModule = Modules2.mixin(runtimeModule, sharedStateModule, uiModule);
- return Guice.createInjector(mergedModule);
- } catch (Exception e) {
- logger.error("Failed to create injector for " + language);
- logger.error(e.getMessage(), e);
- throw new RuntimeException("Failed to create injector for " + language, e);
- }
- }
-
- protected Module getRuntimeModule(String grammar) {
- if (ORG_ECLIPSE_PAPYRUS_UML_TEXTEDIT_PORT_XTEXT_UMLPORT.equals(grammar)) {
- return new org.eclipse.papyrus.uml.textedit.port.xtext.UmlPortRuntimeModule();
- }
-
- throw new IllegalArgumentException(grammar);
- }
-
- protected Module getUiModule(String grammar) {
- if (ORG_ECLIPSE_PAPYRUS_UML_TEXTEDIT_PORT_XTEXT_UMLPORT.equals(grammar)) {
- return new org.eclipse.papyrus.uml.textedit.port.xtext.ui.UmlPortUiModule(this);
- }
-
- throw new IllegalArgumentException(grammar);
- }
-
- protected Module getSharedStateModule() {
- return new SharedStateModule();
- }
-
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.ui.internal;
+
+import java.util.Collections;
+import java.util.Map;
+
+import org.apache.log4j.Logger;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.eclipse.xtext.ui.shared.SharedStateModule;
+import org.eclipse.xtext.util.Modules2;
+import org.osgi.framework.BundleContext;
+
+import com.google.common.collect.Maps;
+import com.google.inject.Guice;
+import com.google.inject.Injector;
+import com.google.inject.Module;
+
+/**
+ * This class was generated. Customizations should only happen in a newly
+ * introduced subclass.
+ */
+public class UmlPortActivator extends AbstractUIPlugin {
+
+ public static final String ORG_ECLIPSE_PAPYRUS_UML_TEXTEDIT_PORT_XTEXT_UMLPORT = "org.eclipse.papyrus.uml.textedit.port.xtext.UmlPort";
+
+ private static final Logger logger = Logger.getLogger(UmlPortActivator.class);
+
+ private static UmlPortActivator INSTANCE;
+
+ private Map<String, Injector> injectors = Collections.synchronizedMap(Maps.<String, Injector> newHashMapWithExpectedSize(1));
+
+ @Override
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ INSTANCE = this;
+ }
+
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ injectors.clear();
+ INSTANCE = null;
+ super.stop(context);
+ }
+
+ public static UmlPortActivator getInstance() {
+ return INSTANCE;
+ }
+
+ public Injector getInjector(String language) {
+ synchronized (injectors) {
+ Injector injector = injectors.get(language);
+ if (injector == null) {
+ injectors.put(language, injector = createInjector(language));
+ }
+ return injector;
+ }
+ }
+
+ protected Injector createInjector(String language) {
+ try {
+ Module runtimeModule = getRuntimeModule(language);
+ Module sharedStateModule = getSharedStateModule();
+ Module uiModule = getUiModule(language);
+ Module mergedModule = Modules2.mixin(runtimeModule, sharedStateModule, uiModule);
+ return Guice.createInjector(mergedModule);
+ } catch (Exception e) {
+ logger.error("Failed to create injector for " + language);
+ logger.error(e.getMessage(), e);
+ throw new RuntimeException("Failed to create injector for " + language, e);
+ }
+ }
+
+ protected Module getRuntimeModule(String grammar) {
+ if (ORG_ECLIPSE_PAPYRUS_UML_TEXTEDIT_PORT_XTEXT_UMLPORT.equals(grammar)) {
+ return new org.eclipse.papyrus.uml.textedit.port.xtext.UmlPortRuntimeModule();
+ }
+
+ throw new IllegalArgumentException(grammar);
+ }
+
+ protected Module getUiModule(String grammar) {
+ if (ORG_ECLIPSE_PAPYRUS_UML_TEXTEDIT_PORT_XTEXT_UMLPORT.equals(grammar)) {
+ return new org.eclipse.papyrus.uml.textedit.port.xtext.ui.UmlPortUiModule(this);
+ }
+
+ throw new IllegalArgumentException(grammar);
+ }
+
+ protected Module getSharedStateModule() {
+ return new SharedStateModule();
+ }
+
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contribution/PortXtextDirectEditorConfiguration.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contribution/PortXtextDirectEditorConfiguration.java
index c6b4f08f381..9ee202006f0 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contribution/PortXtextDirectEditorConfiguration.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contribution/PortXtextDirectEditorConfiguration.java
@@ -9,6 +9,7 @@
*
* Contributors:
* CEA LIST - Initial API and implementation
+ * Nicolas FAUVERGUE (ALL4TEC) nicolas.fauvergue@all4tec.net - Bug 465198
*
*****************************************************************************/
package org.eclipse.papyrus.uml.textedit.port.xtext.ui.contribution;
@@ -34,6 +35,7 @@ import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule;
import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.Value;
import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.util.UmlPortSwitch;
import org.eclipse.papyrus.uml.xtext.integration.DefaultXtextDirectEditorConfiguration;
+import org.eclipse.papyrus.uml.xtext.integration.MultiplicityXTextParserUtils;
import org.eclipse.uml2.uml.Classifier;
import org.eclipse.uml2.uml.LiteralBoolean;
import org.eclipse.uml2.uml.LiteralInteger;
@@ -59,7 +61,6 @@ import com.google.inject.Injector;
*/
public class PortXtextDirectEditorConfiguration extends DefaultXtextDirectEditorConfiguration implements ICustomDirectEditorConfiguration {
-
@Override
public Injector getInjector() {
return UmlPortActivator.getInstance().getInjector(UmlPortActivator.ORG_ECLIPSE_PAPYRUS_UML_TEXTEDIT_PORT_XTEXT_UMLPORT);
@@ -138,36 +139,8 @@ public class PortXtextDirectEditorConfiguration extends DefaultXtextDirectEditor
}
if (portRuleObject.getMultiplicity() != null) {
- int newLowerBound = 1;
- int newUpperBound = 1;
-
- if (portRuleObject.getMultiplicity().getBounds().size() == 1) {
- String tempBound = portRuleObject.getMultiplicity().getBounds().get(0).getValue();
- if (tempBound.equals("*")) {
- newLowerBound = 0;
- newUpperBound = -1;
- } else {
- newLowerBound = new Integer(tempBound).intValue();
- newUpperBound = new Integer(tempBound).intValue();
- }
- } else { // size == 2
- String tempBound = portRuleObject.getMultiplicity().getBounds().get(0).getValue();
- newLowerBound = new Integer(tempBound).intValue();
- tempBound = portRuleObject.getMultiplicity().getBounds().get(1).getValue();
- if (tempBound.equals("*")) {
- newUpperBound = -1;
- } else {
- newUpperBound = new Integer(tempBound).intValue();
- }
- }
-
- SetRequest setLowerRequest = new SetRequest(property, UMLPackage.eINSTANCE.getMultiplicityElement_Lower(), newLowerBound);
- ICommand setLowerCommand = provider.getEditCommand(setLowerRequest);
- updateCommand.add(setLowerCommand);
-
- SetRequest setUpperRequest = new SetRequest(property, UMLPackage.eINSTANCE.getMultiplicityElement_Upper(), newUpperBound);
- ICommand setUpperCommand = provider.getEditCommand(setUpperRequest);
- updateCommand.add(setUpperCommand);
+ // Manage the lower and the upper value specifications
+ updateCommand.add(updateMultiplicityCommand(provider, property, portRuleObject));
}
if (portRuleObject.getDefault() != null) {
@@ -343,4 +316,24 @@ public class PortXtextDirectEditorConfiguration extends DefaultXtextDirectEditor
return "not a Property";
}
+ /**
+ * This allow to update the multiplicity lower and upper value specifications.
+ *
+ * @param provider
+ * The provider.
+ * @param eObject
+ * The object to update.
+ * @param portRuleObject
+ * The port rule object of the xtext parsed text.
+ * @return The command to update the multiplicity.
+ */
+ private ICommand updateMultiplicityCommand(final IElementEditService provider, final EObject eObject, final PortRule portRuleObject) {
+ ICommand result = null;
+ if (portRuleObject.getMultiplicity().getBounds().size() == 1) {
+ result = MultiplicityXTextParserUtils.updateOneMultiplicityCommand(provider, eObject, portRuleObject.getMultiplicity().getBounds().get(0).getValue());
+ } else { // size == 2
+ result = MultiplicityXTextParserUtils.updateTwoMultiplicityCommand(provider, eObject, portRuleObject.getMultiplicity().getBounds().get(0).getValue(), portRuleObject.getMultiplicity().getBounds().get(1).getValue());
+ }
+ return result;
+ }
}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contribution/UMLPortEditorPropertyUtil.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contribution/UMLPortEditorPropertyUtil.java
index a21274d1c91..e7189a2d611 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contribution/UMLPortEditorPropertyUtil.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui/src/org/eclipse/papyrus/uml/textedit/port/xtext/ui/contribution/UMLPortEditorPropertyUtil.java
@@ -1,113 +1,113 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Patrick Tessier (CEA LIST) patrick.tessier@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.textedit.port.xtext.ui.contribution;
-
-import org.eclipse.papyrus.uml.alf.naming.ALFIDConverter;
-import org.eclipse.papyrus.uml.tools.utils.MultiplicityElementUtil;
-import org.eclipse.papyrus.uml.tools.utils.NamedElementUtil;
-import org.eclipse.papyrus.uml.tools.utils.PortUtil;
-import org.eclipse.papyrus.uml.tools.utils.PropertyUtil;
-import org.eclipse.papyrus.uml.tools.utils.TypeUtil;
-import org.eclipse.papyrus.uml.xtext.integration.CompletionProposalUtils;
-import org.eclipse.uml2.uml.Port;
-import org.eclipse.uml2.uml.util.UMLSwitch;
-
-public class UMLPortEditorPropertyUtil extends PortUtil {
-
- public static String getLabel(Port port) {
- StringBuffer buffer = new StringBuffer();
- // visibility
- buffer.append(NamedElementUtil.getVisibilityAsSign(port));
- buffer.append(" ");
-
- // derived property
- buffer.append(getDerived(port));
-
- // name
- buffer.append(ALFIDConverter.nameToID(getName(port)));
-
- // is conjugated
- if (port.isConjugated()) {
- buffer.append(" : ~");
- } else {
- buffer.append(" : ");
- }
- // type
- if (port.getType() != null) {
-
- buffer.append(CompletionProposalUtils.getQualifiedNameLabelWithSufficientDepth(port.getType(),
- port.getNamespace()));
- } else {
- buffer.append(TypeUtil.UNDEFINED_TYPE_NAME);
- }
-
- // multiplicity -> do not display [1]
- String multiplicity = MultiplicityElementUtil.getMultiplicityAsString(port);
- if (!multiplicity.trim().equals("[1]")) {
- buffer.append(multiplicity);
- }
- buffer.append(" ");
-
- // property modifiers
- String modifiers = PropertyUtil.getModifiersAsString(port, false);
- if (!"".equals(modifiers)) {
- buffer.append(modifiers);
- buffer.append(" ");
- }
-
- // default value
- if (port.getDefaultValue() != null) {
- String defaultValue = new UMLSwitch<String>() {
- @Override
- public String caseLiteralBoolean(org.eclipse.uml2.uml.LiteralBoolean object) {
- return Boolean.toString(object.booleanValue());
- }
-
- @Override
- public String caseLiteralInteger(org.eclipse.uml2.uml.LiteralInteger object) {
- return Integer.toString(object.integerValue());
- }
-
- @Override
- public String caseLiteralNull(org.eclipse.uml2.uml.LiteralNull object) {
- return "null"; //$NON-NLS-1$
- }
-
- @Override
- public String caseLiteralString(org.eclipse.uml2.uml.LiteralString object) {
- return "\"" + object.stringValue() + "\"";
- }
-
- @Override
- public String caseLiteralReal(org.eclipse.uml2.uml.LiteralReal object) {
- return Double.toString(object.getValue());
- }
-
- @Override
- public String caseLiteralUnlimitedNatural(org.eclipse.uml2.uml.LiteralUnlimitedNatural object) {
- return object.getValue() < 0 ? "*" : Integer.toString(object.getValue());
- }
-
- }.doSwitch(port.getDefaultValue());
-
- if (defaultValue != null) {
- buffer.append("= ");
- buffer.append(defaultValue);
- }
- }
-
- return buffer.toString();
- }
-
-}
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Patrick Tessier (CEA LIST) patrick.tessier@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.textedit.port.xtext.ui.contribution;
+
+import org.eclipse.papyrus.uml.alf.naming.ALFIDConverter;
+import org.eclipse.papyrus.uml.tools.utils.MultiplicityElementUtil;
+import org.eclipse.papyrus.uml.tools.utils.NamedElementUtil;
+import org.eclipse.papyrus.uml.tools.utils.PortUtil;
+import org.eclipse.papyrus.uml.tools.utils.PropertyUtil;
+import org.eclipse.papyrus.uml.tools.utils.TypeUtil;
+import org.eclipse.papyrus.uml.xtext.integration.CompletionProposalUtils;
+import org.eclipse.uml2.uml.Port;
+import org.eclipse.uml2.uml.util.UMLSwitch;
+
+public class UMLPortEditorPropertyUtil extends PortUtil {
+
+ public static String getLabel(Port port) {
+ StringBuffer buffer = new StringBuffer();
+ // visibility
+ buffer.append(NamedElementUtil.getVisibilityAsSign(port));
+ buffer.append(" ");
+
+ // derived property
+ buffer.append(getDerived(port));
+
+ // name
+ buffer.append(ALFIDConverter.nameToID(getName(port)));
+
+ // is conjugated
+ if (port.isConjugated()) {
+ buffer.append(" : ~");
+ } else {
+ buffer.append(" : ");
+ }
+ // type
+ if (port.getType() != null) {
+
+ buffer.append(CompletionProposalUtils.getQualifiedNameLabelWithSufficientDepth(port.getType(),
+ port.getNamespace()));
+ } else {
+ buffer.append(TypeUtil.UNDEFINED_TYPE_NAME);
+ }
+
+ // multiplicity -> do not display [1]
+ String multiplicity = MultiplicityElementUtil.getMultiplicityAsString(port, true);
+ if (!multiplicity.trim().equals("[1]")) {
+ buffer.append(multiplicity);
+ }
+ buffer.append(" ");
+
+ // property modifiers
+ String modifiers = PropertyUtil.getModifiersAsString(port, false);
+ if (!"".equals(modifiers)) {
+ buffer.append(modifiers);
+ buffer.append(" ");
+ }
+
+ // default value
+ if (port.getDefaultValue() != null) {
+ String defaultValue = new UMLSwitch<String>() {
+ @Override
+ public String caseLiteralBoolean(org.eclipse.uml2.uml.LiteralBoolean object) {
+ return Boolean.toString(object.booleanValue());
+ }
+
+ @Override
+ public String caseLiteralInteger(org.eclipse.uml2.uml.LiteralInteger object) {
+ return Integer.toString(object.integerValue());
+ }
+
+ @Override
+ public String caseLiteralNull(org.eclipse.uml2.uml.LiteralNull object) {
+ return "null"; //$NON-NLS-1$
+ }
+
+ @Override
+ public String caseLiteralString(org.eclipse.uml2.uml.LiteralString object) {
+ return "\"" + object.stringValue() + "\"";
+ }
+
+ @Override
+ public String caseLiteralReal(org.eclipse.uml2.uml.LiteralReal object) {
+ return Double.toString(object.getValue());
+ }
+
+ @Override
+ public String caseLiteralUnlimitedNatural(org.eclipse.uml2.uml.LiteralUnlimitedNatural object) {
+ return object.getValue() < 0 ? "*" : Integer.toString(object.getValue());
+ }
+
+ }.doSwitch(port.getDefaultValue());
+
+ if (defaultValue != null) {
+ buffer.append("= ");
+ buffer.append(defaultValue);
+ }
+ }
+
+ return buffer.toString();
+ }
+
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/.launch/Generate Language Infrastructure (org.eclipse.papyrus.uml.textedit.port.xtext).launch b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/.launch/Generate Language Infrastructure (org.eclipse.papyrus.uml.textedit.port.xtext).launch
index 52729232098..21372fa38fb 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/.launch/Generate Language Infrastructure (org.eclipse.papyrus.uml.textedit.port.xtext).launch
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/.launch/Generate Language Infrastructure (org.eclipse.papyrus.uml.textedit.port.xtext).launch
@@ -7,10 +7,6 @@
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
-<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
-<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
-</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="src/UmlPort/GenerateUmlPort.mwe2"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.papyrus.uml.textedit.port.xtext"/>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/.launch/Launch Runtime Eclipse.launch b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/.launch/Launch Runtime Eclipse.launch
index 3063274ea95..15e123b6fc8 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/.launch/Launch Runtime Eclipse.launch
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/.launch/Launch Runtime Eclipse.launch
@@ -1,34 +1,30 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench">
-<booleanAttribute key="append.args" value="true"/>
-<booleanAttribute key="askclear" value="true"/>
-<booleanAttribute key="automaticAdd" value="true"/>
-<booleanAttribute key="automaticValidate" value="false"/>
-<stringAttribute key="bad_container_name" value="/org.eclipse.papyrus.uml.textedit.port.xtext/.launch/"/>
-<stringAttribute key="bootstrap" value=""/>
-<stringAttribute key="checked" value="[NONE]"/>
-<booleanAttribute key="clearConfig" value="false"/>
-<booleanAttribute key="clearws" value="false"/>
-<booleanAttribute key="clearwslog" value="false"/>
-<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/Launch Runtime Eclipse"/>
-<booleanAttribute key="default" value="true"/>
-<booleanAttribute key="includeOptional" value="true"/>
-<stringAttribute key="location" value="${workspace_loc}/../runtime-EclipseXtext"/>
-<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
-<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
-</listAttribute>
-<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}"/>
-<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xms40m -Xmx512m -XX:MaxPermSize=256m"/>
-<stringAttribute key="pde.version" value="3.3"/>
-<stringAttribute key="product" value="org.eclipse.platform.ide"/>
-<booleanAttribute key="show_selected_only" value="false"/>
-<stringAttribute key="templateConfig" value="${target_home}/configuration/config.ini"/>
-<booleanAttribute key="tracing" value="false"/>
-<booleanAttribute key="useDefaultConfig" value="true"/>
-<booleanAttribute key="useDefaultConfigArea" value="true"/>
-<booleanAttribute key="useProduct" value="true"/>
-<booleanAttribute key="usefeatures" value="false"/>
-</launchConfiguration>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench">
+<booleanAttribute key="append.args" value="true"/>
+<booleanAttribute key="askclear" value="true"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bad_container_name" value="/org.eclipse.papyrus.uml.textedit.port.xtext/.launch/"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="false"/>
+<booleanAttribute key="clearws" value="false"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/Launch Runtime Eclipse"/>
+<booleanAttribute key="default" value="true"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../runtime-EclipseXtext"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xms40m -Xmx512m -XX:MaxPermSize=256m"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="org.eclipse.platform.ide"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<stringAttribute key="templateConfig" value="${target_home}/configuration/config.ini"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="true"/>
+<booleanAttribute key="useProduct" value="true"/>
+<booleanAttribute key="usefeatures" value="false"/>
+</launchConfiguration>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/AbstractUmlPortRuntimeModule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/AbstractUmlPortRuntimeModule.java
index c76a86b5db9..1f1ab978d79 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/AbstractUmlPortRuntimeModule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/AbstractUmlPortRuntimeModule.java
@@ -1,172 +1,156 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext;
-
-import java.util.Properties;
-
-import org.eclipse.xtext.Constants;
-import org.eclipse.xtext.service.DefaultRuntimeModule;
-
-import com.google.inject.Binder;
-import com.google.inject.name.Names;
-
-/**
- * Manual modifications go to {org.eclipse.papyrus.uml.textedit.port.xtext.UmlPortRuntimeModule}
- */
-@SuppressWarnings("all")
-public abstract class AbstractUmlPortRuntimeModule extends DefaultRuntimeModule {
-
- protected Properties properties = null;
-
- @Override
- public void configure(Binder binder) {
- properties = tryBindProperties(binder, "org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.properties");
- super.configure(binder);
- }
-
- public void configureLanguageName(Binder binder) {
- binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.eclipse.papyrus.uml.textedit.port.xtext.UmlPort");
- }
-
- public void configureFileExtensions(Binder binder) {
- if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null) {
- binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("umlport");
- }
- }
-
- // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
- public java.lang.ClassLoader bindClassLoaderToInstance() {
- return getClass().getClassLoader();
- }
-
- // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
- public Class<? extends org.eclipse.xtext.IGrammarAccess> bindIGrammarAccess() {
- return org.eclipse.papyrus.uml.textedit.port.xtext.services.UmlPortGrammarAccess.class;
- }
-
- // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
- @Override
- public Class<? extends org.eclipse.xtext.serializer.sequencer.ISemanticSequencer> bindISemanticSequencer() {
- return org.eclipse.papyrus.uml.textedit.port.xtext.serializer.UmlPortSemanticSequencer.class;
- }
-
- // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
- public Class<? extends org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer> bindISyntacticSequencer() {
- return org.eclipse.papyrus.uml.textedit.port.xtext.serializer.UmlPortSyntacticSequencer.class;
- }
-
- // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
- @Override
- public Class<? extends org.eclipse.xtext.serializer.ISerializer> bindISerializer() {
- return org.eclipse.xtext.serializer.impl.Serializer.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public Class<? extends org.eclipse.xtext.parser.IParser> bindIParser() {
- return org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.UmlPortParser.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- @Override
- public Class<? extends org.eclipse.xtext.parser.ITokenToStringConverter> bindITokenToStringConverter() {
- return org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public Class<? extends org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
- return org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.UmlPortAntlrTokenFileProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public Class<? extends org.eclipse.xtext.parser.antlr.Lexer> bindLexer() {
- return org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal.InternalUmlPortLexer.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public com.google.inject.Provider<org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal.InternalUmlPortLexer> provideInternalUmlPortLexer() {
- return org.eclipse.xtext.parser.antlr.LexerProvider.create(org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal.InternalUmlPortLexer.class);
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public void configureRuntimeLexer(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.parser.antlr.LexerBindings.RUNTIME))
- .to(org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal.InternalUmlPortLexer.class);
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- @Override
- public Class<? extends org.eclipse.xtext.parser.antlr.ITokenDefProvider> bindITokenDefProvider() {
- return org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.validation.JavaValidatorFragment
- @org.eclipse.xtext.service.SingletonBinding(eager = true)
- public Class<? extends org.eclipse.papyrus.uml.textedit.port.xtext.validation.UmlPortJavaValidator> bindUmlPortJavaValidator() {
- return org.eclipse.papyrus.uml.textedit.port.xtext.validation.UmlPortJavaValidator.class;
- }
-
- // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
- @Override
- public Class<? extends org.eclipse.xtext.scoping.IScopeProvider> bindIScopeProvider() {
- return org.eclipse.papyrus.uml.textedit.port.xtext.scoping.UmlPortScopeProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
- public void configureIScopeProviderDelegate(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.NAMED_DELEGATE))
- .to(org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider.class);
- }
-
- // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
- @Override
- public Class<? extends org.eclipse.xtext.scoping.IGlobalScopeProvider> bindIGlobalScopeProvider() {
- return org.eclipse.xtext.scoping.impl.DefaultGlobalScopeProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
- public void configureIgnoreCaseLinking(com.google.inject.Binder binder) {
- binder.bindConstant().annotatedWith(org.eclipse.xtext.scoping.IgnoreCaseLinking.class).to(false);
- }
-
- // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment
- @Override
- public Class<? extends org.eclipse.xtext.naming.IQualifiedNameProvider> bindIQualifiedNameProvider() {
- return org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- @Override
- public Class<? extends org.eclipse.xtext.resource.IContainer.Manager> bindIContainer$Manager() {
- return org.eclipse.xtext.resource.containers.StateBasedContainerManager.class;
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public Class<? extends org.eclipse.xtext.resource.containers.IAllContainersState.Provider> bindIAllContainersState$Provider() {
- return org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- @Override
- public void configureIResourceDescriptions(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public void configureIResourceDescriptionsPersisted(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS))
- .to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
- }
-
- // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
- public Class<? extends org.eclipse.xtext.generator.IGenerator> bindIGenerator() {
- return org.eclipse.papyrus.uml.textedit.port.xtext.generator.UmlPortGenerator.class;
- }
-
- // contributed by org.eclipse.xtext.generator.formatting.FormatterFragment
- @Override
- public Class<? extends org.eclipse.xtext.formatting.IFormatter> bindIFormatter() {
- return org.eclipse.papyrus.uml.textedit.port.xtext.formatting.UmlPortFormatter.class;
- }
-
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext;
+
+import java.util.Properties;
+
+import org.eclipse.xtext.Constants;
+
+import com.google.inject.Binder;
+import com.google.inject.name.Names;
+
+/**
+ * Manual modifications go to {org.eclipse.papyrus.uml.textedit.port.xtext.UmlPortRuntimeModule}
+ */
+@SuppressWarnings("all")
+public abstract class AbstractUmlPortRuntimeModule extends org.eclipse.xtext.service.DefaultRuntimeModule {
+
+ protected Properties properties = null;
+
+ @Override
+ public void configure(Binder binder) {
+ properties = tryBindProperties(binder, "org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.properties");
+ super.configure(binder);
+ }
+
+ public void configureLanguageName(Binder binder) {
+ binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.eclipse.papyrus.uml.textedit.port.xtext.UmlPort");
+ }
+
+ public void configureFileExtensions(Binder binder) {
+ if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null)
+ binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("umlport");
+ }
+
+ // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
+ public java.lang.ClassLoader bindClassLoaderToInstance() {
+ return getClass().getClassLoader();
+ }
+
+ // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
+ public Class<? extends org.eclipse.xtext.IGrammarAccess> bindIGrammarAccess() {
+ return org.eclipse.papyrus.uml.textedit.port.xtext.services.UmlPortGrammarAccess.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
+ public Class<? extends org.eclipse.xtext.serializer.sequencer.ISemanticSequencer> bindISemanticSequencer() {
+ return org.eclipse.papyrus.uml.textedit.port.xtext.serializer.UmlPortSemanticSequencer.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
+ public Class<? extends org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer> bindISyntacticSequencer() {
+ return org.eclipse.papyrus.uml.textedit.port.xtext.serializer.UmlPortSyntacticSequencer.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
+ public Class<? extends org.eclipse.xtext.serializer.ISerializer> bindISerializer() {
+ return org.eclipse.xtext.serializer.impl.Serializer.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.IParser> bindIParser() {
+ return org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.UmlPortParser.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.ITokenToStringConverter> bindITokenToStringConverter() {
+ return org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
+ return org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.UmlPortAntlrTokenFileProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.antlr.Lexer> bindLexer() {
+ return org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal.InternalUmlPortLexer.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public com.google.inject.Provider<org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal.InternalUmlPortLexer> provideInternalUmlPortLexer() {
+ return org.eclipse.xtext.parser.antlr.LexerProvider.create(org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal.InternalUmlPortLexer.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public void configureRuntimeLexer(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.parser.antlr.LexerBindings.RUNTIME)).to(org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal.InternalUmlPortLexer.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.antlr.ITokenDefProvider> bindITokenDefProvider() {
+ return org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.validation.JavaValidatorFragment
+ @org.eclipse.xtext.service.SingletonBinding(eager=true) public Class<? extends org.eclipse.papyrus.uml.textedit.port.xtext.validation.UmlPortJavaValidator> bindUmlPortJavaValidator() {
+ return org.eclipse.papyrus.uml.textedit.port.xtext.validation.UmlPortJavaValidator.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
+ public Class<? extends org.eclipse.xtext.scoping.IScopeProvider> bindIScopeProvider() {
+ return org.eclipse.papyrus.uml.textedit.port.xtext.scoping.UmlPortScopeProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
+ public void configureIScopeProviderDelegate(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
+ public Class<? extends org.eclipse.xtext.scoping.IGlobalScopeProvider> bindIGlobalScopeProvider() {
+ return org.eclipse.xtext.scoping.impl.DefaultGlobalScopeProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
+ public void configureIgnoreCaseLinking(com.google.inject.Binder binder) {
+ binder.bindConstant().annotatedWith(org.eclipse.xtext.scoping.IgnoreCaseLinking.class).to(false);
+ }
+
+ // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment
+ public Class<? extends org.eclipse.xtext.naming.IQualifiedNameProvider> bindIQualifiedNameProvider() {
+ return org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public Class<? extends org.eclipse.xtext.resource.IContainer.Manager> bindIContainer$Manager() {
+ return org.eclipse.xtext.resource.containers.StateBasedContainerManager.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public Class<? extends org.eclipse.xtext.resource.containers.IAllContainersState.Provider> bindIAllContainersState$Provider() {
+ return org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public void configureIResourceDescriptions(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public void configureIResourceDescriptionsPersisted(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
+ public Class<? extends org.eclipse.xtext.generator.IGenerator> bindIGenerator() {
+ return org.eclipse.papyrus.uml.textedit.port.xtext.generator.UmlPortGenerator.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.formatting.FormatterFragment
+ public Class<? extends org.eclipse.xtext.formatting.IFormatter> bindIFormatter() {
+ return org.eclipse.papyrus.uml.textedit.port.xtext.formatting.UmlPortFormatter.class;
+ }
+
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.genmodel b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.genmodel
index c9defbddabc..eee001f4782 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.genmodel
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.genmodel
@@ -1,90 +1,90 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen"
- editDirectory="/org.eclipse.papyrus.uml.textedit.port.xtext.edit/src" editorDirectory="/org.eclipse.papyrus.uml.textedit.port.xtext.editor/src"
- modelPluginID="org.eclipse.papyrus.uml.textedit.port.xtext" forceOverwrite="true"
- modelName="UmlPort" updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
- complianceLevel="5.0" copyrightFields="false" editPluginID="org.eclipse.papyrus.uml.textedit.port.xtext.edit"
- editorPluginID="org.eclipse.papyrus.uml.textedit.port.xtext.editor" runtimeVersion="2.10"
- usedGenPackages="platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore platform:/resource/org.eclipse.uml2.uml/model/UML.genmodel#//uml">
- <genPackages prefix="UmlPort" basePackage="org.eclipse.papyrus.uml.textedit.port.xtext"
- disposableProviderFactory="true" ecorePackage="UmlPort.ecore#/">
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="UmlPort.ecore#//VisibilityKind">
- <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//VisibilityKind/public"/>
- <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//VisibilityKind/private"/>
- <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//VisibilityKind/protected"/>
- <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//VisibilityKind/package"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="UmlPort.ecore#//ModifierKind">
- <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//ModifierKind/readOnly"/>
- <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//ModifierKind/union"/>
- <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//ModifierKind/ordered"/>
- <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//ModifierKind/unique"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="UmlPort.ecore#//BooleanLiterals">
- <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//BooleanLiterals/true"/>
- <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//BooleanLiterals/false"/>
- </genEnums>
- <genClasses ecoreClass="UmlPort.ecore#//PortRule">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//PortRule/visibility"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//PortRule/derived"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//PortRule/name"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//PortRule/conjugated"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//PortRule/type"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//PortRule/typeUndefined"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//PortRule/multiplicity"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//PortRule/modifiers"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//PortRule/default"/>
- </genClasses>
- <genClasses ecoreClass="UmlPort.ecore#//VisibilityRule">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//VisibilityRule/visibility"/>
- </genClasses>
- <genClasses ecoreClass="UmlPort.ecore#//TypeRule">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//TypeRule/path"/>
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference UmlPort.ecore#//TypeRule/type"/>
- </genClasses>
- <genClasses ecoreClass="UmlPort.ecore#//QualifiedName">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference UmlPort.ecore#//QualifiedName/path"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//QualifiedName/remaining"/>
- </genClasses>
- <genClasses ecoreClass="UmlPort.ecore#//MultiplicityRule">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//MultiplicityRule/bounds"/>
- </genClasses>
- <genClasses ecoreClass="UmlPort.ecore#//BoundSpecification">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//BoundSpecification/value"/>
- </genClasses>
- <genClasses ecoreClass="UmlPort.ecore#//ModifiersRule">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//ModifiersRule/values"/>
- </genClasses>
- <genClasses ecoreClass="UmlPort.ecore#//ModifierSpecification">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//ModifierSpecification/value"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//ModifierSpecification/redefines"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//ModifierSpecification/subsets"/>
- </genClasses>
- <genClasses ecoreClass="UmlPort.ecore#//RedefinesRule">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference UmlPort.ecore#//RedefinesRule/port"/>
- </genClasses>
- <genClasses ecoreClass="UmlPort.ecore#//SubsetsRule">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference UmlPort.ecore#//SubsetsRule/port"/>
- </genClasses>
- <genClasses ecoreClass="UmlPort.ecore#//DefaultValueRule">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//DefaultValueRule/default"/>
- </genClasses>
- <genClasses ecoreClass="UmlPort.ecore#//Value"/>
- <genClasses ecoreClass="UmlPort.ecore#//IntValue">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//IntValue/literalInteger"/>
- </genClasses>
- <genClasses ecoreClass="UmlPort.ecore#//StringValue">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//StringValue/literalString"/>
- </genClasses>
- <genClasses ecoreClass="UmlPort.ecore#//BooleanValue">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//BooleanValue/literalBoolean"/>
- </genClasses>
- <genClasses ecoreClass="UmlPort.ecore#//RealValue">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//RealValue/integer"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//RealValue/fraction"/>
- </genClasses>
- <genClasses ecoreClass="UmlPort.ecore#//NullValue"/>
- <genClasses ecoreClass="UmlPort.ecore#//NoValue"/>
- </genPackages>
-</genmodel:GenModel>
+<?xml version="1.0" encoding="UTF-8"?>
+<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
+ xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen"
+ editDirectory="/org.eclipse.papyrus.uml.textedit.port.xtext.edit/src" editorDirectory="/org.eclipse.papyrus.uml.textedit.port.xtext.editor/src"
+ modelPluginID="org.eclipse.papyrus.uml.textedit.port.xtext" forceOverwrite="true"
+ modelName="UmlPort" updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
+ complianceLevel="6.0" copyrightFields="false" editPluginID="org.eclipse.papyrus.uml.textedit.port.xtext.edit"
+ editorPluginID="org.eclipse.papyrus.uml.textedit.port.xtext.editor" runtimeVersion="2.10"
+ usedGenPackages="platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore platform:/resource/org.eclipse.uml2.uml/model/UML.genmodel#//uml">
+ <genPackages prefix="UmlPort" basePackage="org.eclipse.papyrus.uml.textedit.port.xtext"
+ disposableProviderFactory="true" ecorePackage="UmlPort.ecore#/">
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="UmlPort.ecore#//VisibilityKind">
+ <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//VisibilityKind/public"/>
+ <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//VisibilityKind/private"/>
+ <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//VisibilityKind/protected"/>
+ <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//VisibilityKind/package"/>
+ </genEnums>
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="UmlPort.ecore#//ModifierKind">
+ <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//ModifierKind/readOnly"/>
+ <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//ModifierKind/union"/>
+ <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//ModifierKind/ordered"/>
+ <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//ModifierKind/unique"/>
+ </genEnums>
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="UmlPort.ecore#//BooleanLiterals">
+ <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//BooleanLiterals/true"/>
+ <genEnumLiterals ecoreEnumLiteral="UmlPort.ecore#//BooleanLiterals/false"/>
+ </genEnums>
+ <genClasses ecoreClass="UmlPort.ecore#//PortRule">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//PortRule/visibility"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//PortRule/derived"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//PortRule/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//PortRule/conjugated"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//PortRule/type"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//PortRule/typeUndefined"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//PortRule/multiplicity"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//PortRule/modifiers"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//PortRule/default"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlPort.ecore#//VisibilityRule">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//VisibilityRule/visibility"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlPort.ecore#//TypeRule">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//TypeRule/path"/>
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference UmlPort.ecore#//TypeRule/type"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlPort.ecore#//QualifiedName">
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference UmlPort.ecore#//QualifiedName/path"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//QualifiedName/remaining"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlPort.ecore#//MultiplicityRule">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//MultiplicityRule/bounds"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlPort.ecore#//BoundSpecification">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//BoundSpecification/value"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlPort.ecore#//ModifiersRule">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//ModifiersRule/values"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlPort.ecore#//ModifierSpecification">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//ModifierSpecification/value"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//ModifierSpecification/redefines"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//ModifierSpecification/subsets"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlPort.ecore#//RedefinesRule">
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference UmlPort.ecore#//RedefinesRule/port"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlPort.ecore#//SubsetsRule">
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference UmlPort.ecore#//SubsetsRule/port"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlPort.ecore#//DefaultValueRule">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlPort.ecore#//DefaultValueRule/default"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlPort.ecore#//Value"/>
+ <genClasses ecoreClass="UmlPort.ecore#//IntValue">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//IntValue/literalInteger"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlPort.ecore#//StringValue">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//StringValue/literalString"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlPort.ecore#//BooleanValue">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//BooleanValue/literalBoolean"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlPort.ecore#//RealValue">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//RealValue/integer"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlPort.ecore#//RealValue/fraction"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlPort.ecore#//NullValue"/>
+ <genClasses ecoreClass="UmlPort.ecore#//NoValue"/>
+ </genPackages>
+</genmodel:GenModel>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.xtextbin b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.xtextbin
index 4e2bacf1300..27893469d7e 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.xtextbin
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.xtextbin
Binary files differ
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPortStandaloneSetupGenerated.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPortStandaloneSetupGenerated.java
index 1c81acb1963..09b7d42bf19 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPortStandaloneSetupGenerated.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPortStandaloneSetupGenerated.java
@@ -1,46 +1,46 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext;
-
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.xtext.ISetup;
-import org.eclipse.emf.ecore.resource.Resource;
-
-import com.google.inject.Guice;
-import com.google.inject.Injector;
-
-/**
- * Generated from StandaloneSetup.xpt!
- */
-@SuppressWarnings("all")
-public class UmlPortStandaloneSetupGenerated implements ISetup {
-
- @Override
- public Injector createInjectorAndDoEMFRegistration() {
- org.eclipse.papyrus.uml.alf.CommonStandaloneSetup.doSetup();
-
- Injector injector = createInjector();
- register(injector);
- return injector;
- }
-
- public Injector createInjector() {
- return Guice.createInjector(new org.eclipse.papyrus.uml.textedit.port.xtext.UmlPortRuntimeModule());
- }
-
- public void register(Injector injector) {
- if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort")) {
- EPackage.Registry.INSTANCE.put("http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort", org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage.eINSTANCE);
- }
-
- org.eclipse.xtext.resource.IResourceFactory resourceFactory = injector.getInstance(org.eclipse.xtext.resource.IResourceFactory.class);
- org.eclipse.xtext.resource.IResourceServiceProvider serviceProvider = injector.getInstance(org.eclipse.xtext.resource.IResourceServiceProvider.class);
- Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("umlport", resourceFactory);
- org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("umlport", serviceProvider);
-
-
-
-
- }
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext;
+
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.xtext.ISetup;
+import org.eclipse.emf.ecore.resource.Resource;
+
+import com.google.inject.Guice;
+import com.google.inject.Injector;
+
+/**
+ * Generated from StandaloneSetup.xpt!
+ */
+@SuppressWarnings("all")
+public class UmlPortStandaloneSetupGenerated implements ISetup {
+
+ @Override
+ public Injector createInjectorAndDoEMFRegistration() {
+ org.eclipse.papyrus.uml.alf.CommonStandaloneSetup.doSetup();
+
+ Injector injector = createInjector();
+ register(injector);
+ return injector;
+ }
+
+ public Injector createInjector() {
+ return Guice.createInjector(new org.eclipse.papyrus.uml.textedit.port.xtext.UmlPortRuntimeModule());
+ }
+
+ public void register(Injector injector) {
+ if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort")) {
+ EPackage.Registry.INSTANCE.put("http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort", org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage.eINSTANCE);
+ }
+
+ org.eclipse.xtext.resource.IResourceFactory resourceFactory = injector.getInstance(org.eclipse.xtext.resource.IResourceFactory.class);
+ org.eclipse.xtext.resource.IResourceServiceProvider serviceProvider = injector.getInstance(org.eclipse.xtext.resource.IResourceServiceProvider.class);
+ Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("umlport", resourceFactory);
+ org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("umlport", serviceProvider);
+
+
+
+
+ }
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/UmlPortAntlrTokenFileProvider.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/UmlPortAntlrTokenFileProvider.java
index eb5e20211e2..03281ec6edf 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/UmlPortAntlrTokenFileProvider.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/UmlPortAntlrTokenFileProvider.java
@@ -1,16 +1,16 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr;
-
-import java.io.InputStream;
-import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
-
-public class UmlPortAntlrTokenFileProvider implements IAntlrTokenFileProvider {
-
- @Override
- public InputStream getAntlrTokenFile() {
- ClassLoader classLoader = getClass().getClassLoader();
- return classLoader.getResourceAsStream("org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.tokens");
- }
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr;
+
+import java.io.InputStream;
+import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
+
+public class UmlPortAntlrTokenFileProvider implements IAntlrTokenFileProvider {
+
+ @Override
+ public InputStream getAntlrTokenFile() {
+ ClassLoader classLoader = getClass().getClassLoader();
+ return classLoader.getResourceAsStream("org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.tokens");
+ }
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/UmlPortParser.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/UmlPortParser.java
index a020ff03992..b645bcc17a0 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/UmlPortParser.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/UmlPortParser.java
@@ -1,39 +1,39 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr;
-
-import com.google.inject.Inject;
-
-import org.eclipse.xtext.parser.antlr.XtextTokenStream;
-import org.eclipse.papyrus.uml.textedit.port.xtext.services.UmlPortGrammarAccess;
-
-public class UmlPortParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {
-
- @Inject
- private UmlPortGrammarAccess grammarAccess;
-
- @Override
- protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
- tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
- }
-
- @Override
- protected org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal.InternalUmlPortParser createParser(XtextTokenStream stream) {
- return new org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal.InternalUmlPortParser(stream, getGrammarAccess());
- }
-
- @Override
- protected String getDefaultRuleName() {
- return "PortRule";
- }
-
- public UmlPortGrammarAccess getGrammarAccess() {
- return this.grammarAccess;
- }
-
- public void setGrammarAccess(UmlPortGrammarAccess grammarAccess) {
- this.grammarAccess = grammarAccess;
- }
-
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr;
+
+import com.google.inject.Inject;
+
+import org.eclipse.xtext.parser.antlr.XtextTokenStream;
+import org.eclipse.papyrus.uml.textedit.port.xtext.services.UmlPortGrammarAccess;
+
+public class UmlPortParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {
+
+ @Inject
+ private UmlPortGrammarAccess grammarAccess;
+
+ @Override
+ protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
+ tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
+ }
+
+ @Override
+ protected org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal.InternalUmlPortParser createParser(XtextTokenStream stream) {
+ return new org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal.InternalUmlPortParser(stream, getGrammarAccess());
+ }
+
+ @Override
+ protected String getDefaultRuleName() {
+ return "PortRule";
+ }
+
+ public UmlPortGrammarAccess getGrammarAccess() {
+ return this.grammarAccess;
+ }
+
+ public void setGrammarAccess(UmlPortGrammarAccess grammarAccess) {
+ this.grammarAccess = grammarAccess;
+ }
+
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g
index 4e639a41d22..d126efec8c5 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g
@@ -1,1270 +1,1316 @@
-/*
-* generated by Xtext
-*/
-grammar InternalUmlPort;
-
-options {
- superClass=AbstractInternalAntlrParser;
-
-}
-
-@lexer::header {
-package org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal;
-
-// Hack: Use our own Lexer superclass by means of import.
-// Currently there is no other way to specify the superclass for the lexer.
-import org.eclipse.xtext.parser.antlr.Lexer;
-}
-
-@parser::header {
-package org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal;
-
-import org.eclipse.xtext.*;
-import org.eclipse.xtext.parser.*;
-import org.eclipse.xtext.parser.impl.*;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.common.util.Enumerator;
-import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
-import org.eclipse.xtext.parser.antlr.XtextTokenStream;
-import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
-import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken;
-import org.eclipse.papyrus.uml.textedit.port.xtext.services.UmlPortGrammarAccess;
-
-}
-
-@parser::members {
-
- private UmlPortGrammarAccess grammarAccess;
-
- public InternalUmlPortParser(TokenStream input, UmlPortGrammarAccess grammarAccess) {
- this(input);
- this.grammarAccess = grammarAccess;
- registerRules(grammarAccess.getGrammar());
- }
-
- @Override
- protected String getFirstRuleName() {
- return "PortRule";
- }
-
- @Override
- protected UmlPortGrammarAccess getGrammarAccess() {
- return grammarAccess;
- }
-}
-
-@rulecatch {
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
-}
-
-
-
-
-// Entry rule entryRulePortRule
-entryRulePortRule returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getPortRuleRule()); }
- iv_rulePortRule=rulePortRule
- { $current=$iv_rulePortRule.current; }
- EOF
-;
-
-// Rule PortRule
-rulePortRule returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getPortRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0());
- }
- lv_visibility_0_0=ruleVisibilityRule {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPortRuleRule());
- }
- set(
- $current,
- "visibility",
- lv_visibility_0_0,
- "VisibilityRule");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?(
-(
- lv_derived_1_0= '/'
- {
- newLeafNode(lv_derived_1_0, grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getPortRuleRule());
- }
- setWithLastConsumed($current, "derived", true, "/");
- }
-
-)
-)?(
-(
- lv_name_2_0=RULE_ID
- {
- newLeafNode(lv_name_2_0, grammarAccess.getPortRuleAccess().getNameIDTerminalRuleCall_2_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getPortRuleRule());
- }
- setWithLastConsumed(
- $current,
- "name",
- lv_name_2_0,
- "ID");
- }
-
-)
-)( otherlv_3=':'
- {
- newLeafNode(otherlv_3, grammarAccess.getPortRuleAccess().getColonKeyword_3_0());
- }
-(
-(
- lv_conjugated_4_0= '~'
- {
- newLeafNode(lv_conjugated_4_0, grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getPortRuleRule());
- }
- setWithLastConsumed($current, "conjugated", true, "~");
- }
-
-)
-)?((
-(
- {
- newCompositeNode(grammarAccess.getPortRuleAccess().getTypeTypeRuleParserRuleCall_3_2_0_0());
- }
- lv_type_5_0=ruleTypeRule {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPortRuleRule());
- }
- set(
- $current,
- "type",
- lv_type_5_0,
- "TypeRule");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
- |(
-(
- lv_typeUndefined_6_0= '<Undefined>'
- {
- newLeafNode(lv_typeUndefined_6_0, grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getPortRuleRule());
- }
- setWithLastConsumed($current, "typeUndefined", true, "<Undefined>");
- }
-
-)
-)))?(
-(
- {
- newCompositeNode(grammarAccess.getPortRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0());
- }
- lv_multiplicity_7_0=ruleMultiplicityRule {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPortRuleRule());
- }
- set(
- $current,
- "multiplicity",
- lv_multiplicity_7_0,
- "MultiplicityRule");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getPortRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0());
- }
- lv_modifiers_8_0=ruleModifiersRule {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPortRuleRule());
- }
- set(
- $current,
- "modifiers",
- lv_modifiers_8_0,
- "ModifiersRule");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getPortRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0());
- }
- lv_default_9_0=ruleDefaultValueRule {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPortRuleRule());
- }
- set(
- $current,
- "default",
- lv_default_9_0,
- "DefaultValueRule");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?)
-;
-
-
-
-
-
-// Entry rule entryRuleVisibilityRule
-entryRuleVisibilityRule returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getVisibilityRuleRule()); }
- iv_ruleVisibilityRule=ruleVisibilityRule
- { $current=$iv_ruleVisibilityRule.current; }
- EOF
-;
-
-// Rule VisibilityRule
-ruleVisibilityRule returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- {
- newCompositeNode(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0());
- }
- lv_visibility_0_0=ruleVisibilityKind {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getVisibilityRuleRule());
- }
- set(
- $current,
- "visibility",
- lv_visibility_0_0,
- "VisibilityKind");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleTypeRule
-entryRuleTypeRule returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getTypeRuleRule()); }
- iv_ruleTypeRule=ruleTypeRule
- { $current=$iv_ruleTypeRule.current; }
- EOF
-;
-
-// Rule TypeRule
-ruleTypeRule returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0());
- }
- lv_path_0_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getTypeRuleRule());
- }
- set(
- $current,
- "path",
- lv_path_0_0,
- "QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?(
-(
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getTypeRuleRule());
- }
- }
- otherlv_1=RULE_ID
- {
- newLeafNode(otherlv_1, grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0());
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleQualifiedName
-entryRuleQualifiedName returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getQualifiedNameRule()); }
- iv_ruleQualifiedName=ruleQualifiedName
- { $current=$iv_ruleQualifiedName.current; }
- EOF
-;
-
-// Rule QualifiedName
-ruleQualifiedName returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getQualifiedNameRule());
- }
- }
- otherlv_0=RULE_ID
- {
- newLeafNode(otherlv_0, grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0());
- }
-
-)
-) otherlv_1='::'
- {
- newLeafNode(otherlv_1, grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0());
- }
- lv_remaining_2_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getQualifiedNameRule());
- }
- set(
- $current,
- "remaining",
- lv_remaining_2_0,
- "QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?)
-;
-
-
-
-
-
-// Entry rule entryRuleMultiplicityRule
-entryRuleMultiplicityRule returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getMultiplicityRuleRule()); }
- iv_ruleMultiplicityRule=ruleMultiplicityRule
- { $current=$iv_ruleMultiplicityRule.current; }
- EOF
-;
-
-// Rule MultiplicityRule
-ruleMultiplicityRule returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='['
- {
- newLeafNode(otherlv_0, grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0());
- }
- lv_bounds_1_0=ruleBoundSpecification {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule());
- }
- add(
- $current,
- "bounds",
- lv_bounds_1_0,
- "BoundSpecification");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_2='..'
- {
- newLeafNode(otherlv_2, grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0());
- }
- lv_bounds_3_0=ruleBoundSpecification {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule());
- }
- add(
- $current,
- "bounds",
- lv_bounds_3_0,
- "BoundSpecification");
- afterParserOrEnumRuleCall();
- }
-
-)
-))? otherlv_4=']'
- {
- newLeafNode(otherlv_4, grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleBoundSpecification
-entryRuleBoundSpecification returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getBoundSpecificationRule()); }
- iv_ruleBoundSpecification=ruleBoundSpecification
- { $current=$iv_ruleBoundSpecification.current; }
- EOF
-;
-
-// Rule BoundSpecification
-ruleBoundSpecification returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- {
- newCompositeNode(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0());
- }
- lv_value_0_0=ruleUnlimitedLiteral {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getBoundSpecificationRule());
- }
- set(
- $current,
- "value",
- lv_value_0_0,
- "UnlimitedLiteral");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleUnlimitedLiteral
-entryRuleUnlimitedLiteral returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getUnlimitedLiteralRule()); }
- iv_ruleUnlimitedLiteral=ruleUnlimitedLiteral
- { $current=$iv_ruleUnlimitedLiteral.current.getText(); }
- EOF
-;
-
-// Rule UnlimitedLiteral
-ruleUnlimitedLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( this_INT_0=RULE_INT {
- $current.merge(this_INT_0);
- }
-
- {
- newLeafNode(this_INT_0, grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0());
- }
-
- |
- kw='*'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1());
- }
-)
- ;
-
-
-
-
-
-// Entry rule entryRuleModifiersRule
-entryRuleModifiersRule returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getModifiersRuleRule()); }
- iv_ruleModifiersRule=ruleModifiersRule
- { $current=$iv_ruleModifiersRule.current; }
- EOF
-;
-
-// Rule ModifiersRule
-ruleModifiersRule returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
- {
- $current = forceCreateModelElement(
- grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0(),
- $current);
- }
-) otherlv_1='{'
- {
- newLeafNode(otherlv_1, grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1());
- }
-((
-(
- {
- newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0());
- }
- lv_values_2_0=ruleModifierSpecification {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getModifiersRuleRule());
- }
- add(
- $current,
- "values",
- lv_values_2_0,
- "ModifierSpecification");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_3=','
- {
- newLeafNode(otherlv_3, grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0());
- }
- lv_values_4_0=ruleModifierSpecification {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getModifiersRuleRule());
- }
- add(
- $current,
- "values",
- lv_values_4_0,
- "ModifierSpecification");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)? otherlv_5='}'
- {
- newLeafNode(otherlv_5, grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleModifierSpecification
-entryRuleModifierSpecification returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getModifierSpecificationRule()); }
- iv_ruleModifierSpecification=ruleModifierSpecification
- { $current=$iv_ruleModifierSpecification.current; }
- EOF
-;
-
-// Rule ModifierSpecification
-ruleModifierSpecification returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0());
- }
- lv_value_0_0=ruleModifierKind {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
- }
- set(
- $current,
- "value",
- lv_value_0_0,
- "ModifierKind");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
- |(
-(
- {
- newCompositeNode(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0());
- }
- lv_redefines_1_0=ruleRedefinesRule {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
- }
- set(
- $current,
- "redefines",
- lv_redefines_1_0,
- "RedefinesRule");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
- |(
-(
- {
- newCompositeNode(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0());
- }
- lv_subsets_2_0=ruleSubsetsRule {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
- }
- set(
- $current,
- "subsets",
- lv_subsets_2_0,
- "SubsetsRule");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleRedefinesRule
-entryRuleRedefinesRule returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getRedefinesRuleRule()); }
- iv_ruleRedefinesRule=ruleRedefinesRule
- { $current=$iv_ruleRedefinesRule.current; }
- EOF
-;
-
-// Rule RedefinesRule
-ruleRedefinesRule returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='redefines'
- {
- newLeafNode(otherlv_0, grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0());
- }
-(
-(
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getRedefinesRuleRule());
- }
- }
- otherlv_1=RULE_ID
- {
- newLeafNode(otherlv_1, grammarAccess.getRedefinesRuleAccess().getPortPortCrossReference_1_0());
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleSubsetsRule
-entryRuleSubsetsRule returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSubsetsRuleRule()); }
- iv_ruleSubsetsRule=ruleSubsetsRule
- { $current=$iv_ruleSubsetsRule.current; }
- EOF
-;
-
-// Rule SubsetsRule
-ruleSubsetsRule returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='subsets'
- {
- newLeafNode(otherlv_0, grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0());
- }
-(
-(
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getSubsetsRuleRule());
- }
- }
- otherlv_1=RULE_ID
- {
- newLeafNode(otherlv_1, grammarAccess.getSubsetsRuleAccess().getPortPortCrossReference_1_0());
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleDefaultValueRule
-entryRuleDefaultValueRule returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getDefaultValueRuleRule()); }
- iv_ruleDefaultValueRule=ruleDefaultValueRule
- { $current=$iv_ruleDefaultValueRule.current; }
- EOF
-;
-
-// Rule DefaultValueRule
-ruleDefaultValueRule returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='='
- {
- newLeafNode(otherlv_0, grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0());
- }
- lv_default_1_0=ruleValue {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getDefaultValueRuleRule());
- }
- set(
- $current,
- "default",
- lv_default_1_0,
- "Value");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleValue
-entryRuleValue returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getValueRule()); }
- iv_ruleValue=ruleValue
- { $current=$iv_ruleValue.current; }
- EOF
-;
-
-// Rule Value
-ruleValue returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- newCompositeNode(grammarAccess.getValueAccess().getIntValueParserRuleCall_0());
- }
- this_IntValue_0=ruleIntValue
- {
- $current = $this_IntValue_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- newCompositeNode(grammarAccess.getValueAccess().getStringValueParserRuleCall_1());
- }
- this_StringValue_1=ruleStringValue
- {
- $current = $this_StringValue_1.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- newCompositeNode(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2());
- }
- this_BooleanValue_2=ruleBooleanValue
- {
- $current = $this_BooleanValue_2.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- newCompositeNode(grammarAccess.getValueAccess().getRealValueParserRuleCall_3());
- }
- this_RealValue_3=ruleRealValue
- {
- $current = $this_RealValue_3.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- newCompositeNode(grammarAccess.getValueAccess().getNullValueParserRuleCall_4());
- }
- this_NullValue_4=ruleNullValue
- {
- $current = $this_NullValue_4.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- newCompositeNode(grammarAccess.getValueAccess().getNoValueParserRuleCall_5());
- }
- this_NoValue_5=ruleNoValue
- {
- $current = $this_NoValue_5.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleIntValue
-entryRuleIntValue returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getIntValueRule()); }
- iv_ruleIntValue=ruleIntValue
- { $current=$iv_ruleIntValue.current; }
- EOF
-;
-
-// Rule IntValue
-ruleIntValue returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- lv_literalInteger_0_0=RULE_INT
- {
- newLeafNode(lv_literalInteger_0_0, grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getIntValueRule());
- }
- setWithLastConsumed(
- $current,
- "literalInteger",
- lv_literalInteger_0_0,
- "INT");
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleStringValue
-entryRuleStringValue returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getStringValueRule()); }
- iv_ruleStringValue=ruleStringValue
- { $current=$iv_ruleStringValue.current; }
- EOF
-;
-
-// Rule StringValue
-ruleStringValue returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- lv_literalString_0_0=RULE_STRING
- {
- newLeafNode(lv_literalString_0_0, grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getStringValueRule());
- }
- setWithLastConsumed(
- $current,
- "literalString",
- lv_literalString_0_0,
- "STRING");
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleBooleanValue
-entryRuleBooleanValue returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getBooleanValueRule()); }
- iv_ruleBooleanValue=ruleBooleanValue
- { $current=$iv_ruleBooleanValue.current; }
- EOF
-;
-
-// Rule BooleanValue
-ruleBooleanValue returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- {
- newCompositeNode(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0());
- }
- lv_literalBoolean_0_0=ruleBooleanLiterals {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getBooleanValueRule());
- }
- set(
- $current,
- "literalBoolean",
- lv_literalBoolean_0_0,
- "BooleanLiterals");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleRealValue
-entryRuleRealValue returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getRealValueRule()); }
- iv_ruleRealValue=ruleRealValue
- { $current=$iv_ruleRealValue.current; }
- EOF
-;
-
-// Rule RealValue
-ruleRealValue returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(((
-(
- lv_integer_0_0=RULE_INT
- {
- newLeafNode(lv_integer_0_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getRealValueRule());
- }
- setWithLastConsumed(
- $current,
- "integer",
- lv_integer_0_0,
- "INT");
- }
-
-)
-) otherlv_1='.'
- {
- newLeafNode(otherlv_1, grammarAccess.getRealValueAccess().getFullStopKeyword_0_1());
- }
-)
- |( otherlv_2='.'
- {
- newLeafNode(otherlv_2, grammarAccess.getRealValueAccess().getFullStopKeyword_1_0());
- }
-(
-(
- lv_fraction_3_0=RULE_INT
- {
- newLeafNode(lv_fraction_3_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getRealValueRule());
- }
- setWithLastConsumed(
- $current,
- "fraction",
- lv_fraction_3_0,
- "INT");
- }
-
-)
-))
- |((
-(
- lv_integer_4_0=RULE_INT
- {
- newLeafNode(lv_integer_4_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getRealValueRule());
- }
- setWithLastConsumed(
- $current,
- "integer",
- lv_integer_4_0,
- "INT");
- }
-
-)
-) otherlv_5='.'
- {
- newLeafNode(otherlv_5, grammarAccess.getRealValueAccess().getFullStopKeyword_2_1());
- }
-(
-(
- lv_fraction_6_0=RULE_INT
- {
- newLeafNode(lv_fraction_6_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getRealValueRule());
- }
- setWithLastConsumed(
- $current,
- "fraction",
- lv_fraction_6_0,
- "INT");
- }
-
-)
-)))
-;
-
-
-
-
-
-// Entry rule entryRuleNullValue
-entryRuleNullValue returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getNullValueRule()); }
- iv_ruleNullValue=ruleNullValue
- { $current=$iv_ruleNullValue.current; }
- EOF
-;
-
-// Rule NullValue
-ruleNullValue returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
- {
- $current = forceCreateModelElement(
- grammarAccess.getNullValueAccess().getNullValueAction_0(),
- $current);
- }
-) otherlv_1='null'
- {
- newLeafNode(otherlv_1, grammarAccess.getNullValueAccess().getNullKeyword_1());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleNoValue
-entryRuleNoValue returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getNoValueRule()); }
- iv_ruleNoValue=ruleNoValue
- { $current=$iv_ruleNoValue.current; }
- EOF
-;
-
-// Rule NoValue
-ruleNoValue returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
- {
- $current = forceCreateModelElement(
- grammarAccess.getNoValueAccess().getNoValueAction_0(),
- $current);
- }
-) otherlv_1='none'
- {
- newLeafNode(otherlv_1, grammarAccess.getNoValueAccess().getNoneKeyword_1());
- }
-)
-;
-
-
-
-
-
-// Rule VisibilityKind
-ruleVisibilityKind returns [Enumerator current=null]
- @init { enterRule(); }
- @after { leaveRule(); }:
-(( enumLiteral_0='+'
- {
- $current = grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_0, grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0());
- }
-)
- |( enumLiteral_1='-'
- {
- $current = grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_1, grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1());
- }
-)
- |( enumLiteral_2='#'
- {
- $current = grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_2, grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2());
- }
-)
- |( enumLiteral_3='~'
- {
- $current = grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_3, grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3());
- }
-));
-
-
-
-// Rule ModifierKind
-ruleModifierKind returns [Enumerator current=null]
- @init { enterRule(); }
- @after { leaveRule(); }:
-(( enumLiteral_0='readOnly'
- {
- $current = grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_0, grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0());
- }
-)
- |( enumLiteral_1='union'
- {
- $current = grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_1, grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1());
- }
-)
- |( enumLiteral_2='ordered'
- {
- $current = grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_2, grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2());
- }
-)
- |( enumLiteral_3='unique'
- {
- $current = grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_3, grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3());
- }
-));
-
-
-
-// Rule BooleanLiterals
-ruleBooleanLiterals returns [Enumerator current=null]
- @init { enterRule(); }
- @after { leaveRule(); }:
-(( enumLiteral_0='true'
- {
- $current = grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_0, grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0());
- }
-)
- |( enumLiteral_1='false'
- {
- $current = grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_1, grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1());
- }
-));
-
-
-
-RULE_ID : (('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*|'\'' ( options {greedy=false;} : . )*'\'');
-
-RULE_STRING : '"' ('\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')|~(('\\'|'"')))* '"';
-
-RULE_ML_COMMENT : '/*' ~('@') ( options {greedy=false;} : . )*'*/';
-
-RULE_SL_COMMENT : '//' ~(('\n'|'\r'|'@'))* ('\r'? '\n')?;
-
-RULE_INT : ('0'..'9')+;
-
-RULE_INTEGER_VALUE : (('0'|'1'..'9' ('_'? '0'..'9')*)|('0b'|'0B') '0'..'1' ('_'? '0'..'1')*|('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F') ('_'? ('0'..'9'|'a'..'f'|'A'..'F'))*|'0' '_'? '0'..'7' ('_'? '0'..'7')*);
-
-RULE_WS : (' '|'\t'|'\r'|'\n')+;
-
-RULE_ANY_OTHER : .;
-
-
+/*
+ * generated by Xtext
+ */
+grammar InternalUmlPort;
+
+options {
+ superClass=AbstractInternalAntlrParser;
+
+}
+
+@lexer::header {
+package org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal;
+
+// Hack: Use our own Lexer superclass by means of import.
+// Currently there is no other way to specify the superclass for the lexer.
+import org.eclipse.xtext.parser.antlr.Lexer;
+}
+
+@parser::header {
+package org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal;
+
+import org.eclipse.xtext.*;
+import org.eclipse.xtext.parser.*;
+import org.eclipse.xtext.parser.impl.*;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.common.util.Enumerator;
+import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
+import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken;
+import org.eclipse.papyrus.uml.textedit.port.xtext.services.UmlPortGrammarAccess;
+
+}
+
+@parser::members {
+
+ private UmlPortGrammarAccess grammarAccess;
+
+ public InternalUmlPortParser(TokenStream input, UmlPortGrammarAccess grammarAccess) {
+ this(input);
+ this.grammarAccess = grammarAccess;
+ registerRules(grammarAccess.getGrammar());
+ }
+
+ @Override
+ protected String getFirstRuleName() {
+ return "PortRule";
+ }
+
+ @Override
+ protected UmlPortGrammarAccess getGrammarAccess() {
+ return grammarAccess;
+ }
+}
+
+@rulecatch {
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+}
+
+
+
+
+// Entry rule entryRulePortRule
+entryRulePortRule returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getPortRuleRule()); }
+ iv_rulePortRule=rulePortRule
+ { $current=$iv_rulePortRule.current; }
+ EOF
+;
+
+// Rule PortRule
+rulePortRule returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getPortRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0());
+ }
+ lv_visibility_0_0=ruleVisibilityRule {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPortRuleRule());
+ }
+ set(
+ $current,
+ "visibility",
+ lv_visibility_0_0,
+ "VisibilityRule");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?(
+(
+ lv_derived_1_0= '/'
+ {
+ newLeafNode(lv_derived_1_0, grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getPortRuleRule());
+ }
+ setWithLastConsumed($current, "derived", true, "/");
+ }
+
+)
+)?(
+(
+ lv_name_2_0=RULE_ID
+ {
+ newLeafNode(lv_name_2_0, grammarAccess.getPortRuleAccess().getNameIDTerminalRuleCall_2_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getPortRuleRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "name",
+ lv_name_2_0,
+ "ID");
+ }
+
+)
+)( otherlv_3=':'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getPortRuleAccess().getColonKeyword_3_0());
+ }
+(
+(
+ lv_conjugated_4_0= '~'
+ {
+ newLeafNode(lv_conjugated_4_0, grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getPortRuleRule());
+ }
+ setWithLastConsumed($current, "conjugated", true, "~");
+ }
+
+)
+)?((
+(
+ {
+ newCompositeNode(grammarAccess.getPortRuleAccess().getTypeTypeRuleParserRuleCall_3_2_0_0());
+ }
+ lv_type_5_0=ruleTypeRule {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPortRuleRule());
+ }
+ set(
+ $current,
+ "type",
+ lv_type_5_0,
+ "TypeRule");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)
+ |(
+(
+ lv_typeUndefined_6_0= '<Undefined>'
+ {
+ newLeafNode(lv_typeUndefined_6_0, grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getPortRuleRule());
+ }
+ setWithLastConsumed($current, "typeUndefined", true, "<Undefined>");
+ }
+
+)
+)))?(
+(
+ {
+ newCompositeNode(grammarAccess.getPortRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0());
+ }
+ lv_multiplicity_7_0=ruleMultiplicityRule {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPortRuleRule());
+ }
+ set(
+ $current,
+ "multiplicity",
+ lv_multiplicity_7_0,
+ "MultiplicityRule");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getPortRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0());
+ }
+ lv_modifiers_8_0=ruleModifiersRule {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPortRuleRule());
+ }
+ set(
+ $current,
+ "modifiers",
+ lv_modifiers_8_0,
+ "ModifiersRule");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getPortRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0());
+ }
+ lv_default_9_0=ruleDefaultValueRule {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPortRuleRule());
+ }
+ set(
+ $current,
+ "default",
+ lv_default_9_0,
+ "DefaultValueRule");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleVisibilityRule
+entryRuleVisibilityRule returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getVisibilityRuleRule()); }
+ iv_ruleVisibilityRule=ruleVisibilityRule
+ { $current=$iv_ruleVisibilityRule.current; }
+ EOF
+;
+
+// Rule VisibilityRule
+ruleVisibilityRule returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ {
+ newCompositeNode(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0());
+ }
+ lv_visibility_0_0=ruleVisibilityKind {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getVisibilityRuleRule());
+ }
+ set(
+ $current,
+ "visibility",
+ lv_visibility_0_0,
+ "VisibilityKind");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleTypeRule
+entryRuleTypeRule returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getTypeRuleRule()); }
+ iv_ruleTypeRule=ruleTypeRule
+ { $current=$iv_ruleTypeRule.current; }
+ EOF
+;
+
+// Rule TypeRule
+ruleTypeRule returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0());
+ }
+ lv_path_0_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getTypeRuleRule());
+ }
+ set(
+ $current,
+ "path",
+ lv_path_0_0,
+ "QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?(
+(
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getTypeRuleRule());
+ }
+ }
+ otherlv_1=RULE_ID
+ {
+ newLeafNode(otherlv_1, grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0());
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleQualifiedName
+entryRuleQualifiedName returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getQualifiedNameRule()); }
+ iv_ruleQualifiedName=ruleQualifiedName
+ { $current=$iv_ruleQualifiedName.current; }
+ EOF
+;
+
+// Rule QualifiedName
+ruleQualifiedName returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getQualifiedNameRule());
+ }
+ }
+ otherlv_0=RULE_ID
+ {
+ newLeafNode(otherlv_0, grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0());
+ }
+
+)
+) otherlv_1='::'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0());
+ }
+ lv_remaining_2_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getQualifiedNameRule());
+ }
+ set(
+ $current,
+ "remaining",
+ lv_remaining_2_0,
+ "QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleMultiplicityRule
+entryRuleMultiplicityRule returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getMultiplicityRuleRule()); }
+ iv_ruleMultiplicityRule=ruleMultiplicityRule
+ { $current=$iv_ruleMultiplicityRule.current; }
+ EOF
+;
+
+// Rule MultiplicityRule
+ruleMultiplicityRule returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='['
+ {
+ newLeafNode(otherlv_0, grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0());
+ }
+((
+(
+ {
+ newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0_0());
+ }
+ lv_bounds_1_0=ruleBoundSpecification {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule());
+ }
+ add(
+ $current,
+ "bounds",
+ lv_bounds_1_0,
+ "BoundSpecification");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_2='..'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_1_1());
+ }
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_0());
+ }
+ lv_bounds_3_0=ruleBoundSpecification {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule());
+ }
+ add(
+ $current,
+ "bounds",
+ lv_bounds_3_0,
+ "BoundSpecification");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_4=']'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleBoundSpecification
+entryRuleBoundSpecification returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getBoundSpecificationRule()); }
+ iv_ruleBoundSpecification=ruleBoundSpecification
+ { $current=$iv_ruleBoundSpecification.current; }
+ EOF
+;
+
+// Rule BoundSpecification
+ruleBoundSpecification returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+(
+ {
+ newCompositeNode(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0_0());
+ }
+ lv_value_0_1=ruleUnlimitedLiteral {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getBoundSpecificationRule());
+ }
+ set(
+ $current,
+ "value",
+ lv_value_0_1,
+ "UnlimitedLiteral");
+ afterParserOrEnumRuleCall();
+ }
+
+ | {
+ newCompositeNode(grammarAccess.getBoundSpecificationAccess().getValueStringLiteralParserRuleCall_0_1());
+ }
+ lv_value_0_2=ruleStringLiteral {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getBoundSpecificationRule());
+ }
+ set(
+ $current,
+ "value",
+ lv_value_0_2,
+ "StringLiteral");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleUnlimitedLiteral
+entryRuleUnlimitedLiteral returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getUnlimitedLiteralRule()); }
+ iv_ruleUnlimitedLiteral=ruleUnlimitedLiteral
+ { $current=$iv_ruleUnlimitedLiteral.current.getText(); }
+ EOF
+;
+
+// Rule UnlimitedLiteral
+ruleUnlimitedLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( this_INT_0=RULE_INT {
+ $current.merge(this_INT_0);
+ }
+
+ {
+ newLeafNode(this_INT_0, grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0());
+ }
+
+ |
+ kw='*'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1());
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRuleStringLiteral
+entryRuleStringLiteral returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getStringLiteralRule()); }
+ iv_ruleStringLiteral=ruleStringLiteral
+ { $current=$iv_ruleStringLiteral.current.getText(); }
+ EOF
+;
+
+// Rule StringLiteral
+ruleStringLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+ this_STRING_0=RULE_STRING {
+ $current.merge(this_STRING_0);
+ }
+
+ {
+ newLeafNode(this_STRING_0, grammarAccess.getStringLiteralAccess().getSTRINGTerminalRuleCall());
+ }
+
+ ;
+
+
+
+
+
+// Entry rule entryRuleModifiersRule
+entryRuleModifiersRule returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getModifiersRuleRule()); }
+ iv_ruleModifiersRule=ruleModifiersRule
+ { $current=$iv_ruleModifiersRule.current; }
+ EOF
+;
+
+// Rule ModifiersRule
+ruleModifiersRule returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+ {
+ $current = forceCreateModelElement(
+ grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0(),
+ $current);
+ }
+) otherlv_1='{'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1());
+ }
+((
+(
+ {
+ newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0());
+ }
+ lv_values_2_0=ruleModifierSpecification {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getModifiersRuleRule());
+ }
+ add(
+ $current,
+ "values",
+ lv_values_2_0,
+ "ModifierSpecification");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_3=','
+ {
+ newLeafNode(otherlv_3, grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0());
+ }
+ lv_values_4_0=ruleModifierSpecification {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getModifiersRuleRule());
+ }
+ add(
+ $current,
+ "values",
+ lv_values_4_0,
+ "ModifierSpecification");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)? otherlv_5='}'
+ {
+ newLeafNode(otherlv_5, grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleModifierSpecification
+entryRuleModifierSpecification returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getModifierSpecificationRule()); }
+ iv_ruleModifierSpecification=ruleModifierSpecification
+ { $current=$iv_ruleModifierSpecification.current; }
+ EOF
+;
+
+// Rule ModifierSpecification
+ruleModifierSpecification returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0());
+ }
+ lv_value_0_0=ruleModifierKind {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
+ }
+ set(
+ $current,
+ "value",
+ lv_value_0_0,
+ "ModifierKind");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)
+ |(
+(
+ {
+ newCompositeNode(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0());
+ }
+ lv_redefines_1_0=ruleRedefinesRule {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
+ }
+ set(
+ $current,
+ "redefines",
+ lv_redefines_1_0,
+ "RedefinesRule");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)
+ |(
+(
+ {
+ newCompositeNode(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0());
+ }
+ lv_subsets_2_0=ruleSubsetsRule {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
+ }
+ set(
+ $current,
+ "subsets",
+ lv_subsets_2_0,
+ "SubsetsRule");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleRedefinesRule
+entryRuleRedefinesRule returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getRedefinesRuleRule()); }
+ iv_ruleRedefinesRule=ruleRedefinesRule
+ { $current=$iv_ruleRedefinesRule.current; }
+ EOF
+;
+
+// Rule RedefinesRule
+ruleRedefinesRule returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='redefines'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0());
+ }
+(
+(
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getRedefinesRuleRule());
+ }
+ }
+ otherlv_1=RULE_ID
+ {
+ newLeafNode(otherlv_1, grammarAccess.getRedefinesRuleAccess().getPortPortCrossReference_1_0());
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleSubsetsRule
+entryRuleSubsetsRule returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSubsetsRuleRule()); }
+ iv_ruleSubsetsRule=ruleSubsetsRule
+ { $current=$iv_ruleSubsetsRule.current; }
+ EOF
+;
+
+// Rule SubsetsRule
+ruleSubsetsRule returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='subsets'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0());
+ }
+(
+(
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getSubsetsRuleRule());
+ }
+ }
+ otherlv_1=RULE_ID
+ {
+ newLeafNode(otherlv_1, grammarAccess.getSubsetsRuleAccess().getPortPortCrossReference_1_0());
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleDefaultValueRule
+entryRuleDefaultValueRule returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getDefaultValueRuleRule()); }
+ iv_ruleDefaultValueRule=ruleDefaultValueRule
+ { $current=$iv_ruleDefaultValueRule.current; }
+ EOF
+;
+
+// Rule DefaultValueRule
+ruleDefaultValueRule returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='='
+ {
+ newLeafNode(otherlv_0, grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0());
+ }
+ lv_default_1_0=ruleValue {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getDefaultValueRuleRule());
+ }
+ set(
+ $current,
+ "default",
+ lv_default_1_0,
+ "Value");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleValue
+entryRuleValue returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getValueRule()); }
+ iv_ruleValue=ruleValue
+ { $current=$iv_ruleValue.current; }
+ EOF
+;
+
+// Rule Value
+ruleValue returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ newCompositeNode(grammarAccess.getValueAccess().getIntValueParserRuleCall_0());
+ }
+ this_IntValue_0=ruleIntValue
+ {
+ $current = $this_IntValue_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ newCompositeNode(grammarAccess.getValueAccess().getStringValueParserRuleCall_1());
+ }
+ this_StringValue_1=ruleStringValue
+ {
+ $current = $this_StringValue_1.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ newCompositeNode(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2());
+ }
+ this_BooleanValue_2=ruleBooleanValue
+ {
+ $current = $this_BooleanValue_2.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ newCompositeNode(grammarAccess.getValueAccess().getRealValueParserRuleCall_3());
+ }
+ this_RealValue_3=ruleRealValue
+ {
+ $current = $this_RealValue_3.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ newCompositeNode(grammarAccess.getValueAccess().getNullValueParserRuleCall_4());
+ }
+ this_NullValue_4=ruleNullValue
+ {
+ $current = $this_NullValue_4.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ newCompositeNode(grammarAccess.getValueAccess().getNoValueParserRuleCall_5());
+ }
+ this_NoValue_5=ruleNoValue
+ {
+ $current = $this_NoValue_5.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleIntValue
+entryRuleIntValue returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getIntValueRule()); }
+ iv_ruleIntValue=ruleIntValue
+ { $current=$iv_ruleIntValue.current; }
+ EOF
+;
+
+// Rule IntValue
+ruleIntValue returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ lv_literalInteger_0_0=RULE_INT
+ {
+ newLeafNode(lv_literalInteger_0_0, grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getIntValueRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "literalInteger",
+ lv_literalInteger_0_0,
+ "INT");
+ }
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleStringValue
+entryRuleStringValue returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getStringValueRule()); }
+ iv_ruleStringValue=ruleStringValue
+ { $current=$iv_ruleStringValue.current; }
+ EOF
+;
+
+// Rule StringValue
+ruleStringValue returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ lv_literalString_0_0=RULE_STRING
+ {
+ newLeafNode(lv_literalString_0_0, grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getStringValueRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "literalString",
+ lv_literalString_0_0,
+ "STRING");
+ }
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleBooleanValue
+entryRuleBooleanValue returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getBooleanValueRule()); }
+ iv_ruleBooleanValue=ruleBooleanValue
+ { $current=$iv_ruleBooleanValue.current; }
+ EOF
+;
+
+// Rule BooleanValue
+ruleBooleanValue returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ {
+ newCompositeNode(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0());
+ }
+ lv_literalBoolean_0_0=ruleBooleanLiterals {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getBooleanValueRule());
+ }
+ set(
+ $current,
+ "literalBoolean",
+ lv_literalBoolean_0_0,
+ "BooleanLiterals");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleRealValue
+entryRuleRealValue returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getRealValueRule()); }
+ iv_ruleRealValue=ruleRealValue
+ { $current=$iv_ruleRealValue.current; }
+ EOF
+;
+
+// Rule RealValue
+ruleRealValue returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(((
+(
+ lv_integer_0_0=RULE_INT
+ {
+ newLeafNode(lv_integer_0_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getRealValueRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "integer",
+ lv_integer_0_0,
+ "INT");
+ }
+
+)
+) otherlv_1='.'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getRealValueAccess().getFullStopKeyword_0_1());
+ }
+)
+ |( otherlv_2='.'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getRealValueAccess().getFullStopKeyword_1_0());
+ }
+(
+(
+ lv_fraction_3_0=RULE_INT
+ {
+ newLeafNode(lv_fraction_3_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getRealValueRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "fraction",
+ lv_fraction_3_0,
+ "INT");
+ }
+
+)
+))
+ |((
+(
+ lv_integer_4_0=RULE_INT
+ {
+ newLeafNode(lv_integer_4_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getRealValueRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "integer",
+ lv_integer_4_0,
+ "INT");
+ }
+
+)
+) otherlv_5='.'
+ {
+ newLeafNode(otherlv_5, grammarAccess.getRealValueAccess().getFullStopKeyword_2_1());
+ }
+(
+(
+ lv_fraction_6_0=RULE_INT
+ {
+ newLeafNode(lv_fraction_6_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getRealValueRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "fraction",
+ lv_fraction_6_0,
+ "INT");
+ }
+
+)
+)))
+;
+
+
+
+
+
+// Entry rule entryRuleNullValue
+entryRuleNullValue returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getNullValueRule()); }
+ iv_ruleNullValue=ruleNullValue
+ { $current=$iv_ruleNullValue.current; }
+ EOF
+;
+
+// Rule NullValue
+ruleNullValue returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+ {
+ $current = forceCreateModelElement(
+ grammarAccess.getNullValueAccess().getNullValueAction_0(),
+ $current);
+ }
+) otherlv_1='null'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getNullValueAccess().getNullKeyword_1());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleNoValue
+entryRuleNoValue returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getNoValueRule()); }
+ iv_ruleNoValue=ruleNoValue
+ { $current=$iv_ruleNoValue.current; }
+ EOF
+;
+
+// Rule NoValue
+ruleNoValue returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+ {
+ $current = forceCreateModelElement(
+ grammarAccess.getNoValueAccess().getNoValueAction_0(),
+ $current);
+ }
+) otherlv_1='none'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getNoValueAccess().getNoneKeyword_1());
+ }
+)
+;
+
+
+
+
+
+// Rule VisibilityKind
+ruleVisibilityKind returns [Enumerator current=null]
+ @init { enterRule(); }
+ @after { leaveRule(); }:
+(( enumLiteral_0='+'
+ {
+ $current = grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_0, grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0());
+ }
+)
+ |( enumLiteral_1='-'
+ {
+ $current = grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_1, grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1());
+ }
+)
+ |( enumLiteral_2='#'
+ {
+ $current = grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_2, grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2());
+ }
+)
+ |( enumLiteral_3='~'
+ {
+ $current = grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_3, grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3());
+ }
+));
+
+
+
+// Rule ModifierKind
+ruleModifierKind returns [Enumerator current=null]
+ @init { enterRule(); }
+ @after { leaveRule(); }:
+(( enumLiteral_0='readOnly'
+ {
+ $current = grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_0, grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0());
+ }
+)
+ |( enumLiteral_1='union'
+ {
+ $current = grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_1, grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1());
+ }
+)
+ |( enumLiteral_2='ordered'
+ {
+ $current = grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_2, grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2());
+ }
+)
+ |( enumLiteral_3='unique'
+ {
+ $current = grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_3, grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3());
+ }
+));
+
+
+
+// Rule BooleanLiterals
+ruleBooleanLiterals returns [Enumerator current=null]
+ @init { enterRule(); }
+ @after { leaveRule(); }:
+(( enumLiteral_0='true'
+ {
+ $current = grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_0, grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0());
+ }
+)
+ |( enumLiteral_1='false'
+ {
+ $current = grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_1, grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1());
+ }
+));
+
+
+
+RULE_ID : (('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*|'\'' ( options {greedy=false;} : . )*'\'');
+
+RULE_STRING : '"' ('\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')|~(('\\'|'"')))* '"';
+
+RULE_ML_COMMENT : '/*' ~('@') ( options {greedy=false;} : . )*'*/';
+
+RULE_SL_COMMENT : '//' ~(('\n'|'\r'|'@'))* ('\r'? '\n')?;
+
+RULE_INT : ('0'..'9')+;
+
+RULE_INTEGER_VALUE : (('0'|'1'..'9' ('_'? '0'..'9')*)|('0b'|'0B') '0'..'1' ('_'? '0'..'1')*|('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F') ('_'? ('0'..'9'|'a'..'f'|'A'..'F'))*|'0' '_'? '0'..'7' ('_'? '0'..'7')*);
+
+RULE_WS : (' '|'\t'|'\r'|'\n')+;
+
+RULE_ANY_OTHER : .;
+
+
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPortLexer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPortLexer.java
index 341f15617fe..950c6207e07 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPortLexer.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPortLexer.java
@@ -1,2159 +1,2071 @@
-package org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal;
-
-// Hack: Use our own Lexer superclass by means of import.
-// Currently there is no other way to specify the superclass for the lexer.
-import org.eclipse.xtext.parser.antlr.Lexer;
-
-import org.antlr.runtime.*;
-
-@SuppressWarnings("all")
-public class InternalUmlPortLexer extends Lexer {
- public static final int RULE_ID = 4;
- public static final int T__29 = 29;
- public static final int T__28 = 28;
- public static final int T__27 = 27;
- public static final int T__26 = 26;
- public static final int T__25 = 25;
- public static final int T__24 = 24;
- public static final int T__23 = 23;
- public static final int T__22 = 22;
- public static final int RULE_ANY_OTHER = 11;
- public static final int T__21 = 21;
- public static final int T__20 = 20;
- public static final int RULE_INTEGER_VALUE = 9;
- public static final int EOF = -1;
- public static final int RULE_SL_COMMENT = 8;
- public static final int RULE_ML_COMMENT = 7;
- public static final int T__19 = 19;
- public static final int T__30 = 30;
- public static final int T__31 = 31;
- public static final int T__32 = 32;
- public static final int RULE_STRING = 6;
- public static final int T__16 = 16;
- public static final int T__33 = 33;
- public static final int T__15 = 15;
- public static final int T__34 = 34;
- public static final int T__18 = 18;
- public static final int T__35 = 35;
- public static final int T__17 = 17;
- public static final int T__36 = 36;
- public static final int T__12 = 12;
- public static final int T__37 = 37;
- public static final int T__38 = 38;
- public static final int T__14 = 14;
- public static final int T__13 = 13;
- public static final int RULE_INT = 5;
- public static final int RULE_WS = 10;
-
- // delegates
- // delegators
-
- public InternalUmlPortLexer() {
- ;
- }
-
- public InternalUmlPortLexer(CharStream input) {
- this(input, new RecognizerSharedState());
- }
-
- public InternalUmlPortLexer(CharStream input, RecognizerSharedState state) {
- super(input, state);
-
- }
-
- @Override
- public String getGrammarFileName() {
- return "../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g";
- }
-
- // $ANTLR start "T__12"
- public final void mT__12() throws RecognitionException {
- try {
- int _type = T__12;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:11:7: ( '/' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:11:9: '/'
- {
- match('/');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__12"
-
- // $ANTLR start "T__13"
- public final void mT__13() throws RecognitionException {
- try {
- int _type = T__13;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:12:7: ( ':' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:12:9: ':'
- {
- match(':');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__13"
-
- // $ANTLR start "T__14"
- public final void mT__14() throws RecognitionException {
- try {
- int _type = T__14;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:13:7: ( '~' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:13:9: '~'
- {
- match('~');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__14"
-
- // $ANTLR start "T__15"
- public final void mT__15() throws RecognitionException {
- try {
- int _type = T__15;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:14:7: ( '<Undefined>' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:14:9: '<Undefined>'
- {
- match("<Undefined>");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__15"
-
- // $ANTLR start "T__16"
- public final void mT__16() throws RecognitionException {
- try {
- int _type = T__16;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:15:7: ( '::' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:15:9: '::'
- {
- match("::");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__16"
-
- // $ANTLR start "T__17"
- public final void mT__17() throws RecognitionException {
- try {
- int _type = T__17;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:16:7: ( '[' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:16:9: '['
- {
- match('[');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__17"
-
- // $ANTLR start "T__18"
- public final void mT__18() throws RecognitionException {
- try {
- int _type = T__18;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:17:7: ( '..' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:17:9: '..'
- {
- match("..");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__18"
-
- // $ANTLR start "T__19"
- public final void mT__19() throws RecognitionException {
- try {
- int _type = T__19;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:18:7: ( ']' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:18:9: ']'
- {
- match(']');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__19"
-
- // $ANTLR start "T__20"
- public final void mT__20() throws RecognitionException {
- try {
- int _type = T__20;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:19:7: ( '*' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:19:9: '*'
- {
- match('*');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__20"
-
- // $ANTLR start "T__21"
- public final void mT__21() throws RecognitionException {
- try {
- int _type = T__21;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:20:7: ( '{' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:20:9: '{'
- {
- match('{');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__21"
-
- // $ANTLR start "T__22"
- public final void mT__22() throws RecognitionException {
- try {
- int _type = T__22;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:21:7: ( ',' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:21:9: ','
- {
- match(',');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__22"
-
- // $ANTLR start "T__23"
- public final void mT__23() throws RecognitionException {
- try {
- int _type = T__23;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:22:7: ( '}' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:22:9: '}'
- {
- match('}');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__23"
-
- // $ANTLR start "T__24"
- public final void mT__24() throws RecognitionException {
- try {
- int _type = T__24;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:23:7: ( 'redefines' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:23:9: 'redefines'
- {
- match("redefines");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__24"
-
- // $ANTLR start "T__25"
- public final void mT__25() throws RecognitionException {
- try {
- int _type = T__25;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:24:7: ( 'subsets' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:24:9: 'subsets'
- {
- match("subsets");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__25"
-
- // $ANTLR start "T__26"
- public final void mT__26() throws RecognitionException {
- try {
- int _type = T__26;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:25:7: ( '=' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:25:9: '='
- {
- match('=');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__26"
-
- // $ANTLR start "T__27"
- public final void mT__27() throws RecognitionException {
- try {
- int _type = T__27;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:26:7: ( '.' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:26:9: '.'
- {
- match('.');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__27"
-
- // $ANTLR start "T__28"
- public final void mT__28() throws RecognitionException {
- try {
- int _type = T__28;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:27:7: ( 'null' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:27:9: 'null'
- {
- match("null");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__28"
-
- // $ANTLR start "T__29"
- public final void mT__29() throws RecognitionException {
- try {
- int _type = T__29;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:28:7: ( 'none' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:28:9: 'none'
- {
- match("none");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__29"
-
- // $ANTLR start "T__30"
- public final void mT__30() throws RecognitionException {
- try {
- int _type = T__30;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:29:7: ( '+' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:29:9: '+'
- {
- match('+');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__30"
-
- // $ANTLR start "T__31"
- public final void mT__31() throws RecognitionException {
- try {
- int _type = T__31;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:30:7: ( '-' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:30:9: '-'
- {
- match('-');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__31"
-
- // $ANTLR start "T__32"
- public final void mT__32() throws RecognitionException {
- try {
- int _type = T__32;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:31:7: ( '#' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:31:9: '#'
- {
- match('#');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__32"
-
- // $ANTLR start "T__33"
- public final void mT__33() throws RecognitionException {
- try {
- int _type = T__33;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:32:7: ( 'readOnly' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:32:9: 'readOnly'
- {
- match("readOnly");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__33"
-
- // $ANTLR start "T__34"
- public final void mT__34() throws RecognitionException {
- try {
- int _type = T__34;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:33:7: ( 'union' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:33:9: 'union'
- {
- match("union");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__34"
-
- // $ANTLR start "T__35"
- public final void mT__35() throws RecognitionException {
- try {
- int _type = T__35;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:34:7: ( 'ordered' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:34:9: 'ordered'
- {
- match("ordered");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__35"
-
- // $ANTLR start "T__36"
- public final void mT__36() throws RecognitionException {
- try {
- int _type = T__36;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:35:7: ( 'unique' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:35:9: 'unique'
- {
- match("unique");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__36"
-
- // $ANTLR start "T__37"
- public final void mT__37() throws RecognitionException {
- try {
- int _type = T__37;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:36:7: ( 'true' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:36:9: 'true'
- {
- match("true");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__37"
-
- // $ANTLR start "T__38"
- public final void mT__38() throws RecognitionException {
- try {
- int _type = T__38;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:37:7: ( 'false' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:37:9: 'false'
- {
- match("false");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__38"
-
- // $ANTLR start "RULE_ID"
- public final void mRULE_ID() throws RecognitionException {
- try {
- int _type = RULE_ID;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1254:9: ( ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' (
- // options {greedy=false; } : . )* '\\'' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1254:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' (
- // options {greedy=false; } : . )* '\\'' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1254:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' (
- // options {greedy=false; } : . )* '\\'' )
- int alt3 = 2;
- int LA3_0 = input.LA(1);
-
- if (((LA3_0 >= 'A' && LA3_0 <= 'Z') || LA3_0 == '_' || (LA3_0 >= 'a' && LA3_0 <= 'z'))) {
- alt3 = 1;
- }
- else if ((LA3_0 == '\'')) {
- alt3 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 3, 0, input);
-
- throw nvae;
- }
- switch (alt3) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1254:12: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
- {
- if ((input.LA(1) >= 'A' && input.LA(1) <= 'Z') || input.LA(1) == '_' || (input.LA(1) >= 'a' && input.LA(1) <= 'z')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1254:36: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
- loop1: do {
- int alt1 = 2;
- int LA1_0 = input.LA(1);
-
- if (((LA1_0 >= '0' && LA1_0 <= '9') || (LA1_0 >= 'A' && LA1_0 <= 'Z') || LA1_0 == '_' || (LA1_0 >= 'a' && LA1_0 <= 'z'))) {
- alt1 = 1;
- }
-
-
- switch (alt1) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:
- {
- if ((input.LA(1) >= '0' && input.LA(1) <= '9') || (input.LA(1) >= 'A' && input.LA(1) <= 'Z') || input.LA(1) == '_' || (input.LA(1) >= 'a' && input.LA(1) <= 'z')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- break loop1;
- }
- } while (true);
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1254:70: '\\'' ( options {greedy=false; } : . )* '\\''
- {
- match('\'');
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1254:75: ( options {greedy=false; } : . )*
- loop2: do {
- int alt2 = 2;
- int LA2_0 = input.LA(1);
-
- if ((LA2_0 == '\'')) {
- alt2 = 2;
- }
- else if (((LA2_0 >= '\u0000' && LA2_0 <= '&') || (LA2_0 >= '(' && LA2_0 <= '\uFFFF'))) {
- alt2 = 1;
- }
-
-
- switch (alt2) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1254:103: .
- {
- matchAny();
-
- }
- break;
-
- default:
- break loop2;
- }
- } while (true);
-
- match('\'');
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_ID"
-
- // $ANTLR start "RULE_STRING"
- public final void mRULE_STRING() throws RecognitionException {
- try {
- int _type = RULE_STRING;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1256:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) )
- // )* '\"' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1256:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) )
- // )* '\"'
- {
- match('\"');
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1256:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
- loop4: do {
- int alt4 = 3;
- int LA4_0 = input.LA(1);
-
- if ((LA4_0 == '\\')) {
- alt4 = 1;
- }
- else if (((LA4_0 >= '\u0000' && LA4_0 <= '!') || (LA4_0 >= '#' && LA4_0 <= '[') || (LA4_0 >= ']' && LA4_0 <= '\uFFFF'))) {
- alt4 = 2;
- }
-
-
- switch (alt4) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1256:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
- {
- match('\\');
- if (input.LA(1) == '\"' || input.LA(1) == '\'' || input.LA(1) == '\\' || input.LA(1) == 'b' || input.LA(1) == 'f' || input.LA(1) == 'n' || input.LA(1) == 'r' || input.LA(1) == 't') {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1256:61: ~ ( ( '\\\\' | '\"' ) )
- {
- if ((input.LA(1) >= '\u0000' && input.LA(1) <= '!') || (input.LA(1) >= '#' && input.LA(1) <= '[') || (input.LA(1) >= ']' && input.LA(1) <= '\uFFFF')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- break loop4;
- }
- } while (true);
-
- match('\"');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_STRING"
-
- // $ANTLR start "RULE_ML_COMMENT"
- public final void mRULE_ML_COMMENT() throws RecognitionException {
- try {
- int _type = RULE_ML_COMMENT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1258:17: ( '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1258:19: '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/'
- {
- match("/*");
-
- if ((input.LA(1) >= '\u0000' && input.LA(1) <= '?') || (input.LA(1) >= 'A' && input.LA(1) <= '\uFFFF')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1258:31: ( options {greedy=false; } : . )*
- loop5: do {
- int alt5 = 2;
- int LA5_0 = input.LA(1);
-
- if ((LA5_0 == '*')) {
- int LA5_1 = input.LA(2);
-
- if ((LA5_1 == '/')) {
- alt5 = 2;
- }
- else if (((LA5_1 >= '\u0000' && LA5_1 <= '.') || (LA5_1 >= '0' && LA5_1 <= '\uFFFF'))) {
- alt5 = 1;
- }
-
-
- }
- else if (((LA5_0 >= '\u0000' && LA5_0 <= ')') || (LA5_0 >= '+' && LA5_0 <= '\uFFFF'))) {
- alt5 = 1;
- }
-
-
- switch (alt5) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1258:59: .
- {
- matchAny();
-
- }
- break;
-
- default:
- break loop5;
- }
- } while (true);
-
- match("*/");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_ML_COMMENT"
-
- // $ANTLR start "RULE_SL_COMMENT"
- public final void mRULE_SL_COMMENT() throws RecognitionException {
- try {
- int _type = RULE_SL_COMMENT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1260:17: ( '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1260:19: '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )?
- {
- match("//");
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1260:24: (~ ( ( '\\n' | '\\r' | '@' ) ) )*
- loop6: do {
- int alt6 = 2;
- int LA6_0 = input.LA(1);
-
- if (((LA6_0 >= '\u0000' && LA6_0 <= '\t') || (LA6_0 >= '\u000B' && LA6_0 <= '\f') || (LA6_0 >= '\u000E' && LA6_0 <= '?') || (LA6_0 >= 'A' && LA6_0 <= '\uFFFF'))) {
- alt6 = 1;
- }
-
-
- switch (alt6) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1260:24: ~ ( ( '\\n' | '\\r' | '@' ) )
- {
- if ((input.LA(1) >= '\u0000' && input.LA(1) <= '\t') || (input.LA(1) >= '\u000B' && input.LA(1) <= '\f') || (input.LA(1) >= '\u000E' && input.LA(1) <= '?') || (input.LA(1) >= 'A' && input.LA(1) <= '\uFFFF')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- break loop6;
- }
- } while (true);
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1260:44: ( ( '\\r' )? '\\n' )?
- int alt8 = 2;
- int LA8_0 = input.LA(1);
-
- if ((LA8_0 == '\n' || LA8_0 == '\r')) {
- alt8 = 1;
- }
- switch (alt8) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1260:45: ( '\\r' )? '\\n'
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1260:45: ( '\\r' )?
- int alt7 = 2;
- int LA7_0 = input.LA(1);
-
- if ((LA7_0 == '\r')) {
- alt7 = 1;
- }
- switch (alt7) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1260:45: '\\r'
- {
- match('\r');
-
- }
- break;
-
- }
-
- match('\n');
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_SL_COMMENT"
-
- // $ANTLR start "RULE_INT"
- public final void mRULE_INT() throws RecognitionException {
- try {
- int _type = RULE_INT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1262:10: ( ( '0' .. '9' )+ )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1262:12: ( '0' .. '9' )+
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1262:12: ( '0' .. '9' )+
- int cnt9 = 0;
- loop9: do {
- int alt9 = 2;
- int LA9_0 = input.LA(1);
-
- if (((LA9_0 >= '0' && LA9_0 <= '9'))) {
- alt9 = 1;
- }
-
-
- switch (alt9) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1262:13: '0' .. '9'
- {
- matchRange('0', '9');
-
- }
- break;
-
- default:
- if (cnt9 >= 1) {
- break loop9;
- }
- EarlyExitException eee =
- new EarlyExitException(9, input);
- throw eee;
- }
- cnt9++;
- } while (true);
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_INT"
-
- // $ANTLR start "RULE_INTEGER_VALUE"
- public final void mRULE_INTEGER_VALUE() throws RecognitionException {
- try {
- int _type = RULE_INTEGER_VALUE;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:20: ( ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' ..
- // '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' ..
- // '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0'
- // .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
- int alt22 = 4;
- int LA22_0 = input.LA(1);
-
- if ((LA22_0 == '0')) {
- switch (input.LA(2)) {
- case 'B':
- case 'b': {
- alt22 = 2;
- }
- break;
- case 'X':
- case 'x': {
- alt22 = 3;
- }
- break;
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '_': {
- alt22 = 4;
- }
- break;
- default:
- alt22 = 1;
- }
-
- }
- else if (((LA22_0 >= '1' && LA22_0 <= '9'))) {
- alt22 = 1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 22, 0, input);
-
- throw nvae;
- }
- switch (alt22) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
- int alt12 = 2;
- int LA12_0 = input.LA(1);
-
- if ((LA12_0 == '0')) {
- alt12 = 1;
- }
- else if (((LA12_0 >= '1' && LA12_0 <= '9'))) {
- alt12 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 12, 0, input);
-
- throw nvae;
- }
- switch (alt12) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:24: '0'
- {
- match('0');
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:28: '1' .. '9' ( ( '_' )? '0' .. '9' )*
- {
- matchRange('1', '9');
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:37: ( ( '_' )? '0' .. '9' )*
- loop11: do {
- int alt11 = 2;
- int LA11_0 = input.LA(1);
-
- if (((LA11_0 >= '0' && LA11_0 <= '9') || LA11_0 == '_')) {
- alt11 = 1;
- }
-
-
- switch (alt11) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:38: ( '_' )? '0' .. '9'
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:38: ( '_' )?
- int alt10 = 2;
- int LA10_0 = input.LA(1);
-
- if ((LA10_0 == '_')) {
- alt10 = 1;
- }
- switch (alt10) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:38: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0', '9');
-
- }
- break;
-
- default:
- break loop11;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:55: ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )*
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:55: ( '0b' | '0B' )
- int alt13 = 2;
- int LA13_0 = input.LA(1);
-
- if ((LA13_0 == '0')) {
- int LA13_1 = input.LA(2);
-
- if ((LA13_1 == 'b')) {
- alt13 = 1;
- }
- else if ((LA13_1 == 'B')) {
- alt13 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 13, 1, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 13, 0, input);
-
- throw nvae;
- }
- switch (alt13) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:56: '0b'
- {
- match("0b");
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:61: '0B'
- {
- match("0B");
-
-
- }
- break;
-
- }
-
- matchRange('0', '1');
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:76: ( ( '_' )? '0' .. '1' )*
- loop15: do {
- int alt15 = 2;
- int LA15_0 = input.LA(1);
-
- if (((LA15_0 >= '0' && LA15_0 <= '1') || LA15_0 == '_')) {
- alt15 = 1;
- }
-
-
- switch (alt15) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:77: ( '_' )? '0' .. '1'
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:77: ( '_' )?
- int alt14 = 2;
- int LA14_0 = input.LA(1);
-
- if ((LA14_0 == '_')) {
- alt14 = 1;
- }
- switch (alt14) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:77: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0', '1');
-
- }
- break;
-
- default:
- break loop15;
- }
- } while (true);
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:93: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f'
- // | 'A' .. 'F' ) )*
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:93: ( '0x' | '0X' )
- int alt16 = 2;
- int LA16_0 = input.LA(1);
-
- if ((LA16_0 == '0')) {
- int LA16_1 = input.LA(2);
-
- if ((LA16_1 == 'x')) {
- alt16 = 1;
- }
- else if ((LA16_1 == 'X')) {
- alt16 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 16, 1, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 16, 0, input);
-
- throw nvae;
- }
- switch (alt16) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:94: '0x'
- {
- match("0x");
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:99: '0X'
- {
- match("0X");
-
-
- }
- break;
-
- }
-
- if ((input.LA(1) >= '0' && input.LA(1) <= '9') || (input.LA(1) >= 'A' && input.LA(1) <= 'F') || (input.LA(1) >= 'a' && input.LA(1) <= 'f')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:134: ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
- loop18: do {
- int alt18 = 2;
- int LA18_0 = input.LA(1);
-
- if (((LA18_0 >= '0' && LA18_0 <= '9') || (LA18_0 >= 'A' && LA18_0 <= 'F') || LA18_0 == '_' || (LA18_0 >= 'a' && LA18_0 <= 'f'))) {
- alt18 = 1;
- }
-
-
- switch (alt18) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:135: ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:135: ( '_' )?
- int alt17 = 2;
- int LA17_0 = input.LA(1);
-
- if ((LA17_0 == '_')) {
- alt17 = 1;
- }
- switch (alt17) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:135: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- if ((input.LA(1) >= '0' && input.LA(1) <= '9') || (input.LA(1) >= 'A' && input.LA(1) <= 'F') || (input.LA(1) >= 'a' && input.LA(1) <= 'f')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- break loop18;
- }
- } while (true);
-
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:171: '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )*
- {
- match('0');
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:175: ( '_' )?
- int alt19 = 2;
- int LA19_0 = input.LA(1);
-
- if ((LA19_0 == '_')) {
- alt19 = 1;
- }
- switch (alt19) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:175: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0', '7');
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:189: ( ( '_' )? '0' .. '7' )*
- loop21: do {
- int alt21 = 2;
- int LA21_0 = input.LA(1);
-
- if (((LA21_0 >= '0' && LA21_0 <= '7') || LA21_0 == '_')) {
- alt21 = 1;
- }
-
-
- switch (alt21) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:190: ( '_' )? '0' .. '7'
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:190: ( '_' )?
- int alt20 = 2;
- int LA20_0 = input.LA(1);
-
- if ((LA20_0 == '_')) {
- alt20 = 1;
- }
- switch (alt20) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1264:190: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0', '7');
-
- }
- break;
-
- default:
- break loop21;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_INTEGER_VALUE"
-
- // $ANTLR start "RULE_WS"
- public final void mRULE_WS() throws RecognitionException {
- try {
- int _type = RULE_WS;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1266:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1266:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1266:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
- int cnt23 = 0;
- loop23: do {
- int alt23 = 2;
- int LA23_0 = input.LA(1);
-
- if (((LA23_0 >= '\t' && LA23_0 <= '\n') || LA23_0 == '\r' || LA23_0 == ' ')) {
- alt23 = 1;
- }
-
-
- switch (alt23) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:
- {
- if ((input.LA(1) >= '\t' && input.LA(1) <= '\n') || input.LA(1) == '\r' || input.LA(1) == ' ') {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- if (cnt23 >= 1) {
- break loop23;
- }
- EarlyExitException eee =
- new EarlyExitException(23, input);
- throw eee;
- }
- cnt23++;
- } while (true);
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_WS"
-
- // $ANTLR start "RULE_ANY_OTHER"
- public final void mRULE_ANY_OTHER() throws RecognitionException {
- try {
- int _type = RULE_ANY_OTHER;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1268:16: ( . )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1268:18: .
- {
- matchAny();
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_ANY_OTHER"
-
- @Override
- public void mTokens() throws RecognitionException {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 |
- // T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER )
- int alt24 = 35;
- alt24 = dfa24.predict(input);
- switch (alt24) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:10: T__12
- {
- mT__12();
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:16: T__13
- {
- mT__13();
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:22: T__14
- {
- mT__14();
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:28: T__15
- {
- mT__15();
-
- }
- break;
- case 5:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:34: T__16
- {
- mT__16();
-
- }
- break;
- case 6:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:40: T__17
- {
- mT__17();
-
- }
- break;
- case 7:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:46: T__18
- {
- mT__18();
-
- }
- break;
- case 8:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:52: T__19
- {
- mT__19();
-
- }
- break;
- case 9:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:58: T__20
- {
- mT__20();
-
- }
- break;
- case 10:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:64: T__21
- {
- mT__21();
-
- }
- break;
- case 11:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:70: T__22
- {
- mT__22();
-
- }
- break;
- case 12:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:76: T__23
- {
- mT__23();
-
- }
- break;
- case 13:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:82: T__24
- {
- mT__24();
-
- }
- break;
- case 14:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:88: T__25
- {
- mT__25();
-
- }
- break;
- case 15:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:94: T__26
- {
- mT__26();
-
- }
- break;
- case 16:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:100: T__27
- {
- mT__27();
-
- }
- break;
- case 17:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:106: T__28
- {
- mT__28();
-
- }
- break;
- case 18:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:112: T__29
- {
- mT__29();
-
- }
- break;
- case 19:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:118: T__30
- {
- mT__30();
-
- }
- break;
- case 20:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:124: T__31
- {
- mT__31();
-
- }
- break;
- case 21:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:130: T__32
- {
- mT__32();
-
- }
- break;
- case 22:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:136: T__33
- {
- mT__33();
-
- }
- break;
- case 23:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:142: T__34
- {
- mT__34();
-
- }
- break;
- case 24:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:148: T__35
- {
- mT__35();
-
- }
- break;
- case 25:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:154: T__36
- {
- mT__36();
-
- }
- break;
- case 26:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:160: T__37
- {
- mT__37();
-
- }
- break;
- case 27:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:166: T__38
- {
- mT__38();
-
- }
- break;
- case 28:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:172: RULE_ID
- {
- mRULE_ID();
-
- }
- break;
- case 29:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:180: RULE_STRING
- {
- mRULE_STRING();
-
- }
- break;
- case 30:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:192: RULE_ML_COMMENT
- {
- mRULE_ML_COMMENT();
-
- }
- break;
- case 31:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:208: RULE_SL_COMMENT
- {
- mRULE_SL_COMMENT();
-
- }
- break;
- case 32:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:224: RULE_INT
- {
- mRULE_INT();
-
- }
- break;
- case 33:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:233: RULE_INTEGER_VALUE
- {
- mRULE_INTEGER_VALUE();
-
- }
- break;
- case 34:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:252: RULE_WS
- {
- mRULE_WS();
-
- }
- break;
- case 35:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:260: RULE_ANY_OTHER
- {
- mRULE_ANY_OTHER();
-
- }
- break;
-
- }
-
- }
-
-
- protected DFA24 dfa24 = new DFA24(this);
- static final String DFA24_eotS =
- "\1\uffff\1\40\1\42\1\uffff\1\35\1\uffff\1\47\5\uffff\2\56\1\uffff" +
- "\1\56\3\uffff\4\56\1\uffff\2\35\2\75\21\uffff\1\56\1\uffff\1\56" +
- "\1\uffff\2\56\3\uffff\4\56\2\uffff\1\75\1\uffff\1\75\1\uffff\11" +
- "\56\1\75\3\56\1\127\1\130\3\56\1\134\4\56\2\uffff\1\141\2\56\1\uffff" +
- "\1\144\3\56\1\uffff\1\150\1\56\1\uffff\2\56\1\154\1\uffff\1\155" +
- "\1\56\1\157\2\uffff\1\160\2\uffff";
- static final String DFA24_eofS =
- "\161\uffff";
- static final String DFA24_minS =
- "\1\0\1\52\1\72\1\uffff\1\125\1\uffff\1\56\5\uffff\1\145\1\165\1" +
- "\uffff\1\157\3\uffff\1\156\2\162\1\141\1\uffff\2\0\2\60\21\uffff" +
- "\1\141\1\uffff\1\142\1\uffff\1\154\1\156\3\uffff\1\151\1\144\1\165" +
- "\1\154\2\uffff\1\60\1\uffff\1\60\1\uffff\1\145\1\144\1\163\1\154" +
- "\1\145\1\157\2\145\1\163\1\60\1\146\1\117\1\145\2\60\1\156\1\165" +
- "\1\162\1\60\1\145\1\151\1\156\1\164\2\uffff\1\60\2\145\1\uffff\1" +
- "\60\1\156\1\154\1\163\1\uffff\1\60\1\144\1\uffff\1\145\1\171\1\60" +
- "\1\uffff\1\60\1\163\1\60\2\uffff\1\60\2\uffff";
- static final String DFA24_maxS =
- "\1\uffff\1\57\1\72\1\uffff\1\125\1\uffff\1\56\5\uffff\1\145\1\165" +
- "\1\uffff\1\165\3\uffff\1\156\2\162\1\141\1\uffff\2\uffff\1\170\1" +
- "\137\21\uffff\1\144\1\uffff\1\142\1\uffff\1\154\1\156\3\uffff\1" +
- "\151\1\144\1\165\1\154\2\uffff\1\137\1\uffff\1\137\1\uffff\1\145" +
- "\1\144\1\163\1\154\1\145\1\161\2\145\1\163\1\137\1\146\1\117\1\145" +
- "\2\172\1\156\1\165\1\162\1\172\1\145\1\151\1\156\1\164\2\uffff\1" +
- "\172\2\145\1\uffff\1\172\1\156\1\154\1\163\1\uffff\1\172\1\144\1" +
- "\uffff\1\145\1\171\1\172\1\uffff\1\172\1\163\1\172\2\uffff\1\172" +
- "\2\uffff";
- static final String DFA24_acceptS =
- "\3\uffff\1\3\1\uffff\1\6\1\uffff\1\10\1\11\1\12\1\13\1\14\2\uffff" +
- "\1\17\1\uffff\1\23\1\24\1\25\4\uffff\1\34\4\uffff\1\42\1\43\1\36" +
- "\1\37\1\1\1\5\1\2\1\3\1\4\1\6\1\7\1\20\1\10\1\11\1\12\1\13\1\14" +
- "\1\uffff\1\34\1\uffff\1\17\2\uffff\1\23\1\24\1\25\4\uffff\1\35\1" +
- "\41\1\uffff\1\40\1\uffff\1\42\27\uffff\1\21\1\22\3\uffff\1\32\4" +
- "\uffff\1\27\2\uffff\1\33\3\uffff\1\31\3\uffff\1\16\1\30\1\uffff" +
- "\1\26\1\15";
- static final String DFA24_specialS =
- "\1\0\27\uffff\1\1\1\2\127\uffff}>";
- static final String[] DFA24_transitionS = {
- "\11\35\2\34\2\35\1\34\22\35\1\34\1\35\1\31\1\22\3\35\1\30\2" +
- "\35\1\10\1\20\1\12\1\21\1\6\1\1\1\32\11\33\1\2\1\35\1\4\1\16" +
- "\3\35\32\27\1\5\1\35\1\7\1\35\1\27\1\35\5\27\1\26\7\27\1\17" +
- "\1\24\2\27\1\14\1\15\1\25\1\23\5\27\1\11\1\35\1\13\1\3\uff81" +
- "\35",
- "\1\36\4\uffff\1\37",
- "\1\41",
- "",
- "\1\44",
- "",
- "\1\46",
- "",
- "",
- "",
- "",
- "",
- "\1\55",
- "\1\57",
- "",
- "\1\62\5\uffff\1\61",
- "",
- "",
- "",
- "\1\66",
- "\1\67",
- "\1\70",
- "\1\71",
- "",
- "\0\56",
- "\0\72",
- "\10\74\12\uffff\1\73\25\uffff\1\73\6\uffff\1\73\2\uffff\1" +
- "\73\25\uffff\1\73",
- "\12\76\45\uffff\1\73",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "\1\101\2\uffff\1\100",
- "",
- "\1\102",
- "",
- "\1\103",
- "\1\104",
- "",
- "",
- "",
- "\1\105",
- "\1\106",
- "\1\107",
- "\1\110",
- "",
- "",
- "\10\111\47\uffff\1\73",
- "",
- "\12\76\45\uffff\1\73",
- "",
- "\1\112",
- "\1\113",
- "\1\114",
- "\1\115",
- "\1\116",
- "\1\117\1\uffff\1\120",
- "\1\121",
- "\1\122",
- "\1\123",
- "\10\111\47\uffff\1\73",
- "\1\124",
- "\1\125",
- "\1\126",
- "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
- "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
- "\1\131",
- "\1\132",
- "\1\133",
- "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
- "\1\135",
- "\1\136",
- "\1\137",
- "\1\140",
- "",
- "",
- "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
- "\1\142",
- "\1\143",
- "",
- "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
- "\1\145",
- "\1\146",
- "\1\147",
- "",
- "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
- "\1\151",
- "",
- "\1\152",
- "\1\153",
- "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
- "",
- "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
- "\1\156",
- "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
- "",
- "",
- "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
- "",
- ""
- };
-
- static final short[] DFA24_eot = DFA.unpackEncodedString(DFA24_eotS);
- static final short[] DFA24_eof = DFA.unpackEncodedString(DFA24_eofS);
- static final char[] DFA24_min = DFA.unpackEncodedStringToUnsignedChars(DFA24_minS);
- static final char[] DFA24_max = DFA.unpackEncodedStringToUnsignedChars(DFA24_maxS);
- static final short[] DFA24_accept = DFA.unpackEncodedString(DFA24_acceptS);
- static final short[] DFA24_special = DFA.unpackEncodedString(DFA24_specialS);
- static final short[][] DFA24_transition;
-
- static {
- int numStates = DFA24_transitionS.length;
- DFA24_transition = new short[numStates][];
- for (int i = 0; i < numStates; i++) {
- DFA24_transition[i] = DFA.unpackEncodedString(DFA24_transitionS[i]);
- }
- }
-
- class DFA24 extends DFA {
-
- public DFA24(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 24;
- this.eot = DFA24_eot;
- this.eof = DFA24_eof;
- this.min = DFA24_min;
- this.max = DFA24_max;
- this.accept = DFA24_accept;
- this.special = DFA24_special;
- this.transition = DFA24_transition;
- }
-
- @Override
- public String getDescription() {
- return "1:1: Tokens : ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER );";
- }
-
- @Override
- public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
- IntStream input = _input;
- int _s = s;
- switch (s) {
- case 0:
- int LA24_0 = input.LA(1);
-
- s = -1;
- if ((LA24_0 == '/')) {
- s = 1;
- }
-
- else if ((LA24_0 == ':')) {
- s = 2;
- }
-
- else if ((LA24_0 == '~')) {
- s = 3;
- }
-
- else if ((LA24_0 == '<')) {
- s = 4;
- }
-
- else if ((LA24_0 == '[')) {
- s = 5;
- }
-
- else if ((LA24_0 == '.')) {
- s = 6;
- }
-
- else if ((LA24_0 == ']')) {
- s = 7;
- }
-
- else if ((LA24_0 == '*')) {
- s = 8;
- }
-
- else if ((LA24_0 == '{')) {
- s = 9;
- }
-
- else if ((LA24_0 == ',')) {
- s = 10;
- }
-
- else if ((LA24_0 == '}')) {
- s = 11;
- }
-
- else if ((LA24_0 == 'r')) {
- s = 12;
- }
-
- else if ((LA24_0 == 's')) {
- s = 13;
- }
-
- else if ((LA24_0 == '=')) {
- s = 14;
- }
-
- else if ((LA24_0 == 'n')) {
- s = 15;
- }
-
- else if ((LA24_0 == '+')) {
- s = 16;
- }
-
- else if ((LA24_0 == '-')) {
- s = 17;
- }
-
- else if ((LA24_0 == '#')) {
- s = 18;
- }
-
- else if ((LA24_0 == 'u')) {
- s = 19;
- }
-
- else if ((LA24_0 == 'o')) {
- s = 20;
- }
-
- else if ((LA24_0 == 't')) {
- s = 21;
- }
-
- else if ((LA24_0 == 'f')) {
- s = 22;
- }
-
- else if (((LA24_0 >= 'A' && LA24_0 <= 'Z') || LA24_0 == '_' || (LA24_0 >= 'a' && LA24_0 <= 'e') || (LA24_0 >= 'g' && LA24_0 <= 'm') || (LA24_0 >= 'p' && LA24_0 <= 'q') || (LA24_0 >= 'v' && LA24_0 <= 'z'))) {
- s = 23;
- }
-
- else if ((LA24_0 == '\'')) {
- s = 24;
- }
-
- else if ((LA24_0 == '\"')) {
- s = 25;
- }
-
- else if ((LA24_0 == '0')) {
- s = 26;
- }
-
- else if (((LA24_0 >= '1' && LA24_0 <= '9'))) {
- s = 27;
- }
-
- else if (((LA24_0 >= '\t' && LA24_0 <= '\n') || LA24_0 == '\r' || LA24_0 == ' ')) {
- s = 28;
- }
-
- else if (((LA24_0 >= '\u0000' && LA24_0 <= '\b') || (LA24_0 >= '\u000B' && LA24_0 <= '\f') || (LA24_0 >= '\u000E' && LA24_0 <= '\u001F') || LA24_0 == '!' || (LA24_0 >= '$' && LA24_0 <= '&') || (LA24_0 >= '(' && LA24_0 <= ')') || LA24_0 == ';'
- || (LA24_0 >= '>' && LA24_0 <= '@') || LA24_0 == '\\' || LA24_0 == '^' || LA24_0 == '`' || LA24_0 == '|' || (LA24_0 >= '\u007F' && LA24_0 <= '\uFFFF'))) {
- s = 29;
- }
-
- if (s >= 0) {
- return s;
- }
- break;
- case 1:
- int LA24_24 = input.LA(1);
-
- s = -1;
- if (((LA24_24 >= '\u0000' && LA24_24 <= '\uFFFF'))) {
- s = 46;
- } else {
- s = 29;
- }
-
- if (s >= 0) {
- return s;
- }
- break;
- case 2:
- int LA24_25 = input.LA(1);
-
- s = -1;
- if (((LA24_25 >= '\u0000' && LA24_25 <= '\uFFFF'))) {
- s = 58;
- } else {
- s = 29;
- }
-
- if (s >= 0) {
- return s;
- }
- break;
- }
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 24, _s, input);
- error(nvae);
- throw nvae;
- }
- }
-
-
+package org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal;
+
+// Hack: Use our own Lexer superclass by means of import.
+// Currently there is no other way to specify the superclass for the lexer.
+import org.eclipse.xtext.parser.antlr.Lexer;
+
+
+import org.antlr.runtime.*;
+import java.util.Stack;
+import java.util.List;
+import java.util.ArrayList;
+
+@SuppressWarnings("all")
+public class InternalUmlPortLexer extends Lexer {
+ public static final int RULE_ID=4;
+ public static final int T__29=29;
+ public static final int T__28=28;
+ public static final int T__27=27;
+ public static final int T__26=26;
+ public static final int T__25=25;
+ public static final int T__24=24;
+ public static final int T__23=23;
+ public static final int T__22=22;
+ public static final int RULE_ANY_OTHER=11;
+ public static final int T__21=21;
+ public static final int T__20=20;
+ public static final int RULE_INTEGER_VALUE=9;
+ public static final int EOF=-1;
+ public static final int RULE_SL_COMMENT=8;
+ public static final int RULE_ML_COMMENT=7;
+ public static final int T__19=19;
+ public static final int T__30=30;
+ public static final int T__31=31;
+ public static final int T__32=32;
+ public static final int RULE_STRING=6;
+ public static final int T__16=16;
+ public static final int T__33=33;
+ public static final int T__15=15;
+ public static final int T__34=34;
+ public static final int T__18=18;
+ public static final int T__35=35;
+ public static final int T__17=17;
+ public static final int T__36=36;
+ public static final int T__12=12;
+ public static final int T__37=37;
+ public static final int T__38=38;
+ public static final int T__14=14;
+ public static final int T__13=13;
+ public static final int RULE_INT=5;
+ public static final int RULE_WS=10;
+
+ // delegates
+ // delegators
+
+ public InternalUmlPortLexer() {;}
+ public InternalUmlPortLexer(CharStream input) {
+ this(input, new RecognizerSharedState());
+ }
+ public InternalUmlPortLexer(CharStream input, RecognizerSharedState state) {
+ super(input,state);
+
+ }
+ public String getGrammarFileName() { return "../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g"; }
+
+ // $ANTLR start "T__12"
+ public final void mT__12() throws RecognitionException {
+ try {
+ int _type = T__12;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:11:7: ( '/' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:11:9: '/'
+ {
+ match('/');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__12"
+
+ // $ANTLR start "T__13"
+ public final void mT__13() throws RecognitionException {
+ try {
+ int _type = T__13;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:12:7: ( ':' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:12:9: ':'
+ {
+ match(':');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__13"
+
+ // $ANTLR start "T__14"
+ public final void mT__14() throws RecognitionException {
+ try {
+ int _type = T__14;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:13:7: ( '~' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:13:9: '~'
+ {
+ match('~');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__14"
+
+ // $ANTLR start "T__15"
+ public final void mT__15() throws RecognitionException {
+ try {
+ int _type = T__15;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:14:7: ( '<Undefined>' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:14:9: '<Undefined>'
+ {
+ match("<Undefined>");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__15"
+
+ // $ANTLR start "T__16"
+ public final void mT__16() throws RecognitionException {
+ try {
+ int _type = T__16;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:15:7: ( '::' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:15:9: '::'
+ {
+ match("::");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__16"
+
+ // $ANTLR start "T__17"
+ public final void mT__17() throws RecognitionException {
+ try {
+ int _type = T__17;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:16:7: ( '[' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:16:9: '['
+ {
+ match('[');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__17"
+
+ // $ANTLR start "T__18"
+ public final void mT__18() throws RecognitionException {
+ try {
+ int _type = T__18;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:17:7: ( '..' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:17:9: '..'
+ {
+ match("..");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__18"
+
+ // $ANTLR start "T__19"
+ public final void mT__19() throws RecognitionException {
+ try {
+ int _type = T__19;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:18:7: ( ']' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:18:9: ']'
+ {
+ match(']');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__19"
+
+ // $ANTLR start "T__20"
+ public final void mT__20() throws RecognitionException {
+ try {
+ int _type = T__20;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:19:7: ( '*' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:19:9: '*'
+ {
+ match('*');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__20"
+
+ // $ANTLR start "T__21"
+ public final void mT__21() throws RecognitionException {
+ try {
+ int _type = T__21;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:20:7: ( '{' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:20:9: '{'
+ {
+ match('{');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__21"
+
+ // $ANTLR start "T__22"
+ public final void mT__22() throws RecognitionException {
+ try {
+ int _type = T__22;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:21:7: ( ',' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:21:9: ','
+ {
+ match(',');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__22"
+
+ // $ANTLR start "T__23"
+ public final void mT__23() throws RecognitionException {
+ try {
+ int _type = T__23;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:22:7: ( '}' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:22:9: '}'
+ {
+ match('}');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__23"
+
+ // $ANTLR start "T__24"
+ public final void mT__24() throws RecognitionException {
+ try {
+ int _type = T__24;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:23:7: ( 'redefines' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:23:9: 'redefines'
+ {
+ match("redefines");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__24"
+
+ // $ANTLR start "T__25"
+ public final void mT__25() throws RecognitionException {
+ try {
+ int _type = T__25;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:24:7: ( 'subsets' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:24:9: 'subsets'
+ {
+ match("subsets");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__25"
+
+ // $ANTLR start "T__26"
+ public final void mT__26() throws RecognitionException {
+ try {
+ int _type = T__26;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:25:7: ( '=' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:25:9: '='
+ {
+ match('=');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__26"
+
+ // $ANTLR start "T__27"
+ public final void mT__27() throws RecognitionException {
+ try {
+ int _type = T__27;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:26:7: ( '.' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:26:9: '.'
+ {
+ match('.');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__27"
+
+ // $ANTLR start "T__28"
+ public final void mT__28() throws RecognitionException {
+ try {
+ int _type = T__28;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:27:7: ( 'null' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:27:9: 'null'
+ {
+ match("null");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__28"
+
+ // $ANTLR start "T__29"
+ public final void mT__29() throws RecognitionException {
+ try {
+ int _type = T__29;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:28:7: ( 'none' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:28:9: 'none'
+ {
+ match("none");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__29"
+
+ // $ANTLR start "T__30"
+ public final void mT__30() throws RecognitionException {
+ try {
+ int _type = T__30;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:29:7: ( '+' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:29:9: '+'
+ {
+ match('+');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__30"
+
+ // $ANTLR start "T__31"
+ public final void mT__31() throws RecognitionException {
+ try {
+ int _type = T__31;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:30:7: ( '-' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:30:9: '-'
+ {
+ match('-');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__31"
+
+ // $ANTLR start "T__32"
+ public final void mT__32() throws RecognitionException {
+ try {
+ int _type = T__32;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:31:7: ( '#' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:31:9: '#'
+ {
+ match('#');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__32"
+
+ // $ANTLR start "T__33"
+ public final void mT__33() throws RecognitionException {
+ try {
+ int _type = T__33;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:32:7: ( 'readOnly' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:32:9: 'readOnly'
+ {
+ match("readOnly");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__33"
+
+ // $ANTLR start "T__34"
+ public final void mT__34() throws RecognitionException {
+ try {
+ int _type = T__34;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:33:7: ( 'union' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:33:9: 'union'
+ {
+ match("union");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__34"
+
+ // $ANTLR start "T__35"
+ public final void mT__35() throws RecognitionException {
+ try {
+ int _type = T__35;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:34:7: ( 'ordered' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:34:9: 'ordered'
+ {
+ match("ordered");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__35"
+
+ // $ANTLR start "T__36"
+ public final void mT__36() throws RecognitionException {
+ try {
+ int _type = T__36;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:35:7: ( 'unique' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:35:9: 'unique'
+ {
+ match("unique");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__36"
+
+ // $ANTLR start "T__37"
+ public final void mT__37() throws RecognitionException {
+ try {
+ int _type = T__37;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:36:7: ( 'true' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:36:9: 'true'
+ {
+ match("true");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__37"
+
+ // $ANTLR start "T__38"
+ public final void mT__38() throws RecognitionException {
+ try {
+ int _type = T__38;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:37:7: ( 'false' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:37:9: 'false'
+ {
+ match("false");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__38"
+
+ // $ANTLR start "RULE_ID"
+ public final void mRULE_ID() throws RecognitionException {
+ try {
+ int _type = RULE_ID;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1300:9: ( ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1300:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1300:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' )
+ int alt3=2;
+ int LA3_0 = input.LA(1);
+
+ if ( ((LA3_0>='A' && LA3_0<='Z')||LA3_0=='_'||(LA3_0>='a' && LA3_0<='z')) ) {
+ alt3=1;
+ }
+ else if ( (LA3_0=='\'') ) {
+ alt3=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 3, 0, input);
+
+ throw nvae;
+ }
+ switch (alt3) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1300:12: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ {
+ if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1300:36: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ loop1:
+ do {
+ int alt1=2;
+ int LA1_0 = input.LA(1);
+
+ if ( ((LA1_0>='0' && LA1_0<='9')||(LA1_0>='A' && LA1_0<='Z')||LA1_0=='_'||(LA1_0>='a' && LA1_0<='z')) ) {
+ alt1=1;
+ }
+
+
+ switch (alt1) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:
+ {
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop1;
+ }
+ } while (true);
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1300:70: '\\'' ( options {greedy=false; } : . )* '\\''
+ {
+ match('\'');
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1300:75: ( options {greedy=false; } : . )*
+ loop2:
+ do {
+ int alt2=2;
+ int LA2_0 = input.LA(1);
+
+ if ( (LA2_0=='\'') ) {
+ alt2=2;
+ }
+ else if ( ((LA2_0>='\u0000' && LA2_0<='&')||(LA2_0>='(' && LA2_0<='\uFFFF')) ) {
+ alt2=1;
+ }
+
+
+ switch (alt2) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1300:103: .
+ {
+ matchAny();
+
+ }
+ break;
+
+ default :
+ break loop2;
+ }
+ } while (true);
+
+ match('\'');
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_ID"
+
+ // $ANTLR start "RULE_STRING"
+ public final void mRULE_STRING() throws RecognitionException {
+ try {
+ int _type = RULE_STRING;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1302:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1302:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
+ {
+ match('\"');
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1302:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
+ loop4:
+ do {
+ int alt4=3;
+ int LA4_0 = input.LA(1);
+
+ if ( (LA4_0=='\\') ) {
+ alt4=1;
+ }
+ else if ( ((LA4_0>='\u0000' && LA4_0<='!')||(LA4_0>='#' && LA4_0<='[')||(LA4_0>=']' && LA4_0<='\uFFFF')) ) {
+ alt4=2;
+ }
+
+
+ switch (alt4) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1302:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
+ {
+ match('\\');
+ if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1302:61: ~ ( ( '\\\\' | '\"' ) )
+ {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop4;
+ }
+ } while (true);
+
+ match('\"');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_STRING"
+
+ // $ANTLR start "RULE_ML_COMMENT"
+ public final void mRULE_ML_COMMENT() throws RecognitionException {
+ try {
+ int _type = RULE_ML_COMMENT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1304:17: ( '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1304:19: '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/'
+ {
+ match("/*");
+
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='?')||(input.LA(1)>='A' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1304:31: ( options {greedy=false; } : . )*
+ loop5:
+ do {
+ int alt5=2;
+ int LA5_0 = input.LA(1);
+
+ if ( (LA5_0=='*') ) {
+ int LA5_1 = input.LA(2);
+
+ if ( (LA5_1=='/') ) {
+ alt5=2;
+ }
+ else if ( ((LA5_1>='\u0000' && LA5_1<='.')||(LA5_1>='0' && LA5_1<='\uFFFF')) ) {
+ alt5=1;
+ }
+
+
+ }
+ else if ( ((LA5_0>='\u0000' && LA5_0<=')')||(LA5_0>='+' && LA5_0<='\uFFFF')) ) {
+ alt5=1;
+ }
+
+
+ switch (alt5) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1304:59: .
+ {
+ matchAny();
+
+ }
+ break;
+
+ default :
+ break loop5;
+ }
+ } while (true);
+
+ match("*/");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_ML_COMMENT"
+
+ // $ANTLR start "RULE_SL_COMMENT"
+ public final void mRULE_SL_COMMENT() throws RecognitionException {
+ try {
+ int _type = RULE_SL_COMMENT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1306:17: ( '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1306:19: '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )?
+ {
+ match("//");
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1306:24: (~ ( ( '\\n' | '\\r' | '@' ) ) )*
+ loop6:
+ do {
+ int alt6=2;
+ int LA6_0 = input.LA(1);
+
+ if ( ((LA6_0>='\u0000' && LA6_0<='\t')||(LA6_0>='\u000B' && LA6_0<='\f')||(LA6_0>='\u000E' && LA6_0<='?')||(LA6_0>='A' && LA6_0<='\uFFFF')) ) {
+ alt6=1;
+ }
+
+
+ switch (alt6) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1306:24: ~ ( ( '\\n' | '\\r' | '@' ) )
+ {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='?')||(input.LA(1)>='A' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop6;
+ }
+ } while (true);
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1306:44: ( ( '\\r' )? '\\n' )?
+ int alt8=2;
+ int LA8_0 = input.LA(1);
+
+ if ( (LA8_0=='\n'||LA8_0=='\r') ) {
+ alt8=1;
+ }
+ switch (alt8) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1306:45: ( '\\r' )? '\\n'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1306:45: ( '\\r' )?
+ int alt7=2;
+ int LA7_0 = input.LA(1);
+
+ if ( (LA7_0=='\r') ) {
+ alt7=1;
+ }
+ switch (alt7) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1306:45: '\\r'
+ {
+ match('\r');
+
+ }
+ break;
+
+ }
+
+ match('\n');
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_SL_COMMENT"
+
+ // $ANTLR start "RULE_INT"
+ public final void mRULE_INT() throws RecognitionException {
+ try {
+ int _type = RULE_INT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1308:10: ( ( '0' .. '9' )+ )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1308:12: ( '0' .. '9' )+
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1308:12: ( '0' .. '9' )+
+ int cnt9=0;
+ loop9:
+ do {
+ int alt9=2;
+ int LA9_0 = input.LA(1);
+
+ if ( ((LA9_0>='0' && LA9_0<='9')) ) {
+ alt9=1;
+ }
+
+
+ switch (alt9) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1308:13: '0' .. '9'
+ {
+ matchRange('0','9');
+
+ }
+ break;
+
+ default :
+ if ( cnt9 >= 1 ) break loop9;
+ EarlyExitException eee =
+ new EarlyExitException(9, input);
+ throw eee;
+ }
+ cnt9++;
+ } while (true);
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_INT"
+
+ // $ANTLR start "RULE_INTEGER_VALUE"
+ public final void mRULE_INTEGER_VALUE() throws RecognitionException {
+ try {
+ int _type = RULE_INTEGER_VALUE;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:20: ( ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
+ int alt22=4;
+ int LA22_0 = input.LA(1);
+
+ if ( (LA22_0=='0') ) {
+ switch ( input.LA(2) ) {
+ case 'B':
+ case 'b':
+ {
+ alt22=2;
+ }
+ break;
+ case 'X':
+ case 'x':
+ {
+ alt22=3;
+ }
+ break;
+ case '0':
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ case '_':
+ {
+ alt22=4;
+ }
+ break;
+ default:
+ alt22=1;}
+
+ }
+ else if ( ((LA22_0>='1' && LA22_0<='9')) ) {
+ alt22=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 22, 0, input);
+
+ throw nvae;
+ }
+ switch (alt22) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
+ int alt12=2;
+ int LA12_0 = input.LA(1);
+
+ if ( (LA12_0=='0') ) {
+ alt12=1;
+ }
+ else if ( ((LA12_0>='1' && LA12_0<='9')) ) {
+ alt12=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 12, 0, input);
+
+ throw nvae;
+ }
+ switch (alt12) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:24: '0'
+ {
+ match('0');
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:28: '1' .. '9' ( ( '_' )? '0' .. '9' )*
+ {
+ matchRange('1','9');
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:37: ( ( '_' )? '0' .. '9' )*
+ loop11:
+ do {
+ int alt11=2;
+ int LA11_0 = input.LA(1);
+
+ if ( ((LA11_0>='0' && LA11_0<='9')||LA11_0=='_') ) {
+ alt11=1;
+ }
+
+
+ switch (alt11) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:38: ( '_' )? '0' .. '9'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:38: ( '_' )?
+ int alt10=2;
+ int LA10_0 = input.LA(1);
+
+ if ( (LA10_0=='_') ) {
+ alt10=1;
+ }
+ switch (alt10) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:38: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','9');
+
+ }
+ break;
+
+ default :
+ break loop11;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:55: ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )*
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:55: ( '0b' | '0B' )
+ int alt13=2;
+ int LA13_0 = input.LA(1);
+
+ if ( (LA13_0=='0') ) {
+ int LA13_1 = input.LA(2);
+
+ if ( (LA13_1=='b') ) {
+ alt13=1;
+ }
+ else if ( (LA13_1=='B') ) {
+ alt13=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 13, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 13, 0, input);
+
+ throw nvae;
+ }
+ switch (alt13) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:56: '0b'
+ {
+ match("0b");
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:61: '0B'
+ {
+ match("0B");
+
+
+ }
+ break;
+
+ }
+
+ matchRange('0','1');
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:76: ( ( '_' )? '0' .. '1' )*
+ loop15:
+ do {
+ int alt15=2;
+ int LA15_0 = input.LA(1);
+
+ if ( ((LA15_0>='0' && LA15_0<='1')||LA15_0=='_') ) {
+ alt15=1;
+ }
+
+
+ switch (alt15) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:77: ( '_' )? '0' .. '1'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:77: ( '_' )?
+ int alt14=2;
+ int LA14_0 = input.LA(1);
+
+ if ( (LA14_0=='_') ) {
+ alt14=1;
+ }
+ switch (alt14) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:77: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','1');
+
+ }
+ break;
+
+ default :
+ break loop15;
+ }
+ } while (true);
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:93: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:93: ( '0x' | '0X' )
+ int alt16=2;
+ int LA16_0 = input.LA(1);
+
+ if ( (LA16_0=='0') ) {
+ int LA16_1 = input.LA(2);
+
+ if ( (LA16_1=='x') ) {
+ alt16=1;
+ }
+ else if ( (LA16_1=='X') ) {
+ alt16=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 16, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 16, 0, input);
+
+ throw nvae;
+ }
+ switch (alt16) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:94: '0x'
+ {
+ match("0x");
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:99: '0X'
+ {
+ match("0X");
+
+
+ }
+ break;
+
+ }
+
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:134: ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
+ loop18:
+ do {
+ int alt18=2;
+ int LA18_0 = input.LA(1);
+
+ if ( ((LA18_0>='0' && LA18_0<='9')||(LA18_0>='A' && LA18_0<='F')||LA18_0=='_'||(LA18_0>='a' && LA18_0<='f')) ) {
+ alt18=1;
+ }
+
+
+ switch (alt18) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:135: ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:135: ( '_' )?
+ int alt17=2;
+ int LA17_0 = input.LA(1);
+
+ if ( (LA17_0=='_') ) {
+ alt17=1;
+ }
+ switch (alt17) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:135: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop18;
+ }
+ } while (true);
+
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:171: '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )*
+ {
+ match('0');
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:175: ( '_' )?
+ int alt19=2;
+ int LA19_0 = input.LA(1);
+
+ if ( (LA19_0=='_') ) {
+ alt19=1;
+ }
+ switch (alt19) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:175: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','7');
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:189: ( ( '_' )? '0' .. '7' )*
+ loop21:
+ do {
+ int alt21=2;
+ int LA21_0 = input.LA(1);
+
+ if ( ((LA21_0>='0' && LA21_0<='7')||LA21_0=='_') ) {
+ alt21=1;
+ }
+
+
+ switch (alt21) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:190: ( '_' )? '0' .. '7'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:190: ( '_' )?
+ int alt20=2;
+ int LA20_0 = input.LA(1);
+
+ if ( (LA20_0=='_') ) {
+ alt20=1;
+ }
+ switch (alt20) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1310:190: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','7');
+
+ }
+ break;
+
+ default :
+ break loop21;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_INTEGER_VALUE"
+
+ // $ANTLR start "RULE_WS"
+ public final void mRULE_WS() throws RecognitionException {
+ try {
+ int _type = RULE_WS;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1312:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1312:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1312:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ int cnt23=0;
+ loop23:
+ do {
+ int alt23=2;
+ int LA23_0 = input.LA(1);
+
+ if ( ((LA23_0>='\t' && LA23_0<='\n')||LA23_0=='\r'||LA23_0==' ') ) {
+ alt23=1;
+ }
+
+
+ switch (alt23) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:
+ {
+ if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ if ( cnt23 >= 1 ) break loop23;
+ EarlyExitException eee =
+ new EarlyExitException(23, input);
+ throw eee;
+ }
+ cnt23++;
+ } while (true);
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_WS"
+
+ // $ANTLR start "RULE_ANY_OTHER"
+ public final void mRULE_ANY_OTHER() throws RecognitionException {
+ try {
+ int _type = RULE_ANY_OTHER;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1314:16: ( . )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1314:18: .
+ {
+ matchAny();
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_ANY_OTHER"
+
+ public void mTokens() throws RecognitionException {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER )
+ int alt24=35;
+ alt24 = dfa24.predict(input);
+ switch (alt24) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:10: T__12
+ {
+ mT__12();
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:16: T__13
+ {
+ mT__13();
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:22: T__14
+ {
+ mT__14();
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:28: T__15
+ {
+ mT__15();
+
+ }
+ break;
+ case 5 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:34: T__16
+ {
+ mT__16();
+
+ }
+ break;
+ case 6 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:40: T__17
+ {
+ mT__17();
+
+ }
+ break;
+ case 7 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:46: T__18
+ {
+ mT__18();
+
+ }
+ break;
+ case 8 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:52: T__19
+ {
+ mT__19();
+
+ }
+ break;
+ case 9 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:58: T__20
+ {
+ mT__20();
+
+ }
+ break;
+ case 10 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:64: T__21
+ {
+ mT__21();
+
+ }
+ break;
+ case 11 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:70: T__22
+ {
+ mT__22();
+
+ }
+ break;
+ case 12 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:76: T__23
+ {
+ mT__23();
+
+ }
+ break;
+ case 13 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:82: T__24
+ {
+ mT__24();
+
+ }
+ break;
+ case 14 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:88: T__25
+ {
+ mT__25();
+
+ }
+ break;
+ case 15 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:94: T__26
+ {
+ mT__26();
+
+ }
+ break;
+ case 16 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:100: T__27
+ {
+ mT__27();
+
+ }
+ break;
+ case 17 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:106: T__28
+ {
+ mT__28();
+
+ }
+ break;
+ case 18 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:112: T__29
+ {
+ mT__29();
+
+ }
+ break;
+ case 19 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:118: T__30
+ {
+ mT__30();
+
+ }
+ break;
+ case 20 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:124: T__31
+ {
+ mT__31();
+
+ }
+ break;
+ case 21 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:130: T__32
+ {
+ mT__32();
+
+ }
+ break;
+ case 22 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:136: T__33
+ {
+ mT__33();
+
+ }
+ break;
+ case 23 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:142: T__34
+ {
+ mT__34();
+
+ }
+ break;
+ case 24 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:148: T__35
+ {
+ mT__35();
+
+ }
+ break;
+ case 25 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:154: T__36
+ {
+ mT__36();
+
+ }
+ break;
+ case 26 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:160: T__37
+ {
+ mT__37();
+
+ }
+ break;
+ case 27 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:166: T__38
+ {
+ mT__38();
+
+ }
+ break;
+ case 28 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:172: RULE_ID
+ {
+ mRULE_ID();
+
+ }
+ break;
+ case 29 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:180: RULE_STRING
+ {
+ mRULE_STRING();
+
+ }
+ break;
+ case 30 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:192: RULE_ML_COMMENT
+ {
+ mRULE_ML_COMMENT();
+
+ }
+ break;
+ case 31 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:208: RULE_SL_COMMENT
+ {
+ mRULE_SL_COMMENT();
+
+ }
+ break;
+ case 32 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:224: RULE_INT
+ {
+ mRULE_INT();
+
+ }
+ break;
+ case 33 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:233: RULE_INTEGER_VALUE
+ {
+ mRULE_INTEGER_VALUE();
+
+ }
+ break;
+ case 34 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:252: RULE_WS
+ {
+ mRULE_WS();
+
+ }
+ break;
+ case 35 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1:260: RULE_ANY_OTHER
+ {
+ mRULE_ANY_OTHER();
+
+ }
+ break;
+
+ }
+
+ }
+
+
+ protected DFA24 dfa24 = new DFA24(this);
+ static final String DFA24_eotS =
+ "\1\uffff\1\40\1\42\1\uffff\1\35\1\uffff\1\47\5\uffff\2\56\1\uffff"+
+ "\1\56\3\uffff\4\56\1\uffff\2\35\2\75\21\uffff\1\56\1\uffff\1\56"+
+ "\1\uffff\2\56\3\uffff\4\56\2\uffff\1\75\1\uffff\1\75\1\uffff\11"+
+ "\56\1\75\3\56\1\127\1\130\3\56\1\134\4\56\2\uffff\1\141\2\56\1\uffff"+
+ "\1\144\3\56\1\uffff\1\150\1\56\1\uffff\2\56\1\154\1\uffff\1\155"+
+ "\1\56\1\157\2\uffff\1\160\2\uffff";
+ static final String DFA24_eofS =
+ "\161\uffff";
+ static final String DFA24_minS =
+ "\1\0\1\52\1\72\1\uffff\1\125\1\uffff\1\56\5\uffff\1\145\1\165\1"+
+ "\uffff\1\157\3\uffff\1\156\2\162\1\141\1\uffff\2\0\2\60\21\uffff"+
+ "\1\141\1\uffff\1\142\1\uffff\1\154\1\156\3\uffff\1\151\1\144\1\165"+
+ "\1\154\2\uffff\1\60\1\uffff\1\60\1\uffff\1\145\1\144\1\163\1\154"+
+ "\1\145\1\157\2\145\1\163\1\60\1\146\1\117\1\145\2\60\1\156\1\165"+
+ "\1\162\1\60\1\145\1\151\1\156\1\164\2\uffff\1\60\2\145\1\uffff\1"+
+ "\60\1\156\1\154\1\163\1\uffff\1\60\1\144\1\uffff\1\145\1\171\1\60"+
+ "\1\uffff\1\60\1\163\1\60\2\uffff\1\60\2\uffff";
+ static final String DFA24_maxS =
+ "\1\uffff\1\57\1\72\1\uffff\1\125\1\uffff\1\56\5\uffff\1\145\1\165"+
+ "\1\uffff\1\165\3\uffff\1\156\2\162\1\141\1\uffff\2\uffff\1\170\1"+
+ "\137\21\uffff\1\144\1\uffff\1\142\1\uffff\1\154\1\156\3\uffff\1"+
+ "\151\1\144\1\165\1\154\2\uffff\1\137\1\uffff\1\137\1\uffff\1\145"+
+ "\1\144\1\163\1\154\1\145\1\161\2\145\1\163\1\137\1\146\1\117\1\145"+
+ "\2\172\1\156\1\165\1\162\1\172\1\145\1\151\1\156\1\164\2\uffff\1"+
+ "\172\2\145\1\uffff\1\172\1\156\1\154\1\163\1\uffff\1\172\1\144\1"+
+ "\uffff\1\145\1\171\1\172\1\uffff\1\172\1\163\1\172\2\uffff\1\172"+
+ "\2\uffff";
+ static final String DFA24_acceptS =
+ "\3\uffff\1\3\1\uffff\1\6\1\uffff\1\10\1\11\1\12\1\13\1\14\2\uffff"+
+ "\1\17\1\uffff\1\23\1\24\1\25\4\uffff\1\34\4\uffff\1\42\1\43\1\36"+
+ "\1\37\1\1\1\5\1\2\1\3\1\4\1\6\1\7\1\20\1\10\1\11\1\12\1\13\1\14"+
+ "\1\uffff\1\34\1\uffff\1\17\2\uffff\1\23\1\24\1\25\4\uffff\1\35\1"+
+ "\41\1\uffff\1\40\1\uffff\1\42\27\uffff\1\21\1\22\3\uffff\1\32\4"+
+ "\uffff\1\27\2\uffff\1\33\3\uffff\1\31\3\uffff\1\16\1\30\1\uffff"+
+ "\1\26\1\15";
+ static final String DFA24_specialS =
+ "\1\0\27\uffff\1\1\1\2\127\uffff}>";
+ static final String[] DFA24_transitionS = {
+ "\11\35\2\34\2\35\1\34\22\35\1\34\1\35\1\31\1\22\3\35\1\30\2"+
+ "\35\1\10\1\20\1\12\1\21\1\6\1\1\1\32\11\33\1\2\1\35\1\4\1\16"+
+ "\3\35\32\27\1\5\1\35\1\7\1\35\1\27\1\35\5\27\1\26\7\27\1\17"+
+ "\1\24\2\27\1\14\1\15\1\25\1\23\5\27\1\11\1\35\1\13\1\3\uff81"+
+ "\35",
+ "\1\36\4\uffff\1\37",
+ "\1\41",
+ "",
+ "\1\44",
+ "",
+ "\1\46",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\55",
+ "\1\57",
+ "",
+ "\1\62\5\uffff\1\61",
+ "",
+ "",
+ "",
+ "\1\66",
+ "\1\67",
+ "\1\70",
+ "\1\71",
+ "",
+ "\0\56",
+ "\0\72",
+ "\10\74\12\uffff\1\73\25\uffff\1\73\6\uffff\1\73\2\uffff\1"+
+ "\73\25\uffff\1\73",
+ "\12\76\45\uffff\1\73",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\101\2\uffff\1\100",
+ "",
+ "\1\102",
+ "",
+ "\1\103",
+ "\1\104",
+ "",
+ "",
+ "",
+ "\1\105",
+ "\1\106",
+ "\1\107",
+ "\1\110",
+ "",
+ "",
+ "\10\111\47\uffff\1\73",
+ "",
+ "\12\76\45\uffff\1\73",
+ "",
+ "\1\112",
+ "\1\113",
+ "\1\114",
+ "\1\115",
+ "\1\116",
+ "\1\117\1\uffff\1\120",
+ "\1\121",
+ "\1\122",
+ "\1\123",
+ "\10\111\47\uffff\1\73",
+ "\1\124",
+ "\1\125",
+ "\1\126",
+ "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
+ "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
+ "\1\131",
+ "\1\132",
+ "\1\133",
+ "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
+ "\1\135",
+ "\1\136",
+ "\1\137",
+ "\1\140",
+ "",
+ "",
+ "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
+ "\1\142",
+ "\1\143",
+ "",
+ "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
+ "\1\145",
+ "\1\146",
+ "\1\147",
+ "",
+ "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
+ "\1\151",
+ "",
+ "\1\152",
+ "\1\153",
+ "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
+ "",
+ "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
+ "\1\156",
+ "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
+ "",
+ "",
+ "\12\56\7\uffff\32\56\4\uffff\1\56\1\uffff\32\56",
+ "",
+ ""
+ };
+
+ static final short[] DFA24_eot = DFA.unpackEncodedString(DFA24_eotS);
+ static final short[] DFA24_eof = DFA.unpackEncodedString(DFA24_eofS);
+ static final char[] DFA24_min = DFA.unpackEncodedStringToUnsignedChars(DFA24_minS);
+ static final char[] DFA24_max = DFA.unpackEncodedStringToUnsignedChars(DFA24_maxS);
+ static final short[] DFA24_accept = DFA.unpackEncodedString(DFA24_acceptS);
+ static final short[] DFA24_special = DFA.unpackEncodedString(DFA24_specialS);
+ static final short[][] DFA24_transition;
+
+ static {
+ int numStates = DFA24_transitionS.length;
+ DFA24_transition = new short[numStates][];
+ for (int i=0; i<numStates; i++) {
+ DFA24_transition[i] = DFA.unpackEncodedString(DFA24_transitionS[i]);
+ }
+ }
+
+ class DFA24 extends DFA {
+
+ public DFA24(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 24;
+ this.eot = DFA24_eot;
+ this.eof = DFA24_eof;
+ this.min = DFA24_min;
+ this.max = DFA24_max;
+ this.accept = DFA24_accept;
+ this.special = DFA24_special;
+ this.transition = DFA24_transition;
+ }
+ public String getDescription() {
+ return "1:1: Tokens : ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER );";
+ }
+ public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
+ IntStream input = _input;
+ int _s = s;
+ switch ( s ) {
+ case 0 :
+ int LA24_0 = input.LA(1);
+
+ s = -1;
+ if ( (LA24_0=='/') ) {s = 1;}
+
+ else if ( (LA24_0==':') ) {s = 2;}
+
+ else if ( (LA24_0=='~') ) {s = 3;}
+
+ else if ( (LA24_0=='<') ) {s = 4;}
+
+ else if ( (LA24_0=='[') ) {s = 5;}
+
+ else if ( (LA24_0=='.') ) {s = 6;}
+
+ else if ( (LA24_0==']') ) {s = 7;}
+
+ else if ( (LA24_0=='*') ) {s = 8;}
+
+ else if ( (LA24_0=='{') ) {s = 9;}
+
+ else if ( (LA24_0==',') ) {s = 10;}
+
+ else if ( (LA24_0=='}') ) {s = 11;}
+
+ else if ( (LA24_0=='r') ) {s = 12;}
+
+ else if ( (LA24_0=='s') ) {s = 13;}
+
+ else if ( (LA24_0=='=') ) {s = 14;}
+
+ else if ( (LA24_0=='n') ) {s = 15;}
+
+ else if ( (LA24_0=='+') ) {s = 16;}
+
+ else if ( (LA24_0=='-') ) {s = 17;}
+
+ else if ( (LA24_0=='#') ) {s = 18;}
+
+ else if ( (LA24_0=='u') ) {s = 19;}
+
+ else if ( (LA24_0=='o') ) {s = 20;}
+
+ else if ( (LA24_0=='t') ) {s = 21;}
+
+ else if ( (LA24_0=='f') ) {s = 22;}
+
+ else if ( ((LA24_0>='A' && LA24_0<='Z')||LA24_0=='_'||(LA24_0>='a' && LA24_0<='e')||(LA24_0>='g' && LA24_0<='m')||(LA24_0>='p' && LA24_0<='q')||(LA24_0>='v' && LA24_0<='z')) ) {s = 23;}
+
+ else if ( (LA24_0=='\'') ) {s = 24;}
+
+ else if ( (LA24_0=='\"') ) {s = 25;}
+
+ else if ( (LA24_0=='0') ) {s = 26;}
+
+ else if ( ((LA24_0>='1' && LA24_0<='9')) ) {s = 27;}
+
+ else if ( ((LA24_0>='\t' && LA24_0<='\n')||LA24_0=='\r'||LA24_0==' ') ) {s = 28;}
+
+ else if ( ((LA24_0>='\u0000' && LA24_0<='\b')||(LA24_0>='\u000B' && LA24_0<='\f')||(LA24_0>='\u000E' && LA24_0<='\u001F')||LA24_0=='!'||(LA24_0>='$' && LA24_0<='&')||(LA24_0>='(' && LA24_0<=')')||LA24_0==';'||(LA24_0>='>' && LA24_0<='@')||LA24_0=='\\'||LA24_0=='^'||LA24_0=='`'||LA24_0=='|'||(LA24_0>='\u007F' && LA24_0<='\uFFFF')) ) {s = 29;}
+
+ if ( s>=0 ) return s;
+ break;
+ case 1 :
+ int LA24_24 = input.LA(1);
+
+ s = -1;
+ if ( ((LA24_24>='\u0000' && LA24_24<='\uFFFF')) ) {s = 46;}
+
+ else s = 29;
+
+ if ( s>=0 ) return s;
+ break;
+ case 2 :
+ int LA24_25 = input.LA(1);
+
+ s = -1;
+ if ( ((LA24_25>='\u0000' && LA24_25<='\uFFFF')) ) {s = 58;}
+
+ else s = 29;
+
+ if ( s>=0 ) return s;
+ break;
+ }
+ NoViableAltException nvae =
+ new NoViableAltException(getDescription(), 24, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+
+
} \ No newline at end of file
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPortParser.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPortParser.java
index e0d2e1f6130..59b927eb469 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPortParser.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPortParser.java
@@ -1,3499 +1,3622 @@
-package org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.common.util.Enumerator;
-import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
-import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken;
-import org.eclipse.papyrus.uml.textedit.port.xtext.services.UmlPortGrammarAccess;
-
-import org.antlr.runtime.*;
-
-@SuppressWarnings("all")
-public class InternalUmlPortParser extends AbstractInternalAntlrParser {
- public static final String[] tokenNames = new String[] {
- "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_INTEGER_VALUE", "RULE_WS", "RULE_ANY_OTHER", "'/'", "':'", "'~'", "'<Undefined>'", "'::'", "'['", "'..'", "']'", "'*'",
- "'{'", "','", "'}'", "'redefines'", "'subsets'", "'='", "'.'", "'null'", "'none'", "'+'", "'-'", "'#'", "'readOnly'", "'union'", "'ordered'", "'unique'", "'true'", "'false'"
- };
- public static final int RULE_ID = 4;
- public static final int T__29 = 29;
- public static final int T__28 = 28;
- public static final int T__27 = 27;
- public static final int T__26 = 26;
- public static final int T__25 = 25;
- public static final int T__24 = 24;
- public static final int T__23 = 23;
- public static final int T__22 = 22;
- public static final int RULE_ANY_OTHER = 11;
- public static final int T__21 = 21;
- public static final int T__20 = 20;
- public static final int RULE_INTEGER_VALUE = 9;
- public static final int RULE_SL_COMMENT = 8;
- public static final int EOF = -1;
- public static final int RULE_ML_COMMENT = 7;
- public static final int T__30 = 30;
- public static final int T__19 = 19;
- public static final int T__31 = 31;
- public static final int RULE_STRING = 6;
- public static final int T__32 = 32;
- public static final int T__33 = 33;
- public static final int T__16 = 16;
- public static final int T__34 = 34;
- public static final int T__15 = 15;
- public static final int T__35 = 35;
- public static final int T__18 = 18;
- public static final int T__36 = 36;
- public static final int T__17 = 17;
- public static final int T__37 = 37;
- public static final int T__12 = 12;
- public static final int T__38 = 38;
- public static final int T__14 = 14;
- public static final int T__13 = 13;
- public static final int RULE_INT = 5;
- public static final int RULE_WS = 10;
-
- // delegates
- // delegators
-
-
- public InternalUmlPortParser(TokenStream input) {
- this(input, new RecognizerSharedState());
- }
-
- public InternalUmlPortParser(TokenStream input, RecognizerSharedState state) {
- super(input, state);
-
- }
-
-
- @Override
- public String[] getTokenNames() {
- return InternalUmlPortParser.tokenNames;
- }
-
- @Override
- public String getGrammarFileName() {
- return "../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g";
- }
-
-
-
- private UmlPortGrammarAccess grammarAccess;
-
- public InternalUmlPortParser(TokenStream input, UmlPortGrammarAccess grammarAccess) {
- this(input);
- this.grammarAccess = grammarAccess;
- registerRules(grammarAccess.getGrammar());
- }
-
- @Override
- protected String getFirstRuleName() {
- return "PortRule";
- }
-
- @Override
- protected UmlPortGrammarAccess getGrammarAccess() {
- return grammarAccess;
- }
-
-
-
- // $ANTLR start "entryRulePortRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:68:1: entryRulePortRule returns [EObject current=null] : iv_rulePortRule= rulePortRule EOF ;
- public final EObject entryRulePortRule() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePortRule = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:69:2: (iv_rulePortRule= rulePortRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:70:2: iv_rulePortRule= rulePortRule EOF
- {
- newCompositeNode(grammarAccess.getPortRuleRule());
- pushFollow(FOLLOW_rulePortRule_in_entryRulePortRule75);
- iv_rulePortRule = rulePortRule();
-
- state._fsp--;
-
- current = iv_rulePortRule;
- match(input, EOF, FOLLOW_EOF_in_entryRulePortRule85);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRulePortRule"
-
-
- // $ANTLR start "rulePortRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:77:1: rulePortRule returns [EObject current=null] : ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? (
- // (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( (lv_conjugated_4_0= '~' ) )? ( ( (lv_type_5_0= ruleTypeRule ) ) | ( (lv_typeUndefined_6_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_7_0= ruleMultiplicityRule ) )? (
- // (lv_modifiers_8_0= ruleModifiersRule ) )? ( (lv_default_9_0= ruleDefaultValueRule ) )? ) ;
- public final EObject rulePortRule() throws RecognitionException {
- EObject current = null;
-
- Token lv_derived_1_0 = null;
- Token lv_name_2_0 = null;
- Token otherlv_3 = null;
- Token lv_conjugated_4_0 = null;
- Token lv_typeUndefined_6_0 = null;
- EObject lv_visibility_0_0 = null;
-
- EObject lv_type_5_0 = null;
-
- EObject lv_multiplicity_7_0 = null;
-
- EObject lv_modifiers_8_0 = null;
-
- EObject lv_default_9_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:80:28: ( ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0=
- // RULE_ID ) ) (otherlv_3= ':' ( (lv_conjugated_4_0= '~' ) )? ( ( (lv_type_5_0= ruleTypeRule ) ) | ( (lv_typeUndefined_6_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_7_0= ruleMultiplicityRule ) )? ( (lv_modifiers_8_0= ruleModifiersRule ) )? (
- // (lv_default_9_0= ruleDefaultValueRule ) )? ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:81:1: ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID
- // ) ) (otherlv_3= ':' ( (lv_conjugated_4_0= '~' ) )? ( ( (lv_type_5_0= ruleTypeRule ) ) | ( (lv_typeUndefined_6_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_7_0= ruleMultiplicityRule ) )? ( (lv_modifiers_8_0= ruleModifiersRule ) )? (
- // (lv_default_9_0= ruleDefaultValueRule ) )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:81:1: ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0=
- // RULE_ID ) ) (otherlv_3= ':' ( (lv_conjugated_4_0= '~' ) )? ( ( (lv_type_5_0= ruleTypeRule ) ) | ( (lv_typeUndefined_6_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_7_0= ruleMultiplicityRule ) )? ( (lv_modifiers_8_0= ruleModifiersRule ) )? (
- // (lv_default_9_0= ruleDefaultValueRule ) )? )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:81:2: ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0=
- // RULE_ID ) ) (otherlv_3= ':' ( (lv_conjugated_4_0= '~' ) )? ( ( (lv_type_5_0= ruleTypeRule ) ) | ( (lv_typeUndefined_6_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_7_0= ruleMultiplicityRule ) )? ( (lv_modifiers_8_0= ruleModifiersRule ) )? (
- // (lv_default_9_0= ruleDefaultValueRule ) )?
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:81:2: ( (lv_visibility_0_0= ruleVisibilityRule ) )?
- int alt1 = 2;
- int LA1_0 = input.LA(1);
-
- if ((LA1_0 == 14 || (LA1_0 >= 30 && LA1_0 <= 32))) {
- alt1 = 1;
- }
- switch (alt1) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:82:1: (lv_visibility_0_0= ruleVisibilityRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:82:1: (lv_visibility_0_0= ruleVisibilityRule )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:83:3: lv_visibility_0_0= ruleVisibilityRule
- {
-
- newCompositeNode(grammarAccess.getPortRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0());
-
- pushFollow(FOLLOW_ruleVisibilityRule_in_rulePortRule131);
- lv_visibility_0_0 = ruleVisibilityRule();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getPortRuleRule());
- }
- set(
- current,
- "visibility",
- lv_visibility_0_0,
- "VisibilityRule");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
- break;
-
- }
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:99:3: ( (lv_derived_1_0= '/' ) )?
- int alt2 = 2;
- int LA2_0 = input.LA(1);
-
- if ((LA2_0 == 12)) {
- alt2 = 1;
- }
- switch (alt2) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:100:1: (lv_derived_1_0= '/' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:100:1: (lv_derived_1_0= '/' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:101:3: lv_derived_1_0= '/'
- {
- lv_derived_1_0 = (Token) match(input, 12, FOLLOW_12_in_rulePortRule150);
-
- newLeafNode(lv_derived_1_0, grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0());
-
-
- if (current == null) {
- current = createModelElement(grammarAccess.getPortRuleRule());
- }
- setWithLastConsumed(current, "derived", true, "/");
-
-
- }
-
-
- }
- break;
-
- }
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:114:3: ( (lv_name_2_0= RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:115:1: (lv_name_2_0= RULE_ID )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:115:1: (lv_name_2_0= RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:116:3: lv_name_2_0= RULE_ID
- {
- lv_name_2_0 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_rulePortRule181);
-
- newLeafNode(lv_name_2_0, grammarAccess.getPortRuleAccess().getNameIDTerminalRuleCall_2_0());
-
-
- if (current == null) {
- current = createModelElement(grammarAccess.getPortRuleRule());
- }
- setWithLastConsumed(
- current,
- "name",
- lv_name_2_0,
- "ID");
-
-
- }
-
-
- }
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:132:2: (otherlv_3= ':' ( (lv_conjugated_4_0= '~' ) )? ( ( (lv_type_5_0= ruleTypeRule ) ) | (
- // (lv_typeUndefined_6_0= '<Undefined>' ) ) ) )?
- int alt5 = 2;
- int LA5_0 = input.LA(1);
-
- if ((LA5_0 == 13)) {
- alt5 = 1;
- }
- switch (alt5) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:132:4: otherlv_3= ':' ( (lv_conjugated_4_0= '~' ) )? ( ( (lv_type_5_0= ruleTypeRule ) ) | (
- // (lv_typeUndefined_6_0= '<Undefined>' ) ) )
- {
- otherlv_3 = (Token) match(input, 13, FOLLOW_13_in_rulePortRule199);
-
- newLeafNode(otherlv_3, grammarAccess.getPortRuleAccess().getColonKeyword_3_0());
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:136:1: ( (lv_conjugated_4_0= '~' ) )?
- int alt3 = 2;
- int LA3_0 = input.LA(1);
-
- if ((LA3_0 == 14)) {
- alt3 = 1;
- }
- switch (alt3) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:137:1: (lv_conjugated_4_0= '~' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:137:1: (lv_conjugated_4_0= '~' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:138:3: lv_conjugated_4_0= '~'
- {
- lv_conjugated_4_0 = (Token) match(input, 14, FOLLOW_14_in_rulePortRule217);
-
- newLeafNode(lv_conjugated_4_0, grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0());
-
-
- if (current == null) {
- current = createModelElement(grammarAccess.getPortRuleRule());
- }
- setWithLastConsumed(current, "conjugated", true, "~");
-
-
- }
-
-
- }
- break;
-
- }
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:151:3: ( ( (lv_type_5_0= ruleTypeRule ) ) | ( (lv_typeUndefined_6_0= '<Undefined>' ) ) )
- int alt4 = 2;
- int LA4_0 = input.LA(1);
-
- if ((LA4_0 == RULE_ID)) {
- alt4 = 1;
- }
- else if ((LA4_0 == 15)) {
- alt4 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 4, 0, input);
-
- throw nvae;
- }
- switch (alt4) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:151:4: ( (lv_type_5_0= ruleTypeRule ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:151:4: ( (lv_type_5_0= ruleTypeRule ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:152:1: (lv_type_5_0= ruleTypeRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:152:1: (lv_type_5_0= ruleTypeRule )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:153:3: lv_type_5_0= ruleTypeRule
- {
-
- newCompositeNode(grammarAccess.getPortRuleAccess().getTypeTypeRuleParserRuleCall_3_2_0_0());
-
- pushFollow(FOLLOW_ruleTypeRule_in_rulePortRule253);
- lv_type_5_0 = ruleTypeRule();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getPortRuleRule());
- }
- set(
- current,
- "type",
- lv_type_5_0,
- "TypeRule");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:170:6: ( (lv_typeUndefined_6_0= '<Undefined>' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:170:6: ( (lv_typeUndefined_6_0= '<Undefined>' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:171:1: (lv_typeUndefined_6_0= '<Undefined>' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:171:1: (lv_typeUndefined_6_0= '<Undefined>' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:172:3: lv_typeUndefined_6_0= '<Undefined>'
- {
- lv_typeUndefined_6_0 = (Token) match(input, 15, FOLLOW_15_in_rulePortRule277);
-
- newLeafNode(lv_typeUndefined_6_0, grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0());
-
-
- if (current == null) {
- current = createModelElement(grammarAccess.getPortRuleRule());
- }
- setWithLastConsumed(current, "typeUndefined", true, "<Undefined>");
-
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
- break;
-
- }
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:185:5: ( (lv_multiplicity_7_0= ruleMultiplicityRule ) )?
- int alt6 = 2;
- int LA6_0 = input.LA(1);
-
- if ((LA6_0 == 17)) {
- alt6 = 1;
- }
- switch (alt6) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:186:1: (lv_multiplicity_7_0= ruleMultiplicityRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:186:1: (lv_multiplicity_7_0= ruleMultiplicityRule )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:187:3: lv_multiplicity_7_0= ruleMultiplicityRule
- {
-
- newCompositeNode(grammarAccess.getPortRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0());
-
- pushFollow(FOLLOW_ruleMultiplicityRule_in_rulePortRule314);
- lv_multiplicity_7_0 = ruleMultiplicityRule();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getPortRuleRule());
- }
- set(
- current,
- "multiplicity",
- lv_multiplicity_7_0,
- "MultiplicityRule");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
- break;
-
- }
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:203:3: ( (lv_modifiers_8_0= ruleModifiersRule ) )?
- int alt7 = 2;
- int LA7_0 = input.LA(1);
-
- if ((LA7_0 == 21)) {
- alt7 = 1;
- }
- switch (alt7) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:204:1: (lv_modifiers_8_0= ruleModifiersRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:204:1: (lv_modifiers_8_0= ruleModifiersRule )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:205:3: lv_modifiers_8_0= ruleModifiersRule
- {
-
- newCompositeNode(grammarAccess.getPortRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0());
-
- pushFollow(FOLLOW_ruleModifiersRule_in_rulePortRule336);
- lv_modifiers_8_0 = ruleModifiersRule();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getPortRuleRule());
- }
- set(
- current,
- "modifiers",
- lv_modifiers_8_0,
- "ModifiersRule");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
- break;
-
- }
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:221:3: ( (lv_default_9_0= ruleDefaultValueRule ) )?
- int alt8 = 2;
- int LA8_0 = input.LA(1);
-
- if ((LA8_0 == 26)) {
- alt8 = 1;
- }
- switch (alt8) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:222:1: (lv_default_9_0= ruleDefaultValueRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:222:1: (lv_default_9_0= ruleDefaultValueRule )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:223:3: lv_default_9_0= ruleDefaultValueRule
- {
-
- newCompositeNode(grammarAccess.getPortRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0());
-
- pushFollow(FOLLOW_ruleDefaultValueRule_in_rulePortRule358);
- lv_default_9_0 = ruleDefaultValueRule();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getPortRuleRule());
- }
- set(
- current,
- "default",
- lv_default_9_0,
- "DefaultValueRule");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "rulePortRule"
-
-
- // $ANTLR start "entryRuleVisibilityRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:247:1: entryRuleVisibilityRule returns [EObject current=null] : iv_ruleVisibilityRule= ruleVisibilityRule EOF ;
- public final EObject entryRuleVisibilityRule() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleVisibilityRule = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:248:2: (iv_ruleVisibilityRule= ruleVisibilityRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:249:2: iv_ruleVisibilityRule= ruleVisibilityRule EOF
- {
- newCompositeNode(grammarAccess.getVisibilityRuleRule());
- pushFollow(FOLLOW_ruleVisibilityRule_in_entryRuleVisibilityRule395);
- iv_ruleVisibilityRule = ruleVisibilityRule();
-
- state._fsp--;
-
- current = iv_ruleVisibilityRule;
- match(input, EOF, FOLLOW_EOF_in_entryRuleVisibilityRule405);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleVisibilityRule"
-
-
- // $ANTLR start "ruleVisibilityRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:256:1: ruleVisibilityRule returns [EObject current=null] : ( (lv_visibility_0_0= ruleVisibilityKind ) ) ;
- public final EObject ruleVisibilityRule() throws RecognitionException {
- EObject current = null;
-
- Enumerator lv_visibility_0_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:259:28: ( ( (lv_visibility_0_0= ruleVisibilityKind ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:260:1: ( (lv_visibility_0_0= ruleVisibilityKind ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:260:1: ( (lv_visibility_0_0= ruleVisibilityKind ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:261:1: (lv_visibility_0_0= ruleVisibilityKind )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:261:1: (lv_visibility_0_0= ruleVisibilityKind )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:262:3: lv_visibility_0_0= ruleVisibilityKind
- {
-
- newCompositeNode(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0());
-
- pushFollow(FOLLOW_ruleVisibilityKind_in_ruleVisibilityRule450);
- lv_visibility_0_0 = ruleVisibilityKind();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getVisibilityRuleRule());
- }
- set(
- current,
- "visibility",
- lv_visibility_0_0,
- "VisibilityKind");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleVisibilityRule"
-
-
- // $ANTLR start "entryRuleTypeRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:286:1: entryRuleTypeRule returns [EObject current=null] : iv_ruleTypeRule= ruleTypeRule EOF ;
- public final EObject entryRuleTypeRule() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleTypeRule = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:287:2: (iv_ruleTypeRule= ruleTypeRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:288:2: iv_ruleTypeRule= ruleTypeRule EOF
- {
- newCompositeNode(grammarAccess.getTypeRuleRule());
- pushFollow(FOLLOW_ruleTypeRule_in_entryRuleTypeRule485);
- iv_ruleTypeRule = ruleTypeRule();
-
- state._fsp--;
-
- current = iv_ruleTypeRule;
- match(input, EOF, FOLLOW_EOF_in_entryRuleTypeRule495);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleTypeRule"
-
-
- // $ANTLR start "ruleTypeRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:295:1: ruleTypeRule returns [EObject current=null] : ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1=
- // RULE_ID ) ) ) ;
- public final EObject ruleTypeRule() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1 = null;
- EObject lv_path_0_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:298:28: ( ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:299:1: ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:299:1: ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:299:2: ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:299:2: ( (lv_path_0_0= ruleQualifiedName ) )?
- int alt9 = 2;
- int LA9_0 = input.LA(1);
-
- if ((LA9_0 == RULE_ID)) {
- int LA9_1 = input.LA(2);
-
- if ((LA9_1 == 16)) {
- alt9 = 1;
- }
- }
- switch (alt9) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:300:1: (lv_path_0_0= ruleQualifiedName )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:300:1: (lv_path_0_0= ruleQualifiedName )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:301:3: lv_path_0_0= ruleQualifiedName
- {
-
- newCompositeNode(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0());
-
- pushFollow(FOLLOW_ruleQualifiedName_in_ruleTypeRule541);
- lv_path_0_0 = ruleQualifiedName();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getTypeRuleRule());
- }
- set(
- current,
- "path",
- lv_path_0_0,
- "QualifiedName");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
- break;
-
- }
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:317:3: ( (otherlv_1= RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:318:1: (otherlv_1= RULE_ID )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:318:1: (otherlv_1= RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:319:3: otherlv_1= RULE_ID
- {
-
- if (current == null) {
- current = createModelElement(grammarAccess.getTypeRuleRule());
- }
-
- otherlv_1 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleTypeRule562);
-
- newLeafNode(otherlv_1, grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0());
-
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleTypeRule"
-
-
- // $ANTLR start "entryRuleQualifiedName"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:338:1: entryRuleQualifiedName returns [EObject current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ;
- public final EObject entryRuleQualifiedName() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleQualifiedName = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:339:2: (iv_ruleQualifiedName= ruleQualifiedName EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:340:2: iv_ruleQualifiedName= ruleQualifiedName EOF
- {
- newCompositeNode(grammarAccess.getQualifiedNameRule());
- pushFollow(FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName598);
- iv_ruleQualifiedName = ruleQualifiedName();
-
- state._fsp--;
-
- current = iv_ruleQualifiedName;
- match(input, EOF, FOLLOW_EOF_in_entryRuleQualifiedName608);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleQualifiedName"
-
-
- // $ANTLR start "ruleQualifiedName"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:347:1: ruleQualifiedName returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' (
- // (lv_remaining_2_0= ruleQualifiedName ) )? ) ;
- public final EObject ruleQualifiedName() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0 = null;
- Token otherlv_1 = null;
- EObject lv_remaining_2_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:350:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:351:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:351:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:351:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )?
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:351:2: ( (otherlv_0= RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:352:1: (otherlv_0= RULE_ID )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:352:1: (otherlv_0= RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:353:3: otherlv_0= RULE_ID
- {
-
- if (current == null) {
- current = createModelElement(grammarAccess.getQualifiedNameRule());
- }
-
- otherlv_0 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleQualifiedName653);
-
- newLeafNode(otherlv_0, grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0());
-
-
- }
-
-
- }
-
- otherlv_1 = (Token) match(input, 16, FOLLOW_16_in_ruleQualifiedName665);
-
- newLeafNode(otherlv_1, grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1());
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:368:1: ( (lv_remaining_2_0= ruleQualifiedName ) )?
- int alt10 = 2;
- int LA10_0 = input.LA(1);
-
- if ((LA10_0 == RULE_ID)) {
- int LA10_1 = input.LA(2);
-
- if ((LA10_1 == 16)) {
- alt10 = 1;
- }
- }
- switch (alt10) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:369:1: (lv_remaining_2_0= ruleQualifiedName )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:369:1: (lv_remaining_2_0= ruleQualifiedName )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:370:3: lv_remaining_2_0= ruleQualifiedName
- {
-
- newCompositeNode(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0());
-
- pushFollow(FOLLOW_ruleQualifiedName_in_ruleQualifiedName686);
- lv_remaining_2_0 = ruleQualifiedName();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getQualifiedNameRule());
- }
- set(
- current,
- "remaining",
- lv_remaining_2_0,
- "QualifiedName");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleQualifiedName"
-
-
- // $ANTLR start "entryRuleMultiplicityRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:394:1: entryRuleMultiplicityRule returns [EObject current=null] : iv_ruleMultiplicityRule= ruleMultiplicityRule
- // EOF ;
- public final EObject entryRuleMultiplicityRule() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleMultiplicityRule = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:395:2: (iv_ruleMultiplicityRule= ruleMultiplicityRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:396:2: iv_ruleMultiplicityRule= ruleMultiplicityRule EOF
- {
- newCompositeNode(grammarAccess.getMultiplicityRuleRule());
- pushFollow(FOLLOW_ruleMultiplicityRule_in_entryRuleMultiplicityRule723);
- iv_ruleMultiplicityRule = ruleMultiplicityRule();
-
- state._fsp--;
-
- current = iv_ruleMultiplicityRule;
- match(input, EOF, FOLLOW_EOF_in_entryRuleMultiplicityRule733);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleMultiplicityRule"
-
-
- // $ANTLR start "ruleMultiplicityRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:403:1: ruleMultiplicityRule returns [EObject current=null] : (otherlv_0= '[' ( (lv_bounds_1_0=
- // ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']' ) ;
- public final EObject ruleMultiplicityRule() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0 = null;
- Token otherlv_2 = null;
- Token otherlv_4 = null;
- EObject lv_bounds_1_0 = null;
-
- EObject lv_bounds_3_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:406:28: ( (otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0=
- // ruleBoundSpecification ) ) )? otherlv_4= ']' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:407:1: (otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0=
- // ruleBoundSpecification ) ) )? otherlv_4= ']' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:407:1: (otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0=
- // ruleBoundSpecification ) ) )? otherlv_4= ']' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:407:3: otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0=
- // ruleBoundSpecification ) ) )? otherlv_4= ']'
- {
- otherlv_0 = (Token) match(input, 17, FOLLOW_17_in_ruleMultiplicityRule770);
-
- newLeafNode(otherlv_0, grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0());
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:411:1: ( (lv_bounds_1_0= ruleBoundSpecification ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:412:1: (lv_bounds_1_0= ruleBoundSpecification )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:412:1: (lv_bounds_1_0= ruleBoundSpecification )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:413:3: lv_bounds_1_0= ruleBoundSpecification
- {
-
- newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0());
-
- pushFollow(FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule791);
- lv_bounds_1_0 = ruleBoundSpecification();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule());
- }
- add(
- current,
- "bounds",
- lv_bounds_1_0,
- "BoundSpecification");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:429:2: (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )?
- int alt11 = 2;
- int LA11_0 = input.LA(1);
-
- if ((LA11_0 == 18)) {
- alt11 = 1;
- }
- switch (alt11) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:429:4: otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) )
- {
- otherlv_2 = (Token) match(input, 18, FOLLOW_18_in_ruleMultiplicityRule804);
-
- newLeafNode(otherlv_2, grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0());
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:433:1: ( (lv_bounds_3_0= ruleBoundSpecification ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:434:1: (lv_bounds_3_0= ruleBoundSpecification )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:434:1: (lv_bounds_3_0= ruleBoundSpecification )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:435:3: lv_bounds_3_0= ruleBoundSpecification
- {
-
- newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0());
-
- pushFollow(FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule825);
- lv_bounds_3_0 = ruleBoundSpecification();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule());
- }
- add(
- current,
- "bounds",
- lv_bounds_3_0,
- "BoundSpecification");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_4 = (Token) match(input, 19, FOLLOW_19_in_ruleMultiplicityRule839);
-
- newLeafNode(otherlv_4, grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3());
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleMultiplicityRule"
-
-
- // $ANTLR start "entryRuleBoundSpecification"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:463:1: entryRuleBoundSpecification returns [EObject current=null] : iv_ruleBoundSpecification=
- // ruleBoundSpecification EOF ;
- public final EObject entryRuleBoundSpecification() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBoundSpecification = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:464:2: (iv_ruleBoundSpecification= ruleBoundSpecification EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:465:2: iv_ruleBoundSpecification= ruleBoundSpecification EOF
- {
- newCompositeNode(grammarAccess.getBoundSpecificationRule());
- pushFollow(FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification875);
- iv_ruleBoundSpecification = ruleBoundSpecification();
-
- state._fsp--;
-
- current = iv_ruleBoundSpecification;
- match(input, EOF, FOLLOW_EOF_in_entryRuleBoundSpecification885);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleBoundSpecification"
-
-
- // $ANTLR start "ruleBoundSpecification"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:472:1: ruleBoundSpecification returns [EObject current=null] : ( (lv_value_0_0= ruleUnlimitedLiteral ) ) ;
- public final EObject ruleBoundSpecification() throws RecognitionException {
- EObject current = null;
-
- AntlrDatatypeRuleToken lv_value_0_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:475:28: ( ( (lv_value_0_0= ruleUnlimitedLiteral ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:476:1: ( (lv_value_0_0= ruleUnlimitedLiteral ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:476:1: ( (lv_value_0_0= ruleUnlimitedLiteral ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:477:1: (lv_value_0_0= ruleUnlimitedLiteral )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:477:1: (lv_value_0_0= ruleUnlimitedLiteral )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:478:3: lv_value_0_0= ruleUnlimitedLiteral
- {
-
- newCompositeNode(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0());
-
- pushFollow(FOLLOW_ruleUnlimitedLiteral_in_ruleBoundSpecification930);
- lv_value_0_0 = ruleUnlimitedLiteral();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getBoundSpecificationRule());
- }
- set(
- current,
- "value",
- lv_value_0_0,
- "UnlimitedLiteral");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleBoundSpecification"
-
-
- // $ANTLR start "entryRuleUnlimitedLiteral"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:502:1: entryRuleUnlimitedLiteral returns [String current=null] : iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF
- // ;
- public final String entryRuleUnlimitedLiteral() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleUnlimitedLiteral = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:503:2: (iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:504:2: iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF
- {
- newCompositeNode(grammarAccess.getUnlimitedLiteralRule());
- pushFollow(FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral966);
- iv_ruleUnlimitedLiteral = ruleUnlimitedLiteral();
-
- state._fsp--;
-
- current = iv_ruleUnlimitedLiteral.getText();
- match(input, EOF, FOLLOW_EOF_in_entryRuleUnlimitedLiteral977);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleUnlimitedLiteral"
-
-
- // $ANTLR start "ruleUnlimitedLiteral"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:511:1: ruleUnlimitedLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_INT_0=
- // RULE_INT | kw= '*' ) ;
- public final AntlrDatatypeRuleToken ruleUnlimitedLiteral() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token this_INT_0 = null;
- Token kw = null;
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:514:28: ( (this_INT_0= RULE_INT | kw= '*' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:515:1: (this_INT_0= RULE_INT | kw= '*' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:515:1: (this_INT_0= RULE_INT | kw= '*' )
- int alt12 = 2;
- int LA12_0 = input.LA(1);
-
- if ((LA12_0 == RULE_INT)) {
- alt12 = 1;
- }
- else if ((LA12_0 == 20)) {
- alt12 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 12, 0, input);
-
- throw nvae;
- }
- switch (alt12) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:515:6: this_INT_0= RULE_INT
- {
- this_INT_0 = (Token) match(input, RULE_INT, FOLLOW_RULE_INT_in_ruleUnlimitedLiteral1017);
-
- current.merge(this_INT_0);
-
-
- newLeafNode(this_INT_0, grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0());
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:524:2: kw= '*'
- {
- kw = (Token) match(input, 20, FOLLOW_20_in_ruleUnlimitedLiteral1041);
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1());
-
-
- }
- break;
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleUnlimitedLiteral"
-
-
- // $ANTLR start "entryRuleModifiersRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:537:1: entryRuleModifiersRule returns [EObject current=null] : iv_ruleModifiersRule= ruleModifiersRule EOF ;
- public final EObject entryRuleModifiersRule() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleModifiersRule = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:538:2: (iv_ruleModifiersRule= ruleModifiersRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:539:2: iv_ruleModifiersRule= ruleModifiersRule EOF
- {
- newCompositeNode(grammarAccess.getModifiersRuleRule());
- pushFollow(FOLLOW_ruleModifiersRule_in_entryRuleModifiersRule1081);
- iv_ruleModifiersRule = ruleModifiersRule();
-
- state._fsp--;
-
- current = iv_ruleModifiersRule;
- match(input, EOF, FOLLOW_EOF_in_entryRuleModifiersRule1091);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleModifiersRule"
-
-
- // $ANTLR start "ruleModifiersRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:546:1: ruleModifiersRule returns [EObject current=null] : ( () otherlv_1= '{' ( ( (lv_values_2_0=
- // ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' ) ;
- public final EObject ruleModifiersRule() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1 = null;
- Token otherlv_3 = null;
- Token otherlv_5 = null;
- EObject lv_values_2_0 = null;
-
- EObject lv_values_4_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:549:28: ( ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' (
- // (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:550:1: ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' (
- // (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:550:1: ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' (
- // (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:550:2: () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' (
- // (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}'
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:550:2: ()
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:551:5:
- {
-
- current = forceCreateModelElement(
- grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0(),
- current);
-
-
- }
-
- otherlv_1 = (Token) match(input, 21, FOLLOW_21_in_ruleModifiersRule1137);
-
- newLeafNode(otherlv_1, grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1());
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:560:1: ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0=
- // ruleModifierSpecification ) ) )* )?
- int alt14 = 2;
- int LA14_0 = input.LA(1);
-
- if (((LA14_0 >= 24 && LA14_0 <= 25) || (LA14_0 >= 33 && LA14_0 <= 36))) {
- alt14 = 1;
- }
- switch (alt14) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:560:2: ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0=
- // ruleModifierSpecification ) ) )*
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:560:2: ( (lv_values_2_0= ruleModifierSpecification ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:561:1: (lv_values_2_0= ruleModifierSpecification )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:561:1: (lv_values_2_0= ruleModifierSpecification )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:562:3: lv_values_2_0= ruleModifierSpecification
- {
-
- newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0());
-
- pushFollow(FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1159);
- lv_values_2_0 = ruleModifierSpecification();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getModifiersRuleRule());
- }
- add(
- current,
- "values",
- lv_values_2_0,
- "ModifierSpecification");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:578:2: (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )*
- loop13: do {
- int alt13 = 2;
- int LA13_0 = input.LA(1);
-
- if ((LA13_0 == 22)) {
- alt13 = 1;
- }
-
-
- switch (alt13) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:578:4: otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) )
- {
- otherlv_3 = (Token) match(input, 22, FOLLOW_22_in_ruleModifiersRule1172);
-
- newLeafNode(otherlv_3, grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0());
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:582:1: ( (lv_values_4_0= ruleModifierSpecification ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:583:1: (lv_values_4_0= ruleModifierSpecification )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:583:1: (lv_values_4_0= ruleModifierSpecification )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:584:3: lv_values_4_0= ruleModifierSpecification
- {
-
- newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0());
-
- pushFollow(FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1193);
- lv_values_4_0 = ruleModifierSpecification();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getModifiersRuleRule());
- }
- add(
- current,
- "values",
- lv_values_4_0,
- "ModifierSpecification");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
- break;
-
- default:
- break loop13;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
- otherlv_5 = (Token) match(input, 23, FOLLOW_23_in_ruleModifiersRule1209);
-
- newLeafNode(otherlv_5, grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3());
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleModifiersRule"
-
-
- // $ANTLR start "entryRuleModifierSpecification"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:612:1: entryRuleModifierSpecification returns [EObject current=null] : iv_ruleModifierSpecification=
- // ruleModifierSpecification EOF ;
- public final EObject entryRuleModifierSpecification() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleModifierSpecification = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:613:2: (iv_ruleModifierSpecification= ruleModifierSpecification EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:614:2: iv_ruleModifierSpecification= ruleModifierSpecification EOF
- {
- newCompositeNode(grammarAccess.getModifierSpecificationRule());
- pushFollow(FOLLOW_ruleModifierSpecification_in_entryRuleModifierSpecification1245);
- iv_ruleModifierSpecification = ruleModifierSpecification();
-
- state._fsp--;
-
- current = iv_ruleModifierSpecification;
- match(input, EOF, FOLLOW_EOF_in_entryRuleModifierSpecification1255);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleModifierSpecification"
-
-
- // $ANTLR start "ruleModifierSpecification"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:621:1: ruleModifierSpecification returns [EObject current=null] : ( ( (lv_value_0_0= ruleModifierKind ) ) | (
- // (lv_redefines_1_0= ruleRedefinesRule ) ) | ( (lv_subsets_2_0= ruleSubsetsRule ) ) ) ;
- public final EObject ruleModifierSpecification() throws RecognitionException {
- EObject current = null;
-
- Enumerator lv_value_0_0 = null;
-
- EObject lv_redefines_1_0 = null;
-
- EObject lv_subsets_2_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:624:28: ( ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | (
- // (lv_subsets_2_0= ruleSubsetsRule ) ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:625:1: ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | (
- // (lv_subsets_2_0= ruleSubsetsRule ) ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:625:1: ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | (
- // (lv_subsets_2_0= ruleSubsetsRule ) ) )
- int alt15 = 3;
- switch (input.LA(1)) {
- case 33:
- case 34:
- case 35:
- case 36: {
- alt15 = 1;
- }
- break;
- case 24: {
- alt15 = 2;
- }
- break;
- case 25: {
- alt15 = 3;
- }
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 15, 0, input);
-
- throw nvae;
- }
-
- switch (alt15) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:625:2: ( (lv_value_0_0= ruleModifierKind ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:625:2: ( (lv_value_0_0= ruleModifierKind ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:626:1: (lv_value_0_0= ruleModifierKind )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:626:1: (lv_value_0_0= ruleModifierKind )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:627:3: lv_value_0_0= ruleModifierKind
- {
-
- newCompositeNode(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0());
-
- pushFollow(FOLLOW_ruleModifierKind_in_ruleModifierSpecification1301);
- lv_value_0_0 = ruleModifierKind();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
- }
- set(
- current,
- "value",
- lv_value_0_0,
- "ModifierKind");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:644:6: ( (lv_redefines_1_0= ruleRedefinesRule ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:644:6: ( (lv_redefines_1_0= ruleRedefinesRule ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:645:1: (lv_redefines_1_0= ruleRedefinesRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:645:1: (lv_redefines_1_0= ruleRedefinesRule )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:646:3: lv_redefines_1_0= ruleRedefinesRule
- {
-
- newCompositeNode(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0());
-
- pushFollow(FOLLOW_ruleRedefinesRule_in_ruleModifierSpecification1328);
- lv_redefines_1_0 = ruleRedefinesRule();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
- }
- set(
- current,
- "redefines",
- lv_redefines_1_0,
- "RedefinesRule");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:663:6: ( (lv_subsets_2_0= ruleSubsetsRule ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:663:6: ( (lv_subsets_2_0= ruleSubsetsRule ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:664:1: (lv_subsets_2_0= ruleSubsetsRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:664:1: (lv_subsets_2_0= ruleSubsetsRule )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:665:3: lv_subsets_2_0= ruleSubsetsRule
- {
-
- newCompositeNode(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0());
-
- pushFollow(FOLLOW_ruleSubsetsRule_in_ruleModifierSpecification1355);
- lv_subsets_2_0 = ruleSubsetsRule();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
- }
- set(
- current,
- "subsets",
- lv_subsets_2_0,
- "SubsetsRule");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleModifierSpecification"
-
-
- // $ANTLR start "entryRuleRedefinesRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:689:1: entryRuleRedefinesRule returns [EObject current=null] : iv_ruleRedefinesRule= ruleRedefinesRule EOF ;
- public final EObject entryRuleRedefinesRule() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleRedefinesRule = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:690:2: (iv_ruleRedefinesRule= ruleRedefinesRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:691:2: iv_ruleRedefinesRule= ruleRedefinesRule EOF
- {
- newCompositeNode(grammarAccess.getRedefinesRuleRule());
- pushFollow(FOLLOW_ruleRedefinesRule_in_entryRuleRedefinesRule1391);
- iv_ruleRedefinesRule = ruleRedefinesRule();
-
- state._fsp--;
-
- current = iv_ruleRedefinesRule;
- match(input, EOF, FOLLOW_EOF_in_entryRuleRedefinesRule1401);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleRedefinesRule"
-
-
- // $ANTLR start "ruleRedefinesRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:698:1: ruleRedefinesRule returns [EObject current=null] : (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) ) ;
- public final EObject ruleRedefinesRule() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0 = null;
- Token otherlv_1 = null;
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:701:28: ( (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:702:1: (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:702:1: (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:702:3: otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) )
- {
- otherlv_0 = (Token) match(input, 24, FOLLOW_24_in_ruleRedefinesRule1438);
-
- newLeafNode(otherlv_0, grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0());
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:706:1: ( (otherlv_1= RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:707:1: (otherlv_1= RULE_ID )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:707:1: (otherlv_1= RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:708:3: otherlv_1= RULE_ID
- {
-
- if (current == null) {
- current = createModelElement(grammarAccess.getRedefinesRuleRule());
- }
-
- otherlv_1 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleRedefinesRule1458);
-
- newLeafNode(otherlv_1, grammarAccess.getRedefinesRuleAccess().getPortPortCrossReference_1_0());
-
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleRedefinesRule"
-
-
- // $ANTLR start "entryRuleSubsetsRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:727:1: entryRuleSubsetsRule returns [EObject current=null] : iv_ruleSubsetsRule= ruleSubsetsRule EOF ;
- public final EObject entryRuleSubsetsRule() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSubsetsRule = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:728:2: (iv_ruleSubsetsRule= ruleSubsetsRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:729:2: iv_ruleSubsetsRule= ruleSubsetsRule EOF
- {
- newCompositeNode(grammarAccess.getSubsetsRuleRule());
- pushFollow(FOLLOW_ruleSubsetsRule_in_entryRuleSubsetsRule1494);
- iv_ruleSubsetsRule = ruleSubsetsRule();
-
- state._fsp--;
-
- current = iv_ruleSubsetsRule;
- match(input, EOF, FOLLOW_EOF_in_entryRuleSubsetsRule1504);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleSubsetsRule"
-
-
- // $ANTLR start "ruleSubsetsRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:736:1: ruleSubsetsRule returns [EObject current=null] : (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) ) ;
- public final EObject ruleSubsetsRule() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0 = null;
- Token otherlv_1 = null;
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:739:28: ( (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:740:1: (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:740:1: (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:740:3: otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) )
- {
- otherlv_0 = (Token) match(input, 25, FOLLOW_25_in_ruleSubsetsRule1541);
-
- newLeafNode(otherlv_0, grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0());
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:744:1: ( (otherlv_1= RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:745:1: (otherlv_1= RULE_ID )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:745:1: (otherlv_1= RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:746:3: otherlv_1= RULE_ID
- {
-
- if (current == null) {
- current = createModelElement(grammarAccess.getSubsetsRuleRule());
- }
-
- otherlv_1 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleSubsetsRule1561);
-
- newLeafNode(otherlv_1, grammarAccess.getSubsetsRuleAccess().getPortPortCrossReference_1_0());
-
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleSubsetsRule"
-
-
- // $ANTLR start "entryRuleDefaultValueRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:765:1: entryRuleDefaultValueRule returns [EObject current=null] : iv_ruleDefaultValueRule= ruleDefaultValueRule
- // EOF ;
- public final EObject entryRuleDefaultValueRule() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleDefaultValueRule = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:766:2: (iv_ruleDefaultValueRule= ruleDefaultValueRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:767:2: iv_ruleDefaultValueRule= ruleDefaultValueRule EOF
- {
- newCompositeNode(grammarAccess.getDefaultValueRuleRule());
- pushFollow(FOLLOW_ruleDefaultValueRule_in_entryRuleDefaultValueRule1597);
- iv_ruleDefaultValueRule = ruleDefaultValueRule();
-
- state._fsp--;
-
- current = iv_ruleDefaultValueRule;
- match(input, EOF, FOLLOW_EOF_in_entryRuleDefaultValueRule1607);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleDefaultValueRule"
-
-
- // $ANTLR start "ruleDefaultValueRule"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:774:1: ruleDefaultValueRule returns [EObject current=null] : (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) ) ;
- public final EObject ruleDefaultValueRule() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0 = null;
- EObject lv_default_1_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:777:28: ( (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:778:1: (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:778:1: (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:778:3: otherlv_0= '=' ( (lv_default_1_0= ruleValue ) )
- {
- otherlv_0 = (Token) match(input, 26, FOLLOW_26_in_ruleDefaultValueRule1644);
-
- newLeafNode(otherlv_0, grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0());
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:782:1: ( (lv_default_1_0= ruleValue ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:783:1: (lv_default_1_0= ruleValue )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:783:1: (lv_default_1_0= ruleValue )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:784:3: lv_default_1_0= ruleValue
- {
-
- newCompositeNode(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0());
-
- pushFollow(FOLLOW_ruleValue_in_ruleDefaultValueRule1665);
- lv_default_1_0 = ruleValue();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getDefaultValueRuleRule());
- }
- set(
- current,
- "default",
- lv_default_1_0,
- "Value");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleDefaultValueRule"
-
-
- // $ANTLR start "entryRuleValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:808:1: entryRuleValue returns [EObject current=null] : iv_ruleValue= ruleValue EOF ;
- public final EObject entryRuleValue() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleValue = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:809:2: (iv_ruleValue= ruleValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:810:2: iv_ruleValue= ruleValue EOF
- {
- newCompositeNode(grammarAccess.getValueRule());
- pushFollow(FOLLOW_ruleValue_in_entryRuleValue1701);
- iv_ruleValue = ruleValue();
-
- state._fsp--;
-
- current = iv_ruleValue;
- match(input, EOF, FOLLOW_EOF_in_entryRuleValue1711);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleValue"
-
-
- // $ANTLR start "ruleValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:817:1: ruleValue returns [EObject current=null] : (this_IntValue_0= ruleIntValue | this_StringValue_1=
- // ruleStringValue | this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue ) ;
- public final EObject ruleValue() throws RecognitionException {
- EObject current = null;
-
- EObject this_IntValue_0 = null;
-
- EObject this_StringValue_1 = null;
-
- EObject this_BooleanValue_2 = null;
-
- EObject this_RealValue_3 = null;
-
- EObject this_NullValue_4 = null;
-
- EObject this_NoValue_5 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:820:28: ( (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue | this_BooleanValue_2=
- // ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:821:1: (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue | this_BooleanValue_2=
- // ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:821:1: (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue | this_BooleanValue_2=
- // ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue )
- int alt16 = 6;
- switch (input.LA(1)) {
- case RULE_INT: {
- int LA16_1 = input.LA(2);
-
- if ((LA16_1 == 27)) {
- alt16 = 4;
- }
- else if ((LA16_1 == EOF)) {
- alt16 = 1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 16, 1, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_STRING: {
- alt16 = 2;
- }
- break;
- case 37:
- case 38: {
- alt16 = 3;
- }
- break;
- case 27: {
- alt16 = 4;
- }
- break;
- case 28: {
- alt16 = 5;
- }
- break;
- case 29: {
- alt16 = 6;
- }
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 16, 0, input);
-
- throw nvae;
- }
-
- switch (alt16) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:822:5: this_IntValue_0= ruleIntValue
- {
-
- newCompositeNode(grammarAccess.getValueAccess().getIntValueParserRuleCall_0());
-
- pushFollow(FOLLOW_ruleIntValue_in_ruleValue1758);
- this_IntValue_0 = ruleIntValue();
-
- state._fsp--;
-
-
- current = this_IntValue_0;
- afterParserOrEnumRuleCall();
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:832:5: this_StringValue_1= ruleStringValue
- {
-
- newCompositeNode(grammarAccess.getValueAccess().getStringValueParserRuleCall_1());
-
- pushFollow(FOLLOW_ruleStringValue_in_ruleValue1785);
- this_StringValue_1 = ruleStringValue();
-
- state._fsp--;
-
-
- current = this_StringValue_1;
- afterParserOrEnumRuleCall();
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:842:5: this_BooleanValue_2= ruleBooleanValue
- {
-
- newCompositeNode(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2());
-
- pushFollow(FOLLOW_ruleBooleanValue_in_ruleValue1812);
- this_BooleanValue_2 = ruleBooleanValue();
-
- state._fsp--;
-
-
- current = this_BooleanValue_2;
- afterParserOrEnumRuleCall();
-
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:852:5: this_RealValue_3= ruleRealValue
- {
-
- newCompositeNode(grammarAccess.getValueAccess().getRealValueParserRuleCall_3());
-
- pushFollow(FOLLOW_ruleRealValue_in_ruleValue1839);
- this_RealValue_3 = ruleRealValue();
-
- state._fsp--;
-
-
- current = this_RealValue_3;
- afterParserOrEnumRuleCall();
-
-
- }
- break;
- case 5:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:862:5: this_NullValue_4= ruleNullValue
- {
-
- newCompositeNode(grammarAccess.getValueAccess().getNullValueParserRuleCall_4());
-
- pushFollow(FOLLOW_ruleNullValue_in_ruleValue1866);
- this_NullValue_4 = ruleNullValue();
-
- state._fsp--;
-
-
- current = this_NullValue_4;
- afterParserOrEnumRuleCall();
-
-
- }
- break;
- case 6:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:872:5: this_NoValue_5= ruleNoValue
- {
-
- newCompositeNode(grammarAccess.getValueAccess().getNoValueParserRuleCall_5());
-
- pushFollow(FOLLOW_ruleNoValue_in_ruleValue1893);
- this_NoValue_5 = ruleNoValue();
-
- state._fsp--;
-
-
- current = this_NoValue_5;
- afterParserOrEnumRuleCall();
-
-
- }
- break;
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleValue"
-
-
- // $ANTLR start "entryRuleIntValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:888:1: entryRuleIntValue returns [EObject current=null] : iv_ruleIntValue= ruleIntValue EOF ;
- public final EObject entryRuleIntValue() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleIntValue = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:889:2: (iv_ruleIntValue= ruleIntValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:890:2: iv_ruleIntValue= ruleIntValue EOF
- {
- newCompositeNode(grammarAccess.getIntValueRule());
- pushFollow(FOLLOW_ruleIntValue_in_entryRuleIntValue1928);
- iv_ruleIntValue = ruleIntValue();
-
- state._fsp--;
-
- current = iv_ruleIntValue;
- match(input, EOF, FOLLOW_EOF_in_entryRuleIntValue1938);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleIntValue"
-
-
- // $ANTLR start "ruleIntValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:897:1: ruleIntValue returns [EObject current=null] : ( (lv_literalInteger_0_0= RULE_INT ) ) ;
- public final EObject ruleIntValue() throws RecognitionException {
- EObject current = null;
-
- Token lv_literalInteger_0_0 = null;
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:900:28: ( ( (lv_literalInteger_0_0= RULE_INT ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:901:1: ( (lv_literalInteger_0_0= RULE_INT ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:901:1: ( (lv_literalInteger_0_0= RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:902:1: (lv_literalInteger_0_0= RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:902:1: (lv_literalInteger_0_0= RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:903:3: lv_literalInteger_0_0= RULE_INT
- {
- lv_literalInteger_0_0 = (Token) match(input, RULE_INT, FOLLOW_RULE_INT_in_ruleIntValue1979);
-
- newLeafNode(lv_literalInteger_0_0, grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0());
-
-
- if (current == null) {
- current = createModelElement(grammarAccess.getIntValueRule());
- }
- setWithLastConsumed(
- current,
- "literalInteger",
- lv_literalInteger_0_0,
- "INT");
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleIntValue"
-
-
- // $ANTLR start "entryRuleStringValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:927:1: entryRuleStringValue returns [EObject current=null] : iv_ruleStringValue= ruleStringValue EOF ;
- public final EObject entryRuleStringValue() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleStringValue = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:928:2: (iv_ruleStringValue= ruleStringValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:929:2: iv_ruleStringValue= ruleStringValue EOF
- {
- newCompositeNode(grammarAccess.getStringValueRule());
- pushFollow(FOLLOW_ruleStringValue_in_entryRuleStringValue2019);
- iv_ruleStringValue = ruleStringValue();
-
- state._fsp--;
-
- current = iv_ruleStringValue;
- match(input, EOF, FOLLOW_EOF_in_entryRuleStringValue2029);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleStringValue"
-
-
- // $ANTLR start "ruleStringValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:936:1: ruleStringValue returns [EObject current=null] : ( (lv_literalString_0_0= RULE_STRING ) ) ;
- public final EObject ruleStringValue() throws RecognitionException {
- EObject current = null;
-
- Token lv_literalString_0_0 = null;
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:939:28: ( ( (lv_literalString_0_0= RULE_STRING ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:940:1: ( (lv_literalString_0_0= RULE_STRING ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:940:1: ( (lv_literalString_0_0= RULE_STRING ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:941:1: (lv_literalString_0_0= RULE_STRING )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:941:1: (lv_literalString_0_0= RULE_STRING )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:942:3: lv_literalString_0_0= RULE_STRING
- {
- lv_literalString_0_0 = (Token) match(input, RULE_STRING, FOLLOW_RULE_STRING_in_ruleStringValue2070);
-
- newLeafNode(lv_literalString_0_0, grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0());
-
-
- if (current == null) {
- current = createModelElement(grammarAccess.getStringValueRule());
- }
- setWithLastConsumed(
- current,
- "literalString",
- lv_literalString_0_0,
- "STRING");
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleStringValue"
-
-
- // $ANTLR start "entryRuleBooleanValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:966:1: entryRuleBooleanValue returns [EObject current=null] : iv_ruleBooleanValue= ruleBooleanValue EOF ;
- public final EObject entryRuleBooleanValue() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBooleanValue = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:967:2: (iv_ruleBooleanValue= ruleBooleanValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:968:2: iv_ruleBooleanValue= ruleBooleanValue EOF
- {
- newCompositeNode(grammarAccess.getBooleanValueRule());
- pushFollow(FOLLOW_ruleBooleanValue_in_entryRuleBooleanValue2110);
- iv_ruleBooleanValue = ruleBooleanValue();
-
- state._fsp--;
-
- current = iv_ruleBooleanValue;
- match(input, EOF, FOLLOW_EOF_in_entryRuleBooleanValue2120);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleBooleanValue"
-
-
- // $ANTLR start "ruleBooleanValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:975:1: ruleBooleanValue returns [EObject current=null] : ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) ) ;
- public final EObject ruleBooleanValue() throws RecognitionException {
- EObject current = null;
-
- Enumerator lv_literalBoolean_0_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:978:28: ( ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:979:1: ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:979:1: ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:980:1: (lv_literalBoolean_0_0= ruleBooleanLiterals )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:980:1: (lv_literalBoolean_0_0= ruleBooleanLiterals )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:981:3: lv_literalBoolean_0_0= ruleBooleanLiterals
- {
-
- newCompositeNode(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0());
-
- pushFollow(FOLLOW_ruleBooleanLiterals_in_ruleBooleanValue2165);
- lv_literalBoolean_0_0 = ruleBooleanLiterals();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getBooleanValueRule());
- }
- set(
- current,
- "literalBoolean",
- lv_literalBoolean_0_0,
- "BooleanLiterals");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleBooleanValue"
-
-
- // $ANTLR start "entryRuleRealValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1005:1: entryRuleRealValue returns [EObject current=null] : iv_ruleRealValue= ruleRealValue EOF ;
- public final EObject entryRuleRealValue() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleRealValue = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1006:2: (iv_ruleRealValue= ruleRealValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1007:2: iv_ruleRealValue= ruleRealValue EOF
- {
- newCompositeNode(grammarAccess.getRealValueRule());
- pushFollow(FOLLOW_ruleRealValue_in_entryRuleRealValue2200);
- iv_ruleRealValue = ruleRealValue();
-
- state._fsp--;
-
- current = iv_ruleRealValue;
- match(input, EOF, FOLLOW_EOF_in_entryRuleRealValue2210);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleRealValue"
-
-
- // $ANTLR start "ruleRealValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1014:1: ruleRealValue returns [EObject current=null] : ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) |
- // (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) ) ;
- public final EObject ruleRealValue() throws RecognitionException {
- EObject current = null;
-
- Token lv_integer_0_0 = null;
- Token otherlv_1 = null;
- Token otherlv_2 = null;
- Token lv_fraction_3_0 = null;
- Token lv_integer_4_0 = null;
- Token otherlv_5 = null;
- Token lv_fraction_6_0 = null;
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1017:28: ( ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0=
- // RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1018:1: ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0=
- // RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1018:1: ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0=
- // RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) )
- int alt17 = 3;
- int LA17_0 = input.LA(1);
-
- if ((LA17_0 == RULE_INT)) {
- int LA17_1 = input.LA(2);
-
- if ((LA17_1 == 27)) {
- int LA17_3 = input.LA(3);
-
- if ((LA17_3 == EOF)) {
- alt17 = 1;
- }
- else if ((LA17_3 == RULE_INT)) {
- alt17 = 3;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 17, 3, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 17, 1, input);
-
- throw nvae;
- }
- }
- else if ((LA17_0 == 27)) {
- alt17 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 17, 0, input);
-
- throw nvae;
- }
- switch (alt17) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1018:2: ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1018:2: ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1018:3: ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.'
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1018:3: ( (lv_integer_0_0= RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1019:1: (lv_integer_0_0= RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1019:1: (lv_integer_0_0= RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1020:3: lv_integer_0_0= RULE_INT
- {
- lv_integer_0_0 = (Token) match(input, RULE_INT, FOLLOW_RULE_INT_in_ruleRealValue2253);
-
- newLeafNode(lv_integer_0_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0());
-
-
- if (current == null) {
- current = createModelElement(grammarAccess.getRealValueRule());
- }
- setWithLastConsumed(
- current,
- "integer",
- lv_integer_0_0,
- "INT");
-
-
- }
-
-
- }
-
- otherlv_1 = (Token) match(input, 27, FOLLOW_27_in_ruleRealValue2270);
-
- newLeafNode(otherlv_1, grammarAccess.getRealValueAccess().getFullStopKeyword_0_1());
-
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1041:6: (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1041:6: (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1041:8: otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) )
- {
- otherlv_2 = (Token) match(input, 27, FOLLOW_27_in_ruleRealValue2290);
-
- newLeafNode(otherlv_2, grammarAccess.getRealValueAccess().getFullStopKeyword_1_0());
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1045:1: ( (lv_fraction_3_0= RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1046:1: (lv_fraction_3_0= RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1046:1: (lv_fraction_3_0= RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1047:3: lv_fraction_3_0= RULE_INT
- {
- lv_fraction_3_0 = (Token) match(input, RULE_INT, FOLLOW_RULE_INT_in_ruleRealValue2307);
-
- newLeafNode(lv_fraction_3_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0());
-
-
- if (current == null) {
- current = createModelElement(grammarAccess.getRealValueRule());
- }
- setWithLastConsumed(
- current,
- "fraction",
- lv_fraction_3_0,
- "INT");
-
-
- }
-
-
- }
-
-
- }
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1064:6: ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1064:6: ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1064:7: ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1064:7: ( (lv_integer_4_0= RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1065:1: (lv_integer_4_0= RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1065:1: (lv_integer_4_0= RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1066:3: lv_integer_4_0= RULE_INT
- {
- lv_integer_4_0 = (Token) match(input, RULE_INT, FOLLOW_RULE_INT_in_ruleRealValue2337);
-
- newLeafNode(lv_integer_4_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0());
-
-
- if (current == null) {
- current = createModelElement(grammarAccess.getRealValueRule());
- }
- setWithLastConsumed(
- current,
- "integer",
- lv_integer_4_0,
- "INT");
-
-
- }
-
-
- }
-
- otherlv_5 = (Token) match(input, 27, FOLLOW_27_in_ruleRealValue2354);
-
- newLeafNode(otherlv_5, grammarAccess.getRealValueAccess().getFullStopKeyword_2_1());
-
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1086:1: ( (lv_fraction_6_0= RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1087:1: (lv_fraction_6_0= RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1087:1: (lv_fraction_6_0= RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1088:3: lv_fraction_6_0= RULE_INT
- {
- lv_fraction_6_0 = (Token) match(input, RULE_INT, FOLLOW_RULE_INT_in_ruleRealValue2371);
-
- newLeafNode(lv_fraction_6_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0());
-
-
- if (current == null) {
- current = createModelElement(grammarAccess.getRealValueRule());
- }
- setWithLastConsumed(
- current,
- "fraction",
- lv_fraction_6_0,
- "INT");
-
-
- }
-
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleRealValue"
-
-
- // $ANTLR start "entryRuleNullValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1112:1: entryRuleNullValue returns [EObject current=null] : iv_ruleNullValue= ruleNullValue EOF ;
- public final EObject entryRuleNullValue() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNullValue = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1113:2: (iv_ruleNullValue= ruleNullValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1114:2: iv_ruleNullValue= ruleNullValue EOF
- {
- newCompositeNode(grammarAccess.getNullValueRule());
- pushFollow(FOLLOW_ruleNullValue_in_entryRuleNullValue2413);
- iv_ruleNullValue = ruleNullValue();
-
- state._fsp--;
-
- current = iv_ruleNullValue;
- match(input, EOF, FOLLOW_EOF_in_entryRuleNullValue2423);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleNullValue"
-
-
- // $ANTLR start "ruleNullValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1121:1: ruleNullValue returns [EObject current=null] : ( () otherlv_1= 'null' ) ;
- public final EObject ruleNullValue() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1 = null;
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1124:28: ( ( () otherlv_1= 'null' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1125:1: ( () otherlv_1= 'null' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1125:1: ( () otherlv_1= 'null' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1125:2: () otherlv_1= 'null'
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1125:2: ()
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1126:5:
- {
-
- current = forceCreateModelElement(
- grammarAccess.getNullValueAccess().getNullValueAction_0(),
- current);
-
-
- }
-
- otherlv_1 = (Token) match(input, 28, FOLLOW_28_in_ruleNullValue2469);
-
- newLeafNode(otherlv_1, grammarAccess.getNullValueAccess().getNullKeyword_1());
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleNullValue"
-
-
- // $ANTLR start "entryRuleNoValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1143:1: entryRuleNoValue returns [EObject current=null] : iv_ruleNoValue= ruleNoValue EOF ;
- public final EObject entryRuleNoValue() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNoValue = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1144:2: (iv_ruleNoValue= ruleNoValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1145:2: iv_ruleNoValue= ruleNoValue EOF
- {
- newCompositeNode(grammarAccess.getNoValueRule());
- pushFollow(FOLLOW_ruleNoValue_in_entryRuleNoValue2505);
- iv_ruleNoValue = ruleNoValue();
-
- state._fsp--;
-
- current = iv_ruleNoValue;
- match(input, EOF, FOLLOW_EOF_in_entryRuleNoValue2515);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleNoValue"
-
-
- // $ANTLR start "ruleNoValue"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1152:1: ruleNoValue returns [EObject current=null] : ( () otherlv_1= 'none' ) ;
- public final EObject ruleNoValue() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1 = null;
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1155:28: ( ( () otherlv_1= 'none' ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1156:1: ( () otherlv_1= 'none' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1156:1: ( () otherlv_1= 'none' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1156:2: () otherlv_1= 'none'
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1156:2: ()
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1157:5:
- {
-
- current = forceCreateModelElement(
- grammarAccess.getNoValueAccess().getNoValueAction_0(),
- current);
-
-
- }
-
- otherlv_1 = (Token) match(input, 29, FOLLOW_29_in_ruleNoValue2561);
-
- newLeafNode(otherlv_1, grammarAccess.getNoValueAccess().getNoneKeyword_1());
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleNoValue"
-
-
- // $ANTLR start "ruleVisibilityKind"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1174:1: ruleVisibilityKind returns [Enumerator current=null] : ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) |
- // (enumLiteral_2= '#' ) | (enumLiteral_3= '~' ) ) ;
- public final Enumerator ruleVisibilityKind() throws RecognitionException {
- Enumerator current = null;
-
- Token enumLiteral_0 = null;
- Token enumLiteral_1 = null;
- Token enumLiteral_2 = null;
- Token enumLiteral_3 = null;
-
- enterRule();
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1176:28: ( ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~' )
- // ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1177:1: ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1177:1: ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~'
- // ) )
- int alt18 = 4;
- switch (input.LA(1)) {
- case 30: {
- alt18 = 1;
- }
- break;
- case 31: {
- alt18 = 2;
- }
- break;
- case 32: {
- alt18 = 3;
- }
- break;
- case 14: {
- alt18 = 4;
- }
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 18, 0, input);
-
- throw nvae;
- }
-
- switch (alt18) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1177:2: (enumLiteral_0= '+' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1177:2: (enumLiteral_0= '+' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1177:4: enumLiteral_0= '+'
- {
- enumLiteral_0 = (Token) match(input, 30, FOLLOW_30_in_ruleVisibilityKind2611);
-
- current = grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_0, grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0());
-
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1183:6: (enumLiteral_1= '-' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1183:6: (enumLiteral_1= '-' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1183:8: enumLiteral_1= '-'
- {
- enumLiteral_1 = (Token) match(input, 31, FOLLOW_31_in_ruleVisibilityKind2628);
-
- current = grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_1, grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1());
-
-
- }
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1189:6: (enumLiteral_2= '#' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1189:6: (enumLiteral_2= '#' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1189:8: enumLiteral_2= '#'
- {
- enumLiteral_2 = (Token) match(input, 32, FOLLOW_32_in_ruleVisibilityKind2645);
-
- current = grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_2, grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2());
-
-
- }
-
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1195:6: (enumLiteral_3= '~' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1195:6: (enumLiteral_3= '~' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1195:8: enumLiteral_3= '~'
- {
- enumLiteral_3 = (Token) match(input, 14, FOLLOW_14_in_ruleVisibilityKind2662);
-
- current = grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_3, grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3());
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleVisibilityKind"
-
-
- // $ANTLR start "ruleModifierKind"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1205:1: ruleModifierKind returns [Enumerator current=null] : ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1=
- // 'union' ) | (enumLiteral_2= 'ordered' ) | (enumLiteral_3= 'unique' ) ) ;
- public final Enumerator ruleModifierKind() throws RecognitionException {
- Enumerator current = null;
-
- Token enumLiteral_0 = null;
- Token enumLiteral_1 = null;
- Token enumLiteral_2 = null;
- Token enumLiteral_3 = null;
-
- enterRule();
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1207:28: ( ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) |
- // (enumLiteral_3= 'unique' ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1208:1: ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) |
- // (enumLiteral_3= 'unique' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1208:1: ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) |
- // (enumLiteral_3= 'unique' ) )
- int alt19 = 4;
- switch (input.LA(1)) {
- case 33: {
- alt19 = 1;
- }
- break;
- case 34: {
- alt19 = 2;
- }
- break;
- case 35: {
- alt19 = 3;
- }
- break;
- case 36: {
- alt19 = 4;
- }
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 19, 0, input);
-
- throw nvae;
- }
-
- switch (alt19) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1208:2: (enumLiteral_0= 'readOnly' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1208:2: (enumLiteral_0= 'readOnly' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1208:4: enumLiteral_0= 'readOnly'
- {
- enumLiteral_0 = (Token) match(input, 33, FOLLOW_33_in_ruleModifierKind2707);
-
- current = grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_0, grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0());
-
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1214:6: (enumLiteral_1= 'union' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1214:6: (enumLiteral_1= 'union' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1214:8: enumLiteral_1= 'union'
- {
- enumLiteral_1 = (Token) match(input, 34, FOLLOW_34_in_ruleModifierKind2724);
-
- current = grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_1, grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1());
-
-
- }
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1220:6: (enumLiteral_2= 'ordered' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1220:6: (enumLiteral_2= 'ordered' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1220:8: enumLiteral_2= 'ordered'
- {
- enumLiteral_2 = (Token) match(input, 35, FOLLOW_35_in_ruleModifierKind2741);
-
- current = grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_2, grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2());
-
-
- }
-
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1226:6: (enumLiteral_3= 'unique' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1226:6: (enumLiteral_3= 'unique' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1226:8: enumLiteral_3= 'unique'
- {
- enumLiteral_3 = (Token) match(input, 36, FOLLOW_36_in_ruleModifierKind2758);
-
- current = grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_3, grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3());
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleModifierKind"
-
-
- // $ANTLR start "ruleBooleanLiterals"
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1236:1: ruleBooleanLiterals returns [Enumerator current=null] : ( (enumLiteral_0= 'true' ) | (enumLiteral_1=
- // 'false' ) ) ;
- public final Enumerator ruleBooleanLiterals() throws RecognitionException {
- Enumerator current = null;
-
- Token enumLiteral_0 = null;
- Token enumLiteral_1 = null;
-
- enterRule();
- try {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1238:28: ( ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) ) )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1239:1: ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1239:1: ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) )
- int alt20 = 2;
- int LA20_0 = input.LA(1);
-
- if ((LA20_0 == 37)) {
- alt20 = 1;
- }
- else if ((LA20_0 == 38)) {
- alt20 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 20, 0, input);
-
- throw nvae;
- }
- switch (alt20) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1239:2: (enumLiteral_0= 'true' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1239:2: (enumLiteral_0= 'true' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1239:4: enumLiteral_0= 'true'
- {
- enumLiteral_0 = (Token) match(input, 37, FOLLOW_37_in_ruleBooleanLiterals2803);
-
- current = grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_0, grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0());
-
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1245:6: (enumLiteral_1= 'false' )
- {
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1245:6: (enumLiteral_1= 'false' )
- // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1245:8: enumLiteral_1= 'false'
- {
- enumLiteral_1 = (Token) match(input, 38, FOLLOW_38_in_ruleBooleanLiterals2820);
-
- current = grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_1, grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1());
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleBooleanLiterals"
-
- // Delegated rules
-
-
-
-
- public static final BitSet FOLLOW_rulePortRule_in_entryRulePortRule75 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRulePortRule85 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleVisibilityRule_in_rulePortRule131 = new BitSet(new long[] { 0x0000000000001010L });
- public static final BitSet FOLLOW_12_in_rulePortRule150 = new BitSet(new long[] { 0x0000000000000010L });
- public static final BitSet FOLLOW_RULE_ID_in_rulePortRule181 = new BitSet(new long[] { 0x0000000004222002L });
- public static final BitSet FOLLOW_13_in_rulePortRule199 = new BitSet(new long[] { 0x000000000000C010L });
- public static final BitSet FOLLOW_14_in_rulePortRule217 = new BitSet(new long[] { 0x0000000000008010L });
- public static final BitSet FOLLOW_ruleTypeRule_in_rulePortRule253 = new BitSet(new long[] { 0x0000000004220002L });
- public static final BitSet FOLLOW_15_in_rulePortRule277 = new BitSet(new long[] { 0x0000000004220002L });
- public static final BitSet FOLLOW_ruleMultiplicityRule_in_rulePortRule314 = new BitSet(new long[] { 0x0000000004200002L });
- public static final BitSet FOLLOW_ruleModifiersRule_in_rulePortRule336 = new BitSet(new long[] { 0x0000000004000002L });
- public static final BitSet FOLLOW_ruleDefaultValueRule_in_rulePortRule358 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleVisibilityRule_in_entryRuleVisibilityRule395 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleVisibilityRule405 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleVisibilityKind_in_ruleVisibilityRule450 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleTypeRule_in_entryRuleTypeRule485 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleTypeRule495 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleQualifiedName_in_ruleTypeRule541 = new BitSet(new long[] { 0x0000000000000010L });
- public static final BitSet FOLLOW_RULE_ID_in_ruleTypeRule562 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName598 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleQualifiedName608 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_ID_in_ruleQualifiedName653 = new BitSet(new long[] { 0x0000000000010000L });
- public static final BitSet FOLLOW_16_in_ruleQualifiedName665 = new BitSet(new long[] { 0x0000000000000012L });
- public static final BitSet FOLLOW_ruleQualifiedName_in_ruleQualifiedName686 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleMultiplicityRule_in_entryRuleMultiplicityRule723 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleMultiplicityRule733 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_17_in_ruleMultiplicityRule770 = new BitSet(new long[] { 0x0000000000100020L });
- public static final BitSet FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule791 = new BitSet(new long[] { 0x00000000000C0000L });
- public static final BitSet FOLLOW_18_in_ruleMultiplicityRule804 = new BitSet(new long[] { 0x0000000000100020L });
- public static final BitSet FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule825 = new BitSet(new long[] { 0x0000000000080000L });
- public static final BitSet FOLLOW_19_in_ruleMultiplicityRule839 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification875 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleBoundSpecification885 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_ruleBoundSpecification930 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral966 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleUnlimitedLiteral977 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_ruleUnlimitedLiteral1017 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_20_in_ruleUnlimitedLiteral1041 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleModifiersRule_in_entryRuleModifiersRule1081 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleModifiersRule1091 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_21_in_ruleModifiersRule1137 = new BitSet(new long[] { 0x0000001E03800000L });
- public static final BitSet FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1159 = new BitSet(new long[] { 0x0000000000C00000L });
- public static final BitSet FOLLOW_22_in_ruleModifiersRule1172 = new BitSet(new long[] { 0x0000001E03000000L });
- public static final BitSet FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1193 = new BitSet(new long[] { 0x0000000000C00000L });
- public static final BitSet FOLLOW_23_in_ruleModifiersRule1209 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleModifierSpecification_in_entryRuleModifierSpecification1245 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleModifierSpecification1255 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleModifierKind_in_ruleModifierSpecification1301 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleRedefinesRule_in_ruleModifierSpecification1328 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleSubsetsRule_in_ruleModifierSpecification1355 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleRedefinesRule_in_entryRuleRedefinesRule1391 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleRedefinesRule1401 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_24_in_ruleRedefinesRule1438 = new BitSet(new long[] { 0x0000000000000010L });
- public static final BitSet FOLLOW_RULE_ID_in_ruleRedefinesRule1458 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleSubsetsRule_in_entryRuleSubsetsRule1494 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleSubsetsRule1504 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_25_in_ruleSubsetsRule1541 = new BitSet(new long[] { 0x0000000000000010L });
- public static final BitSet FOLLOW_RULE_ID_in_ruleSubsetsRule1561 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleDefaultValueRule_in_entryRuleDefaultValueRule1597 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleDefaultValueRule1607 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_26_in_ruleDefaultValueRule1644 = new BitSet(new long[] { 0x0000006038000060L });
- public static final BitSet FOLLOW_ruleValue_in_ruleDefaultValueRule1665 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleValue_in_entryRuleValue1701 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleValue1711 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleIntValue_in_ruleValue1758 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleStringValue_in_ruleValue1785 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBooleanValue_in_ruleValue1812 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleRealValue_in_ruleValue1839 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleNullValue_in_ruleValue1866 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleNoValue_in_ruleValue1893 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleIntValue_in_entryRuleIntValue1928 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleIntValue1938 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_ruleIntValue1979 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleStringValue_in_entryRuleStringValue2019 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleStringValue2029 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_STRING_in_ruleStringValue2070 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBooleanValue_in_entryRuleBooleanValue2110 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleBooleanValue2120 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBooleanLiterals_in_ruleBooleanValue2165 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleRealValue_in_entryRuleRealValue2200 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleRealValue2210 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2253 = new BitSet(new long[] { 0x0000000008000000L });
- public static final BitSet FOLLOW_27_in_ruleRealValue2270 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_27_in_ruleRealValue2290 = new BitSet(new long[] { 0x0000000000000020L });
- public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2307 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2337 = new BitSet(new long[] { 0x0000000008000000L });
- public static final BitSet FOLLOW_27_in_ruleRealValue2354 = new BitSet(new long[] { 0x0000000000000020L });
- public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2371 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleNullValue_in_entryRuleNullValue2413 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleNullValue2423 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_28_in_ruleNullValue2469 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleNoValue_in_entryRuleNoValue2505 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleNoValue2515 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_29_in_ruleNoValue2561 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_30_in_ruleVisibilityKind2611 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_31_in_ruleVisibilityKind2628 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_32_in_ruleVisibilityKind2645 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_14_in_ruleVisibilityKind2662 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_33_in_ruleModifierKind2707 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_34_in_ruleModifierKind2724 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_35_in_ruleModifierKind2741 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_36_in_ruleModifierKind2758 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_37_in_ruleBooleanLiterals2803 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_38_in_ruleBooleanLiterals2820 = new BitSet(new long[] { 0x0000000000000002L });
-
+package org.eclipse.papyrus.uml.textedit.port.xtext.parser.antlr.internal;
+
+import org.eclipse.xtext.*;
+import org.eclipse.xtext.parser.*;
+import org.eclipse.xtext.parser.impl.*;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.common.util.Enumerator;
+import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
+import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken;
+import org.eclipse.papyrus.uml.textedit.port.xtext.services.UmlPortGrammarAccess;
+
+
+
+import org.antlr.runtime.*;
+import java.util.Stack;
+import java.util.List;
+import java.util.ArrayList;
+
+@SuppressWarnings("all")
+public class InternalUmlPortParser extends AbstractInternalAntlrParser {
+ public static final String[] tokenNames = new String[] {
+ "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_INTEGER_VALUE", "RULE_WS", "RULE_ANY_OTHER", "'/'", "':'", "'~'", "'<Undefined>'", "'::'", "'['", "'..'", "']'", "'*'", "'{'", "','", "'}'", "'redefines'", "'subsets'", "'='", "'.'", "'null'", "'none'", "'+'", "'-'", "'#'", "'readOnly'", "'union'", "'ordered'", "'unique'", "'true'", "'false'"
+ };
+ public static final int RULE_ID=4;
+ public static final int T__29=29;
+ public static final int T__28=28;
+ public static final int T__27=27;
+ public static final int T__26=26;
+ public static final int T__25=25;
+ public static final int T__24=24;
+ public static final int T__23=23;
+ public static final int T__22=22;
+ public static final int RULE_ANY_OTHER=11;
+ public static final int T__21=21;
+ public static final int T__20=20;
+ public static final int RULE_INTEGER_VALUE=9;
+ public static final int RULE_SL_COMMENT=8;
+ public static final int EOF=-1;
+ public static final int RULE_ML_COMMENT=7;
+ public static final int T__30=30;
+ public static final int T__19=19;
+ public static final int T__31=31;
+ public static final int RULE_STRING=6;
+ public static final int T__32=32;
+ public static final int T__33=33;
+ public static final int T__16=16;
+ public static final int T__34=34;
+ public static final int T__15=15;
+ public static final int T__35=35;
+ public static final int T__18=18;
+ public static final int T__36=36;
+ public static final int T__17=17;
+ public static final int T__37=37;
+ public static final int T__12=12;
+ public static final int T__38=38;
+ public static final int T__14=14;
+ public static final int T__13=13;
+ public static final int RULE_INT=5;
+ public static final int RULE_WS=10;
+
+ // delegates
+ // delegators
+
+
+ public InternalUmlPortParser(TokenStream input) {
+ this(input, new RecognizerSharedState());
+ }
+ public InternalUmlPortParser(TokenStream input, RecognizerSharedState state) {
+ super(input, state);
+
+ }
+
+
+ public String[] getTokenNames() { return InternalUmlPortParser.tokenNames; }
+ public String getGrammarFileName() { return "../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g"; }
+
+
+
+ private UmlPortGrammarAccess grammarAccess;
+
+ public InternalUmlPortParser(TokenStream input, UmlPortGrammarAccess grammarAccess) {
+ this(input);
+ this.grammarAccess = grammarAccess;
+ registerRules(grammarAccess.getGrammar());
+ }
+
+ @Override
+ protected String getFirstRuleName() {
+ return "PortRule";
+ }
+
+ @Override
+ protected UmlPortGrammarAccess getGrammarAccess() {
+ return grammarAccess;
+ }
+
+
+
+ // $ANTLR start "entryRulePortRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:68:1: entryRulePortRule returns [EObject current=null] : iv_rulePortRule= rulePortRule EOF ;
+ public final EObject entryRulePortRule() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePortRule = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:69:2: (iv_rulePortRule= rulePortRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:70:2: iv_rulePortRule= rulePortRule EOF
+ {
+ newCompositeNode(grammarAccess.getPortRuleRule());
+ pushFollow(FOLLOW_rulePortRule_in_entryRulePortRule75);
+ iv_rulePortRule=rulePortRule();
+
+ state._fsp--;
+
+ current =iv_rulePortRule;
+ match(input,EOF,FOLLOW_EOF_in_entryRulePortRule85);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRulePortRule"
+
+
+ // $ANTLR start "rulePortRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:77:1: rulePortRule returns [EObject current=null] : ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( (lv_conjugated_4_0= '~' ) )? ( ( (lv_type_5_0= ruleTypeRule ) ) | ( (lv_typeUndefined_6_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_7_0= ruleMultiplicityRule ) )? ( (lv_modifiers_8_0= ruleModifiersRule ) )? ( (lv_default_9_0= ruleDefaultValueRule ) )? ) ;
+ public final EObject rulePortRule() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_derived_1_0=null;
+ Token lv_name_2_0=null;
+ Token otherlv_3=null;
+ Token lv_conjugated_4_0=null;
+ Token lv_typeUndefined_6_0=null;
+ EObject lv_visibility_0_0 = null;
+
+ EObject lv_type_5_0 = null;
+
+ EObject lv_multiplicity_7_0 = null;
+
+ EObject lv_modifiers_8_0 = null;
+
+ EObject lv_default_9_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:80:28: ( ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( (lv_conjugated_4_0= '~' ) )? ( ( (lv_type_5_0= ruleTypeRule ) ) | ( (lv_typeUndefined_6_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_7_0= ruleMultiplicityRule ) )? ( (lv_modifiers_8_0= ruleModifiersRule ) )? ( (lv_default_9_0= ruleDefaultValueRule ) )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:81:1: ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( (lv_conjugated_4_0= '~' ) )? ( ( (lv_type_5_0= ruleTypeRule ) ) | ( (lv_typeUndefined_6_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_7_0= ruleMultiplicityRule ) )? ( (lv_modifiers_8_0= ruleModifiersRule ) )? ( (lv_default_9_0= ruleDefaultValueRule ) )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:81:1: ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( (lv_conjugated_4_0= '~' ) )? ( ( (lv_type_5_0= ruleTypeRule ) ) | ( (lv_typeUndefined_6_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_7_0= ruleMultiplicityRule ) )? ( (lv_modifiers_8_0= ruleModifiersRule ) )? ( (lv_default_9_0= ruleDefaultValueRule ) )? )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:81:2: ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( (lv_conjugated_4_0= '~' ) )? ( ( (lv_type_5_0= ruleTypeRule ) ) | ( (lv_typeUndefined_6_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_7_0= ruleMultiplicityRule ) )? ( (lv_modifiers_8_0= ruleModifiersRule ) )? ( (lv_default_9_0= ruleDefaultValueRule ) )?
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:81:2: ( (lv_visibility_0_0= ruleVisibilityRule ) )?
+ int alt1=2;
+ int LA1_0 = input.LA(1);
+
+ if ( (LA1_0==14||(LA1_0>=30 && LA1_0<=32)) ) {
+ alt1=1;
+ }
+ switch (alt1) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:82:1: (lv_visibility_0_0= ruleVisibilityRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:82:1: (lv_visibility_0_0= ruleVisibilityRule )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:83:3: lv_visibility_0_0= ruleVisibilityRule
+ {
+
+ newCompositeNode(grammarAccess.getPortRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0());
+
+ pushFollow(FOLLOW_ruleVisibilityRule_in_rulePortRule131);
+ lv_visibility_0_0=ruleVisibilityRule();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPortRuleRule());
+ }
+ set(
+ current,
+ "visibility",
+ lv_visibility_0_0,
+ "VisibilityRule");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:99:3: ( (lv_derived_1_0= '/' ) )?
+ int alt2=2;
+ int LA2_0 = input.LA(1);
+
+ if ( (LA2_0==12) ) {
+ alt2=1;
+ }
+ switch (alt2) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:100:1: (lv_derived_1_0= '/' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:100:1: (lv_derived_1_0= '/' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:101:3: lv_derived_1_0= '/'
+ {
+ lv_derived_1_0=(Token)match(input,12,FOLLOW_12_in_rulePortRule150);
+
+ newLeafNode(lv_derived_1_0, grammarAccess.getPortRuleAccess().getDerivedSolidusKeyword_1_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getPortRuleRule());
+ }
+ setWithLastConsumed(current, "derived", true, "/");
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:114:3: ( (lv_name_2_0= RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:115:1: (lv_name_2_0= RULE_ID )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:115:1: (lv_name_2_0= RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:116:3: lv_name_2_0= RULE_ID
+ {
+ lv_name_2_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_rulePortRule181);
+
+ newLeafNode(lv_name_2_0, grammarAccess.getPortRuleAccess().getNameIDTerminalRuleCall_2_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getPortRuleRule());
+ }
+ setWithLastConsumed(
+ current,
+ "name",
+ lv_name_2_0,
+ "ID");
+
+
+ }
+
+
+ }
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:132:2: (otherlv_3= ':' ( (lv_conjugated_4_0= '~' ) )? ( ( (lv_type_5_0= ruleTypeRule ) ) | ( (lv_typeUndefined_6_0= '<Undefined>' ) ) ) )?
+ int alt5=2;
+ int LA5_0 = input.LA(1);
+
+ if ( (LA5_0==13) ) {
+ alt5=1;
+ }
+ switch (alt5) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:132:4: otherlv_3= ':' ( (lv_conjugated_4_0= '~' ) )? ( ( (lv_type_5_0= ruleTypeRule ) ) | ( (lv_typeUndefined_6_0= '<Undefined>' ) ) )
+ {
+ otherlv_3=(Token)match(input,13,FOLLOW_13_in_rulePortRule199);
+
+ newLeafNode(otherlv_3, grammarAccess.getPortRuleAccess().getColonKeyword_3_0());
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:136:1: ( (lv_conjugated_4_0= '~' ) )?
+ int alt3=2;
+ int LA3_0 = input.LA(1);
+
+ if ( (LA3_0==14) ) {
+ alt3=1;
+ }
+ switch (alt3) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:137:1: (lv_conjugated_4_0= '~' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:137:1: (lv_conjugated_4_0= '~' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:138:3: lv_conjugated_4_0= '~'
+ {
+ lv_conjugated_4_0=(Token)match(input,14,FOLLOW_14_in_rulePortRule217);
+
+ newLeafNode(lv_conjugated_4_0, grammarAccess.getPortRuleAccess().getConjugatedTildeKeyword_3_1_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getPortRuleRule());
+ }
+ setWithLastConsumed(current, "conjugated", true, "~");
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:151:3: ( ( (lv_type_5_0= ruleTypeRule ) ) | ( (lv_typeUndefined_6_0= '<Undefined>' ) ) )
+ int alt4=2;
+ int LA4_0 = input.LA(1);
+
+ if ( (LA4_0==RULE_ID) ) {
+ alt4=1;
+ }
+ else if ( (LA4_0==15) ) {
+ alt4=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 4, 0, input);
+
+ throw nvae;
+ }
+ switch (alt4) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:151:4: ( (lv_type_5_0= ruleTypeRule ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:151:4: ( (lv_type_5_0= ruleTypeRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:152:1: (lv_type_5_0= ruleTypeRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:152:1: (lv_type_5_0= ruleTypeRule )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:153:3: lv_type_5_0= ruleTypeRule
+ {
+
+ newCompositeNode(grammarAccess.getPortRuleAccess().getTypeTypeRuleParserRuleCall_3_2_0_0());
+
+ pushFollow(FOLLOW_ruleTypeRule_in_rulePortRule253);
+ lv_type_5_0=ruleTypeRule();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPortRuleRule());
+ }
+ set(
+ current,
+ "type",
+ lv_type_5_0,
+ "TypeRule");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:170:6: ( (lv_typeUndefined_6_0= '<Undefined>' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:170:6: ( (lv_typeUndefined_6_0= '<Undefined>' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:171:1: (lv_typeUndefined_6_0= '<Undefined>' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:171:1: (lv_typeUndefined_6_0= '<Undefined>' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:172:3: lv_typeUndefined_6_0= '<Undefined>'
+ {
+ lv_typeUndefined_6_0=(Token)match(input,15,FOLLOW_15_in_rulePortRule277);
+
+ newLeafNode(lv_typeUndefined_6_0, grammarAccess.getPortRuleAccess().getTypeUndefinedUndefinedKeyword_3_2_1_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getPortRuleRule());
+ }
+ setWithLastConsumed(current, "typeUndefined", true, "<Undefined>");
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:185:5: ( (lv_multiplicity_7_0= ruleMultiplicityRule ) )?
+ int alt6=2;
+ int LA6_0 = input.LA(1);
+
+ if ( (LA6_0==17) ) {
+ alt6=1;
+ }
+ switch (alt6) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:186:1: (lv_multiplicity_7_0= ruleMultiplicityRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:186:1: (lv_multiplicity_7_0= ruleMultiplicityRule )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:187:3: lv_multiplicity_7_0= ruleMultiplicityRule
+ {
+
+ newCompositeNode(grammarAccess.getPortRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0());
+
+ pushFollow(FOLLOW_ruleMultiplicityRule_in_rulePortRule314);
+ lv_multiplicity_7_0=ruleMultiplicityRule();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPortRuleRule());
+ }
+ set(
+ current,
+ "multiplicity",
+ lv_multiplicity_7_0,
+ "MultiplicityRule");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:203:3: ( (lv_modifiers_8_0= ruleModifiersRule ) )?
+ int alt7=2;
+ int LA7_0 = input.LA(1);
+
+ if ( (LA7_0==21) ) {
+ alt7=1;
+ }
+ switch (alt7) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:204:1: (lv_modifiers_8_0= ruleModifiersRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:204:1: (lv_modifiers_8_0= ruleModifiersRule )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:205:3: lv_modifiers_8_0= ruleModifiersRule
+ {
+
+ newCompositeNode(grammarAccess.getPortRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0());
+
+ pushFollow(FOLLOW_ruleModifiersRule_in_rulePortRule336);
+ lv_modifiers_8_0=ruleModifiersRule();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPortRuleRule());
+ }
+ set(
+ current,
+ "modifiers",
+ lv_modifiers_8_0,
+ "ModifiersRule");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:221:3: ( (lv_default_9_0= ruleDefaultValueRule ) )?
+ int alt8=2;
+ int LA8_0 = input.LA(1);
+
+ if ( (LA8_0==26) ) {
+ alt8=1;
+ }
+ switch (alt8) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:222:1: (lv_default_9_0= ruleDefaultValueRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:222:1: (lv_default_9_0= ruleDefaultValueRule )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:223:3: lv_default_9_0= ruleDefaultValueRule
+ {
+
+ newCompositeNode(grammarAccess.getPortRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0());
+
+ pushFollow(FOLLOW_ruleDefaultValueRule_in_rulePortRule358);
+ lv_default_9_0=ruleDefaultValueRule();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPortRuleRule());
+ }
+ set(
+ current,
+ "default",
+ lv_default_9_0,
+ "DefaultValueRule");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePortRule"
+
+
+ // $ANTLR start "entryRuleVisibilityRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:247:1: entryRuleVisibilityRule returns [EObject current=null] : iv_ruleVisibilityRule= ruleVisibilityRule EOF ;
+ public final EObject entryRuleVisibilityRule() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleVisibilityRule = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:248:2: (iv_ruleVisibilityRule= ruleVisibilityRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:249:2: iv_ruleVisibilityRule= ruleVisibilityRule EOF
+ {
+ newCompositeNode(grammarAccess.getVisibilityRuleRule());
+ pushFollow(FOLLOW_ruleVisibilityRule_in_entryRuleVisibilityRule395);
+ iv_ruleVisibilityRule=ruleVisibilityRule();
+
+ state._fsp--;
+
+ current =iv_ruleVisibilityRule;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleVisibilityRule405);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleVisibilityRule"
+
+
+ // $ANTLR start "ruleVisibilityRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:256:1: ruleVisibilityRule returns [EObject current=null] : ( (lv_visibility_0_0= ruleVisibilityKind ) ) ;
+ public final EObject ruleVisibilityRule() throws RecognitionException {
+ EObject current = null;
+
+ Enumerator lv_visibility_0_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:259:28: ( ( (lv_visibility_0_0= ruleVisibilityKind ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:260:1: ( (lv_visibility_0_0= ruleVisibilityKind ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:260:1: ( (lv_visibility_0_0= ruleVisibilityKind ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:261:1: (lv_visibility_0_0= ruleVisibilityKind )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:261:1: (lv_visibility_0_0= ruleVisibilityKind )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:262:3: lv_visibility_0_0= ruleVisibilityKind
+ {
+
+ newCompositeNode(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0());
+
+ pushFollow(FOLLOW_ruleVisibilityKind_in_ruleVisibilityRule450);
+ lv_visibility_0_0=ruleVisibilityKind();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getVisibilityRuleRule());
+ }
+ set(
+ current,
+ "visibility",
+ lv_visibility_0_0,
+ "VisibilityKind");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleVisibilityRule"
+
+
+ // $ANTLR start "entryRuleTypeRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:286:1: entryRuleTypeRule returns [EObject current=null] : iv_ruleTypeRule= ruleTypeRule EOF ;
+ public final EObject entryRuleTypeRule() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleTypeRule = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:287:2: (iv_ruleTypeRule= ruleTypeRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:288:2: iv_ruleTypeRule= ruleTypeRule EOF
+ {
+ newCompositeNode(grammarAccess.getTypeRuleRule());
+ pushFollow(FOLLOW_ruleTypeRule_in_entryRuleTypeRule485);
+ iv_ruleTypeRule=ruleTypeRule();
+
+ state._fsp--;
+
+ current =iv_ruleTypeRule;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleTypeRule495);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleTypeRule"
+
+
+ // $ANTLR start "ruleTypeRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:295:1: ruleTypeRule returns [EObject current=null] : ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) ) ;
+ public final EObject ruleTypeRule() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ EObject lv_path_0_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:298:28: ( ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:299:1: ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:299:1: ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:299:2: ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:299:2: ( (lv_path_0_0= ruleQualifiedName ) )?
+ int alt9=2;
+ int LA9_0 = input.LA(1);
+
+ if ( (LA9_0==RULE_ID) ) {
+ int LA9_1 = input.LA(2);
+
+ if ( (LA9_1==16) ) {
+ alt9=1;
+ }
+ }
+ switch (alt9) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:300:1: (lv_path_0_0= ruleQualifiedName )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:300:1: (lv_path_0_0= ruleQualifiedName )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:301:3: lv_path_0_0= ruleQualifiedName
+ {
+
+ newCompositeNode(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0());
+
+ pushFollow(FOLLOW_ruleQualifiedName_in_ruleTypeRule541);
+ lv_path_0_0=ruleQualifiedName();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getTypeRuleRule());
+ }
+ set(
+ current,
+ "path",
+ lv_path_0_0,
+ "QualifiedName");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:317:3: ( (otherlv_1= RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:318:1: (otherlv_1= RULE_ID )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:318:1: (otherlv_1= RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:319:3: otherlv_1= RULE_ID
+ {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getTypeRuleRule());
+ }
+
+ otherlv_1=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleTypeRule562);
+
+ newLeafNode(otherlv_1, grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0());
+
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleTypeRule"
+
+
+ // $ANTLR start "entryRuleQualifiedName"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:338:1: entryRuleQualifiedName returns [EObject current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ;
+ public final EObject entryRuleQualifiedName() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleQualifiedName = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:339:2: (iv_ruleQualifiedName= ruleQualifiedName EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:340:2: iv_ruleQualifiedName= ruleQualifiedName EOF
+ {
+ newCompositeNode(grammarAccess.getQualifiedNameRule());
+ pushFollow(FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName598);
+ iv_ruleQualifiedName=ruleQualifiedName();
+
+ state._fsp--;
+
+ current =iv_ruleQualifiedName;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleQualifiedName608);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleQualifiedName"
+
+
+ // $ANTLR start "ruleQualifiedName"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:347:1: ruleQualifiedName returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) ;
+ public final EObject ruleQualifiedName() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_1=null;
+ EObject lv_remaining_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:350:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:351:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:351:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:351:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )?
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:351:2: ( (otherlv_0= RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:352:1: (otherlv_0= RULE_ID )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:352:1: (otherlv_0= RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:353:3: otherlv_0= RULE_ID
+ {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getQualifiedNameRule());
+ }
+
+ otherlv_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleQualifiedName653);
+
+ newLeafNode(otherlv_0, grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0());
+
+
+ }
+
+
+ }
+
+ otherlv_1=(Token)match(input,16,FOLLOW_16_in_ruleQualifiedName665);
+
+ newLeafNode(otherlv_1, grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1());
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:368:1: ( (lv_remaining_2_0= ruleQualifiedName ) )?
+ int alt10=2;
+ int LA10_0 = input.LA(1);
+
+ if ( (LA10_0==RULE_ID) ) {
+ int LA10_1 = input.LA(2);
+
+ if ( (LA10_1==16) ) {
+ alt10=1;
+ }
+ }
+ switch (alt10) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:369:1: (lv_remaining_2_0= ruleQualifiedName )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:369:1: (lv_remaining_2_0= ruleQualifiedName )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:370:3: lv_remaining_2_0= ruleQualifiedName
+ {
+
+ newCompositeNode(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0());
+
+ pushFollow(FOLLOW_ruleQualifiedName_in_ruleQualifiedName686);
+ lv_remaining_2_0=ruleQualifiedName();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getQualifiedNameRule());
+ }
+ set(
+ current,
+ "remaining",
+ lv_remaining_2_0,
+ "QualifiedName");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleQualifiedName"
+
+
+ // $ANTLR start "entryRuleMultiplicityRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:394:1: entryRuleMultiplicityRule returns [EObject current=null] : iv_ruleMultiplicityRule= ruleMultiplicityRule EOF ;
+ public final EObject entryRuleMultiplicityRule() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleMultiplicityRule = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:395:2: (iv_ruleMultiplicityRule= ruleMultiplicityRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:396:2: iv_ruleMultiplicityRule= ruleMultiplicityRule EOF
+ {
+ newCompositeNode(grammarAccess.getMultiplicityRuleRule());
+ pushFollow(FOLLOW_ruleMultiplicityRule_in_entryRuleMultiplicityRule723);
+ iv_ruleMultiplicityRule=ruleMultiplicityRule();
+
+ state._fsp--;
+
+ current =iv_ruleMultiplicityRule;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleMultiplicityRule733);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleMultiplicityRule"
+
+
+ // $ANTLR start "ruleMultiplicityRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:403:1: ruleMultiplicityRule returns [EObject current=null] : (otherlv_0= '[' ( ( (lv_bounds_1_0= ruleBoundSpecification ) ) otherlv_2= '..' )? ( (lv_bounds_3_0= ruleBoundSpecification ) ) otherlv_4= ']' ) ;
+ public final EObject ruleMultiplicityRule() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_2=null;
+ Token otherlv_4=null;
+ EObject lv_bounds_1_0 = null;
+
+ EObject lv_bounds_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:406:28: ( (otherlv_0= '[' ( ( (lv_bounds_1_0= ruleBoundSpecification ) ) otherlv_2= '..' )? ( (lv_bounds_3_0= ruleBoundSpecification ) ) otherlv_4= ']' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:407:1: (otherlv_0= '[' ( ( (lv_bounds_1_0= ruleBoundSpecification ) ) otherlv_2= '..' )? ( (lv_bounds_3_0= ruleBoundSpecification ) ) otherlv_4= ']' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:407:1: (otherlv_0= '[' ( ( (lv_bounds_1_0= ruleBoundSpecification ) ) otherlv_2= '..' )? ( (lv_bounds_3_0= ruleBoundSpecification ) ) otherlv_4= ']' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:407:3: otherlv_0= '[' ( ( (lv_bounds_1_0= ruleBoundSpecification ) ) otherlv_2= '..' )? ( (lv_bounds_3_0= ruleBoundSpecification ) ) otherlv_4= ']'
+ {
+ otherlv_0=(Token)match(input,17,FOLLOW_17_in_ruleMultiplicityRule770);
+
+ newLeafNode(otherlv_0, grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0());
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:411:1: ( ( (lv_bounds_1_0= ruleBoundSpecification ) ) otherlv_2= '..' )?
+ int alt11=2;
+ switch ( input.LA(1) ) {
+ case RULE_INT:
+ {
+ int LA11_1 = input.LA(2);
+
+ if ( (LA11_1==18) ) {
+ alt11=1;
+ }
+ }
+ break;
+ case 20:
+ {
+ int LA11_2 = input.LA(2);
+
+ if ( (LA11_2==18) ) {
+ alt11=1;
+ }
+ }
+ break;
+ case RULE_STRING:
+ {
+ int LA11_3 = input.LA(2);
+
+ if ( (LA11_3==18) ) {
+ alt11=1;
+ }
+ }
+ break;
+ }
+
+ switch (alt11) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:411:2: ( (lv_bounds_1_0= ruleBoundSpecification ) ) otherlv_2= '..'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:411:2: ( (lv_bounds_1_0= ruleBoundSpecification ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:412:1: (lv_bounds_1_0= ruleBoundSpecification )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:412:1: (lv_bounds_1_0= ruleBoundSpecification )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:413:3: lv_bounds_1_0= ruleBoundSpecification
+ {
+
+ newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0_0());
+
+ pushFollow(FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule792);
+ lv_bounds_1_0=ruleBoundSpecification();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule());
+ }
+ add(
+ current,
+ "bounds",
+ lv_bounds_1_0,
+ "BoundSpecification");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+ otherlv_2=(Token)match(input,18,FOLLOW_18_in_ruleMultiplicityRule804);
+
+ newLeafNode(otherlv_2, grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_1_1());
+
+
+ }
+ break;
+
+ }
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:433:3: ( (lv_bounds_3_0= ruleBoundSpecification ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:434:1: (lv_bounds_3_0= ruleBoundSpecification )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:434:1: (lv_bounds_3_0= ruleBoundSpecification )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:435:3: lv_bounds_3_0= ruleBoundSpecification
+ {
+
+ newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_0());
+
+ pushFollow(FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule827);
+ lv_bounds_3_0=ruleBoundSpecification();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule());
+ }
+ add(
+ current,
+ "bounds",
+ lv_bounds_3_0,
+ "BoundSpecification");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+ otherlv_4=(Token)match(input,19,FOLLOW_19_in_ruleMultiplicityRule839);
+
+ newLeafNode(otherlv_4, grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3());
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleMultiplicityRule"
+
+
+ // $ANTLR start "entryRuleBoundSpecification"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:463:1: entryRuleBoundSpecification returns [EObject current=null] : iv_ruleBoundSpecification= ruleBoundSpecification EOF ;
+ public final EObject entryRuleBoundSpecification() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBoundSpecification = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:464:2: (iv_ruleBoundSpecification= ruleBoundSpecification EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:465:2: iv_ruleBoundSpecification= ruleBoundSpecification EOF
+ {
+ newCompositeNode(grammarAccess.getBoundSpecificationRule());
+ pushFollow(FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification875);
+ iv_ruleBoundSpecification=ruleBoundSpecification();
+
+ state._fsp--;
+
+ current =iv_ruleBoundSpecification;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleBoundSpecification885);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleBoundSpecification"
+
+
+ // $ANTLR start "ruleBoundSpecification"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:472:1: ruleBoundSpecification returns [EObject current=null] : ( ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) ) ;
+ public final EObject ruleBoundSpecification() throws RecognitionException {
+ EObject current = null;
+
+ AntlrDatatypeRuleToken lv_value_0_1 = null;
+
+ AntlrDatatypeRuleToken lv_value_0_2 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:475:28: ( ( ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:476:1: ( ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:476:1: ( ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:477:1: ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:477:1: ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:478:1: (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:478:1: (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral )
+ int alt12=2;
+ int LA12_0 = input.LA(1);
+
+ if ( (LA12_0==RULE_INT||LA12_0==20) ) {
+ alt12=1;
+ }
+ else if ( (LA12_0==RULE_STRING) ) {
+ alt12=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 12, 0, input);
+
+ throw nvae;
+ }
+ switch (alt12) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:479:3: lv_value_0_1= ruleUnlimitedLiteral
+ {
+
+ newCompositeNode(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0_0());
+
+ pushFollow(FOLLOW_ruleUnlimitedLiteral_in_ruleBoundSpecification932);
+ lv_value_0_1=ruleUnlimitedLiteral();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getBoundSpecificationRule());
+ }
+ set(
+ current,
+ "value",
+ lv_value_0_1,
+ "UnlimitedLiteral");
+ afterParserOrEnumRuleCall();
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:494:8: lv_value_0_2= ruleStringLiteral
+ {
+
+ newCompositeNode(grammarAccess.getBoundSpecificationAccess().getValueStringLiteralParserRuleCall_0_1());
+
+ pushFollow(FOLLOW_ruleStringLiteral_in_ruleBoundSpecification951);
+ lv_value_0_2=ruleStringLiteral();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getBoundSpecificationRule());
+ }
+ set(
+ current,
+ "value",
+ lv_value_0_2,
+ "StringLiteral");
+ afterParserOrEnumRuleCall();
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleBoundSpecification"
+
+
+ // $ANTLR start "entryRuleUnlimitedLiteral"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:520:1: entryRuleUnlimitedLiteral returns [String current=null] : iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF ;
+ public final String entryRuleUnlimitedLiteral() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleUnlimitedLiteral = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:521:2: (iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:522:2: iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF
+ {
+ newCompositeNode(grammarAccess.getUnlimitedLiteralRule());
+ pushFollow(FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral990);
+ iv_ruleUnlimitedLiteral=ruleUnlimitedLiteral();
+
+ state._fsp--;
+
+ current =iv_ruleUnlimitedLiteral.getText();
+ match(input,EOF,FOLLOW_EOF_in_entryRuleUnlimitedLiteral1001);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleUnlimitedLiteral"
+
+
+ // $ANTLR start "ruleUnlimitedLiteral"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:529:1: ruleUnlimitedLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_INT_0= RULE_INT | kw= '*' ) ;
+ public final AntlrDatatypeRuleToken ruleUnlimitedLiteral() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token this_INT_0=null;
+ Token kw=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:532:28: ( (this_INT_0= RULE_INT | kw= '*' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:533:1: (this_INT_0= RULE_INT | kw= '*' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:533:1: (this_INT_0= RULE_INT | kw= '*' )
+ int alt13=2;
+ int LA13_0 = input.LA(1);
+
+ if ( (LA13_0==RULE_INT) ) {
+ alt13=1;
+ }
+ else if ( (LA13_0==20) ) {
+ alt13=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 13, 0, input);
+
+ throw nvae;
+ }
+ switch (alt13) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:533:6: this_INT_0= RULE_INT
+ {
+ this_INT_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleUnlimitedLiteral1041);
+
+ current.merge(this_INT_0);
+
+
+ newLeafNode(this_INT_0, grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0());
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:542:2: kw= '*'
+ {
+ kw=(Token)match(input,20,FOLLOW_20_in_ruleUnlimitedLiteral1065);
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1());
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleUnlimitedLiteral"
+
+
+ // $ANTLR start "entryRuleStringLiteral"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:555:1: entryRuleStringLiteral returns [String current=null] : iv_ruleStringLiteral= ruleStringLiteral EOF ;
+ public final String entryRuleStringLiteral() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleStringLiteral = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:556:2: (iv_ruleStringLiteral= ruleStringLiteral EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:557:2: iv_ruleStringLiteral= ruleStringLiteral EOF
+ {
+ newCompositeNode(grammarAccess.getStringLiteralRule());
+ pushFollow(FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral1106);
+ iv_ruleStringLiteral=ruleStringLiteral();
+
+ state._fsp--;
+
+ current =iv_ruleStringLiteral.getText();
+ match(input,EOF,FOLLOW_EOF_in_entryRuleStringLiteral1117);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleStringLiteral"
+
+
+ // $ANTLR start "ruleStringLiteral"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:564:1: ruleStringLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_STRING_0= RULE_STRING ;
+ public final AntlrDatatypeRuleToken ruleStringLiteral() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token this_STRING_0=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:567:28: (this_STRING_0= RULE_STRING )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:568:5: this_STRING_0= RULE_STRING
+ {
+ this_STRING_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleStringLiteral1156);
+
+ current.merge(this_STRING_0);
+
+
+ newLeafNode(this_STRING_0, grammarAccess.getStringLiteralAccess().getSTRINGTerminalRuleCall());
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleStringLiteral"
+
+
+ // $ANTLR start "entryRuleModifiersRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:583:1: entryRuleModifiersRule returns [EObject current=null] : iv_ruleModifiersRule= ruleModifiersRule EOF ;
+ public final EObject entryRuleModifiersRule() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleModifiersRule = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:584:2: (iv_ruleModifiersRule= ruleModifiersRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:585:2: iv_ruleModifiersRule= ruleModifiersRule EOF
+ {
+ newCompositeNode(grammarAccess.getModifiersRuleRule());
+ pushFollow(FOLLOW_ruleModifiersRule_in_entryRuleModifiersRule1200);
+ iv_ruleModifiersRule=ruleModifiersRule();
+
+ state._fsp--;
+
+ current =iv_ruleModifiersRule;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleModifiersRule1210);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleModifiersRule"
+
+
+ // $ANTLR start "ruleModifiersRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:592:1: ruleModifiersRule returns [EObject current=null] : ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' ) ;
+ public final EObject ruleModifiersRule() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ Token otherlv_5=null;
+ EObject lv_values_2_0 = null;
+
+ EObject lv_values_4_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:595:28: ( ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:596:1: ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:596:1: ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:596:2: () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:596:2: ()
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:597:5:
+ {
+
+ current = forceCreateModelElement(
+ grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0(),
+ current);
+
+
+ }
+
+ otherlv_1=(Token)match(input,21,FOLLOW_21_in_ruleModifiersRule1256);
+
+ newLeafNode(otherlv_1, grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1());
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:606:1: ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )?
+ int alt15=2;
+ int LA15_0 = input.LA(1);
+
+ if ( ((LA15_0>=24 && LA15_0<=25)||(LA15_0>=33 && LA15_0<=36)) ) {
+ alt15=1;
+ }
+ switch (alt15) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:606:2: ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )*
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:606:2: ( (lv_values_2_0= ruleModifierSpecification ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:607:1: (lv_values_2_0= ruleModifierSpecification )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:607:1: (lv_values_2_0= ruleModifierSpecification )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:608:3: lv_values_2_0= ruleModifierSpecification
+ {
+
+ newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0());
+
+ pushFollow(FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1278);
+ lv_values_2_0=ruleModifierSpecification();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getModifiersRuleRule());
+ }
+ add(
+ current,
+ "values",
+ lv_values_2_0,
+ "ModifierSpecification");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:624:2: (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )*
+ loop14:
+ do {
+ int alt14=2;
+ int LA14_0 = input.LA(1);
+
+ if ( (LA14_0==22) ) {
+ alt14=1;
+ }
+
+
+ switch (alt14) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:624:4: otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) )
+ {
+ otherlv_3=(Token)match(input,22,FOLLOW_22_in_ruleModifiersRule1291);
+
+ newLeafNode(otherlv_3, grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0());
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:628:1: ( (lv_values_4_0= ruleModifierSpecification ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:629:1: (lv_values_4_0= ruleModifierSpecification )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:629:1: (lv_values_4_0= ruleModifierSpecification )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:630:3: lv_values_4_0= ruleModifierSpecification
+ {
+
+ newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0());
+
+ pushFollow(FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1312);
+ lv_values_4_0=ruleModifierSpecification();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getModifiersRuleRule());
+ }
+ add(
+ current,
+ "values",
+ lv_values_4_0,
+ "ModifierSpecification");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop14;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+ otherlv_5=(Token)match(input,23,FOLLOW_23_in_ruleModifiersRule1328);
+
+ newLeafNode(otherlv_5, grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3());
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleModifiersRule"
+
+
+ // $ANTLR start "entryRuleModifierSpecification"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:658:1: entryRuleModifierSpecification returns [EObject current=null] : iv_ruleModifierSpecification= ruleModifierSpecification EOF ;
+ public final EObject entryRuleModifierSpecification() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleModifierSpecification = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:659:2: (iv_ruleModifierSpecification= ruleModifierSpecification EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:660:2: iv_ruleModifierSpecification= ruleModifierSpecification EOF
+ {
+ newCompositeNode(grammarAccess.getModifierSpecificationRule());
+ pushFollow(FOLLOW_ruleModifierSpecification_in_entryRuleModifierSpecification1364);
+ iv_ruleModifierSpecification=ruleModifierSpecification();
+
+ state._fsp--;
+
+ current =iv_ruleModifierSpecification;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleModifierSpecification1374);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleModifierSpecification"
+
+
+ // $ANTLR start "ruleModifierSpecification"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:667:1: ruleModifierSpecification returns [EObject current=null] : ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | ( (lv_subsets_2_0= ruleSubsetsRule ) ) ) ;
+ public final EObject ruleModifierSpecification() throws RecognitionException {
+ EObject current = null;
+
+ Enumerator lv_value_0_0 = null;
+
+ EObject lv_redefines_1_0 = null;
+
+ EObject lv_subsets_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:670:28: ( ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | ( (lv_subsets_2_0= ruleSubsetsRule ) ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:671:1: ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | ( (lv_subsets_2_0= ruleSubsetsRule ) ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:671:1: ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | ( (lv_subsets_2_0= ruleSubsetsRule ) ) )
+ int alt16=3;
+ switch ( input.LA(1) ) {
+ case 33:
+ case 34:
+ case 35:
+ case 36:
+ {
+ alt16=1;
+ }
+ break;
+ case 24:
+ {
+ alt16=2;
+ }
+ break;
+ case 25:
+ {
+ alt16=3;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 16, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt16) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:671:2: ( (lv_value_0_0= ruleModifierKind ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:671:2: ( (lv_value_0_0= ruleModifierKind ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:672:1: (lv_value_0_0= ruleModifierKind )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:672:1: (lv_value_0_0= ruleModifierKind )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:673:3: lv_value_0_0= ruleModifierKind
+ {
+
+ newCompositeNode(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0());
+
+ pushFollow(FOLLOW_ruleModifierKind_in_ruleModifierSpecification1420);
+ lv_value_0_0=ruleModifierKind();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
+ }
+ set(
+ current,
+ "value",
+ lv_value_0_0,
+ "ModifierKind");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:690:6: ( (lv_redefines_1_0= ruleRedefinesRule ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:690:6: ( (lv_redefines_1_0= ruleRedefinesRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:691:1: (lv_redefines_1_0= ruleRedefinesRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:691:1: (lv_redefines_1_0= ruleRedefinesRule )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:692:3: lv_redefines_1_0= ruleRedefinesRule
+ {
+
+ newCompositeNode(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0());
+
+ pushFollow(FOLLOW_ruleRedefinesRule_in_ruleModifierSpecification1447);
+ lv_redefines_1_0=ruleRedefinesRule();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
+ }
+ set(
+ current,
+ "redefines",
+ lv_redefines_1_0,
+ "RedefinesRule");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:709:6: ( (lv_subsets_2_0= ruleSubsetsRule ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:709:6: ( (lv_subsets_2_0= ruleSubsetsRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:710:1: (lv_subsets_2_0= ruleSubsetsRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:710:1: (lv_subsets_2_0= ruleSubsetsRule )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:711:3: lv_subsets_2_0= ruleSubsetsRule
+ {
+
+ newCompositeNode(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0());
+
+ pushFollow(FOLLOW_ruleSubsetsRule_in_ruleModifierSpecification1474);
+ lv_subsets_2_0=ruleSubsetsRule();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
+ }
+ set(
+ current,
+ "subsets",
+ lv_subsets_2_0,
+ "SubsetsRule");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleModifierSpecification"
+
+
+ // $ANTLR start "entryRuleRedefinesRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:735:1: entryRuleRedefinesRule returns [EObject current=null] : iv_ruleRedefinesRule= ruleRedefinesRule EOF ;
+ public final EObject entryRuleRedefinesRule() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleRedefinesRule = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:736:2: (iv_ruleRedefinesRule= ruleRedefinesRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:737:2: iv_ruleRedefinesRule= ruleRedefinesRule EOF
+ {
+ newCompositeNode(grammarAccess.getRedefinesRuleRule());
+ pushFollow(FOLLOW_ruleRedefinesRule_in_entryRuleRedefinesRule1510);
+ iv_ruleRedefinesRule=ruleRedefinesRule();
+
+ state._fsp--;
+
+ current =iv_ruleRedefinesRule;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleRedefinesRule1520);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleRedefinesRule"
+
+
+ // $ANTLR start "ruleRedefinesRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:744:1: ruleRedefinesRule returns [EObject current=null] : (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) ) ;
+ public final EObject ruleRedefinesRule() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_1=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:747:28: ( (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:748:1: (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:748:1: (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:748:3: otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) )
+ {
+ otherlv_0=(Token)match(input,24,FOLLOW_24_in_ruleRedefinesRule1557);
+
+ newLeafNode(otherlv_0, grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0());
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:752:1: ( (otherlv_1= RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:753:1: (otherlv_1= RULE_ID )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:753:1: (otherlv_1= RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:754:3: otherlv_1= RULE_ID
+ {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getRedefinesRuleRule());
+ }
+
+ otherlv_1=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleRedefinesRule1577);
+
+ newLeafNode(otherlv_1, grammarAccess.getRedefinesRuleAccess().getPortPortCrossReference_1_0());
+
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleRedefinesRule"
+
+
+ // $ANTLR start "entryRuleSubsetsRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:773:1: entryRuleSubsetsRule returns [EObject current=null] : iv_ruleSubsetsRule= ruleSubsetsRule EOF ;
+ public final EObject entryRuleSubsetsRule() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSubsetsRule = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:774:2: (iv_ruleSubsetsRule= ruleSubsetsRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:775:2: iv_ruleSubsetsRule= ruleSubsetsRule EOF
+ {
+ newCompositeNode(grammarAccess.getSubsetsRuleRule());
+ pushFollow(FOLLOW_ruleSubsetsRule_in_entryRuleSubsetsRule1613);
+ iv_ruleSubsetsRule=ruleSubsetsRule();
+
+ state._fsp--;
+
+ current =iv_ruleSubsetsRule;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleSubsetsRule1623);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSubsetsRule"
+
+
+ // $ANTLR start "ruleSubsetsRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:782:1: ruleSubsetsRule returns [EObject current=null] : (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) ) ;
+ public final EObject ruleSubsetsRule() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_1=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:785:28: ( (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:786:1: (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:786:1: (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:786:3: otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) )
+ {
+ otherlv_0=(Token)match(input,25,FOLLOW_25_in_ruleSubsetsRule1660);
+
+ newLeafNode(otherlv_0, grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0());
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:790:1: ( (otherlv_1= RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:791:1: (otherlv_1= RULE_ID )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:791:1: (otherlv_1= RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:792:3: otherlv_1= RULE_ID
+ {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getSubsetsRuleRule());
+ }
+
+ otherlv_1=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleSubsetsRule1680);
+
+ newLeafNode(otherlv_1, grammarAccess.getSubsetsRuleAccess().getPortPortCrossReference_1_0());
+
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSubsetsRule"
+
+
+ // $ANTLR start "entryRuleDefaultValueRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:811:1: entryRuleDefaultValueRule returns [EObject current=null] : iv_ruleDefaultValueRule= ruleDefaultValueRule EOF ;
+ public final EObject entryRuleDefaultValueRule() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleDefaultValueRule = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:812:2: (iv_ruleDefaultValueRule= ruleDefaultValueRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:813:2: iv_ruleDefaultValueRule= ruleDefaultValueRule EOF
+ {
+ newCompositeNode(grammarAccess.getDefaultValueRuleRule());
+ pushFollow(FOLLOW_ruleDefaultValueRule_in_entryRuleDefaultValueRule1716);
+ iv_ruleDefaultValueRule=ruleDefaultValueRule();
+
+ state._fsp--;
+
+ current =iv_ruleDefaultValueRule;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleDefaultValueRule1726);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleDefaultValueRule"
+
+
+ // $ANTLR start "ruleDefaultValueRule"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:820:1: ruleDefaultValueRule returns [EObject current=null] : (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) ) ;
+ public final EObject ruleDefaultValueRule() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ EObject lv_default_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:823:28: ( (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:824:1: (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:824:1: (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:824:3: otherlv_0= '=' ( (lv_default_1_0= ruleValue ) )
+ {
+ otherlv_0=(Token)match(input,26,FOLLOW_26_in_ruleDefaultValueRule1763);
+
+ newLeafNode(otherlv_0, grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0());
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:828:1: ( (lv_default_1_0= ruleValue ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:829:1: (lv_default_1_0= ruleValue )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:829:1: (lv_default_1_0= ruleValue )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:830:3: lv_default_1_0= ruleValue
+ {
+
+ newCompositeNode(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0());
+
+ pushFollow(FOLLOW_ruleValue_in_ruleDefaultValueRule1784);
+ lv_default_1_0=ruleValue();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getDefaultValueRuleRule());
+ }
+ set(
+ current,
+ "default",
+ lv_default_1_0,
+ "Value");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleDefaultValueRule"
+
+
+ // $ANTLR start "entryRuleValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:854:1: entryRuleValue returns [EObject current=null] : iv_ruleValue= ruleValue EOF ;
+ public final EObject entryRuleValue() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleValue = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:855:2: (iv_ruleValue= ruleValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:856:2: iv_ruleValue= ruleValue EOF
+ {
+ newCompositeNode(grammarAccess.getValueRule());
+ pushFollow(FOLLOW_ruleValue_in_entryRuleValue1820);
+ iv_ruleValue=ruleValue();
+
+ state._fsp--;
+
+ current =iv_ruleValue;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleValue1830);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleValue"
+
+
+ // $ANTLR start "ruleValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:863:1: ruleValue returns [EObject current=null] : (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue | this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue ) ;
+ public final EObject ruleValue() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_IntValue_0 = null;
+
+ EObject this_StringValue_1 = null;
+
+ EObject this_BooleanValue_2 = null;
+
+ EObject this_RealValue_3 = null;
+
+ EObject this_NullValue_4 = null;
+
+ EObject this_NoValue_5 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:866:28: ( (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue | this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:867:1: (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue | this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:867:1: (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue | this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue )
+ int alt17=6;
+ switch ( input.LA(1) ) {
+ case RULE_INT:
+ {
+ int LA17_1 = input.LA(2);
+
+ if ( (LA17_1==27) ) {
+ alt17=4;
+ }
+ else if ( (LA17_1==EOF) ) {
+ alt17=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 17, 1, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_STRING:
+ {
+ alt17=2;
+ }
+ break;
+ case 37:
+ case 38:
+ {
+ alt17=3;
+ }
+ break;
+ case 27:
+ {
+ alt17=4;
+ }
+ break;
+ case 28:
+ {
+ alt17=5;
+ }
+ break;
+ case 29:
+ {
+ alt17=6;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 17, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt17) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:868:5: this_IntValue_0= ruleIntValue
+ {
+
+ newCompositeNode(grammarAccess.getValueAccess().getIntValueParserRuleCall_0());
+
+ pushFollow(FOLLOW_ruleIntValue_in_ruleValue1877);
+ this_IntValue_0=ruleIntValue();
+
+ state._fsp--;
+
+
+ current = this_IntValue_0;
+ afterParserOrEnumRuleCall();
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:878:5: this_StringValue_1= ruleStringValue
+ {
+
+ newCompositeNode(grammarAccess.getValueAccess().getStringValueParserRuleCall_1());
+
+ pushFollow(FOLLOW_ruleStringValue_in_ruleValue1904);
+ this_StringValue_1=ruleStringValue();
+
+ state._fsp--;
+
+
+ current = this_StringValue_1;
+ afterParserOrEnumRuleCall();
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:888:5: this_BooleanValue_2= ruleBooleanValue
+ {
+
+ newCompositeNode(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2());
+
+ pushFollow(FOLLOW_ruleBooleanValue_in_ruleValue1931);
+ this_BooleanValue_2=ruleBooleanValue();
+
+ state._fsp--;
+
+
+ current = this_BooleanValue_2;
+ afterParserOrEnumRuleCall();
+
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:898:5: this_RealValue_3= ruleRealValue
+ {
+
+ newCompositeNode(grammarAccess.getValueAccess().getRealValueParserRuleCall_3());
+
+ pushFollow(FOLLOW_ruleRealValue_in_ruleValue1958);
+ this_RealValue_3=ruleRealValue();
+
+ state._fsp--;
+
+
+ current = this_RealValue_3;
+ afterParserOrEnumRuleCall();
+
+
+ }
+ break;
+ case 5 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:908:5: this_NullValue_4= ruleNullValue
+ {
+
+ newCompositeNode(grammarAccess.getValueAccess().getNullValueParserRuleCall_4());
+
+ pushFollow(FOLLOW_ruleNullValue_in_ruleValue1985);
+ this_NullValue_4=ruleNullValue();
+
+ state._fsp--;
+
+
+ current = this_NullValue_4;
+ afterParserOrEnumRuleCall();
+
+
+ }
+ break;
+ case 6 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:918:5: this_NoValue_5= ruleNoValue
+ {
+
+ newCompositeNode(grammarAccess.getValueAccess().getNoValueParserRuleCall_5());
+
+ pushFollow(FOLLOW_ruleNoValue_in_ruleValue2012);
+ this_NoValue_5=ruleNoValue();
+
+ state._fsp--;
+
+
+ current = this_NoValue_5;
+ afterParserOrEnumRuleCall();
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleValue"
+
+
+ // $ANTLR start "entryRuleIntValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:934:1: entryRuleIntValue returns [EObject current=null] : iv_ruleIntValue= ruleIntValue EOF ;
+ public final EObject entryRuleIntValue() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleIntValue = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:935:2: (iv_ruleIntValue= ruleIntValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:936:2: iv_ruleIntValue= ruleIntValue EOF
+ {
+ newCompositeNode(grammarAccess.getIntValueRule());
+ pushFollow(FOLLOW_ruleIntValue_in_entryRuleIntValue2047);
+ iv_ruleIntValue=ruleIntValue();
+
+ state._fsp--;
+
+ current =iv_ruleIntValue;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleIntValue2057);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleIntValue"
+
+
+ // $ANTLR start "ruleIntValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:943:1: ruleIntValue returns [EObject current=null] : ( (lv_literalInteger_0_0= RULE_INT ) ) ;
+ public final EObject ruleIntValue() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_literalInteger_0_0=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:946:28: ( ( (lv_literalInteger_0_0= RULE_INT ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:947:1: ( (lv_literalInteger_0_0= RULE_INT ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:947:1: ( (lv_literalInteger_0_0= RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:948:1: (lv_literalInteger_0_0= RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:948:1: (lv_literalInteger_0_0= RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:949:3: lv_literalInteger_0_0= RULE_INT
+ {
+ lv_literalInteger_0_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleIntValue2098);
+
+ newLeafNode(lv_literalInteger_0_0, grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getIntValueRule());
+ }
+ setWithLastConsumed(
+ current,
+ "literalInteger",
+ lv_literalInteger_0_0,
+ "INT");
+
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleIntValue"
+
+
+ // $ANTLR start "entryRuleStringValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:973:1: entryRuleStringValue returns [EObject current=null] : iv_ruleStringValue= ruleStringValue EOF ;
+ public final EObject entryRuleStringValue() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleStringValue = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:974:2: (iv_ruleStringValue= ruleStringValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:975:2: iv_ruleStringValue= ruleStringValue EOF
+ {
+ newCompositeNode(grammarAccess.getStringValueRule());
+ pushFollow(FOLLOW_ruleStringValue_in_entryRuleStringValue2138);
+ iv_ruleStringValue=ruleStringValue();
+
+ state._fsp--;
+
+ current =iv_ruleStringValue;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleStringValue2148);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleStringValue"
+
+
+ // $ANTLR start "ruleStringValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:982:1: ruleStringValue returns [EObject current=null] : ( (lv_literalString_0_0= RULE_STRING ) ) ;
+ public final EObject ruleStringValue() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_literalString_0_0=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:985:28: ( ( (lv_literalString_0_0= RULE_STRING ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:986:1: ( (lv_literalString_0_0= RULE_STRING ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:986:1: ( (lv_literalString_0_0= RULE_STRING ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:987:1: (lv_literalString_0_0= RULE_STRING )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:987:1: (lv_literalString_0_0= RULE_STRING )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:988:3: lv_literalString_0_0= RULE_STRING
+ {
+ lv_literalString_0_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleStringValue2189);
+
+ newLeafNode(lv_literalString_0_0, grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getStringValueRule());
+ }
+ setWithLastConsumed(
+ current,
+ "literalString",
+ lv_literalString_0_0,
+ "STRING");
+
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleStringValue"
+
+
+ // $ANTLR start "entryRuleBooleanValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1012:1: entryRuleBooleanValue returns [EObject current=null] : iv_ruleBooleanValue= ruleBooleanValue EOF ;
+ public final EObject entryRuleBooleanValue() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBooleanValue = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1013:2: (iv_ruleBooleanValue= ruleBooleanValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1014:2: iv_ruleBooleanValue= ruleBooleanValue EOF
+ {
+ newCompositeNode(grammarAccess.getBooleanValueRule());
+ pushFollow(FOLLOW_ruleBooleanValue_in_entryRuleBooleanValue2229);
+ iv_ruleBooleanValue=ruleBooleanValue();
+
+ state._fsp--;
+
+ current =iv_ruleBooleanValue;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleBooleanValue2239);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleBooleanValue"
+
+
+ // $ANTLR start "ruleBooleanValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1021:1: ruleBooleanValue returns [EObject current=null] : ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) ) ;
+ public final EObject ruleBooleanValue() throws RecognitionException {
+ EObject current = null;
+
+ Enumerator lv_literalBoolean_0_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1024:28: ( ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1025:1: ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1025:1: ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1026:1: (lv_literalBoolean_0_0= ruleBooleanLiterals )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1026:1: (lv_literalBoolean_0_0= ruleBooleanLiterals )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1027:3: lv_literalBoolean_0_0= ruleBooleanLiterals
+ {
+
+ newCompositeNode(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0());
+
+ pushFollow(FOLLOW_ruleBooleanLiterals_in_ruleBooleanValue2284);
+ lv_literalBoolean_0_0=ruleBooleanLiterals();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getBooleanValueRule());
+ }
+ set(
+ current,
+ "literalBoolean",
+ lv_literalBoolean_0_0,
+ "BooleanLiterals");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleBooleanValue"
+
+
+ // $ANTLR start "entryRuleRealValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1051:1: entryRuleRealValue returns [EObject current=null] : iv_ruleRealValue= ruleRealValue EOF ;
+ public final EObject entryRuleRealValue() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleRealValue = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1052:2: (iv_ruleRealValue= ruleRealValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1053:2: iv_ruleRealValue= ruleRealValue EOF
+ {
+ newCompositeNode(grammarAccess.getRealValueRule());
+ pushFollow(FOLLOW_ruleRealValue_in_entryRuleRealValue2319);
+ iv_ruleRealValue=ruleRealValue();
+
+ state._fsp--;
+
+ current =iv_ruleRealValue;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleRealValue2329);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleRealValue"
+
+
+ // $ANTLR start "ruleRealValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1060:1: ruleRealValue returns [EObject current=null] : ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) ) ;
+ public final EObject ruleRealValue() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_integer_0_0=null;
+ Token otherlv_1=null;
+ Token otherlv_2=null;
+ Token lv_fraction_3_0=null;
+ Token lv_integer_4_0=null;
+ Token otherlv_5=null;
+ Token lv_fraction_6_0=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1063:28: ( ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1064:1: ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1064:1: ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) )
+ int alt18=3;
+ int LA18_0 = input.LA(1);
+
+ if ( (LA18_0==RULE_INT) ) {
+ int LA18_1 = input.LA(2);
+
+ if ( (LA18_1==27) ) {
+ int LA18_3 = input.LA(3);
+
+ if ( (LA18_3==EOF) ) {
+ alt18=1;
+ }
+ else if ( (LA18_3==RULE_INT) ) {
+ alt18=3;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 18, 3, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 18, 1, input);
+
+ throw nvae;
+ }
+ }
+ else if ( (LA18_0==27) ) {
+ alt18=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 18, 0, input);
+
+ throw nvae;
+ }
+ switch (alt18) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1064:2: ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1064:2: ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1064:3: ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1064:3: ( (lv_integer_0_0= RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1065:1: (lv_integer_0_0= RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1065:1: (lv_integer_0_0= RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1066:3: lv_integer_0_0= RULE_INT
+ {
+ lv_integer_0_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleRealValue2372);
+
+ newLeafNode(lv_integer_0_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getRealValueRule());
+ }
+ setWithLastConsumed(
+ current,
+ "integer",
+ lv_integer_0_0,
+ "INT");
+
+
+ }
+
+
+ }
+
+ otherlv_1=(Token)match(input,27,FOLLOW_27_in_ruleRealValue2389);
+
+ newLeafNode(otherlv_1, grammarAccess.getRealValueAccess().getFullStopKeyword_0_1());
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1087:6: (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1087:6: (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1087:8: otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) )
+ {
+ otherlv_2=(Token)match(input,27,FOLLOW_27_in_ruleRealValue2409);
+
+ newLeafNode(otherlv_2, grammarAccess.getRealValueAccess().getFullStopKeyword_1_0());
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1091:1: ( (lv_fraction_3_0= RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1092:1: (lv_fraction_3_0= RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1092:1: (lv_fraction_3_0= RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1093:3: lv_fraction_3_0= RULE_INT
+ {
+ lv_fraction_3_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleRealValue2426);
+
+ newLeafNode(lv_fraction_3_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getRealValueRule());
+ }
+ setWithLastConsumed(
+ current,
+ "fraction",
+ lv_fraction_3_0,
+ "INT");
+
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1110:6: ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1110:6: ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1110:7: ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1110:7: ( (lv_integer_4_0= RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1111:1: (lv_integer_4_0= RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1111:1: (lv_integer_4_0= RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1112:3: lv_integer_4_0= RULE_INT
+ {
+ lv_integer_4_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleRealValue2456);
+
+ newLeafNode(lv_integer_4_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getRealValueRule());
+ }
+ setWithLastConsumed(
+ current,
+ "integer",
+ lv_integer_4_0,
+ "INT");
+
+
+ }
+
+
+ }
+
+ otherlv_5=(Token)match(input,27,FOLLOW_27_in_ruleRealValue2473);
+
+ newLeafNode(otherlv_5, grammarAccess.getRealValueAccess().getFullStopKeyword_2_1());
+
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1132:1: ( (lv_fraction_6_0= RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1133:1: (lv_fraction_6_0= RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1133:1: (lv_fraction_6_0= RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1134:3: lv_fraction_6_0= RULE_INT
+ {
+ lv_fraction_6_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleRealValue2490);
+
+ newLeafNode(lv_fraction_6_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getRealValueRule());
+ }
+ setWithLastConsumed(
+ current,
+ "fraction",
+ lv_fraction_6_0,
+ "INT");
+
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleRealValue"
+
+
+ // $ANTLR start "entryRuleNullValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1158:1: entryRuleNullValue returns [EObject current=null] : iv_ruleNullValue= ruleNullValue EOF ;
+ public final EObject entryRuleNullValue() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNullValue = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1159:2: (iv_ruleNullValue= ruleNullValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1160:2: iv_ruleNullValue= ruleNullValue EOF
+ {
+ newCompositeNode(grammarAccess.getNullValueRule());
+ pushFollow(FOLLOW_ruleNullValue_in_entryRuleNullValue2532);
+ iv_ruleNullValue=ruleNullValue();
+
+ state._fsp--;
+
+ current =iv_ruleNullValue;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleNullValue2542);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleNullValue"
+
+
+ // $ANTLR start "ruleNullValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1167:1: ruleNullValue returns [EObject current=null] : ( () otherlv_1= 'null' ) ;
+ public final EObject ruleNullValue() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1170:28: ( ( () otherlv_1= 'null' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1171:1: ( () otherlv_1= 'null' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1171:1: ( () otherlv_1= 'null' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1171:2: () otherlv_1= 'null'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1171:2: ()
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1172:5:
+ {
+
+ current = forceCreateModelElement(
+ grammarAccess.getNullValueAccess().getNullValueAction_0(),
+ current);
+
+
+ }
+
+ otherlv_1=(Token)match(input,28,FOLLOW_28_in_ruleNullValue2588);
+
+ newLeafNode(otherlv_1, grammarAccess.getNullValueAccess().getNullKeyword_1());
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNullValue"
+
+
+ // $ANTLR start "entryRuleNoValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1189:1: entryRuleNoValue returns [EObject current=null] : iv_ruleNoValue= ruleNoValue EOF ;
+ public final EObject entryRuleNoValue() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNoValue = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1190:2: (iv_ruleNoValue= ruleNoValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1191:2: iv_ruleNoValue= ruleNoValue EOF
+ {
+ newCompositeNode(grammarAccess.getNoValueRule());
+ pushFollow(FOLLOW_ruleNoValue_in_entryRuleNoValue2624);
+ iv_ruleNoValue=ruleNoValue();
+
+ state._fsp--;
+
+ current =iv_ruleNoValue;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleNoValue2634);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleNoValue"
+
+
+ // $ANTLR start "ruleNoValue"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1198:1: ruleNoValue returns [EObject current=null] : ( () otherlv_1= 'none' ) ;
+ public final EObject ruleNoValue() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1201:28: ( ( () otherlv_1= 'none' ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1202:1: ( () otherlv_1= 'none' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1202:1: ( () otherlv_1= 'none' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1202:2: () otherlv_1= 'none'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1202:2: ()
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1203:5:
+ {
+
+ current = forceCreateModelElement(
+ grammarAccess.getNoValueAccess().getNoValueAction_0(),
+ current);
+
+
+ }
+
+ otherlv_1=(Token)match(input,29,FOLLOW_29_in_ruleNoValue2680);
+
+ newLeafNode(otherlv_1, grammarAccess.getNoValueAccess().getNoneKeyword_1());
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNoValue"
+
+
+ // $ANTLR start "ruleVisibilityKind"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1220:1: ruleVisibilityKind returns [Enumerator current=null] : ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~' ) ) ;
+ public final Enumerator ruleVisibilityKind() throws RecognitionException {
+ Enumerator current = null;
+
+ Token enumLiteral_0=null;
+ Token enumLiteral_1=null;
+ Token enumLiteral_2=null;
+ Token enumLiteral_3=null;
+
+ enterRule();
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1222:28: ( ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~' ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1223:1: ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1223:1: ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~' ) )
+ int alt19=4;
+ switch ( input.LA(1) ) {
+ case 30:
+ {
+ alt19=1;
+ }
+ break;
+ case 31:
+ {
+ alt19=2;
+ }
+ break;
+ case 32:
+ {
+ alt19=3;
+ }
+ break;
+ case 14:
+ {
+ alt19=4;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 19, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt19) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1223:2: (enumLiteral_0= '+' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1223:2: (enumLiteral_0= '+' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1223:4: enumLiteral_0= '+'
+ {
+ enumLiteral_0=(Token)match(input,30,FOLLOW_30_in_ruleVisibilityKind2730);
+
+ current = grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_0, grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0());
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1229:6: (enumLiteral_1= '-' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1229:6: (enumLiteral_1= '-' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1229:8: enumLiteral_1= '-'
+ {
+ enumLiteral_1=(Token)match(input,31,FOLLOW_31_in_ruleVisibilityKind2747);
+
+ current = grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_1, grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1());
+
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1235:6: (enumLiteral_2= '#' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1235:6: (enumLiteral_2= '#' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1235:8: enumLiteral_2= '#'
+ {
+ enumLiteral_2=(Token)match(input,32,FOLLOW_32_in_ruleVisibilityKind2764);
+
+ current = grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_2, grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2());
+
+
+ }
+
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1241:6: (enumLiteral_3= '~' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1241:6: (enumLiteral_3= '~' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1241:8: enumLiteral_3= '~'
+ {
+ enumLiteral_3=(Token)match(input,14,FOLLOW_14_in_ruleVisibilityKind2781);
+
+ current = grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_3, grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3());
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleVisibilityKind"
+
+
+ // $ANTLR start "ruleModifierKind"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1251:1: ruleModifierKind returns [Enumerator current=null] : ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) | (enumLiteral_3= 'unique' ) ) ;
+ public final Enumerator ruleModifierKind() throws RecognitionException {
+ Enumerator current = null;
+
+ Token enumLiteral_0=null;
+ Token enumLiteral_1=null;
+ Token enumLiteral_2=null;
+ Token enumLiteral_3=null;
+
+ enterRule();
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1253:28: ( ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) | (enumLiteral_3= 'unique' ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1254:1: ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) | (enumLiteral_3= 'unique' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1254:1: ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) | (enumLiteral_3= 'unique' ) )
+ int alt20=4;
+ switch ( input.LA(1) ) {
+ case 33:
+ {
+ alt20=1;
+ }
+ break;
+ case 34:
+ {
+ alt20=2;
+ }
+ break;
+ case 35:
+ {
+ alt20=3;
+ }
+ break;
+ case 36:
+ {
+ alt20=4;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 20, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt20) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1254:2: (enumLiteral_0= 'readOnly' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1254:2: (enumLiteral_0= 'readOnly' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1254:4: enumLiteral_0= 'readOnly'
+ {
+ enumLiteral_0=(Token)match(input,33,FOLLOW_33_in_ruleModifierKind2826);
+
+ current = grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_0, grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0());
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1260:6: (enumLiteral_1= 'union' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1260:6: (enumLiteral_1= 'union' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1260:8: enumLiteral_1= 'union'
+ {
+ enumLiteral_1=(Token)match(input,34,FOLLOW_34_in_ruleModifierKind2843);
+
+ current = grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_1, grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1());
+
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1266:6: (enumLiteral_2= 'ordered' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1266:6: (enumLiteral_2= 'ordered' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1266:8: enumLiteral_2= 'ordered'
+ {
+ enumLiteral_2=(Token)match(input,35,FOLLOW_35_in_ruleModifierKind2860);
+
+ current = grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_2, grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2());
+
+
+ }
+
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1272:6: (enumLiteral_3= 'unique' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1272:6: (enumLiteral_3= 'unique' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1272:8: enumLiteral_3= 'unique'
+ {
+ enumLiteral_3=(Token)match(input,36,FOLLOW_36_in_ruleModifierKind2877);
+
+ current = grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_3, grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3());
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleModifierKind"
+
+
+ // $ANTLR start "ruleBooleanLiterals"
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1282:1: ruleBooleanLiterals returns [Enumerator current=null] : ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) ) ;
+ public final Enumerator ruleBooleanLiterals() throws RecognitionException {
+ Enumerator current = null;
+
+ Token enumLiteral_0=null;
+ Token enumLiteral_1=null;
+
+ enterRule();
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1284:28: ( ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1285:1: ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1285:1: ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) )
+ int alt21=2;
+ int LA21_0 = input.LA(1);
+
+ if ( (LA21_0==37) ) {
+ alt21=1;
+ }
+ else if ( (LA21_0==38) ) {
+ alt21=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 21, 0, input);
+
+ throw nvae;
+ }
+ switch (alt21) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1285:2: (enumLiteral_0= 'true' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1285:2: (enumLiteral_0= 'true' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1285:4: enumLiteral_0= 'true'
+ {
+ enumLiteral_0=(Token)match(input,37,FOLLOW_37_in_ruleBooleanLiterals2922);
+
+ current = grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_0, grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0());
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1291:6: (enumLiteral_1= 'false' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1291:6: (enumLiteral_1= 'false' )
+ // ../org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/parser/antlr/internal/InternalUmlPort.g:1291:8: enumLiteral_1= 'false'
+ {
+ enumLiteral_1=(Token)match(input,38,FOLLOW_38_in_ruleBooleanLiterals2939);
+
+ current = grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_1, grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1());
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleBooleanLiterals"
+
+ // Delegated rules
+
+
+
+
+ public static final BitSet FOLLOW_rulePortRule_in_entryRulePortRule75 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRulePortRule85 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleVisibilityRule_in_rulePortRule131 = new BitSet(new long[]{0x0000000000001010L});
+ public static final BitSet FOLLOW_12_in_rulePortRule150 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_RULE_ID_in_rulePortRule181 = new BitSet(new long[]{0x0000000004222002L});
+ public static final BitSet FOLLOW_13_in_rulePortRule199 = new BitSet(new long[]{0x000000000000C010L});
+ public static final BitSet FOLLOW_14_in_rulePortRule217 = new BitSet(new long[]{0x0000000000008010L});
+ public static final BitSet FOLLOW_ruleTypeRule_in_rulePortRule253 = new BitSet(new long[]{0x0000000004220002L});
+ public static final BitSet FOLLOW_15_in_rulePortRule277 = new BitSet(new long[]{0x0000000004220002L});
+ public static final BitSet FOLLOW_ruleMultiplicityRule_in_rulePortRule314 = new BitSet(new long[]{0x0000000004200002L});
+ public static final BitSet FOLLOW_ruleModifiersRule_in_rulePortRule336 = new BitSet(new long[]{0x0000000004000002L});
+ public static final BitSet FOLLOW_ruleDefaultValueRule_in_rulePortRule358 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleVisibilityRule_in_entryRuleVisibilityRule395 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleVisibilityRule405 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleVisibilityKind_in_ruleVisibilityRule450 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleTypeRule_in_entryRuleTypeRule485 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleTypeRule495 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleQualifiedName_in_ruleTypeRule541 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_RULE_ID_in_ruleTypeRule562 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName598 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleQualifiedName608 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_ID_in_ruleQualifiedName653 = new BitSet(new long[]{0x0000000000010000L});
+ public static final BitSet FOLLOW_16_in_ruleQualifiedName665 = new BitSet(new long[]{0x0000000000000012L});
+ public static final BitSet FOLLOW_ruleQualifiedName_in_ruleQualifiedName686 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleMultiplicityRule_in_entryRuleMultiplicityRule723 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleMultiplicityRule733 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_17_in_ruleMultiplicityRule770 = new BitSet(new long[]{0x0000000000100060L});
+ public static final BitSet FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule792 = new BitSet(new long[]{0x0000000000040000L});
+ public static final BitSet FOLLOW_18_in_ruleMultiplicityRule804 = new BitSet(new long[]{0x0000000000100060L});
+ public static final BitSet FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule827 = new BitSet(new long[]{0x0000000000080000L});
+ public static final BitSet FOLLOW_19_in_ruleMultiplicityRule839 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification875 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleBoundSpecification885 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_ruleBoundSpecification932 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleStringLiteral_in_ruleBoundSpecification951 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral990 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleUnlimitedLiteral1001 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_ruleUnlimitedLiteral1041 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_20_in_ruleUnlimitedLiteral1065 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral1106 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleStringLiteral1117 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_STRING_in_ruleStringLiteral1156 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleModifiersRule_in_entryRuleModifiersRule1200 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleModifiersRule1210 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_21_in_ruleModifiersRule1256 = new BitSet(new long[]{0x0000001E03800000L});
+ public static final BitSet FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1278 = new BitSet(new long[]{0x0000000000C00000L});
+ public static final BitSet FOLLOW_22_in_ruleModifiersRule1291 = new BitSet(new long[]{0x0000001E03000000L});
+ public static final BitSet FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1312 = new BitSet(new long[]{0x0000000000C00000L});
+ public static final BitSet FOLLOW_23_in_ruleModifiersRule1328 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleModifierSpecification_in_entryRuleModifierSpecification1364 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleModifierSpecification1374 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleModifierKind_in_ruleModifierSpecification1420 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleRedefinesRule_in_ruleModifierSpecification1447 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleSubsetsRule_in_ruleModifierSpecification1474 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleRedefinesRule_in_entryRuleRedefinesRule1510 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleRedefinesRule1520 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_24_in_ruleRedefinesRule1557 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_RULE_ID_in_ruleRedefinesRule1577 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleSubsetsRule_in_entryRuleSubsetsRule1613 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleSubsetsRule1623 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_25_in_ruleSubsetsRule1660 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_RULE_ID_in_ruleSubsetsRule1680 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleDefaultValueRule_in_entryRuleDefaultValueRule1716 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleDefaultValueRule1726 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_26_in_ruleDefaultValueRule1763 = new BitSet(new long[]{0x0000006038000060L});
+ public static final BitSet FOLLOW_ruleValue_in_ruleDefaultValueRule1784 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleValue_in_entryRuleValue1820 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleValue1830 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleIntValue_in_ruleValue1877 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleStringValue_in_ruleValue1904 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBooleanValue_in_ruleValue1931 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleRealValue_in_ruleValue1958 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleNullValue_in_ruleValue1985 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleNoValue_in_ruleValue2012 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleIntValue_in_entryRuleIntValue2047 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleIntValue2057 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_ruleIntValue2098 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleStringValue_in_entryRuleStringValue2138 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleStringValue2148 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_STRING_in_ruleStringValue2189 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBooleanValue_in_entryRuleBooleanValue2229 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleBooleanValue2239 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBooleanLiterals_in_ruleBooleanValue2284 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleRealValue_in_entryRuleRealValue2319 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleRealValue2329 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2372 = new BitSet(new long[]{0x0000000008000000L});
+ public static final BitSet FOLLOW_27_in_ruleRealValue2389 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_27_in_ruleRealValue2409 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2426 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2456 = new BitSet(new long[]{0x0000000008000000L});
+ public static final BitSet FOLLOW_27_in_ruleRealValue2473 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2490 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleNullValue_in_entryRuleNullValue2532 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleNullValue2542 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_28_in_ruleNullValue2588 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleNoValue_in_entryRuleNoValue2624 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleNoValue2634 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_29_in_ruleNoValue2680 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_30_in_ruleVisibilityKind2730 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_31_in_ruleVisibilityKind2747 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_32_in_ruleVisibilityKind2764 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_14_in_ruleVisibilityKind2781 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_33_in_ruleModifierKind2826 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_34_in_ruleModifierKind2843 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_35_in_ruleModifierKind2860 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_36_in_ruleModifierKind2877 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_37_in_ruleBooleanLiterals2922 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_38_in_ruleBooleanLiterals2939 = new BitSet(new long[]{0x0000000000000002L});
+
} \ No newline at end of file
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/serializer/UmlPortSemanticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/serializer/UmlPortSemanticSequencer.java
index 608bdcbc9b0..93a17e4804a 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/serializer/UmlPortSemanticSequencer.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/serializer/UmlPortSemanticSequencer.java
@@ -1,394 +1,311 @@
-package org.eclipse.papyrus.uml.textedit.port.xtext.serializer;
-
-import com.google.inject.Inject;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.textedit.port.xtext.services.UmlPortGrammarAccess;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NoValue;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NullValue;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule;
-import org.eclipse.xtext.serializer.acceptor.SequenceFeeder;
-import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider;
-import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient;
-
-@SuppressWarnings("all")
-public class UmlPortSemanticSequencer extends AbstractDelegatingSemanticSequencer {
-
- @Inject
- private UmlPortGrammarAccess grammarAccess;
-
- @Override
- public void createSequence(EObject context, EObject semanticObject) {
- if (semanticObject.eClass().getEPackage() == UmlPortPackage.eINSTANCE) {
- switch (semanticObject.eClass().getClassifierID()) {
- case UmlPortPackage.BOOLEAN_VALUE:
- if (context == grammarAccess.getBooleanValueRule() ||
- context == grammarAccess.getValueRule()) {
- sequence_BooleanValue(context, (BooleanValue) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPortPackage.BOUND_SPECIFICATION:
- if (context == grammarAccess.getBoundSpecificationRule()) {
- sequence_BoundSpecification(context, (BoundSpecification) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPortPackage.DEFAULT_VALUE_RULE:
- if (context == grammarAccess.getDefaultValueRuleRule()) {
- sequence_DefaultValueRule(context, (DefaultValueRule) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPortPackage.INT_VALUE:
- if (context == grammarAccess.getIntValueRule() ||
- context == grammarAccess.getValueRule()) {
- sequence_IntValue(context, (IntValue) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPortPackage.MODIFIER_SPECIFICATION:
- if (context == grammarAccess.getModifierSpecificationRule()) {
- sequence_ModifierSpecification(context, (ModifierSpecification) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPortPackage.MODIFIERS_RULE:
- if (context == grammarAccess.getModifiersRuleRule()) {
- sequence_ModifiersRule(context, (ModifiersRule) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPortPackage.MULTIPLICITY_RULE:
- if (context == grammarAccess.getMultiplicityRuleRule()) {
- sequence_MultiplicityRule(context, (MultiplicityRule) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPortPackage.NO_VALUE:
- if (context == grammarAccess.getNoValueRule() ||
- context == grammarAccess.getValueRule()) {
- sequence_NoValue(context, (NoValue) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPortPackage.NULL_VALUE:
- if (context == grammarAccess.getNullValueRule() ||
- context == grammarAccess.getValueRule()) {
- sequence_NullValue(context, (NullValue) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPortPackage.PORT_RULE:
- if (context == grammarAccess.getPortRuleRule()) {
- sequence_PortRule(context, (PortRule) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPortPackage.QUALIFIED_NAME:
- if (context == grammarAccess.getQualifiedNameRule()) {
- sequence_QualifiedName(context, (QualifiedName) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPortPackage.REAL_VALUE:
- if (context == grammarAccess.getRealValueRule() ||
- context == grammarAccess.getValueRule()) {
- sequence_RealValue(context, (RealValue) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPortPackage.REDEFINES_RULE:
- if (context == grammarAccess.getRedefinesRuleRule()) {
- sequence_RedefinesRule(context, (RedefinesRule) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPortPackage.STRING_VALUE:
- if (context == grammarAccess.getStringValueRule() ||
- context == grammarAccess.getValueRule()) {
- sequence_StringValue(context, (StringValue) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPortPackage.SUBSETS_RULE:
- if (context == grammarAccess.getSubsetsRuleRule()) {
- sequence_SubsetsRule(context, (SubsetsRule) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPortPackage.TYPE_RULE:
- if (context == grammarAccess.getTypeRuleRule()) {
- sequence_TypeRule(context, (TypeRule) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPortPackage.VISIBILITY_RULE:
- if (context == grammarAccess.getVisibilityRuleRule()) {
- sequence_VisibilityRule(context, (VisibilityRule) semanticObject);
- return;
- } else {
- break;
- }
- }
- }
- if (errorAcceptor != null) {
- errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
- }
- }
-
- /**
- * Constraint:
- * literalBoolean=BooleanLiterals
- */
- protected void sequence_BooleanValue(EObject context, BooleanValue semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, UmlPortPackage.Literals.BOOLEAN_VALUE__LITERAL_BOOLEAN) == ValueTransient.YES) {
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPortPackage.Literals.BOOLEAN_VALUE__LITERAL_BOOLEAN));
- }
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0(), semanticObject.getLiteralBoolean());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * value=UnlimitedLiteral
- */
- protected void sequence_BoundSpecification(EObject context, BoundSpecification semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, UmlPortPackage.Literals.BOUND_SPECIFICATION__VALUE) == ValueTransient.YES) {
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPortPackage.Literals.BOUND_SPECIFICATION__VALUE));
- }
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0(), semanticObject.getValue());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * default=Value
- */
- protected void sequence_DefaultValueRule(EObject context, DefaultValueRule semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, UmlPortPackage.Literals.DEFAULT_VALUE_RULE__DEFAULT) == ValueTransient.YES) {
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPortPackage.Literals.DEFAULT_VALUE_RULE__DEFAULT));
- }
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0(), semanticObject.getDefault());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * literalInteger=INT
- */
- protected void sequence_IntValue(EObject context, IntValue semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, UmlPortPackage.Literals.INT_VALUE__LITERAL_INTEGER) == ValueTransient.YES) {
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPortPackage.Literals.INT_VALUE__LITERAL_INTEGER));
- }
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0(), semanticObject.getLiteralInteger());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule)
- */
- protected void sequence_ModifierSpecification(EObject context, ModifierSpecification semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * ((values+=ModifierSpecification values+=ModifierSpecification*)?)
- */
- protected void sequence_ModifiersRule(EObject context, ModifiersRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (bounds+=BoundSpecification bounds+=BoundSpecification?)
- */
- protected void sequence_MultiplicityRule(EObject context, MultiplicityRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * {NoValue}
- */
- protected void sequence_NoValue(EObject context, NoValue semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * {NullValue}
- */
- protected void sequence_NullValue(EObject context, NullValue semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (
- * visibility=VisibilityRule?
- * derived?='/'?
- * name=ID
- * (conjugated?='~'? (type=TypeRule | typeUndefined?='<Undefined>'))?
- * multiplicity=MultiplicityRule?
- * modifiers=ModifiersRule?
- * default=DefaultValueRule?
- * )
- */
- protected void sequence_PortRule(EObject context, PortRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (path=[Namespace|ID] remaining=QualifiedName?)
- */
- protected void sequence_QualifiedName(EObject context, QualifiedName semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (integer=INT | fraction=INT | (integer=INT fraction=INT))
- */
- protected void sequence_RealValue(EObject context, RealValue semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * port=[Port|ID]
- */
- protected void sequence_RedefinesRule(EObject context, RedefinesRule semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, UmlPortPackage.Literals.REDEFINES_RULE__PORT) == ValueTransient.YES) {
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPortPackage.Literals.REDEFINES_RULE__PORT));
- }
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getRedefinesRuleAccess().getPortPortIDTerminalRuleCall_1_0_1(), semanticObject.getPort());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * literalString=STRING
- */
- protected void sequence_StringValue(EObject context, StringValue semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, UmlPortPackage.Literals.STRING_VALUE__LITERAL_STRING) == ValueTransient.YES) {
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPortPackage.Literals.STRING_VALUE__LITERAL_STRING));
- }
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0(), semanticObject.getLiteralString());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * port=[Port|ID]
- */
- protected void sequence_SubsetsRule(EObject context, SubsetsRule semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, UmlPortPackage.Literals.SUBSETS_RULE__PORT) == ValueTransient.YES) {
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPortPackage.Literals.SUBSETS_RULE__PORT));
- }
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getSubsetsRuleAccess().getPortPortIDTerminalRuleCall_1_0_1(), semanticObject.getPort());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (path=QualifiedName? type=[Classifier|ID])
- */
- protected void sequence_TypeRule(EObject context, TypeRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * visibility=VisibilityKind
- */
- protected void sequence_VisibilityRule(EObject context, VisibilityRule semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, UmlPortPackage.Literals.VISIBILITY_RULE__VISIBILITY) == ValueTransient.YES) {
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPortPackage.Literals.VISIBILITY_RULE__VISIBILITY));
- }
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0(), semanticObject.getVisibility());
- feeder.finish();
- }
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.serializer;
+
+import com.google.inject.Inject;
+import com.google.inject.Provider;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.papyrus.uml.textedit.port.xtext.services.UmlPortGrammarAccess;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NoValue;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NullValue;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule;
+import org.eclipse.xtext.serializer.acceptor.ISemanticSequenceAcceptor;
+import org.eclipse.xtext.serializer.acceptor.SequenceFeeder;
+import org.eclipse.xtext.serializer.diagnostic.ISemanticSequencerDiagnosticProvider;
+import org.eclipse.xtext.serializer.diagnostic.ISerializationDiagnostic.Acceptor;
+import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer;
+import org.eclipse.xtext.serializer.sequencer.GenericSequencer;
+import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider;
+import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer;
+import org.eclipse.xtext.serializer.sequencer.ITransientValueService;
+import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient;
+
+@SuppressWarnings("all")
+public class UmlPortSemanticSequencer extends AbstractDelegatingSemanticSequencer {
+
+ @Inject
+ private UmlPortGrammarAccess grammarAccess;
+
+ @Override
+ public void createSequence(EObject context, EObject semanticObject) {
+ if(semanticObject.eClass().getEPackage() == UmlPortPackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) {
+ case UmlPortPackage.BOOLEAN_VALUE:
+ sequence_BooleanValue(context, (BooleanValue) semanticObject);
+ return;
+ case UmlPortPackage.BOUND_SPECIFICATION:
+ sequence_BoundSpecification(context, (BoundSpecification) semanticObject);
+ return;
+ case UmlPortPackage.DEFAULT_VALUE_RULE:
+ sequence_DefaultValueRule(context, (DefaultValueRule) semanticObject);
+ return;
+ case UmlPortPackage.INT_VALUE:
+ sequence_IntValue(context, (IntValue) semanticObject);
+ return;
+ case UmlPortPackage.MODIFIER_SPECIFICATION:
+ sequence_ModifierSpecification(context, (ModifierSpecification) semanticObject);
+ return;
+ case UmlPortPackage.MODIFIERS_RULE:
+ sequence_ModifiersRule(context, (ModifiersRule) semanticObject);
+ return;
+ case UmlPortPackage.MULTIPLICITY_RULE:
+ sequence_MultiplicityRule(context, (MultiplicityRule) semanticObject);
+ return;
+ case UmlPortPackage.NO_VALUE:
+ sequence_NoValue(context, (NoValue) semanticObject);
+ return;
+ case UmlPortPackage.NULL_VALUE:
+ sequence_NullValue(context, (NullValue) semanticObject);
+ return;
+ case UmlPortPackage.PORT_RULE:
+ sequence_PortRule(context, (PortRule) semanticObject);
+ return;
+ case UmlPortPackage.QUALIFIED_NAME:
+ sequence_QualifiedName(context, (QualifiedName) semanticObject);
+ return;
+ case UmlPortPackage.REAL_VALUE:
+ sequence_RealValue(context, (RealValue) semanticObject);
+ return;
+ case UmlPortPackage.REDEFINES_RULE:
+ sequence_RedefinesRule(context, (RedefinesRule) semanticObject);
+ return;
+ case UmlPortPackage.STRING_VALUE:
+ sequence_StringValue(context, (StringValue) semanticObject);
+ return;
+ case UmlPortPackage.SUBSETS_RULE:
+ sequence_SubsetsRule(context, (SubsetsRule) semanticObject);
+ return;
+ case UmlPortPackage.TYPE_RULE:
+ sequence_TypeRule(context, (TypeRule) semanticObject);
+ return;
+ case UmlPortPackage.VISIBILITY_RULE:
+ sequence_VisibilityRule(context, (VisibilityRule) semanticObject);
+ return;
+ }
+ if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
+ }
+
+ /**
+ * Constraint:
+ * literalBoolean=BooleanLiterals
+ */
+ protected void sequence_BooleanValue(EObject context, BooleanValue semanticObject) {
+ if(errorAcceptor != null) {
+ if(transientValues.isValueTransient(semanticObject, UmlPortPackage.Literals.BOOLEAN_VALUE__LITERAL_BOOLEAN) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPortPackage.Literals.BOOLEAN_VALUE__LITERAL_BOOLEAN));
+ }
+ INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
+ SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
+ feeder.accept(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0(), semanticObject.getLiteralBoolean());
+ feeder.finish();
+ }
+
+
+ /**
+ * Constraint:
+ * (value=UnlimitedLiteral | value=StringLiteral)
+ */
+ protected void sequence_BoundSpecification(EObject context, BoundSpecification semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * default=Value
+ */
+ protected void sequence_DefaultValueRule(EObject context, DefaultValueRule semanticObject) {
+ if(errorAcceptor != null) {
+ if(transientValues.isValueTransient(semanticObject, UmlPortPackage.Literals.DEFAULT_VALUE_RULE__DEFAULT) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPortPackage.Literals.DEFAULT_VALUE_RULE__DEFAULT));
+ }
+ INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
+ SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
+ feeder.accept(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0(), semanticObject.getDefault());
+ feeder.finish();
+ }
+
+
+ /**
+ * Constraint:
+ * literalInteger=INT
+ */
+ protected void sequence_IntValue(EObject context, IntValue semanticObject) {
+ if(errorAcceptor != null) {
+ if(transientValues.isValueTransient(semanticObject, UmlPortPackage.Literals.INT_VALUE__LITERAL_INTEGER) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPortPackage.Literals.INT_VALUE__LITERAL_INTEGER));
+ }
+ INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
+ SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
+ feeder.accept(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0(), semanticObject.getLiteralInteger());
+ feeder.finish();
+ }
+
+
+ /**
+ * Constraint:
+ * (value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule)
+ */
+ protected void sequence_ModifierSpecification(EObject context, ModifierSpecification semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * ((values+=ModifierSpecification values+=ModifierSpecification*)?)
+ */
+ protected void sequence_ModifiersRule(EObject context, ModifiersRule semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * (bounds+=BoundSpecification? bounds+=BoundSpecification)
+ */
+ protected void sequence_MultiplicityRule(EObject context, MultiplicityRule semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * {NoValue}
+ */
+ protected void sequence_NoValue(EObject context, NoValue semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * {NullValue}
+ */
+ protected void sequence_NullValue(EObject context, NullValue semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * (
+ * visibility=VisibilityRule?
+ * derived?='/'?
+ * name=ID
+ * (conjugated?='~'? (type=TypeRule | typeUndefined?='<Undefined>'))?
+ * multiplicity=MultiplicityRule?
+ * modifiers=ModifiersRule?
+ * default=DefaultValueRule?
+ * )
+ */
+ protected void sequence_PortRule(EObject context, PortRule semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * (path=[Namespace|ID] remaining=QualifiedName?)
+ */
+ protected void sequence_QualifiedName(EObject context, QualifiedName semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * (integer=INT | fraction=INT | (integer=INT fraction=INT))
+ */
+ protected void sequence_RealValue(EObject context, RealValue semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * port=[Port|ID]
+ */
+ protected void sequence_RedefinesRule(EObject context, RedefinesRule semanticObject) {
+ if(errorAcceptor != null) {
+ if(transientValues.isValueTransient(semanticObject, UmlPortPackage.Literals.REDEFINES_RULE__PORT) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPortPackage.Literals.REDEFINES_RULE__PORT));
+ }
+ INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
+ SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
+ feeder.accept(grammarAccess.getRedefinesRuleAccess().getPortPortIDTerminalRuleCall_1_0_1(), semanticObject.getPort());
+ feeder.finish();
+ }
+
+
+ /**
+ * Constraint:
+ * literalString=STRING
+ */
+ protected void sequence_StringValue(EObject context, StringValue semanticObject) {
+ if(errorAcceptor != null) {
+ if(transientValues.isValueTransient(semanticObject, UmlPortPackage.Literals.STRING_VALUE__LITERAL_STRING) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPortPackage.Literals.STRING_VALUE__LITERAL_STRING));
+ }
+ INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
+ SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
+ feeder.accept(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0(), semanticObject.getLiteralString());
+ feeder.finish();
+ }
+
+
+ /**
+ * Constraint:
+ * port=[Port|ID]
+ */
+ protected void sequence_SubsetsRule(EObject context, SubsetsRule semanticObject) {
+ if(errorAcceptor != null) {
+ if(transientValues.isValueTransient(semanticObject, UmlPortPackage.Literals.SUBSETS_RULE__PORT) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPortPackage.Literals.SUBSETS_RULE__PORT));
+ }
+ INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
+ SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
+ feeder.accept(grammarAccess.getSubsetsRuleAccess().getPortPortIDTerminalRuleCall_1_0_1(), semanticObject.getPort());
+ feeder.finish();
+ }
+
+
+ /**
+ * Constraint:
+ * (path=QualifiedName? type=[Classifier|ID])
+ */
+ protected void sequence_TypeRule(EObject context, TypeRule semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * visibility=VisibilityKind
+ */
+ protected void sequence_VisibilityRule(EObject context, VisibilityRule semanticObject) {
+ if(errorAcceptor != null) {
+ if(transientValues.isValueTransient(semanticObject, UmlPortPackage.Literals.VISIBILITY_RULE__VISIBILITY) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPortPackage.Literals.VISIBILITY_RULE__VISIBILITY));
+ }
+ INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
+ SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
+ feeder.accept(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0(), semanticObject.getVisibility());
+ feeder.finish();
+ }
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/serializer/UmlPortSyntacticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/serializer/UmlPortSyntacticSequencer.java
index b911eedc721..4e5bb0b071d 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/serializer/UmlPortSyntacticSequencer.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/serializer/UmlPortSyntacticSequencer.java
@@ -1,42 +1,43 @@
-package org.eclipse.papyrus.uml.textedit.port.xtext.serializer;
-
-import com.google.inject.Inject;
-import java.util.List;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.textedit.port.xtext.services.UmlPortGrammarAccess;
-import org.eclipse.xtext.IGrammarAccess;
-import org.eclipse.xtext.RuleCall;
-import org.eclipse.xtext.nodemodel.INode;
-import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
-import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
-import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
-
-@SuppressWarnings("all")
-public class UmlPortSyntacticSequencer extends AbstractSyntacticSequencer {
-
- protected UmlPortGrammarAccess grammarAccess;
-
- @Inject
- protected void init(IGrammarAccess access) {
- grammarAccess = (UmlPortGrammarAccess) access;
- }
-
- @Override
- protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) {
- return "";
- }
-
-
- @Override
- protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
- if (transition.getAmbiguousSyntaxes().isEmpty()) {
- return;
- }
- List<INode> transitionNodes = collectNodes(fromNode, toNode);
- for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
- List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
- acceptNodes(getLastNavigableState(), syntaxNodes);
- }
- }
-
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.serializer;
+
+import com.google.inject.Inject;
+import java.util.List;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.papyrus.uml.textedit.port.xtext.services.UmlPortGrammarAccess;
+import org.eclipse.xtext.IGrammarAccess;
+import org.eclipse.xtext.RuleCall;
+import org.eclipse.xtext.nodemodel.INode;
+import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
+import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
+import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
+
+@SuppressWarnings("all")
+public class UmlPortSyntacticSequencer extends AbstractSyntacticSequencer {
+
+ protected UmlPortGrammarAccess grammarAccess;
+
+ @Inject
+ protected void init(IGrammarAccess access) {
+ grammarAccess = (UmlPortGrammarAccess) access;
+ }
+
+ @Override
+ protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) {
+ return "";
+ }
+
+
+ @Override
+ protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
+ if (transition.getAmbiguousSyntaxes().isEmpty()) return;
+ List<INode> transitionNodes = collectNodes(fromNode, toNode);
+ for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
+ List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
+ acceptNodes(getLastNavigableState(), syntaxNodes);
+ }
+ }
+
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/services/UmlPortGrammarAccess.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/services/UmlPortGrammarAccess.java
index 3f2c069d78e..84e8b57545b 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/services/UmlPortGrammarAccess.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/services/UmlPortGrammarAccess.java
@@ -1,1471 +1,1156 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.services;
-
-import com.google.inject.Singleton;
-import com.google.inject.Inject;
-
-import java.util.List;
-
-import org.eclipse.xtext.*;
-import org.eclipse.xtext.service.GrammarProvider;
-import org.eclipse.xtext.service.AbstractElementFinder.*;
-
-import org.eclipse.papyrus.uml.alf.services.CommonGrammarAccess;
-
-@Singleton
-public class UmlPortGrammarAccess extends AbstractGrammarElementFinder {
-
-
- public class PortRuleElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "PortRule");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Assignment cVisibilityAssignment_0 = (Assignment) cGroup.eContents().get(0);
- private final RuleCall cVisibilityVisibilityRuleParserRuleCall_0_0 = (RuleCall) cVisibilityAssignment_0.eContents().get(0);
- private final Assignment cDerivedAssignment_1 = (Assignment) cGroup.eContents().get(1);
- private final Keyword cDerivedSolidusKeyword_1_0 = (Keyword) cDerivedAssignment_1.eContents().get(0);
- private final Assignment cNameAssignment_2 = (Assignment) cGroup.eContents().get(2);
- private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall) cNameAssignment_2.eContents().get(0);
- private final Group cGroup_3 = (Group) cGroup.eContents().get(3);
- private final Keyword cColonKeyword_3_0 = (Keyword) cGroup_3.eContents().get(0);
- private final Assignment cConjugatedAssignment_3_1 = (Assignment) cGroup_3.eContents().get(1);
- private final Keyword cConjugatedTildeKeyword_3_1_0 = (Keyword) cConjugatedAssignment_3_1.eContents().get(0);
- private final Alternatives cAlternatives_3_2 = (Alternatives) cGroup_3.eContents().get(2);
- private final Assignment cTypeAssignment_3_2_0 = (Assignment) cAlternatives_3_2.eContents().get(0);
- private final RuleCall cTypeTypeRuleParserRuleCall_3_2_0_0 = (RuleCall) cTypeAssignment_3_2_0.eContents().get(0);
- private final Assignment cTypeUndefinedAssignment_3_2_1 = (Assignment) cAlternatives_3_2.eContents().get(1);
- private final Keyword cTypeUndefinedUndefinedKeyword_3_2_1_0 = (Keyword) cTypeUndefinedAssignment_3_2_1.eContents().get(0);
- private final Assignment cMultiplicityAssignment_4 = (Assignment) cGroup.eContents().get(4);
- private final RuleCall cMultiplicityMultiplicityRuleParserRuleCall_4_0 = (RuleCall) cMultiplicityAssignment_4.eContents().get(0);
- private final Assignment cModifiersAssignment_5 = (Assignment) cGroup.eContents().get(5);
- private final RuleCall cModifiersModifiersRuleParserRuleCall_5_0 = (RuleCall) cModifiersAssignment_5.eContents().get(0);
- private final Assignment cDefaultAssignment_6 = (Assignment) cGroup.eContents().get(6);
- private final RuleCall cDefaultDefaultValueRuleParserRuleCall_6_0 = (RuleCall) cDefaultAssignment_6.eContents().get(0);
-
- // PortRule:
- // visibility=VisibilityRule? derived?="/"? name=ID (":" conjugated?="~"? (type=TypeRule |
- // typeUndefined?="<Undefined>"))? multiplicity=MultiplicityRule? modifiers=ModifiersRule? default=DefaultValueRule?;
- @Override
- public ParserRule getRule() {
- return rule;
- }
-
- // visibility=VisibilityRule? derived?="/"? name=ID (":" conjugated?="~"? (type=TypeRule | typeUndefined?="<Undefined>"))?
- // multiplicity=MultiplicityRule? modifiers=ModifiersRule? default=DefaultValueRule?
- public Group getGroup() {
- return cGroup;
- }
-
- // visibility=VisibilityRule?
- public Assignment getVisibilityAssignment_0() {
- return cVisibilityAssignment_0;
- }
-
- // VisibilityRule
- public RuleCall getVisibilityVisibilityRuleParserRuleCall_0_0() {
- return cVisibilityVisibilityRuleParserRuleCall_0_0;
- }
-
- // derived?="/"?
- public Assignment getDerivedAssignment_1() {
- return cDerivedAssignment_1;
- }
-
- // "/"
- public Keyword getDerivedSolidusKeyword_1_0() {
- return cDerivedSolidusKeyword_1_0;
- }
-
- // name=ID
- public Assignment getNameAssignment_2() {
- return cNameAssignment_2;
- }
-
- // ID
- public RuleCall getNameIDTerminalRuleCall_2_0() {
- return cNameIDTerminalRuleCall_2_0;
- }
-
- // (":" conjugated?="~"? (type=TypeRule | typeUndefined?="<Undefined>"))?
- public Group getGroup_3() {
- return cGroup_3;
- }
-
- // ":"
- public Keyword getColonKeyword_3_0() {
- return cColonKeyword_3_0;
- }
-
- // conjugated?="~"?
- public Assignment getConjugatedAssignment_3_1() {
- return cConjugatedAssignment_3_1;
- }
-
- // "~"
- public Keyword getConjugatedTildeKeyword_3_1_0() {
- return cConjugatedTildeKeyword_3_1_0;
- }
-
- // type=TypeRule | typeUndefined?="<Undefined>"
- public Alternatives getAlternatives_3_2() {
- return cAlternatives_3_2;
- }
-
- // type=TypeRule
- public Assignment getTypeAssignment_3_2_0() {
- return cTypeAssignment_3_2_0;
- }
-
- // TypeRule
- public RuleCall getTypeTypeRuleParserRuleCall_3_2_0_0() {
- return cTypeTypeRuleParserRuleCall_3_2_0_0;
- }
-
- // typeUndefined?="<Undefined>"
- public Assignment getTypeUndefinedAssignment_3_2_1() {
- return cTypeUndefinedAssignment_3_2_1;
- }
-
- // "<Undefined>"
- public Keyword getTypeUndefinedUndefinedKeyword_3_2_1_0() {
- return cTypeUndefinedUndefinedKeyword_3_2_1_0;
- }
-
- // multiplicity=MultiplicityRule?
- public Assignment getMultiplicityAssignment_4() {
- return cMultiplicityAssignment_4;
- }
-
- // MultiplicityRule
- public RuleCall getMultiplicityMultiplicityRuleParserRuleCall_4_0() {
- return cMultiplicityMultiplicityRuleParserRuleCall_4_0;
- }
-
- // modifiers=ModifiersRule?
- public Assignment getModifiersAssignment_5() {
- return cModifiersAssignment_5;
- }
-
- // ModifiersRule
- public RuleCall getModifiersModifiersRuleParserRuleCall_5_0() {
- return cModifiersModifiersRuleParserRuleCall_5_0;
- }
-
- // default=DefaultValueRule?
- public Assignment getDefaultAssignment_6() {
- return cDefaultAssignment_6;
- }
-
- // DefaultValueRule
- public RuleCall getDefaultDefaultValueRuleParserRuleCall_6_0() {
- return cDefaultDefaultValueRuleParserRuleCall_6_0;
- }
- }
-
- public class VisibilityRuleElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "VisibilityRule");
- private final Assignment cVisibilityAssignment = (Assignment) rule.eContents().get(1);
- private final RuleCall cVisibilityVisibilityKindEnumRuleCall_0 = (RuleCall) cVisibilityAssignment.eContents().get(0);
-
- // VisibilityRule:
- // visibility=VisibilityKind;
- @Override
- public ParserRule getRule() {
- return rule;
- }
-
- // visibility=VisibilityKind
- public Assignment getVisibilityAssignment() {
- return cVisibilityAssignment;
- }
-
- // VisibilityKind
- public RuleCall getVisibilityVisibilityKindEnumRuleCall_0() {
- return cVisibilityVisibilityKindEnumRuleCall_0;
- }
- }
-
- public class TypeRuleElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "TypeRule");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Assignment cPathAssignment_0 = (Assignment) cGroup.eContents().get(0);
- private final RuleCall cPathQualifiedNameParserRuleCall_0_0 = (RuleCall) cPathAssignment_0.eContents().get(0);
- private final Assignment cTypeAssignment_1 = (Assignment) cGroup.eContents().get(1);
- private final CrossReference cTypeClassifierCrossReference_1_0 = (CrossReference) cTypeAssignment_1.eContents().get(0);
- private final RuleCall cTypeClassifierIDTerminalRuleCall_1_0_1 = (RuleCall) cTypeClassifierCrossReference_1_0.eContents().get(1);
-
- // TypeRule:
- // path=QualifiedName? type=[uml::Classifier];
- @Override
- public ParserRule getRule() {
- return rule;
- }
-
- // path=QualifiedName? type=[uml::Classifier]
- public Group getGroup() {
- return cGroup;
- }
-
- // path=QualifiedName?
- public Assignment getPathAssignment_0() {
- return cPathAssignment_0;
- }
-
- // QualifiedName
- public RuleCall getPathQualifiedNameParserRuleCall_0_0() {
- return cPathQualifiedNameParserRuleCall_0_0;
- }
-
- // type=[uml::Classifier]
- public Assignment getTypeAssignment_1() {
- return cTypeAssignment_1;
- }
-
- // [uml::Classifier]
- public CrossReference getTypeClassifierCrossReference_1_0() {
- return cTypeClassifierCrossReference_1_0;
- }
-
- // ID
- public RuleCall getTypeClassifierIDTerminalRuleCall_1_0_1() {
- return cTypeClassifierIDTerminalRuleCall_1_0_1;
- }
- }
-
- public class QualifiedNameElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "QualifiedName");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Assignment cPathAssignment_0 = (Assignment) cGroup.eContents().get(0);
- private final CrossReference cPathNamespaceCrossReference_0_0 = (CrossReference) cPathAssignment_0.eContents().get(0);
- private final RuleCall cPathNamespaceIDTerminalRuleCall_0_0_1 = (RuleCall) cPathNamespaceCrossReference_0_0.eContents().get(1);
- private final Keyword cColonColonKeyword_1 = (Keyword) cGroup.eContents().get(1);
- private final Assignment cRemainingAssignment_2 = (Assignment) cGroup.eContents().get(2);
- private final RuleCall cRemainingQualifiedNameParserRuleCall_2_0 = (RuleCall) cRemainingAssignment_2.eContents().get(0);
-
- // QualifiedName:
- // path=[uml::Namespace] "::" remaining=QualifiedName?;
- @Override
- public ParserRule getRule() {
- return rule;
- }
-
- // path=[uml::Namespace] "::" remaining=QualifiedName?
- public Group getGroup() {
- return cGroup;
- }
-
- // path=[uml::Namespace]
- public Assignment getPathAssignment_0() {
- return cPathAssignment_0;
- }
-
- // [uml::Namespace]
- public CrossReference getPathNamespaceCrossReference_0_0() {
- return cPathNamespaceCrossReference_0_0;
- }
-
- // ID
- public RuleCall getPathNamespaceIDTerminalRuleCall_0_0_1() {
- return cPathNamespaceIDTerminalRuleCall_0_0_1;
- }
-
- // "::"
- public Keyword getColonColonKeyword_1() {
- return cColonColonKeyword_1;
- }
-
- // remaining=QualifiedName?
- public Assignment getRemainingAssignment_2() {
- return cRemainingAssignment_2;
- }
-
- // QualifiedName
- public RuleCall getRemainingQualifiedNameParserRuleCall_2_0() {
- return cRemainingQualifiedNameParserRuleCall_2_0;
- }
- }
-
- public class MultiplicityRuleElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "MultiplicityRule");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Keyword cLeftSquareBracketKeyword_0 = (Keyword) cGroup.eContents().get(0);
- private final Assignment cBoundsAssignment_1 = (Assignment) cGroup.eContents().get(1);
- private final RuleCall cBoundsBoundSpecificationParserRuleCall_1_0 = (RuleCall) cBoundsAssignment_1.eContents().get(0);
- private final Group cGroup_2 = (Group) cGroup.eContents().get(2);
- private final Keyword cFullStopFullStopKeyword_2_0 = (Keyword) cGroup_2.eContents().get(0);
- private final Assignment cBoundsAssignment_2_1 = (Assignment) cGroup_2.eContents().get(1);
- private final RuleCall cBoundsBoundSpecificationParserRuleCall_2_1_0 = (RuleCall) cBoundsAssignment_2_1.eContents().get(0);
- private final Keyword cRightSquareBracketKeyword_3 = (Keyword) cGroup.eContents().get(3);
-
- // MultiplicityRule:
- // "[" bounds+=BoundSpecification (".." bounds+=BoundSpecification)? "]";
- @Override
- public ParserRule getRule() {
- return rule;
- }
-
- // "[" bounds+=BoundSpecification (".." bounds+=BoundSpecification)? "]"
- public Group getGroup() {
- return cGroup;
- }
-
- // "["
- public Keyword getLeftSquareBracketKeyword_0() {
- return cLeftSquareBracketKeyword_0;
- }
-
- // bounds+=BoundSpecification
- public Assignment getBoundsAssignment_1() {
- return cBoundsAssignment_1;
- }
-
- // BoundSpecification
- public RuleCall getBoundsBoundSpecificationParserRuleCall_1_0() {
- return cBoundsBoundSpecificationParserRuleCall_1_0;
- }
-
- // (".." bounds+=BoundSpecification)?
- public Group getGroup_2() {
- return cGroup_2;
- }
-
- // ".."
- public Keyword getFullStopFullStopKeyword_2_0() {
- return cFullStopFullStopKeyword_2_0;
- }
-
- // bounds+=BoundSpecification
- public Assignment getBoundsAssignment_2_1() {
- return cBoundsAssignment_2_1;
- }
-
- // BoundSpecification
- public RuleCall getBoundsBoundSpecificationParserRuleCall_2_1_0() {
- return cBoundsBoundSpecificationParserRuleCall_2_1_0;
- }
-
- // "]"
- public Keyword getRightSquareBracketKeyword_3() {
- return cRightSquareBracketKeyword_3;
- }
- }
-
- public class BoundSpecificationElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "BoundSpecification");
- private final Assignment cValueAssignment = (Assignment) rule.eContents().get(1);
- private final RuleCall cValueUnlimitedLiteralParserRuleCall_0 = (RuleCall) cValueAssignment.eContents().get(0);
-
- // BoundSpecification:
- // value=UnlimitedLiteral;
- @Override
- public ParserRule getRule() {
- return rule;
- }
-
- // value=UnlimitedLiteral
- public Assignment getValueAssignment() {
- return cValueAssignment;
- }
-
- // UnlimitedLiteral
- public RuleCall getValueUnlimitedLiteralParserRuleCall_0() {
- return cValueUnlimitedLiteralParserRuleCall_0;
- }
- }
-
- public class UnlimitedLiteralElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "UnlimitedLiteral");
- private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
- private final RuleCall cINTTerminalRuleCall_0 = (RuleCall) cAlternatives.eContents().get(0);
- private final Keyword cAsteriskKeyword_1 = (Keyword) cAlternatives.eContents().get(1);
-
- // UnlimitedLiteral:
- // INT | "*";
- @Override
- public ParserRule getRule() {
- return rule;
- }
-
- // INT | "*"
- public Alternatives getAlternatives() {
- return cAlternatives;
- }
-
- // INT
- public RuleCall getINTTerminalRuleCall_0() {
- return cINTTerminalRuleCall_0;
- }
-
- // "*"
- public Keyword getAsteriskKeyword_1() {
- return cAsteriskKeyword_1;
- }
- }
-
- public class ModifiersRuleElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ModifiersRule");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Action cModifiersRuleAction_0 = (Action) cGroup.eContents().get(0);
- private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword) cGroup.eContents().get(1);
- private final Group cGroup_2 = (Group) cGroup.eContents().get(2);
- private final Assignment cValuesAssignment_2_0 = (Assignment) cGroup_2.eContents().get(0);
- private final RuleCall cValuesModifierSpecificationParserRuleCall_2_0_0 = (RuleCall) cValuesAssignment_2_0.eContents().get(0);
- private final Group cGroup_2_1 = (Group) cGroup_2.eContents().get(1);
- private final Keyword cCommaKeyword_2_1_0 = (Keyword) cGroup_2_1.eContents().get(0);
- private final Assignment cValuesAssignment_2_1_1 = (Assignment) cGroup_2_1.eContents().get(1);
- private final RuleCall cValuesModifierSpecificationParserRuleCall_2_1_1_0 = (RuleCall) cValuesAssignment_2_1_1.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_3 = (Keyword) cGroup.eContents().get(3);
-
- // ModifiersRule:
- // {ModifiersRule} "{" (values+=ModifierSpecification ("," values+=ModifierSpecification)*)? "}";
- @Override
- public ParserRule getRule() {
- return rule;
- }
-
- // {ModifiersRule} "{" (values+=ModifierSpecification ("," values+=ModifierSpecification)*)? "}"
- public Group getGroup() {
- return cGroup;
- }
-
- // {ModifiersRule}
- public Action getModifiersRuleAction_0() {
- return cModifiersRuleAction_0;
- }
-
- // "{"
- public Keyword getLeftCurlyBracketKeyword_1() {
- return cLeftCurlyBracketKeyword_1;
- }
-
- // (values+=ModifierSpecification ("," values+=ModifierSpecification)*)?
- public Group getGroup_2() {
- return cGroup_2;
- }
-
- // values+=ModifierSpecification
- public Assignment getValuesAssignment_2_0() {
- return cValuesAssignment_2_0;
- }
-
- // ModifierSpecification
- public RuleCall getValuesModifierSpecificationParserRuleCall_2_0_0() {
- return cValuesModifierSpecificationParserRuleCall_2_0_0;
- }
-
- // ("," values+=ModifierSpecification)*
- public Group getGroup_2_1() {
- return cGroup_2_1;
- }
-
- // ","
- public Keyword getCommaKeyword_2_1_0() {
- return cCommaKeyword_2_1_0;
- }
-
- // values+=ModifierSpecification
- public Assignment getValuesAssignment_2_1_1() {
- return cValuesAssignment_2_1_1;
- }
-
- // ModifierSpecification
- public RuleCall getValuesModifierSpecificationParserRuleCall_2_1_1_0() {
- return cValuesModifierSpecificationParserRuleCall_2_1_1_0;
- }
-
- // "}"
- public Keyword getRightCurlyBracketKeyword_3() {
- return cRightCurlyBracketKeyword_3;
- }
- }
-
- public class ModifierSpecificationElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ModifierSpecification");
- private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
- private final Assignment cValueAssignment_0 = (Assignment) cAlternatives.eContents().get(0);
- private final RuleCall cValueModifierKindEnumRuleCall_0_0 = (RuleCall) cValueAssignment_0.eContents().get(0);
- private final Assignment cRedefinesAssignment_1 = (Assignment) cAlternatives.eContents().get(1);
- private final RuleCall cRedefinesRedefinesRuleParserRuleCall_1_0 = (RuleCall) cRedefinesAssignment_1.eContents().get(0);
- private final Assignment cSubsetsAssignment_2 = (Assignment) cAlternatives.eContents().get(2);
- private final RuleCall cSubsetsSubsetsRuleParserRuleCall_2_0 = (RuleCall) cSubsetsAssignment_2.eContents().get(0);
-
- // ModifierSpecification:
- // value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule;
- @Override
- public ParserRule getRule() {
- return rule;
- }
-
- // value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule
- public Alternatives getAlternatives() {
- return cAlternatives;
- }
-
- // value=ModifierKind
- public Assignment getValueAssignment_0() {
- return cValueAssignment_0;
- }
-
- // ModifierKind
- public RuleCall getValueModifierKindEnumRuleCall_0_0() {
- return cValueModifierKindEnumRuleCall_0_0;
- }
-
- // redefines=RedefinesRule
- public Assignment getRedefinesAssignment_1() {
- return cRedefinesAssignment_1;
- }
-
- // RedefinesRule
- public RuleCall getRedefinesRedefinesRuleParserRuleCall_1_0() {
- return cRedefinesRedefinesRuleParserRuleCall_1_0;
- }
-
- // subsets=SubsetsRule
- public Assignment getSubsetsAssignment_2() {
- return cSubsetsAssignment_2;
- }
-
- // SubsetsRule
- public RuleCall getSubsetsSubsetsRuleParserRuleCall_2_0() {
- return cSubsetsSubsetsRuleParserRuleCall_2_0;
- }
- }
-
- public class RedefinesRuleElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "RedefinesRule");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Keyword cRedefinesKeyword_0 = (Keyword) cGroup.eContents().get(0);
- private final Assignment cPortAssignment_1 = (Assignment) cGroup.eContents().get(1);
- private final CrossReference cPortPortCrossReference_1_0 = (CrossReference) cPortAssignment_1.eContents().get(0);
- private final RuleCall cPortPortIDTerminalRuleCall_1_0_1 = (RuleCall) cPortPortCrossReference_1_0.eContents().get(1);
-
- // RedefinesRule:
- // "redefines" port=[uml::Port];
- @Override
- public ParserRule getRule() {
- return rule;
- }
-
- // "redefines" port=[uml::Port]
- public Group getGroup() {
- return cGroup;
- }
-
- // "redefines"
- public Keyword getRedefinesKeyword_0() {
- return cRedefinesKeyword_0;
- }
-
- // port=[uml::Port]
- public Assignment getPortAssignment_1() {
- return cPortAssignment_1;
- }
-
- // [uml::Port]
- public CrossReference getPortPortCrossReference_1_0() {
- return cPortPortCrossReference_1_0;
- }
-
- // ID
- public RuleCall getPortPortIDTerminalRuleCall_1_0_1() {
- return cPortPortIDTerminalRuleCall_1_0_1;
- }
- }
-
- public class SubsetsRuleElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "SubsetsRule");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Keyword cSubsetsKeyword_0 = (Keyword) cGroup.eContents().get(0);
- private final Assignment cPortAssignment_1 = (Assignment) cGroup.eContents().get(1);
- private final CrossReference cPortPortCrossReference_1_0 = (CrossReference) cPortAssignment_1.eContents().get(0);
- private final RuleCall cPortPortIDTerminalRuleCall_1_0_1 = (RuleCall) cPortPortCrossReference_1_0.eContents().get(1);
-
- // SubsetsRule:
- // "subsets" port=[uml::Port];
- @Override
- public ParserRule getRule() {
- return rule;
- }
-
- // "subsets" port=[uml::Port]
- public Group getGroup() {
- return cGroup;
- }
-
- // "subsets"
- public Keyword getSubsetsKeyword_0() {
- return cSubsetsKeyword_0;
- }
-
- // port=[uml::Port]
- public Assignment getPortAssignment_1() {
- return cPortAssignment_1;
- }
-
- // [uml::Port]
- public CrossReference getPortPortCrossReference_1_0() {
- return cPortPortCrossReference_1_0;
- }
-
- // ID
- public RuleCall getPortPortIDTerminalRuleCall_1_0_1() {
- return cPortPortIDTerminalRuleCall_1_0_1;
- }
- }
-
- public class DefaultValueRuleElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "DefaultValueRule");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Keyword cEqualsSignKeyword_0 = (Keyword) cGroup.eContents().get(0);
- private final Assignment cDefaultAssignment_1 = (Assignment) cGroup.eContents().get(1);
- private final RuleCall cDefaultValueParserRuleCall_1_0 = (RuleCall) cDefaultAssignment_1.eContents().get(0);
-
- // DefaultValueRule:
- // "=" default=Value;
- @Override
- public ParserRule getRule() {
- return rule;
- }
-
- // "=" default=Value
- public Group getGroup() {
- return cGroup;
- }
-
- // "="
- public Keyword getEqualsSignKeyword_0() {
- return cEqualsSignKeyword_0;
- }
-
- // default=Value
- public Assignment getDefaultAssignment_1() {
- return cDefaultAssignment_1;
- }
-
- // Value
- public RuleCall getDefaultValueParserRuleCall_1_0() {
- return cDefaultValueParserRuleCall_1_0;
- }
- }
-
- public class ValueElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Value");
- private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
- private final RuleCall cIntValueParserRuleCall_0 = (RuleCall) cAlternatives.eContents().get(0);
- private final RuleCall cStringValueParserRuleCall_1 = (RuleCall) cAlternatives.eContents().get(1);
- private final RuleCall cBooleanValueParserRuleCall_2 = (RuleCall) cAlternatives.eContents().get(2);
- private final RuleCall cRealValueParserRuleCall_3 = (RuleCall) cAlternatives.eContents().get(3);
- private final RuleCall cNullValueParserRuleCall_4 = (RuleCall) cAlternatives.eContents().get(4);
- private final RuleCall cNoValueParserRuleCall_5 = (RuleCall) cAlternatives.eContents().get(5);
-
- // Value:
- // IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue;
- @Override
- public ParserRule getRule() {
- return rule;
- }
-
- // IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue
- public Alternatives getAlternatives() {
- return cAlternatives;
- }
-
- // IntValue
- public RuleCall getIntValueParserRuleCall_0() {
- return cIntValueParserRuleCall_0;
- }
-
- // StringValue
- public RuleCall getStringValueParserRuleCall_1() {
- return cStringValueParserRuleCall_1;
- }
-
- // BooleanValue
- public RuleCall getBooleanValueParserRuleCall_2() {
- return cBooleanValueParserRuleCall_2;
- }
-
- // RealValue
- public RuleCall getRealValueParserRuleCall_3() {
- return cRealValueParserRuleCall_3;
- }
-
- // NullValue
- public RuleCall getNullValueParserRuleCall_4() {
- return cNullValueParserRuleCall_4;
- }
-
- // NoValue
- public RuleCall getNoValueParserRuleCall_5() {
- return cNoValueParserRuleCall_5;
- }
- }
-
- public class IntValueElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "IntValue");
- private final Assignment cLiteralIntegerAssignment = (Assignment) rule.eContents().get(1);
- private final RuleCall cLiteralIntegerINTTerminalRuleCall_0 = (RuleCall) cLiteralIntegerAssignment.eContents().get(0);
-
- // IntValue:
- // literalInteger=INT;
- @Override
- public ParserRule getRule() {
- return rule;
- }
-
- // literalInteger=INT
- public Assignment getLiteralIntegerAssignment() {
- return cLiteralIntegerAssignment;
- }
-
- // INT
- public RuleCall getLiteralIntegerINTTerminalRuleCall_0() {
- return cLiteralIntegerINTTerminalRuleCall_0;
- }
- }
-
- public class StringValueElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "StringValue");
- private final Assignment cLiteralStringAssignment = (Assignment) rule.eContents().get(1);
- private final RuleCall cLiteralStringSTRINGTerminalRuleCall_0 = (RuleCall) cLiteralStringAssignment.eContents().get(0);
-
- // StringValue:
- // literalString=STRING;
- @Override
- public ParserRule getRule() {
- return rule;
- }
-
- // literalString=STRING
- public Assignment getLiteralStringAssignment() {
- return cLiteralStringAssignment;
- }
-
- // STRING
- public RuleCall getLiteralStringSTRINGTerminalRuleCall_0() {
- return cLiteralStringSTRINGTerminalRuleCall_0;
- }
- }
-
- public class BooleanValueElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "BooleanValue");
- private final Assignment cLiteralBooleanAssignment = (Assignment) rule.eContents().get(1);
- private final RuleCall cLiteralBooleanBooleanLiteralsEnumRuleCall_0 = (RuleCall) cLiteralBooleanAssignment.eContents().get(0);
-
- // BooleanValue:
- // literalBoolean=BooleanLiterals;
- @Override
- public ParserRule getRule() {
- return rule;
- }
-
- // literalBoolean=BooleanLiterals
- public Assignment getLiteralBooleanAssignment() {
- return cLiteralBooleanAssignment;
- }
-
- // BooleanLiterals
- public RuleCall getLiteralBooleanBooleanLiteralsEnumRuleCall_0() {
- return cLiteralBooleanBooleanLiteralsEnumRuleCall_0;
- }
- }
-
- public class RealValueElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "RealValue");
- private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
- private final Group cGroup_0 = (Group) cAlternatives.eContents().get(0);
- private final Assignment cIntegerAssignment_0_0 = (Assignment) cGroup_0.eContents().get(0);
- private final RuleCall cIntegerINTTerminalRuleCall_0_0_0 = (RuleCall) cIntegerAssignment_0_0.eContents().get(0);
- private final Keyword cFullStopKeyword_0_1 = (Keyword) cGroup_0.eContents().get(1);
- private final Group cGroup_1 = (Group) cAlternatives.eContents().get(1);
- private final Keyword cFullStopKeyword_1_0 = (Keyword) cGroup_1.eContents().get(0);
- private final Assignment cFractionAssignment_1_1 = (Assignment) cGroup_1.eContents().get(1);
- private final RuleCall cFractionINTTerminalRuleCall_1_1_0 = (RuleCall) cFractionAssignment_1_1.eContents().get(0);
- private final Group cGroup_2 = (Group) cAlternatives.eContents().get(2);
- private final Assignment cIntegerAssignment_2_0 = (Assignment) cGroup_2.eContents().get(0);
- private final RuleCall cIntegerINTTerminalRuleCall_2_0_0 = (RuleCall) cIntegerAssignment_2_0.eContents().get(0);
- private final Keyword cFullStopKeyword_2_1 = (Keyword) cGroup_2.eContents().get(1);
- private final Assignment cFractionAssignment_2_2 = (Assignment) cGroup_2.eContents().get(2);
- private final RuleCall cFractionINTTerminalRuleCall_2_2_0 = (RuleCall) cFractionAssignment_2_2.eContents().get(0);
-
- // //TODO: Support all Java-compliant doubles
- // RealValue:
- // integer=INT "." | "." fraction=INT | integer=INT "." fraction=INT;
- @Override
- public ParserRule getRule() {
- return rule;
- }
-
- // integer=INT "." | "." fraction=INT | integer=INT "." fraction=INT
- public Alternatives getAlternatives() {
- return cAlternatives;
- }
-
- // integer=INT "."
- public Group getGroup_0() {
- return cGroup_0;
- }
-
- // integer=INT
- public Assignment getIntegerAssignment_0_0() {
- return cIntegerAssignment_0_0;
- }
-
- // INT
- public RuleCall getIntegerINTTerminalRuleCall_0_0_0() {
- return cIntegerINTTerminalRuleCall_0_0_0;
- }
-
- // "."
- public Keyword getFullStopKeyword_0_1() {
- return cFullStopKeyword_0_1;
- }
-
- // "." fraction=INT
- public Group getGroup_1() {
- return cGroup_1;
- }
-
- // "."
- public Keyword getFullStopKeyword_1_0() {
- return cFullStopKeyword_1_0;
- }
-
- // fraction=INT
- public Assignment getFractionAssignment_1_1() {
- return cFractionAssignment_1_1;
- }
-
- // INT
- public RuleCall getFractionINTTerminalRuleCall_1_1_0() {
- return cFractionINTTerminalRuleCall_1_1_0;
- }
-
- // integer=INT "." fraction=INT
- public Group getGroup_2() {
- return cGroup_2;
- }
-
- // integer=INT
- public Assignment getIntegerAssignment_2_0() {
- return cIntegerAssignment_2_0;
- }
-
- // INT
- public RuleCall getIntegerINTTerminalRuleCall_2_0_0() {
- return cIntegerINTTerminalRuleCall_2_0_0;
- }
-
- // "."
- public Keyword getFullStopKeyword_2_1() {
- return cFullStopKeyword_2_1;
- }
-
- // fraction=INT
- public Assignment getFractionAssignment_2_2() {
- return cFractionAssignment_2_2;
- }
-
- // INT
- public RuleCall getFractionINTTerminalRuleCall_2_2_0() {
- return cFractionINTTerminalRuleCall_2_2_0;
- }
- }
-
- public class NullValueElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "NullValue");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Action cNullValueAction_0 = (Action) cGroup.eContents().get(0);
- private final Keyword cNullKeyword_1 = (Keyword) cGroup.eContents().get(1);
-
- // NullValue:
- // {NullValue} "null";
- @Override
- public ParserRule getRule() {
- return rule;
- }
-
- // {NullValue} "null"
- public Group getGroup() {
- return cGroup;
- }
-
- // {NullValue}
- public Action getNullValueAction_0() {
- return cNullValueAction_0;
- }
-
- // "null"
- public Keyword getNullKeyword_1() {
- return cNullKeyword_1;
- }
- }
-
- public class NoValueElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "NoValue");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Action cNoValueAction_0 = (Action) cGroup.eContents().get(0);
- private final Keyword cNoneKeyword_1 = (Keyword) cGroup.eContents().get(1);
-
- // NoValue:
- // {NoValue} "none";
- @Override
- public ParserRule getRule() {
- return rule;
- }
-
- // {NoValue} "none"
- public Group getGroup() {
- return cGroup;
- }
-
- // {NoValue}
- public Action getNoValueAction_0() {
- return cNoValueAction_0;
- }
-
- // "none"
- public Keyword getNoneKeyword_1() {
- return cNoneKeyword_1;
- }
- }
-
-
- public class VisibilityKindElements extends AbstractEnumRuleElementFinder {
- private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "VisibilityKind");
- private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
- private final EnumLiteralDeclaration cPublicEnumLiteralDeclaration_0 = (EnumLiteralDeclaration) cAlternatives.eContents().get(0);
- private final Keyword cPublicPlusSignKeyword_0_0 = (Keyword) cPublicEnumLiteralDeclaration_0.eContents().get(0);
- private final EnumLiteralDeclaration cPrivateEnumLiteralDeclaration_1 = (EnumLiteralDeclaration) cAlternatives.eContents().get(1);
- private final Keyword cPrivateHyphenMinusKeyword_1_0 = (Keyword) cPrivateEnumLiteralDeclaration_1.eContents().get(0);
- private final EnumLiteralDeclaration cProtectedEnumLiteralDeclaration_2 = (EnumLiteralDeclaration) cAlternatives.eContents().get(2);
- private final Keyword cProtectedNumberSignKeyword_2_0 = (Keyword) cProtectedEnumLiteralDeclaration_2.eContents().get(0);
- private final EnumLiteralDeclaration cPackageEnumLiteralDeclaration_3 = (EnumLiteralDeclaration) cAlternatives.eContents().get(3);
- private final Keyword cPackageTildeKeyword_3_0 = (Keyword) cPackageEnumLiteralDeclaration_3.eContents().get(0);
-
- // enum VisibilityKind:
- // public="+" | private="-" | protected="#" | package="~";
- @Override
- public EnumRule getRule() {
- return rule;
- }
-
- // public="+" | private="-" | protected="#" | package="~"
- public Alternatives getAlternatives() {
- return cAlternatives;
- }
-
- // public="+"
- public EnumLiteralDeclaration getPublicEnumLiteralDeclaration_0() {
- return cPublicEnumLiteralDeclaration_0;
- }
-
- // "+"
- public Keyword getPublicPlusSignKeyword_0_0() {
- return cPublicPlusSignKeyword_0_0;
- }
-
- // private="-"
- public EnumLiteralDeclaration getPrivateEnumLiteralDeclaration_1() {
- return cPrivateEnumLiteralDeclaration_1;
- }
-
- // "-"
- public Keyword getPrivateHyphenMinusKeyword_1_0() {
- return cPrivateHyphenMinusKeyword_1_0;
- }
-
- // protected="#"
- public EnumLiteralDeclaration getProtectedEnumLiteralDeclaration_2() {
- return cProtectedEnumLiteralDeclaration_2;
- }
-
- // "#"
- public Keyword getProtectedNumberSignKeyword_2_0() {
- return cProtectedNumberSignKeyword_2_0;
- }
-
- // package="~"
- public EnumLiteralDeclaration getPackageEnumLiteralDeclaration_3() {
- return cPackageEnumLiteralDeclaration_3;
- }
-
- // "~"
- public Keyword getPackageTildeKeyword_3_0() {
- return cPackageTildeKeyword_3_0;
- }
- }
-
- public class ModifierKindElements extends AbstractEnumRuleElementFinder {
- private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "ModifierKind");
- private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
- private final EnumLiteralDeclaration cReadOnlyEnumLiteralDeclaration_0 = (EnumLiteralDeclaration) cAlternatives.eContents().get(0);
- private final Keyword cReadOnlyReadOnlyKeyword_0_0 = (Keyword) cReadOnlyEnumLiteralDeclaration_0.eContents().get(0);
- private final EnumLiteralDeclaration cUnionEnumLiteralDeclaration_1 = (EnumLiteralDeclaration) cAlternatives.eContents().get(1);
- private final Keyword cUnionUnionKeyword_1_0 = (Keyword) cUnionEnumLiteralDeclaration_1.eContents().get(0);
- private final EnumLiteralDeclaration cOrderedEnumLiteralDeclaration_2 = (EnumLiteralDeclaration) cAlternatives.eContents().get(2);
- private final Keyword cOrderedOrderedKeyword_2_0 = (Keyword) cOrderedEnumLiteralDeclaration_2.eContents().get(0);
- private final EnumLiteralDeclaration cUniqueEnumLiteralDeclaration_3 = (EnumLiteralDeclaration) cAlternatives.eContents().get(3);
- private final Keyword cUniqueUniqueKeyword_3_0 = (Keyword) cUniqueEnumLiteralDeclaration_3.eContents().get(0);
-
- // enum ModifierKind:
- // readOnly | union | ordered | unique;
- @Override
- public EnumRule getRule() {
- return rule;
- }
-
- // readOnly | union | ordered | unique
- public Alternatives getAlternatives() {
- return cAlternatives;
- }
-
- // readOnly
- public EnumLiteralDeclaration getReadOnlyEnumLiteralDeclaration_0() {
- return cReadOnlyEnumLiteralDeclaration_0;
- }
-
- // "readOnly"
- public Keyword getReadOnlyReadOnlyKeyword_0_0() {
- return cReadOnlyReadOnlyKeyword_0_0;
- }
-
- // union
- public EnumLiteralDeclaration getUnionEnumLiteralDeclaration_1() {
- return cUnionEnumLiteralDeclaration_1;
- }
-
- // "union"
- public Keyword getUnionUnionKeyword_1_0() {
- return cUnionUnionKeyword_1_0;
- }
-
- // ordered
- public EnumLiteralDeclaration getOrderedEnumLiteralDeclaration_2() {
- return cOrderedEnumLiteralDeclaration_2;
- }
-
- // "ordered"
- public Keyword getOrderedOrderedKeyword_2_0() {
- return cOrderedOrderedKeyword_2_0;
- }
-
- // unique
- public EnumLiteralDeclaration getUniqueEnumLiteralDeclaration_3() {
- return cUniqueEnumLiteralDeclaration_3;
- }
-
- // "unique"
- public Keyword getUniqueUniqueKeyword_3_0() {
- return cUniqueUniqueKeyword_3_0;
- }
- }
-
- public class BooleanLiteralsElements extends AbstractEnumRuleElementFinder {
- private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "BooleanLiterals");
- private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
- private final EnumLiteralDeclaration cTrueEnumLiteralDeclaration_0 = (EnumLiteralDeclaration) cAlternatives.eContents().get(0);
- private final Keyword cTrueTrueKeyword_0_0 = (Keyword) cTrueEnumLiteralDeclaration_0.eContents().get(0);
- private final EnumLiteralDeclaration cFalseEnumLiteralDeclaration_1 = (EnumLiteralDeclaration) cAlternatives.eContents().get(1);
- private final Keyword cFalseFalseKeyword_1_0 = (Keyword) cFalseEnumLiteralDeclaration_1.eContents().get(0);
-
- // enum BooleanLiterals:
- // true | false;
- @Override
- public EnumRule getRule() {
- return rule;
- }
-
- // true | false
- public Alternatives getAlternatives() {
- return cAlternatives;
- }
-
- // true
- public EnumLiteralDeclaration getTrueEnumLiteralDeclaration_0() {
- return cTrueEnumLiteralDeclaration_0;
- }
-
- // "true"
- public Keyword getTrueTrueKeyword_0_0() {
- return cTrueTrueKeyword_0_0;
- }
-
- // false
- public EnumLiteralDeclaration getFalseEnumLiteralDeclaration_1() {
- return cFalseEnumLiteralDeclaration_1;
- }
-
- // "false"
- public Keyword getFalseFalseKeyword_1_0() {
- return cFalseFalseKeyword_1_0;
- }
- }
-
- private final PortRuleElements pPortRule;
- private final VisibilityKindElements unknownRuleVisibilityKind;
- private final VisibilityRuleElements pVisibilityRule;
- private final TypeRuleElements pTypeRule;
- private final QualifiedNameElements pQualifiedName;
- private final MultiplicityRuleElements pMultiplicityRule;
- private final BoundSpecificationElements pBoundSpecification;
- private final UnlimitedLiteralElements pUnlimitedLiteral;
- private final ModifiersRuleElements pModifiersRule;
- private final ModifierSpecificationElements pModifierSpecification;
- private final ModifierKindElements unknownRuleModifierKind;
- private final RedefinesRuleElements pRedefinesRule;
- private final SubsetsRuleElements pSubsetsRule;
- private final DefaultValueRuleElements pDefaultValueRule;
- private final ValueElements pValue;
- private final IntValueElements pIntValue;
- private final StringValueElements pStringValue;
- private final BooleanLiteralsElements unknownRuleBooleanLiterals;
- private final BooleanValueElements pBooleanValue;
- private final RealValueElements pRealValue;
- private final NullValueElements pNullValue;
- private final NoValueElements pNoValue;
-
- private final Grammar grammar;
-
- private final CommonGrammarAccess gaCommon;
-
- @Inject
- public UmlPortGrammarAccess(GrammarProvider grammarProvider,
- CommonGrammarAccess gaCommon) {
- this.grammar = internalFindGrammar(grammarProvider);
- this.gaCommon = gaCommon;
- this.pPortRule = new PortRuleElements();
- this.unknownRuleVisibilityKind = new VisibilityKindElements();
- this.pVisibilityRule = new VisibilityRuleElements();
- this.pTypeRule = new TypeRuleElements();
- this.pQualifiedName = new QualifiedNameElements();
- this.pMultiplicityRule = new MultiplicityRuleElements();
- this.pBoundSpecification = new BoundSpecificationElements();
- this.pUnlimitedLiteral = new UnlimitedLiteralElements();
- this.pModifiersRule = new ModifiersRuleElements();
- this.pModifierSpecification = new ModifierSpecificationElements();
- this.unknownRuleModifierKind = new ModifierKindElements();
- this.pRedefinesRule = new RedefinesRuleElements();
- this.pSubsetsRule = new SubsetsRuleElements();
- this.pDefaultValueRule = new DefaultValueRuleElements();
- this.pValue = new ValueElements();
- this.pIntValue = new IntValueElements();
- this.pStringValue = new StringValueElements();
- this.unknownRuleBooleanLiterals = new BooleanLiteralsElements();
- this.pBooleanValue = new BooleanValueElements();
- this.pRealValue = new RealValueElements();
- this.pNullValue = new NullValueElements();
- this.pNoValue = new NoValueElements();
- }
-
- protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
- Grammar grammar = grammarProvider.getGrammar(this);
- while (grammar != null) {
- if ("org.eclipse.papyrus.uml.textedit.port.xtext.UmlPort".equals(grammar.getName())) {
- return grammar;
- }
- List<Grammar> grammars = grammar.getUsedGrammars();
- if (!grammars.isEmpty()) {
- grammar = grammars.iterator().next();
- } else {
- return null;
- }
- }
- return grammar;
- }
-
-
- @Override
- public Grammar getGrammar() {
- return grammar;
- }
-
-
- public CommonGrammarAccess getCommonGrammarAccess() {
- return gaCommon;
- }
-
-
- // PortRule:
- // visibility=VisibilityRule? derived?="/"? name=ID (":" conjugated?="~"? (type=TypeRule |
- // typeUndefined?="<Undefined>"))? multiplicity=MultiplicityRule? modifiers=ModifiersRule? default=DefaultValueRule?;
- public PortRuleElements getPortRuleAccess() {
- return pPortRule;
- }
-
- public ParserRule getPortRuleRule() {
- return getPortRuleAccess().getRule();
- }
-
- // enum VisibilityKind:
- // public="+" | private="-" | protected="#" | package="~";
- public VisibilityKindElements getVisibilityKindAccess() {
- return unknownRuleVisibilityKind;
- }
-
- public EnumRule getVisibilityKindRule() {
- return getVisibilityKindAccess().getRule();
- }
-
- // VisibilityRule:
- // visibility=VisibilityKind;
- public VisibilityRuleElements getVisibilityRuleAccess() {
- return pVisibilityRule;
- }
-
- public ParserRule getVisibilityRuleRule() {
- return getVisibilityRuleAccess().getRule();
- }
-
- // TypeRule:
- // path=QualifiedName? type=[uml::Classifier];
- public TypeRuleElements getTypeRuleAccess() {
- return pTypeRule;
- }
-
- public ParserRule getTypeRuleRule() {
- return getTypeRuleAccess().getRule();
- }
-
- // QualifiedName:
- // path=[uml::Namespace] "::" remaining=QualifiedName?;
- public QualifiedNameElements getQualifiedNameAccess() {
- return pQualifiedName;
- }
-
- public ParserRule getQualifiedNameRule() {
- return getQualifiedNameAccess().getRule();
- }
-
- // MultiplicityRule:
- // "[" bounds+=BoundSpecification (".." bounds+=BoundSpecification)? "]";
- public MultiplicityRuleElements getMultiplicityRuleAccess() {
- return pMultiplicityRule;
- }
-
- public ParserRule getMultiplicityRuleRule() {
- return getMultiplicityRuleAccess().getRule();
- }
-
- // BoundSpecification:
- // value=UnlimitedLiteral;
- public BoundSpecificationElements getBoundSpecificationAccess() {
- return pBoundSpecification;
- }
-
- public ParserRule getBoundSpecificationRule() {
- return getBoundSpecificationAccess().getRule();
- }
-
- // UnlimitedLiteral:
- // INT | "*";
- public UnlimitedLiteralElements getUnlimitedLiteralAccess() {
- return pUnlimitedLiteral;
- }
-
- public ParserRule getUnlimitedLiteralRule() {
- return getUnlimitedLiteralAccess().getRule();
- }
-
- // ModifiersRule:
- // {ModifiersRule} "{" (values+=ModifierSpecification ("," values+=ModifierSpecification)*)? "}";
- public ModifiersRuleElements getModifiersRuleAccess() {
- return pModifiersRule;
- }
-
- public ParserRule getModifiersRuleRule() {
- return getModifiersRuleAccess().getRule();
- }
-
- // ModifierSpecification:
- // value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule;
- public ModifierSpecificationElements getModifierSpecificationAccess() {
- return pModifierSpecification;
- }
-
- public ParserRule getModifierSpecificationRule() {
- return getModifierSpecificationAccess().getRule();
- }
-
- // enum ModifierKind:
- // readOnly | union | ordered | unique;
- public ModifierKindElements getModifierKindAccess() {
- return unknownRuleModifierKind;
- }
-
- public EnumRule getModifierKindRule() {
- return getModifierKindAccess().getRule();
- }
-
- // RedefinesRule:
- // "redefines" port=[uml::Port];
- public RedefinesRuleElements getRedefinesRuleAccess() {
- return pRedefinesRule;
- }
-
- public ParserRule getRedefinesRuleRule() {
- return getRedefinesRuleAccess().getRule();
- }
-
- // SubsetsRule:
- // "subsets" port=[uml::Port];
- public SubsetsRuleElements getSubsetsRuleAccess() {
- return pSubsetsRule;
- }
-
- public ParserRule getSubsetsRuleRule() {
- return getSubsetsRuleAccess().getRule();
- }
-
- // DefaultValueRule:
- // "=" default=Value;
- public DefaultValueRuleElements getDefaultValueRuleAccess() {
- return pDefaultValueRule;
- }
-
- public ParserRule getDefaultValueRuleRule() {
- return getDefaultValueRuleAccess().getRule();
- }
-
- // Value:
- // IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue;
- public ValueElements getValueAccess() {
- return pValue;
- }
-
- public ParserRule getValueRule() {
- return getValueAccess().getRule();
- }
-
- // IntValue:
- // literalInteger=INT;
- public IntValueElements getIntValueAccess() {
- return pIntValue;
- }
-
- public ParserRule getIntValueRule() {
- return getIntValueAccess().getRule();
- }
-
- // StringValue:
- // literalString=STRING;
- public StringValueElements getStringValueAccess() {
- return pStringValue;
- }
-
- public ParserRule getStringValueRule() {
- return getStringValueAccess().getRule();
- }
-
- // enum BooleanLiterals:
- // true | false;
- public BooleanLiteralsElements getBooleanLiteralsAccess() {
- return unknownRuleBooleanLiterals;
- }
-
- public EnumRule getBooleanLiteralsRule() {
- return getBooleanLiteralsAccess().getRule();
- }
-
- // BooleanValue:
- // literalBoolean=BooleanLiterals;
- public BooleanValueElements getBooleanValueAccess() {
- return pBooleanValue;
- }
-
- public ParserRule getBooleanValueRule() {
- return getBooleanValueAccess().getRule();
- }
-
- // //TODO: Support all Java-compliant doubles
- // RealValue:
- // integer=INT "." | "." fraction=INT | integer=INT "." fraction=INT;
- public RealValueElements getRealValueAccess() {
- return pRealValue;
- }
-
- public ParserRule getRealValueRule() {
- return getRealValueAccess().getRule();
- }
-
- // NullValue:
- // {NullValue} "null";
- public NullValueElements getNullValueAccess() {
- return pNullValue;
- }
-
- public ParserRule getNullValueRule() {
- return getNullValueAccess().getRule();
- }
-
- // NoValue:
- // {NoValue} "none";
- public NoValueElements getNoValueAccess() {
- return pNoValue;
- }
-
- public ParserRule getNoValueRule() {
- return getNoValueAccess().getRule();
- }
-
- // terminal ID:
- // ("a".."z" | "A".."Z" | "_") ("a".."z" | "A".."Z" | "_" | "0".."9")* | "\'"->"\'";
- public TerminalRule getIDRule() {
- return gaCommon.getIDRule();
- }
-
- // terminal STRING:
- // "\"" ("\\" ("b" | "t" | "n" | "f" | "r" | "\"" | "\'" | "\\") | !("\\" | "\""))* "\"";
- public TerminalRule getSTRINGRule() {
- return gaCommon.getSTRINGRule();
- }
-
- // terminal ML_COMMENT:
- // "/ *" !"@"->"* /";
- public TerminalRule getML_COMMENTRule() {
- return gaCommon.getML_COMMENTRule();
- }
-
- // terminal SL_COMMENT:
- // "//" !("\n" | "\r" | "@")* ("\r"? "\n")?;
- public TerminalRule getSL_COMMENTRule() {
- return gaCommon.getSL_COMMENTRule();
- }
-
- // terminal INT returns ecore::EInt:
- // "0".."9"+;
- public TerminalRule getINTRule() {
- return gaCommon.getINTRule();
- }
-
- // //terminal DOUBLE_COLON : '::' ;
- // //terminal IDENTIFIER : ID ;
- // //terminal IDENTIFIER : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')* | ('\'' -> '\'') ;
- // //terminal DOCUMENTATION_COMMENT : '/ *' -> '* /' ;
- // //terminal ML_COMMENT : '/°' -> '°/';
- // //terminal SL_COMMENT : '°°' !('\n'|'\r')* ('\r'? '\n')?;
- // //terminal WS : (' '|'\t'|'\r'|'\n')+; terminal INTEGER_VALUE:
- // ("0" | "1".."9" ("_"? "0".."9")*) //DECIMAL
- // // BINARY
- // // HEX
- // // OCT
- // | ("0b" | "0B") "0".."1" ("_"? "0".."1")* | ("0x" | "0X") ("0".."9" | "a".."f" | "A".."F") ("_"? ("0".."9" | "a".."f" |
- // "A".."F"))* | "0" "_"? "0".."7" ("_"? "0".."7")*;
- public TerminalRule getINTEGER_VALUERule() {
- return gaCommon.getINTEGER_VALUERule();
- }
-
- // terminal WS:
- // (" " | "\t" | "\r" | "\n")+;
- public TerminalRule getWSRule() {
- return gaCommon.getWSRule();
- }
-
- // terminal ANY_OTHER:
- // .;
- public TerminalRule getANY_OTHERRule() {
- return gaCommon.getANY_OTHERRule();
- }
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.services;
+
+import com.google.inject.Singleton;
+import com.google.inject.Inject;
+
+import java.util.List;
+
+import org.eclipse.xtext.*;
+import org.eclipse.xtext.service.GrammarProvider;
+import org.eclipse.xtext.service.AbstractElementFinder.*;
+
+import org.eclipse.papyrus.uml.alf.services.CommonGrammarAccess;
+
+@Singleton
+public class UmlPortGrammarAccess extends AbstractGrammarElementFinder {
+
+
+ public class PortRuleElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "PortRule");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cVisibilityAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cVisibilityVisibilityRuleParserRuleCall_0_0 = (RuleCall)cVisibilityAssignment_0.eContents().get(0);
+ private final Assignment cDerivedAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final Keyword cDerivedSolidusKeyword_1_0 = (Keyword)cDerivedAssignment_1.eContents().get(0);
+ private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
+ private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
+ private final Keyword cColonKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
+ private final Assignment cConjugatedAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
+ private final Keyword cConjugatedTildeKeyword_3_1_0 = (Keyword)cConjugatedAssignment_3_1.eContents().get(0);
+ private final Alternatives cAlternatives_3_2 = (Alternatives)cGroup_3.eContents().get(2);
+ private final Assignment cTypeAssignment_3_2_0 = (Assignment)cAlternatives_3_2.eContents().get(0);
+ private final RuleCall cTypeTypeRuleParserRuleCall_3_2_0_0 = (RuleCall)cTypeAssignment_3_2_0.eContents().get(0);
+ private final Assignment cTypeUndefinedAssignment_3_2_1 = (Assignment)cAlternatives_3_2.eContents().get(1);
+ private final Keyword cTypeUndefinedUndefinedKeyword_3_2_1_0 = (Keyword)cTypeUndefinedAssignment_3_2_1.eContents().get(0);
+ private final Assignment cMultiplicityAssignment_4 = (Assignment)cGroup.eContents().get(4);
+ private final RuleCall cMultiplicityMultiplicityRuleParserRuleCall_4_0 = (RuleCall)cMultiplicityAssignment_4.eContents().get(0);
+ private final Assignment cModifiersAssignment_5 = (Assignment)cGroup.eContents().get(5);
+ private final RuleCall cModifiersModifiersRuleParserRuleCall_5_0 = (RuleCall)cModifiersAssignment_5.eContents().get(0);
+ private final Assignment cDefaultAssignment_6 = (Assignment)cGroup.eContents().get(6);
+ private final RuleCall cDefaultDefaultValueRuleParserRuleCall_6_0 = (RuleCall)cDefaultAssignment_6.eContents().get(0);
+
+ //PortRule:
+ // visibility=VisibilityRule? derived?="/"? name=ID (":" conjugated?="~"? (type=TypeRule |
+ // typeUndefined?="<Undefined>"))? multiplicity=MultiplicityRule? modifiers=ModifiersRule? default=DefaultValueRule?;
+ @Override public ParserRule getRule() { return rule; }
+
+ //visibility=VisibilityRule? derived?="/"? name=ID (":" conjugated?="~"? (type=TypeRule | typeUndefined?="<Undefined>"))?
+ //multiplicity=MultiplicityRule? modifiers=ModifiersRule? default=DefaultValueRule?
+ public Group getGroup() { return cGroup; }
+
+ //visibility=VisibilityRule?
+ public Assignment getVisibilityAssignment_0() { return cVisibilityAssignment_0; }
+
+ //VisibilityRule
+ public RuleCall getVisibilityVisibilityRuleParserRuleCall_0_0() { return cVisibilityVisibilityRuleParserRuleCall_0_0; }
+
+ //derived?="/"?
+ public Assignment getDerivedAssignment_1() { return cDerivedAssignment_1; }
+
+ //"/"
+ public Keyword getDerivedSolidusKeyword_1_0() { return cDerivedSolidusKeyword_1_0; }
+
+ //name=ID
+ public Assignment getNameAssignment_2() { return cNameAssignment_2; }
+
+ //ID
+ public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; }
+
+ //(":" conjugated?="~"? (type=TypeRule | typeUndefined?="<Undefined>"))?
+ public Group getGroup_3() { return cGroup_3; }
+
+ //":"
+ public Keyword getColonKeyword_3_0() { return cColonKeyword_3_0; }
+
+ //conjugated?="~"?
+ public Assignment getConjugatedAssignment_3_1() { return cConjugatedAssignment_3_1; }
+
+ //"~"
+ public Keyword getConjugatedTildeKeyword_3_1_0() { return cConjugatedTildeKeyword_3_1_0; }
+
+ //type=TypeRule | typeUndefined?="<Undefined>"
+ public Alternatives getAlternatives_3_2() { return cAlternatives_3_2; }
+
+ //type=TypeRule
+ public Assignment getTypeAssignment_3_2_0() { return cTypeAssignment_3_2_0; }
+
+ //TypeRule
+ public RuleCall getTypeTypeRuleParserRuleCall_3_2_0_0() { return cTypeTypeRuleParserRuleCall_3_2_0_0; }
+
+ //typeUndefined?="<Undefined>"
+ public Assignment getTypeUndefinedAssignment_3_2_1() { return cTypeUndefinedAssignment_3_2_1; }
+
+ //"<Undefined>"
+ public Keyword getTypeUndefinedUndefinedKeyword_3_2_1_0() { return cTypeUndefinedUndefinedKeyword_3_2_1_0; }
+
+ //multiplicity=MultiplicityRule?
+ public Assignment getMultiplicityAssignment_4() { return cMultiplicityAssignment_4; }
+
+ //MultiplicityRule
+ public RuleCall getMultiplicityMultiplicityRuleParserRuleCall_4_0() { return cMultiplicityMultiplicityRuleParserRuleCall_4_0; }
+
+ //modifiers=ModifiersRule?
+ public Assignment getModifiersAssignment_5() { return cModifiersAssignment_5; }
+
+ //ModifiersRule
+ public RuleCall getModifiersModifiersRuleParserRuleCall_5_0() { return cModifiersModifiersRuleParserRuleCall_5_0; }
+
+ //default=DefaultValueRule?
+ public Assignment getDefaultAssignment_6() { return cDefaultAssignment_6; }
+
+ //DefaultValueRule
+ public RuleCall getDefaultDefaultValueRuleParserRuleCall_6_0() { return cDefaultDefaultValueRuleParserRuleCall_6_0; }
+ }
+
+ public class VisibilityRuleElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "VisibilityRule");
+ private final Assignment cVisibilityAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cVisibilityVisibilityKindEnumRuleCall_0 = (RuleCall)cVisibilityAssignment.eContents().get(0);
+
+ //VisibilityRule:
+ // visibility=VisibilityKind;
+ @Override public ParserRule getRule() { return rule; }
+
+ //visibility=VisibilityKind
+ public Assignment getVisibilityAssignment() { return cVisibilityAssignment; }
+
+ //VisibilityKind
+ public RuleCall getVisibilityVisibilityKindEnumRuleCall_0() { return cVisibilityVisibilityKindEnumRuleCall_0; }
+ }
+
+ public class TypeRuleElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "TypeRule");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cPathAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cPathQualifiedNameParserRuleCall_0_0 = (RuleCall)cPathAssignment_0.eContents().get(0);
+ private final Assignment cTypeAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final CrossReference cTypeClassifierCrossReference_1_0 = (CrossReference)cTypeAssignment_1.eContents().get(0);
+ private final RuleCall cTypeClassifierIDTerminalRuleCall_1_0_1 = (RuleCall)cTypeClassifierCrossReference_1_0.eContents().get(1);
+
+ //TypeRule:
+ // path=QualifiedName? type=[uml::Classifier];
+ @Override public ParserRule getRule() { return rule; }
+
+ //path=QualifiedName? type=[uml::Classifier]
+ public Group getGroup() { return cGroup; }
+
+ //path=QualifiedName?
+ public Assignment getPathAssignment_0() { return cPathAssignment_0; }
+
+ //QualifiedName
+ public RuleCall getPathQualifiedNameParserRuleCall_0_0() { return cPathQualifiedNameParserRuleCall_0_0; }
+
+ //type=[uml::Classifier]
+ public Assignment getTypeAssignment_1() { return cTypeAssignment_1; }
+
+ //[uml::Classifier]
+ public CrossReference getTypeClassifierCrossReference_1_0() { return cTypeClassifierCrossReference_1_0; }
+
+ //ID
+ public RuleCall getTypeClassifierIDTerminalRuleCall_1_0_1() { return cTypeClassifierIDTerminalRuleCall_1_0_1; }
+ }
+
+ public class QualifiedNameElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "QualifiedName");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cPathAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final CrossReference cPathNamespaceCrossReference_0_0 = (CrossReference)cPathAssignment_0.eContents().get(0);
+ private final RuleCall cPathNamespaceIDTerminalRuleCall_0_0_1 = (RuleCall)cPathNamespaceCrossReference_0_0.eContents().get(1);
+ private final Keyword cColonColonKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cRemainingAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cRemainingQualifiedNameParserRuleCall_2_0 = (RuleCall)cRemainingAssignment_2.eContents().get(0);
+
+ //QualifiedName:
+ // path=[uml::Namespace] "::" remaining=QualifiedName?;
+ @Override public ParserRule getRule() { return rule; }
+
+ //path=[uml::Namespace] "::" remaining=QualifiedName?
+ public Group getGroup() { return cGroup; }
+
+ //path=[uml::Namespace]
+ public Assignment getPathAssignment_0() { return cPathAssignment_0; }
+
+ //[uml::Namespace]
+ public CrossReference getPathNamespaceCrossReference_0_0() { return cPathNamespaceCrossReference_0_0; }
+
+ //ID
+ public RuleCall getPathNamespaceIDTerminalRuleCall_0_0_1() { return cPathNamespaceIDTerminalRuleCall_0_0_1; }
+
+ //"::"
+ public Keyword getColonColonKeyword_1() { return cColonColonKeyword_1; }
+
+ //remaining=QualifiedName?
+ public Assignment getRemainingAssignment_2() { return cRemainingAssignment_2; }
+
+ //QualifiedName
+ public RuleCall getRemainingQualifiedNameParserRuleCall_2_0() { return cRemainingQualifiedNameParserRuleCall_2_0; }
+ }
+
+ public class MultiplicityRuleElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "MultiplicityRule");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cLeftSquareBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Assignment cBoundsAssignment_1_0 = (Assignment)cGroup_1.eContents().get(0);
+ private final RuleCall cBoundsBoundSpecificationParserRuleCall_1_0_0 = (RuleCall)cBoundsAssignment_1_0.eContents().get(0);
+ private final Keyword cFullStopFullStopKeyword_1_1 = (Keyword)cGroup_1.eContents().get(1);
+ private final Assignment cBoundsAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cBoundsBoundSpecificationParserRuleCall_2_0 = (RuleCall)cBoundsAssignment_2.eContents().get(0);
+ private final Keyword cRightSquareBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
+
+ //MultiplicityRule:
+ // "[" (bounds+=BoundSpecification "..")? bounds+=BoundSpecification "]";
+ @Override public ParserRule getRule() { return rule; }
+
+ //"[" (bounds+=BoundSpecification "..")? bounds+=BoundSpecification "]"
+ public Group getGroup() { return cGroup; }
+
+ //"["
+ public Keyword getLeftSquareBracketKeyword_0() { return cLeftSquareBracketKeyword_0; }
+
+ //(bounds+=BoundSpecification "..")?
+ public Group getGroup_1() { return cGroup_1; }
+
+ //bounds+=BoundSpecification
+ public Assignment getBoundsAssignment_1_0() { return cBoundsAssignment_1_0; }
+
+ //BoundSpecification
+ public RuleCall getBoundsBoundSpecificationParserRuleCall_1_0_0() { return cBoundsBoundSpecificationParserRuleCall_1_0_0; }
+
+ //".."
+ public Keyword getFullStopFullStopKeyword_1_1() { return cFullStopFullStopKeyword_1_1; }
+
+ //bounds+=BoundSpecification
+ public Assignment getBoundsAssignment_2() { return cBoundsAssignment_2; }
+
+ //BoundSpecification
+ public RuleCall getBoundsBoundSpecificationParserRuleCall_2_0() { return cBoundsBoundSpecificationParserRuleCall_2_0; }
+
+ //"]"
+ public Keyword getRightSquareBracketKeyword_3() { return cRightSquareBracketKeyword_3; }
+ }
+
+ public class BoundSpecificationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "BoundSpecification");
+ private final Assignment cValueAssignment = (Assignment)rule.eContents().get(1);
+ private final Alternatives cValueAlternatives_0 = (Alternatives)cValueAssignment.eContents().get(0);
+ private final RuleCall cValueUnlimitedLiteralParserRuleCall_0_0 = (RuleCall)cValueAlternatives_0.eContents().get(0);
+ private final RuleCall cValueStringLiteralParserRuleCall_0_1 = (RuleCall)cValueAlternatives_0.eContents().get(1);
+
+ //BoundSpecification:
+ // value=(UnlimitedLiteral | StringLiteral);
+ @Override public ParserRule getRule() { return rule; }
+
+ //value=(UnlimitedLiteral | StringLiteral)
+ public Assignment getValueAssignment() { return cValueAssignment; }
+
+ //UnlimitedLiteral | StringLiteral
+ public Alternatives getValueAlternatives_0() { return cValueAlternatives_0; }
+
+ //UnlimitedLiteral
+ public RuleCall getValueUnlimitedLiteralParserRuleCall_0_0() { return cValueUnlimitedLiteralParserRuleCall_0_0; }
+
+ //StringLiteral
+ public RuleCall getValueStringLiteralParserRuleCall_0_1() { return cValueStringLiteralParserRuleCall_0_1; }
+ }
+
+ public class UnlimitedLiteralElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "UnlimitedLiteral");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cINTTerminalRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final Keyword cAsteriskKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
+
+ //UnlimitedLiteral:
+ // INT | "*";
+ @Override public ParserRule getRule() { return rule; }
+
+ //INT | "*"
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //INT
+ public RuleCall getINTTerminalRuleCall_0() { return cINTTerminalRuleCall_0; }
+
+ //"*"
+ public Keyword getAsteriskKeyword_1() { return cAsteriskKeyword_1; }
+ }
+
+ public class StringLiteralElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "StringLiteral");
+ private final RuleCall cSTRINGTerminalRuleCall = (RuleCall)rule.eContents().get(1);
+
+ //StringLiteral:
+ // STRING;
+ @Override public ParserRule getRule() { return rule; }
+
+ //STRING
+ public RuleCall getSTRINGTerminalRuleCall() { return cSTRINGTerminalRuleCall; }
+ }
+
+ public class ModifiersRuleElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ModifiersRule");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cModifiersRuleAction_0 = (Action)cGroup.eContents().get(0);
+ private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
+ private final Assignment cValuesAssignment_2_0 = (Assignment)cGroup_2.eContents().get(0);
+ private final RuleCall cValuesModifierSpecificationParserRuleCall_2_0_0 = (RuleCall)cValuesAssignment_2_0.eContents().get(0);
+ private final Group cGroup_2_1 = (Group)cGroup_2.eContents().get(1);
+ private final Keyword cCommaKeyword_2_1_0 = (Keyword)cGroup_2_1.eContents().get(0);
+ private final Assignment cValuesAssignment_2_1_1 = (Assignment)cGroup_2_1.eContents().get(1);
+ private final RuleCall cValuesModifierSpecificationParserRuleCall_2_1_1_0 = (RuleCall)cValuesAssignment_2_1_1.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
+
+ //ModifiersRule:
+ // {ModifiersRule} "{" (values+=ModifierSpecification ("," values+=ModifierSpecification)*)? "}";
+ @Override public ParserRule getRule() { return rule; }
+
+ //{ModifiersRule} "{" (values+=ModifierSpecification ("," values+=ModifierSpecification)*)? "}"
+ public Group getGroup() { return cGroup; }
+
+ //{ModifiersRule}
+ public Action getModifiersRuleAction_0() { return cModifiersRuleAction_0; }
+
+ //"{"
+ public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
+
+ //(values+=ModifierSpecification ("," values+=ModifierSpecification)*)?
+ public Group getGroup_2() { return cGroup_2; }
+
+ //values+=ModifierSpecification
+ public Assignment getValuesAssignment_2_0() { return cValuesAssignment_2_0; }
+
+ //ModifierSpecification
+ public RuleCall getValuesModifierSpecificationParserRuleCall_2_0_0() { return cValuesModifierSpecificationParserRuleCall_2_0_0; }
+
+ //("," values+=ModifierSpecification)*
+ public Group getGroup_2_1() { return cGroup_2_1; }
+
+ //","
+ public Keyword getCommaKeyword_2_1_0() { return cCommaKeyword_2_1_0; }
+
+ //values+=ModifierSpecification
+ public Assignment getValuesAssignment_2_1_1() { return cValuesAssignment_2_1_1; }
+
+ //ModifierSpecification
+ public RuleCall getValuesModifierSpecificationParserRuleCall_2_1_1_0() { return cValuesModifierSpecificationParserRuleCall_2_1_1_0; }
+
+ //"}"
+ public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
+ }
+
+ public class ModifierSpecificationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ModifierSpecification");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Assignment cValueAssignment_0 = (Assignment)cAlternatives.eContents().get(0);
+ private final RuleCall cValueModifierKindEnumRuleCall_0_0 = (RuleCall)cValueAssignment_0.eContents().get(0);
+ private final Assignment cRedefinesAssignment_1 = (Assignment)cAlternatives.eContents().get(1);
+ private final RuleCall cRedefinesRedefinesRuleParserRuleCall_1_0 = (RuleCall)cRedefinesAssignment_1.eContents().get(0);
+ private final Assignment cSubsetsAssignment_2 = (Assignment)cAlternatives.eContents().get(2);
+ private final RuleCall cSubsetsSubsetsRuleParserRuleCall_2_0 = (RuleCall)cSubsetsAssignment_2.eContents().get(0);
+
+ //ModifierSpecification:
+ // value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule;
+ @Override public ParserRule getRule() { return rule; }
+
+ //value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //value=ModifierKind
+ public Assignment getValueAssignment_0() { return cValueAssignment_0; }
+
+ //ModifierKind
+ public RuleCall getValueModifierKindEnumRuleCall_0_0() { return cValueModifierKindEnumRuleCall_0_0; }
+
+ //redefines=RedefinesRule
+ public Assignment getRedefinesAssignment_1() { return cRedefinesAssignment_1; }
+
+ //RedefinesRule
+ public RuleCall getRedefinesRedefinesRuleParserRuleCall_1_0() { return cRedefinesRedefinesRuleParserRuleCall_1_0; }
+
+ //subsets=SubsetsRule
+ public Assignment getSubsetsAssignment_2() { return cSubsetsAssignment_2; }
+
+ //SubsetsRule
+ public RuleCall getSubsetsSubsetsRuleParserRuleCall_2_0() { return cSubsetsSubsetsRuleParserRuleCall_2_0; }
+ }
+
+ public class RedefinesRuleElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "RedefinesRule");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cRedefinesKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cPortAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final CrossReference cPortPortCrossReference_1_0 = (CrossReference)cPortAssignment_1.eContents().get(0);
+ private final RuleCall cPortPortIDTerminalRuleCall_1_0_1 = (RuleCall)cPortPortCrossReference_1_0.eContents().get(1);
+
+ //RedefinesRule:
+ // "redefines" port=[uml::Port];
+ @Override public ParserRule getRule() { return rule; }
+
+ //"redefines" port=[uml::Port]
+ public Group getGroup() { return cGroup; }
+
+ //"redefines"
+ public Keyword getRedefinesKeyword_0() { return cRedefinesKeyword_0; }
+
+ //port=[uml::Port]
+ public Assignment getPortAssignment_1() { return cPortAssignment_1; }
+
+ //[uml::Port]
+ public CrossReference getPortPortCrossReference_1_0() { return cPortPortCrossReference_1_0; }
+
+ //ID
+ public RuleCall getPortPortIDTerminalRuleCall_1_0_1() { return cPortPortIDTerminalRuleCall_1_0_1; }
+ }
+
+ public class SubsetsRuleElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "SubsetsRule");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cSubsetsKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cPortAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final CrossReference cPortPortCrossReference_1_0 = (CrossReference)cPortAssignment_1.eContents().get(0);
+ private final RuleCall cPortPortIDTerminalRuleCall_1_0_1 = (RuleCall)cPortPortCrossReference_1_0.eContents().get(1);
+
+ //SubsetsRule:
+ // "subsets" port=[uml::Port];
+ @Override public ParserRule getRule() { return rule; }
+
+ //"subsets" port=[uml::Port]
+ public Group getGroup() { return cGroup; }
+
+ //"subsets"
+ public Keyword getSubsetsKeyword_0() { return cSubsetsKeyword_0; }
+
+ //port=[uml::Port]
+ public Assignment getPortAssignment_1() { return cPortAssignment_1; }
+
+ //[uml::Port]
+ public CrossReference getPortPortCrossReference_1_0() { return cPortPortCrossReference_1_0; }
+
+ //ID
+ public RuleCall getPortPortIDTerminalRuleCall_1_0_1() { return cPortPortIDTerminalRuleCall_1_0_1; }
+ }
+
+ public class DefaultValueRuleElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "DefaultValueRule");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cEqualsSignKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cDefaultAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cDefaultValueParserRuleCall_1_0 = (RuleCall)cDefaultAssignment_1.eContents().get(0);
+
+ //DefaultValueRule:
+ // "=" default=Value;
+ @Override public ParserRule getRule() { return rule; }
+
+ //"=" default=Value
+ public Group getGroup() { return cGroup; }
+
+ //"="
+ public Keyword getEqualsSignKeyword_0() { return cEqualsSignKeyword_0; }
+
+ //default=Value
+ public Assignment getDefaultAssignment_1() { return cDefaultAssignment_1; }
+
+ //Value
+ public RuleCall getDefaultValueParserRuleCall_1_0() { return cDefaultValueParserRuleCall_1_0; }
+ }
+
+ public class ValueElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Value");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cIntValueParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cStringValueParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+ private final RuleCall cBooleanValueParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
+ private final RuleCall cRealValueParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
+ private final RuleCall cNullValueParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
+ private final RuleCall cNoValueParserRuleCall_5 = (RuleCall)cAlternatives.eContents().get(5);
+
+ //Value:
+ // IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue;
+ @Override public ParserRule getRule() { return rule; }
+
+ //IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //IntValue
+ public RuleCall getIntValueParserRuleCall_0() { return cIntValueParserRuleCall_0; }
+
+ //StringValue
+ public RuleCall getStringValueParserRuleCall_1() { return cStringValueParserRuleCall_1; }
+
+ //BooleanValue
+ public RuleCall getBooleanValueParserRuleCall_2() { return cBooleanValueParserRuleCall_2; }
+
+ //RealValue
+ public RuleCall getRealValueParserRuleCall_3() { return cRealValueParserRuleCall_3; }
+
+ //NullValue
+ public RuleCall getNullValueParserRuleCall_4() { return cNullValueParserRuleCall_4; }
+
+ //NoValue
+ public RuleCall getNoValueParserRuleCall_5() { return cNoValueParserRuleCall_5; }
+ }
+
+ public class IntValueElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "IntValue");
+ private final Assignment cLiteralIntegerAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cLiteralIntegerINTTerminalRuleCall_0 = (RuleCall)cLiteralIntegerAssignment.eContents().get(0);
+
+ //IntValue:
+ // literalInteger=INT;
+ @Override public ParserRule getRule() { return rule; }
+
+ //literalInteger=INT
+ public Assignment getLiteralIntegerAssignment() { return cLiteralIntegerAssignment; }
+
+ //INT
+ public RuleCall getLiteralIntegerINTTerminalRuleCall_0() { return cLiteralIntegerINTTerminalRuleCall_0; }
+ }
+
+ public class StringValueElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "StringValue");
+ private final Assignment cLiteralStringAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cLiteralStringSTRINGTerminalRuleCall_0 = (RuleCall)cLiteralStringAssignment.eContents().get(0);
+
+ //StringValue:
+ // literalString=STRING;
+ @Override public ParserRule getRule() { return rule; }
+
+ //literalString=STRING
+ public Assignment getLiteralStringAssignment() { return cLiteralStringAssignment; }
+
+ //STRING
+ public RuleCall getLiteralStringSTRINGTerminalRuleCall_0() { return cLiteralStringSTRINGTerminalRuleCall_0; }
+ }
+
+ public class BooleanValueElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "BooleanValue");
+ private final Assignment cLiteralBooleanAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cLiteralBooleanBooleanLiteralsEnumRuleCall_0 = (RuleCall)cLiteralBooleanAssignment.eContents().get(0);
+
+ //BooleanValue:
+ // literalBoolean=BooleanLiterals;
+ @Override public ParserRule getRule() { return rule; }
+
+ //literalBoolean=BooleanLiterals
+ public Assignment getLiteralBooleanAssignment() { return cLiteralBooleanAssignment; }
+
+ //BooleanLiterals
+ public RuleCall getLiteralBooleanBooleanLiteralsEnumRuleCall_0() { return cLiteralBooleanBooleanLiteralsEnumRuleCall_0; }
+ }
+
+ public class RealValueElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "RealValue");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
+ private final Assignment cIntegerAssignment_0_0 = (Assignment)cGroup_0.eContents().get(0);
+ private final RuleCall cIntegerINTTerminalRuleCall_0_0_0 = (RuleCall)cIntegerAssignment_0_0.eContents().get(0);
+ private final Keyword cFullStopKeyword_0_1 = (Keyword)cGroup_0.eContents().get(1);
+ private final Group cGroup_1 = (Group)cAlternatives.eContents().get(1);
+ private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
+ private final Assignment cFractionAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cFractionINTTerminalRuleCall_1_1_0 = (RuleCall)cFractionAssignment_1_1.eContents().get(0);
+ private final Group cGroup_2 = (Group)cAlternatives.eContents().get(2);
+ private final Assignment cIntegerAssignment_2_0 = (Assignment)cGroup_2.eContents().get(0);
+ private final RuleCall cIntegerINTTerminalRuleCall_2_0_0 = (RuleCall)cIntegerAssignment_2_0.eContents().get(0);
+ private final Keyword cFullStopKeyword_2_1 = (Keyword)cGroup_2.eContents().get(1);
+ private final Assignment cFractionAssignment_2_2 = (Assignment)cGroup_2.eContents().get(2);
+ private final RuleCall cFractionINTTerminalRuleCall_2_2_0 = (RuleCall)cFractionAssignment_2_2.eContents().get(0);
+
+ ////TODO: Support all Java-compliant doubles
+ //RealValue:
+ // integer=INT "." | "." fraction=INT | integer=INT "." fraction=INT;
+ @Override public ParserRule getRule() { return rule; }
+
+ //integer=INT "." | "." fraction=INT | integer=INT "." fraction=INT
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //integer=INT "."
+ public Group getGroup_0() { return cGroup_0; }
+
+ //integer=INT
+ public Assignment getIntegerAssignment_0_0() { return cIntegerAssignment_0_0; }
+
+ //INT
+ public RuleCall getIntegerINTTerminalRuleCall_0_0_0() { return cIntegerINTTerminalRuleCall_0_0_0; }
+
+ //"."
+ public Keyword getFullStopKeyword_0_1() { return cFullStopKeyword_0_1; }
+
+ //"." fraction=INT
+ public Group getGroup_1() { return cGroup_1; }
+
+ //"."
+ public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; }
+
+ //fraction=INT
+ public Assignment getFractionAssignment_1_1() { return cFractionAssignment_1_1; }
+
+ //INT
+ public RuleCall getFractionINTTerminalRuleCall_1_1_0() { return cFractionINTTerminalRuleCall_1_1_0; }
+
+ //integer=INT "." fraction=INT
+ public Group getGroup_2() { return cGroup_2; }
+
+ //integer=INT
+ public Assignment getIntegerAssignment_2_0() { return cIntegerAssignment_2_0; }
+
+ //INT
+ public RuleCall getIntegerINTTerminalRuleCall_2_0_0() { return cIntegerINTTerminalRuleCall_2_0_0; }
+
+ //"."
+ public Keyword getFullStopKeyword_2_1() { return cFullStopKeyword_2_1; }
+
+ //fraction=INT
+ public Assignment getFractionAssignment_2_2() { return cFractionAssignment_2_2; }
+
+ //INT
+ public RuleCall getFractionINTTerminalRuleCall_2_2_0() { return cFractionINTTerminalRuleCall_2_2_0; }
+ }
+
+ public class NullValueElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "NullValue");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cNullValueAction_0 = (Action)cGroup.eContents().get(0);
+ private final Keyword cNullKeyword_1 = (Keyword)cGroup.eContents().get(1);
+
+ //NullValue:
+ // {NullValue} "null";
+ @Override public ParserRule getRule() { return rule; }
+
+ //{NullValue} "null"
+ public Group getGroup() { return cGroup; }
+
+ //{NullValue}
+ public Action getNullValueAction_0() { return cNullValueAction_0; }
+
+ //"null"
+ public Keyword getNullKeyword_1() { return cNullKeyword_1; }
+ }
+
+ public class NoValueElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "NoValue");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cNoValueAction_0 = (Action)cGroup.eContents().get(0);
+ private final Keyword cNoneKeyword_1 = (Keyword)cGroup.eContents().get(1);
+
+ //NoValue:
+ // {NoValue} "none";
+ @Override public ParserRule getRule() { return rule; }
+
+ //{NoValue} "none"
+ public Group getGroup() { return cGroup; }
+
+ //{NoValue}
+ public Action getNoValueAction_0() { return cNoValueAction_0; }
+
+ //"none"
+ public Keyword getNoneKeyword_1() { return cNoneKeyword_1; }
+ }
+
+
+ public class VisibilityKindElements extends AbstractEnumRuleElementFinder {
+ private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "VisibilityKind");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final EnumLiteralDeclaration cPublicEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0);
+ private final Keyword cPublicPlusSignKeyword_0_0 = (Keyword)cPublicEnumLiteralDeclaration_0.eContents().get(0);
+ private final EnumLiteralDeclaration cPrivateEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1);
+ private final Keyword cPrivateHyphenMinusKeyword_1_0 = (Keyword)cPrivateEnumLiteralDeclaration_1.eContents().get(0);
+ private final EnumLiteralDeclaration cProtectedEnumLiteralDeclaration_2 = (EnumLiteralDeclaration)cAlternatives.eContents().get(2);
+ private final Keyword cProtectedNumberSignKeyword_2_0 = (Keyword)cProtectedEnumLiteralDeclaration_2.eContents().get(0);
+ private final EnumLiteralDeclaration cPackageEnumLiteralDeclaration_3 = (EnumLiteralDeclaration)cAlternatives.eContents().get(3);
+ private final Keyword cPackageTildeKeyword_3_0 = (Keyword)cPackageEnumLiteralDeclaration_3.eContents().get(0);
+
+ //enum VisibilityKind:
+ // public="+" | private="-" | protected="#" | package="~";
+ public EnumRule getRule() { return rule; }
+
+ //public="+" | private="-" | protected="#" | package="~"
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //public="+"
+ public EnumLiteralDeclaration getPublicEnumLiteralDeclaration_0() { return cPublicEnumLiteralDeclaration_0; }
+
+ //"+"
+ public Keyword getPublicPlusSignKeyword_0_0() { return cPublicPlusSignKeyword_0_0; }
+
+ //private="-"
+ public EnumLiteralDeclaration getPrivateEnumLiteralDeclaration_1() { return cPrivateEnumLiteralDeclaration_1; }
+
+ //"-"
+ public Keyword getPrivateHyphenMinusKeyword_1_0() { return cPrivateHyphenMinusKeyword_1_0; }
+
+ //protected="#"
+ public EnumLiteralDeclaration getProtectedEnumLiteralDeclaration_2() { return cProtectedEnumLiteralDeclaration_2; }
+
+ //"#"
+ public Keyword getProtectedNumberSignKeyword_2_0() { return cProtectedNumberSignKeyword_2_0; }
+
+ //package="~"
+ public EnumLiteralDeclaration getPackageEnumLiteralDeclaration_3() { return cPackageEnumLiteralDeclaration_3; }
+
+ //"~"
+ public Keyword getPackageTildeKeyword_3_0() { return cPackageTildeKeyword_3_0; }
+ }
+
+ public class ModifierKindElements extends AbstractEnumRuleElementFinder {
+ private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "ModifierKind");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final EnumLiteralDeclaration cReadOnlyEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0);
+ private final Keyword cReadOnlyReadOnlyKeyword_0_0 = (Keyword)cReadOnlyEnumLiteralDeclaration_0.eContents().get(0);
+ private final EnumLiteralDeclaration cUnionEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1);
+ private final Keyword cUnionUnionKeyword_1_0 = (Keyword)cUnionEnumLiteralDeclaration_1.eContents().get(0);
+ private final EnumLiteralDeclaration cOrderedEnumLiteralDeclaration_2 = (EnumLiteralDeclaration)cAlternatives.eContents().get(2);
+ private final Keyword cOrderedOrderedKeyword_2_0 = (Keyword)cOrderedEnumLiteralDeclaration_2.eContents().get(0);
+ private final EnumLiteralDeclaration cUniqueEnumLiteralDeclaration_3 = (EnumLiteralDeclaration)cAlternatives.eContents().get(3);
+ private final Keyword cUniqueUniqueKeyword_3_0 = (Keyword)cUniqueEnumLiteralDeclaration_3.eContents().get(0);
+
+ //enum ModifierKind:
+ // readOnly | union | ordered | unique;
+ public EnumRule getRule() { return rule; }
+
+ //readOnly | union | ordered | unique
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //readOnly
+ public EnumLiteralDeclaration getReadOnlyEnumLiteralDeclaration_0() { return cReadOnlyEnumLiteralDeclaration_0; }
+
+ //"readOnly"
+ public Keyword getReadOnlyReadOnlyKeyword_0_0() { return cReadOnlyReadOnlyKeyword_0_0; }
+
+ //union
+ public EnumLiteralDeclaration getUnionEnumLiteralDeclaration_1() { return cUnionEnumLiteralDeclaration_1; }
+
+ //"union"
+ public Keyword getUnionUnionKeyword_1_0() { return cUnionUnionKeyword_1_0; }
+
+ //ordered
+ public EnumLiteralDeclaration getOrderedEnumLiteralDeclaration_2() { return cOrderedEnumLiteralDeclaration_2; }
+
+ //"ordered"
+ public Keyword getOrderedOrderedKeyword_2_0() { return cOrderedOrderedKeyword_2_0; }
+
+ //unique
+ public EnumLiteralDeclaration getUniqueEnumLiteralDeclaration_3() { return cUniqueEnumLiteralDeclaration_3; }
+
+ //"unique"
+ public Keyword getUniqueUniqueKeyword_3_0() { return cUniqueUniqueKeyword_3_0; }
+ }
+
+ public class BooleanLiteralsElements extends AbstractEnumRuleElementFinder {
+ private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "BooleanLiterals");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final EnumLiteralDeclaration cTrueEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0);
+ private final Keyword cTrueTrueKeyword_0_0 = (Keyword)cTrueEnumLiteralDeclaration_0.eContents().get(0);
+ private final EnumLiteralDeclaration cFalseEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1);
+ private final Keyword cFalseFalseKeyword_1_0 = (Keyword)cFalseEnumLiteralDeclaration_1.eContents().get(0);
+
+ //enum BooleanLiterals:
+ // true | false;
+ public EnumRule getRule() { return rule; }
+
+ //true | false
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //true
+ public EnumLiteralDeclaration getTrueEnumLiteralDeclaration_0() { return cTrueEnumLiteralDeclaration_0; }
+
+ //"true"
+ public Keyword getTrueTrueKeyword_0_0() { return cTrueTrueKeyword_0_0; }
+
+ //false
+ public EnumLiteralDeclaration getFalseEnumLiteralDeclaration_1() { return cFalseEnumLiteralDeclaration_1; }
+
+ //"false"
+ public Keyword getFalseFalseKeyword_1_0() { return cFalseFalseKeyword_1_0; }
+ }
+
+ private final PortRuleElements pPortRule;
+ private final VisibilityKindElements unknownRuleVisibilityKind;
+ private final VisibilityRuleElements pVisibilityRule;
+ private final TypeRuleElements pTypeRule;
+ private final QualifiedNameElements pQualifiedName;
+ private final MultiplicityRuleElements pMultiplicityRule;
+ private final BoundSpecificationElements pBoundSpecification;
+ private final UnlimitedLiteralElements pUnlimitedLiteral;
+ private final StringLiteralElements pStringLiteral;
+ private final ModifiersRuleElements pModifiersRule;
+ private final ModifierSpecificationElements pModifierSpecification;
+ private final ModifierKindElements unknownRuleModifierKind;
+ private final RedefinesRuleElements pRedefinesRule;
+ private final SubsetsRuleElements pSubsetsRule;
+ private final DefaultValueRuleElements pDefaultValueRule;
+ private final ValueElements pValue;
+ private final IntValueElements pIntValue;
+ private final StringValueElements pStringValue;
+ private final BooleanLiteralsElements unknownRuleBooleanLiterals;
+ private final BooleanValueElements pBooleanValue;
+ private final RealValueElements pRealValue;
+ private final NullValueElements pNullValue;
+ private final NoValueElements pNoValue;
+
+ private final Grammar grammar;
+
+ private final CommonGrammarAccess gaCommon;
+
+ @Inject
+ public UmlPortGrammarAccess(GrammarProvider grammarProvider,
+ CommonGrammarAccess gaCommon) {
+ this.grammar = internalFindGrammar(grammarProvider);
+ this.gaCommon = gaCommon;
+ this.pPortRule = new PortRuleElements();
+ this.unknownRuleVisibilityKind = new VisibilityKindElements();
+ this.pVisibilityRule = new VisibilityRuleElements();
+ this.pTypeRule = new TypeRuleElements();
+ this.pQualifiedName = new QualifiedNameElements();
+ this.pMultiplicityRule = new MultiplicityRuleElements();
+ this.pBoundSpecification = new BoundSpecificationElements();
+ this.pUnlimitedLiteral = new UnlimitedLiteralElements();
+ this.pStringLiteral = new StringLiteralElements();
+ this.pModifiersRule = new ModifiersRuleElements();
+ this.pModifierSpecification = new ModifierSpecificationElements();
+ this.unknownRuleModifierKind = new ModifierKindElements();
+ this.pRedefinesRule = new RedefinesRuleElements();
+ this.pSubsetsRule = new SubsetsRuleElements();
+ this.pDefaultValueRule = new DefaultValueRuleElements();
+ this.pValue = new ValueElements();
+ this.pIntValue = new IntValueElements();
+ this.pStringValue = new StringValueElements();
+ this.unknownRuleBooleanLiterals = new BooleanLiteralsElements();
+ this.pBooleanValue = new BooleanValueElements();
+ this.pRealValue = new RealValueElements();
+ this.pNullValue = new NullValueElements();
+ this.pNoValue = new NoValueElements();
+ }
+
+ protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
+ Grammar grammar = grammarProvider.getGrammar(this);
+ while (grammar != null) {
+ if ("org.eclipse.papyrus.uml.textedit.port.xtext.UmlPort".equals(grammar.getName())) {
+ return grammar;
+ }
+ List<Grammar> grammars = grammar.getUsedGrammars();
+ if (!grammars.isEmpty()) {
+ grammar = grammars.iterator().next();
+ } else {
+ return null;
+ }
+ }
+ return grammar;
+ }
+
+ @Override
+ public Grammar getGrammar() {
+ return grammar;
+ }
+
+
+ public CommonGrammarAccess getCommonGrammarAccess() {
+ return gaCommon;
+ }
+
+
+ //PortRule:
+ // visibility=VisibilityRule? derived?="/"? name=ID (":" conjugated?="~"? (type=TypeRule |
+ // typeUndefined?="<Undefined>"))? multiplicity=MultiplicityRule? modifiers=ModifiersRule? default=DefaultValueRule?;
+ public PortRuleElements getPortRuleAccess() {
+ return pPortRule;
+ }
+
+ public ParserRule getPortRuleRule() {
+ return getPortRuleAccess().getRule();
+ }
+
+ //enum VisibilityKind:
+ // public="+" | private="-" | protected="#" | package="~";
+ public VisibilityKindElements getVisibilityKindAccess() {
+ return unknownRuleVisibilityKind;
+ }
+
+ public EnumRule getVisibilityKindRule() {
+ return getVisibilityKindAccess().getRule();
+ }
+
+ //VisibilityRule:
+ // visibility=VisibilityKind;
+ public VisibilityRuleElements getVisibilityRuleAccess() {
+ return pVisibilityRule;
+ }
+
+ public ParserRule getVisibilityRuleRule() {
+ return getVisibilityRuleAccess().getRule();
+ }
+
+ //TypeRule:
+ // path=QualifiedName? type=[uml::Classifier];
+ public TypeRuleElements getTypeRuleAccess() {
+ return pTypeRule;
+ }
+
+ public ParserRule getTypeRuleRule() {
+ return getTypeRuleAccess().getRule();
+ }
+
+ //QualifiedName:
+ // path=[uml::Namespace] "::" remaining=QualifiedName?;
+ public QualifiedNameElements getQualifiedNameAccess() {
+ return pQualifiedName;
+ }
+
+ public ParserRule getQualifiedNameRule() {
+ return getQualifiedNameAccess().getRule();
+ }
+
+ //MultiplicityRule:
+ // "[" (bounds+=BoundSpecification "..")? bounds+=BoundSpecification "]";
+ public MultiplicityRuleElements getMultiplicityRuleAccess() {
+ return pMultiplicityRule;
+ }
+
+ public ParserRule getMultiplicityRuleRule() {
+ return getMultiplicityRuleAccess().getRule();
+ }
+
+ //BoundSpecification:
+ // value=(UnlimitedLiteral | StringLiteral);
+ public BoundSpecificationElements getBoundSpecificationAccess() {
+ return pBoundSpecification;
+ }
+
+ public ParserRule getBoundSpecificationRule() {
+ return getBoundSpecificationAccess().getRule();
+ }
+
+ //UnlimitedLiteral:
+ // INT | "*";
+ public UnlimitedLiteralElements getUnlimitedLiteralAccess() {
+ return pUnlimitedLiteral;
+ }
+
+ public ParserRule getUnlimitedLiteralRule() {
+ return getUnlimitedLiteralAccess().getRule();
+ }
+
+ //StringLiteral:
+ // STRING;
+ public StringLiteralElements getStringLiteralAccess() {
+ return pStringLiteral;
+ }
+
+ public ParserRule getStringLiteralRule() {
+ return getStringLiteralAccess().getRule();
+ }
+
+ //ModifiersRule:
+ // {ModifiersRule} "{" (values+=ModifierSpecification ("," values+=ModifierSpecification)*)? "}";
+ public ModifiersRuleElements getModifiersRuleAccess() {
+ return pModifiersRule;
+ }
+
+ public ParserRule getModifiersRuleRule() {
+ return getModifiersRuleAccess().getRule();
+ }
+
+ //ModifierSpecification:
+ // value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule;
+ public ModifierSpecificationElements getModifierSpecificationAccess() {
+ return pModifierSpecification;
+ }
+
+ public ParserRule getModifierSpecificationRule() {
+ return getModifierSpecificationAccess().getRule();
+ }
+
+ //enum ModifierKind:
+ // readOnly | union | ordered | unique;
+ public ModifierKindElements getModifierKindAccess() {
+ return unknownRuleModifierKind;
+ }
+
+ public EnumRule getModifierKindRule() {
+ return getModifierKindAccess().getRule();
+ }
+
+ //RedefinesRule:
+ // "redefines" port=[uml::Port];
+ public RedefinesRuleElements getRedefinesRuleAccess() {
+ return pRedefinesRule;
+ }
+
+ public ParserRule getRedefinesRuleRule() {
+ return getRedefinesRuleAccess().getRule();
+ }
+
+ //SubsetsRule:
+ // "subsets" port=[uml::Port];
+ public SubsetsRuleElements getSubsetsRuleAccess() {
+ return pSubsetsRule;
+ }
+
+ public ParserRule getSubsetsRuleRule() {
+ return getSubsetsRuleAccess().getRule();
+ }
+
+ //DefaultValueRule:
+ // "=" default=Value;
+ public DefaultValueRuleElements getDefaultValueRuleAccess() {
+ return pDefaultValueRule;
+ }
+
+ public ParserRule getDefaultValueRuleRule() {
+ return getDefaultValueRuleAccess().getRule();
+ }
+
+ //Value:
+ // IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue;
+ public ValueElements getValueAccess() {
+ return pValue;
+ }
+
+ public ParserRule getValueRule() {
+ return getValueAccess().getRule();
+ }
+
+ //IntValue:
+ // literalInteger=INT;
+ public IntValueElements getIntValueAccess() {
+ return pIntValue;
+ }
+
+ public ParserRule getIntValueRule() {
+ return getIntValueAccess().getRule();
+ }
+
+ //StringValue:
+ // literalString=STRING;
+ public StringValueElements getStringValueAccess() {
+ return pStringValue;
+ }
+
+ public ParserRule getStringValueRule() {
+ return getStringValueAccess().getRule();
+ }
+
+ //enum BooleanLiterals:
+ // true | false;
+ public BooleanLiteralsElements getBooleanLiteralsAccess() {
+ return unknownRuleBooleanLiterals;
+ }
+
+ public EnumRule getBooleanLiteralsRule() {
+ return getBooleanLiteralsAccess().getRule();
+ }
+
+ //BooleanValue:
+ // literalBoolean=BooleanLiterals;
+ public BooleanValueElements getBooleanValueAccess() {
+ return pBooleanValue;
+ }
+
+ public ParserRule getBooleanValueRule() {
+ return getBooleanValueAccess().getRule();
+ }
+
+ ////TODO: Support all Java-compliant doubles
+ //RealValue:
+ // integer=INT "." | "." fraction=INT | integer=INT "." fraction=INT;
+ public RealValueElements getRealValueAccess() {
+ return pRealValue;
+ }
+
+ public ParserRule getRealValueRule() {
+ return getRealValueAccess().getRule();
+ }
+
+ //NullValue:
+ // {NullValue} "null";
+ public NullValueElements getNullValueAccess() {
+ return pNullValue;
+ }
+
+ public ParserRule getNullValueRule() {
+ return getNullValueAccess().getRule();
+ }
+
+ //NoValue:
+ // {NoValue} "none";
+ public NoValueElements getNoValueAccess() {
+ return pNoValue;
+ }
+
+ public ParserRule getNoValueRule() {
+ return getNoValueAccess().getRule();
+ }
+
+ //terminal ID:
+ // ("a".."z" | "A".."Z" | "_") ("a".."z" | "A".."Z" | "_" | "0".."9")* | "\'"->"\'";
+ public TerminalRule getIDRule() {
+ return gaCommon.getIDRule();
+ }
+
+ //terminal STRING:
+ // "\"" ("\\" ("b" | "t" | "n" | "f" | "r" | "\"" | "\'" | "\\") | !("\\" | "\""))* "\"";
+ public TerminalRule getSTRINGRule() {
+ return gaCommon.getSTRINGRule();
+ }
+
+ //terminal ML_COMMENT:
+ // "/ *" !"@"->"* /";
+ public TerminalRule getML_COMMENTRule() {
+ return gaCommon.getML_COMMENTRule();
+ }
+
+ //terminal SL_COMMENT:
+ // "//" !("\n" | "\r" | "@")* ("\r"? "\n")?;
+ public TerminalRule getSL_COMMENTRule() {
+ return gaCommon.getSL_COMMENTRule();
+ }
+
+ //terminal INT returns ecore::EInt:
+ // "0".."9"+;
+ public TerminalRule getINTRule() {
+ return gaCommon.getINTRule();
+ }
+
+ ////terminal DOUBLE_COLON : '::' ;
+ ////terminal IDENTIFIER : ID ;
+ ////terminal IDENTIFIER : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')* | ('\'' -> '\'') ;
+ ////terminal DOCUMENTATION_COMMENT : '/ *' -> '* /' ;
+ ////terminal ML_COMMENT : '/°' -> '°/';
+ ////terminal SL_COMMENT : '°°' !('\n'|'\r')* ('\r'? '\n')?;
+ ////terminal WS : (' '|'\t'|'\r'|'\n')+; terminal INTEGER_VALUE:
+ // ("0" | "1".."9" ("_"? "0".."9")*) //DECIMAL
+ // // BINARY
+ // // HEX
+ // // OCT
+ // | ("0b" | "0B") "0".."1" ("_"? "0".."1")* | ("0x" | "0X") ("0".."9" | "a".."f" | "A".."F") ("_"? ("0".."9" | "a".."f" |
+ // "A".."F"))* | "0" "_"? "0".."7" ("_"? "0".."7")*;
+ public TerminalRule getINTEGER_VALUERule() {
+ return gaCommon.getINTEGER_VALUERule();
+ }
+
+ //terminal WS:
+ // (" " | "\t" | "\r" | "\n")+;
+ public TerminalRule getWSRule() {
+ return gaCommon.getWSRule();
+ }
+
+ //terminal ANY_OTHER:
+ // .;
+ public TerminalRule getANY_OTHERRule() {
+ return gaCommon.getANY_OTHERRule();
+ }
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/BooleanLiterals.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/BooleanLiterals.java
index 2ad36db5acc..72b4ded7c87 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/BooleanLiterals.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/BooleanLiterals.java
@@ -1,244 +1,229 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.Enumerator;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the literals of the enumeration '<em><b>Boolean Literals</b></em>',
- * and utility methods for working with them.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getBooleanLiterals()
- * @model
- * @generated
- */
-public enum BooleanLiterals implements Enumerator
-{
- /**
- * The '<em><b>True</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #TRUE_VALUE
- * @generated
- * @ordered
- */
- TRUE(0, "true", "true"),
-
- /**
- * The '<em><b>False</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #FALSE_VALUE
- * @generated
- * @ordered
- */
- FALSE(1, "false", "false");
-
- /**
- * The '<em><b>True</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>True</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #TRUE
- * @model name="true"
- * @generated
- * @ordered
- */
- public static final int TRUE_VALUE = 0;
-
- /**
- * The '<em><b>False</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>False</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #FALSE
- * @model name="false"
- * @generated
- * @ordered
- */
- public static final int FALSE_VALUE = 1;
-
- /**
- * An array of all the '<em><b>Boolean Literals</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private static final BooleanLiterals[] VALUES_ARRAY =
- new BooleanLiterals[]
- {
- TRUE,
- FALSE,
- };
-
- /**
- * A public read-only list of all the '<em><b>Boolean Literals</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static final List<BooleanLiterals> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the '<em><b>Boolean Literals</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static BooleanLiterals get(String literal)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- BooleanLiterals result = VALUES_ARRAY[i];
- if (result.toString().equals(literal))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Boolean Literals</b></em>' literal with the specified name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static BooleanLiterals getByName(String name)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- BooleanLiterals result = VALUES_ARRAY[i];
- if (result.getName().equals(name))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Boolean Literals</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static BooleanLiterals get(int value)
- {
- switch (value)
- {
- case TRUE_VALUE:
- return TRUE;
- case FALSE_VALUE:
- return FALSE;
- }
- return null;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private final int value;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private final String name;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private final String literal;
-
- /**
- * Only this class can construct instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private BooleanLiterals(int value, String name, String literal)
- {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int getValue()
- {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getLiteral()
- {
- return literal;
- }
-
- /**
- * Returns the literal value of the enumerator, which is its string representation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- return literal;
- }
-
-} // BooleanLiterals
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>Boolean Literals</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getBooleanLiterals()
+ * @model
+ * @generated
+ */
+public enum BooleanLiterals implements Enumerator
+{
+ /**
+ * The '<em><b>True</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #TRUE_VALUE
+ * @generated
+ * @ordered
+ */
+ TRUE(0, "true", "true"),
+
+ /**
+ * The '<em><b>False</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #FALSE_VALUE
+ * @generated
+ * @ordered
+ */
+ FALSE(1, "false", "false");
+
+ /**
+ * The '<em><b>True</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>True</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #TRUE
+ * @model name="true"
+ * @generated
+ * @ordered
+ */
+ public static final int TRUE_VALUE = 0;
+
+ /**
+ * The '<em><b>False</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>False</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #FALSE
+ * @model name="false"
+ * @generated
+ * @ordered
+ */
+ public static final int FALSE_VALUE = 1;
+
+ /**
+ * An array of all the '<em><b>Boolean Literals</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final BooleanLiterals[] VALUES_ARRAY =
+ new BooleanLiterals[]
+ {
+ TRUE,
+ FALSE,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>Boolean Literals</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<BooleanLiterals> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Boolean Literals</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param literal the literal.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static BooleanLiterals get(String literal)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ BooleanLiterals result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Boolean Literals</b></em>' literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param name the name.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static BooleanLiterals getByName(String name)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ BooleanLiterals result = VALUES_ARRAY[i];
+ if (result.getName().equals(name))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Boolean Literals</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the integer value.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static BooleanLiterals get(int value)
+ {
+ switch (value)
+ {
+ case TRUE_VALUE: return TRUE;
+ case FALSE_VALUE: return FALSE;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private BooleanLiterals(int value, String name, String literal)
+ {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue()
+ {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteral()
+ {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ return literal;
+ }
+
+} //BooleanLiterals
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/BooleanValue.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/BooleanValue.java
index 146400a0624..4c110f7675d 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/BooleanValue.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/BooleanValue.java
@@ -1,55 +1,53 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Boolean Value</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue#getLiteralBoolean <em>Literal Boolean</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getBooleanValue()
- * @model
- * @generated
- */
-public interface BooleanValue extends Value
-{
- /**
- * Returns the value of the '<em><b>Literal Boolean</b></em>' attribute.
- * The literals are from the enumeration {@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Literal Boolean</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Literal Boolean</em>' attribute.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals
- * @see #setLiteralBoolean(BooleanLiterals)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getBooleanValue_LiteralBoolean()
- * @model
- * @generated
- */
- BooleanLiterals getLiteralBoolean();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue#getLiteralBoolean <em>Literal Boolean</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Literal Boolean</em>' attribute.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals
- * @see #getLiteralBoolean()
- * @generated
- */
- void setLiteralBoolean(BooleanLiterals value);
-
-} // BooleanValue
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Boolean Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue#getLiteralBoolean <em>Literal Boolean</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getBooleanValue()
+ * @model
+ * @generated
+ */
+public interface BooleanValue extends Value
+{
+ /**
+ * Returns the value of the '<em><b>Literal Boolean</b></em>' attribute.
+ * The literals are from the enumeration {@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Literal Boolean</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Literal Boolean</em>' attribute.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals
+ * @see #setLiteralBoolean(BooleanLiterals)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getBooleanValue_LiteralBoolean()
+ * @model
+ * @generated
+ */
+ BooleanLiterals getLiteralBoolean();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue#getLiteralBoolean <em>Literal Boolean</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Literal Boolean</em>' attribute.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals
+ * @see #getLiteralBoolean()
+ * @generated
+ */
+ void setLiteralBoolean(BooleanLiterals value);
+
+} // BooleanValue
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/BoundSpecification.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/BoundSpecification.java
index 6f0246499f5..0dab1d300f8 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/BoundSpecification.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/BoundSpecification.java
@@ -1,53 +1,51 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Bound Specification</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification#getValue <em>Value</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getBoundSpecification()
- * @model
- * @generated
- */
-public interface BoundSpecification extends EObject
-{
- /**
- * Returns the value of the '<em><b>Value</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Value</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Value</em>' attribute.
- * @see #setValue(String)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getBoundSpecification_Value()
- * @model
- * @generated
- */
- String getValue();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification#getValue <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Value</em>' attribute.
- * @see #getValue()
- * @generated
- */
- void setValue(String value);
-
-} // BoundSpecification
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Bound Specification</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification#getValue <em>Value</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getBoundSpecification()
+ * @model
+ * @generated
+ */
+public interface BoundSpecification extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Value</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Value</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Value</em>' attribute.
+ * @see #setValue(String)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getBoundSpecification_Value()
+ * @model
+ * @generated
+ */
+ String getValue();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification#getValue <em>Value</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Value</em>' attribute.
+ * @see #getValue()
+ * @generated
+ */
+ void setValue(String value);
+
+} // BoundSpecification
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/DefaultValueRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/DefaultValueRule.java
index a4831a11e1e..85d0ea2da24 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/DefaultValueRule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/DefaultValueRule.java
@@ -1,53 +1,51 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Default Value Rule</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule#getDefault <em>Default</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getDefaultValueRule()
- * @model
- * @generated
- */
-public interface DefaultValueRule extends EObject
-{
- /**
- * Returns the value of the '<em><b>Default</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Default</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Default</em>' containment reference.
- * @see #setDefault(Value)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getDefaultValueRule_Default()
- * @model containment="true"
- * @generated
- */
- Value getDefault();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule#getDefault <em>Default</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Default</em>' containment reference.
- * @see #getDefault()
- * @generated
- */
- void setDefault(Value value);
-
-} // DefaultValueRule
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Default Value Rule</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule#getDefault <em>Default</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getDefaultValueRule()
+ * @model
+ * @generated
+ */
+public interface DefaultValueRule extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Default</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Default</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Default</em>' containment reference.
+ * @see #setDefault(Value)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getDefaultValueRule_Default()
+ * @model containment="true"
+ * @generated
+ */
+ Value getDefault();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule#getDefault <em>Default</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Default</em>' containment reference.
+ * @see #getDefault()
+ * @generated
+ */
+ void setDefault(Value value);
+
+} // DefaultValueRule
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/IntValue.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/IntValue.java
index 3f4204ab0f9..1dea0412f82 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/IntValue.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/IntValue.java
@@ -1,52 +1,50 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Int Value</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue#getLiteralInteger <em>Literal Integer</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getIntValue()
- * @model
- * @generated
- */
-public interface IntValue extends Value
-{
- /**
- * Returns the value of the '<em><b>Literal Integer</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Literal Integer</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Literal Integer</em>' attribute.
- * @see #setLiteralInteger(int)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getIntValue_LiteralInteger()
- * @model
- * @generated
- */
- int getLiteralInteger();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue#getLiteralInteger <em>Literal Integer</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Literal Integer</em>' attribute.
- * @see #getLiteralInteger()
- * @generated
- */
- void setLiteralInteger(int value);
-
-} // IntValue
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Int Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue#getLiteralInteger <em>Literal Integer</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getIntValue()
+ * @model
+ * @generated
+ */
+public interface IntValue extends Value
+{
+ /**
+ * Returns the value of the '<em><b>Literal Integer</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Literal Integer</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Literal Integer</em>' attribute.
+ * @see #setLiteralInteger(int)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getIntValue_LiteralInteger()
+ * @model
+ * @generated
+ */
+ int getLiteralInteger();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue#getLiteralInteger <em>Literal Integer</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Literal Integer</em>' attribute.
+ * @see #getLiteralInteger()
+ * @generated
+ */
+ void setLiteralInteger(int value);
+
+} // IntValue
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/ModifierKind.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/ModifierKind.java
index 4cddb8b7200..de2cb1e21f1 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/ModifierKind.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/ModifierKind.java
@@ -1,302 +1,283 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.Enumerator;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the literals of the enumeration '<em><b>Modifier Kind</b></em>',
- * and utility methods for working with them.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getModifierKind()
- * @model
- * @generated
- */
-public enum ModifierKind implements Enumerator
-{
- /**
- * The '<em><b>Read Only</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #READ_ONLY_VALUE
- * @generated
- * @ordered
- */
- READ_ONLY(0, "readOnly", "readOnly"),
-
- /**
- * The '<em><b>Union</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #UNION_VALUE
- * @generated
- * @ordered
- */
- UNION(1, "union", "union"),
-
- /**
- * The '<em><b>Ordered</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #ORDERED_VALUE
- * @generated
- * @ordered
- */
- ORDERED(2, "ordered", "ordered"),
-
- /**
- * The '<em><b>Unique</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #UNIQUE_VALUE
- * @generated
- * @ordered
- */
- UNIQUE(3, "unique", "unique");
-
- /**
- * The '<em><b>Read Only</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Read Only</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #READ_ONLY
- * @model name="readOnly"
- * @generated
- * @ordered
- */
- public static final int READ_ONLY_VALUE = 0;
-
- /**
- * The '<em><b>Union</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Union</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #UNION
- * @model name="union"
- * @generated
- * @ordered
- */
- public static final int UNION_VALUE = 1;
-
- /**
- * The '<em><b>Ordered</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Ordered</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #ORDERED
- * @model name="ordered"
- * @generated
- * @ordered
- */
- public static final int ORDERED_VALUE = 2;
-
- /**
- * The '<em><b>Unique</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Unique</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #UNIQUE
- * @model name="unique"
- * @generated
- * @ordered
- */
- public static final int UNIQUE_VALUE = 3;
-
- /**
- * An array of all the '<em><b>Modifier Kind</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private static final ModifierKind[] VALUES_ARRAY =
- new ModifierKind[]
- {
- READ_ONLY,
- UNION,
- ORDERED,
- UNIQUE,
- };
-
- /**
- * A public read-only list of all the '<em><b>Modifier Kind</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static final List<ModifierKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the '<em><b>Modifier Kind</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static ModifierKind get(String literal)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- ModifierKind result = VALUES_ARRAY[i];
- if (result.toString().equals(literal))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Modifier Kind</b></em>' literal with the specified name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static ModifierKind getByName(String name)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- ModifierKind result = VALUES_ARRAY[i];
- if (result.getName().equals(name))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Modifier Kind</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static ModifierKind get(int value)
- {
- switch (value)
- {
- case READ_ONLY_VALUE:
- return READ_ONLY;
- case UNION_VALUE:
- return UNION;
- case ORDERED_VALUE:
- return ORDERED;
- case UNIQUE_VALUE:
- return UNIQUE;
- }
- return null;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private final int value;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private final String name;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private final String literal;
-
- /**
- * Only this class can construct instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private ModifierKind(int value, String name, String literal)
- {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int getValue()
- {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getLiteral()
- {
- return literal;
- }
-
- /**
- * Returns the literal value of the enumerator, which is its string representation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- return literal;
- }
-
-} // ModifierKind
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>Modifier Kind</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getModifierKind()
+ * @model
+ * @generated
+ */
+public enum ModifierKind implements Enumerator
+{
+ /**
+ * The '<em><b>Read Only</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #READ_ONLY_VALUE
+ * @generated
+ * @ordered
+ */
+ READ_ONLY(0, "readOnly", "readOnly"),
+
+ /**
+ * The '<em><b>Union</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #UNION_VALUE
+ * @generated
+ * @ordered
+ */
+ UNION(1, "union", "union"),
+
+ /**
+ * The '<em><b>Ordered</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #ORDERED_VALUE
+ * @generated
+ * @ordered
+ */
+ ORDERED(2, "ordered", "ordered"),
+
+ /**
+ * The '<em><b>Unique</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #UNIQUE_VALUE
+ * @generated
+ * @ordered
+ */
+ UNIQUE(3, "unique", "unique");
+
+ /**
+ * The '<em><b>Read Only</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Read Only</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #READ_ONLY
+ * @model name="readOnly"
+ * @generated
+ * @ordered
+ */
+ public static final int READ_ONLY_VALUE = 0;
+
+ /**
+ * The '<em><b>Union</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Union</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #UNION
+ * @model name="union"
+ * @generated
+ * @ordered
+ */
+ public static final int UNION_VALUE = 1;
+
+ /**
+ * The '<em><b>Ordered</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Ordered</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #ORDERED
+ * @model name="ordered"
+ * @generated
+ * @ordered
+ */
+ public static final int ORDERED_VALUE = 2;
+
+ /**
+ * The '<em><b>Unique</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Unique</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #UNIQUE
+ * @model name="unique"
+ * @generated
+ * @ordered
+ */
+ public static final int UNIQUE_VALUE = 3;
+
+ /**
+ * An array of all the '<em><b>Modifier Kind</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final ModifierKind[] VALUES_ARRAY =
+ new ModifierKind[]
+ {
+ READ_ONLY,
+ UNION,
+ ORDERED,
+ UNIQUE,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>Modifier Kind</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<ModifierKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Modifier Kind</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param literal the literal.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static ModifierKind get(String literal)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ ModifierKind result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Modifier Kind</b></em>' literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param name the name.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static ModifierKind getByName(String name)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ ModifierKind result = VALUES_ARRAY[i];
+ if (result.getName().equals(name))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Modifier Kind</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the integer value.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static ModifierKind get(int value)
+ {
+ switch (value)
+ {
+ case READ_ONLY_VALUE: return READ_ONLY;
+ case UNION_VALUE: return UNION;
+ case ORDERED_VALUE: return ORDERED;
+ case UNIQUE_VALUE: return UNIQUE;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private ModifierKind(int value, String name, String literal)
+ {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue()
+ {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteral()
+ {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ return literal;
+ }
+
+} //ModifierKind
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/ModifierSpecification.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/ModifierSpecification.java
index 56442816c3d..4eb7862390b 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/ModifierSpecification.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/ModifierSpecification.java
@@ -1,114 +1,108 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Modifier Specification</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getValue <em>Value</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getRedefines <em>Redefines</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getSubsets <em>Subsets</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getModifierSpecification()
- * @model
- * @generated
- */
-public interface ModifierSpecification extends EObject
-{
- /**
- * Returns the value of the '<em><b>Value</b></em>' attribute.
- * The literals are from the enumeration {@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Value</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Value</em>' attribute.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind
- * @see #setValue(ModifierKind)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getModifierSpecification_Value()
- * @model
- * @generated
- */
- ModifierKind getValue();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getValue <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Value</em>' attribute.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind
- * @see #getValue()
- * @generated
- */
- void setValue(ModifierKind value);
-
- /**
- * Returns the value of the '<em><b>Redefines</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Redefines</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Redefines</em>' containment reference.
- * @see #setRedefines(RedefinesRule)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getModifierSpecification_Redefines()
- * @model containment="true"
- * @generated
- */
- RedefinesRule getRedefines();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getRedefines <em>Redefines</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Redefines</em>' containment reference.
- * @see #getRedefines()
- * @generated
- */
- void setRedefines(RedefinesRule value);
-
- /**
- * Returns the value of the '<em><b>Subsets</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Subsets</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Subsets</em>' containment reference.
- * @see #setSubsets(SubsetsRule)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getModifierSpecification_Subsets()
- * @model containment="true"
- * @generated
- */
- SubsetsRule getSubsets();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getSubsets <em>Subsets</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Subsets</em>' containment reference.
- * @see #getSubsets()
- * @generated
- */
- void setSubsets(SubsetsRule value);
-
-} // ModifierSpecification
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Modifier Specification</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getValue <em>Value</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getRedefines <em>Redefines</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getSubsets <em>Subsets</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getModifierSpecification()
+ * @model
+ * @generated
+ */
+public interface ModifierSpecification extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Value</b></em>' attribute.
+ * The literals are from the enumeration {@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Value</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Value</em>' attribute.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind
+ * @see #setValue(ModifierKind)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getModifierSpecification_Value()
+ * @model
+ * @generated
+ */
+ ModifierKind getValue();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getValue <em>Value</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Value</em>' attribute.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind
+ * @see #getValue()
+ * @generated
+ */
+ void setValue(ModifierKind value);
+
+ /**
+ * Returns the value of the '<em><b>Redefines</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Redefines</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Redefines</em>' containment reference.
+ * @see #setRedefines(RedefinesRule)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getModifierSpecification_Redefines()
+ * @model containment="true"
+ * @generated
+ */
+ RedefinesRule getRedefines();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getRedefines <em>Redefines</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Redefines</em>' containment reference.
+ * @see #getRedefines()
+ * @generated
+ */
+ void setRedefines(RedefinesRule value);
+
+ /**
+ * Returns the value of the '<em><b>Subsets</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Subsets</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Subsets</em>' containment reference.
+ * @see #setSubsets(SubsetsRule)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getModifierSpecification_Subsets()
+ * @model containment="true"
+ * @generated
+ */
+ SubsetsRule getSubsets();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getSubsets <em>Subsets</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Subsets</em>' containment reference.
+ * @see #getSubsets()
+ * @generated
+ */
+ void setSubsets(SubsetsRule value);
+
+} // ModifierSpecification
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/ModifiersRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/ModifiersRule.java
index 4537ae29d1a..d1b3a358255 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/ModifiersRule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/ModifiersRule.java
@@ -1,43 +1,43 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Modifiers Rule</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule#getValues <em>Values</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getModifiersRule()
- * @model
- * @generated
- */
-public interface ModifiersRule extends EObject
-{
- /**
- * Returns the value of the '<em><b>Values</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Values</em>' containment reference list isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Values</em>' containment reference list.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getModifiersRule_Values()
- * @model containment="true"
- * @generated
- */
- EList<ModifierSpecification> getValues();
-
-} // ModifiersRule
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Modifiers Rule</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule#getValues <em>Values</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getModifiersRule()
+ * @model
+ * @generated
+ */
+public interface ModifiersRule extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Values</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Values</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Values</em>' containment reference list.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getModifiersRule_Values()
+ * @model containment="true"
+ * @generated
+ */
+ EList<ModifierSpecification> getValues();
+
+} // ModifiersRule
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/MultiplicityRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/MultiplicityRule.java
index eaf83200ebf..75334fe89a2 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/MultiplicityRule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/MultiplicityRule.java
@@ -1,43 +1,43 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Multiplicity Rule</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule#getBounds <em>Bounds</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getMultiplicityRule()
- * @model
- * @generated
- */
-public interface MultiplicityRule extends EObject
-{
- /**
- * Returns the value of the '<em><b>Bounds</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Bounds</em>' containment reference list isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Bounds</em>' containment reference list.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getMultiplicityRule_Bounds()
- * @model containment="true"
- * @generated
- */
- EList<BoundSpecification> getBounds();
-
-} // MultiplicityRule
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Multiplicity Rule</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule#getBounds <em>Bounds</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getMultiplicityRule()
+ * @model
+ * @generated
+ */
+public interface MultiplicityRule extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Bounds</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Bounds</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Bounds</em>' containment reference list.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getMultiplicityRule_Bounds()
+ * @model containment="true"
+ * @generated
+ */
+ EList<BoundSpecification> getBounds();
+
+} // MultiplicityRule
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/PortRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/PortRule.java
index 650dc03b8cd..0f0fa7feea2 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/PortRule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/PortRule.java
@@ -1,285 +1,267 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Port Rule</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getVisibility <em>Visibility</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isDerived <em>Derived</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isConjugated <em>Conjugated</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getType <em>Type</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isTypeUndefined <em>Type Undefined</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getMultiplicity <em>Multiplicity</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getModifiers <em>Modifiers</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getDefault <em>Default</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule()
- * @model
- * @generated
- */
-public interface PortRule extends EObject
-{
- /**
- * Returns the value of the '<em><b>Visibility</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Visibility</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Visibility</em>' containment reference.
- * @see #setVisibility(VisibilityRule)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule_Visibility()
- * @model containment="true"
- * @generated
- */
- VisibilityRule getVisibility();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getVisibility <em>Visibility</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Visibility</em>' containment reference.
- * @see #getVisibility()
- * @generated
- */
- void setVisibility(VisibilityRule value);
-
- /**
- * Returns the value of the '<em><b>Derived</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Derived</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Derived</em>' attribute.
- * @see #setDerived(boolean)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule_Derived()
- * @model
- * @generated
- */
- boolean isDerived();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isDerived <em>Derived</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Derived</em>' attribute.
- * @see #isDerived()
- * @generated
- */
- void setDerived(boolean value);
-
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getName <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the '<em><b>Conjugated</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Conjugated</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Conjugated</em>' attribute.
- * @see #setConjugated(boolean)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule_Conjugated()
- * @model
- * @generated
- */
- boolean isConjugated();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isConjugated <em>Conjugated</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Conjugated</em>' attribute.
- * @see #isConjugated()
- * @generated
- */
- void setConjugated(boolean value);
-
- /**
- * Returns the value of the '<em><b>Type</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Type</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Type</em>' containment reference.
- * @see #setType(TypeRule)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule_Type()
- * @model containment="true"
- * @generated
- */
- TypeRule getType();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getType <em>Type</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Type</em>' containment reference.
- * @see #getType()
- * @generated
- */
- void setType(TypeRule value);
-
- /**
- * Returns the value of the '<em><b>Type Undefined</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Type Undefined</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Type Undefined</em>' attribute.
- * @see #setTypeUndefined(boolean)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule_TypeUndefined()
- * @model
- * @generated
- */
- boolean isTypeUndefined();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isTypeUndefined <em>Type Undefined</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Type Undefined</em>' attribute.
- * @see #isTypeUndefined()
- * @generated
- */
- void setTypeUndefined(boolean value);
-
- /**
- * Returns the value of the '<em><b>Multiplicity</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Multiplicity</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Multiplicity</em>' containment reference.
- * @see #setMultiplicity(MultiplicityRule)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule_Multiplicity()
- * @model containment="true"
- * @generated
- */
- MultiplicityRule getMultiplicity();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getMultiplicity <em>Multiplicity</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Multiplicity</em>' containment reference.
- * @see #getMultiplicity()
- * @generated
- */
- void setMultiplicity(MultiplicityRule value);
-
- /**
- * Returns the value of the '<em><b>Modifiers</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Modifiers</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Modifiers</em>' containment reference.
- * @see #setModifiers(ModifiersRule)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule_Modifiers()
- * @model containment="true"
- * @generated
- */
- ModifiersRule getModifiers();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getModifiers <em>Modifiers</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Modifiers</em>' containment reference.
- * @see #getModifiers()
- * @generated
- */
- void setModifiers(ModifiersRule value);
-
- /**
- * Returns the value of the '<em><b>Default</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Default</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Default</em>' containment reference.
- * @see #setDefault(DefaultValueRule)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule_Default()
- * @model containment="true"
- * @generated
- */
- DefaultValueRule getDefault();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getDefault <em>Default</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Default</em>' containment reference.
- * @see #getDefault()
- * @generated
- */
- void setDefault(DefaultValueRule value);
-
-} // PortRule
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Port Rule</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getVisibility <em>Visibility</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isDerived <em>Derived</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isConjugated <em>Conjugated</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getType <em>Type</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isTypeUndefined <em>Type Undefined</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getMultiplicity <em>Multiplicity</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getModifiers <em>Modifiers</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getDefault <em>Default</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule()
+ * @model
+ * @generated
+ */
+public interface PortRule extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Visibility</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Visibility</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Visibility</em>' containment reference.
+ * @see #setVisibility(VisibilityRule)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule_Visibility()
+ * @model containment="true"
+ * @generated
+ */
+ VisibilityRule getVisibility();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getVisibility <em>Visibility</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Visibility</em>' containment reference.
+ * @see #getVisibility()
+ * @generated
+ */
+ void setVisibility(VisibilityRule value);
+
+ /**
+ * Returns the value of the '<em><b>Derived</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Derived</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Derived</em>' attribute.
+ * @see #setDerived(boolean)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule_Derived()
+ * @model
+ * @generated
+ */
+ boolean isDerived();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isDerived <em>Derived</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Derived</em>' attribute.
+ * @see #isDerived()
+ * @generated
+ */
+ void setDerived(boolean value);
+
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getName <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Conjugated</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Conjugated</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Conjugated</em>' attribute.
+ * @see #setConjugated(boolean)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule_Conjugated()
+ * @model
+ * @generated
+ */
+ boolean isConjugated();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isConjugated <em>Conjugated</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Conjugated</em>' attribute.
+ * @see #isConjugated()
+ * @generated
+ */
+ void setConjugated(boolean value);
+
+ /**
+ * Returns the value of the '<em><b>Type</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Type</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Type</em>' containment reference.
+ * @see #setType(TypeRule)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule_Type()
+ * @model containment="true"
+ * @generated
+ */
+ TypeRule getType();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getType <em>Type</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Type</em>' containment reference.
+ * @see #getType()
+ * @generated
+ */
+ void setType(TypeRule value);
+
+ /**
+ * Returns the value of the '<em><b>Type Undefined</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Type Undefined</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Type Undefined</em>' attribute.
+ * @see #setTypeUndefined(boolean)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule_TypeUndefined()
+ * @model
+ * @generated
+ */
+ boolean isTypeUndefined();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isTypeUndefined <em>Type Undefined</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Type Undefined</em>' attribute.
+ * @see #isTypeUndefined()
+ * @generated
+ */
+ void setTypeUndefined(boolean value);
+
+ /**
+ * Returns the value of the '<em><b>Multiplicity</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Multiplicity</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Multiplicity</em>' containment reference.
+ * @see #setMultiplicity(MultiplicityRule)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule_Multiplicity()
+ * @model containment="true"
+ * @generated
+ */
+ MultiplicityRule getMultiplicity();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getMultiplicity <em>Multiplicity</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Multiplicity</em>' containment reference.
+ * @see #getMultiplicity()
+ * @generated
+ */
+ void setMultiplicity(MultiplicityRule value);
+
+ /**
+ * Returns the value of the '<em><b>Modifiers</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Modifiers</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Modifiers</em>' containment reference.
+ * @see #setModifiers(ModifiersRule)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule_Modifiers()
+ * @model containment="true"
+ * @generated
+ */
+ ModifiersRule getModifiers();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getModifiers <em>Modifiers</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Modifiers</em>' containment reference.
+ * @see #getModifiers()
+ * @generated
+ */
+ void setModifiers(ModifiersRule value);
+
+ /**
+ * Returns the value of the '<em><b>Default</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Default</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Default</em>' containment reference.
+ * @see #setDefault(DefaultValueRule)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getPortRule_Default()
+ * @model containment="true"
+ * @generated
+ */
+ DefaultValueRule getDefault();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getDefault <em>Default</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Default</em>' containment reference.
+ * @see #getDefault()
+ * @generated
+ */
+ void setDefault(DefaultValueRule value);
+
+} // PortRule
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/QualifiedName.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/QualifiedName.java
index db937d5dc42..f84497d20eb 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/QualifiedName.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/QualifiedName.java
@@ -1,84 +1,80 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.uml2.uml.Namespace;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Qualified Name</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName#getPath <em>Path</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName#getRemaining <em>Remaining</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getQualifiedName()
- * @model
- * @generated
- */
-public interface QualifiedName extends EObject
-{
- /**
- * Returns the value of the '<em><b>Path</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Path</em>' reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Path</em>' reference.
- * @see #setPath(Namespace)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getQualifiedName_Path()
- * @model
- * @generated
- */
- Namespace getPath();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName#getPath <em>Path</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Path</em>' reference.
- * @see #getPath()
- * @generated
- */
- void setPath(Namespace value);
-
- /**
- * Returns the value of the '<em><b>Remaining</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Remaining</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Remaining</em>' containment reference.
- * @see #setRemaining(QualifiedName)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getQualifiedName_Remaining()
- * @model containment="true"
- * @generated
- */
- QualifiedName getRemaining();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName#getRemaining <em>Remaining</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Remaining</em>' containment reference.
- * @see #getRemaining()
- * @generated
- */
- void setRemaining(QualifiedName value);
-
-} // QualifiedName
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.uml2.uml.Namespace;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Qualified Name</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName#getPath <em>Path</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName#getRemaining <em>Remaining</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getQualifiedName()
+ * @model
+ * @generated
+ */
+public interface QualifiedName extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Path</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Path</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Path</em>' reference.
+ * @see #setPath(Namespace)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getQualifiedName_Path()
+ * @model
+ * @generated
+ */
+ Namespace getPath();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName#getPath <em>Path</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Path</em>' reference.
+ * @see #getPath()
+ * @generated
+ */
+ void setPath(Namespace value);
+
+ /**
+ * Returns the value of the '<em><b>Remaining</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Remaining</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Remaining</em>' containment reference.
+ * @see #setRemaining(QualifiedName)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getQualifiedName_Remaining()
+ * @model containment="true"
+ * @generated
+ */
+ QualifiedName getRemaining();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName#getRemaining <em>Remaining</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Remaining</em>' containment reference.
+ * @see #getRemaining()
+ * @generated
+ */
+ void setRemaining(QualifiedName value);
+
+} // QualifiedName
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/RealValue.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/RealValue.java
index 8e1a32a3ff5..371d53970e9 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/RealValue.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/RealValue.java
@@ -1,81 +1,77 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Real Value</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue#getInteger <em>Integer</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue#getFraction <em>Fraction</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getRealValue()
- * @model
- * @generated
- */
-public interface RealValue extends Value
-{
- /**
- * Returns the value of the '<em><b>Integer</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Integer</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Integer</em>' attribute.
- * @see #setInteger(int)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getRealValue_Integer()
- * @model
- * @generated
- */
- int getInteger();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue#getInteger <em>Integer</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Integer</em>' attribute.
- * @see #getInteger()
- * @generated
- */
- void setInteger(int value);
-
- /**
- * Returns the value of the '<em><b>Fraction</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Fraction</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Fraction</em>' attribute.
- * @see #setFraction(int)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getRealValue_Fraction()
- * @model
- * @generated
- */
- int getFraction();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue#getFraction <em>Fraction</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Fraction</em>' attribute.
- * @see #getFraction()
- * @generated
- */
- void setFraction(int value);
-
-} // RealValue
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Real Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue#getInteger <em>Integer</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue#getFraction <em>Fraction</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getRealValue()
+ * @model
+ * @generated
+ */
+public interface RealValue extends Value
+{
+ /**
+ * Returns the value of the '<em><b>Integer</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Integer</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Integer</em>' attribute.
+ * @see #setInteger(int)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getRealValue_Integer()
+ * @model
+ * @generated
+ */
+ int getInteger();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue#getInteger <em>Integer</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Integer</em>' attribute.
+ * @see #getInteger()
+ * @generated
+ */
+ void setInteger(int value);
+
+ /**
+ * Returns the value of the '<em><b>Fraction</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Fraction</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Fraction</em>' attribute.
+ * @see #setFraction(int)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getRealValue_Fraction()
+ * @model
+ * @generated
+ */
+ int getFraction();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue#getFraction <em>Fraction</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Fraction</em>' attribute.
+ * @see #getFraction()
+ * @generated
+ */
+ void setFraction(int value);
+
+} // RealValue
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/RedefinesRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/RedefinesRule.java
index 45b7aa6d312..20126253376 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/RedefinesRule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/RedefinesRule.java
@@ -1,55 +1,53 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.uml2.uml.Port;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Redefines Rule</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule#getPort <em>Port</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getRedefinesRule()
- * @model
- * @generated
- */
-public interface RedefinesRule extends EObject
-{
- /**
- * Returns the value of the '<em><b>Port</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Port</em>' reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Port</em>' reference.
- * @see #setPort(Port)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getRedefinesRule_Port()
- * @model
- * @generated
- */
- Port getPort();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule#getPort <em>Port</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Port</em>' reference.
- * @see #getPort()
- * @generated
- */
- void setPort(Port value);
-
-} // RedefinesRule
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.uml2.uml.Port;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Redefines Rule</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule#getPort <em>Port</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getRedefinesRule()
+ * @model
+ * @generated
+ */
+public interface RedefinesRule extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Port</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Port</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Port</em>' reference.
+ * @see #setPort(Port)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getRedefinesRule_Port()
+ * @model
+ * @generated
+ */
+ Port getPort();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule#getPort <em>Port</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Port</em>' reference.
+ * @see #getPort()
+ * @generated
+ */
+ void setPort(Port value);
+
+} // RedefinesRule
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/StringValue.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/StringValue.java
index b0199d3bd3d..92214c85553 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/StringValue.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/StringValue.java
@@ -1,52 +1,50 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>String Value</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue#getLiteralString <em>Literal String</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getStringValue()
- * @model
- * @generated
- */
-public interface StringValue extends Value
-{
- /**
- * Returns the value of the '<em><b>Literal String</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Literal String</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Literal String</em>' attribute.
- * @see #setLiteralString(String)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getStringValue_LiteralString()
- * @model
- * @generated
- */
- String getLiteralString();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue#getLiteralString <em>Literal String</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Literal String</em>' attribute.
- * @see #getLiteralString()
- * @generated
- */
- void setLiteralString(String value);
-
-} // StringValue
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>String Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue#getLiteralString <em>Literal String</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getStringValue()
+ * @model
+ * @generated
+ */
+public interface StringValue extends Value
+{
+ /**
+ * Returns the value of the '<em><b>Literal String</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Literal String</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Literal String</em>' attribute.
+ * @see #setLiteralString(String)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getStringValue_LiteralString()
+ * @model
+ * @generated
+ */
+ String getLiteralString();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue#getLiteralString <em>Literal String</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Literal String</em>' attribute.
+ * @see #getLiteralString()
+ * @generated
+ */
+ void setLiteralString(String value);
+
+} // StringValue
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/SubsetsRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/SubsetsRule.java
index d33b26be419..05d0e12fd68 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/SubsetsRule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/SubsetsRule.java
@@ -1,55 +1,53 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.uml2.uml.Port;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Subsets Rule</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule#getPort <em>Port</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getSubsetsRule()
- * @model
- * @generated
- */
-public interface SubsetsRule extends EObject
-{
- /**
- * Returns the value of the '<em><b>Port</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Port</em>' reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Port</em>' reference.
- * @see #setPort(Port)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getSubsetsRule_Port()
- * @model
- * @generated
- */
- Port getPort();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule#getPort <em>Port</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Port</em>' reference.
- * @see #getPort()
- * @generated
- */
- void setPort(Port value);
-
-} // SubsetsRule
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.uml2.uml.Port;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Subsets Rule</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule#getPort <em>Port</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getSubsetsRule()
+ * @model
+ * @generated
+ */
+public interface SubsetsRule extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Port</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Port</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Port</em>' reference.
+ * @see #setPort(Port)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getSubsetsRule_Port()
+ * @model
+ * @generated
+ */
+ Port getPort();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule#getPort <em>Port</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Port</em>' reference.
+ * @see #getPort()
+ * @generated
+ */
+ void setPort(Port value);
+
+} // SubsetsRule
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/TypeRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/TypeRule.java
index 6351336cfb5..5e56f506ef9 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/TypeRule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/TypeRule.java
@@ -1,84 +1,80 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.uml2.uml.Classifier;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Type Rule</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule#getPath <em>Path</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule#getType <em>Type</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getTypeRule()
- * @model
- * @generated
- */
-public interface TypeRule extends EObject
-{
- /**
- * Returns the value of the '<em><b>Path</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Path</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Path</em>' containment reference.
- * @see #setPath(QualifiedName)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getTypeRule_Path()
- * @model containment="true"
- * @generated
- */
- QualifiedName getPath();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule#getPath <em>Path</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Path</em>' containment reference.
- * @see #getPath()
- * @generated
- */
- void setPath(QualifiedName value);
-
- /**
- * Returns the value of the '<em><b>Type</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Type</em>' reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Type</em>' reference.
- * @see #setType(Classifier)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getTypeRule_Type()
- * @model
- * @generated
- */
- Classifier getType();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule#getType <em>Type</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Type</em>' reference.
- * @see #getType()
- * @generated
- */
- void setType(Classifier value);
-
-} // TypeRule
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.uml2.uml.Classifier;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Type Rule</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule#getPath <em>Path</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule#getType <em>Type</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getTypeRule()
+ * @model
+ * @generated
+ */
+public interface TypeRule extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Path</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Path</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Path</em>' containment reference.
+ * @see #setPath(QualifiedName)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getTypeRule_Path()
+ * @model containment="true"
+ * @generated
+ */
+ QualifiedName getPath();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule#getPath <em>Path</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Path</em>' containment reference.
+ * @see #getPath()
+ * @generated
+ */
+ void setPath(QualifiedName value);
+
+ /**
+ * Returns the value of the '<em><b>Type</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Type</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Type</em>' reference.
+ * @see #setType(Classifier)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getTypeRule_Type()
+ * @model
+ * @generated
+ */
+ Classifier getType();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule#getType <em>Type</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Type</em>' reference.
+ * @see #getType()
+ * @generated
+ */
+ void setType(Classifier value);
+
+} // TypeRule
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/UmlPortFactory.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/UmlPortFactory.java
index fec239d7c66..65ce007178c 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/UmlPortFactory.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/UmlPortFactory.java
@@ -1,217 +1,196 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-import org.eclipse.emf.ecore.EFactory;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Factory</b> for the model.
- * It provides a create method for each non-abstract class of the model.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage
- * @generated
- */
-public interface UmlPortFactory extends EFactory
-{
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- UmlPortFactory eINSTANCE = org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Port Rule</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Port Rule</em>'.
- * @generated
- */
- PortRule createPortRule();
-
- /**
- * Returns a new object of class '<em>Visibility Rule</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Visibility Rule</em>'.
- * @generated
- */
- VisibilityRule createVisibilityRule();
-
- /**
- * Returns a new object of class '<em>Type Rule</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Type Rule</em>'.
- * @generated
- */
- TypeRule createTypeRule();
-
- /**
- * Returns a new object of class '<em>Qualified Name</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Qualified Name</em>'.
- * @generated
- */
- QualifiedName createQualifiedName();
-
- /**
- * Returns a new object of class '<em>Multiplicity Rule</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Multiplicity Rule</em>'.
- * @generated
- */
- MultiplicityRule createMultiplicityRule();
-
- /**
- * Returns a new object of class '<em>Bound Specification</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Bound Specification</em>'.
- * @generated
- */
- BoundSpecification createBoundSpecification();
-
- /**
- * Returns a new object of class '<em>Modifiers Rule</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Modifiers Rule</em>'.
- * @generated
- */
- ModifiersRule createModifiersRule();
-
- /**
- * Returns a new object of class '<em>Modifier Specification</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Modifier Specification</em>'.
- * @generated
- */
- ModifierSpecification createModifierSpecification();
-
- /**
- * Returns a new object of class '<em>Redefines Rule</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Redefines Rule</em>'.
- * @generated
- */
- RedefinesRule createRedefinesRule();
-
- /**
- * Returns a new object of class '<em>Subsets Rule</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Subsets Rule</em>'.
- * @generated
- */
- SubsetsRule createSubsetsRule();
-
- /**
- * Returns a new object of class '<em>Default Value Rule</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Default Value Rule</em>'.
- * @generated
- */
- DefaultValueRule createDefaultValueRule();
-
- /**
- * Returns a new object of class '<em>Value</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Value</em>'.
- * @generated
- */
- Value createValue();
-
- /**
- * Returns a new object of class '<em>Int Value</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Int Value</em>'.
- * @generated
- */
- IntValue createIntValue();
-
- /**
- * Returns a new object of class '<em>String Value</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>String Value</em>'.
- * @generated
- */
- StringValue createStringValue();
-
- /**
- * Returns a new object of class '<em>Boolean Value</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Boolean Value</em>'.
- * @generated
- */
- BooleanValue createBooleanValue();
-
- /**
- * Returns a new object of class '<em>Real Value</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Real Value</em>'.
- * @generated
- */
- RealValue createRealValue();
-
- /**
- * Returns a new object of class '<em>Null Value</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Null Value</em>'.
- * @generated
- */
- NullValue createNullValue();
-
- /**
- * Returns a new object of class '<em>No Value</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>No Value</em>'.
- * @generated
- */
- NoValue createNoValue();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the package supported by this factory.
- * @generated
- */
- UmlPortPackage getUmlPortPackage();
-
-} // UmlPortFactory
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Factory</b> for the model.
+ * It provides a create method for each non-abstract class of the model.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage
+ * @generated
+ */
+public interface UmlPortFactory extends EFactory
+{
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ UmlPortFactory eINSTANCE = org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortFactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>Port Rule</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Port Rule</em>'.
+ * @generated
+ */
+ PortRule createPortRule();
+
+ /**
+ * Returns a new object of class '<em>Visibility Rule</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Visibility Rule</em>'.
+ * @generated
+ */
+ VisibilityRule createVisibilityRule();
+
+ /**
+ * Returns a new object of class '<em>Type Rule</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Type Rule</em>'.
+ * @generated
+ */
+ TypeRule createTypeRule();
+
+ /**
+ * Returns a new object of class '<em>Qualified Name</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Qualified Name</em>'.
+ * @generated
+ */
+ QualifiedName createQualifiedName();
+
+ /**
+ * Returns a new object of class '<em>Multiplicity Rule</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Multiplicity Rule</em>'.
+ * @generated
+ */
+ MultiplicityRule createMultiplicityRule();
+
+ /**
+ * Returns a new object of class '<em>Bound Specification</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Bound Specification</em>'.
+ * @generated
+ */
+ BoundSpecification createBoundSpecification();
+
+ /**
+ * Returns a new object of class '<em>Modifiers Rule</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Modifiers Rule</em>'.
+ * @generated
+ */
+ ModifiersRule createModifiersRule();
+
+ /**
+ * Returns a new object of class '<em>Modifier Specification</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Modifier Specification</em>'.
+ * @generated
+ */
+ ModifierSpecification createModifierSpecification();
+
+ /**
+ * Returns a new object of class '<em>Redefines Rule</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Redefines Rule</em>'.
+ * @generated
+ */
+ RedefinesRule createRedefinesRule();
+
+ /**
+ * Returns a new object of class '<em>Subsets Rule</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Subsets Rule</em>'.
+ * @generated
+ */
+ SubsetsRule createSubsetsRule();
+
+ /**
+ * Returns a new object of class '<em>Default Value Rule</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Default Value Rule</em>'.
+ * @generated
+ */
+ DefaultValueRule createDefaultValueRule();
+
+ /**
+ * Returns a new object of class '<em>Value</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Value</em>'.
+ * @generated
+ */
+ Value createValue();
+
+ /**
+ * Returns a new object of class '<em>Int Value</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Int Value</em>'.
+ * @generated
+ */
+ IntValue createIntValue();
+
+ /**
+ * Returns a new object of class '<em>String Value</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>String Value</em>'.
+ * @generated
+ */
+ StringValue createStringValue();
+
+ /**
+ * Returns a new object of class '<em>Boolean Value</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Boolean Value</em>'.
+ * @generated
+ */
+ BooleanValue createBooleanValue();
+
+ /**
+ * Returns a new object of class '<em>Real Value</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Real Value</em>'.
+ * @generated
+ */
+ RealValue createRealValue();
+
+ /**
+ * Returns a new object of class '<em>Null Value</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Null Value</em>'.
+ * @generated
+ */
+ NullValue createNullValue();
+
+ /**
+ * Returns a new object of class '<em>No Value</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>No Value</em>'.
+ * @generated
+ */
+ NoValue createNoValue();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ UmlPortPackage getUmlPortPackage();
+
+} //UmlPortFactory
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/UmlPortPackage.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/UmlPortPackage.java
index b74c637958f..b55f37c6261 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/UmlPortPackage.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/UmlPortPackage.java
@@ -1,1834 +1,1662 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Package</b> for the model.
- * It contains accessors for the meta objects to represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortFactory
- * @model kind="package"
- * @generated
- */
-public interface UmlPortPackage extends EPackage
-{
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNAME = "umlPort";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_PREFIX = "umlPort";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- UmlPortPackage eINSTANCE = org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl <em>Port Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getPortRule()
- * @generated
- */
- int PORT_RULE = 0;
-
- /**
- * The feature id for the '<em><b>Visibility</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PORT_RULE__VISIBILITY = 0;
-
- /**
- * The feature id for the '<em><b>Derived</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PORT_RULE__DERIVED = 1;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PORT_RULE__NAME = 2;
-
- /**
- * The feature id for the '<em><b>Conjugated</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PORT_RULE__CONJUGATED = 3;
-
- /**
- * The feature id for the '<em><b>Type</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PORT_RULE__TYPE = 4;
-
- /**
- * The feature id for the '<em><b>Type Undefined</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PORT_RULE__TYPE_UNDEFINED = 5;
-
- /**
- * The feature id for the '<em><b>Multiplicity</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PORT_RULE__MULTIPLICITY = 6;
-
- /**
- * The feature id for the '<em><b>Modifiers</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PORT_RULE__MODIFIERS = 7;
-
- /**
- * The feature id for the '<em><b>Default</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PORT_RULE__DEFAULT = 8;
-
- /**
- * The number of structural features of the '<em>Port Rule</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PORT_RULE_FEATURE_COUNT = 9;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.VisibilityRuleImpl <em>Visibility Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.VisibilityRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getVisibilityRule()
- * @generated
- */
- int VISIBILITY_RULE = 1;
-
- /**
- * The feature id for the '<em><b>Visibility</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int VISIBILITY_RULE__VISIBILITY = 0;
-
- /**
- * The number of structural features of the '<em>Visibility Rule</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int VISIBILITY_RULE_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.TypeRuleImpl <em>Type Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.TypeRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getTypeRule()
- * @generated
- */
- int TYPE_RULE = 2;
-
- /**
- * The feature id for the '<em><b>Path</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int TYPE_RULE__PATH = 0;
-
- /**
- * The feature id for the '<em><b>Type</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int TYPE_RULE__TYPE = 1;
-
- /**
- * The number of structural features of the '<em>Type Rule</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int TYPE_RULE_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.QualifiedNameImpl <em>Qualified Name</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.QualifiedNameImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getQualifiedName()
- * @generated
- */
- int QUALIFIED_NAME = 3;
-
- /**
- * The feature id for the '<em><b>Path</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int QUALIFIED_NAME__PATH = 0;
-
- /**
- * The feature id for the '<em><b>Remaining</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int QUALIFIED_NAME__REMAINING = 1;
-
- /**
- * The number of structural features of the '<em>Qualified Name</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int QUALIFIED_NAME_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.MultiplicityRuleImpl <em>Multiplicity Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.MultiplicityRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getMultiplicityRule()
- * @generated
- */
- int MULTIPLICITY_RULE = 4;
-
- /**
- * The feature id for the '<em><b>Bounds</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MULTIPLICITY_RULE__BOUNDS = 0;
-
- /**
- * The number of structural features of the '<em>Multiplicity Rule</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MULTIPLICITY_RULE_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BoundSpecificationImpl <em>Bound Specification</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BoundSpecificationImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getBoundSpecification()
- * @generated
- */
- int BOUND_SPECIFICATION = 5;
-
- /**
- * The feature id for the '<em><b>Value</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int BOUND_SPECIFICATION__VALUE = 0;
-
- /**
- * The number of structural features of the '<em>Bound Specification</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int BOUND_SPECIFICATION_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifiersRuleImpl <em>Modifiers Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifiersRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getModifiersRule()
- * @generated
- */
- int MODIFIERS_RULE = 6;
-
- /**
- * The feature id for the '<em><b>Values</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODIFIERS_RULE__VALUES = 0;
-
- /**
- * The number of structural features of the '<em>Modifiers Rule</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODIFIERS_RULE_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifierSpecificationImpl <em>Modifier Specification</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifierSpecificationImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getModifierSpecification()
- * @generated
- */
- int MODIFIER_SPECIFICATION = 7;
-
- /**
- * The feature id for the '<em><b>Value</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODIFIER_SPECIFICATION__VALUE = 0;
-
- /**
- * The feature id for the '<em><b>Redefines</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODIFIER_SPECIFICATION__REDEFINES = 1;
-
- /**
- * The feature id for the '<em><b>Subsets</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODIFIER_SPECIFICATION__SUBSETS = 2;
-
- /**
- * The number of structural features of the '<em>Modifier Specification</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODIFIER_SPECIFICATION_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RedefinesRuleImpl <em>Redefines Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RedefinesRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getRedefinesRule()
- * @generated
- */
- int REDEFINES_RULE = 8;
-
- /**
- * The feature id for the '<em><b>Port</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REDEFINES_RULE__PORT = 0;
-
- /**
- * The number of structural features of the '<em>Redefines Rule</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REDEFINES_RULE_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.SubsetsRuleImpl <em>Subsets Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.SubsetsRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getSubsetsRule()
- * @generated
- */
- int SUBSETS_RULE = 9;
-
- /**
- * The feature id for the '<em><b>Port</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int SUBSETS_RULE__PORT = 0;
-
- /**
- * The number of structural features of the '<em>Subsets Rule</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int SUBSETS_RULE_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.DefaultValueRuleImpl <em>Default Value Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.DefaultValueRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getDefaultValueRule()
- * @generated
- */
- int DEFAULT_VALUE_RULE = 10;
-
- /**
- * The feature id for the '<em><b>Default</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEFAULT_VALUE_RULE__DEFAULT = 0;
-
- /**
- * The number of structural features of the '<em>Default Value Rule</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEFAULT_VALUE_RULE_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ValueImpl <em>Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ValueImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getValue()
- * @generated
- */
- int VALUE = 11;
-
- /**
- * The number of structural features of the '<em>Value</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int VALUE_FEATURE_COUNT = 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.IntValueImpl <em>Int Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.IntValueImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getIntValue()
- * @generated
- */
- int INT_VALUE = 12;
-
- /**
- * The feature id for the '<em><b>Literal Integer</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int INT_VALUE__LITERAL_INTEGER = VALUE_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Int Value</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int INT_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.StringValueImpl <em>String Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.StringValueImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getStringValue()
- * @generated
- */
- int STRING_VALUE = 13;
-
- /**
- * The feature id for the '<em><b>Literal String</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int STRING_VALUE__LITERAL_STRING = VALUE_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>String Value</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int STRING_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BooleanValueImpl <em>Boolean Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BooleanValueImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getBooleanValue()
- * @generated
- */
- int BOOLEAN_VALUE = 14;
-
- /**
- * The feature id for the '<em><b>Literal Boolean</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int BOOLEAN_VALUE__LITERAL_BOOLEAN = VALUE_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Boolean Value</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int BOOLEAN_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RealValueImpl <em>Real Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RealValueImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getRealValue()
- * @generated
- */
- int REAL_VALUE = 15;
-
- /**
- * The feature id for the '<em><b>Integer</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REAL_VALUE__INTEGER = VALUE_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Fraction</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REAL_VALUE__FRACTION = VALUE_FEATURE_COUNT + 1;
-
- /**
- * The number of structural features of the '<em>Real Value</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REAL_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.NullValueImpl <em>Null Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.NullValueImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getNullValue()
- * @generated
- */
- int NULL_VALUE = 16;
-
- /**
- * The number of structural features of the '<em>Null Value</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NULL_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.NoValueImpl <em>No Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.NoValueImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getNoValue()
- * @generated
- */
- int NO_VALUE = 17;
-
- /**
- * The number of structural features of the '<em>No Value</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NO_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind <em>Visibility Kind</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getVisibilityKind()
- * @generated
- */
- int VISIBILITY_KIND = 18;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind <em>Modifier Kind</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getModifierKind()
- * @generated
- */
- int MODIFIER_KIND = 19;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals <em>Boolean Literals</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getBooleanLiterals()
- * @generated
- */
- int BOOLEAN_LITERALS = 20;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule <em>Port Rule</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Port Rule</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule
- * @generated
- */
- EClass getPortRule();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getVisibility <em>Visibility</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Visibility</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getVisibility()
- * @see #getPortRule()
- * @generated
- */
- EReference getPortRule_Visibility();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isDerived <em>Derived</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Derived</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isDerived()
- * @see #getPortRule()
- * @generated
- */
- EAttribute getPortRule_Derived();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getName()
- * @see #getPortRule()
- * @generated
- */
- EAttribute getPortRule_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isConjugated <em>Conjugated</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Conjugated</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isConjugated()
- * @see #getPortRule()
- * @generated
- */
- EAttribute getPortRule_Conjugated();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getType <em>Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Type</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getType()
- * @see #getPortRule()
- * @generated
- */
- EReference getPortRule_Type();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isTypeUndefined <em>Type Undefined</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Type Undefined</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isTypeUndefined()
- * @see #getPortRule()
- * @generated
- */
- EAttribute getPortRule_TypeUndefined();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getMultiplicity <em>Multiplicity</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Multiplicity</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getMultiplicity()
- * @see #getPortRule()
- * @generated
- */
- EReference getPortRule_Multiplicity();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getModifiers <em>Modifiers</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Modifiers</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getModifiers()
- * @see #getPortRule()
- * @generated
- */
- EReference getPortRule_Modifiers();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getDefault <em>Default</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Default</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getDefault()
- * @see #getPortRule()
- * @generated
- */
- EReference getPortRule_Default();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule <em>Visibility Rule</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Visibility Rule</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule
- * @generated
- */
- EClass getVisibilityRule();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule#getVisibility <em>Visibility</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Visibility</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule#getVisibility()
- * @see #getVisibilityRule()
- * @generated
- */
- EAttribute getVisibilityRule_Visibility();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule <em>Type Rule</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Type Rule</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule
- * @generated
- */
- EClass getTypeRule();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule#getPath <em>Path</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Path</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule#getPath()
- * @see #getTypeRule()
- * @generated
- */
- EReference getTypeRule_Path();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule#getType <em>Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the reference '<em>Type</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule#getType()
- * @see #getTypeRule()
- * @generated
- */
- EReference getTypeRule_Type();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName <em>Qualified Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Qualified Name</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName
- * @generated
- */
- EClass getQualifiedName();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName#getPath <em>Path</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the reference '<em>Path</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName#getPath()
- * @see #getQualifiedName()
- * @generated
- */
- EReference getQualifiedName_Path();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName#getRemaining <em>Remaining</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Remaining</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName#getRemaining()
- * @see #getQualifiedName()
- * @generated
- */
- EReference getQualifiedName_Remaining();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule <em>Multiplicity Rule</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Multiplicity Rule</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule
- * @generated
- */
- EClass getMultiplicityRule();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule#getBounds <em>Bounds</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference list '<em>Bounds</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule#getBounds()
- * @see #getMultiplicityRule()
- * @generated
- */
- EReference getMultiplicityRule_Bounds();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification <em>Bound Specification</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Bound Specification</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification
- * @generated
- */
- EClass getBoundSpecification();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification#getValue <em>Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Value</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification#getValue()
- * @see #getBoundSpecification()
- * @generated
- */
- EAttribute getBoundSpecification_Value();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule <em>Modifiers Rule</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Modifiers Rule</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule
- * @generated
- */
- EClass getModifiersRule();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule#getValues <em>Values</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference list '<em>Values</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule#getValues()
- * @see #getModifiersRule()
- * @generated
- */
- EReference getModifiersRule_Values();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification <em>Modifier Specification</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Modifier Specification</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification
- * @generated
- */
- EClass getModifierSpecification();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getValue <em>Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Value</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getValue()
- * @see #getModifierSpecification()
- * @generated
- */
- EAttribute getModifierSpecification_Value();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getRedefines <em>Redefines</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Redefines</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getRedefines()
- * @see #getModifierSpecification()
- * @generated
- */
- EReference getModifierSpecification_Redefines();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getSubsets <em>Subsets</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Subsets</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getSubsets()
- * @see #getModifierSpecification()
- * @generated
- */
- EReference getModifierSpecification_Subsets();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule <em>Redefines Rule</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Redefines Rule</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule
- * @generated
- */
- EClass getRedefinesRule();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule#getPort <em>Port</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the reference '<em>Port</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule#getPort()
- * @see #getRedefinesRule()
- * @generated
- */
- EReference getRedefinesRule_Port();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule <em>Subsets Rule</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Subsets Rule</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule
- * @generated
- */
- EClass getSubsetsRule();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule#getPort <em>Port</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the reference '<em>Port</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule#getPort()
- * @see #getSubsetsRule()
- * @generated
- */
- EReference getSubsetsRule_Port();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule <em>Default Value Rule</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Default Value Rule</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule
- * @generated
- */
- EClass getDefaultValueRule();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule#getDefault <em>Default</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Default</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule#getDefault()
- * @see #getDefaultValueRule()
- * @generated
- */
- EReference getDefaultValueRule_Default();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.Value <em>Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Value</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.Value
- * @generated
- */
- EClass getValue();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue <em>Int Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Int Value</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue
- * @generated
- */
- EClass getIntValue();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue#getLiteralInteger <em>Literal Integer</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Literal Integer</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue#getLiteralInteger()
- * @see #getIntValue()
- * @generated
- */
- EAttribute getIntValue_LiteralInteger();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue <em>String Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>String Value</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue
- * @generated
- */
- EClass getStringValue();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue#getLiteralString <em>Literal String</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Literal String</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue#getLiteralString()
- * @see #getStringValue()
- * @generated
- */
- EAttribute getStringValue_LiteralString();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue <em>Boolean Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Boolean Value</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue
- * @generated
- */
- EClass getBooleanValue();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue#getLiteralBoolean <em>Literal Boolean</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Literal Boolean</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue#getLiteralBoolean()
- * @see #getBooleanValue()
- * @generated
- */
- EAttribute getBooleanValue_LiteralBoolean();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue <em>Real Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Real Value</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue
- * @generated
- */
- EClass getRealValue();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue#getInteger <em>Integer</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Integer</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue#getInteger()
- * @see #getRealValue()
- * @generated
- */
- EAttribute getRealValue_Integer();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue#getFraction <em>Fraction</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Fraction</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue#getFraction()
- * @see #getRealValue()
- * @generated
- */
- EAttribute getRealValue_Fraction();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NullValue <em>Null Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Null Value</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NullValue
- * @generated
- */
- EClass getNullValue();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NoValue <em>No Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>No Value</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NoValue
- * @generated
- */
- EClass getNoValue();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind <em>Visibility Kind</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for enum '<em>Visibility Kind</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind
- * @generated
- */
- EEnum getVisibilityKind();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind <em>Modifier Kind</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for enum '<em>Modifier Kind</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind
- * @generated
- */
- EEnum getModifierKind();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals <em>Boolean Literals</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for enum '<em>Boolean Literals</em>'.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals
- * @generated
- */
- EEnum getBooleanLiterals();
-
- /**
- * Returns the factory that creates the instances of the model.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the factory that creates the instances of the model.
- * @generated
- */
- UmlPortFactory getUmlPortFactory();
-
- /**
- * <!-- begin-user-doc -->
- * Defines literals for the meta objects that represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- *
- * @generated
- */
- interface Literals
- {
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl <em>Port Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getPortRule()
- * @generated
- */
- EClass PORT_RULE = eINSTANCE.getPortRule();
-
- /**
- * The meta object literal for the '<em><b>Visibility</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference PORT_RULE__VISIBILITY = eINSTANCE.getPortRule_Visibility();
-
- /**
- * The meta object literal for the '<em><b>Derived</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute PORT_RULE__DERIVED = eINSTANCE.getPortRule_Derived();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute PORT_RULE__NAME = eINSTANCE.getPortRule_Name();
-
- /**
- * The meta object literal for the '<em><b>Conjugated</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute PORT_RULE__CONJUGATED = eINSTANCE.getPortRule_Conjugated();
-
- /**
- * The meta object literal for the '<em><b>Type</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference PORT_RULE__TYPE = eINSTANCE.getPortRule_Type();
-
- /**
- * The meta object literal for the '<em><b>Type Undefined</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute PORT_RULE__TYPE_UNDEFINED = eINSTANCE.getPortRule_TypeUndefined();
-
- /**
- * The meta object literal for the '<em><b>Multiplicity</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference PORT_RULE__MULTIPLICITY = eINSTANCE.getPortRule_Multiplicity();
-
- /**
- * The meta object literal for the '<em><b>Modifiers</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference PORT_RULE__MODIFIERS = eINSTANCE.getPortRule_Modifiers();
-
- /**
- * The meta object literal for the '<em><b>Default</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference PORT_RULE__DEFAULT = eINSTANCE.getPortRule_Default();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.VisibilityRuleImpl <em>Visibility Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.VisibilityRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getVisibilityRule()
- * @generated
- */
- EClass VISIBILITY_RULE = eINSTANCE.getVisibilityRule();
-
- /**
- * The meta object literal for the '<em><b>Visibility</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute VISIBILITY_RULE__VISIBILITY = eINSTANCE.getVisibilityRule_Visibility();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.TypeRuleImpl <em>Type Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.TypeRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getTypeRule()
- * @generated
- */
- EClass TYPE_RULE = eINSTANCE.getTypeRule();
-
- /**
- * The meta object literal for the '<em><b>Path</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference TYPE_RULE__PATH = eINSTANCE.getTypeRule_Path();
-
- /**
- * The meta object literal for the '<em><b>Type</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference TYPE_RULE__TYPE = eINSTANCE.getTypeRule_Type();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.QualifiedNameImpl <em>Qualified Name</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.QualifiedNameImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getQualifiedName()
- * @generated
- */
- EClass QUALIFIED_NAME = eINSTANCE.getQualifiedName();
-
- /**
- * The meta object literal for the '<em><b>Path</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference QUALIFIED_NAME__PATH = eINSTANCE.getQualifiedName_Path();
-
- /**
- * The meta object literal for the '<em><b>Remaining</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference QUALIFIED_NAME__REMAINING = eINSTANCE.getQualifiedName_Remaining();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.MultiplicityRuleImpl <em>Multiplicity Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.MultiplicityRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getMultiplicityRule()
- * @generated
- */
- EClass MULTIPLICITY_RULE = eINSTANCE.getMultiplicityRule();
-
- /**
- * The meta object literal for the '<em><b>Bounds</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference MULTIPLICITY_RULE__BOUNDS = eINSTANCE.getMultiplicityRule_Bounds();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BoundSpecificationImpl <em>Bound Specification</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BoundSpecificationImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getBoundSpecification()
- * @generated
- */
- EClass BOUND_SPECIFICATION = eINSTANCE.getBoundSpecification();
-
- /**
- * The meta object literal for the '<em><b>Value</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute BOUND_SPECIFICATION__VALUE = eINSTANCE.getBoundSpecification_Value();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifiersRuleImpl <em>Modifiers Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifiersRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getModifiersRule()
- * @generated
- */
- EClass MODIFIERS_RULE = eINSTANCE.getModifiersRule();
-
- /**
- * The meta object literal for the '<em><b>Values</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference MODIFIERS_RULE__VALUES = eINSTANCE.getModifiersRule_Values();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifierSpecificationImpl <em>Modifier Specification</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifierSpecificationImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getModifierSpecification()
- * @generated
- */
- EClass MODIFIER_SPECIFICATION = eINSTANCE.getModifierSpecification();
-
- /**
- * The meta object literal for the '<em><b>Value</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute MODIFIER_SPECIFICATION__VALUE = eINSTANCE.getModifierSpecification_Value();
-
- /**
- * The meta object literal for the '<em><b>Redefines</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference MODIFIER_SPECIFICATION__REDEFINES = eINSTANCE.getModifierSpecification_Redefines();
-
- /**
- * The meta object literal for the '<em><b>Subsets</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference MODIFIER_SPECIFICATION__SUBSETS = eINSTANCE.getModifierSpecification_Subsets();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RedefinesRuleImpl <em>Redefines Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RedefinesRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getRedefinesRule()
- * @generated
- */
- EClass REDEFINES_RULE = eINSTANCE.getRedefinesRule();
-
- /**
- * The meta object literal for the '<em><b>Port</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference REDEFINES_RULE__PORT = eINSTANCE.getRedefinesRule_Port();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.SubsetsRuleImpl <em>Subsets Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.SubsetsRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getSubsetsRule()
- * @generated
- */
- EClass SUBSETS_RULE = eINSTANCE.getSubsetsRule();
-
- /**
- * The meta object literal for the '<em><b>Port</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference SUBSETS_RULE__PORT = eINSTANCE.getSubsetsRule_Port();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.DefaultValueRuleImpl <em>Default Value Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.DefaultValueRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getDefaultValueRule()
- * @generated
- */
- EClass DEFAULT_VALUE_RULE = eINSTANCE.getDefaultValueRule();
-
- /**
- * The meta object literal for the '<em><b>Default</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference DEFAULT_VALUE_RULE__DEFAULT = eINSTANCE.getDefaultValueRule_Default();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ValueImpl <em>Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ValueImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getValue()
- * @generated
- */
- EClass VALUE = eINSTANCE.getValue();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.IntValueImpl <em>Int Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.IntValueImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getIntValue()
- * @generated
- */
- EClass INT_VALUE = eINSTANCE.getIntValue();
-
- /**
- * The meta object literal for the '<em><b>Literal Integer</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute INT_VALUE__LITERAL_INTEGER = eINSTANCE.getIntValue_LiteralInteger();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.StringValueImpl <em>String Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.StringValueImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getStringValue()
- * @generated
- */
- EClass STRING_VALUE = eINSTANCE.getStringValue();
-
- /**
- * The meta object literal for the '<em><b>Literal String</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute STRING_VALUE__LITERAL_STRING = eINSTANCE.getStringValue_LiteralString();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BooleanValueImpl <em>Boolean Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BooleanValueImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getBooleanValue()
- * @generated
- */
- EClass BOOLEAN_VALUE = eINSTANCE.getBooleanValue();
-
- /**
- * The meta object literal for the '<em><b>Literal Boolean</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute BOOLEAN_VALUE__LITERAL_BOOLEAN = eINSTANCE.getBooleanValue_LiteralBoolean();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RealValueImpl <em>Real Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RealValueImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getRealValue()
- * @generated
- */
- EClass REAL_VALUE = eINSTANCE.getRealValue();
-
- /**
- * The meta object literal for the '<em><b>Integer</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute REAL_VALUE__INTEGER = eINSTANCE.getRealValue_Integer();
-
- /**
- * The meta object literal for the '<em><b>Fraction</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute REAL_VALUE__FRACTION = eINSTANCE.getRealValue_Fraction();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.NullValueImpl <em>Null Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.NullValueImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getNullValue()
- * @generated
- */
- EClass NULL_VALUE = eINSTANCE.getNullValue();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.NoValueImpl <em>No Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.NoValueImpl
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getNoValue()
- * @generated
- */
- EClass NO_VALUE = eINSTANCE.getNoValue();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind <em>Visibility Kind</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getVisibilityKind()
- * @generated
- */
- EEnum VISIBILITY_KIND = eINSTANCE.getVisibilityKind();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind <em>Modifier Kind</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getModifierKind()
- * @generated
- */
- EEnum MODIFIER_KIND = eINSTANCE.getModifierKind();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals <em>Boolean Literals</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getBooleanLiterals()
- * @generated
- */
- EEnum BOOLEAN_LITERALS = eINSTANCE.getBooleanLiterals();
-
- }
-
-} // UmlPortPackage
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Package</b> for the model.
+ * It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface UmlPortPackage extends EPackage
+{
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "umlPort";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "umlPort";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ UmlPortPackage eINSTANCE = org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl <em>Port Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getPortRule()
+ * @generated
+ */
+ int PORT_RULE = 0;
+
+ /**
+ * The feature id for the '<em><b>Visibility</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PORT_RULE__VISIBILITY = 0;
+
+ /**
+ * The feature id for the '<em><b>Derived</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PORT_RULE__DERIVED = 1;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PORT_RULE__NAME = 2;
+
+ /**
+ * The feature id for the '<em><b>Conjugated</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PORT_RULE__CONJUGATED = 3;
+
+ /**
+ * The feature id for the '<em><b>Type</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PORT_RULE__TYPE = 4;
+
+ /**
+ * The feature id for the '<em><b>Type Undefined</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PORT_RULE__TYPE_UNDEFINED = 5;
+
+ /**
+ * The feature id for the '<em><b>Multiplicity</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PORT_RULE__MULTIPLICITY = 6;
+
+ /**
+ * The feature id for the '<em><b>Modifiers</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PORT_RULE__MODIFIERS = 7;
+
+ /**
+ * The feature id for the '<em><b>Default</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PORT_RULE__DEFAULT = 8;
+
+ /**
+ * The number of structural features of the '<em>Port Rule</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PORT_RULE_FEATURE_COUNT = 9;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.VisibilityRuleImpl <em>Visibility Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.VisibilityRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getVisibilityRule()
+ * @generated
+ */
+ int VISIBILITY_RULE = 1;
+
+ /**
+ * The feature id for the '<em><b>Visibility</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int VISIBILITY_RULE__VISIBILITY = 0;
+
+ /**
+ * The number of structural features of the '<em>Visibility Rule</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int VISIBILITY_RULE_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.TypeRuleImpl <em>Type Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.TypeRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getTypeRule()
+ * @generated
+ */
+ int TYPE_RULE = 2;
+
+ /**
+ * The feature id for the '<em><b>Path</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int TYPE_RULE__PATH = 0;
+
+ /**
+ * The feature id for the '<em><b>Type</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int TYPE_RULE__TYPE = 1;
+
+ /**
+ * The number of structural features of the '<em>Type Rule</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int TYPE_RULE_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.QualifiedNameImpl <em>Qualified Name</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.QualifiedNameImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getQualifiedName()
+ * @generated
+ */
+ int QUALIFIED_NAME = 3;
+
+ /**
+ * The feature id for the '<em><b>Path</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int QUALIFIED_NAME__PATH = 0;
+
+ /**
+ * The feature id for the '<em><b>Remaining</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int QUALIFIED_NAME__REMAINING = 1;
+
+ /**
+ * The number of structural features of the '<em>Qualified Name</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int QUALIFIED_NAME_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.MultiplicityRuleImpl <em>Multiplicity Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.MultiplicityRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getMultiplicityRule()
+ * @generated
+ */
+ int MULTIPLICITY_RULE = 4;
+
+ /**
+ * The feature id for the '<em><b>Bounds</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_RULE__BOUNDS = 0;
+
+ /**
+ * The number of structural features of the '<em>Multiplicity Rule</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_RULE_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BoundSpecificationImpl <em>Bound Specification</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BoundSpecificationImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getBoundSpecification()
+ * @generated
+ */
+ int BOUND_SPECIFICATION = 5;
+
+ /**
+ * The feature id for the '<em><b>Value</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int BOUND_SPECIFICATION__VALUE = 0;
+
+ /**
+ * The number of structural features of the '<em>Bound Specification</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int BOUND_SPECIFICATION_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifiersRuleImpl <em>Modifiers Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifiersRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getModifiersRule()
+ * @generated
+ */
+ int MODIFIERS_RULE = 6;
+
+ /**
+ * The feature id for the '<em><b>Values</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MODIFIERS_RULE__VALUES = 0;
+
+ /**
+ * The number of structural features of the '<em>Modifiers Rule</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MODIFIERS_RULE_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifierSpecificationImpl <em>Modifier Specification</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifierSpecificationImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getModifierSpecification()
+ * @generated
+ */
+ int MODIFIER_SPECIFICATION = 7;
+
+ /**
+ * The feature id for the '<em><b>Value</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MODIFIER_SPECIFICATION__VALUE = 0;
+
+ /**
+ * The feature id for the '<em><b>Redefines</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MODIFIER_SPECIFICATION__REDEFINES = 1;
+
+ /**
+ * The feature id for the '<em><b>Subsets</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MODIFIER_SPECIFICATION__SUBSETS = 2;
+
+ /**
+ * The number of structural features of the '<em>Modifier Specification</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MODIFIER_SPECIFICATION_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RedefinesRuleImpl <em>Redefines Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RedefinesRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getRedefinesRule()
+ * @generated
+ */
+ int REDEFINES_RULE = 8;
+
+ /**
+ * The feature id for the '<em><b>Port</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REDEFINES_RULE__PORT = 0;
+
+ /**
+ * The number of structural features of the '<em>Redefines Rule</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REDEFINES_RULE_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.SubsetsRuleImpl <em>Subsets Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.SubsetsRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getSubsetsRule()
+ * @generated
+ */
+ int SUBSETS_RULE = 9;
+
+ /**
+ * The feature id for the '<em><b>Port</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SUBSETS_RULE__PORT = 0;
+
+ /**
+ * The number of structural features of the '<em>Subsets Rule</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SUBSETS_RULE_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.DefaultValueRuleImpl <em>Default Value Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.DefaultValueRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getDefaultValueRule()
+ * @generated
+ */
+ int DEFAULT_VALUE_RULE = 10;
+
+ /**
+ * The feature id for the '<em><b>Default</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DEFAULT_VALUE_RULE__DEFAULT = 0;
+
+ /**
+ * The number of structural features of the '<em>Default Value Rule</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DEFAULT_VALUE_RULE_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ValueImpl <em>Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getValue()
+ * @generated
+ */
+ int VALUE = 11;
+
+ /**
+ * The number of structural features of the '<em>Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int VALUE_FEATURE_COUNT = 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.IntValueImpl <em>Int Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.IntValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getIntValue()
+ * @generated
+ */
+ int INT_VALUE = 12;
+
+ /**
+ * The feature id for the '<em><b>Literal Integer</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int INT_VALUE__LITERAL_INTEGER = VALUE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Int Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int INT_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.StringValueImpl <em>String Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.StringValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getStringValue()
+ * @generated
+ */
+ int STRING_VALUE = 13;
+
+ /**
+ * The feature id for the '<em><b>Literal String</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int STRING_VALUE__LITERAL_STRING = VALUE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>String Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int STRING_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BooleanValueImpl <em>Boolean Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BooleanValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getBooleanValue()
+ * @generated
+ */
+ int BOOLEAN_VALUE = 14;
+
+ /**
+ * The feature id for the '<em><b>Literal Boolean</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int BOOLEAN_VALUE__LITERAL_BOOLEAN = VALUE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Boolean Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int BOOLEAN_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RealValueImpl <em>Real Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RealValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getRealValue()
+ * @generated
+ */
+ int REAL_VALUE = 15;
+
+ /**
+ * The feature id for the '<em><b>Integer</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REAL_VALUE__INTEGER = VALUE_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Fraction</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REAL_VALUE__FRACTION = VALUE_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the '<em>Real Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REAL_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.NullValueImpl <em>Null Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.NullValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getNullValue()
+ * @generated
+ */
+ int NULL_VALUE = 16;
+
+ /**
+ * The number of structural features of the '<em>Null Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int NULL_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.NoValueImpl <em>No Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.NoValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getNoValue()
+ * @generated
+ */
+ int NO_VALUE = 17;
+
+ /**
+ * The number of structural features of the '<em>No Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int NO_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind <em>Visibility Kind</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getVisibilityKind()
+ * @generated
+ */
+ int VISIBILITY_KIND = 18;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind <em>Modifier Kind</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getModifierKind()
+ * @generated
+ */
+ int MODIFIER_KIND = 19;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals <em>Boolean Literals</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getBooleanLiterals()
+ * @generated
+ */
+ int BOOLEAN_LITERALS = 20;
+
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule <em>Port Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Port Rule</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule
+ * @generated
+ */
+ EClass getPortRule();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getVisibility <em>Visibility</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Visibility</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getVisibility()
+ * @see #getPortRule()
+ * @generated
+ */
+ EReference getPortRule_Visibility();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isDerived <em>Derived</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Derived</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isDerived()
+ * @see #getPortRule()
+ * @generated
+ */
+ EAttribute getPortRule_Derived();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getName <em>Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getName()
+ * @see #getPortRule()
+ * @generated
+ */
+ EAttribute getPortRule_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isConjugated <em>Conjugated</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Conjugated</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isConjugated()
+ * @see #getPortRule()
+ * @generated
+ */
+ EAttribute getPortRule_Conjugated();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getType <em>Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Type</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getType()
+ * @see #getPortRule()
+ * @generated
+ */
+ EReference getPortRule_Type();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isTypeUndefined <em>Type Undefined</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Type Undefined</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#isTypeUndefined()
+ * @see #getPortRule()
+ * @generated
+ */
+ EAttribute getPortRule_TypeUndefined();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getMultiplicity <em>Multiplicity</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Multiplicity</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getMultiplicity()
+ * @see #getPortRule()
+ * @generated
+ */
+ EReference getPortRule_Multiplicity();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getModifiers <em>Modifiers</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Modifiers</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getModifiers()
+ * @see #getPortRule()
+ * @generated
+ */
+ EReference getPortRule_Modifiers();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getDefault <em>Default</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Default</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule#getDefault()
+ * @see #getPortRule()
+ * @generated
+ */
+ EReference getPortRule_Default();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule <em>Visibility Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Visibility Rule</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule
+ * @generated
+ */
+ EClass getVisibilityRule();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule#getVisibility <em>Visibility</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Visibility</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule#getVisibility()
+ * @see #getVisibilityRule()
+ * @generated
+ */
+ EAttribute getVisibilityRule_Visibility();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule <em>Type Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Type Rule</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule
+ * @generated
+ */
+ EClass getTypeRule();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule#getPath <em>Path</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Path</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule#getPath()
+ * @see #getTypeRule()
+ * @generated
+ */
+ EReference getTypeRule_Path();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule#getType <em>Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Type</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule#getType()
+ * @see #getTypeRule()
+ * @generated
+ */
+ EReference getTypeRule_Type();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName <em>Qualified Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Qualified Name</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName
+ * @generated
+ */
+ EClass getQualifiedName();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName#getPath <em>Path</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Path</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName#getPath()
+ * @see #getQualifiedName()
+ * @generated
+ */
+ EReference getQualifiedName_Path();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName#getRemaining <em>Remaining</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Remaining</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName#getRemaining()
+ * @see #getQualifiedName()
+ * @generated
+ */
+ EReference getQualifiedName_Remaining();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule <em>Multiplicity Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Multiplicity Rule</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule
+ * @generated
+ */
+ EClass getMultiplicityRule();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule#getBounds <em>Bounds</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Bounds</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule#getBounds()
+ * @see #getMultiplicityRule()
+ * @generated
+ */
+ EReference getMultiplicityRule_Bounds();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification <em>Bound Specification</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Bound Specification</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification
+ * @generated
+ */
+ EClass getBoundSpecification();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification#getValue <em>Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Value</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification#getValue()
+ * @see #getBoundSpecification()
+ * @generated
+ */
+ EAttribute getBoundSpecification_Value();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule <em>Modifiers Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Modifiers Rule</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule
+ * @generated
+ */
+ EClass getModifiersRule();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule#getValues <em>Values</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Values</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule#getValues()
+ * @see #getModifiersRule()
+ * @generated
+ */
+ EReference getModifiersRule_Values();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification <em>Modifier Specification</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Modifier Specification</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification
+ * @generated
+ */
+ EClass getModifierSpecification();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getValue <em>Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Value</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getValue()
+ * @see #getModifierSpecification()
+ * @generated
+ */
+ EAttribute getModifierSpecification_Value();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getRedefines <em>Redefines</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Redefines</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getRedefines()
+ * @see #getModifierSpecification()
+ * @generated
+ */
+ EReference getModifierSpecification_Redefines();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getSubsets <em>Subsets</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Subsets</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification#getSubsets()
+ * @see #getModifierSpecification()
+ * @generated
+ */
+ EReference getModifierSpecification_Subsets();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule <em>Redefines Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Redefines Rule</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule
+ * @generated
+ */
+ EClass getRedefinesRule();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule#getPort <em>Port</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Port</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule#getPort()
+ * @see #getRedefinesRule()
+ * @generated
+ */
+ EReference getRedefinesRule_Port();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule <em>Subsets Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Subsets Rule</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule
+ * @generated
+ */
+ EClass getSubsetsRule();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule#getPort <em>Port</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Port</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule#getPort()
+ * @see #getSubsetsRule()
+ * @generated
+ */
+ EReference getSubsetsRule_Port();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule <em>Default Value Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Default Value Rule</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule
+ * @generated
+ */
+ EClass getDefaultValueRule();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule#getDefault <em>Default</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Default</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule#getDefault()
+ * @see #getDefaultValueRule()
+ * @generated
+ */
+ EReference getDefaultValueRule_Default();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.Value <em>Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Value</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.Value
+ * @generated
+ */
+ EClass getValue();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue <em>Int Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Int Value</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue
+ * @generated
+ */
+ EClass getIntValue();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue#getLiteralInteger <em>Literal Integer</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Literal Integer</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue#getLiteralInteger()
+ * @see #getIntValue()
+ * @generated
+ */
+ EAttribute getIntValue_LiteralInteger();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue <em>String Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>String Value</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue
+ * @generated
+ */
+ EClass getStringValue();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue#getLiteralString <em>Literal String</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Literal String</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue#getLiteralString()
+ * @see #getStringValue()
+ * @generated
+ */
+ EAttribute getStringValue_LiteralString();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue <em>Boolean Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Boolean Value</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue
+ * @generated
+ */
+ EClass getBooleanValue();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue#getLiteralBoolean <em>Literal Boolean</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Literal Boolean</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue#getLiteralBoolean()
+ * @see #getBooleanValue()
+ * @generated
+ */
+ EAttribute getBooleanValue_LiteralBoolean();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue <em>Real Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Real Value</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue
+ * @generated
+ */
+ EClass getRealValue();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue#getInteger <em>Integer</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Integer</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue#getInteger()
+ * @see #getRealValue()
+ * @generated
+ */
+ EAttribute getRealValue_Integer();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue#getFraction <em>Fraction</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Fraction</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue#getFraction()
+ * @see #getRealValue()
+ * @generated
+ */
+ EAttribute getRealValue_Fraction();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NullValue <em>Null Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Null Value</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NullValue
+ * @generated
+ */
+ EClass getNullValue();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NoValue <em>No Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>No Value</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NoValue
+ * @generated
+ */
+ EClass getNoValue();
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind <em>Visibility Kind</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>Visibility Kind</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind
+ * @generated
+ */
+ EEnum getVisibilityKind();
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind <em>Modifier Kind</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>Modifier Kind</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind
+ * @generated
+ */
+ EEnum getModifierKind();
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals <em>Boolean Literals</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>Boolean Literals</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals
+ * @generated
+ */
+ EEnum getBooleanLiterals();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ UmlPortFactory getUmlPortFactory();
+
+ /**
+ * <!-- begin-user-doc -->
+ * Defines literals for the meta objects that represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ interface Literals
+ {
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl <em>Port Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getPortRule()
+ * @generated
+ */
+ EClass PORT_RULE = eINSTANCE.getPortRule();
+
+ /**
+ * The meta object literal for the '<em><b>Visibility</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference PORT_RULE__VISIBILITY = eINSTANCE.getPortRule_Visibility();
+
+ /**
+ * The meta object literal for the '<em><b>Derived</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute PORT_RULE__DERIVED = eINSTANCE.getPortRule_Derived();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute PORT_RULE__NAME = eINSTANCE.getPortRule_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Conjugated</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute PORT_RULE__CONJUGATED = eINSTANCE.getPortRule_Conjugated();
+
+ /**
+ * The meta object literal for the '<em><b>Type</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference PORT_RULE__TYPE = eINSTANCE.getPortRule_Type();
+
+ /**
+ * The meta object literal for the '<em><b>Type Undefined</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute PORT_RULE__TYPE_UNDEFINED = eINSTANCE.getPortRule_TypeUndefined();
+
+ /**
+ * The meta object literal for the '<em><b>Multiplicity</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference PORT_RULE__MULTIPLICITY = eINSTANCE.getPortRule_Multiplicity();
+
+ /**
+ * The meta object literal for the '<em><b>Modifiers</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference PORT_RULE__MODIFIERS = eINSTANCE.getPortRule_Modifiers();
+
+ /**
+ * The meta object literal for the '<em><b>Default</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference PORT_RULE__DEFAULT = eINSTANCE.getPortRule_Default();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.VisibilityRuleImpl <em>Visibility Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.VisibilityRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getVisibilityRule()
+ * @generated
+ */
+ EClass VISIBILITY_RULE = eINSTANCE.getVisibilityRule();
+
+ /**
+ * The meta object literal for the '<em><b>Visibility</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute VISIBILITY_RULE__VISIBILITY = eINSTANCE.getVisibilityRule_Visibility();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.TypeRuleImpl <em>Type Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.TypeRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getTypeRule()
+ * @generated
+ */
+ EClass TYPE_RULE = eINSTANCE.getTypeRule();
+
+ /**
+ * The meta object literal for the '<em><b>Path</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference TYPE_RULE__PATH = eINSTANCE.getTypeRule_Path();
+
+ /**
+ * The meta object literal for the '<em><b>Type</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference TYPE_RULE__TYPE = eINSTANCE.getTypeRule_Type();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.QualifiedNameImpl <em>Qualified Name</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.QualifiedNameImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getQualifiedName()
+ * @generated
+ */
+ EClass QUALIFIED_NAME = eINSTANCE.getQualifiedName();
+
+ /**
+ * The meta object literal for the '<em><b>Path</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference QUALIFIED_NAME__PATH = eINSTANCE.getQualifiedName_Path();
+
+ /**
+ * The meta object literal for the '<em><b>Remaining</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference QUALIFIED_NAME__REMAINING = eINSTANCE.getQualifiedName_Remaining();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.MultiplicityRuleImpl <em>Multiplicity Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.MultiplicityRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getMultiplicityRule()
+ * @generated
+ */
+ EClass MULTIPLICITY_RULE = eINSTANCE.getMultiplicityRule();
+
+ /**
+ * The meta object literal for the '<em><b>Bounds</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference MULTIPLICITY_RULE__BOUNDS = eINSTANCE.getMultiplicityRule_Bounds();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BoundSpecificationImpl <em>Bound Specification</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BoundSpecificationImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getBoundSpecification()
+ * @generated
+ */
+ EClass BOUND_SPECIFICATION = eINSTANCE.getBoundSpecification();
+
+ /**
+ * The meta object literal for the '<em><b>Value</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute BOUND_SPECIFICATION__VALUE = eINSTANCE.getBoundSpecification_Value();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifiersRuleImpl <em>Modifiers Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifiersRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getModifiersRule()
+ * @generated
+ */
+ EClass MODIFIERS_RULE = eINSTANCE.getModifiersRule();
+
+ /**
+ * The meta object literal for the '<em><b>Values</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference MODIFIERS_RULE__VALUES = eINSTANCE.getModifiersRule_Values();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifierSpecificationImpl <em>Modifier Specification</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifierSpecificationImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getModifierSpecification()
+ * @generated
+ */
+ EClass MODIFIER_SPECIFICATION = eINSTANCE.getModifierSpecification();
+
+ /**
+ * The meta object literal for the '<em><b>Value</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute MODIFIER_SPECIFICATION__VALUE = eINSTANCE.getModifierSpecification_Value();
+
+ /**
+ * The meta object literal for the '<em><b>Redefines</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference MODIFIER_SPECIFICATION__REDEFINES = eINSTANCE.getModifierSpecification_Redefines();
+
+ /**
+ * The meta object literal for the '<em><b>Subsets</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference MODIFIER_SPECIFICATION__SUBSETS = eINSTANCE.getModifierSpecification_Subsets();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RedefinesRuleImpl <em>Redefines Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RedefinesRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getRedefinesRule()
+ * @generated
+ */
+ EClass REDEFINES_RULE = eINSTANCE.getRedefinesRule();
+
+ /**
+ * The meta object literal for the '<em><b>Port</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference REDEFINES_RULE__PORT = eINSTANCE.getRedefinesRule_Port();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.SubsetsRuleImpl <em>Subsets Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.SubsetsRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getSubsetsRule()
+ * @generated
+ */
+ EClass SUBSETS_RULE = eINSTANCE.getSubsetsRule();
+
+ /**
+ * The meta object literal for the '<em><b>Port</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference SUBSETS_RULE__PORT = eINSTANCE.getSubsetsRule_Port();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.DefaultValueRuleImpl <em>Default Value Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.DefaultValueRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getDefaultValueRule()
+ * @generated
+ */
+ EClass DEFAULT_VALUE_RULE = eINSTANCE.getDefaultValueRule();
+
+ /**
+ * The meta object literal for the '<em><b>Default</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DEFAULT_VALUE_RULE__DEFAULT = eINSTANCE.getDefaultValueRule_Default();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ValueImpl <em>Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getValue()
+ * @generated
+ */
+ EClass VALUE = eINSTANCE.getValue();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.IntValueImpl <em>Int Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.IntValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getIntValue()
+ * @generated
+ */
+ EClass INT_VALUE = eINSTANCE.getIntValue();
+
+ /**
+ * The meta object literal for the '<em><b>Literal Integer</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute INT_VALUE__LITERAL_INTEGER = eINSTANCE.getIntValue_LiteralInteger();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.StringValueImpl <em>String Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.StringValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getStringValue()
+ * @generated
+ */
+ EClass STRING_VALUE = eINSTANCE.getStringValue();
+
+ /**
+ * The meta object literal for the '<em><b>Literal String</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute STRING_VALUE__LITERAL_STRING = eINSTANCE.getStringValue_LiteralString();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BooleanValueImpl <em>Boolean Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BooleanValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getBooleanValue()
+ * @generated
+ */
+ EClass BOOLEAN_VALUE = eINSTANCE.getBooleanValue();
+
+ /**
+ * The meta object literal for the '<em><b>Literal Boolean</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute BOOLEAN_VALUE__LITERAL_BOOLEAN = eINSTANCE.getBooleanValue_LiteralBoolean();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RealValueImpl <em>Real Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RealValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getRealValue()
+ * @generated
+ */
+ EClass REAL_VALUE = eINSTANCE.getRealValue();
+
+ /**
+ * The meta object literal for the '<em><b>Integer</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute REAL_VALUE__INTEGER = eINSTANCE.getRealValue_Integer();
+
+ /**
+ * The meta object literal for the '<em><b>Fraction</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute REAL_VALUE__FRACTION = eINSTANCE.getRealValue_Fraction();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.NullValueImpl <em>Null Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.NullValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getNullValue()
+ * @generated
+ */
+ EClass NULL_VALUE = eINSTANCE.getNullValue();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.NoValueImpl <em>No Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.NoValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getNoValue()
+ * @generated
+ */
+ EClass NO_VALUE = eINSTANCE.getNoValue();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind <em>Visibility Kind</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getVisibilityKind()
+ * @generated
+ */
+ EEnum VISIBILITY_KIND = eINSTANCE.getVisibilityKind();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind <em>Modifier Kind</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getModifierKind()
+ * @generated
+ */
+ EEnum MODIFIER_KIND = eINSTANCE.getModifierKind();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals <em>Boolean Literals</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.UmlPortPackageImpl#getBooleanLiterals()
+ * @generated
+ */
+ EEnum BOOLEAN_LITERALS = eINSTANCE.getBooleanLiterals();
+
+ }
+
+} //UmlPortPackage
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/VisibilityKind.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/VisibilityKind.java
index ceedc4db477..e81bbe624c5 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/VisibilityKind.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/VisibilityKind.java
@@ -1,302 +1,283 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.Enumerator;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the literals of the enumeration '<em><b>Visibility Kind</b></em>',
- * and utility methods for working with them.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getVisibilityKind()
- * @model
- * @generated
- */
-public enum VisibilityKind implements Enumerator
-{
- /**
- * The '<em><b>Public</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #PUBLIC_VALUE
- * @generated
- * @ordered
- */
- PUBLIC(0, "public", "+"),
-
- /**
- * The '<em><b>Private</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #PRIVATE_VALUE
- * @generated
- * @ordered
- */
- PRIVATE(1, "private", "-"),
-
- /**
- * The '<em><b>Protected</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #PROTECTED_VALUE
- * @generated
- * @ordered
- */
- PROTECTED(2, "protected", "#"),
-
- /**
- * The '<em><b>Package</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #PACKAGE_VALUE
- * @generated
- * @ordered
- */
- PACKAGE(3, "package", "~");
-
- /**
- * The '<em><b>Public</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Public</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #PUBLIC
- * @model name="public" literal="+"
- * @generated
- * @ordered
- */
- public static final int PUBLIC_VALUE = 0;
-
- /**
- * The '<em><b>Private</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Private</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #PRIVATE
- * @model name="private" literal="-"
- * @generated
- * @ordered
- */
- public static final int PRIVATE_VALUE = 1;
-
- /**
- * The '<em><b>Protected</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Protected</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #PROTECTED
- * @model name="protected" literal="#"
- * @generated
- * @ordered
- */
- public static final int PROTECTED_VALUE = 2;
-
- /**
- * The '<em><b>Package</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Package</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #PACKAGE
- * @model name="package" literal="~"
- * @generated
- * @ordered
- */
- public static final int PACKAGE_VALUE = 3;
-
- /**
- * An array of all the '<em><b>Visibility Kind</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private static final VisibilityKind[] VALUES_ARRAY =
- new VisibilityKind[]
- {
- PUBLIC,
- PRIVATE,
- PROTECTED,
- PACKAGE,
- };
-
- /**
- * A public read-only list of all the '<em><b>Visibility Kind</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static final List<VisibilityKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static VisibilityKind get(String literal)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- VisibilityKind result = VALUES_ARRAY[i];
- if (result.toString().equals(literal))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static VisibilityKind getByName(String name)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- VisibilityKind result = VALUES_ARRAY[i];
- if (result.getName().equals(name))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static VisibilityKind get(int value)
- {
- switch (value)
- {
- case PUBLIC_VALUE:
- return PUBLIC;
- case PRIVATE_VALUE:
- return PRIVATE;
- case PROTECTED_VALUE:
- return PROTECTED;
- case PACKAGE_VALUE:
- return PACKAGE;
- }
- return null;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private final int value;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private final String name;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private final String literal;
-
- /**
- * Only this class can construct instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private VisibilityKind(int value, String name, String literal)
- {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int getValue()
- {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getLiteral()
- {
- return literal;
- }
-
- /**
- * Returns the literal value of the enumerator, which is its string representation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- return literal;
- }
-
-} // VisibilityKind
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>Visibility Kind</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getVisibilityKind()
+ * @model
+ * @generated
+ */
+public enum VisibilityKind implements Enumerator
+{
+ /**
+ * The '<em><b>Public</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #PUBLIC_VALUE
+ * @generated
+ * @ordered
+ */
+ PUBLIC(0, "public", "+"),
+
+ /**
+ * The '<em><b>Private</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #PRIVATE_VALUE
+ * @generated
+ * @ordered
+ */
+ PRIVATE(1, "private", "-"),
+
+ /**
+ * The '<em><b>Protected</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #PROTECTED_VALUE
+ * @generated
+ * @ordered
+ */
+ PROTECTED(2, "protected", "#"),
+
+ /**
+ * The '<em><b>Package</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #PACKAGE_VALUE
+ * @generated
+ * @ordered
+ */
+ PACKAGE(3, "package", "~");
+
+ /**
+ * The '<em><b>Public</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Public</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #PUBLIC
+ * @model name="public" literal="+"
+ * @generated
+ * @ordered
+ */
+ public static final int PUBLIC_VALUE = 0;
+
+ /**
+ * The '<em><b>Private</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Private</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #PRIVATE
+ * @model name="private" literal="-"
+ * @generated
+ * @ordered
+ */
+ public static final int PRIVATE_VALUE = 1;
+
+ /**
+ * The '<em><b>Protected</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Protected</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #PROTECTED
+ * @model name="protected" literal="#"
+ * @generated
+ * @ordered
+ */
+ public static final int PROTECTED_VALUE = 2;
+
+ /**
+ * The '<em><b>Package</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Package</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #PACKAGE
+ * @model name="package" literal="~"
+ * @generated
+ * @ordered
+ */
+ public static final int PACKAGE_VALUE = 3;
+
+ /**
+ * An array of all the '<em><b>Visibility Kind</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final VisibilityKind[] VALUES_ARRAY =
+ new VisibilityKind[]
+ {
+ PUBLIC,
+ PRIVATE,
+ PROTECTED,
+ PACKAGE,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>Visibility Kind</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<VisibilityKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param literal the literal.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static VisibilityKind get(String literal)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ VisibilityKind result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param name the name.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static VisibilityKind getByName(String name)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ VisibilityKind result = VALUES_ARRAY[i];
+ if (result.getName().equals(name))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the integer value.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static VisibilityKind get(int value)
+ {
+ switch (value)
+ {
+ case PUBLIC_VALUE: return PUBLIC;
+ case PRIVATE_VALUE: return PRIVATE;
+ case PROTECTED_VALUE: return PROTECTED;
+ case PACKAGE_VALUE: return PACKAGE;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private VisibilityKind(int value, String name, String literal)
+ {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue()
+ {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteral()
+ {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ return literal;
+ }
+
+} //VisibilityKind
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/VisibilityRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/VisibilityRule.java
index 784aa560468..0d571713a1b 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/VisibilityRule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/VisibilityRule.java
@@ -1,56 +1,54 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Visibility Rule</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule#getVisibility <em>Visibility</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getVisibilityRule()
- * @model
- * @generated
- */
-public interface VisibilityRule extends EObject
-{
- /**
- * Returns the value of the '<em><b>Visibility</b></em>' attribute.
- * The literals are from the enumeration {@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Visibility</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Visibility</em>' attribute.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind
- * @see #setVisibility(VisibilityKind)
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getVisibilityRule_Visibility()
- * @model
- * @generated
- */
- VisibilityKind getVisibility();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule#getVisibility <em>Visibility</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Visibility</em>' attribute.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind
- * @see #getVisibility()
- * @generated
- */
- void setVisibility(VisibilityKind value);
-
-} // VisibilityRule
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Visibility Rule</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule#getVisibility <em>Visibility</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getVisibilityRule()
+ * @model
+ * @generated
+ */
+public interface VisibilityRule extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Visibility</b></em>' attribute.
+ * The literals are from the enumeration {@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Visibility</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Visibility</em>' attribute.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind
+ * @see #setVisibility(VisibilityKind)
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#getVisibilityRule_Visibility()
+ * @model
+ * @generated
+ */
+ VisibilityKind getVisibility();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule#getVisibility <em>Visibility</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Visibility</em>' attribute.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind
+ * @see #getVisibility()
+ * @generated
+ */
+ void setVisibility(VisibilityKind value);
+
+} // VisibilityRule
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/BooleanValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/BooleanValueImpl.java
index 3ab9d7344a4..858f07b6873 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/BooleanValueImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/BooleanValueImpl.java
@@ -1,193 +1,177 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Boolean Value</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BooleanValueImpl#getLiteralBoolean <em>Literal Boolean</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class BooleanValueImpl extends ValueImpl implements BooleanValue
-{
- /**
- * The default value of the '{@link #getLiteralBoolean() <em>Literal Boolean</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getLiteralBoolean()
- * @generated
- * @ordered
- */
- protected static final BooleanLiterals LITERAL_BOOLEAN_EDEFAULT = BooleanLiterals.TRUE;
-
- /**
- * The cached value of the '{@link #getLiteralBoolean() <em>Literal Boolean</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getLiteralBoolean()
- * @generated
- * @ordered
- */
- protected BooleanLiterals literalBoolean = LITERAL_BOOLEAN_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected BooleanValueImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPortPackage.Literals.BOOLEAN_VALUE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public BooleanLiterals getLiteralBoolean()
- {
- return literalBoolean;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setLiteralBoolean(BooleanLiterals newLiteralBoolean)
- {
- BooleanLiterals oldLiteralBoolean = literalBoolean;
- literalBoolean = newLiteralBoolean == null ? LITERAL_BOOLEAN_EDEFAULT : newLiteralBoolean;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN, oldLiteralBoolean, literalBoolean));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPortPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN:
- return getLiteralBoolean();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPortPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN:
- setLiteralBoolean((BooleanLiterals) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN:
- setLiteralBoolean(LITERAL_BOOLEAN_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN:
- return literalBoolean != LITERAL_BOOLEAN_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (literalBoolean: ");
- result.append(literalBoolean);
- result.append(')');
- return result.toString();
- }
-
-} // BooleanValueImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Boolean Value</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BooleanValueImpl#getLiteralBoolean <em>Literal Boolean</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class BooleanValueImpl extends ValueImpl implements BooleanValue
+{
+ /**
+ * The default value of the '{@link #getLiteralBoolean() <em>Literal Boolean</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLiteralBoolean()
+ * @generated
+ * @ordered
+ */
+ protected static final BooleanLiterals LITERAL_BOOLEAN_EDEFAULT = BooleanLiterals.TRUE;
+
+ /**
+ * The cached value of the '{@link #getLiteralBoolean() <em>Literal Boolean</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLiteralBoolean()
+ * @generated
+ * @ordered
+ */
+ protected BooleanLiterals literalBoolean = LITERAL_BOOLEAN_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected BooleanValueImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPortPackage.Literals.BOOLEAN_VALUE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public BooleanLiterals getLiteralBoolean()
+ {
+ return literalBoolean;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setLiteralBoolean(BooleanLiterals newLiteralBoolean)
+ {
+ BooleanLiterals oldLiteralBoolean = literalBoolean;
+ literalBoolean = newLiteralBoolean == null ? LITERAL_BOOLEAN_EDEFAULT : newLiteralBoolean;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN, oldLiteralBoolean, literalBoolean));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN:
+ return getLiteralBoolean();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN:
+ setLiteralBoolean((BooleanLiterals)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN:
+ setLiteralBoolean(LITERAL_BOOLEAN_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN:
+ return literalBoolean != LITERAL_BOOLEAN_EDEFAULT;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (literalBoolean: ");
+ result.append(literalBoolean);
+ result.append(')');
+ return result.toString();
+ }
+
+} //BooleanValueImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/BoundSpecificationImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/BoundSpecificationImpl.java
index 10c42df6f99..bab498343a6 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/BoundSpecificationImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/BoundSpecificationImpl.java
@@ -1,193 +1,177 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Bound Specification</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BoundSpecificationImpl#getValue <em>Value</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class BoundSpecificationImpl extends MinimalEObjectImpl.Container implements BoundSpecification
-{
- /**
- * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected static final String VALUE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected String value = VALUE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected BoundSpecificationImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPortPackage.Literals.BOUND_SPECIFICATION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getValue()
- {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setValue(String newValue)
- {
- String oldValue = value;
- value = newValue;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.BOUND_SPECIFICATION__VALUE, oldValue, value));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPortPackage.BOUND_SPECIFICATION__VALUE:
- return getValue();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPortPackage.BOUND_SPECIFICATION__VALUE:
- setValue((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.BOUND_SPECIFICATION__VALUE:
- setValue(VALUE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.BOUND_SPECIFICATION__VALUE:
- return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (value: ");
- result.append(value);
- result.append(')');
- return result.toString();
- }
-
-} // BoundSpecificationImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Bound Specification</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.BoundSpecificationImpl#getValue <em>Value</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class BoundSpecificationImpl extends MinimalEObjectImpl.Container implements BoundSpecification
+{
+ /**
+ * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected static final String VALUE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected String value = VALUE_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected BoundSpecificationImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPortPackage.Literals.BOUND_SPECIFICATION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getValue()
+ {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setValue(String newValue)
+ {
+ String oldValue = value;
+ value = newValue;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.BOUND_SPECIFICATION__VALUE, oldValue, value));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.BOUND_SPECIFICATION__VALUE:
+ return getValue();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.BOUND_SPECIFICATION__VALUE:
+ setValue((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.BOUND_SPECIFICATION__VALUE:
+ setValue(VALUE_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.BOUND_SPECIFICATION__VALUE:
+ return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (value: ");
+ result.append(value);
+ result.append(')');
+ return result.toString();
+ }
+
+} //BoundSpecificationImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/DefaultValueRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/DefaultValueRuleImpl.java
index a2021800b26..b7b292b27d1 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/DefaultValueRuleImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/DefaultValueRuleImpl.java
@@ -1,216 +1,194 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.Value;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Default Value Rule</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.DefaultValueRuleImpl#getDefault <em>Default</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class DefaultValueRuleImpl extends MinimalEObjectImpl.Container implements DefaultValueRule
-{
- /**
- * The cached value of the '{@link #getDefault() <em>Default</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getDefault()
- * @generated
- * @ordered
- */
- protected Value default_;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected DefaultValueRuleImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPortPackage.Literals.DEFAULT_VALUE_RULE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Value getDefault()
- {
- return default_;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetDefault(Value newDefault, NotificationChain msgs)
- {
- Value oldDefault = default_;
- default_ = newDefault;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT, oldDefault, newDefault);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setDefault(Value newDefault)
- {
- if (newDefault != default_)
- {
- NotificationChain msgs = null;
- if (default_ != null) {
- msgs = ((InternalEObject) default_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs);
- }
- if (newDefault != null) {
- msgs = ((InternalEObject) newDefault).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs);
- }
- msgs = basicSetDefault(newDefault, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT, newDefault, newDefault));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
- return basicSetDefault(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
- return getDefault();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
- setDefault((Value) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
- setDefault((Value) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
- return default_ != null;
- }
- return super.eIsSet(featureID);
- }
-
-} // DefaultValueRuleImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.Value;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Default Value Rule</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.DefaultValueRuleImpl#getDefault <em>Default</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class DefaultValueRuleImpl extends MinimalEObjectImpl.Container implements DefaultValueRule
+{
+ /**
+ * The cached value of the '{@link #getDefault() <em>Default</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDefault()
+ * @generated
+ * @ordered
+ */
+ protected Value default_;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DefaultValueRuleImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPortPackage.Literals.DEFAULT_VALUE_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Value getDefault()
+ {
+ return default_;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetDefault(Value newDefault, NotificationChain msgs)
+ {
+ Value oldDefault = default_;
+ default_ = newDefault;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT, oldDefault, newDefault);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDefault(Value newDefault)
+ {
+ if (newDefault != default_)
+ {
+ NotificationChain msgs = null;
+ if (default_ != null)
+ msgs = ((InternalEObject)default_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs);
+ if (newDefault != null)
+ msgs = ((InternalEObject)newDefault).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs);
+ msgs = basicSetDefault(newDefault, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT, newDefault, newDefault));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
+ return basicSetDefault(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
+ return getDefault();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
+ setDefault((Value)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
+ setDefault((Value)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.DEFAULT_VALUE_RULE__DEFAULT:
+ return default_ != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //DefaultValueRuleImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/IntValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/IntValueImpl.java
index 7a0bda85751..679bb1526c0 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/IntValueImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/IntValueImpl.java
@@ -1,192 +1,176 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Int Value</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.IntValueImpl#getLiteralInteger <em>Literal Integer</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class IntValueImpl extends ValueImpl implements IntValue
-{
- /**
- * The default value of the '{@link #getLiteralInteger() <em>Literal Integer</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getLiteralInteger()
- * @generated
- * @ordered
- */
- protected static final int LITERAL_INTEGER_EDEFAULT = 0;
-
- /**
- * The cached value of the '{@link #getLiteralInteger() <em>Literal Integer</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getLiteralInteger()
- * @generated
- * @ordered
- */
- protected int literalInteger = LITERAL_INTEGER_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected IntValueImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPortPackage.Literals.INT_VALUE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int getLiteralInteger()
- {
- return literalInteger;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setLiteralInteger(int newLiteralInteger)
- {
- int oldLiteralInteger = literalInteger;
- literalInteger = newLiteralInteger;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.INT_VALUE__LITERAL_INTEGER, oldLiteralInteger, literalInteger));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPortPackage.INT_VALUE__LITERAL_INTEGER:
- return getLiteralInteger();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPortPackage.INT_VALUE__LITERAL_INTEGER:
- setLiteralInteger((Integer) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.INT_VALUE__LITERAL_INTEGER:
- setLiteralInteger(LITERAL_INTEGER_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.INT_VALUE__LITERAL_INTEGER:
- return literalInteger != LITERAL_INTEGER_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (literalInteger: ");
- result.append(literalInteger);
- result.append(')');
- return result.toString();
- }
-
-} // IntValueImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Int Value</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.IntValueImpl#getLiteralInteger <em>Literal Integer</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class IntValueImpl extends ValueImpl implements IntValue
+{
+ /**
+ * The default value of the '{@link #getLiteralInteger() <em>Literal Integer</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLiteralInteger()
+ * @generated
+ * @ordered
+ */
+ protected static final int LITERAL_INTEGER_EDEFAULT = 0;
+
+ /**
+ * The cached value of the '{@link #getLiteralInteger() <em>Literal Integer</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLiteralInteger()
+ * @generated
+ * @ordered
+ */
+ protected int literalInteger = LITERAL_INTEGER_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IntValueImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPortPackage.Literals.INT_VALUE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getLiteralInteger()
+ {
+ return literalInteger;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setLiteralInteger(int newLiteralInteger)
+ {
+ int oldLiteralInteger = literalInteger;
+ literalInteger = newLiteralInteger;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.INT_VALUE__LITERAL_INTEGER, oldLiteralInteger, literalInteger));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.INT_VALUE__LITERAL_INTEGER:
+ return getLiteralInteger();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.INT_VALUE__LITERAL_INTEGER:
+ setLiteralInteger((Integer)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.INT_VALUE__LITERAL_INTEGER:
+ setLiteralInteger(LITERAL_INTEGER_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.INT_VALUE__LITERAL_INTEGER:
+ return literalInteger != LITERAL_INTEGER_EDEFAULT;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (literalInteger: ");
+ result.append(literalInteger);
+ result.append(')');
+ return result.toString();
+ }
+
+} //IntValueImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/ModifierSpecificationImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/ModifierSpecificationImpl.java
index 415a93d1d41..4ac912702e2 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/ModifierSpecificationImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/ModifierSpecificationImpl.java
@@ -1,385 +1,338 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Modifier Specification</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifierSpecificationImpl#getValue <em>Value</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifierSpecificationImpl#getRedefines <em>Redefines</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifierSpecificationImpl#getSubsets <em>Subsets</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ModifierSpecificationImpl extends MinimalEObjectImpl.Container implements ModifierSpecification
-{
- /**
- * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected static final ModifierKind VALUE_EDEFAULT = ModifierKind.READ_ONLY;
-
- /**
- * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected ModifierKind value = VALUE_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getRedefines() <em>Redefines</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getRedefines()
- * @generated
- * @ordered
- */
- protected RedefinesRule redefines;
-
- /**
- * The cached value of the '{@link #getSubsets() <em>Subsets</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getSubsets()
- * @generated
- * @ordered
- */
- protected SubsetsRule subsets;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected ModifierSpecificationImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPortPackage.Literals.MODIFIER_SPECIFICATION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ModifierKind getValue()
- {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setValue(ModifierKind newValue)
- {
- ModifierKind oldValue = value;
- value = newValue == null ? VALUE_EDEFAULT : newValue;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.MODIFIER_SPECIFICATION__VALUE, oldValue, value));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public RedefinesRule getRedefines()
- {
- return redefines;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetRedefines(RedefinesRule newRedefines, NotificationChain msgs)
- {
- RedefinesRule oldRedefines = redefines;
- redefines = newRedefines;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.MODIFIER_SPECIFICATION__REDEFINES, oldRedefines, newRedefines);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setRedefines(RedefinesRule newRedefines)
- {
- if (newRedefines != redefines)
- {
- NotificationChain msgs = null;
- if (redefines != null) {
- msgs = ((InternalEObject) redefines).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.MODIFIER_SPECIFICATION__REDEFINES, null, msgs);
- }
- if (newRedefines != null) {
- msgs = ((InternalEObject) newRedefines).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.MODIFIER_SPECIFICATION__REDEFINES, null, msgs);
- }
- msgs = basicSetRedefines(newRedefines, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.MODIFIER_SPECIFICATION__REDEFINES, newRedefines, newRedefines));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public SubsetsRule getSubsets()
- {
- return subsets;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetSubsets(SubsetsRule newSubsets, NotificationChain msgs)
- {
- SubsetsRule oldSubsets = subsets;
- subsets = newSubsets;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.MODIFIER_SPECIFICATION__SUBSETS, oldSubsets, newSubsets);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setSubsets(SubsetsRule newSubsets)
- {
- if (newSubsets != subsets)
- {
- NotificationChain msgs = null;
- if (subsets != null) {
- msgs = ((InternalEObject) subsets).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.MODIFIER_SPECIFICATION__SUBSETS, null, msgs);
- }
- if (newSubsets != null) {
- msgs = ((InternalEObject) newSubsets).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.MODIFIER_SPECIFICATION__SUBSETS, null, msgs);
- }
- msgs = basicSetSubsets(newSubsets, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.MODIFIER_SPECIFICATION__SUBSETS, newSubsets, newSubsets));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case UmlPortPackage.MODIFIER_SPECIFICATION__REDEFINES:
- return basicSetRedefines(null, msgs);
- case UmlPortPackage.MODIFIER_SPECIFICATION__SUBSETS:
- return basicSetSubsets(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPortPackage.MODIFIER_SPECIFICATION__VALUE:
- return getValue();
- case UmlPortPackage.MODIFIER_SPECIFICATION__REDEFINES:
- return getRedefines();
- case UmlPortPackage.MODIFIER_SPECIFICATION__SUBSETS:
- return getSubsets();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPortPackage.MODIFIER_SPECIFICATION__VALUE:
- setValue((ModifierKind) newValue);
- return;
- case UmlPortPackage.MODIFIER_SPECIFICATION__REDEFINES:
- setRedefines((RedefinesRule) newValue);
- return;
- case UmlPortPackage.MODIFIER_SPECIFICATION__SUBSETS:
- setSubsets((SubsetsRule) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.MODIFIER_SPECIFICATION__VALUE:
- setValue(VALUE_EDEFAULT);
- return;
- case UmlPortPackage.MODIFIER_SPECIFICATION__REDEFINES:
- setRedefines((RedefinesRule) null);
- return;
- case UmlPortPackage.MODIFIER_SPECIFICATION__SUBSETS:
- setSubsets((SubsetsRule) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.MODIFIER_SPECIFICATION__VALUE:
- return value != VALUE_EDEFAULT;
- case UmlPortPackage.MODIFIER_SPECIFICATION__REDEFINES:
- return redefines != null;
- case UmlPortPackage.MODIFIER_SPECIFICATION__SUBSETS:
- return subsets != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (value: ");
- result.append(value);
- result.append(')');
- return result.toString();
- }
-
-} // ModifierSpecificationImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Modifier Specification</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifierSpecificationImpl#getValue <em>Value</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifierSpecificationImpl#getRedefines <em>Redefines</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifierSpecificationImpl#getSubsets <em>Subsets</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class ModifierSpecificationImpl extends MinimalEObjectImpl.Container implements ModifierSpecification
+{
+ /**
+ * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected static final ModifierKind VALUE_EDEFAULT = ModifierKind.READ_ONLY;
+
+ /**
+ * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected ModifierKind value = VALUE_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getRedefines() <em>Redefines</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRedefines()
+ * @generated
+ * @ordered
+ */
+ protected RedefinesRule redefines;
+
+ /**
+ * The cached value of the '{@link #getSubsets() <em>Subsets</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSubsets()
+ * @generated
+ * @ordered
+ */
+ protected SubsetsRule subsets;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ModifierSpecificationImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPortPackage.Literals.MODIFIER_SPECIFICATION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ModifierKind getValue()
+ {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setValue(ModifierKind newValue)
+ {
+ ModifierKind oldValue = value;
+ value = newValue == null ? VALUE_EDEFAULT : newValue;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.MODIFIER_SPECIFICATION__VALUE, oldValue, value));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RedefinesRule getRedefines()
+ {
+ return redefines;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetRedefines(RedefinesRule newRedefines, NotificationChain msgs)
+ {
+ RedefinesRule oldRedefines = redefines;
+ redefines = newRedefines;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.MODIFIER_SPECIFICATION__REDEFINES, oldRedefines, newRedefines);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRedefines(RedefinesRule newRedefines)
+ {
+ if (newRedefines != redefines)
+ {
+ NotificationChain msgs = null;
+ if (redefines != null)
+ msgs = ((InternalEObject)redefines).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.MODIFIER_SPECIFICATION__REDEFINES, null, msgs);
+ if (newRedefines != null)
+ msgs = ((InternalEObject)newRedefines).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.MODIFIER_SPECIFICATION__REDEFINES, null, msgs);
+ msgs = basicSetRedefines(newRedefines, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.MODIFIER_SPECIFICATION__REDEFINES, newRedefines, newRedefines));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SubsetsRule getSubsets()
+ {
+ return subsets;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetSubsets(SubsetsRule newSubsets, NotificationChain msgs)
+ {
+ SubsetsRule oldSubsets = subsets;
+ subsets = newSubsets;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.MODIFIER_SPECIFICATION__SUBSETS, oldSubsets, newSubsets);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSubsets(SubsetsRule newSubsets)
+ {
+ if (newSubsets != subsets)
+ {
+ NotificationChain msgs = null;
+ if (subsets != null)
+ msgs = ((InternalEObject)subsets).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.MODIFIER_SPECIFICATION__SUBSETS, null, msgs);
+ if (newSubsets != null)
+ msgs = ((InternalEObject)newSubsets).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.MODIFIER_SPECIFICATION__SUBSETS, null, msgs);
+ msgs = basicSetSubsets(newSubsets, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.MODIFIER_SPECIFICATION__SUBSETS, newSubsets, newSubsets));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.MODIFIER_SPECIFICATION__REDEFINES:
+ return basicSetRedefines(null, msgs);
+ case UmlPortPackage.MODIFIER_SPECIFICATION__SUBSETS:
+ return basicSetSubsets(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.MODIFIER_SPECIFICATION__VALUE:
+ return getValue();
+ case UmlPortPackage.MODIFIER_SPECIFICATION__REDEFINES:
+ return getRedefines();
+ case UmlPortPackage.MODIFIER_SPECIFICATION__SUBSETS:
+ return getSubsets();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.MODIFIER_SPECIFICATION__VALUE:
+ setValue((ModifierKind)newValue);
+ return;
+ case UmlPortPackage.MODIFIER_SPECIFICATION__REDEFINES:
+ setRedefines((RedefinesRule)newValue);
+ return;
+ case UmlPortPackage.MODIFIER_SPECIFICATION__SUBSETS:
+ setSubsets((SubsetsRule)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.MODIFIER_SPECIFICATION__VALUE:
+ setValue(VALUE_EDEFAULT);
+ return;
+ case UmlPortPackage.MODIFIER_SPECIFICATION__REDEFINES:
+ setRedefines((RedefinesRule)null);
+ return;
+ case UmlPortPackage.MODIFIER_SPECIFICATION__SUBSETS:
+ setSubsets((SubsetsRule)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.MODIFIER_SPECIFICATION__VALUE:
+ return value != VALUE_EDEFAULT;
+ case UmlPortPackage.MODIFIER_SPECIFICATION__REDEFINES:
+ return redefines != null;
+ case UmlPortPackage.MODIFIER_SPECIFICATION__SUBSETS:
+ return subsets != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (value: ");
+ result.append(value);
+ result.append(')');
+ return result.toString();
+ }
+
+} //ModifierSpecificationImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/ModifiersRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/ModifiersRuleImpl.java
index e9694cc3e63..0a190df7dfe 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/ModifiersRuleImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/ModifiersRuleImpl.java
@@ -1,177 +1,167 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Modifiers Rule</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifiersRuleImpl#getValues <em>Values</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ModifiersRuleImpl extends MinimalEObjectImpl.Container implements ModifiersRule
-{
- /**
- * The cached value of the '{@link #getValues() <em>Values</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getValues()
- * @generated
- * @ordered
- */
- protected EList<ModifierSpecification> values;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected ModifiersRuleImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPortPackage.Literals.MODIFIERS_RULE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EList<ModifierSpecification> getValues()
- {
- if (values == null)
- {
- values = new EObjectContainmentEList<ModifierSpecification>(ModifierSpecification.class, this, UmlPortPackage.MODIFIERS_RULE__VALUES);
- }
- return values;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case UmlPortPackage.MODIFIERS_RULE__VALUES:
- return ((InternalEList<?>) getValues()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPortPackage.MODIFIERS_RULE__VALUES:
- return getValues();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPortPackage.MODIFIERS_RULE__VALUES:
- getValues().clear();
- getValues().addAll((Collection<? extends ModifierSpecification>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.MODIFIERS_RULE__VALUES:
- getValues().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.MODIFIERS_RULE__VALUES:
- return values != null && !values.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} // ModifiersRuleImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Modifiers Rule</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.ModifiersRuleImpl#getValues <em>Values</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class ModifiersRuleImpl extends MinimalEObjectImpl.Container implements ModifiersRule
+{
+ /**
+ * The cached value of the '{@link #getValues() <em>Values</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValues()
+ * @generated
+ * @ordered
+ */
+ protected EList<ModifierSpecification> values;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ModifiersRuleImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPortPackage.Literals.MODIFIERS_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<ModifierSpecification> getValues()
+ {
+ if (values == null)
+ {
+ values = new EObjectContainmentEList<ModifierSpecification>(ModifierSpecification.class, this, UmlPortPackage.MODIFIERS_RULE__VALUES);
+ }
+ return values;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.MODIFIERS_RULE__VALUES:
+ return ((InternalEList<?>)getValues()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.MODIFIERS_RULE__VALUES:
+ return getValues();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.MODIFIERS_RULE__VALUES:
+ getValues().clear();
+ getValues().addAll((Collection<? extends ModifierSpecification>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.MODIFIERS_RULE__VALUES:
+ getValues().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.MODIFIERS_RULE__VALUES:
+ return values != null && !values.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //ModifiersRuleImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/MultiplicityRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/MultiplicityRuleImpl.java
index 3f016c5e321..fb3e456af1e 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/MultiplicityRuleImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/MultiplicityRuleImpl.java
@@ -1,177 +1,167 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Multiplicity Rule</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.MultiplicityRuleImpl#getBounds <em>Bounds</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class MultiplicityRuleImpl extends MinimalEObjectImpl.Container implements MultiplicityRule
-{
- /**
- * The cached value of the '{@link #getBounds() <em>Bounds</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBounds()
- * @generated
- * @ordered
- */
- protected EList<BoundSpecification> bounds;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected MultiplicityRuleImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPortPackage.Literals.MULTIPLICITY_RULE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EList<BoundSpecification> getBounds()
- {
- if (bounds == null)
- {
- bounds = new EObjectContainmentEList<BoundSpecification>(BoundSpecification.class, this, UmlPortPackage.MULTIPLICITY_RULE__BOUNDS);
- }
- return bounds;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case UmlPortPackage.MULTIPLICITY_RULE__BOUNDS:
- return ((InternalEList<?>) getBounds()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPortPackage.MULTIPLICITY_RULE__BOUNDS:
- return getBounds();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPortPackage.MULTIPLICITY_RULE__BOUNDS:
- getBounds().clear();
- getBounds().addAll((Collection<? extends BoundSpecification>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.MULTIPLICITY_RULE__BOUNDS:
- getBounds().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.MULTIPLICITY_RULE__BOUNDS:
- return bounds != null && !bounds.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} // MultiplicityRuleImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Multiplicity Rule</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.MultiplicityRuleImpl#getBounds <em>Bounds</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class MultiplicityRuleImpl extends MinimalEObjectImpl.Container implements MultiplicityRule
+{
+ /**
+ * The cached value of the '{@link #getBounds() <em>Bounds</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBounds()
+ * @generated
+ * @ordered
+ */
+ protected EList<BoundSpecification> bounds;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected MultiplicityRuleImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPortPackage.Literals.MULTIPLICITY_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<BoundSpecification> getBounds()
+ {
+ if (bounds == null)
+ {
+ bounds = new EObjectContainmentEList<BoundSpecification>(BoundSpecification.class, this, UmlPortPackage.MULTIPLICITY_RULE__BOUNDS);
+ }
+ return bounds;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.MULTIPLICITY_RULE__BOUNDS:
+ return ((InternalEList<?>)getBounds()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.MULTIPLICITY_RULE__BOUNDS:
+ return getBounds();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.MULTIPLICITY_RULE__BOUNDS:
+ getBounds().clear();
+ getBounds().addAll((Collection<? extends BoundSpecification>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.MULTIPLICITY_RULE__BOUNDS:
+ getBounds().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.MULTIPLICITY_RULE__BOUNDS:
+ return bounds != null && !bounds.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //MultiplicityRuleImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/NoValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/NoValueImpl.java
index 4260df26fba..34f9f41e30f 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/NoValueImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/NoValueImpl.java
@@ -1,44 +1,40 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NoValue;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>No Value</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class NoValueImpl extends ValueImpl implements NoValue
-{
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected NoValueImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPortPackage.Literals.NO_VALUE;
- }
-
-} // NoValueImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NoValue;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>No Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class NoValueImpl extends ValueImpl implements NoValue
+{
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected NoValueImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPortPackage.Literals.NO_VALUE;
+ }
+
+} //NoValueImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/NullValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/NullValueImpl.java
index e0485eeb691..18d063e1f69 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/NullValueImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/NullValueImpl.java
@@ -1,44 +1,40 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NullValue;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Null Value</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class NullValueImpl extends ValueImpl implements NullValue
-{
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected NullValueImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPortPackage.Literals.NULL_VALUE;
- }
-
-} // NullValueImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NullValue;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Null Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class NullValueImpl extends ValueImpl implements NullValue
+{
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected NullValueImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPortPackage.Literals.NULL_VALUE;
+ }
+
+} //NullValueImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/PortRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/PortRuleImpl.java
index 090615d0b0f..c140c7189b3 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/PortRuleImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/PortRuleImpl.java
@@ -1,834 +1,721 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Port Rule</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl#getVisibility <em>Visibility</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl#isDerived <em>Derived</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl#isConjugated <em>Conjugated</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl#getType <em>Type</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl#isTypeUndefined <em>Type Undefined</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl#getMultiplicity <em>Multiplicity</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl#getModifiers <em>Modifiers</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl#getDefault <em>Default</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class PortRuleImpl extends MinimalEObjectImpl.Container implements PortRule
-{
- /**
- * The cached value of the '{@link #getVisibility() <em>Visibility</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getVisibility()
- * @generated
- * @ordered
- */
- protected VisibilityRule visibility;
-
- /**
- * The default value of the '{@link #isDerived() <em>Derived</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isDerived()
- * @generated
- * @ordered
- */
- protected static final boolean DERIVED_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isDerived() <em>Derived</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isDerived()
- * @generated
- * @ordered
- */
- protected boolean derived = DERIVED_EDEFAULT;
-
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #isConjugated() <em>Conjugated</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isConjugated()
- * @generated
- * @ordered
- */
- protected static final boolean CONJUGATED_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isConjugated() <em>Conjugated</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isConjugated()
- * @generated
- * @ordered
- */
- protected boolean conjugated = CONJUGATED_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getType() <em>Type</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getType()
- * @generated
- * @ordered
- */
- protected TypeRule type;
-
- /**
- * The default value of the '{@link #isTypeUndefined() <em>Type Undefined</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isTypeUndefined()
- * @generated
- * @ordered
- */
- protected static final boolean TYPE_UNDEFINED_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isTypeUndefined() <em>Type Undefined</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isTypeUndefined()
- * @generated
- * @ordered
- */
- protected boolean typeUndefined = TYPE_UNDEFINED_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getMultiplicity()
- * @generated
- * @ordered
- */
- protected MultiplicityRule multiplicity;
-
- /**
- * The cached value of the '{@link #getModifiers() <em>Modifiers</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getModifiers()
- * @generated
- * @ordered
- */
- protected ModifiersRule modifiers;
-
- /**
- * The cached value of the '{@link #getDefault() <em>Default</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getDefault()
- * @generated
- * @ordered
- */
- protected DefaultValueRule default_;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected PortRuleImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPortPackage.Literals.PORT_RULE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public VisibilityRule getVisibility()
- {
- return visibility;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetVisibility(VisibilityRule newVisibility, NotificationChain msgs)
- {
- VisibilityRule oldVisibility = visibility;
- visibility = newVisibility;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__VISIBILITY, oldVisibility, newVisibility);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setVisibility(VisibilityRule newVisibility)
- {
- if (newVisibility != visibility)
- {
- NotificationChain msgs = null;
- if (visibility != null) {
- msgs = ((InternalEObject) visibility).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__VISIBILITY, null, msgs);
- }
- if (newVisibility != null) {
- msgs = ((InternalEObject) newVisibility).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__VISIBILITY, null, msgs);
- }
- msgs = basicSetVisibility(newVisibility, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__VISIBILITY, newVisibility, newVisibility));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isDerived()
- {
- return derived;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setDerived(boolean newDerived)
- {
- boolean oldDerived = derived;
- derived = newDerived;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__DERIVED, oldDerived, derived));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setName(String newName)
- {
- String oldName = name;
- name = newName;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__NAME, oldName, name));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isConjugated()
- {
- return conjugated;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setConjugated(boolean newConjugated)
- {
- boolean oldConjugated = conjugated;
- conjugated = newConjugated;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__CONJUGATED, oldConjugated, conjugated));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public TypeRule getType()
- {
- return type;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetType(TypeRule newType, NotificationChain msgs)
- {
- TypeRule oldType = type;
- type = newType;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__TYPE, oldType, newType);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setType(TypeRule newType)
- {
- if (newType != type)
- {
- NotificationChain msgs = null;
- if (type != null) {
- msgs = ((InternalEObject) type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__TYPE, null, msgs);
- }
- if (newType != null) {
- msgs = ((InternalEObject) newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__TYPE, null, msgs);
- }
- msgs = basicSetType(newType, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__TYPE, newType, newType));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isTypeUndefined()
- {
- return typeUndefined;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setTypeUndefined(boolean newTypeUndefined)
- {
- boolean oldTypeUndefined = typeUndefined;
- typeUndefined = newTypeUndefined;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__TYPE_UNDEFINED, oldTypeUndefined, typeUndefined));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public MultiplicityRule getMultiplicity()
- {
- return multiplicity;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetMultiplicity(MultiplicityRule newMultiplicity, NotificationChain msgs)
- {
- MultiplicityRule oldMultiplicity = multiplicity;
- multiplicity = newMultiplicity;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__MULTIPLICITY, oldMultiplicity, newMultiplicity);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setMultiplicity(MultiplicityRule newMultiplicity)
- {
- if (newMultiplicity != multiplicity)
- {
- NotificationChain msgs = null;
- if (multiplicity != null) {
- msgs = ((InternalEObject) multiplicity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__MULTIPLICITY, null, msgs);
- }
- if (newMultiplicity != null) {
- msgs = ((InternalEObject) newMultiplicity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__MULTIPLICITY, null, msgs);
- }
- msgs = basicSetMultiplicity(newMultiplicity, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__MULTIPLICITY, newMultiplicity, newMultiplicity));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ModifiersRule getModifiers()
- {
- return modifiers;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetModifiers(ModifiersRule newModifiers, NotificationChain msgs)
- {
- ModifiersRule oldModifiers = modifiers;
- modifiers = newModifiers;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__MODIFIERS, oldModifiers, newModifiers);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setModifiers(ModifiersRule newModifiers)
- {
- if (newModifiers != modifiers)
- {
- NotificationChain msgs = null;
- if (modifiers != null) {
- msgs = ((InternalEObject) modifiers).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__MODIFIERS, null, msgs);
- }
- if (newModifiers != null) {
- msgs = ((InternalEObject) newModifiers).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__MODIFIERS, null, msgs);
- }
- msgs = basicSetModifiers(newModifiers, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__MODIFIERS, newModifiers, newModifiers));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public DefaultValueRule getDefault()
- {
- return default_;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetDefault(DefaultValueRule newDefault, NotificationChain msgs)
- {
- DefaultValueRule oldDefault = default_;
- default_ = newDefault;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__DEFAULT, oldDefault, newDefault);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setDefault(DefaultValueRule newDefault)
- {
- if (newDefault != default_)
- {
- NotificationChain msgs = null;
- if (default_ != null) {
- msgs = ((InternalEObject) default_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__DEFAULT, null, msgs);
- }
- if (newDefault != null) {
- msgs = ((InternalEObject) newDefault).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__DEFAULT, null, msgs);
- }
- msgs = basicSetDefault(newDefault, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__DEFAULT, newDefault, newDefault));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case UmlPortPackage.PORT_RULE__VISIBILITY:
- return basicSetVisibility(null, msgs);
- case UmlPortPackage.PORT_RULE__TYPE:
- return basicSetType(null, msgs);
- case UmlPortPackage.PORT_RULE__MULTIPLICITY:
- return basicSetMultiplicity(null, msgs);
- case UmlPortPackage.PORT_RULE__MODIFIERS:
- return basicSetModifiers(null, msgs);
- case UmlPortPackage.PORT_RULE__DEFAULT:
- return basicSetDefault(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPortPackage.PORT_RULE__VISIBILITY:
- return getVisibility();
- case UmlPortPackage.PORT_RULE__DERIVED:
- return isDerived();
- case UmlPortPackage.PORT_RULE__NAME:
- return getName();
- case UmlPortPackage.PORT_RULE__CONJUGATED:
- return isConjugated();
- case UmlPortPackage.PORT_RULE__TYPE:
- return getType();
- case UmlPortPackage.PORT_RULE__TYPE_UNDEFINED:
- return isTypeUndefined();
- case UmlPortPackage.PORT_RULE__MULTIPLICITY:
- return getMultiplicity();
- case UmlPortPackage.PORT_RULE__MODIFIERS:
- return getModifiers();
- case UmlPortPackage.PORT_RULE__DEFAULT:
- return getDefault();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPortPackage.PORT_RULE__VISIBILITY:
- setVisibility((VisibilityRule) newValue);
- return;
- case UmlPortPackage.PORT_RULE__DERIVED:
- setDerived((Boolean) newValue);
- return;
- case UmlPortPackage.PORT_RULE__NAME:
- setName((String) newValue);
- return;
- case UmlPortPackage.PORT_RULE__CONJUGATED:
- setConjugated((Boolean) newValue);
- return;
- case UmlPortPackage.PORT_RULE__TYPE:
- setType((TypeRule) newValue);
- return;
- case UmlPortPackage.PORT_RULE__TYPE_UNDEFINED:
- setTypeUndefined((Boolean) newValue);
- return;
- case UmlPortPackage.PORT_RULE__MULTIPLICITY:
- setMultiplicity((MultiplicityRule) newValue);
- return;
- case UmlPortPackage.PORT_RULE__MODIFIERS:
- setModifiers((ModifiersRule) newValue);
- return;
- case UmlPortPackage.PORT_RULE__DEFAULT:
- setDefault((DefaultValueRule) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.PORT_RULE__VISIBILITY:
- setVisibility((VisibilityRule) null);
- return;
- case UmlPortPackage.PORT_RULE__DERIVED:
- setDerived(DERIVED_EDEFAULT);
- return;
- case UmlPortPackage.PORT_RULE__NAME:
- setName(NAME_EDEFAULT);
- return;
- case UmlPortPackage.PORT_RULE__CONJUGATED:
- setConjugated(CONJUGATED_EDEFAULT);
- return;
- case UmlPortPackage.PORT_RULE__TYPE:
- setType((TypeRule) null);
- return;
- case UmlPortPackage.PORT_RULE__TYPE_UNDEFINED:
- setTypeUndefined(TYPE_UNDEFINED_EDEFAULT);
- return;
- case UmlPortPackage.PORT_RULE__MULTIPLICITY:
- setMultiplicity((MultiplicityRule) null);
- return;
- case UmlPortPackage.PORT_RULE__MODIFIERS:
- setModifiers((ModifiersRule) null);
- return;
- case UmlPortPackage.PORT_RULE__DEFAULT:
- setDefault((DefaultValueRule) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.PORT_RULE__VISIBILITY:
- return visibility != null;
- case UmlPortPackage.PORT_RULE__DERIVED:
- return derived != DERIVED_EDEFAULT;
- case UmlPortPackage.PORT_RULE__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case UmlPortPackage.PORT_RULE__CONJUGATED:
- return conjugated != CONJUGATED_EDEFAULT;
- case UmlPortPackage.PORT_RULE__TYPE:
- return type != null;
- case UmlPortPackage.PORT_RULE__TYPE_UNDEFINED:
- return typeUndefined != TYPE_UNDEFINED_EDEFAULT;
- case UmlPortPackage.PORT_RULE__MULTIPLICITY:
- return multiplicity != null;
- case UmlPortPackage.PORT_RULE__MODIFIERS:
- return modifiers != null;
- case UmlPortPackage.PORT_RULE__DEFAULT:
- return default_ != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (derived: ");
- result.append(derived);
- result.append(", name: ");
- result.append(name);
- result.append(", conjugated: ");
- result.append(conjugated);
- result.append(", typeUndefined: ");
- result.append(typeUndefined);
- result.append(')');
- return result.toString();
- }
-
-} // PortRuleImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Port Rule</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl#getVisibility <em>Visibility</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl#isDerived <em>Derived</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl#isConjugated <em>Conjugated</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl#getType <em>Type</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl#isTypeUndefined <em>Type Undefined</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl#getMultiplicity <em>Multiplicity</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl#getModifiers <em>Modifiers</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.PortRuleImpl#getDefault <em>Default</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class PortRuleImpl extends MinimalEObjectImpl.Container implements PortRule
+{
+ /**
+ * The cached value of the '{@link #getVisibility() <em>Visibility</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getVisibility()
+ * @generated
+ * @ordered
+ */
+ protected VisibilityRule visibility;
+
+ /**
+ * The default value of the '{@link #isDerived() <em>Derived</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isDerived()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean DERIVED_EDEFAULT = false;
+
+ /**
+ * The cached value of the '{@link #isDerived() <em>Derived</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isDerived()
+ * @generated
+ * @ordered
+ */
+ protected boolean derived = DERIVED_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #isConjugated() <em>Conjugated</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isConjugated()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean CONJUGATED_EDEFAULT = false;
+
+ /**
+ * The cached value of the '{@link #isConjugated() <em>Conjugated</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isConjugated()
+ * @generated
+ * @ordered
+ */
+ protected boolean conjugated = CONJUGATED_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getType() <em>Type</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected TypeRule type;
+
+ /**
+ * The default value of the '{@link #isTypeUndefined() <em>Type Undefined</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isTypeUndefined()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean TYPE_UNDEFINED_EDEFAULT = false;
+
+ /**
+ * The cached value of the '{@link #isTypeUndefined() <em>Type Undefined</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isTypeUndefined()
+ * @generated
+ * @ordered
+ */
+ protected boolean typeUndefined = TYPE_UNDEFINED_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMultiplicity()
+ * @generated
+ * @ordered
+ */
+ protected MultiplicityRule multiplicity;
+
+ /**
+ * The cached value of the '{@link #getModifiers() <em>Modifiers</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getModifiers()
+ * @generated
+ * @ordered
+ */
+ protected ModifiersRule modifiers;
+
+ /**
+ * The cached value of the '{@link #getDefault() <em>Default</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDefault()
+ * @generated
+ * @ordered
+ */
+ protected DefaultValueRule default_;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected PortRuleImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPortPackage.Literals.PORT_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public VisibilityRule getVisibility()
+ {
+ return visibility;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetVisibility(VisibilityRule newVisibility, NotificationChain msgs)
+ {
+ VisibilityRule oldVisibility = visibility;
+ visibility = newVisibility;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__VISIBILITY, oldVisibility, newVisibility);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setVisibility(VisibilityRule newVisibility)
+ {
+ if (newVisibility != visibility)
+ {
+ NotificationChain msgs = null;
+ if (visibility != null)
+ msgs = ((InternalEObject)visibility).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__VISIBILITY, null, msgs);
+ if (newVisibility != null)
+ msgs = ((InternalEObject)newVisibility).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__VISIBILITY, null, msgs);
+ msgs = basicSetVisibility(newVisibility, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__VISIBILITY, newVisibility, newVisibility));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isDerived()
+ {
+ return derived;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDerived(boolean newDerived)
+ {
+ boolean oldDerived = derived;
+ derived = newDerived;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__DERIVED, oldDerived, derived));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isConjugated()
+ {
+ return conjugated;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setConjugated(boolean newConjugated)
+ {
+ boolean oldConjugated = conjugated;
+ conjugated = newConjugated;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__CONJUGATED, oldConjugated, conjugated));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public TypeRule getType()
+ {
+ return type;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetType(TypeRule newType, NotificationChain msgs)
+ {
+ TypeRule oldType = type;
+ type = newType;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__TYPE, oldType, newType);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setType(TypeRule newType)
+ {
+ if (newType != type)
+ {
+ NotificationChain msgs = null;
+ if (type != null)
+ msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__TYPE, null, msgs);
+ if (newType != null)
+ msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__TYPE, null, msgs);
+ msgs = basicSetType(newType, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__TYPE, newType, newType));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isTypeUndefined()
+ {
+ return typeUndefined;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTypeUndefined(boolean newTypeUndefined)
+ {
+ boolean oldTypeUndefined = typeUndefined;
+ typeUndefined = newTypeUndefined;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__TYPE_UNDEFINED, oldTypeUndefined, typeUndefined));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public MultiplicityRule getMultiplicity()
+ {
+ return multiplicity;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetMultiplicity(MultiplicityRule newMultiplicity, NotificationChain msgs)
+ {
+ MultiplicityRule oldMultiplicity = multiplicity;
+ multiplicity = newMultiplicity;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__MULTIPLICITY, oldMultiplicity, newMultiplicity);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setMultiplicity(MultiplicityRule newMultiplicity)
+ {
+ if (newMultiplicity != multiplicity)
+ {
+ NotificationChain msgs = null;
+ if (multiplicity != null)
+ msgs = ((InternalEObject)multiplicity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__MULTIPLICITY, null, msgs);
+ if (newMultiplicity != null)
+ msgs = ((InternalEObject)newMultiplicity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__MULTIPLICITY, null, msgs);
+ msgs = basicSetMultiplicity(newMultiplicity, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__MULTIPLICITY, newMultiplicity, newMultiplicity));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ModifiersRule getModifiers()
+ {
+ return modifiers;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetModifiers(ModifiersRule newModifiers, NotificationChain msgs)
+ {
+ ModifiersRule oldModifiers = modifiers;
+ modifiers = newModifiers;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__MODIFIERS, oldModifiers, newModifiers);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setModifiers(ModifiersRule newModifiers)
+ {
+ if (newModifiers != modifiers)
+ {
+ NotificationChain msgs = null;
+ if (modifiers != null)
+ msgs = ((InternalEObject)modifiers).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__MODIFIERS, null, msgs);
+ if (newModifiers != null)
+ msgs = ((InternalEObject)newModifiers).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__MODIFIERS, null, msgs);
+ msgs = basicSetModifiers(newModifiers, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__MODIFIERS, newModifiers, newModifiers));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DefaultValueRule getDefault()
+ {
+ return default_;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetDefault(DefaultValueRule newDefault, NotificationChain msgs)
+ {
+ DefaultValueRule oldDefault = default_;
+ default_ = newDefault;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__DEFAULT, oldDefault, newDefault);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDefault(DefaultValueRule newDefault)
+ {
+ if (newDefault != default_)
+ {
+ NotificationChain msgs = null;
+ if (default_ != null)
+ msgs = ((InternalEObject)default_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__DEFAULT, null, msgs);
+ if (newDefault != null)
+ msgs = ((InternalEObject)newDefault).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.PORT_RULE__DEFAULT, null, msgs);
+ msgs = basicSetDefault(newDefault, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.PORT_RULE__DEFAULT, newDefault, newDefault));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.PORT_RULE__VISIBILITY:
+ return basicSetVisibility(null, msgs);
+ case UmlPortPackage.PORT_RULE__TYPE:
+ return basicSetType(null, msgs);
+ case UmlPortPackage.PORT_RULE__MULTIPLICITY:
+ return basicSetMultiplicity(null, msgs);
+ case UmlPortPackage.PORT_RULE__MODIFIERS:
+ return basicSetModifiers(null, msgs);
+ case UmlPortPackage.PORT_RULE__DEFAULT:
+ return basicSetDefault(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.PORT_RULE__VISIBILITY:
+ return getVisibility();
+ case UmlPortPackage.PORT_RULE__DERIVED:
+ return isDerived();
+ case UmlPortPackage.PORT_RULE__NAME:
+ return getName();
+ case UmlPortPackage.PORT_RULE__CONJUGATED:
+ return isConjugated();
+ case UmlPortPackage.PORT_RULE__TYPE:
+ return getType();
+ case UmlPortPackage.PORT_RULE__TYPE_UNDEFINED:
+ return isTypeUndefined();
+ case UmlPortPackage.PORT_RULE__MULTIPLICITY:
+ return getMultiplicity();
+ case UmlPortPackage.PORT_RULE__MODIFIERS:
+ return getModifiers();
+ case UmlPortPackage.PORT_RULE__DEFAULT:
+ return getDefault();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.PORT_RULE__VISIBILITY:
+ setVisibility((VisibilityRule)newValue);
+ return;
+ case UmlPortPackage.PORT_RULE__DERIVED:
+ setDerived((Boolean)newValue);
+ return;
+ case UmlPortPackage.PORT_RULE__NAME:
+ setName((String)newValue);
+ return;
+ case UmlPortPackage.PORT_RULE__CONJUGATED:
+ setConjugated((Boolean)newValue);
+ return;
+ case UmlPortPackage.PORT_RULE__TYPE:
+ setType((TypeRule)newValue);
+ return;
+ case UmlPortPackage.PORT_RULE__TYPE_UNDEFINED:
+ setTypeUndefined((Boolean)newValue);
+ return;
+ case UmlPortPackage.PORT_RULE__MULTIPLICITY:
+ setMultiplicity((MultiplicityRule)newValue);
+ return;
+ case UmlPortPackage.PORT_RULE__MODIFIERS:
+ setModifiers((ModifiersRule)newValue);
+ return;
+ case UmlPortPackage.PORT_RULE__DEFAULT:
+ setDefault((DefaultValueRule)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.PORT_RULE__VISIBILITY:
+ setVisibility((VisibilityRule)null);
+ return;
+ case UmlPortPackage.PORT_RULE__DERIVED:
+ setDerived(DERIVED_EDEFAULT);
+ return;
+ case UmlPortPackage.PORT_RULE__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case UmlPortPackage.PORT_RULE__CONJUGATED:
+ setConjugated(CONJUGATED_EDEFAULT);
+ return;
+ case UmlPortPackage.PORT_RULE__TYPE:
+ setType((TypeRule)null);
+ return;
+ case UmlPortPackage.PORT_RULE__TYPE_UNDEFINED:
+ setTypeUndefined(TYPE_UNDEFINED_EDEFAULT);
+ return;
+ case UmlPortPackage.PORT_RULE__MULTIPLICITY:
+ setMultiplicity((MultiplicityRule)null);
+ return;
+ case UmlPortPackage.PORT_RULE__MODIFIERS:
+ setModifiers((ModifiersRule)null);
+ return;
+ case UmlPortPackage.PORT_RULE__DEFAULT:
+ setDefault((DefaultValueRule)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.PORT_RULE__VISIBILITY:
+ return visibility != null;
+ case UmlPortPackage.PORT_RULE__DERIVED:
+ return derived != DERIVED_EDEFAULT;
+ case UmlPortPackage.PORT_RULE__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case UmlPortPackage.PORT_RULE__CONJUGATED:
+ return conjugated != CONJUGATED_EDEFAULT;
+ case UmlPortPackage.PORT_RULE__TYPE:
+ return type != null;
+ case UmlPortPackage.PORT_RULE__TYPE_UNDEFINED:
+ return typeUndefined != TYPE_UNDEFINED_EDEFAULT;
+ case UmlPortPackage.PORT_RULE__MULTIPLICITY:
+ return multiplicity != null;
+ case UmlPortPackage.PORT_RULE__MODIFIERS:
+ return modifiers != null;
+ case UmlPortPackage.PORT_RULE__DEFAULT:
+ return default_ != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (derived: ");
+ result.append(derived);
+ result.append(", name: ");
+ result.append(name);
+ result.append(", conjugated: ");
+ result.append(conjugated);
+ result.append(", typeUndefined: ");
+ result.append(typeUndefined);
+ result.append(')');
+ return result.toString();
+ }
+
+} //PortRuleImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/QualifiedNameImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/QualifiedNameImpl.java
index 3e86d1bdab1..103fda4afc7 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/QualifiedNameImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/QualifiedNameImpl.java
@@ -1,292 +1,260 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-
-import org.eclipse.uml2.uml.Namespace;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Qualified Name</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.QualifiedNameImpl#getPath <em>Path</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.QualifiedNameImpl#getRemaining <em>Remaining</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class QualifiedNameImpl extends MinimalEObjectImpl.Container implements QualifiedName
-{
- /**
- * The cached value of the '{@link #getPath() <em>Path</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getPath()
- * @generated
- * @ordered
- */
- protected Namespace path;
-
- /**
- * The cached value of the '{@link #getRemaining() <em>Remaining</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getRemaining()
- * @generated
- * @ordered
- */
- protected QualifiedName remaining;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected QualifiedNameImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPortPackage.Literals.QUALIFIED_NAME;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Namespace getPath()
- {
- if (path != null && path.eIsProxy())
- {
- InternalEObject oldPath = (InternalEObject) path;
- path = (Namespace) eResolveProxy(oldPath);
- if (path != oldPath)
- {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPortPackage.QUALIFIED_NAME__PATH, oldPath, path));
- }
- }
- }
- return path;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Namespace basicGetPath()
- {
- return path;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setPath(Namespace newPath)
- {
- Namespace oldPath = path;
- path = newPath;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.QUALIFIED_NAME__PATH, oldPath, path));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public QualifiedName getRemaining()
- {
- return remaining;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetRemaining(QualifiedName newRemaining, NotificationChain msgs)
- {
- QualifiedName oldRemaining = remaining;
- remaining = newRemaining;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.QUALIFIED_NAME__REMAINING, oldRemaining, newRemaining);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setRemaining(QualifiedName newRemaining)
- {
- if (newRemaining != remaining)
- {
- NotificationChain msgs = null;
- if (remaining != null) {
- msgs = ((InternalEObject) remaining).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.QUALIFIED_NAME__REMAINING, null, msgs);
- }
- if (newRemaining != null) {
- msgs = ((InternalEObject) newRemaining).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.QUALIFIED_NAME__REMAINING, null, msgs);
- }
- msgs = basicSetRemaining(newRemaining, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.QUALIFIED_NAME__REMAINING, newRemaining, newRemaining));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case UmlPortPackage.QUALIFIED_NAME__REMAINING:
- return basicSetRemaining(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPortPackage.QUALIFIED_NAME__PATH:
- if (resolve) {
- return getPath();
- }
- return basicGetPath();
- case UmlPortPackage.QUALIFIED_NAME__REMAINING:
- return getRemaining();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPortPackage.QUALIFIED_NAME__PATH:
- setPath((Namespace) newValue);
- return;
- case UmlPortPackage.QUALIFIED_NAME__REMAINING:
- setRemaining((QualifiedName) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.QUALIFIED_NAME__PATH:
- setPath((Namespace) null);
- return;
- case UmlPortPackage.QUALIFIED_NAME__REMAINING:
- setRemaining((QualifiedName) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.QUALIFIED_NAME__PATH:
- return path != null;
- case UmlPortPackage.QUALIFIED_NAME__REMAINING:
- return remaining != null;
- }
- return super.eIsSet(featureID);
- }
-
-} // QualifiedNameImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+
+import org.eclipse.uml2.uml.Namespace;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Qualified Name</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.QualifiedNameImpl#getPath <em>Path</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.QualifiedNameImpl#getRemaining <em>Remaining</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class QualifiedNameImpl extends MinimalEObjectImpl.Container implements QualifiedName
+{
+ /**
+ * The cached value of the '{@link #getPath() <em>Path</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPath()
+ * @generated
+ * @ordered
+ */
+ protected Namespace path;
+
+ /**
+ * The cached value of the '{@link #getRemaining() <em>Remaining</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRemaining()
+ * @generated
+ * @ordered
+ */
+ protected QualifiedName remaining;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected QualifiedNameImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPortPackage.Literals.QUALIFIED_NAME;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Namespace getPath()
+ {
+ if (path != null && path.eIsProxy())
+ {
+ InternalEObject oldPath = (InternalEObject)path;
+ path = (Namespace)eResolveProxy(oldPath);
+ if (path != oldPath)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPortPackage.QUALIFIED_NAME__PATH, oldPath, path));
+ }
+ }
+ return path;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Namespace basicGetPath()
+ {
+ return path;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPath(Namespace newPath)
+ {
+ Namespace oldPath = path;
+ path = newPath;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.QUALIFIED_NAME__PATH, oldPath, path));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public QualifiedName getRemaining()
+ {
+ return remaining;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetRemaining(QualifiedName newRemaining, NotificationChain msgs)
+ {
+ QualifiedName oldRemaining = remaining;
+ remaining = newRemaining;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.QUALIFIED_NAME__REMAINING, oldRemaining, newRemaining);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRemaining(QualifiedName newRemaining)
+ {
+ if (newRemaining != remaining)
+ {
+ NotificationChain msgs = null;
+ if (remaining != null)
+ msgs = ((InternalEObject)remaining).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.QUALIFIED_NAME__REMAINING, null, msgs);
+ if (newRemaining != null)
+ msgs = ((InternalEObject)newRemaining).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.QUALIFIED_NAME__REMAINING, null, msgs);
+ msgs = basicSetRemaining(newRemaining, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.QUALIFIED_NAME__REMAINING, newRemaining, newRemaining));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.QUALIFIED_NAME__REMAINING:
+ return basicSetRemaining(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.QUALIFIED_NAME__PATH:
+ if (resolve) return getPath();
+ return basicGetPath();
+ case UmlPortPackage.QUALIFIED_NAME__REMAINING:
+ return getRemaining();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.QUALIFIED_NAME__PATH:
+ setPath((Namespace)newValue);
+ return;
+ case UmlPortPackage.QUALIFIED_NAME__REMAINING:
+ setRemaining((QualifiedName)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.QUALIFIED_NAME__PATH:
+ setPath((Namespace)null);
+ return;
+ case UmlPortPackage.QUALIFIED_NAME__REMAINING:
+ setRemaining((QualifiedName)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.QUALIFIED_NAME__PATH:
+ return path != null;
+ case UmlPortPackage.QUALIFIED_NAME__REMAINING:
+ return remaining != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //QualifiedNameImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/RealValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/RealValueImpl.java
index 8af623715c8..3b01ff58dec 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/RealValueImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/RealValueImpl.java
@@ -1,255 +1,232 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Real Value</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RealValueImpl#getInteger <em>Integer</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RealValueImpl#getFraction <em>Fraction</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class RealValueImpl extends ValueImpl implements RealValue
-{
- /**
- * The default value of the '{@link #getInteger() <em>Integer</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getInteger()
- * @generated
- * @ordered
- */
- protected static final int INTEGER_EDEFAULT = 0;
-
- /**
- * The cached value of the '{@link #getInteger() <em>Integer</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getInteger()
- * @generated
- * @ordered
- */
- protected int integer = INTEGER_EDEFAULT;
-
- /**
- * The default value of the '{@link #getFraction() <em>Fraction</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getFraction()
- * @generated
- * @ordered
- */
- protected static final int FRACTION_EDEFAULT = 0;
-
- /**
- * The cached value of the '{@link #getFraction() <em>Fraction</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getFraction()
- * @generated
- * @ordered
- */
- protected int fraction = FRACTION_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected RealValueImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPortPackage.Literals.REAL_VALUE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int getInteger()
- {
- return integer;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setInteger(int newInteger)
- {
- int oldInteger = integer;
- integer = newInteger;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.REAL_VALUE__INTEGER, oldInteger, integer));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int getFraction()
- {
- return fraction;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setFraction(int newFraction)
- {
- int oldFraction = fraction;
- fraction = newFraction;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.REAL_VALUE__FRACTION, oldFraction, fraction));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPortPackage.REAL_VALUE__INTEGER:
- return getInteger();
- case UmlPortPackage.REAL_VALUE__FRACTION:
- return getFraction();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPortPackage.REAL_VALUE__INTEGER:
- setInteger((Integer) newValue);
- return;
- case UmlPortPackage.REAL_VALUE__FRACTION:
- setFraction((Integer) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.REAL_VALUE__INTEGER:
- setInteger(INTEGER_EDEFAULT);
- return;
- case UmlPortPackage.REAL_VALUE__FRACTION:
- setFraction(FRACTION_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.REAL_VALUE__INTEGER:
- return integer != INTEGER_EDEFAULT;
- case UmlPortPackage.REAL_VALUE__FRACTION:
- return fraction != FRACTION_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (integer: ");
- result.append(integer);
- result.append(", fraction: ");
- result.append(fraction);
- result.append(')');
- return result.toString();
- }
-
-} // RealValueImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Real Value</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RealValueImpl#getInteger <em>Integer</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RealValueImpl#getFraction <em>Fraction</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class RealValueImpl extends ValueImpl implements RealValue
+{
+ /**
+ * The default value of the '{@link #getInteger() <em>Integer</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getInteger()
+ * @generated
+ * @ordered
+ */
+ protected static final int INTEGER_EDEFAULT = 0;
+
+ /**
+ * The cached value of the '{@link #getInteger() <em>Integer</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getInteger()
+ * @generated
+ * @ordered
+ */
+ protected int integer = INTEGER_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getFraction() <em>Fraction</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFraction()
+ * @generated
+ * @ordered
+ */
+ protected static final int FRACTION_EDEFAULT = 0;
+
+ /**
+ * The cached value of the '{@link #getFraction() <em>Fraction</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFraction()
+ * @generated
+ * @ordered
+ */
+ protected int fraction = FRACTION_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected RealValueImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPortPackage.Literals.REAL_VALUE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getInteger()
+ {
+ return integer;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setInteger(int newInteger)
+ {
+ int oldInteger = integer;
+ integer = newInteger;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.REAL_VALUE__INTEGER, oldInteger, integer));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getFraction()
+ {
+ return fraction;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setFraction(int newFraction)
+ {
+ int oldFraction = fraction;
+ fraction = newFraction;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.REAL_VALUE__FRACTION, oldFraction, fraction));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.REAL_VALUE__INTEGER:
+ return getInteger();
+ case UmlPortPackage.REAL_VALUE__FRACTION:
+ return getFraction();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.REAL_VALUE__INTEGER:
+ setInteger((Integer)newValue);
+ return;
+ case UmlPortPackage.REAL_VALUE__FRACTION:
+ setFraction((Integer)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.REAL_VALUE__INTEGER:
+ setInteger(INTEGER_EDEFAULT);
+ return;
+ case UmlPortPackage.REAL_VALUE__FRACTION:
+ setFraction(FRACTION_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.REAL_VALUE__INTEGER:
+ return integer != INTEGER_EDEFAULT;
+ case UmlPortPackage.REAL_VALUE__FRACTION:
+ return fraction != FRACTION_EDEFAULT;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (integer: ");
+ result.append(integer);
+ result.append(", fraction: ");
+ result.append(fraction);
+ result.append(')');
+ return result.toString();
+ }
+
+} //RealValueImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/RedefinesRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/RedefinesRuleImpl.java
index 78113d1489a..ab5ebe89e12 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/RedefinesRuleImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/RedefinesRuleImpl.java
@@ -1,190 +1,174 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-
-import org.eclipse.uml2.uml.Port;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Redefines Rule</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RedefinesRuleImpl#getPort <em>Port</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class RedefinesRuleImpl extends MinimalEObjectImpl.Container implements RedefinesRule
-{
- /**
- * The cached value of the '{@link #getPort() <em>Port</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getPort()
- * @generated
- * @ordered
- */
- protected Port port;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected RedefinesRuleImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPortPackage.Literals.REDEFINES_RULE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Port getPort()
- {
- if (port != null && port.eIsProxy())
- {
- InternalEObject oldPort = (InternalEObject) port;
- port = (Port) eResolveProxy(oldPort);
- if (port != oldPort)
- {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPortPackage.REDEFINES_RULE__PORT, oldPort, port));
- }
- }
- }
- return port;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Port basicGetPort()
- {
- return port;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setPort(Port newPort)
- {
- Port oldPort = port;
- port = newPort;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.REDEFINES_RULE__PORT, oldPort, port));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPortPackage.REDEFINES_RULE__PORT:
- if (resolve) {
- return getPort();
- }
- return basicGetPort();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPortPackage.REDEFINES_RULE__PORT:
- setPort((Port) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.REDEFINES_RULE__PORT:
- setPort((Port) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.REDEFINES_RULE__PORT:
- return port != null;
- }
- return super.eIsSet(featureID);
- }
-
-} // RedefinesRuleImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+
+import org.eclipse.uml2.uml.Port;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Redefines Rule</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.RedefinesRuleImpl#getPort <em>Port</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class RedefinesRuleImpl extends MinimalEObjectImpl.Container implements RedefinesRule
+{
+ /**
+ * The cached value of the '{@link #getPort() <em>Port</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPort()
+ * @generated
+ * @ordered
+ */
+ protected Port port;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected RedefinesRuleImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPortPackage.Literals.REDEFINES_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Port getPort()
+ {
+ if (port != null && port.eIsProxy())
+ {
+ InternalEObject oldPort = (InternalEObject)port;
+ port = (Port)eResolveProxy(oldPort);
+ if (port != oldPort)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPortPackage.REDEFINES_RULE__PORT, oldPort, port));
+ }
+ }
+ return port;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Port basicGetPort()
+ {
+ return port;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPort(Port newPort)
+ {
+ Port oldPort = port;
+ port = newPort;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.REDEFINES_RULE__PORT, oldPort, port));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.REDEFINES_RULE__PORT:
+ if (resolve) return getPort();
+ return basicGetPort();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.REDEFINES_RULE__PORT:
+ setPort((Port)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.REDEFINES_RULE__PORT:
+ setPort((Port)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.REDEFINES_RULE__PORT:
+ return port != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //RedefinesRuleImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/StringValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/StringValueImpl.java
index 73f4d807b5b..cfc554ac95d 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/StringValueImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/StringValueImpl.java
@@ -1,192 +1,176 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>String Value</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.StringValueImpl#getLiteralString <em>Literal String</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class StringValueImpl extends ValueImpl implements StringValue
-{
- /**
- * The default value of the '{@link #getLiteralString() <em>Literal String</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getLiteralString()
- * @generated
- * @ordered
- */
- protected static final String LITERAL_STRING_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getLiteralString() <em>Literal String</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getLiteralString()
- * @generated
- * @ordered
- */
- protected String literalString = LITERAL_STRING_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected StringValueImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPortPackage.Literals.STRING_VALUE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getLiteralString()
- {
- return literalString;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setLiteralString(String newLiteralString)
- {
- String oldLiteralString = literalString;
- literalString = newLiteralString;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.STRING_VALUE__LITERAL_STRING, oldLiteralString, literalString));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPortPackage.STRING_VALUE__LITERAL_STRING:
- return getLiteralString();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPortPackage.STRING_VALUE__LITERAL_STRING:
- setLiteralString((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.STRING_VALUE__LITERAL_STRING:
- setLiteralString(LITERAL_STRING_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.STRING_VALUE__LITERAL_STRING:
- return LITERAL_STRING_EDEFAULT == null ? literalString != null : !LITERAL_STRING_EDEFAULT.equals(literalString);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (literalString: ");
- result.append(literalString);
- result.append(')');
- return result.toString();
- }
-
-} // StringValueImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>String Value</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.StringValueImpl#getLiteralString <em>Literal String</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class StringValueImpl extends ValueImpl implements StringValue
+{
+ /**
+ * The default value of the '{@link #getLiteralString() <em>Literal String</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLiteralString()
+ * @generated
+ * @ordered
+ */
+ protected static final String LITERAL_STRING_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getLiteralString() <em>Literal String</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLiteralString()
+ * @generated
+ * @ordered
+ */
+ protected String literalString = LITERAL_STRING_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected StringValueImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPortPackage.Literals.STRING_VALUE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteralString()
+ {
+ return literalString;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setLiteralString(String newLiteralString)
+ {
+ String oldLiteralString = literalString;
+ literalString = newLiteralString;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.STRING_VALUE__LITERAL_STRING, oldLiteralString, literalString));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.STRING_VALUE__LITERAL_STRING:
+ return getLiteralString();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.STRING_VALUE__LITERAL_STRING:
+ setLiteralString((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.STRING_VALUE__LITERAL_STRING:
+ setLiteralString(LITERAL_STRING_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.STRING_VALUE__LITERAL_STRING:
+ return LITERAL_STRING_EDEFAULT == null ? literalString != null : !LITERAL_STRING_EDEFAULT.equals(literalString);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (literalString: ");
+ result.append(literalString);
+ result.append(')');
+ return result.toString();
+ }
+
+} //StringValueImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/SubsetsRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/SubsetsRuleImpl.java
index 73059588813..edac6f37130 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/SubsetsRuleImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/SubsetsRuleImpl.java
@@ -1,190 +1,174 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-
-import org.eclipse.uml2.uml.Port;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Subsets Rule</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.SubsetsRuleImpl#getPort <em>Port</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class SubsetsRuleImpl extends MinimalEObjectImpl.Container implements SubsetsRule
-{
- /**
- * The cached value of the '{@link #getPort() <em>Port</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getPort()
- * @generated
- * @ordered
- */
- protected Port port;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected SubsetsRuleImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPortPackage.Literals.SUBSETS_RULE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Port getPort()
- {
- if (port != null && port.eIsProxy())
- {
- InternalEObject oldPort = (InternalEObject) port;
- port = (Port) eResolveProxy(oldPort);
- if (port != oldPort)
- {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPortPackage.SUBSETS_RULE__PORT, oldPort, port));
- }
- }
- }
- return port;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Port basicGetPort()
- {
- return port;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setPort(Port newPort)
- {
- Port oldPort = port;
- port = newPort;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.SUBSETS_RULE__PORT, oldPort, port));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPortPackage.SUBSETS_RULE__PORT:
- if (resolve) {
- return getPort();
- }
- return basicGetPort();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPortPackage.SUBSETS_RULE__PORT:
- setPort((Port) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.SUBSETS_RULE__PORT:
- setPort((Port) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.SUBSETS_RULE__PORT:
- return port != null;
- }
- return super.eIsSet(featureID);
- }
-
-} // SubsetsRuleImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+
+import org.eclipse.uml2.uml.Port;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Subsets Rule</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.SubsetsRuleImpl#getPort <em>Port</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class SubsetsRuleImpl extends MinimalEObjectImpl.Container implements SubsetsRule
+{
+ /**
+ * The cached value of the '{@link #getPort() <em>Port</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPort()
+ * @generated
+ * @ordered
+ */
+ protected Port port;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected SubsetsRuleImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPortPackage.Literals.SUBSETS_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Port getPort()
+ {
+ if (port != null && port.eIsProxy())
+ {
+ InternalEObject oldPort = (InternalEObject)port;
+ port = (Port)eResolveProxy(oldPort);
+ if (port != oldPort)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPortPackage.SUBSETS_RULE__PORT, oldPort, port));
+ }
+ }
+ return port;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Port basicGetPort()
+ {
+ return port;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPort(Port newPort)
+ {
+ Port oldPort = port;
+ port = newPort;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.SUBSETS_RULE__PORT, oldPort, port));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.SUBSETS_RULE__PORT:
+ if (resolve) return getPort();
+ return basicGetPort();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.SUBSETS_RULE__PORT:
+ setPort((Port)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.SUBSETS_RULE__PORT:
+ setPort((Port)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.SUBSETS_RULE__PORT:
+ return port != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //SubsetsRuleImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/TypeRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/TypeRuleImpl.java
index d6585afba4e..198fdf19c1e 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/TypeRuleImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/TypeRuleImpl.java
@@ -1,293 +1,261 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-
-import org.eclipse.uml2.uml.Classifier;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Type Rule</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.TypeRuleImpl#getPath <em>Path</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.TypeRuleImpl#getType <em>Type</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class TypeRuleImpl extends MinimalEObjectImpl.Container implements TypeRule
-{
- /**
- * The cached value of the '{@link #getPath() <em>Path</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getPath()
- * @generated
- * @ordered
- */
- protected QualifiedName path;
-
- /**
- * The cached value of the '{@link #getType() <em>Type</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getType()
- * @generated
- * @ordered
- */
- protected Classifier type;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected TypeRuleImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPortPackage.Literals.TYPE_RULE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public QualifiedName getPath()
- {
- return path;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetPath(QualifiedName newPath, NotificationChain msgs)
- {
- QualifiedName oldPath = path;
- path = newPath;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.TYPE_RULE__PATH, oldPath, newPath);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setPath(QualifiedName newPath)
- {
- if (newPath != path)
- {
- NotificationChain msgs = null;
- if (path != null) {
- msgs = ((InternalEObject) path).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.TYPE_RULE__PATH, null, msgs);
- }
- if (newPath != null) {
- msgs = ((InternalEObject) newPath).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.TYPE_RULE__PATH, null, msgs);
- }
- msgs = basicSetPath(newPath, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.TYPE_RULE__PATH, newPath, newPath));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Classifier getType()
- {
- if (type != null && type.eIsProxy())
- {
- InternalEObject oldType = (InternalEObject) type;
- type = (Classifier) eResolveProxy(oldType);
- if (type != oldType)
- {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPortPackage.TYPE_RULE__TYPE, oldType, type));
- }
- }
- }
- return type;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Classifier basicGetType()
- {
- return type;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setType(Classifier newType)
- {
- Classifier oldType = type;
- type = newType;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.TYPE_RULE__TYPE, oldType, type));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case UmlPortPackage.TYPE_RULE__PATH:
- return basicSetPath(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPortPackage.TYPE_RULE__PATH:
- return getPath();
- case UmlPortPackage.TYPE_RULE__TYPE:
- if (resolve) {
- return getType();
- }
- return basicGetType();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPortPackage.TYPE_RULE__PATH:
- setPath((QualifiedName) newValue);
- return;
- case UmlPortPackage.TYPE_RULE__TYPE:
- setType((Classifier) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.TYPE_RULE__PATH:
- setPath((QualifiedName) null);
- return;
- case UmlPortPackage.TYPE_RULE__TYPE:
- setType((Classifier) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.TYPE_RULE__PATH:
- return path != null;
- case UmlPortPackage.TYPE_RULE__TYPE:
- return type != null;
- }
- return super.eIsSet(featureID);
- }
-
-} // TypeRuleImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+
+import org.eclipse.uml2.uml.Classifier;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Type Rule</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.TypeRuleImpl#getPath <em>Path</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.TypeRuleImpl#getType <em>Type</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class TypeRuleImpl extends MinimalEObjectImpl.Container implements TypeRule
+{
+ /**
+ * The cached value of the '{@link #getPath() <em>Path</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPath()
+ * @generated
+ * @ordered
+ */
+ protected QualifiedName path;
+
+ /**
+ * The cached value of the '{@link #getType() <em>Type</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected Classifier type;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected TypeRuleImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPortPackage.Literals.TYPE_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public QualifiedName getPath()
+ {
+ return path;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetPath(QualifiedName newPath, NotificationChain msgs)
+ {
+ QualifiedName oldPath = path;
+ path = newPath;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPortPackage.TYPE_RULE__PATH, oldPath, newPath);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPath(QualifiedName newPath)
+ {
+ if (newPath != path)
+ {
+ NotificationChain msgs = null;
+ if (path != null)
+ msgs = ((InternalEObject)path).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.TYPE_RULE__PATH, null, msgs);
+ if (newPath != null)
+ msgs = ((InternalEObject)newPath).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPortPackage.TYPE_RULE__PATH, null, msgs);
+ msgs = basicSetPath(newPath, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.TYPE_RULE__PATH, newPath, newPath));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Classifier getType()
+ {
+ if (type != null && type.eIsProxy())
+ {
+ InternalEObject oldType = (InternalEObject)type;
+ type = (Classifier)eResolveProxy(oldType);
+ if (type != oldType)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPortPackage.TYPE_RULE__TYPE, oldType, type));
+ }
+ }
+ return type;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Classifier basicGetType()
+ {
+ return type;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setType(Classifier newType)
+ {
+ Classifier oldType = type;
+ type = newType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.TYPE_RULE__TYPE, oldType, type));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.TYPE_RULE__PATH:
+ return basicSetPath(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.TYPE_RULE__PATH:
+ return getPath();
+ case UmlPortPackage.TYPE_RULE__TYPE:
+ if (resolve) return getType();
+ return basicGetType();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.TYPE_RULE__PATH:
+ setPath((QualifiedName)newValue);
+ return;
+ case UmlPortPackage.TYPE_RULE__TYPE:
+ setType((Classifier)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.TYPE_RULE__PATH:
+ setPath((QualifiedName)null);
+ return;
+ case UmlPortPackage.TYPE_RULE__TYPE:
+ setType((Classifier)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.TYPE_RULE__PATH:
+ return path != null;
+ case UmlPortPackage.TYPE_RULE__TYPE:
+ return type != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //TypeRuleImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/UmlPortFactoryImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/UmlPortFactoryImpl.java
index b1e97b2b4e0..a75e48052a1 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/UmlPortFactoryImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/UmlPortFactoryImpl.java
@@ -1,493 +1,419 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-
-import org.eclipse.emf.ecore.plugin.EcorePlugin;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.*;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class UmlPortFactoryImpl extends EFactoryImpl implements UmlPortFactory
-{
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static UmlPortFactory init()
- {
- try
- {
- UmlPortFactory theUmlPortFactory = (UmlPortFactory) EPackage.Registry.INSTANCE.getEFactory(UmlPortPackage.eNS_URI);
- if (theUmlPortFactory != null)
- {
- return theUmlPortFactory;
- }
- } catch (Exception exception)
- {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new UmlPortFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public UmlPortFactoryImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass)
- {
- switch (eClass.getClassifierID())
- {
- case UmlPortPackage.PORT_RULE:
- return createPortRule();
- case UmlPortPackage.VISIBILITY_RULE:
- return createVisibilityRule();
- case UmlPortPackage.TYPE_RULE:
- return createTypeRule();
- case UmlPortPackage.QUALIFIED_NAME:
- return createQualifiedName();
- case UmlPortPackage.MULTIPLICITY_RULE:
- return createMultiplicityRule();
- case UmlPortPackage.BOUND_SPECIFICATION:
- return createBoundSpecification();
- case UmlPortPackage.MODIFIERS_RULE:
- return createModifiersRule();
- case UmlPortPackage.MODIFIER_SPECIFICATION:
- return createModifierSpecification();
- case UmlPortPackage.REDEFINES_RULE:
- return createRedefinesRule();
- case UmlPortPackage.SUBSETS_RULE:
- return createSubsetsRule();
- case UmlPortPackage.DEFAULT_VALUE_RULE:
- return createDefaultValueRule();
- case UmlPortPackage.VALUE:
- return createValue();
- case UmlPortPackage.INT_VALUE:
- return createIntValue();
- case UmlPortPackage.STRING_VALUE:
- return createStringValue();
- case UmlPortPackage.BOOLEAN_VALUE:
- return createBooleanValue();
- case UmlPortPackage.REAL_VALUE:
- return createRealValue();
- case UmlPortPackage.NULL_VALUE:
- return createNullValue();
- case UmlPortPackage.NO_VALUE:
- return createNoValue();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object createFromString(EDataType eDataType, String initialValue)
- {
- switch (eDataType.getClassifierID())
- {
- case UmlPortPackage.VISIBILITY_KIND:
- return createVisibilityKindFromString(eDataType, initialValue);
- case UmlPortPackage.MODIFIER_KIND:
- return createModifierKindFromString(eDataType, initialValue);
- case UmlPortPackage.BOOLEAN_LITERALS:
- return createBooleanLiteralsFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String convertToString(EDataType eDataType, Object instanceValue)
- {
- switch (eDataType.getClassifierID())
- {
- case UmlPortPackage.VISIBILITY_KIND:
- return convertVisibilityKindToString(eDataType, instanceValue);
- case UmlPortPackage.MODIFIER_KIND:
- return convertModifierKindToString(eDataType, instanceValue);
- case UmlPortPackage.BOOLEAN_LITERALS:
- return convertBooleanLiteralsToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public PortRule createPortRule()
- {
- PortRuleImpl portRule = new PortRuleImpl();
- return portRule;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public VisibilityRule createVisibilityRule()
- {
- VisibilityRuleImpl visibilityRule = new VisibilityRuleImpl();
- return visibilityRule;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public TypeRule createTypeRule()
- {
- TypeRuleImpl typeRule = new TypeRuleImpl();
- return typeRule;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public QualifiedName createQualifiedName()
- {
- QualifiedNameImpl qualifiedName = new QualifiedNameImpl();
- return qualifiedName;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public MultiplicityRule createMultiplicityRule()
- {
- MultiplicityRuleImpl multiplicityRule = new MultiplicityRuleImpl();
- return multiplicityRule;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public BoundSpecification createBoundSpecification()
- {
- BoundSpecificationImpl boundSpecification = new BoundSpecificationImpl();
- return boundSpecification;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ModifiersRule createModifiersRule()
- {
- ModifiersRuleImpl modifiersRule = new ModifiersRuleImpl();
- return modifiersRule;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ModifierSpecification createModifierSpecification()
- {
- ModifierSpecificationImpl modifierSpecification = new ModifierSpecificationImpl();
- return modifierSpecification;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public RedefinesRule createRedefinesRule()
- {
- RedefinesRuleImpl redefinesRule = new RedefinesRuleImpl();
- return redefinesRule;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public SubsetsRule createSubsetsRule()
- {
- SubsetsRuleImpl subsetsRule = new SubsetsRuleImpl();
- return subsetsRule;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public DefaultValueRule createDefaultValueRule()
- {
- DefaultValueRuleImpl defaultValueRule = new DefaultValueRuleImpl();
- return defaultValueRule;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Value createValue()
- {
- ValueImpl value = new ValueImpl();
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public IntValue createIntValue()
- {
- IntValueImpl intValue = new IntValueImpl();
- return intValue;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public StringValue createStringValue()
- {
- StringValueImpl stringValue = new StringValueImpl();
- return stringValue;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public BooleanValue createBooleanValue()
- {
- BooleanValueImpl booleanValue = new BooleanValueImpl();
- return booleanValue;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public RealValue createRealValue()
- {
- RealValueImpl realValue = new RealValueImpl();
- return realValue;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NullValue createNullValue()
- {
- NullValueImpl nullValue = new NullValueImpl();
- return nullValue;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NoValue createNoValue()
- {
- NoValueImpl noValue = new NoValueImpl();
- return noValue;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public VisibilityKind createVisibilityKindFromString(EDataType eDataType, String initialValue)
- {
- VisibilityKind result = VisibilityKind.get(initialValue);
- if (result == null) {
- throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- }
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String convertVisibilityKindToString(EDataType eDataType, Object instanceValue)
- {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ModifierKind createModifierKindFromString(EDataType eDataType, String initialValue)
- {
- ModifierKind result = ModifierKind.get(initialValue);
- if (result == null) {
- throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- }
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String convertModifierKindToString(EDataType eDataType, Object instanceValue)
- {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public BooleanLiterals createBooleanLiteralsFromString(EDataType eDataType, String initialValue)
- {
- BooleanLiterals result = BooleanLiterals.get(initialValue);
- if (result == null) {
- throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- }
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String convertBooleanLiteralsToString(EDataType eDataType, Object instanceValue)
- {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public UmlPortPackage getUmlPortPackage()
- {
- return (UmlPortPackage) getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static UmlPortPackage getPackage()
- {
- return UmlPortPackage.eINSTANCE;
- }
-
-} // UmlPortFactoryImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class UmlPortFactoryImpl extends EFactoryImpl implements UmlPortFactory
+{
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static UmlPortFactory init()
+ {
+ try
+ {
+ UmlPortFactory theUmlPortFactory = (UmlPortFactory)EPackage.Registry.INSTANCE.getEFactory(UmlPortPackage.eNS_URI);
+ if (theUmlPortFactory != null)
+ {
+ return theUmlPortFactory;
+ }
+ }
+ catch (Exception exception)
+ {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new UmlPortFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public UmlPortFactoryImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass)
+ {
+ switch (eClass.getClassifierID())
+ {
+ case UmlPortPackage.PORT_RULE: return createPortRule();
+ case UmlPortPackage.VISIBILITY_RULE: return createVisibilityRule();
+ case UmlPortPackage.TYPE_RULE: return createTypeRule();
+ case UmlPortPackage.QUALIFIED_NAME: return createQualifiedName();
+ case UmlPortPackage.MULTIPLICITY_RULE: return createMultiplicityRule();
+ case UmlPortPackage.BOUND_SPECIFICATION: return createBoundSpecification();
+ case UmlPortPackage.MODIFIERS_RULE: return createModifiersRule();
+ case UmlPortPackage.MODIFIER_SPECIFICATION: return createModifierSpecification();
+ case UmlPortPackage.REDEFINES_RULE: return createRedefinesRule();
+ case UmlPortPackage.SUBSETS_RULE: return createSubsetsRule();
+ case UmlPortPackage.DEFAULT_VALUE_RULE: return createDefaultValueRule();
+ case UmlPortPackage.VALUE: return createValue();
+ case UmlPortPackage.INT_VALUE: return createIntValue();
+ case UmlPortPackage.STRING_VALUE: return createStringValue();
+ case UmlPortPackage.BOOLEAN_VALUE: return createBooleanValue();
+ case UmlPortPackage.REAL_VALUE: return createRealValue();
+ case UmlPortPackage.NULL_VALUE: return createNullValue();
+ case UmlPortPackage.NO_VALUE: return createNoValue();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object createFromString(EDataType eDataType, String initialValue)
+ {
+ switch (eDataType.getClassifierID())
+ {
+ case UmlPortPackage.VISIBILITY_KIND:
+ return createVisibilityKindFromString(eDataType, initialValue);
+ case UmlPortPackage.MODIFIER_KIND:
+ return createModifierKindFromString(eDataType, initialValue);
+ case UmlPortPackage.BOOLEAN_LITERALS:
+ return createBooleanLiteralsFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String convertToString(EDataType eDataType, Object instanceValue)
+ {
+ switch (eDataType.getClassifierID())
+ {
+ case UmlPortPackage.VISIBILITY_KIND:
+ return convertVisibilityKindToString(eDataType, instanceValue);
+ case UmlPortPackage.MODIFIER_KIND:
+ return convertModifierKindToString(eDataType, instanceValue);
+ case UmlPortPackage.BOOLEAN_LITERALS:
+ return convertBooleanLiteralsToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public PortRule createPortRule()
+ {
+ PortRuleImpl portRule = new PortRuleImpl();
+ return portRule;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public VisibilityRule createVisibilityRule()
+ {
+ VisibilityRuleImpl visibilityRule = new VisibilityRuleImpl();
+ return visibilityRule;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public TypeRule createTypeRule()
+ {
+ TypeRuleImpl typeRule = new TypeRuleImpl();
+ return typeRule;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public QualifiedName createQualifiedName()
+ {
+ QualifiedNameImpl qualifiedName = new QualifiedNameImpl();
+ return qualifiedName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public MultiplicityRule createMultiplicityRule()
+ {
+ MultiplicityRuleImpl multiplicityRule = new MultiplicityRuleImpl();
+ return multiplicityRule;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public BoundSpecification createBoundSpecification()
+ {
+ BoundSpecificationImpl boundSpecification = new BoundSpecificationImpl();
+ return boundSpecification;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ModifiersRule createModifiersRule()
+ {
+ ModifiersRuleImpl modifiersRule = new ModifiersRuleImpl();
+ return modifiersRule;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ModifierSpecification createModifierSpecification()
+ {
+ ModifierSpecificationImpl modifierSpecification = new ModifierSpecificationImpl();
+ return modifierSpecification;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RedefinesRule createRedefinesRule()
+ {
+ RedefinesRuleImpl redefinesRule = new RedefinesRuleImpl();
+ return redefinesRule;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SubsetsRule createSubsetsRule()
+ {
+ SubsetsRuleImpl subsetsRule = new SubsetsRuleImpl();
+ return subsetsRule;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DefaultValueRule createDefaultValueRule()
+ {
+ DefaultValueRuleImpl defaultValueRule = new DefaultValueRuleImpl();
+ return defaultValueRule;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Value createValue()
+ {
+ ValueImpl value = new ValueImpl();
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IntValue createIntValue()
+ {
+ IntValueImpl intValue = new IntValueImpl();
+ return intValue;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public StringValue createStringValue()
+ {
+ StringValueImpl stringValue = new StringValueImpl();
+ return stringValue;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public BooleanValue createBooleanValue()
+ {
+ BooleanValueImpl booleanValue = new BooleanValueImpl();
+ return booleanValue;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RealValue createRealValue()
+ {
+ RealValueImpl realValue = new RealValueImpl();
+ return realValue;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NullValue createNullValue()
+ {
+ NullValueImpl nullValue = new NullValueImpl();
+ return nullValue;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NoValue createNoValue()
+ {
+ NoValueImpl noValue = new NoValueImpl();
+ return noValue;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public VisibilityKind createVisibilityKindFromString(EDataType eDataType, String initialValue)
+ {
+ VisibilityKind result = VisibilityKind.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertVisibilityKindToString(EDataType eDataType, Object instanceValue)
+ {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ModifierKind createModifierKindFromString(EDataType eDataType, String initialValue)
+ {
+ ModifierKind result = ModifierKind.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertModifierKindToString(EDataType eDataType, Object instanceValue)
+ {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public BooleanLiterals createBooleanLiteralsFromString(EDataType eDataType, String initialValue)
+ {
+ BooleanLiterals result = BooleanLiterals.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertBooleanLiteralsToString(EDataType eDataType, Object instanceValue)
+ {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public UmlPortPackage getUmlPortPackage()
+ {
+ return (UmlPortPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static UmlPortPackage getPackage()
+ {
+ return UmlPortPackage.eINSTANCE;
+ }
+
+} //UmlPortFactoryImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/UmlPortPackageImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/UmlPortPackageImpl.java
index f17f7ea3893..9b0f6b930b5 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/UmlPortPackageImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/UmlPortPackageImpl.java
@@ -1,1109 +1,977 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.EcorePackage;
-
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NoValue;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NullValue;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortFactory;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.Value;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule;
-
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class UmlPortPackageImpl extends EPackageImpl implements UmlPortPackage
-{
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass portRuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass visibilityRuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass typeRuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass qualifiedNameEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass multiplicityRuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass boundSpecificationEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass modifiersRuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass modifierSpecificationEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass redefinesRuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass subsetsRuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass defaultValueRuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass valueEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass intValueEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass stringValueEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass booleanValueEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass realValueEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass nullValueEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass noValueEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EEnum visibilityKindEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EEnum modifierKindEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EEnum booleanLiteralsEEnum = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
- * package URI value.
- * <p>
- * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also performs initialization of the package, or returns the registered package, if one already exists. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private UmlPortPackageImpl()
- {
- super(eNS_URI, UmlPortFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
- *
- * <p>
- * This method is used to initialize {@link UmlPortPackage#eINSTANCE} when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static UmlPortPackage init()
- {
- if (isInited) {
- return (UmlPortPackage) EPackage.Registry.INSTANCE.getEPackage(UmlPortPackage.eNS_URI);
- }
-
- // Obtain or create and register package
- UmlPortPackageImpl theUmlPortPackage = (UmlPortPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof UmlPortPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new UmlPortPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- UMLPackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- theUmlPortPackage.createPackageContents();
-
- // Initialize created meta-data
- theUmlPortPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theUmlPortPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(UmlPortPackage.eNS_URI, theUmlPortPackage);
- return theUmlPortPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getPortRule()
- {
- return portRuleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getPortRule_Visibility()
- {
- return (EReference) portRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getPortRule_Derived()
- {
- return (EAttribute) portRuleEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getPortRule_Name()
- {
- return (EAttribute) portRuleEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getPortRule_Conjugated()
- {
- return (EAttribute) portRuleEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getPortRule_Type()
- {
- return (EReference) portRuleEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getPortRule_TypeUndefined()
- {
- return (EAttribute) portRuleEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getPortRule_Multiplicity()
- {
- return (EReference) portRuleEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getPortRule_Modifiers()
- {
- return (EReference) portRuleEClass.getEStructuralFeatures().get(7);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getPortRule_Default()
- {
- return (EReference) portRuleEClass.getEStructuralFeatures().get(8);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getVisibilityRule()
- {
- return visibilityRuleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getVisibilityRule_Visibility()
- {
- return (EAttribute) visibilityRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getTypeRule()
- {
- return typeRuleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getTypeRule_Path()
- {
- return (EReference) typeRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getTypeRule_Type()
- {
- return (EReference) typeRuleEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getQualifiedName()
- {
- return qualifiedNameEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getQualifiedName_Path()
- {
- return (EReference) qualifiedNameEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getQualifiedName_Remaining()
- {
- return (EReference) qualifiedNameEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getMultiplicityRule()
- {
- return multiplicityRuleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getMultiplicityRule_Bounds()
- {
- return (EReference) multiplicityRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getBoundSpecification()
- {
- return boundSpecificationEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getBoundSpecification_Value()
- {
- return (EAttribute) boundSpecificationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getModifiersRule()
- {
- return modifiersRuleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getModifiersRule_Values()
- {
- return (EReference) modifiersRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getModifierSpecification()
- {
- return modifierSpecificationEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getModifierSpecification_Value()
- {
- return (EAttribute) modifierSpecificationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getModifierSpecification_Redefines()
- {
- return (EReference) modifierSpecificationEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getModifierSpecification_Subsets()
- {
- return (EReference) modifierSpecificationEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getRedefinesRule()
- {
- return redefinesRuleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getRedefinesRule_Port()
- {
- return (EReference) redefinesRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getSubsetsRule()
- {
- return subsetsRuleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getSubsetsRule_Port()
- {
- return (EReference) subsetsRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getDefaultValueRule()
- {
- return defaultValueRuleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getDefaultValueRule_Default()
- {
- return (EReference) defaultValueRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getValue()
- {
- return valueEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getIntValue()
- {
- return intValueEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getIntValue_LiteralInteger()
- {
- return (EAttribute) intValueEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getStringValue()
- {
- return stringValueEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getStringValue_LiteralString()
- {
- return (EAttribute) stringValueEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getBooleanValue()
- {
- return booleanValueEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getBooleanValue_LiteralBoolean()
- {
- return (EAttribute) booleanValueEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getRealValue()
- {
- return realValueEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getRealValue_Integer()
- {
- return (EAttribute) realValueEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getRealValue_Fraction()
- {
- return (EAttribute) realValueEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getNullValue()
- {
- return nullValueEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getNoValue()
- {
- return noValueEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EEnum getVisibilityKind()
- {
- return visibilityKindEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EEnum getModifierKind()
- {
- return modifierKindEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EEnum getBooleanLiterals()
- {
- return booleanLiteralsEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public UmlPortFactory getUmlPortFactory()
- {
- return (UmlPortFactory) getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void createPackageContents()
- {
- if (isCreated) {
- return;
- }
- isCreated = true;
-
- // Create classes and their features
- portRuleEClass = createEClass(PORT_RULE);
- createEReference(portRuleEClass, PORT_RULE__VISIBILITY);
- createEAttribute(portRuleEClass, PORT_RULE__DERIVED);
- createEAttribute(portRuleEClass, PORT_RULE__NAME);
- createEAttribute(portRuleEClass, PORT_RULE__CONJUGATED);
- createEReference(portRuleEClass, PORT_RULE__TYPE);
- createEAttribute(portRuleEClass, PORT_RULE__TYPE_UNDEFINED);
- createEReference(portRuleEClass, PORT_RULE__MULTIPLICITY);
- createEReference(portRuleEClass, PORT_RULE__MODIFIERS);
- createEReference(portRuleEClass, PORT_RULE__DEFAULT);
-
- visibilityRuleEClass = createEClass(VISIBILITY_RULE);
- createEAttribute(visibilityRuleEClass, VISIBILITY_RULE__VISIBILITY);
-
- typeRuleEClass = createEClass(TYPE_RULE);
- createEReference(typeRuleEClass, TYPE_RULE__PATH);
- createEReference(typeRuleEClass, TYPE_RULE__TYPE);
-
- qualifiedNameEClass = createEClass(QUALIFIED_NAME);
- createEReference(qualifiedNameEClass, QUALIFIED_NAME__PATH);
- createEReference(qualifiedNameEClass, QUALIFIED_NAME__REMAINING);
-
- multiplicityRuleEClass = createEClass(MULTIPLICITY_RULE);
- createEReference(multiplicityRuleEClass, MULTIPLICITY_RULE__BOUNDS);
-
- boundSpecificationEClass = createEClass(BOUND_SPECIFICATION);
- createEAttribute(boundSpecificationEClass, BOUND_SPECIFICATION__VALUE);
-
- modifiersRuleEClass = createEClass(MODIFIERS_RULE);
- createEReference(modifiersRuleEClass, MODIFIERS_RULE__VALUES);
-
- modifierSpecificationEClass = createEClass(MODIFIER_SPECIFICATION);
- createEAttribute(modifierSpecificationEClass, MODIFIER_SPECIFICATION__VALUE);
- createEReference(modifierSpecificationEClass, MODIFIER_SPECIFICATION__REDEFINES);
- createEReference(modifierSpecificationEClass, MODIFIER_SPECIFICATION__SUBSETS);
-
- redefinesRuleEClass = createEClass(REDEFINES_RULE);
- createEReference(redefinesRuleEClass, REDEFINES_RULE__PORT);
-
- subsetsRuleEClass = createEClass(SUBSETS_RULE);
- createEReference(subsetsRuleEClass, SUBSETS_RULE__PORT);
-
- defaultValueRuleEClass = createEClass(DEFAULT_VALUE_RULE);
- createEReference(defaultValueRuleEClass, DEFAULT_VALUE_RULE__DEFAULT);
-
- valueEClass = createEClass(VALUE);
-
- intValueEClass = createEClass(INT_VALUE);
- createEAttribute(intValueEClass, INT_VALUE__LITERAL_INTEGER);
-
- stringValueEClass = createEClass(STRING_VALUE);
- createEAttribute(stringValueEClass, STRING_VALUE__LITERAL_STRING);
-
- booleanValueEClass = createEClass(BOOLEAN_VALUE);
- createEAttribute(booleanValueEClass, BOOLEAN_VALUE__LITERAL_BOOLEAN);
-
- realValueEClass = createEClass(REAL_VALUE);
- createEAttribute(realValueEClass, REAL_VALUE__INTEGER);
- createEAttribute(realValueEClass, REAL_VALUE__FRACTION);
-
- nullValueEClass = createEClass(NULL_VALUE);
-
- noValueEClass = createEClass(NO_VALUE);
-
- // Create enums
- visibilityKindEEnum = createEEnum(VISIBILITY_KIND);
- modifierKindEEnum = createEEnum(MODIFIER_KIND);
- booleanLiteralsEEnum = createEEnum(BOOLEAN_LITERALS);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void initializePackageContents()
- {
- if (isInitialized) {
- return;
- }
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Obtain other dependent packages
- EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
- UMLPackage theUMLPackage = (UMLPackage) EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- intValueEClass.getESuperTypes().add(this.getValue());
- stringValueEClass.getESuperTypes().add(this.getValue());
- booleanValueEClass.getESuperTypes().add(this.getValue());
- realValueEClass.getESuperTypes().add(this.getValue());
- nullValueEClass.getESuperTypes().add(this.getValue());
- noValueEClass.getESuperTypes().add(this.getValue());
-
- // Initialize classes and features; add operations and parameters
- initEClass(portRuleEClass, PortRule.class, "PortRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getPortRule_Visibility(), this.getVisibilityRule(), null, "visibility", null, 0, 1, PortRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPortRule_Derived(), theEcorePackage.getEBoolean(), "derived", null, 0, 1, PortRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPortRule_Name(), theEcorePackage.getEString(), "name", null, 0, 1, PortRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPortRule_Conjugated(), theEcorePackage.getEBoolean(), "conjugated", null, 0, 1, PortRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getPortRule_Type(), this.getTypeRule(), null, "type", null, 0, 1, PortRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPortRule_TypeUndefined(), theEcorePackage.getEBoolean(), "typeUndefined", null, 0, 1, PortRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getPortRule_Multiplicity(), this.getMultiplicityRule(), null, "multiplicity", null, 0, 1, PortRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getPortRule_Modifiers(), this.getModifiersRule(), null, "modifiers", null, 0, 1, PortRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getPortRule_Default(), this.getDefaultValueRule(), null, "default", null, 0, 1, PortRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(visibilityRuleEClass, VisibilityRule.class, "VisibilityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getVisibilityRule_Visibility(), this.getVisibilityKind(), "visibility", null, 0, 1, VisibilityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(typeRuleEClass, TypeRule.class, "TypeRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getTypeRule_Path(), this.getQualifiedName(), null, "path", null, 0, 1, TypeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTypeRule_Type(), theUMLPackage.getClassifier(), null, "type", null, 0, 1, TypeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(qualifiedNameEClass, QualifiedName.class, "QualifiedName", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getQualifiedName_Path(), theUMLPackage.getNamespace(), null, "path", null, 0, 1, QualifiedName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getQualifiedName_Remaining(), this.getQualifiedName(), null, "remaining", null, 0, 1, QualifiedName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(multiplicityRuleEClass, MultiplicityRule.class, "MultiplicityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getMultiplicityRule_Bounds(), this.getBoundSpecification(), null, "bounds", null, 0, -1, MultiplicityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
-
- initEClass(boundSpecificationEClass, BoundSpecification.class, "BoundSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getBoundSpecification_Value(), theEcorePackage.getEString(), "value", null, 0, 1, BoundSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(modifiersRuleEClass, ModifiersRule.class, "ModifiersRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getModifiersRule_Values(), this.getModifierSpecification(), null, "values", null, 0, -1, ModifiersRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
-
- initEClass(modifierSpecificationEClass, ModifierSpecification.class, "ModifierSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getModifierSpecification_Value(), this.getModifierKind(), "value", null, 0, 1, ModifierSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModifierSpecification_Redefines(), this.getRedefinesRule(), null, "redefines", null, 0, 1, ModifierSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
- !IS_DERIVED, IS_ORDERED);
- initEReference(getModifierSpecification_Subsets(), this.getSubsetsRule(), null, "subsets", null, 0, 1, ModifierSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
-
- initEClass(redefinesRuleEClass, RedefinesRule.class, "RedefinesRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getRedefinesRule_Port(), theUMLPackage.getPort(), null, "port", null, 0, 1, RedefinesRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(subsetsRuleEClass, SubsetsRule.class, "SubsetsRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getSubsetsRule_Port(), theUMLPackage.getPort(), null, "port", null, 0, 1, SubsetsRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(defaultValueRuleEClass, DefaultValueRule.class, "DefaultValueRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getDefaultValueRule_Default(), this.getValue(), null, "default", null, 0, 1, DefaultValueRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(valueEClass, Value.class, "Value", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(intValueEClass, IntValue.class, "IntValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getIntValue_LiteralInteger(), theEcorePackage.getEInt(), "literalInteger", null, 0, 1, IntValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(stringValueEClass, StringValue.class, "StringValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getStringValue_LiteralString(), theEcorePackage.getEString(), "literalString", null, 0, 1, StringValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(booleanValueEClass, BooleanValue.class, "BooleanValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getBooleanValue_LiteralBoolean(), this.getBooleanLiterals(), "literalBoolean", null, 0, 1, BooleanValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(realValueEClass, RealValue.class, "RealValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getRealValue_Integer(), theEcorePackage.getEInt(), "integer", null, 0, 1, RealValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRealValue_Fraction(), theEcorePackage.getEInt(), "fraction", null, 0, 1, RealValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(nullValueEClass, NullValue.class, "NullValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(noValueEClass, NoValue.class, "NoValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- // Initialize enums and add enum literals
- initEEnum(visibilityKindEEnum, VisibilityKind.class, "VisibilityKind");
- addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PUBLIC);
- addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PRIVATE);
- addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PROTECTED);
- addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PACKAGE);
-
- initEEnum(modifierKindEEnum, ModifierKind.class, "ModifierKind");
- addEEnumLiteral(modifierKindEEnum, ModifierKind.READ_ONLY);
- addEEnumLiteral(modifierKindEEnum, ModifierKind.UNION);
- addEEnumLiteral(modifierKindEEnum, ModifierKind.ORDERED);
- addEEnumLiteral(modifierKindEEnum, ModifierKind.UNIQUE);
-
- initEEnum(booleanLiteralsEEnum, BooleanLiterals.class, "BooleanLiterals");
- addEEnumLiteral(booleanLiteralsEEnum, BooleanLiterals.TRUE);
- addEEnumLiteral(booleanLiteralsEEnum, BooleanLiterals.FALSE);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} // UmlPortPackageImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.EcorePackage;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanLiterals;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierKind;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NoValue;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NullValue;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortFactory;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.Value;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule;
+
+import org.eclipse.uml2.uml.UMLPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class UmlPortPackageImpl extends EPackageImpl implements UmlPortPackage
+{
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass portRuleEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass visibilityRuleEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass typeRuleEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass qualifiedNameEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass multiplicityRuleEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass boundSpecificationEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass modifiersRuleEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass modifierSpecificationEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass redefinesRuleEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass subsetsRuleEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass defaultValueRuleEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass valueEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass intValueEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass stringValueEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass booleanValueEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass realValueEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass nullValueEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass noValueEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum visibilityKindEEnum = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum modifierKindEEnum = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum booleanLiteralsEEnum = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ * <p>Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private UmlPortPackageImpl()
+ {
+ super(eNS_URI, UmlPortFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ *
+ * <p>This method is used to initialize {@link UmlPortPackage#eINSTANCE} when that field is accessed.
+ * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static UmlPortPackage init()
+ {
+ if (isInited) return (UmlPortPackage)EPackage.Registry.INSTANCE.getEPackage(UmlPortPackage.eNS_URI);
+
+ // Obtain or create and register package
+ UmlPortPackageImpl theUmlPortPackage = (UmlPortPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof UmlPortPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new UmlPortPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ UMLPackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ theUmlPortPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theUmlPortPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theUmlPortPackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(UmlPortPackage.eNS_URI, theUmlPortPackage);
+ return theUmlPortPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getPortRule()
+ {
+ return portRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getPortRule_Visibility()
+ {
+ return (EReference)portRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPortRule_Derived()
+ {
+ return (EAttribute)portRuleEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPortRule_Name()
+ {
+ return (EAttribute)portRuleEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPortRule_Conjugated()
+ {
+ return (EAttribute)portRuleEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getPortRule_Type()
+ {
+ return (EReference)portRuleEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPortRule_TypeUndefined()
+ {
+ return (EAttribute)portRuleEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getPortRule_Multiplicity()
+ {
+ return (EReference)portRuleEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getPortRule_Modifiers()
+ {
+ return (EReference)portRuleEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getPortRule_Default()
+ {
+ return (EReference)portRuleEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getVisibilityRule()
+ {
+ return visibilityRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getVisibilityRule_Visibility()
+ {
+ return (EAttribute)visibilityRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getTypeRule()
+ {
+ return typeRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getTypeRule_Path()
+ {
+ return (EReference)typeRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getTypeRule_Type()
+ {
+ return (EReference)typeRuleEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getQualifiedName()
+ {
+ return qualifiedNameEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getQualifiedName_Path()
+ {
+ return (EReference)qualifiedNameEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getQualifiedName_Remaining()
+ {
+ return (EReference)qualifiedNameEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getMultiplicityRule()
+ {
+ return multiplicityRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getMultiplicityRule_Bounds()
+ {
+ return (EReference)multiplicityRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getBoundSpecification()
+ {
+ return boundSpecificationEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getBoundSpecification_Value()
+ {
+ return (EAttribute)boundSpecificationEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getModifiersRule()
+ {
+ return modifiersRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getModifiersRule_Values()
+ {
+ return (EReference)modifiersRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getModifierSpecification()
+ {
+ return modifierSpecificationEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getModifierSpecification_Value()
+ {
+ return (EAttribute)modifierSpecificationEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getModifierSpecification_Redefines()
+ {
+ return (EReference)modifierSpecificationEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getModifierSpecification_Subsets()
+ {
+ return (EReference)modifierSpecificationEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getRedefinesRule()
+ {
+ return redefinesRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getRedefinesRule_Port()
+ {
+ return (EReference)redefinesRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getSubsetsRule()
+ {
+ return subsetsRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getSubsetsRule_Port()
+ {
+ return (EReference)subsetsRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getDefaultValueRule()
+ {
+ return defaultValueRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDefaultValueRule_Default()
+ {
+ return (EReference)defaultValueRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getValue()
+ {
+ return valueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getIntValue()
+ {
+ return intValueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getIntValue_LiteralInteger()
+ {
+ return (EAttribute)intValueEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getStringValue()
+ {
+ return stringValueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getStringValue_LiteralString()
+ {
+ return (EAttribute)stringValueEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getBooleanValue()
+ {
+ return booleanValueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getBooleanValue_LiteralBoolean()
+ {
+ return (EAttribute)booleanValueEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getRealValue()
+ {
+ return realValueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRealValue_Integer()
+ {
+ return (EAttribute)realValueEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRealValue_Fraction()
+ {
+ return (EAttribute)realValueEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getNullValue()
+ {
+ return nullValueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getNoValue()
+ {
+ return noValueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getVisibilityKind()
+ {
+ return visibilityKindEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getModifierKind()
+ {
+ return modifierKindEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getBooleanLiterals()
+ {
+ return booleanLiteralsEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public UmlPortFactory getUmlPortFactory()
+ {
+ return (UmlPortFactory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void createPackageContents()
+ {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create classes and their features
+ portRuleEClass = createEClass(PORT_RULE);
+ createEReference(portRuleEClass, PORT_RULE__VISIBILITY);
+ createEAttribute(portRuleEClass, PORT_RULE__DERIVED);
+ createEAttribute(portRuleEClass, PORT_RULE__NAME);
+ createEAttribute(portRuleEClass, PORT_RULE__CONJUGATED);
+ createEReference(portRuleEClass, PORT_RULE__TYPE);
+ createEAttribute(portRuleEClass, PORT_RULE__TYPE_UNDEFINED);
+ createEReference(portRuleEClass, PORT_RULE__MULTIPLICITY);
+ createEReference(portRuleEClass, PORT_RULE__MODIFIERS);
+ createEReference(portRuleEClass, PORT_RULE__DEFAULT);
+
+ visibilityRuleEClass = createEClass(VISIBILITY_RULE);
+ createEAttribute(visibilityRuleEClass, VISIBILITY_RULE__VISIBILITY);
+
+ typeRuleEClass = createEClass(TYPE_RULE);
+ createEReference(typeRuleEClass, TYPE_RULE__PATH);
+ createEReference(typeRuleEClass, TYPE_RULE__TYPE);
+
+ qualifiedNameEClass = createEClass(QUALIFIED_NAME);
+ createEReference(qualifiedNameEClass, QUALIFIED_NAME__PATH);
+ createEReference(qualifiedNameEClass, QUALIFIED_NAME__REMAINING);
+
+ multiplicityRuleEClass = createEClass(MULTIPLICITY_RULE);
+ createEReference(multiplicityRuleEClass, MULTIPLICITY_RULE__BOUNDS);
+
+ boundSpecificationEClass = createEClass(BOUND_SPECIFICATION);
+ createEAttribute(boundSpecificationEClass, BOUND_SPECIFICATION__VALUE);
+
+ modifiersRuleEClass = createEClass(MODIFIERS_RULE);
+ createEReference(modifiersRuleEClass, MODIFIERS_RULE__VALUES);
+
+ modifierSpecificationEClass = createEClass(MODIFIER_SPECIFICATION);
+ createEAttribute(modifierSpecificationEClass, MODIFIER_SPECIFICATION__VALUE);
+ createEReference(modifierSpecificationEClass, MODIFIER_SPECIFICATION__REDEFINES);
+ createEReference(modifierSpecificationEClass, MODIFIER_SPECIFICATION__SUBSETS);
+
+ redefinesRuleEClass = createEClass(REDEFINES_RULE);
+ createEReference(redefinesRuleEClass, REDEFINES_RULE__PORT);
+
+ subsetsRuleEClass = createEClass(SUBSETS_RULE);
+ createEReference(subsetsRuleEClass, SUBSETS_RULE__PORT);
+
+ defaultValueRuleEClass = createEClass(DEFAULT_VALUE_RULE);
+ createEReference(defaultValueRuleEClass, DEFAULT_VALUE_RULE__DEFAULT);
+
+ valueEClass = createEClass(VALUE);
+
+ intValueEClass = createEClass(INT_VALUE);
+ createEAttribute(intValueEClass, INT_VALUE__LITERAL_INTEGER);
+
+ stringValueEClass = createEClass(STRING_VALUE);
+ createEAttribute(stringValueEClass, STRING_VALUE__LITERAL_STRING);
+
+ booleanValueEClass = createEClass(BOOLEAN_VALUE);
+ createEAttribute(booleanValueEClass, BOOLEAN_VALUE__LITERAL_BOOLEAN);
+
+ realValueEClass = createEClass(REAL_VALUE);
+ createEAttribute(realValueEClass, REAL_VALUE__INTEGER);
+ createEAttribute(realValueEClass, REAL_VALUE__FRACTION);
+
+ nullValueEClass = createEClass(NULL_VALUE);
+
+ noValueEClass = createEClass(NO_VALUE);
+
+ // Create enums
+ visibilityKindEEnum = createEEnum(VISIBILITY_KIND);
+ modifierKindEEnum = createEEnum(MODIFIER_KIND);
+ booleanLiteralsEEnum = createEEnum(BOOLEAN_LITERALS);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void initializePackageContents()
+ {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
+ UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ intValueEClass.getESuperTypes().add(this.getValue());
+ stringValueEClass.getESuperTypes().add(this.getValue());
+ booleanValueEClass.getESuperTypes().add(this.getValue());
+ realValueEClass.getESuperTypes().add(this.getValue());
+ nullValueEClass.getESuperTypes().add(this.getValue());
+ noValueEClass.getESuperTypes().add(this.getValue());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(portRuleEClass, PortRule.class, "PortRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getPortRule_Visibility(), this.getVisibilityRule(), null, "visibility", null, 0, 1, PortRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPortRule_Derived(), theEcorePackage.getEBoolean(), "derived", null, 0, 1, PortRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPortRule_Name(), theEcorePackage.getEString(), "name", null, 0, 1, PortRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPortRule_Conjugated(), theEcorePackage.getEBoolean(), "conjugated", null, 0, 1, PortRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getPortRule_Type(), this.getTypeRule(), null, "type", null, 0, 1, PortRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPortRule_TypeUndefined(), theEcorePackage.getEBoolean(), "typeUndefined", null, 0, 1, PortRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getPortRule_Multiplicity(), this.getMultiplicityRule(), null, "multiplicity", null, 0, 1, PortRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getPortRule_Modifiers(), this.getModifiersRule(), null, "modifiers", null, 0, 1, PortRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getPortRule_Default(), this.getDefaultValueRule(), null, "default", null, 0, 1, PortRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(visibilityRuleEClass, VisibilityRule.class, "VisibilityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getVisibilityRule_Visibility(), this.getVisibilityKind(), "visibility", null, 0, 1, VisibilityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(typeRuleEClass, TypeRule.class, "TypeRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getTypeRule_Path(), this.getQualifiedName(), null, "path", null, 0, 1, TypeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getTypeRule_Type(), theUMLPackage.getClassifier(), null, "type", null, 0, 1, TypeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(qualifiedNameEClass, QualifiedName.class, "QualifiedName", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getQualifiedName_Path(), theUMLPackage.getNamespace(), null, "path", null, 0, 1, QualifiedName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getQualifiedName_Remaining(), this.getQualifiedName(), null, "remaining", null, 0, 1, QualifiedName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(multiplicityRuleEClass, MultiplicityRule.class, "MultiplicityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getMultiplicityRule_Bounds(), this.getBoundSpecification(), null, "bounds", null, 0, -1, MultiplicityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(boundSpecificationEClass, BoundSpecification.class, "BoundSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getBoundSpecification_Value(), theEcorePackage.getEString(), "value", null, 0, 1, BoundSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(modifiersRuleEClass, ModifiersRule.class, "ModifiersRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getModifiersRule_Values(), this.getModifierSpecification(), null, "values", null, 0, -1, ModifiersRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(modifierSpecificationEClass, ModifierSpecification.class, "ModifierSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getModifierSpecification_Value(), this.getModifierKind(), "value", null, 0, 1, ModifierSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getModifierSpecification_Redefines(), this.getRedefinesRule(), null, "redefines", null, 0, 1, ModifierSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getModifierSpecification_Subsets(), this.getSubsetsRule(), null, "subsets", null, 0, 1, ModifierSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(redefinesRuleEClass, RedefinesRule.class, "RedefinesRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRedefinesRule_Port(), theUMLPackage.getPort(), null, "port", null, 0, 1, RedefinesRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(subsetsRuleEClass, SubsetsRule.class, "SubsetsRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getSubsetsRule_Port(), theUMLPackage.getPort(), null, "port", null, 0, 1, SubsetsRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(defaultValueRuleEClass, DefaultValueRule.class, "DefaultValueRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getDefaultValueRule_Default(), this.getValue(), null, "default", null, 0, 1, DefaultValueRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(valueEClass, Value.class, "Value", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(intValueEClass, IntValue.class, "IntValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getIntValue_LiteralInteger(), theEcorePackage.getEInt(), "literalInteger", null, 0, 1, IntValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(stringValueEClass, StringValue.class, "StringValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getStringValue_LiteralString(), theEcorePackage.getEString(), "literalString", null, 0, 1, StringValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(booleanValueEClass, BooleanValue.class, "BooleanValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getBooleanValue_LiteralBoolean(), this.getBooleanLiterals(), "literalBoolean", null, 0, 1, BooleanValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(realValueEClass, RealValue.class, "RealValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getRealValue_Integer(), theEcorePackage.getEInt(), "integer", null, 0, 1, RealValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRealValue_Fraction(), theEcorePackage.getEInt(), "fraction", null, 0, 1, RealValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(nullValueEClass, NullValue.class, "NullValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(noValueEClass, NoValue.class, "NoValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ // Initialize enums and add enum literals
+ initEEnum(visibilityKindEEnum, VisibilityKind.class, "VisibilityKind");
+ addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PUBLIC);
+ addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PRIVATE);
+ addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PROTECTED);
+ addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PACKAGE);
+
+ initEEnum(modifierKindEEnum, ModifierKind.class, "ModifierKind");
+ addEEnumLiteral(modifierKindEEnum, ModifierKind.READ_ONLY);
+ addEEnumLiteral(modifierKindEEnum, ModifierKind.UNION);
+ addEEnumLiteral(modifierKindEEnum, ModifierKind.ORDERED);
+ addEEnumLiteral(modifierKindEEnum, ModifierKind.UNIQUE);
+
+ initEEnum(booleanLiteralsEEnum, BooleanLiterals.class, "BooleanLiterals");
+ addEEnumLiteral(booleanLiteralsEEnum, BooleanLiterals.TRUE);
+ addEEnumLiteral(booleanLiteralsEEnum, BooleanLiterals.FALSE);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} //UmlPortPackageImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/ValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/ValueImpl.java
index 17e7225b225..ef95066de93 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/ValueImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/ValueImpl.java
@@ -1,46 +1,42 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.Value;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Value</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class ValueImpl extends MinimalEObjectImpl.Container implements Value
-{
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected ValueImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPortPackage.Literals.VALUE;
- }
-
-} // ValueImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.Value;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class ValueImpl extends MinimalEObjectImpl.Container implements Value
+{
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ValueImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPortPackage.Literals.VALUE;
+ }
+
+} //ValueImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/VisibilityRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/VisibilityRuleImpl.java
index 004300c6d2e..98011d92ea6 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/VisibilityRuleImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/impl/VisibilityRuleImpl.java
@@ -1,194 +1,178 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind;
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Visibility Rule</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.VisibilityRuleImpl#getVisibility <em>Visibility</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class VisibilityRuleImpl extends MinimalEObjectImpl.Container implements VisibilityRule
-{
- /**
- * The default value of the '{@link #getVisibility() <em>Visibility</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getVisibility()
- * @generated
- * @ordered
- */
- protected static final VisibilityKind VISIBILITY_EDEFAULT = VisibilityKind.PUBLIC;
-
- /**
- * The cached value of the '{@link #getVisibility() <em>Visibility</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getVisibility()
- * @generated
- * @ordered
- */
- protected VisibilityKind visibility = VISIBILITY_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected VisibilityRuleImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPortPackage.Literals.VISIBILITY_RULE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public VisibilityKind getVisibility()
- {
- return visibility;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setVisibility(VisibilityKind newVisibility)
- {
- VisibilityKind oldVisibility = visibility;
- visibility = newVisibility == null ? VISIBILITY_EDEFAULT : newVisibility;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.VISIBILITY_RULE__VISIBILITY, oldVisibility, visibility));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPortPackage.VISIBILITY_RULE__VISIBILITY:
- return getVisibility();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPortPackage.VISIBILITY_RULE__VISIBILITY:
- setVisibility((VisibilityKind) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.VISIBILITY_RULE__VISIBILITY:
- setVisibility(VISIBILITY_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPortPackage.VISIBILITY_RULE__VISIBILITY:
- return visibility != VISIBILITY_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (visibility: ");
- result.append(visibility);
- result.append(')');
- return result.toString();
- }
-
-} // VisibilityRuleImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityKind;
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Visibility Rule</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.impl.VisibilityRuleImpl#getVisibility <em>Visibility</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class VisibilityRuleImpl extends MinimalEObjectImpl.Container implements VisibilityRule
+{
+ /**
+ * The default value of the '{@link #getVisibility() <em>Visibility</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getVisibility()
+ * @generated
+ * @ordered
+ */
+ protected static final VisibilityKind VISIBILITY_EDEFAULT = VisibilityKind.PUBLIC;
+
+ /**
+ * The cached value of the '{@link #getVisibility() <em>Visibility</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getVisibility()
+ * @generated
+ * @ordered
+ */
+ protected VisibilityKind visibility = VISIBILITY_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected VisibilityRuleImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPortPackage.Literals.VISIBILITY_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public VisibilityKind getVisibility()
+ {
+ return visibility;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setVisibility(VisibilityKind newVisibility)
+ {
+ VisibilityKind oldVisibility = visibility;
+ visibility = newVisibility == null ? VISIBILITY_EDEFAULT : newVisibility;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPortPackage.VISIBILITY_RULE__VISIBILITY, oldVisibility, visibility));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.VISIBILITY_RULE__VISIBILITY:
+ return getVisibility();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.VISIBILITY_RULE__VISIBILITY:
+ setVisibility((VisibilityKind)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.VISIBILITY_RULE__VISIBILITY:
+ setVisibility(VISIBILITY_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPortPackage.VISIBILITY_RULE__VISIBILITY:
+ return visibility != VISIBILITY_EDEFAULT;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (visibility: ");
+ result.append(visibility);
+ result.append(')');
+ return result.toString();
+ }
+
+} //VisibilityRuleImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/util/UmlPortAdapterFactory.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/util/UmlPortAdapterFactory.java
index 3abbca450c1..a12e1afd777 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/util/UmlPortAdapterFactory.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/util/UmlPortAdapterFactory.java
@@ -1,516 +1,472 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.util;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Adapter Factory</b> for the model.
- * It provides an adapter <code>createXXX</code> method for each class of the model.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage
- * @generated
- */
-public class UmlPortAdapterFactory extends AdapterFactoryImpl
-{
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static UmlPortPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public UmlPortAdapterFactory()
- {
- if (modelPackage == null)
- {
- modelPackage = UmlPortPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- * <!-- begin-user-doc -->
- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
- * <!-- end-user-doc -->
- *
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object)
- {
- if (object == modelPackage)
- {
- return true;
- }
- if (object instanceof EObject)
- {
- return ((EObject) object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the <code>createXXX</code> methods.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected UmlPortSwitch<Adapter> modelSwitch =
- new UmlPortSwitch<Adapter>()
- {
- @Override
- public Adapter casePortRule(PortRule object)
- {
- return createPortRuleAdapter();
- }
-
- @Override
- public Adapter caseVisibilityRule(VisibilityRule object)
- {
- return createVisibilityRuleAdapter();
- }
-
- @Override
- public Adapter caseTypeRule(TypeRule object)
- {
- return createTypeRuleAdapter();
- }
-
- @Override
- public Adapter caseQualifiedName(QualifiedName object)
- {
- return createQualifiedNameAdapter();
- }
-
- @Override
- public Adapter caseMultiplicityRule(MultiplicityRule object)
- {
- return createMultiplicityRuleAdapter();
- }
-
- @Override
- public Adapter caseBoundSpecification(BoundSpecification object)
- {
- return createBoundSpecificationAdapter();
- }
-
- @Override
- public Adapter caseModifiersRule(ModifiersRule object)
- {
- return createModifiersRuleAdapter();
- }
-
- @Override
- public Adapter caseModifierSpecification(ModifierSpecification object)
- {
- return createModifierSpecificationAdapter();
- }
-
- @Override
- public Adapter caseRedefinesRule(RedefinesRule object)
- {
- return createRedefinesRuleAdapter();
- }
-
- @Override
- public Adapter caseSubsetsRule(SubsetsRule object)
- {
- return createSubsetsRuleAdapter();
- }
-
- @Override
- public Adapter caseDefaultValueRule(DefaultValueRule object)
- {
- return createDefaultValueRuleAdapter();
- }
-
- @Override
- public Adapter caseValue(Value object)
- {
- return createValueAdapter();
- }
-
- @Override
- public Adapter caseIntValue(IntValue object)
- {
- return createIntValueAdapter();
- }
-
- @Override
- public Adapter caseStringValue(StringValue object)
- {
- return createStringValueAdapter();
- }
-
- @Override
- public Adapter caseBooleanValue(BooleanValue object)
- {
- return createBooleanValueAdapter();
- }
-
- @Override
- public Adapter caseRealValue(RealValue object)
- {
- return createRealValueAdapter();
- }
-
- @Override
- public Adapter caseNullValue(NullValue object)
- {
- return createNullValueAdapter();
- }
-
- @Override
- public Adapter caseNoValue(NoValue object)
- {
- return createNoValueAdapter();
- }
-
- @Override
- public Adapter defaultCase(EObject object)
- {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the <code>target</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param target
- * the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target)
- {
- return modelSwitch.doSwitch((EObject) target);
- }
-
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule <em>Port Rule</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule
- * @generated
- */
- public Adapter createPortRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule <em>Visibility Rule</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule
- * @generated
- */
- public Adapter createVisibilityRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule <em>Type Rule</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule
- * @generated
- */
- public Adapter createTypeRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName <em>Qualified Name</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName
- * @generated
- */
- public Adapter createQualifiedNameAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule <em>Multiplicity Rule</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule
- * @generated
- */
- public Adapter createMultiplicityRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification <em>Bound Specification</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification
- * @generated
- */
- public Adapter createBoundSpecificationAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule <em>Modifiers Rule</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule
- * @generated
- */
- public Adapter createModifiersRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification <em>Modifier Specification</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification
- * @generated
- */
- public Adapter createModifierSpecificationAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule <em>Redefines Rule</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule
- * @generated
- */
- public Adapter createRedefinesRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule <em>Subsets Rule</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule
- * @generated
- */
- public Adapter createSubsetsRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule <em>Default Value Rule</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule
- * @generated
- */
- public Adapter createDefaultValueRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.Value <em>Value</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.Value
- * @generated
- */
- public Adapter createValueAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue <em>Int Value</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue
- * @generated
- */
- public Adapter createIntValueAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue <em>String Value</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue
- * @generated
- */
- public Adapter createStringValueAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue <em>Boolean Value</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue
- * @generated
- */
- public Adapter createBooleanValueAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue <em>Real Value</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue
- * @generated
- */
- public Adapter createRealValueAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NullValue <em>Null Value</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NullValue
- * @generated
- */
- public Adapter createNullValueAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NoValue <em>No Value</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NoValue
- * @generated
- */
- public Adapter createNoValueAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- * <!-- begin-user-doc -->
- * This default implementation returns null.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter()
- {
- return null;
- }
-
-} // UmlPortAdapterFactory
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.util;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the model.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage
+ * @generated
+ */
+public class UmlPortAdapterFactory extends AdapterFactoryImpl
+{
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static UmlPortPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public UmlPortAdapterFactory()
+ {
+ if (modelPackage == null)
+ {
+ modelPackage = UmlPortPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ * <!-- begin-user-doc -->
+ * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
+ * <!-- end-user-doc -->
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object)
+ {
+ if (object == modelPackage)
+ {
+ return true;
+ }
+ if (object instanceof EObject)
+ {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the <code>createXXX</code> methods.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected UmlPortSwitch<Adapter> modelSwitch =
+ new UmlPortSwitch<Adapter>()
+ {
+ @Override
+ public Adapter casePortRule(PortRule object)
+ {
+ return createPortRuleAdapter();
+ }
+ @Override
+ public Adapter caseVisibilityRule(VisibilityRule object)
+ {
+ return createVisibilityRuleAdapter();
+ }
+ @Override
+ public Adapter caseTypeRule(TypeRule object)
+ {
+ return createTypeRuleAdapter();
+ }
+ @Override
+ public Adapter caseQualifiedName(QualifiedName object)
+ {
+ return createQualifiedNameAdapter();
+ }
+ @Override
+ public Adapter caseMultiplicityRule(MultiplicityRule object)
+ {
+ return createMultiplicityRuleAdapter();
+ }
+ @Override
+ public Adapter caseBoundSpecification(BoundSpecification object)
+ {
+ return createBoundSpecificationAdapter();
+ }
+ @Override
+ public Adapter caseModifiersRule(ModifiersRule object)
+ {
+ return createModifiersRuleAdapter();
+ }
+ @Override
+ public Adapter caseModifierSpecification(ModifierSpecification object)
+ {
+ return createModifierSpecificationAdapter();
+ }
+ @Override
+ public Adapter caseRedefinesRule(RedefinesRule object)
+ {
+ return createRedefinesRuleAdapter();
+ }
+ @Override
+ public Adapter caseSubsetsRule(SubsetsRule object)
+ {
+ return createSubsetsRuleAdapter();
+ }
+ @Override
+ public Adapter caseDefaultValueRule(DefaultValueRule object)
+ {
+ return createDefaultValueRuleAdapter();
+ }
+ @Override
+ public Adapter caseValue(Value object)
+ {
+ return createValueAdapter();
+ }
+ @Override
+ public Adapter caseIntValue(IntValue object)
+ {
+ return createIntValueAdapter();
+ }
+ @Override
+ public Adapter caseStringValue(StringValue object)
+ {
+ return createStringValueAdapter();
+ }
+ @Override
+ public Adapter caseBooleanValue(BooleanValue object)
+ {
+ return createBooleanValueAdapter();
+ }
+ @Override
+ public Adapter caseRealValue(RealValue object)
+ {
+ return createRealValueAdapter();
+ }
+ @Override
+ public Adapter caseNullValue(NullValue object)
+ {
+ return createNullValueAdapter();
+ }
+ @Override
+ public Adapter caseNoValue(NoValue object)
+ {
+ return createNoValueAdapter();
+ }
+ @Override
+ public Adapter defaultCase(EObject object)
+ {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param target the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target)
+ {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule <em>Port Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.PortRule
+ * @generated
+ */
+ public Adapter createPortRuleAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule <em>Visibility Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.VisibilityRule
+ * @generated
+ */
+ public Adapter createVisibilityRuleAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule <em>Type Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.TypeRule
+ * @generated
+ */
+ public Adapter createTypeRuleAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName <em>Qualified Name</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.QualifiedName
+ * @generated
+ */
+ public Adapter createQualifiedNameAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule <em>Multiplicity Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.MultiplicityRule
+ * @generated
+ */
+ public Adapter createMultiplicityRuleAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification <em>Bound Specification</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BoundSpecification
+ * @generated
+ */
+ public Adapter createBoundSpecificationAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule <em>Modifiers Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifiersRule
+ * @generated
+ */
+ public Adapter createModifiersRuleAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification <em>Modifier Specification</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.ModifierSpecification
+ * @generated
+ */
+ public Adapter createModifierSpecificationAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule <em>Redefines Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RedefinesRule
+ * @generated
+ */
+ public Adapter createRedefinesRuleAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule <em>Subsets Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.SubsetsRule
+ * @generated
+ */
+ public Adapter createSubsetsRuleAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule <em>Default Value Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.DefaultValueRule
+ * @generated
+ */
+ public Adapter createDefaultValueRuleAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.Value <em>Value</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.Value
+ * @generated
+ */
+ public Adapter createValueAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue <em>Int Value</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.IntValue
+ * @generated
+ */
+ public Adapter createIntValueAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue <em>String Value</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.StringValue
+ * @generated
+ */
+ public Adapter createStringValueAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue <em>Boolean Value</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.BooleanValue
+ * @generated
+ */
+ public Adapter createBooleanValueAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue <em>Real Value</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.RealValue
+ * @generated
+ */
+ public Adapter createRealValueAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NullValue <em>Null Value</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NullValue
+ * @generated
+ */
+ public Adapter createNullValueAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NoValue <em>No Value</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.NoValue
+ * @generated
+ */
+ public Adapter createNoValueAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter()
+ {
+ return null;
+ }
+
+} //UmlPortAdapterFactory
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/util/UmlPortSwitch.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/util/UmlPortSwitch.java
index e79d3b14b03..55d54f3c58d 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/util/UmlPortSwitch.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/umlPort/util/UmlPortSwitch.java
@@ -1,589 +1,516 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.util;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.util.Switch;
-
-import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage
- * @generated
- */
-public class UmlPortSwitch<T> extends Switch<T>
-{
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static UmlPortPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public UmlPortSwitch()
- {
- if (modelPackage == null)
- {
- modelPackage = UmlPortPackage.eINSTANCE;
- }
- }
-
- /**
- * Checks whether this is a switch for the given package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @parameter ePackage the package in question.
- * @return whether this is a switch for the given package.
- * @generated
- */
- @Override
- protected boolean isSwitchFor(EPackage ePackage)
- {
- return ePackage == modelPackage;
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- @Override
- protected T doSwitch(int classifierID, EObject theEObject)
- {
- switch (classifierID)
- {
- case UmlPortPackage.PORT_RULE: {
- PortRule portRule = (PortRule) theEObject;
- T result = casePortRule(portRule);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPortPackage.VISIBILITY_RULE: {
- VisibilityRule visibilityRule = (VisibilityRule) theEObject;
- T result = caseVisibilityRule(visibilityRule);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPortPackage.TYPE_RULE: {
- TypeRule typeRule = (TypeRule) theEObject;
- T result = caseTypeRule(typeRule);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPortPackage.QUALIFIED_NAME: {
- QualifiedName qualifiedName = (QualifiedName) theEObject;
- T result = caseQualifiedName(qualifiedName);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPortPackage.MULTIPLICITY_RULE: {
- MultiplicityRule multiplicityRule = (MultiplicityRule) theEObject;
- T result = caseMultiplicityRule(multiplicityRule);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPortPackage.BOUND_SPECIFICATION: {
- BoundSpecification boundSpecification = (BoundSpecification) theEObject;
- T result = caseBoundSpecification(boundSpecification);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPortPackage.MODIFIERS_RULE: {
- ModifiersRule modifiersRule = (ModifiersRule) theEObject;
- T result = caseModifiersRule(modifiersRule);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPortPackage.MODIFIER_SPECIFICATION: {
- ModifierSpecification modifierSpecification = (ModifierSpecification) theEObject;
- T result = caseModifierSpecification(modifierSpecification);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPortPackage.REDEFINES_RULE: {
- RedefinesRule redefinesRule = (RedefinesRule) theEObject;
- T result = caseRedefinesRule(redefinesRule);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPortPackage.SUBSETS_RULE: {
- SubsetsRule subsetsRule = (SubsetsRule) theEObject;
- T result = caseSubsetsRule(subsetsRule);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPortPackage.DEFAULT_VALUE_RULE: {
- DefaultValueRule defaultValueRule = (DefaultValueRule) theEObject;
- T result = caseDefaultValueRule(defaultValueRule);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPortPackage.VALUE: {
- Value value = (Value) theEObject;
- T result = caseValue(value);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPortPackage.INT_VALUE: {
- IntValue intValue = (IntValue) theEObject;
- T result = caseIntValue(intValue);
- if (result == null) {
- result = caseValue(intValue);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPortPackage.STRING_VALUE: {
- StringValue stringValue = (StringValue) theEObject;
- T result = caseStringValue(stringValue);
- if (result == null) {
- result = caseValue(stringValue);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPortPackage.BOOLEAN_VALUE: {
- BooleanValue booleanValue = (BooleanValue) theEObject;
- T result = caseBooleanValue(booleanValue);
- if (result == null) {
- result = caseValue(booleanValue);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPortPackage.REAL_VALUE: {
- RealValue realValue = (RealValue) theEObject;
- T result = caseRealValue(realValue);
- if (result == null) {
- result = caseValue(realValue);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPortPackage.NULL_VALUE: {
- NullValue nullValue = (NullValue) theEObject;
- T result = caseNullValue(nullValue);
- if (result == null) {
- result = caseValue(nullValue);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPortPackage.NO_VALUE: {
- NoValue noValue = (NoValue) theEObject;
- T result = caseNoValue(noValue);
- if (result == null) {
- result = caseValue(noValue);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- default:
- return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Port Rule</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Port Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T casePortRule(PortRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Visibility Rule</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Visibility Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseVisibilityRule(VisibilityRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Type Rule</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Type Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseTypeRule(TypeRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Qualified Name</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Qualified Name</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseQualifiedName(QualifiedName object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Multiplicity Rule</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Multiplicity Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseMultiplicityRule(MultiplicityRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Bound Specification</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Bound Specification</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseBoundSpecification(BoundSpecification object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Modifiers Rule</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Modifiers Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseModifiersRule(ModifiersRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Modifier Specification</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Modifier Specification</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseModifierSpecification(ModifierSpecification object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Redefines Rule</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Redefines Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRedefinesRule(RedefinesRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Subsets Rule</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Subsets Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseSubsetsRule(SubsetsRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Default Value Rule</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Default Value Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDefaultValueRule(DefaultValueRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Value</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Value</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseValue(Value object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Int Value</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Int Value</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseIntValue(IntValue object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>String Value</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>String Value</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseStringValue(StringValue object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Boolean Value</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Boolean Value</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseBooleanValue(BooleanValue object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Real Value</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Real Value</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRealValue(RealValue object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Null Value</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Null Value</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseNullValue(NullValue object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>No Value</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>No Value</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseNoValue(NoValue object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- @Override
- public T defaultCase(EObject object)
- {
- return null;
- }
-
-} // UmlPortSwitch
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.util;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.util.Switch;
+
+import org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage
+ * @generated
+ */
+public class UmlPortSwitch<T> extends Switch<T>
+{
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static UmlPortPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public UmlPortSwitch()
+ {
+ if (modelPackage == null)
+ {
+ modelPackage = UmlPortPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Checks whether this is a switch for the given package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param ePackage the package in question.
+ * @return whether this is a switch for the given package.
+ * @generated
+ */
+ @Override
+ protected boolean isSwitchFor(EPackage ePackage)
+ {
+ return ePackage == modelPackage;
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject)
+ {
+ switch (classifierID)
+ {
+ case UmlPortPackage.PORT_RULE:
+ {
+ PortRule portRule = (PortRule)theEObject;
+ T result = casePortRule(portRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPortPackage.VISIBILITY_RULE:
+ {
+ VisibilityRule visibilityRule = (VisibilityRule)theEObject;
+ T result = caseVisibilityRule(visibilityRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPortPackage.TYPE_RULE:
+ {
+ TypeRule typeRule = (TypeRule)theEObject;
+ T result = caseTypeRule(typeRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPortPackage.QUALIFIED_NAME:
+ {
+ QualifiedName qualifiedName = (QualifiedName)theEObject;
+ T result = caseQualifiedName(qualifiedName);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPortPackage.MULTIPLICITY_RULE:
+ {
+ MultiplicityRule multiplicityRule = (MultiplicityRule)theEObject;
+ T result = caseMultiplicityRule(multiplicityRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPortPackage.BOUND_SPECIFICATION:
+ {
+ BoundSpecification boundSpecification = (BoundSpecification)theEObject;
+ T result = caseBoundSpecification(boundSpecification);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPortPackage.MODIFIERS_RULE:
+ {
+ ModifiersRule modifiersRule = (ModifiersRule)theEObject;
+ T result = caseModifiersRule(modifiersRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPortPackage.MODIFIER_SPECIFICATION:
+ {
+ ModifierSpecification modifierSpecification = (ModifierSpecification)theEObject;
+ T result = caseModifierSpecification(modifierSpecification);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPortPackage.REDEFINES_RULE:
+ {
+ RedefinesRule redefinesRule = (RedefinesRule)theEObject;
+ T result = caseRedefinesRule(redefinesRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPortPackage.SUBSETS_RULE:
+ {
+ SubsetsRule subsetsRule = (SubsetsRule)theEObject;
+ T result = caseSubsetsRule(subsetsRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPortPackage.DEFAULT_VALUE_RULE:
+ {
+ DefaultValueRule defaultValueRule = (DefaultValueRule)theEObject;
+ T result = caseDefaultValueRule(defaultValueRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPortPackage.VALUE:
+ {
+ Value value = (Value)theEObject;
+ T result = caseValue(value);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPortPackage.INT_VALUE:
+ {
+ IntValue intValue = (IntValue)theEObject;
+ T result = caseIntValue(intValue);
+ if (result == null) result = caseValue(intValue);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPortPackage.STRING_VALUE:
+ {
+ StringValue stringValue = (StringValue)theEObject;
+ T result = caseStringValue(stringValue);
+ if (result == null) result = caseValue(stringValue);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPortPackage.BOOLEAN_VALUE:
+ {
+ BooleanValue booleanValue = (BooleanValue)theEObject;
+ T result = caseBooleanValue(booleanValue);
+ if (result == null) result = caseValue(booleanValue);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPortPackage.REAL_VALUE:
+ {
+ RealValue realValue = (RealValue)theEObject;
+ T result = caseRealValue(realValue);
+ if (result == null) result = caseValue(realValue);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPortPackage.NULL_VALUE:
+ {
+ NullValue nullValue = (NullValue)theEObject;
+ T result = caseNullValue(nullValue);
+ if (result == null) result = caseValue(nullValue);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPortPackage.NO_VALUE:
+ {
+ NoValue noValue = (NoValue)theEObject;
+ T result = caseNoValue(noValue);
+ if (result == null) result = caseValue(noValue);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Port Rule</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Port Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T casePortRule(PortRule object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Visibility Rule</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Visibility Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseVisibilityRule(VisibilityRule object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Type Rule</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Type Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseTypeRule(TypeRule object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Qualified Name</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Qualified Name</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseQualifiedName(QualifiedName object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Multiplicity Rule</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Multiplicity Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMultiplicityRule(MultiplicityRule object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Bound Specification</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Bound Specification</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseBoundSpecification(BoundSpecification object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Modifiers Rule</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Modifiers Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseModifiersRule(ModifiersRule object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Modifier Specification</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Modifier Specification</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseModifierSpecification(ModifierSpecification object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Redefines Rule</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Redefines Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRedefinesRule(RedefinesRule object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Subsets Rule</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Subsets Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSubsetsRule(SubsetsRule object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Default Value Rule</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Default Value Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDefaultValueRule(DefaultValueRule object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Value</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseValue(Value object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Int Value</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Int Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseIntValue(IntValue object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>String Value</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>String Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseStringValue(StringValue object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Boolean Value</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Boolean Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseBooleanValue(BooleanValue object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Real Value</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Real Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRealValue(RealValue object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Null Value</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Null Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseNullValue(NullValue object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>No Value</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>No Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseNoValue(NoValue object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object)
+ {
+ return null;
+ }
+
+} //UmlPortSwitch
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/validation/AbstractUmlPortJavaValidator.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/validation/AbstractUmlPortJavaValidator.java
index 3c8ca31ee14..5474e6148cf 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/validation/AbstractUmlPortJavaValidator.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src-gen/org/eclipse/papyrus/uml/textedit/port/xtext/validation/AbstractUmlPortJavaValidator.java
@@ -1,22 +1,22 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.port.xtext.validation;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.xtext.validation.ComposedChecks;
-
-@ComposedChecks(validators = { org.eclipse.xtext.validation.ImportUriValidator.class, org.eclipse.xtext.validation.NamesAreUniqueValidator.class })
-public class AbstractUmlPortJavaValidator extends org.eclipse.xtext.validation.AbstractDeclarativeValidator {
-
- @Override
- protected List<EPackage> getEPackages() {
- List<EPackage> result = new ArrayList<EPackage>();
- result.add(org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage.eINSTANCE);
- return result;
- }
-
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.port.xtext.validation;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.xtext.validation.ComposedChecks;
+
+@ComposedChecks(validators= {org.eclipse.xtext.validation.ImportUriValidator.class, org.eclipse.xtext.validation.NamesAreUniqueValidator.class})
+public class AbstractUmlPortJavaValidator extends org.eclipse.xtext.validation.AbstractDeclarativeValidator {
+
+ @Override
+ protected List<EPackage> getEPackages() {
+ List<EPackage> result = new ArrayList<EPackage>();
+ result.add(org.eclipse.papyrus.uml.textedit.port.xtext.umlPort.UmlPortPackage.eINSTANCE);
+ return result;
+ }
+
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.xtext b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.xtext
index 45ed5bf05da..38eb0568cbb 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.xtext
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext/src/org/eclipse/papyrus/uml/textedit/port/xtext/UmlPort.xtext
@@ -1,99 +1,99 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-
-grammar org.eclipse.papyrus.uml.textedit.port.xtext.UmlPort with org.eclipse.papyrus.uml.alf.Common
-
-import "http://www.eclipse.org/uml2/5.0.0/UML" as uml
-import "http://www.eclipse.org/emf/2002/Ecore" as ecore
-
-
-generate umlPort "http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort"
-
-PortRule:
- (visibility = VisibilityRule)?
- (derived ?= "/")?
- name=ID (':' (conjugated ?= "~")? (type=TypeRule | typeUndefined?="<Undefined>"))?
- (multiplicity = MultiplicityRule) ?
- (modifiers = ModifiersRule) ?
- (default = DefaultValueRule) ? ;
-
-enum VisibilityKind:
- public = "+"
- | private = "-"
- | protected = "#"
- | package = "~"
-;
-
-VisibilityRule:
- visibility = VisibilityKind
-;
-
-TypeRule :
- (path=QualifiedName)? type=[uml::Classifier] ;
-
-QualifiedName :
- path=[uml::Namespace]'::' (remaining=QualifiedName)? ;
-
-MultiplicityRule:
- "[" bounds+=BoundSpecification ('..' bounds+=BoundSpecification)? "]" ;
-
-BoundSpecification:
- value = UnlimitedLiteral ;
-
-
-UnlimitedLiteral : INT |'*';
-
-
-ModifiersRule:
- {ModifiersRule}'{' (values += ModifierSpecification (',' values += ModifierSpecification)*)? '}';
-
-ModifierSpecification:
- value = ModifierKind
- | redefines = RedefinesRule
- | subsets = SubsetsRule ;
-
-enum ModifierKind:
- readOnly = "readOnly"
- | union = "union"
- | ordered = "ordered"
- | unique = "unique" ;
-
-RedefinesRule :
- 'redefines' port = [uml::Port] ;
-
-SubsetsRule :
- 'subsets' port = [uml::Port] ;
-
-DefaultValueRule :
- '=' default = Value ;
-
-Value : IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue;
-
-IntValue : literalInteger = INT;
-
-StringValue : literalString = STRING;
-
-enum BooleanLiterals:
- true = "true" |
- false = "false"
-;
-
-BooleanValue : literalBoolean = BooleanLiterals;
-
-//TODO: Support all Java-compliant doubles
-RealValue : integer = INT '.' | '.' fraction = INT | integer = INT "." fraction = INT;
-
-NullValue : {NullValue}'null';
-
-NoValue : {NoValue}'none';
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+
+grammar org.eclipse.papyrus.uml.textedit.port.xtext.UmlPort with org.eclipse.papyrus.uml.alf.Common
+
+import "http://www.eclipse.org/uml2/5.0.0/UML" as uml
+import "http://www.eclipse.org/emf/2002/Ecore" as ecore
+
+
+generate umlPort "http://www.eclipse.org/papyrus/uml/textedit/port/xtext/UmlPort"
+
+PortRule:
+ (visibility = VisibilityRule)?
+ (derived ?= "/")?
+ name=ID (':' (conjugated ?= "~")? (type=TypeRule | typeUndefined?="<Undefined>"))?
+ (multiplicity = MultiplicityRule) ?
+ (modifiers = ModifiersRule) ?
+ (default = DefaultValueRule) ? ;
+
+enum VisibilityKind:
+ public = "+"
+ | private = "-"
+ | protected = "#"
+ | package = "~"
+;
+
+VisibilityRule:
+ visibility = VisibilityKind
+;
+
+TypeRule :
+ (path=QualifiedName)? type=[uml::Classifier] ;
+
+QualifiedName :
+ path=[uml::Namespace]'::' (remaining=QualifiedName)? ;
+
+MultiplicityRule:
+ "[" (bounds+=BoundSpecification '..')? bounds+=BoundSpecification "]" ;
+
+BoundSpecification:
+ value = (UnlimitedLiteral | StringLiteral) ;
+
+UnlimitedLiteral : INT |'*';
+
+StringLiteral : STRING;
+
+ModifiersRule:
+ {ModifiersRule}'{' (values += ModifierSpecification (',' values += ModifierSpecification)*)? '}';
+
+ModifierSpecification:
+ value = ModifierKind
+ | redefines = RedefinesRule
+ | subsets = SubsetsRule ;
+
+enum ModifierKind:
+ readOnly = "readOnly"
+ | union = "union"
+ | ordered = "ordered"
+ | unique = "unique" ;
+
+RedefinesRule :
+ 'redefines' port = [uml::Port] ;
+
+SubsetsRule :
+ 'subsets' port = [uml::Port] ;
+
+DefaultValueRule :
+ '=' default = Value ;
+
+Value : IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue;
+
+IntValue : literalInteger = INT;
+
+StringValue : literalString = STRING;
+
+enum BooleanLiterals:
+ true = "true" |
+ false = "false"
+;
+
+BooleanValue : literalBoolean = BooleanLiterals;
+
+//TODO: Support all Java-compliant doubles
+RealValue : integer = INT '.' | '.' fraction = INT | integer = INT "." fraction = INT;
+
+NullValue : {NullValue}'null';
+
+NoValue : {NoValue}'none';
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/AbstractUmlPropertyUiModule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/AbstractUmlPropertyUiModule.java
index bc815254847..835e181c2c4 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/AbstractUmlPropertyUiModule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/AbstractUmlPropertyUiModule.java
@@ -1,146 +1,136 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.ui;
-
-import org.eclipse.xtext.ui.DefaultUiModule;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-
-/**
- * Manual modifications go to {org.eclipse.papyrus.uml.textedit.property.xtext.ui.UmlPropertyUiModule}
- */
-@SuppressWarnings("all")
-public abstract class AbstractUmlPropertyUiModule extends DefaultUiModule {
-
- public AbstractUmlPropertyUiModule(AbstractUIPlugin plugin) {
- super(plugin);
- }
-
-
- // contributed by org.eclipse.xtext.ui.generator.ImplicitUiFragment
- public com.google.inject.Provider<org.eclipse.xtext.resource.containers.IAllContainersState> provideIAllContainersState() {
- return org.eclipse.xtext.ui.shared.Access.getJavaProjectsState();
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public Class<? extends org.eclipse.xtext.ui.editor.contentassist.IProposalConflictHelper> bindIProposalConflictHelper() {
- return org.eclipse.xtext.ui.editor.contentassist.antlr.AntlrProposalConflictHelper.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public void configureHighlightingLexer(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.HIGHLIGHTING))
- .to(org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal.InternalUmlPropertyLexer.class);
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public void configureHighlightingTokenDefProvider(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.parser.antlr.ITokenDefProvider.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.HIGHLIGHTING)).to(org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class);
- }
-
- // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment
- public Class<? extends org.eclipse.xtext.ui.editor.contentassist.PrefixMatcher> bindPrefixMatcher() {
- return org.eclipse.xtext.ui.editor.contentassist.FQNPrefixMatcher.class;
- }
-
- // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment
- public Class<? extends org.eclipse.xtext.ui.refactoring.IDependentElementsCalculator> bindIDependentElementsCalculator() {
- return org.eclipse.xtext.ui.refactoring.impl.DefaultDependentElementsCalculator.class;
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public void configureIResourceDescriptionsBuilderScope(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE))
- .to(org.eclipse.xtext.builder.clustering.CurrentDescriptions.ResourceSetAware.class);
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public Class<? extends org.eclipse.xtext.ui.editor.IXtextEditorCallback> bindIXtextEditorCallback() {
- return org.eclipse.xtext.builder.nature.NatureAddingEditorCallback.class;
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public void configureIResourceDescriptionsPersisted(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS))
- .to(org.eclipse.xtext.builder.builderState.IBuilderState.class);
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public Class<? extends org.eclipse.xtext.ui.editor.DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() {
- return org.eclipse.xtext.builder.impl.PersistentDataAwareDirtyResource.class;
- }
-
- // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
- public Class<? extends org.eclipse.xtext.builder.IXtextBuilderParticipant> bindIXtextBuilderParticipant() {
- return org.eclipse.xtext.builder.BuilderParticipant.class;
- }
-
- // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
- public org.eclipse.core.resources.IWorkspaceRoot bindIWorkspaceRootToInstance() {
- return org.eclipse.core.resources.ResourcesPlugin.getWorkspace().getRoot();
- }
-
- // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
- public void configureBuilderPreferenceStoreInitializer(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer.class).annotatedWith(com.google.inject.name.Names.named("builderPreferenceInitializer"))
- .to(org.eclipse.xtext.builder.preferences.BuilderPreferenceAccess.Initializer.class);
- }
-
- // contributed by org.eclipse.xtext.ui.generator.labeling.LabelProviderFragment
- @Override
- public Class<? extends org.eclipse.jface.viewers.ILabelProvider> bindILabelProvider() {
- return org.eclipse.papyrus.uml.textedit.property.xtext.ui.labeling.UmlPropertyLabelProvider.class;
- }
-
- // contributed by org.eclipse.xtext.ui.generator.labeling.LabelProviderFragment
- @Override
- public void configureResourceUIServiceLabelProvider(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.jface.viewers.ILabelProvider.class).annotatedWith(org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider.class)
- .to(org.eclipse.papyrus.uml.textedit.property.xtext.ui.labeling.UmlPropertyDescriptionLabelProvider.class);
- }
-
- // contributed by org.eclipse.xtext.ui.generator.outline.OutlineTreeProviderFragment
- public Class<? extends org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider> bindIOutlineTreeProvider() {
- return org.eclipse.papyrus.uml.textedit.property.xtext.ui.outline.UmlPropertyOutlineTreeProvider.class;
- }
-
- // contributed by org.eclipse.xtext.ui.generator.outline.OutlineTreeProviderFragment
- public Class<? extends org.eclipse.xtext.ui.editor.outline.impl.IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() {
- return org.eclipse.papyrus.uml.textedit.property.xtext.ui.outline.UmlPropertyOutlineTreeProvider.class;
- }
-
- // contributed by org.eclipse.xtext.ui.generator.quickfix.QuickfixProviderFragment
- @Override
- public Class<? extends org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider> bindIssueResolutionProvider() {
- return org.eclipse.papyrus.uml.textedit.property.xtext.ui.quickfix.UmlPropertyQuickfixProvider.class;
- }
-
- // contributed by org.eclipse.xtext.ui.generator.contentAssist.JavaBasedContentAssistFragment
- public Class<? extends org.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider> bindIContentProposalProvider() {
- return org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.UmlPropertyProposalProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment
- public Class<? extends org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext.Factory> bindContentAssistContext$Factory() {
- return org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment
- public Class<? extends org.eclipse.xtext.ui.editor.contentassist.antlr.IContentAssistParser> bindIContentAssistParser() {
- return org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.UmlPropertyParser.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment
- public void configureContentAssistLexerProvider(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyLexer.class).toProvider(
- org.eclipse.xtext.parser.antlr.LexerProvider.create(org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyLexer.class));
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment
- public void configureContentAssistLexer(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.CONTENT_ASSIST))
- .to(org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyLexer.class);
- }
-
-
-}
+
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.ui;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+
+/**
+ * Manual modifications go to {org.eclipse.papyrus.uml.textedit.property.xtext.ui.UmlPropertyUiModule}
+ */
+@SuppressWarnings("all")
+public abstract class AbstractUmlPropertyUiModule extends org.eclipse.xtext.ui.DefaultUiModule {
+
+ public AbstractUmlPropertyUiModule(AbstractUIPlugin plugin) {
+ super(plugin);
+ }
+
+
+ // contributed by org.eclipse.xtext.ui.generator.ImplicitUiFragment
+ public com.google.inject.Provider<org.eclipse.xtext.resource.containers.IAllContainersState> provideIAllContainersState() {
+ return org.eclipse.xtext.ui.shared.Access.getJavaProjectsState();
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.contentassist.IProposalConflictHelper> bindIProposalConflictHelper() {
+ return org.eclipse.xtext.ui.editor.contentassist.antlr.AntlrProposalConflictHelper.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public void configureHighlightingLexer(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.HIGHLIGHTING)).to(org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal.InternalUmlPropertyLexer.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public void configureHighlightingTokenDefProvider(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.parser.antlr.ITokenDefProvider.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.HIGHLIGHTING)).to(org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.contentassist.PrefixMatcher> bindPrefixMatcher() {
+ return org.eclipse.xtext.ui.editor.contentassist.FQNPrefixMatcher.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment
+ public Class<? extends org.eclipse.xtext.ui.refactoring.IDependentElementsCalculator> bindIDependentElementsCalculator() {
+ return org.eclipse.xtext.ui.refactoring.impl.DefaultDependentElementsCalculator.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public void configureIResourceDescriptionsBuilderScope(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)).to(org.eclipse.xtext.builder.clustering.CurrentDescriptions.ResourceSetAware.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.IXtextEditorCallback> bindIXtextEditorCallback() {
+ return org.eclipse.xtext.builder.nature.NatureAddingEditorCallback.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public void configureIResourceDescriptionsPersisted(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(org.eclipse.xtext.builder.builderState.IBuilderState.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() {
+ return org.eclipse.xtext.builder.impl.PersistentDataAwareDirtyResource.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
+ public Class<? extends org.eclipse.xtext.builder.IXtextBuilderParticipant> bindIXtextBuilderParticipant() {
+ return org.eclipse.xtext.builder.BuilderParticipant.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
+ public org.eclipse.core.resources.IWorkspaceRoot bindIWorkspaceRootToInstance() {
+ return org.eclipse.core.resources.ResourcesPlugin.getWorkspace().getRoot();
+ }
+
+ // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
+ public void configureBuilderPreferenceStoreInitializer(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer.class).annotatedWith(com.google.inject.name.Names.named("builderPreferenceInitializer")).to(org.eclipse.xtext.builder.preferences.BuilderPreferenceAccess.Initializer.class);
+ }
+
+ // contributed by org.eclipse.xtext.ui.generator.labeling.LabelProviderFragment
+ public Class<? extends org.eclipse.jface.viewers.ILabelProvider> bindILabelProvider() {
+ return org.eclipse.papyrus.uml.textedit.property.xtext.ui.labeling.UmlPropertyLabelProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.ui.generator.labeling.LabelProviderFragment
+ public void configureResourceUIServiceLabelProvider(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.jface.viewers.ILabelProvider.class).annotatedWith(org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider.class).to(org.eclipse.papyrus.uml.textedit.property.xtext.ui.labeling.UmlPropertyDescriptionLabelProvider.class);
+ }
+
+ // contributed by org.eclipse.xtext.ui.generator.outline.OutlineTreeProviderFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider> bindIOutlineTreeProvider() {
+ return org.eclipse.papyrus.uml.textedit.property.xtext.ui.outline.UmlPropertyOutlineTreeProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.ui.generator.outline.OutlineTreeProviderFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.outline.impl.IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() {
+ return org.eclipse.papyrus.uml.textedit.property.xtext.ui.outline.UmlPropertyOutlineTreeProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.ui.generator.quickfix.QuickfixProviderFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider> bindIssueResolutionProvider() {
+ return org.eclipse.papyrus.uml.textedit.property.xtext.ui.quickfix.UmlPropertyQuickfixProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.ui.generator.contentAssist.JavaBasedContentAssistFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider> bindIContentProposalProvider() {
+ return org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.UmlPropertyProposalProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext.Factory> bindContentAssistContext$Factory() {
+ return org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment
+ public Class<? extends org.eclipse.xtext.ui.editor.contentassist.antlr.IContentAssistParser> bindIContentAssistParser() {
+ return org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.UmlPropertyParser.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment
+ public void configureContentAssistLexerProvider(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyLexer.class).toProvider(org.eclipse.xtext.parser.antlr.LexerProvider.create(org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyLexer.class));
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment
+ public void configureContentAssistLexer(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.CONTENT_ASSIST)).to(org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyLexer.class);
+ }
+
+
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/UmlPropertyExecutableExtensionFactory.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/UmlPropertyExecutableExtensionFactory.java
index 4549a1c7d94..b171b5a1136 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/UmlPropertyExecutableExtensionFactory.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/UmlPropertyExecutableExtensionFactory.java
@@ -1,29 +1,29 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.ui;
-
-import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory;
-import org.osgi.framework.Bundle;
-
-import com.google.inject.Injector;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.ui.internal.UmlPropertyActivator;
-
-/**
- * This class was generated. Customizations should only happen in a newly
- * introduced subclass.
- */
-public class UmlPropertyExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory {
-
- @Override
- protected Bundle getBundle() {
- return UmlPropertyActivator.getInstance().getBundle();
- }
-
- @Override
- protected Injector getInjector() {
- return UmlPropertyActivator.getInstance().getInjector(UmlPropertyActivator.ORG_ECLIPSE_PAPYRUS_UML_TEXTEDIT_PROPERTY_XTEXT_UMLPROPERTY);
- }
-
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.ui;
+
+import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory;
+import org.osgi.framework.Bundle;
+
+import com.google.inject.Injector;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.ui.internal.UmlPropertyActivator;
+
+/**
+ * This class was generated. Customizations should only happen in a newly
+ * introduced subclass.
+ */
+public class UmlPropertyExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory {
+
+ @Override
+ protected Bundle getBundle() {
+ return UmlPropertyActivator.getInstance().getBundle();
+ }
+
+ @Override
+ protected Injector getInjector() {
+ return UmlPropertyActivator.getInstance().getInjector(UmlPropertyActivator.ORG_ECLIPSE_PAPYRUS_UML_TEXTEDIT_PROPERTY_XTEXT_UMLPROPERTY);
+ }
+
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/AbstractUmlPropertyProposalProvider.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/AbstractUmlPropertyProposalProvider.java
index 4ac448becea..d23468a6fb1 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/AbstractUmlPropertyProposalProvider.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/AbstractUmlPropertyProposalProvider.java
@@ -1,214 +1,171 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.xtext.*;
-import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor;
-import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext;
-
-/**
- * Represents a generated, default implementation of superclass {@link org.eclipse.papyrus.uml.alf.ui.contentassist.CommonProposalProvider}.
- * Methods are dynamically dispatched on the first parameter, i.e., you can override them
- * with a more concrete subtype.
- */
-@SuppressWarnings("all")
-public class AbstractUmlPropertyProposalProvider extends org.eclipse.papyrus.uml.alf.ui.contentassist.CommonProposalProvider {
-
- public void completePropertyRule_Visibility(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completePropertyRule_Derived(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void completePropertyRule_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completePropertyRule_Type(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completePropertyRule_TypeUndefined(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void completePropertyRule_Multiplicity(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completePropertyRule_Modifiers(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completePropertyRule_Default(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeVisibilityRule_Visibility(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeTypeRule_Path(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeTypeRule_Type(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- lookupCrossReference(((CrossReference) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeQualifiedName_Path(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- lookupCrossReference(((CrossReference) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeQualifiedName_Remaining(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeMultiplicityRule_Bounds(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeBoundSpecification_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeModifiersRule_Values(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeModifierSpecification_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeModifierSpecification_Redefines(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeModifierSpecification_Subsets(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeRedefinesRule_Property(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- lookupCrossReference(((CrossReference) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeSubsetsRule_Property(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- lookupCrossReference(((CrossReference) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeDefaultValueRule_Default(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeIntValue_LiteralInteger(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeStringValue_LiteralString(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeBooleanValue_LiteralBoolean(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeRealValue_Integer(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void completeRealValue_Fraction(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- completeRuleCall(((RuleCall) assignment.getTerminal()), context, acceptor);
- }
-
- public void complete_PropertyRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_VisibilityKind(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_VisibilityRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_TypeRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_QualifiedName(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_MultiplicityRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_BoundSpecification(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_UnlimitedLiteral(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_ModifiersRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_ModifierSpecification(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_ModifierKind(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_RedefinesRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_SubsetsRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_DefaultValueRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_Value(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_IntValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_StringValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_BooleanLiterals(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_BooleanValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_RealValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_NullValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-
- public void complete_NoValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
- // subclasses may override
- }
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.xtext.*;
+import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor;
+import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext;
+
+/**
+ * Represents a generated, default implementation of superclass {@link org.eclipse.papyrus.uml.alf.ui.contentassist.CommonProposalProvider}.
+ * Methods are dynamically dispatched on the first parameter, i.e., you can override them
+ * with a more concrete subtype.
+ */
+@SuppressWarnings("all")
+public class AbstractUmlPropertyProposalProvider extends org.eclipse.papyrus.uml.alf.ui.contentassist.CommonProposalProvider {
+
+ public void completePropertyRule_Visibility(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completePropertyRule_Derived(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void completePropertyRule_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completePropertyRule_Type(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completePropertyRule_TypeUndefined(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void completePropertyRule_Multiplicity(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completePropertyRule_Modifiers(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completePropertyRule_Default(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeVisibilityRule_Visibility(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeTypeRule_Path(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeTypeRule_Type(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeQualifiedName_Path(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeQualifiedName_Remaining(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeMultiplicityRule_Bounds(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeBoundSpecification_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(0)), context, acceptor);
+ completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(1)), context, acceptor);
+ }
+ public void completeModifiersRule_Values(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeModifierSpecification_Value(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeModifierSpecification_Redefines(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeModifierSpecification_Subsets(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeRedefinesRule_Property(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeSubsetsRule_Property(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeDefaultValueRule_Default(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeIntValue_LiteralInteger(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeStringValue_LiteralString(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeBooleanValue_LiteralBoolean(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeRealValue_Integer(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+ public void completeRealValue_Fraction(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
+ }
+
+ public void complete_PropertyRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_VisibilityKind(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_VisibilityRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_TypeRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_QualifiedName(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_MultiplicityRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_BoundSpecification(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_UnlimitedLiteral(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_StringLiteral(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_ModifiersRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_ModifierSpecification(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_ModifierKind(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_RedefinesRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_SubsetsRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_DefaultValueRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_Value(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_IntValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_StringValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_BooleanLiterals(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_BooleanValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_RealValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_NullValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+ public void complete_NoValue(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
+ // subclasses may override
+ }
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/UmlPropertyParser.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/UmlPropertyParser.java
index 3ab56297cb3..af3f46f512f 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/UmlPropertyParser.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/UmlPropertyParser.java
@@ -1,125 +1,126 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr;
-
-import java.util.Collection;
-import java.util.Map;
-import java.util.HashMap;
-
-import org.antlr.runtime.RecognitionException;
-import org.eclipse.xtext.AbstractElement;
-import org.eclipse.xtext.ui.editor.contentassist.antlr.AbstractContentAssistParser;
-import org.eclipse.xtext.ui.editor.contentassist.antlr.FollowElement;
-import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser;
-
-import com.google.inject.Inject;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess;
-
-public class UmlPropertyParser extends AbstractContentAssistParser {
-
- @Inject
- private UmlPropertyGrammarAccess grammarAccess;
-
- private Map<AbstractElement, String> nameMappings;
-
- @Override
- protected org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyParser createParser() {
- org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyParser result = new org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyParser(null);
- result.setGrammarAccess(grammarAccess);
- return result;
- }
-
- @Override
- protected String getRuleName(AbstractElement element) {
- if (nameMappings == null) {
- nameMappings = new HashMap<AbstractElement, String>() {
- private static final long serialVersionUID = 1L;
- {
- put(grammarAccess.getPropertyRuleAccess().getAlternatives_3_1(), "rule__PropertyRule__Alternatives_3_1");
- put(grammarAccess.getUnlimitedLiteralAccess().getAlternatives(), "rule__UnlimitedLiteral__Alternatives");
- put(grammarAccess.getModifierSpecificationAccess().getAlternatives(), "rule__ModifierSpecification__Alternatives");
- put(grammarAccess.getValueAccess().getAlternatives(), "rule__Value__Alternatives");
- put(grammarAccess.getRealValueAccess().getAlternatives(), "rule__RealValue__Alternatives");
- put(grammarAccess.getVisibilityKindAccess().getAlternatives(), "rule__VisibilityKind__Alternatives");
- put(grammarAccess.getModifierKindAccess().getAlternatives(), "rule__ModifierKind__Alternatives");
- put(grammarAccess.getBooleanLiteralsAccess().getAlternatives(), "rule__BooleanLiterals__Alternatives");
- put(grammarAccess.getPropertyRuleAccess().getGroup(), "rule__PropertyRule__Group__0");
- put(grammarAccess.getPropertyRuleAccess().getGroup_3(), "rule__PropertyRule__Group_3__0");
- put(grammarAccess.getTypeRuleAccess().getGroup(), "rule__TypeRule__Group__0");
- put(grammarAccess.getQualifiedNameAccess().getGroup(), "rule__QualifiedName__Group__0");
- put(grammarAccess.getMultiplicityRuleAccess().getGroup(), "rule__MultiplicityRule__Group__0");
- put(grammarAccess.getMultiplicityRuleAccess().getGroup_2(), "rule__MultiplicityRule__Group_2__0");
- put(grammarAccess.getModifiersRuleAccess().getGroup(), "rule__ModifiersRule__Group__0");
- put(grammarAccess.getModifiersRuleAccess().getGroup_2(), "rule__ModifiersRule__Group_2__0");
- put(grammarAccess.getModifiersRuleAccess().getGroup_2_1(), "rule__ModifiersRule__Group_2_1__0");
- put(grammarAccess.getRedefinesRuleAccess().getGroup(), "rule__RedefinesRule__Group__0");
- put(grammarAccess.getSubsetsRuleAccess().getGroup(), "rule__SubsetsRule__Group__0");
- put(grammarAccess.getDefaultValueRuleAccess().getGroup(), "rule__DefaultValueRule__Group__0");
- put(grammarAccess.getRealValueAccess().getGroup_0(), "rule__RealValue__Group_0__0");
- put(grammarAccess.getRealValueAccess().getGroup_1(), "rule__RealValue__Group_1__0");
- put(grammarAccess.getRealValueAccess().getGroup_2(), "rule__RealValue__Group_2__0");
- put(grammarAccess.getNullValueAccess().getGroup(), "rule__NullValue__Group__0");
- put(grammarAccess.getNoValueAccess().getGroup(), "rule__NoValue__Group__0");
- put(grammarAccess.getPropertyRuleAccess().getVisibilityAssignment_0(), "rule__PropertyRule__VisibilityAssignment_0");
- put(grammarAccess.getPropertyRuleAccess().getDerivedAssignment_1(), "rule__PropertyRule__DerivedAssignment_1");
- put(grammarAccess.getPropertyRuleAccess().getNameAssignment_2(), "rule__PropertyRule__NameAssignment_2");
- put(grammarAccess.getPropertyRuleAccess().getTypeAssignment_3_1_0(), "rule__PropertyRule__TypeAssignment_3_1_0");
- put(grammarAccess.getPropertyRuleAccess().getTypeUndefinedAssignment_3_1_1(), "rule__PropertyRule__TypeUndefinedAssignment_3_1_1");
- put(grammarAccess.getPropertyRuleAccess().getMultiplicityAssignment_4(), "rule__PropertyRule__MultiplicityAssignment_4");
- put(grammarAccess.getPropertyRuleAccess().getModifiersAssignment_5(), "rule__PropertyRule__ModifiersAssignment_5");
- put(grammarAccess.getPropertyRuleAccess().getDefaultAssignment_6(), "rule__PropertyRule__DefaultAssignment_6");
- put(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment(), "rule__VisibilityRule__VisibilityAssignment");
- put(grammarAccess.getTypeRuleAccess().getPathAssignment_0(), "rule__TypeRule__PathAssignment_0");
- put(grammarAccess.getTypeRuleAccess().getTypeAssignment_1(), "rule__TypeRule__TypeAssignment_1");
- put(grammarAccess.getQualifiedNameAccess().getPathAssignment_0(), "rule__QualifiedName__PathAssignment_0");
- put(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2(), "rule__QualifiedName__RemainingAssignment_2");
- put(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1(), "rule__MultiplicityRule__BoundsAssignment_1");
- put(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2_1(), "rule__MultiplicityRule__BoundsAssignment_2_1");
- put(grammarAccess.getBoundSpecificationAccess().getValueAssignment(), "rule__BoundSpecification__ValueAssignment");
- put(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0(), "rule__ModifiersRule__ValuesAssignment_2_0");
- put(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1(), "rule__ModifiersRule__ValuesAssignment_2_1_1");
- put(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0(), "rule__ModifierSpecification__ValueAssignment_0");
- put(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1(), "rule__ModifierSpecification__RedefinesAssignment_1");
- put(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2(), "rule__ModifierSpecification__SubsetsAssignment_2");
- put(grammarAccess.getRedefinesRuleAccess().getPropertyAssignment_1(), "rule__RedefinesRule__PropertyAssignment_1");
- put(grammarAccess.getSubsetsRuleAccess().getPropertyAssignment_1(), "rule__SubsetsRule__PropertyAssignment_1");
- put(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1(), "rule__DefaultValueRule__DefaultAssignment_1");
- put(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment(), "rule__IntValue__LiteralIntegerAssignment");
- put(grammarAccess.getStringValueAccess().getLiteralStringAssignment(), "rule__StringValue__LiteralStringAssignment");
- put(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment(), "rule__BooleanValue__LiteralBooleanAssignment");
- put(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0(), "rule__RealValue__IntegerAssignment_0_0");
- put(grammarAccess.getRealValueAccess().getFractionAssignment_1_1(), "rule__RealValue__FractionAssignment_1_1");
- put(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0(), "rule__RealValue__IntegerAssignment_2_0");
- put(grammarAccess.getRealValueAccess().getFractionAssignment_2_2(), "rule__RealValue__FractionAssignment_2_2");
- }
- };
- }
- return nameMappings.get(element);
- }
-
- @Override
- protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
- try {
- org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyParser typedParser = (org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyParser) parser;
- typedParser.entryRulePropertyRule();
- return typedParser.getFollowElements();
- } catch (RecognitionException ex) {
- throw new RuntimeException(ex);
- }
- }
-
- @Override
- protected String[] getInitialHiddenTokens() {
- return new String[] { "RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT" };
- }
-
- public UmlPropertyGrammarAccess getGrammarAccess() {
- return this.grammarAccess;
- }
-
- public void setGrammarAccess(UmlPropertyGrammarAccess grammarAccess) {
- this.grammarAccess = grammarAccess;
- }
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr;
+
+import java.util.Collection;
+import java.util.Map;
+import java.util.HashMap;
+
+import org.antlr.runtime.RecognitionException;
+import org.eclipse.xtext.AbstractElement;
+import org.eclipse.xtext.ui.editor.contentassist.antlr.AbstractContentAssistParser;
+import org.eclipse.xtext.ui.editor.contentassist.antlr.FollowElement;
+import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser;
+
+import com.google.inject.Inject;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess;
+
+public class UmlPropertyParser extends AbstractContentAssistParser {
+
+ @Inject
+ private UmlPropertyGrammarAccess grammarAccess;
+
+ private Map<AbstractElement, String> nameMappings;
+
+ @Override
+ protected org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyParser createParser() {
+ org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyParser result = new org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyParser(null);
+ result.setGrammarAccess(grammarAccess);
+ return result;
+ }
+
+ @Override
+ protected String getRuleName(AbstractElement element) {
+ if (nameMappings == null) {
+ nameMappings = new HashMap<AbstractElement, String>() {
+ private static final long serialVersionUID = 1L;
+ {
+ put(grammarAccess.getPropertyRuleAccess().getAlternatives_3_1(), "rule__PropertyRule__Alternatives_3_1");
+ put(grammarAccess.getBoundSpecificationAccess().getValueAlternatives_0(), "rule__BoundSpecification__ValueAlternatives_0");
+ put(grammarAccess.getUnlimitedLiteralAccess().getAlternatives(), "rule__UnlimitedLiteral__Alternatives");
+ put(grammarAccess.getModifierSpecificationAccess().getAlternatives(), "rule__ModifierSpecification__Alternatives");
+ put(grammarAccess.getValueAccess().getAlternatives(), "rule__Value__Alternatives");
+ put(grammarAccess.getRealValueAccess().getAlternatives(), "rule__RealValue__Alternatives");
+ put(grammarAccess.getVisibilityKindAccess().getAlternatives(), "rule__VisibilityKind__Alternatives");
+ put(grammarAccess.getModifierKindAccess().getAlternatives(), "rule__ModifierKind__Alternatives");
+ put(grammarAccess.getBooleanLiteralsAccess().getAlternatives(), "rule__BooleanLiterals__Alternatives");
+ put(grammarAccess.getPropertyRuleAccess().getGroup(), "rule__PropertyRule__Group__0");
+ put(grammarAccess.getPropertyRuleAccess().getGroup_3(), "rule__PropertyRule__Group_3__0");
+ put(grammarAccess.getTypeRuleAccess().getGroup(), "rule__TypeRule__Group__0");
+ put(grammarAccess.getQualifiedNameAccess().getGroup(), "rule__QualifiedName__Group__0");
+ put(grammarAccess.getMultiplicityRuleAccess().getGroup(), "rule__MultiplicityRule__Group__0");
+ put(grammarAccess.getMultiplicityRuleAccess().getGroup_2(), "rule__MultiplicityRule__Group_2__0");
+ put(grammarAccess.getModifiersRuleAccess().getGroup(), "rule__ModifiersRule__Group__0");
+ put(grammarAccess.getModifiersRuleAccess().getGroup_2(), "rule__ModifiersRule__Group_2__0");
+ put(grammarAccess.getModifiersRuleAccess().getGroup_2_1(), "rule__ModifiersRule__Group_2_1__0");
+ put(grammarAccess.getRedefinesRuleAccess().getGroup(), "rule__RedefinesRule__Group__0");
+ put(grammarAccess.getSubsetsRuleAccess().getGroup(), "rule__SubsetsRule__Group__0");
+ put(grammarAccess.getDefaultValueRuleAccess().getGroup(), "rule__DefaultValueRule__Group__0");
+ put(grammarAccess.getRealValueAccess().getGroup_0(), "rule__RealValue__Group_0__0");
+ put(grammarAccess.getRealValueAccess().getGroup_1(), "rule__RealValue__Group_1__0");
+ put(grammarAccess.getRealValueAccess().getGroup_2(), "rule__RealValue__Group_2__0");
+ put(grammarAccess.getNullValueAccess().getGroup(), "rule__NullValue__Group__0");
+ put(grammarAccess.getNoValueAccess().getGroup(), "rule__NoValue__Group__0");
+ put(grammarAccess.getPropertyRuleAccess().getVisibilityAssignment_0(), "rule__PropertyRule__VisibilityAssignment_0");
+ put(grammarAccess.getPropertyRuleAccess().getDerivedAssignment_1(), "rule__PropertyRule__DerivedAssignment_1");
+ put(grammarAccess.getPropertyRuleAccess().getNameAssignment_2(), "rule__PropertyRule__NameAssignment_2");
+ put(grammarAccess.getPropertyRuleAccess().getTypeAssignment_3_1_0(), "rule__PropertyRule__TypeAssignment_3_1_0");
+ put(grammarAccess.getPropertyRuleAccess().getTypeUndefinedAssignment_3_1_1(), "rule__PropertyRule__TypeUndefinedAssignment_3_1_1");
+ put(grammarAccess.getPropertyRuleAccess().getMultiplicityAssignment_4(), "rule__PropertyRule__MultiplicityAssignment_4");
+ put(grammarAccess.getPropertyRuleAccess().getModifiersAssignment_5(), "rule__PropertyRule__ModifiersAssignment_5");
+ put(grammarAccess.getPropertyRuleAccess().getDefaultAssignment_6(), "rule__PropertyRule__DefaultAssignment_6");
+ put(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment(), "rule__VisibilityRule__VisibilityAssignment");
+ put(grammarAccess.getTypeRuleAccess().getPathAssignment_0(), "rule__TypeRule__PathAssignment_0");
+ put(grammarAccess.getTypeRuleAccess().getTypeAssignment_1(), "rule__TypeRule__TypeAssignment_1");
+ put(grammarAccess.getQualifiedNameAccess().getPathAssignment_0(), "rule__QualifiedName__PathAssignment_0");
+ put(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2(), "rule__QualifiedName__RemainingAssignment_2");
+ put(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1(), "rule__MultiplicityRule__BoundsAssignment_1");
+ put(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2_1(), "rule__MultiplicityRule__BoundsAssignment_2_1");
+ put(grammarAccess.getBoundSpecificationAccess().getValueAssignment(), "rule__BoundSpecification__ValueAssignment");
+ put(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0(), "rule__ModifiersRule__ValuesAssignment_2_0");
+ put(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1(), "rule__ModifiersRule__ValuesAssignment_2_1_1");
+ put(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0(), "rule__ModifierSpecification__ValueAssignment_0");
+ put(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1(), "rule__ModifierSpecification__RedefinesAssignment_1");
+ put(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2(), "rule__ModifierSpecification__SubsetsAssignment_2");
+ put(grammarAccess.getRedefinesRuleAccess().getPropertyAssignment_1(), "rule__RedefinesRule__PropertyAssignment_1");
+ put(grammarAccess.getSubsetsRuleAccess().getPropertyAssignment_1(), "rule__SubsetsRule__PropertyAssignment_1");
+ put(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1(), "rule__DefaultValueRule__DefaultAssignment_1");
+ put(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment(), "rule__IntValue__LiteralIntegerAssignment");
+ put(grammarAccess.getStringValueAccess().getLiteralStringAssignment(), "rule__StringValue__LiteralStringAssignment");
+ put(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment(), "rule__BooleanValue__LiteralBooleanAssignment");
+ put(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0(), "rule__RealValue__IntegerAssignment_0_0");
+ put(grammarAccess.getRealValueAccess().getFractionAssignment_1_1(), "rule__RealValue__FractionAssignment_1_1");
+ put(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0(), "rule__RealValue__IntegerAssignment_2_0");
+ put(grammarAccess.getRealValueAccess().getFractionAssignment_2_2(), "rule__RealValue__FractionAssignment_2_2");
+ }
+ };
+ }
+ return nameMappings.get(element);
+ }
+
+ @Override
+ protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
+ try {
+ org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyParser typedParser = (org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal.InternalUmlPropertyParser) parser;
+ typedParser.entryRulePropertyRule();
+ return typedParser.getFollowElements();
+ } catch(RecognitionException ex) {
+ throw new RuntimeException(ex);
+ }
+ }
+
+ @Override
+ protected String[] getInitialHiddenTokens() {
+ return new String[] { "RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT" };
+ }
+
+ public UmlPropertyGrammarAccess getGrammarAccess() {
+ return this.grammarAccess;
+ }
+
+ public void setGrammarAccess(UmlPropertyGrammarAccess grammarAccess) {
+ this.grammarAccess = grammarAccess;
+ }
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g
index 1a545f1252b..007df56023c 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g
@@ -1,2830 +1,2881 @@
-/*
-* generated by Xtext
-*/
-grammar InternalUmlProperty;
-
-options {
- superClass=AbstractInternalContentAssistParser;
-
-}
-
-@lexer::header {
-package org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal;
-
-// Hack: Use our own Lexer superclass by means of import.
-// Currently there is no other way to specify the superclass for the lexer.
-import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer;
-}
-
-@parser::header {
-package org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal;
-
-import java.io.InputStream;
-import org.eclipse.xtext.*;
-import org.eclipse.xtext.parser.*;
-import org.eclipse.xtext.parser.impl.*;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.xtext.parser.antlr.XtextTokenStream;
-import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
-import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser;
-import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.DFA;
-import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess;
-
-}
-
-@parser::members {
-
- private UmlPropertyGrammarAccess grammarAccess;
-
- public void setGrammarAccess(UmlPropertyGrammarAccess grammarAccess) {
- this.grammarAccess = grammarAccess;
- }
-
- @Override
- protected Grammar getGrammar() {
- return grammarAccess.getGrammar();
- }
-
- @Override
- protected String getValueForTokenName(String tokenName) {
- return tokenName;
- }
-
-}
-
-
-
-
-// Entry rule entryRulePropertyRule
-entryRulePropertyRule
-:
-{ before(grammarAccess.getPropertyRuleRule()); }
- rulePropertyRule
-{ after(grammarAccess.getPropertyRuleRule()); }
- EOF
-;
-
-// Rule PropertyRule
-rulePropertyRule
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getPropertyRuleAccess().getGroup()); }
-(rule__PropertyRule__Group__0)
-{ after(grammarAccess.getPropertyRuleAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleVisibilityRule
-entryRuleVisibilityRule
-:
-{ before(grammarAccess.getVisibilityRuleRule()); }
- ruleVisibilityRule
-{ after(grammarAccess.getVisibilityRuleRule()); }
- EOF
-;
-
-// Rule VisibilityRule
-ruleVisibilityRule
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment()); }
-(rule__VisibilityRule__VisibilityAssignment)
-{ after(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleTypeRule
-entryRuleTypeRule
-:
-{ before(grammarAccess.getTypeRuleRule()); }
- ruleTypeRule
-{ after(grammarAccess.getTypeRuleRule()); }
- EOF
-;
-
-// Rule TypeRule
-ruleTypeRule
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getTypeRuleAccess().getGroup()); }
-(rule__TypeRule__Group__0)
-{ after(grammarAccess.getTypeRuleAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleQualifiedName
-entryRuleQualifiedName
-:
-{ before(grammarAccess.getQualifiedNameRule()); }
- ruleQualifiedName
-{ after(grammarAccess.getQualifiedNameRule()); }
- EOF
-;
-
-// Rule QualifiedName
-ruleQualifiedName
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getQualifiedNameAccess().getGroup()); }
-(rule__QualifiedName__Group__0)
-{ after(grammarAccess.getQualifiedNameAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleMultiplicityRule
-entryRuleMultiplicityRule
-:
-{ before(grammarAccess.getMultiplicityRuleRule()); }
- ruleMultiplicityRule
-{ after(grammarAccess.getMultiplicityRuleRule()); }
- EOF
-;
-
-// Rule MultiplicityRule
-ruleMultiplicityRule
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getMultiplicityRuleAccess().getGroup()); }
-(rule__MultiplicityRule__Group__0)
-{ after(grammarAccess.getMultiplicityRuleAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleBoundSpecification
-entryRuleBoundSpecification
-:
-{ before(grammarAccess.getBoundSpecificationRule()); }
- ruleBoundSpecification
-{ after(grammarAccess.getBoundSpecificationRule()); }
- EOF
-;
-
-// Rule BoundSpecification
-ruleBoundSpecification
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getBoundSpecificationAccess().getValueAssignment()); }
-(rule__BoundSpecification__ValueAssignment)
-{ after(grammarAccess.getBoundSpecificationAccess().getValueAssignment()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleUnlimitedLiteral
-entryRuleUnlimitedLiteral
-:
-{ before(grammarAccess.getUnlimitedLiteralRule()); }
- ruleUnlimitedLiteral
-{ after(grammarAccess.getUnlimitedLiteralRule()); }
- EOF
-;
-
-// Rule UnlimitedLiteral
-ruleUnlimitedLiteral
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getUnlimitedLiteralAccess().getAlternatives()); }
-(rule__UnlimitedLiteral__Alternatives)
-{ after(grammarAccess.getUnlimitedLiteralAccess().getAlternatives()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleModifiersRule
-entryRuleModifiersRule
-:
-{ before(grammarAccess.getModifiersRuleRule()); }
- ruleModifiersRule
-{ after(grammarAccess.getModifiersRuleRule()); }
- EOF
-;
-
-// Rule ModifiersRule
-ruleModifiersRule
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getModifiersRuleAccess().getGroup()); }
-(rule__ModifiersRule__Group__0)
-{ after(grammarAccess.getModifiersRuleAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleModifierSpecification
-entryRuleModifierSpecification
-:
-{ before(grammarAccess.getModifierSpecificationRule()); }
- ruleModifierSpecification
-{ after(grammarAccess.getModifierSpecificationRule()); }
- EOF
-;
-
-// Rule ModifierSpecification
-ruleModifierSpecification
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getModifierSpecificationAccess().getAlternatives()); }
-(rule__ModifierSpecification__Alternatives)
-{ after(grammarAccess.getModifierSpecificationAccess().getAlternatives()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleRedefinesRule
-entryRuleRedefinesRule
-:
-{ before(grammarAccess.getRedefinesRuleRule()); }
- ruleRedefinesRule
-{ after(grammarAccess.getRedefinesRuleRule()); }
- EOF
-;
-
-// Rule RedefinesRule
-ruleRedefinesRule
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getRedefinesRuleAccess().getGroup()); }
-(rule__RedefinesRule__Group__0)
-{ after(grammarAccess.getRedefinesRuleAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleSubsetsRule
-entryRuleSubsetsRule
-:
-{ before(grammarAccess.getSubsetsRuleRule()); }
- ruleSubsetsRule
-{ after(grammarAccess.getSubsetsRuleRule()); }
- EOF
-;
-
-// Rule SubsetsRule
-ruleSubsetsRule
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getSubsetsRuleAccess().getGroup()); }
-(rule__SubsetsRule__Group__0)
-{ after(grammarAccess.getSubsetsRuleAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleDefaultValueRule
-entryRuleDefaultValueRule
-:
-{ before(grammarAccess.getDefaultValueRuleRule()); }
- ruleDefaultValueRule
-{ after(grammarAccess.getDefaultValueRuleRule()); }
- EOF
-;
-
-// Rule DefaultValueRule
-ruleDefaultValueRule
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getDefaultValueRuleAccess().getGroup()); }
-(rule__DefaultValueRule__Group__0)
-{ after(grammarAccess.getDefaultValueRuleAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleValue
-entryRuleValue
-:
-{ before(grammarAccess.getValueRule()); }
- ruleValue
-{ after(grammarAccess.getValueRule()); }
- EOF
-;
-
-// Rule Value
-ruleValue
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getValueAccess().getAlternatives()); }
-(rule__Value__Alternatives)
-{ after(grammarAccess.getValueAccess().getAlternatives()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleIntValue
-entryRuleIntValue
-:
-{ before(grammarAccess.getIntValueRule()); }
- ruleIntValue
-{ after(grammarAccess.getIntValueRule()); }
- EOF
-;
-
-// Rule IntValue
-ruleIntValue
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment()); }
-(rule__IntValue__LiteralIntegerAssignment)
-{ after(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleStringValue
-entryRuleStringValue
-:
-{ before(grammarAccess.getStringValueRule()); }
- ruleStringValue
-{ after(grammarAccess.getStringValueRule()); }
- EOF
-;
-
-// Rule StringValue
-ruleStringValue
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getStringValueAccess().getLiteralStringAssignment()); }
-(rule__StringValue__LiteralStringAssignment)
-{ after(grammarAccess.getStringValueAccess().getLiteralStringAssignment()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleBooleanValue
-entryRuleBooleanValue
-:
-{ before(grammarAccess.getBooleanValueRule()); }
- ruleBooleanValue
-{ after(grammarAccess.getBooleanValueRule()); }
- EOF
-;
-
-// Rule BooleanValue
-ruleBooleanValue
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment()); }
-(rule__BooleanValue__LiteralBooleanAssignment)
-{ after(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleRealValue
-entryRuleRealValue
-:
-{ before(grammarAccess.getRealValueRule()); }
- ruleRealValue
-{ after(grammarAccess.getRealValueRule()); }
- EOF
-;
-
-// Rule RealValue
-ruleRealValue
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getRealValueAccess().getAlternatives()); }
-(rule__RealValue__Alternatives)
-{ after(grammarAccess.getRealValueAccess().getAlternatives()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleNullValue
-entryRuleNullValue
-:
-{ before(grammarAccess.getNullValueRule()); }
- ruleNullValue
-{ after(grammarAccess.getNullValueRule()); }
- EOF
-;
-
-// Rule NullValue
-ruleNullValue
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getNullValueAccess().getGroup()); }
-(rule__NullValue__Group__0)
-{ after(grammarAccess.getNullValueAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Entry rule entryRuleNoValue
-entryRuleNoValue
-:
-{ before(grammarAccess.getNoValueRule()); }
- ruleNoValue
-{ after(grammarAccess.getNoValueRule()); }
- EOF
-;
-
-// Rule NoValue
-ruleNoValue
- @init {
- int stackSize = keepStackSize();
- }
- :
-(
-{ before(grammarAccess.getNoValueAccess().getGroup()); }
-(rule__NoValue__Group__0)
-{ after(grammarAccess.getNoValueAccess().getGroup()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-// Rule VisibilityKind
-ruleVisibilityKind
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getVisibilityKindAccess().getAlternatives()); }
-(rule__VisibilityKind__Alternatives)
-{ after(grammarAccess.getVisibilityKindAccess().getAlternatives()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Rule ModifierKind
-ruleModifierKind
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifierKindAccess().getAlternatives()); }
-(rule__ModifierKind__Alternatives)
-{ after(grammarAccess.getModifierKindAccess().getAlternatives()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-// Rule BooleanLiterals
-ruleBooleanLiterals
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getBooleanLiteralsAccess().getAlternatives()); }
-(rule__BooleanLiterals__Alternatives)
-{ after(grammarAccess.getBooleanLiteralsAccess().getAlternatives()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-rule__PropertyRule__Alternatives_3_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPropertyRuleAccess().getTypeAssignment_3_1_0()); }
-(rule__PropertyRule__TypeAssignment_3_1_0)
-{ after(grammarAccess.getPropertyRuleAccess().getTypeAssignment_3_1_0()); }
-)
-
- |(
-{ before(grammarAccess.getPropertyRuleAccess().getTypeUndefinedAssignment_3_1_1()); }
-(rule__PropertyRule__TypeUndefinedAssignment_3_1_1)
-{ after(grammarAccess.getPropertyRuleAccess().getTypeUndefinedAssignment_3_1_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__UnlimitedLiteral__Alternatives
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0()); }
- RULE_INT
-{ after(grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0()); }
-)
-
- |(
-{ before(grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1()); }
-
- '*'
-
-{ after(grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifierSpecification__Alternatives
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0()); }
-(rule__ModifierSpecification__ValueAssignment_0)
-{ after(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0()); }
-)
-
- |(
-{ before(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1()); }
-(rule__ModifierSpecification__RedefinesAssignment_1)
-{ after(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1()); }
-)
-
- |(
-{ before(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2()); }
-(rule__ModifierSpecification__SubsetsAssignment_2)
-{ after(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__Value__Alternatives
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getValueAccess().getIntValueParserRuleCall_0()); }
- ruleIntValue
-{ after(grammarAccess.getValueAccess().getIntValueParserRuleCall_0()); }
-)
-
- |(
-{ before(grammarAccess.getValueAccess().getStringValueParserRuleCall_1()); }
- ruleStringValue
-{ after(grammarAccess.getValueAccess().getStringValueParserRuleCall_1()); }
-)
-
- |(
-{ before(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2()); }
- ruleBooleanValue
-{ after(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2()); }
-)
-
- |(
-{ before(grammarAccess.getValueAccess().getRealValueParserRuleCall_3()); }
- ruleRealValue
-{ after(grammarAccess.getValueAccess().getRealValueParserRuleCall_3()); }
-)
-
- |(
-{ before(grammarAccess.getValueAccess().getNullValueParserRuleCall_4()); }
- ruleNullValue
-{ after(grammarAccess.getValueAccess().getNullValueParserRuleCall_4()); }
-)
-
- |(
-{ before(grammarAccess.getValueAccess().getNoValueParserRuleCall_5()); }
- ruleNoValue
-{ after(grammarAccess.getValueAccess().getNoValueParserRuleCall_5()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__Alternatives
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getGroup_0()); }
-(rule__RealValue__Group_0__0)
-{ after(grammarAccess.getRealValueAccess().getGroup_0()); }
-)
-
- |(
-{ before(grammarAccess.getRealValueAccess().getGroup_1()); }
-(rule__RealValue__Group_1__0)
-{ after(grammarAccess.getRealValueAccess().getGroup_1()); }
-)
-
- |(
-{ before(grammarAccess.getRealValueAccess().getGroup_2()); }
-(rule__RealValue__Group_2__0)
-{ after(grammarAccess.getRealValueAccess().getGroup_2()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__VisibilityKind__Alternatives
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0()); }
-( '+'
-)
-{ after(grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0()); }
-)
-
- |(
-{ before(grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1()); }
-( '-'
-)
-{ after(grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1()); }
-)
-
- |(
-{ before(grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2()); }
-( '#'
-)
-{ after(grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2()); }
-)
-
- |(
-{ before(grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3()); }
-( '~'
-)
-{ after(grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifierKind__Alternatives
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0()); }
-( 'readOnly'
-)
-{ after(grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0()); }
-)
-
- |(
-{ before(grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1()); }
-( 'union'
-)
-{ after(grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1()); }
-)
-
- |(
-{ before(grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2()); }
-( 'ordered'
-)
-{ after(grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2()); }
-)
-
- |(
-{ before(grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3()); }
-( 'unique'
-)
-{ after(grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__BooleanLiterals__Alternatives
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0()); }
-( 'true'
-)
-{ after(grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0()); }
-)
-
- |(
-{ before(grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1()); }
-( 'false'
-)
-{ after(grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-rule__PropertyRule__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__PropertyRule__Group__0__Impl
- rule__PropertyRule__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PropertyRule__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPropertyRuleAccess().getVisibilityAssignment_0()); }
-(rule__PropertyRule__VisibilityAssignment_0)?
-{ after(grammarAccess.getPropertyRuleAccess().getVisibilityAssignment_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__PropertyRule__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__PropertyRule__Group__1__Impl
- rule__PropertyRule__Group__2
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PropertyRule__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPropertyRuleAccess().getDerivedAssignment_1()); }
-(rule__PropertyRule__DerivedAssignment_1)?
-{ after(grammarAccess.getPropertyRuleAccess().getDerivedAssignment_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__PropertyRule__Group__2
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__PropertyRule__Group__2__Impl
- rule__PropertyRule__Group__3
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PropertyRule__Group__2__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPropertyRuleAccess().getNameAssignment_2()); }
-(rule__PropertyRule__NameAssignment_2)
-{ after(grammarAccess.getPropertyRuleAccess().getNameAssignment_2()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__PropertyRule__Group__3
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__PropertyRule__Group__3__Impl
- rule__PropertyRule__Group__4
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PropertyRule__Group__3__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPropertyRuleAccess().getGroup_3()); }
-(rule__PropertyRule__Group_3__0)?
-{ after(grammarAccess.getPropertyRuleAccess().getGroup_3()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__PropertyRule__Group__4
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__PropertyRule__Group__4__Impl
- rule__PropertyRule__Group__5
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PropertyRule__Group__4__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPropertyRuleAccess().getMultiplicityAssignment_4()); }
-(rule__PropertyRule__MultiplicityAssignment_4)?
-{ after(grammarAccess.getPropertyRuleAccess().getMultiplicityAssignment_4()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__PropertyRule__Group__5
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__PropertyRule__Group__5__Impl
- rule__PropertyRule__Group__6
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PropertyRule__Group__5__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPropertyRuleAccess().getModifiersAssignment_5()); }
-(rule__PropertyRule__ModifiersAssignment_5)?
-{ after(grammarAccess.getPropertyRuleAccess().getModifiersAssignment_5()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__PropertyRule__Group__6
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__PropertyRule__Group__6__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PropertyRule__Group__6__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPropertyRuleAccess().getDefaultAssignment_6()); }
-(rule__PropertyRule__DefaultAssignment_6)?
-{ after(grammarAccess.getPropertyRuleAccess().getDefaultAssignment_6()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-rule__PropertyRule__Group_3__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__PropertyRule__Group_3__0__Impl
- rule__PropertyRule__Group_3__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PropertyRule__Group_3__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPropertyRuleAccess().getColonKeyword_3_0()); }
-
- ':'
-
-{ after(grammarAccess.getPropertyRuleAccess().getColonKeyword_3_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__PropertyRule__Group_3__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__PropertyRule__Group_3__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PropertyRule__Group_3__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPropertyRuleAccess().getAlternatives_3_1()); }
-(rule__PropertyRule__Alternatives_3_1)
-{ after(grammarAccess.getPropertyRuleAccess().getAlternatives_3_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__TypeRule__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__TypeRule__Group__0__Impl
- rule__TypeRule__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__TypeRule__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getTypeRuleAccess().getPathAssignment_0()); }
-(rule__TypeRule__PathAssignment_0)?
-{ after(grammarAccess.getTypeRuleAccess().getPathAssignment_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__TypeRule__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__TypeRule__Group__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__TypeRule__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getTypeRuleAccess().getTypeAssignment_1()); }
-(rule__TypeRule__TypeAssignment_1)
-{ after(grammarAccess.getTypeRuleAccess().getTypeAssignment_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__QualifiedName__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__QualifiedName__Group__0__Impl
- rule__QualifiedName__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__QualifiedName__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getQualifiedNameAccess().getPathAssignment_0()); }
-(rule__QualifiedName__PathAssignment_0)
-{ after(grammarAccess.getQualifiedNameAccess().getPathAssignment_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__QualifiedName__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__QualifiedName__Group__1__Impl
- rule__QualifiedName__Group__2
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__QualifiedName__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1()); }
-
- '::'
-
-{ after(grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__QualifiedName__Group__2
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__QualifiedName__Group__2__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__QualifiedName__Group__2__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2()); }
-(rule__QualifiedName__RemainingAssignment_2)?
-{ after(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-
-
-rule__MultiplicityRule__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__MultiplicityRule__Group__0__Impl
- rule__MultiplicityRule__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__MultiplicityRule__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0()); }
-
- '['
-
-{ after(grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__MultiplicityRule__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__MultiplicityRule__Group__1__Impl
- rule__MultiplicityRule__Group__2
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__MultiplicityRule__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1()); }
-(rule__MultiplicityRule__BoundsAssignment_1)
-{ after(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__MultiplicityRule__Group__2
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__MultiplicityRule__Group__2__Impl
- rule__MultiplicityRule__Group__3
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__MultiplicityRule__Group__2__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getMultiplicityRuleAccess().getGroup_2()); }
-(rule__MultiplicityRule__Group_2__0)?
-{ after(grammarAccess.getMultiplicityRuleAccess().getGroup_2()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__MultiplicityRule__Group__3
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__MultiplicityRule__Group__3__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__MultiplicityRule__Group__3__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3()); }
-
- ']'
-
-{ after(grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-
-
-
-
-rule__MultiplicityRule__Group_2__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__MultiplicityRule__Group_2__0__Impl
- rule__MultiplicityRule__Group_2__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__MultiplicityRule__Group_2__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0()); }
-
- '..'
-
-{ after(grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__MultiplicityRule__Group_2__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__MultiplicityRule__Group_2__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__MultiplicityRule__Group_2__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2_1()); }
-(rule__MultiplicityRule__BoundsAssignment_2_1)
-{ after(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__ModifiersRule__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__ModifiersRule__Group__0__Impl
- rule__ModifiersRule__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0()); }
-(
-
-)
-{ after(grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__ModifiersRule__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__ModifiersRule__Group__1__Impl
- rule__ModifiersRule__Group__2
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1()); }
-
- '{'
-
-{ after(grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__ModifiersRule__Group__2
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__ModifiersRule__Group__2__Impl
- rule__ModifiersRule__Group__3
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__Group__2__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getGroup_2()); }
-(rule__ModifiersRule__Group_2__0)?
-{ after(grammarAccess.getModifiersRuleAccess().getGroup_2()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__ModifiersRule__Group__3
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__ModifiersRule__Group__3__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__Group__3__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3()); }
-
- '}'
-
-{ after(grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-
-
-
-
-rule__ModifiersRule__Group_2__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__ModifiersRule__Group_2__0__Impl
- rule__ModifiersRule__Group_2__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__Group_2__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0()); }
-(rule__ModifiersRule__ValuesAssignment_2_0)
-{ after(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__ModifiersRule__Group_2__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__ModifiersRule__Group_2__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__Group_2__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getGroup_2_1()); }
-(rule__ModifiersRule__Group_2_1__0)*
-{ after(grammarAccess.getModifiersRuleAccess().getGroup_2_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__ModifiersRule__Group_2_1__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__ModifiersRule__Group_2_1__0__Impl
- rule__ModifiersRule__Group_2_1__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__Group_2_1__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0()); }
-
- ','
-
-{ after(grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__ModifiersRule__Group_2_1__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__ModifiersRule__Group_2_1__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__Group_2_1__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1()); }
-(rule__ModifiersRule__ValuesAssignment_2_1_1)
-{ after(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__RedefinesRule__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__RedefinesRule__Group__0__Impl
- rule__RedefinesRule__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RedefinesRule__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0()); }
-
- 'redefines'
-
-{ after(grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__RedefinesRule__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__RedefinesRule__Group__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RedefinesRule__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRedefinesRuleAccess().getPropertyAssignment_1()); }
-(rule__RedefinesRule__PropertyAssignment_1)
-{ after(grammarAccess.getRedefinesRuleAccess().getPropertyAssignment_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__SubsetsRule__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__SubsetsRule__Group__0__Impl
- rule__SubsetsRule__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__SubsetsRule__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0()); }
-
- 'subsets'
-
-{ after(grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__SubsetsRule__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__SubsetsRule__Group__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__SubsetsRule__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getSubsetsRuleAccess().getPropertyAssignment_1()); }
-(rule__SubsetsRule__PropertyAssignment_1)
-{ after(grammarAccess.getSubsetsRuleAccess().getPropertyAssignment_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__DefaultValueRule__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__DefaultValueRule__Group__0__Impl
- rule__DefaultValueRule__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__DefaultValueRule__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0()); }
-
- '='
-
-{ after(grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__DefaultValueRule__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__DefaultValueRule__Group__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__DefaultValueRule__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1()); }
-(rule__DefaultValueRule__DefaultAssignment_1)
-{ after(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__RealValue__Group_0__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__RealValue__Group_0__0__Impl
- rule__RealValue__Group_0__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__Group_0__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0()); }
-(rule__RealValue__IntegerAssignment_0_0)
-{ after(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__RealValue__Group_0__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__RealValue__Group_0__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__Group_0__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getFullStopKeyword_0_1()); }
-
- '.'
-
-{ after(grammarAccess.getRealValueAccess().getFullStopKeyword_0_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__RealValue__Group_1__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__RealValue__Group_1__0__Impl
- rule__RealValue__Group_1__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__Group_1__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getFullStopKeyword_1_0()); }
-
- '.'
-
-{ after(grammarAccess.getRealValueAccess().getFullStopKeyword_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__RealValue__Group_1__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__RealValue__Group_1__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__Group_1__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getFractionAssignment_1_1()); }
-(rule__RealValue__FractionAssignment_1_1)
-{ after(grammarAccess.getRealValueAccess().getFractionAssignment_1_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__RealValue__Group_2__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__RealValue__Group_2__0__Impl
- rule__RealValue__Group_2__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__Group_2__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0()); }
-(rule__RealValue__IntegerAssignment_2_0)
-{ after(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__RealValue__Group_2__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__RealValue__Group_2__1__Impl
- rule__RealValue__Group_2__2
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__Group_2__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getFullStopKeyword_2_1()); }
-
- '.'
-
-{ after(grammarAccess.getRealValueAccess().getFullStopKeyword_2_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__RealValue__Group_2__2
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__RealValue__Group_2__2__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__Group_2__2__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getFractionAssignment_2_2()); }
-(rule__RealValue__FractionAssignment_2_2)
-{ after(grammarAccess.getRealValueAccess().getFractionAssignment_2_2()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-
-
-rule__NullValue__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__NullValue__Group__0__Impl
- rule__NullValue__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__NullValue__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getNullValueAccess().getNullValueAction_0()); }
-(
-
-)
-{ after(grammarAccess.getNullValueAccess().getNullValueAction_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__NullValue__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__NullValue__Group__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__NullValue__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getNullValueAccess().getNullKeyword_1()); }
-
- 'null'
-
-{ after(grammarAccess.getNullValueAccess().getNullKeyword_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-rule__NoValue__Group__0
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__NoValue__Group__0__Impl
- rule__NoValue__Group__1
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__NoValue__Group__0__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getNoValueAccess().getNoValueAction_0()); }
-(
-
-)
-{ after(grammarAccess.getNoValueAccess().getNoValueAction_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-rule__NoValue__Group__1
- @init {
- int stackSize = keepStackSize();
- }
-:
- rule__NoValue__Group__1__Impl
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__NoValue__Group__1__Impl
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getNoValueAccess().getNoneKeyword_1()); }
-
- 'none'
-
-{ after(grammarAccess.getNoValueAccess().getNoneKeyword_1()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-
-
-
-
-
-rule__PropertyRule__VisibilityAssignment_0
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPropertyRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0()); }
- ruleVisibilityRule{ after(grammarAccess.getPropertyRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PropertyRule__DerivedAssignment_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0()); }
-(
-{ before(grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0()); }
-
- '/'
-
-{ after(grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0()); }
-)
-
-{ after(grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PropertyRule__NameAssignment_2
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPropertyRuleAccess().getNameIDTerminalRuleCall_2_0()); }
- RULE_ID{ after(grammarAccess.getPropertyRuleAccess().getNameIDTerminalRuleCall_2_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PropertyRule__TypeAssignment_3_1_0
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPropertyRuleAccess().getTypeTypeRuleParserRuleCall_3_1_0_0()); }
- ruleTypeRule{ after(grammarAccess.getPropertyRuleAccess().getTypeTypeRuleParserRuleCall_3_1_0_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PropertyRule__TypeUndefinedAssignment_3_1_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0()); }
-(
-{ before(grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0()); }
-
- '<Undefined>'
-
-{ after(grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0()); }
-)
-
-{ after(grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PropertyRule__MultiplicityAssignment_4
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPropertyRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0()); }
- ruleMultiplicityRule{ after(grammarAccess.getPropertyRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PropertyRule__ModifiersAssignment_5
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPropertyRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0()); }
- ruleModifiersRule{ after(grammarAccess.getPropertyRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__PropertyRule__DefaultAssignment_6
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getPropertyRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0()); }
- ruleDefaultValueRule{ after(grammarAccess.getPropertyRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__VisibilityRule__VisibilityAssignment
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0()); }
- ruleVisibilityKind{ after(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__TypeRule__PathAssignment_0
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0()); }
- ruleQualifiedName{ after(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__TypeRule__TypeAssignment_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0()); }
-(
-{ before(grammarAccess.getTypeRuleAccess().getTypeClassifierIDTerminalRuleCall_1_0_1()); }
- RULE_ID{ after(grammarAccess.getTypeRuleAccess().getTypeClassifierIDTerminalRuleCall_1_0_1()); }
-)
-{ after(grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__QualifiedName__PathAssignment_0
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0()); }
-(
-{ before(grammarAccess.getQualifiedNameAccess().getPathNamespaceIDTerminalRuleCall_0_0_1()); }
- RULE_ID{ after(grammarAccess.getQualifiedNameAccess().getPathNamespaceIDTerminalRuleCall_0_0_1()); }
-)
-{ after(grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__QualifiedName__RemainingAssignment_2
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0()); }
- ruleQualifiedName{ after(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__MultiplicityRule__BoundsAssignment_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0()); }
- ruleBoundSpecification{ after(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__MultiplicityRule__BoundsAssignment_2_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0()); }
- ruleBoundSpecification{ after(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__BoundSpecification__ValueAssignment
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0()); }
- ruleUnlimitedLiteral{ after(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__ValuesAssignment_2_0
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0()); }
- ruleModifierSpecification{ after(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifiersRule__ValuesAssignment_2_1_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0()); }
- ruleModifierSpecification{ after(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifierSpecification__ValueAssignment_0
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0()); }
- ruleModifierKind{ after(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifierSpecification__RedefinesAssignment_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0()); }
- ruleRedefinesRule{ after(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__ModifierSpecification__SubsetsAssignment_2
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0()); }
- ruleSubsetsRule{ after(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RedefinesRule__PropertyAssignment_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyCrossReference_1_0()); }
-(
-{ before(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1()); }
- RULE_ID{ after(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1()); }
-)
-{ after(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyCrossReference_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__SubsetsRule__PropertyAssignment_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyCrossReference_1_0()); }
-(
-{ before(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1()); }
- RULE_ID{ after(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1()); }
-)
-{ after(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyCrossReference_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__DefaultValueRule__DefaultAssignment_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0()); }
- ruleValue{ after(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__IntValue__LiteralIntegerAssignment
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0()); }
- RULE_INT{ after(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__StringValue__LiteralStringAssignment
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0()); }
- RULE_STRING{ after(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__BooleanValue__LiteralBooleanAssignment
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0()); }
- ruleBooleanLiterals{ after(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__IntegerAssignment_0_0
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0()); }
- RULE_INT{ after(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__FractionAssignment_1_1
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0()); }
- RULE_INT{ after(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__IntegerAssignment_2_0
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0()); }
- RULE_INT{ after(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-rule__RealValue__FractionAssignment_2_2
- @init {
- int stackSize = keepStackSize();
- }
-:
-(
-{ before(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0()); }
- RULE_INT{ after(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0()); }
-)
-
-;
-finally {
- restoreStackSize(stackSize);
-}
-
-
-RULE_ID : (('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*|'\'' ( options {greedy=false;} : . )*'\'');
-
-RULE_STRING : '"' ('\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')|~(('\\'|'"')))* '"';
-
-RULE_ML_COMMENT : '/*' ~('@') ( options {greedy=false;} : . )*'*/';
-
-RULE_SL_COMMENT : '//' ~(('\n'|'\r'|'@'))* ('\r'? '\n')?;
-
-RULE_INT : ('0'..'9')+;
-
-RULE_INTEGER_VALUE : (('0'|'1'..'9' ('_'? '0'..'9')*)|('0b'|'0B') '0'..'1' ('_'? '0'..'1')*|('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F') ('_'? ('0'..'9'|'a'..'f'|'A'..'F'))*|'0' '_'? '0'..'7' ('_'? '0'..'7')*);
-
-RULE_WS : (' '|'\t'|'\r'|'\n')+;
-
-RULE_ANY_OTHER : .;
-
-
+/*
+ * generated by Xtext
+ */
+grammar InternalUmlProperty;
+
+options {
+ superClass=AbstractInternalContentAssistParser;
+
+}
+
+@lexer::header {
+package org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal;
+
+// Hack: Use our own Lexer superclass by means of import.
+// Currently there is no other way to specify the superclass for the lexer.
+import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer;
+}
+
+@parser::header {
+package org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal;
+
+import java.io.InputStream;
+import org.eclipse.xtext.*;
+import org.eclipse.xtext.parser.*;
+import org.eclipse.xtext.parser.impl.*;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
+import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser;
+import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.DFA;
+import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess;
+
+}
+
+@parser::members {
+
+ private UmlPropertyGrammarAccess grammarAccess;
+
+ public void setGrammarAccess(UmlPropertyGrammarAccess grammarAccess) {
+ this.grammarAccess = grammarAccess;
+ }
+
+ @Override
+ protected Grammar getGrammar() {
+ return grammarAccess.getGrammar();
+ }
+
+ @Override
+ protected String getValueForTokenName(String tokenName) {
+ return tokenName;
+ }
+
+}
+
+
+
+
+// Entry rule entryRulePropertyRule
+entryRulePropertyRule
+:
+{ before(grammarAccess.getPropertyRuleRule()); }
+ rulePropertyRule
+{ after(grammarAccess.getPropertyRuleRule()); }
+ EOF
+;
+
+// Rule PropertyRule
+rulePropertyRule
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getPropertyRuleAccess().getGroup()); }
+(rule__PropertyRule__Group__0)
+{ after(grammarAccess.getPropertyRuleAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleVisibilityRule
+entryRuleVisibilityRule
+:
+{ before(grammarAccess.getVisibilityRuleRule()); }
+ ruleVisibilityRule
+{ after(grammarAccess.getVisibilityRuleRule()); }
+ EOF
+;
+
+// Rule VisibilityRule
+ruleVisibilityRule
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment()); }
+(rule__VisibilityRule__VisibilityAssignment)
+{ after(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleTypeRule
+entryRuleTypeRule
+:
+{ before(grammarAccess.getTypeRuleRule()); }
+ ruleTypeRule
+{ after(grammarAccess.getTypeRuleRule()); }
+ EOF
+;
+
+// Rule TypeRule
+ruleTypeRule
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getTypeRuleAccess().getGroup()); }
+(rule__TypeRule__Group__0)
+{ after(grammarAccess.getTypeRuleAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleQualifiedName
+entryRuleQualifiedName
+:
+{ before(grammarAccess.getQualifiedNameRule()); }
+ ruleQualifiedName
+{ after(grammarAccess.getQualifiedNameRule()); }
+ EOF
+;
+
+// Rule QualifiedName
+ruleQualifiedName
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getQualifiedNameAccess().getGroup()); }
+(rule__QualifiedName__Group__0)
+{ after(grammarAccess.getQualifiedNameAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleMultiplicityRule
+entryRuleMultiplicityRule
+:
+{ before(grammarAccess.getMultiplicityRuleRule()); }
+ ruleMultiplicityRule
+{ after(grammarAccess.getMultiplicityRuleRule()); }
+ EOF
+;
+
+// Rule MultiplicityRule
+ruleMultiplicityRule
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getMultiplicityRuleAccess().getGroup()); }
+(rule__MultiplicityRule__Group__0)
+{ after(grammarAccess.getMultiplicityRuleAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleBoundSpecification
+entryRuleBoundSpecification
+:
+{ before(grammarAccess.getBoundSpecificationRule()); }
+ ruleBoundSpecification
+{ after(grammarAccess.getBoundSpecificationRule()); }
+ EOF
+;
+
+// Rule BoundSpecification
+ruleBoundSpecification
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getBoundSpecificationAccess().getValueAssignment()); }
+(rule__BoundSpecification__ValueAssignment)
+{ after(grammarAccess.getBoundSpecificationAccess().getValueAssignment()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleUnlimitedLiteral
+entryRuleUnlimitedLiteral
+:
+{ before(grammarAccess.getUnlimitedLiteralRule()); }
+ ruleUnlimitedLiteral
+{ after(grammarAccess.getUnlimitedLiteralRule()); }
+ EOF
+;
+
+// Rule UnlimitedLiteral
+ruleUnlimitedLiteral
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getUnlimitedLiteralAccess().getAlternatives()); }
+(rule__UnlimitedLiteral__Alternatives)
+{ after(grammarAccess.getUnlimitedLiteralAccess().getAlternatives()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleStringLiteral
+entryRuleStringLiteral
+:
+{ before(grammarAccess.getStringLiteralRule()); }
+ ruleStringLiteral
+{ after(grammarAccess.getStringLiteralRule()); }
+ EOF
+;
+
+// Rule StringLiteral
+ruleStringLiteral
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getStringLiteralAccess().getSTRINGTerminalRuleCall()); }
+ RULE_STRING
+{ after(grammarAccess.getStringLiteralAccess().getSTRINGTerminalRuleCall()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleModifiersRule
+entryRuleModifiersRule
+:
+{ before(grammarAccess.getModifiersRuleRule()); }
+ ruleModifiersRule
+{ after(grammarAccess.getModifiersRuleRule()); }
+ EOF
+;
+
+// Rule ModifiersRule
+ruleModifiersRule
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getModifiersRuleAccess().getGroup()); }
+(rule__ModifiersRule__Group__0)
+{ after(grammarAccess.getModifiersRuleAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleModifierSpecification
+entryRuleModifierSpecification
+:
+{ before(grammarAccess.getModifierSpecificationRule()); }
+ ruleModifierSpecification
+{ after(grammarAccess.getModifierSpecificationRule()); }
+ EOF
+;
+
+// Rule ModifierSpecification
+ruleModifierSpecification
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getModifierSpecificationAccess().getAlternatives()); }
+(rule__ModifierSpecification__Alternatives)
+{ after(grammarAccess.getModifierSpecificationAccess().getAlternatives()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleRedefinesRule
+entryRuleRedefinesRule
+:
+{ before(grammarAccess.getRedefinesRuleRule()); }
+ ruleRedefinesRule
+{ after(grammarAccess.getRedefinesRuleRule()); }
+ EOF
+;
+
+// Rule RedefinesRule
+ruleRedefinesRule
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getRedefinesRuleAccess().getGroup()); }
+(rule__RedefinesRule__Group__0)
+{ after(grammarAccess.getRedefinesRuleAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleSubsetsRule
+entryRuleSubsetsRule
+:
+{ before(grammarAccess.getSubsetsRuleRule()); }
+ ruleSubsetsRule
+{ after(grammarAccess.getSubsetsRuleRule()); }
+ EOF
+;
+
+// Rule SubsetsRule
+ruleSubsetsRule
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getSubsetsRuleAccess().getGroup()); }
+(rule__SubsetsRule__Group__0)
+{ after(grammarAccess.getSubsetsRuleAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleDefaultValueRule
+entryRuleDefaultValueRule
+:
+{ before(grammarAccess.getDefaultValueRuleRule()); }
+ ruleDefaultValueRule
+{ after(grammarAccess.getDefaultValueRuleRule()); }
+ EOF
+;
+
+// Rule DefaultValueRule
+ruleDefaultValueRule
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getDefaultValueRuleAccess().getGroup()); }
+(rule__DefaultValueRule__Group__0)
+{ after(grammarAccess.getDefaultValueRuleAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleValue
+entryRuleValue
+:
+{ before(grammarAccess.getValueRule()); }
+ ruleValue
+{ after(grammarAccess.getValueRule()); }
+ EOF
+;
+
+// Rule Value
+ruleValue
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getValueAccess().getAlternatives()); }
+(rule__Value__Alternatives)
+{ after(grammarAccess.getValueAccess().getAlternatives()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleIntValue
+entryRuleIntValue
+:
+{ before(grammarAccess.getIntValueRule()); }
+ ruleIntValue
+{ after(grammarAccess.getIntValueRule()); }
+ EOF
+;
+
+// Rule IntValue
+ruleIntValue
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment()); }
+(rule__IntValue__LiteralIntegerAssignment)
+{ after(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleStringValue
+entryRuleStringValue
+:
+{ before(grammarAccess.getStringValueRule()); }
+ ruleStringValue
+{ after(grammarAccess.getStringValueRule()); }
+ EOF
+;
+
+// Rule StringValue
+ruleStringValue
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getStringValueAccess().getLiteralStringAssignment()); }
+(rule__StringValue__LiteralStringAssignment)
+{ after(grammarAccess.getStringValueAccess().getLiteralStringAssignment()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleBooleanValue
+entryRuleBooleanValue
+:
+{ before(grammarAccess.getBooleanValueRule()); }
+ ruleBooleanValue
+{ after(grammarAccess.getBooleanValueRule()); }
+ EOF
+;
+
+// Rule BooleanValue
+ruleBooleanValue
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment()); }
+(rule__BooleanValue__LiteralBooleanAssignment)
+{ after(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleRealValue
+entryRuleRealValue
+:
+{ before(grammarAccess.getRealValueRule()); }
+ ruleRealValue
+{ after(grammarAccess.getRealValueRule()); }
+ EOF
+;
+
+// Rule RealValue
+ruleRealValue
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getRealValueAccess().getAlternatives()); }
+(rule__RealValue__Alternatives)
+{ after(grammarAccess.getRealValueAccess().getAlternatives()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleNullValue
+entryRuleNullValue
+:
+{ before(grammarAccess.getNullValueRule()); }
+ ruleNullValue
+{ after(grammarAccess.getNullValueRule()); }
+ EOF
+;
+
+// Rule NullValue
+ruleNullValue
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getNullValueAccess().getGroup()); }
+(rule__NullValue__Group__0)
+{ after(grammarAccess.getNullValueAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Entry rule entryRuleNoValue
+entryRuleNoValue
+:
+{ before(grammarAccess.getNoValueRule()); }
+ ruleNoValue
+{ after(grammarAccess.getNoValueRule()); }
+ EOF
+;
+
+// Rule NoValue
+ruleNoValue
+ @init {
+ int stackSize = keepStackSize();
+ }
+ :
+(
+{ before(grammarAccess.getNoValueAccess().getGroup()); }
+(rule__NoValue__Group__0)
+{ after(grammarAccess.getNoValueAccess().getGroup()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+// Rule VisibilityKind
+ruleVisibilityKind
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getVisibilityKindAccess().getAlternatives()); }
+(rule__VisibilityKind__Alternatives)
+{ after(grammarAccess.getVisibilityKindAccess().getAlternatives()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Rule ModifierKind
+ruleModifierKind
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifierKindAccess().getAlternatives()); }
+(rule__ModifierKind__Alternatives)
+{ after(grammarAccess.getModifierKindAccess().getAlternatives()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+// Rule BooleanLiterals
+ruleBooleanLiterals
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getBooleanLiteralsAccess().getAlternatives()); }
+(rule__BooleanLiterals__Alternatives)
+{ after(grammarAccess.getBooleanLiteralsAccess().getAlternatives()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+rule__PropertyRule__Alternatives_3_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPropertyRuleAccess().getTypeAssignment_3_1_0()); }
+(rule__PropertyRule__TypeAssignment_3_1_0)
+{ after(grammarAccess.getPropertyRuleAccess().getTypeAssignment_3_1_0()); }
+)
+
+ |(
+{ before(grammarAccess.getPropertyRuleAccess().getTypeUndefinedAssignment_3_1_1()); }
+(rule__PropertyRule__TypeUndefinedAssignment_3_1_1)
+{ after(grammarAccess.getPropertyRuleAccess().getTypeUndefinedAssignment_3_1_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__BoundSpecification__ValueAlternatives_0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0_0()); }
+ ruleUnlimitedLiteral
+{ after(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0_0()); }
+)
+
+ |(
+{ before(grammarAccess.getBoundSpecificationAccess().getValueStringLiteralParserRuleCall_0_1()); }
+ ruleStringLiteral
+{ after(grammarAccess.getBoundSpecificationAccess().getValueStringLiteralParserRuleCall_0_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__UnlimitedLiteral__Alternatives
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0()); }
+ RULE_INT
+{ after(grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0()); }
+)
+
+ |(
+{ before(grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1()); }
+
+ '*'
+
+{ after(grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifierSpecification__Alternatives
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0()); }
+(rule__ModifierSpecification__ValueAssignment_0)
+{ after(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0()); }
+)
+
+ |(
+{ before(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1()); }
+(rule__ModifierSpecification__RedefinesAssignment_1)
+{ after(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1()); }
+)
+
+ |(
+{ before(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2()); }
+(rule__ModifierSpecification__SubsetsAssignment_2)
+{ after(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__Value__Alternatives
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getValueAccess().getIntValueParserRuleCall_0()); }
+ ruleIntValue
+{ after(grammarAccess.getValueAccess().getIntValueParserRuleCall_0()); }
+)
+
+ |(
+{ before(grammarAccess.getValueAccess().getStringValueParserRuleCall_1()); }
+ ruleStringValue
+{ after(grammarAccess.getValueAccess().getStringValueParserRuleCall_1()); }
+)
+
+ |(
+{ before(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2()); }
+ ruleBooleanValue
+{ after(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2()); }
+)
+
+ |(
+{ before(grammarAccess.getValueAccess().getRealValueParserRuleCall_3()); }
+ ruleRealValue
+{ after(grammarAccess.getValueAccess().getRealValueParserRuleCall_3()); }
+)
+
+ |(
+{ before(grammarAccess.getValueAccess().getNullValueParserRuleCall_4()); }
+ ruleNullValue
+{ after(grammarAccess.getValueAccess().getNullValueParserRuleCall_4()); }
+)
+
+ |(
+{ before(grammarAccess.getValueAccess().getNoValueParserRuleCall_5()); }
+ ruleNoValue
+{ after(grammarAccess.getValueAccess().getNoValueParserRuleCall_5()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__Alternatives
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getGroup_0()); }
+(rule__RealValue__Group_0__0)
+{ after(grammarAccess.getRealValueAccess().getGroup_0()); }
+)
+
+ |(
+{ before(grammarAccess.getRealValueAccess().getGroup_1()); }
+(rule__RealValue__Group_1__0)
+{ after(grammarAccess.getRealValueAccess().getGroup_1()); }
+)
+
+ |(
+{ before(grammarAccess.getRealValueAccess().getGroup_2()); }
+(rule__RealValue__Group_2__0)
+{ after(grammarAccess.getRealValueAccess().getGroup_2()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__VisibilityKind__Alternatives
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0()); }
+( '+'
+)
+{ after(grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0()); }
+)
+
+ |(
+{ before(grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1()); }
+( '-'
+)
+{ after(grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1()); }
+)
+
+ |(
+{ before(grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2()); }
+( '#'
+)
+{ after(grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2()); }
+)
+
+ |(
+{ before(grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3()); }
+( '~'
+)
+{ after(grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifierKind__Alternatives
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0()); }
+( 'readOnly'
+)
+{ after(grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0()); }
+)
+
+ |(
+{ before(grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1()); }
+( 'union'
+)
+{ after(grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1()); }
+)
+
+ |(
+{ before(grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2()); }
+( 'ordered'
+)
+{ after(grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2()); }
+)
+
+ |(
+{ before(grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3()); }
+( 'unique'
+)
+{ after(grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__BooleanLiterals__Alternatives
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0()); }
+( 'true'
+)
+{ after(grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0()); }
+)
+
+ |(
+{ before(grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1()); }
+( 'false'
+)
+{ after(grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+rule__PropertyRule__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__PropertyRule__Group__0__Impl
+ rule__PropertyRule__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PropertyRule__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPropertyRuleAccess().getVisibilityAssignment_0()); }
+(rule__PropertyRule__VisibilityAssignment_0)?
+{ after(grammarAccess.getPropertyRuleAccess().getVisibilityAssignment_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__PropertyRule__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__PropertyRule__Group__1__Impl
+ rule__PropertyRule__Group__2
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PropertyRule__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPropertyRuleAccess().getDerivedAssignment_1()); }
+(rule__PropertyRule__DerivedAssignment_1)?
+{ after(grammarAccess.getPropertyRuleAccess().getDerivedAssignment_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__PropertyRule__Group__2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__PropertyRule__Group__2__Impl
+ rule__PropertyRule__Group__3
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PropertyRule__Group__2__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPropertyRuleAccess().getNameAssignment_2()); }
+(rule__PropertyRule__NameAssignment_2)
+{ after(grammarAccess.getPropertyRuleAccess().getNameAssignment_2()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__PropertyRule__Group__3
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__PropertyRule__Group__3__Impl
+ rule__PropertyRule__Group__4
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PropertyRule__Group__3__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPropertyRuleAccess().getGroup_3()); }
+(rule__PropertyRule__Group_3__0)?
+{ after(grammarAccess.getPropertyRuleAccess().getGroup_3()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__PropertyRule__Group__4
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__PropertyRule__Group__4__Impl
+ rule__PropertyRule__Group__5
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PropertyRule__Group__4__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPropertyRuleAccess().getMultiplicityAssignment_4()); }
+(rule__PropertyRule__MultiplicityAssignment_4)?
+{ after(grammarAccess.getPropertyRuleAccess().getMultiplicityAssignment_4()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__PropertyRule__Group__5
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__PropertyRule__Group__5__Impl
+ rule__PropertyRule__Group__6
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PropertyRule__Group__5__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPropertyRuleAccess().getModifiersAssignment_5()); }
+(rule__PropertyRule__ModifiersAssignment_5)?
+{ after(grammarAccess.getPropertyRuleAccess().getModifiersAssignment_5()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__PropertyRule__Group__6
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__PropertyRule__Group__6__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PropertyRule__Group__6__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPropertyRuleAccess().getDefaultAssignment_6()); }
+(rule__PropertyRule__DefaultAssignment_6)?
+{ after(grammarAccess.getPropertyRuleAccess().getDefaultAssignment_6()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+rule__PropertyRule__Group_3__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__PropertyRule__Group_3__0__Impl
+ rule__PropertyRule__Group_3__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PropertyRule__Group_3__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPropertyRuleAccess().getColonKeyword_3_0()); }
+
+ ':'
+
+{ after(grammarAccess.getPropertyRuleAccess().getColonKeyword_3_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__PropertyRule__Group_3__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__PropertyRule__Group_3__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PropertyRule__Group_3__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPropertyRuleAccess().getAlternatives_3_1()); }
+(rule__PropertyRule__Alternatives_3_1)
+{ after(grammarAccess.getPropertyRuleAccess().getAlternatives_3_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__TypeRule__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__TypeRule__Group__0__Impl
+ rule__TypeRule__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__TypeRule__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getTypeRuleAccess().getPathAssignment_0()); }
+(rule__TypeRule__PathAssignment_0)?
+{ after(grammarAccess.getTypeRuleAccess().getPathAssignment_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__TypeRule__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__TypeRule__Group__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__TypeRule__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getTypeRuleAccess().getTypeAssignment_1()); }
+(rule__TypeRule__TypeAssignment_1)
+{ after(grammarAccess.getTypeRuleAccess().getTypeAssignment_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__QualifiedName__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__QualifiedName__Group__0__Impl
+ rule__QualifiedName__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__QualifiedName__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getQualifiedNameAccess().getPathAssignment_0()); }
+(rule__QualifiedName__PathAssignment_0)
+{ after(grammarAccess.getQualifiedNameAccess().getPathAssignment_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__QualifiedName__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__QualifiedName__Group__1__Impl
+ rule__QualifiedName__Group__2
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__QualifiedName__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1()); }
+
+ '::'
+
+{ after(grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__QualifiedName__Group__2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__QualifiedName__Group__2__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__QualifiedName__Group__2__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2()); }
+(rule__QualifiedName__RemainingAssignment_2)?
+{ after(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+
+
+rule__MultiplicityRule__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__MultiplicityRule__Group__0__Impl
+ rule__MultiplicityRule__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__MultiplicityRule__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0()); }
+
+ '['
+
+{ after(grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__MultiplicityRule__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__MultiplicityRule__Group__1__Impl
+ rule__MultiplicityRule__Group__2
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__MultiplicityRule__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1()); }
+(rule__MultiplicityRule__BoundsAssignment_1)
+{ after(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__MultiplicityRule__Group__2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__MultiplicityRule__Group__2__Impl
+ rule__MultiplicityRule__Group__3
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__MultiplicityRule__Group__2__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getMultiplicityRuleAccess().getGroup_2()); }
+(rule__MultiplicityRule__Group_2__0)?
+{ after(grammarAccess.getMultiplicityRuleAccess().getGroup_2()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__MultiplicityRule__Group__3
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__MultiplicityRule__Group__3__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__MultiplicityRule__Group__3__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3()); }
+
+ ']'
+
+{ after(grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+
+
+
+
+rule__MultiplicityRule__Group_2__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__MultiplicityRule__Group_2__0__Impl
+ rule__MultiplicityRule__Group_2__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__MultiplicityRule__Group_2__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0()); }
+
+ '..'
+
+{ after(grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__MultiplicityRule__Group_2__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__MultiplicityRule__Group_2__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__MultiplicityRule__Group_2__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2_1()); }
+(rule__MultiplicityRule__BoundsAssignment_2_1)
+{ after(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__ModifiersRule__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__ModifiersRule__Group__0__Impl
+ rule__ModifiersRule__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0()); }
+(
+
+)
+{ after(grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__ModifiersRule__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__ModifiersRule__Group__1__Impl
+ rule__ModifiersRule__Group__2
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1()); }
+
+ '{'
+
+{ after(grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__ModifiersRule__Group__2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__ModifiersRule__Group__2__Impl
+ rule__ModifiersRule__Group__3
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__Group__2__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getGroup_2()); }
+(rule__ModifiersRule__Group_2__0)?
+{ after(grammarAccess.getModifiersRuleAccess().getGroup_2()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__ModifiersRule__Group__3
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__ModifiersRule__Group__3__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__Group__3__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3()); }
+
+ '}'
+
+{ after(grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+
+
+
+
+rule__ModifiersRule__Group_2__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__ModifiersRule__Group_2__0__Impl
+ rule__ModifiersRule__Group_2__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__Group_2__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0()); }
+(rule__ModifiersRule__ValuesAssignment_2_0)
+{ after(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__ModifiersRule__Group_2__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__ModifiersRule__Group_2__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__Group_2__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getGroup_2_1()); }
+(rule__ModifiersRule__Group_2_1__0)*
+{ after(grammarAccess.getModifiersRuleAccess().getGroup_2_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__ModifiersRule__Group_2_1__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__ModifiersRule__Group_2_1__0__Impl
+ rule__ModifiersRule__Group_2_1__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__Group_2_1__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0()); }
+
+ ','
+
+{ after(grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__ModifiersRule__Group_2_1__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__ModifiersRule__Group_2_1__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__Group_2_1__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1()); }
+(rule__ModifiersRule__ValuesAssignment_2_1_1)
+{ after(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__RedefinesRule__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RedefinesRule__Group__0__Impl
+ rule__RedefinesRule__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RedefinesRule__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0()); }
+
+ 'redefines'
+
+{ after(grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__RedefinesRule__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RedefinesRule__Group__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RedefinesRule__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRedefinesRuleAccess().getPropertyAssignment_1()); }
+(rule__RedefinesRule__PropertyAssignment_1)
+{ after(grammarAccess.getRedefinesRuleAccess().getPropertyAssignment_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__SubsetsRule__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__SubsetsRule__Group__0__Impl
+ rule__SubsetsRule__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__SubsetsRule__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0()); }
+
+ 'subsets'
+
+{ after(grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__SubsetsRule__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__SubsetsRule__Group__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__SubsetsRule__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getSubsetsRuleAccess().getPropertyAssignment_1()); }
+(rule__SubsetsRule__PropertyAssignment_1)
+{ after(grammarAccess.getSubsetsRuleAccess().getPropertyAssignment_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__DefaultValueRule__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__DefaultValueRule__Group__0__Impl
+ rule__DefaultValueRule__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__DefaultValueRule__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0()); }
+
+ '='
+
+{ after(grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__DefaultValueRule__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__DefaultValueRule__Group__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__DefaultValueRule__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1()); }
+(rule__DefaultValueRule__DefaultAssignment_1)
+{ after(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__RealValue__Group_0__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RealValue__Group_0__0__Impl
+ rule__RealValue__Group_0__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__Group_0__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0()); }
+(rule__RealValue__IntegerAssignment_0_0)
+{ after(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__RealValue__Group_0__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RealValue__Group_0__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__Group_0__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getFullStopKeyword_0_1()); }
+
+ '.'
+
+{ after(grammarAccess.getRealValueAccess().getFullStopKeyword_0_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__RealValue__Group_1__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RealValue__Group_1__0__Impl
+ rule__RealValue__Group_1__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__Group_1__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getFullStopKeyword_1_0()); }
+
+ '.'
+
+{ after(grammarAccess.getRealValueAccess().getFullStopKeyword_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__RealValue__Group_1__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RealValue__Group_1__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__Group_1__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getFractionAssignment_1_1()); }
+(rule__RealValue__FractionAssignment_1_1)
+{ after(grammarAccess.getRealValueAccess().getFractionAssignment_1_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__RealValue__Group_2__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RealValue__Group_2__0__Impl
+ rule__RealValue__Group_2__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__Group_2__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0()); }
+(rule__RealValue__IntegerAssignment_2_0)
+{ after(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__RealValue__Group_2__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RealValue__Group_2__1__Impl
+ rule__RealValue__Group_2__2
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__Group_2__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getFullStopKeyword_2_1()); }
+
+ '.'
+
+{ after(grammarAccess.getRealValueAccess().getFullStopKeyword_2_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__RealValue__Group_2__2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__RealValue__Group_2__2__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__Group_2__2__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getFractionAssignment_2_2()); }
+(rule__RealValue__FractionAssignment_2_2)
+{ after(grammarAccess.getRealValueAccess().getFractionAssignment_2_2()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+
+
+rule__NullValue__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__NullValue__Group__0__Impl
+ rule__NullValue__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__NullValue__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getNullValueAccess().getNullValueAction_0()); }
+(
+
+)
+{ after(grammarAccess.getNullValueAccess().getNullValueAction_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__NullValue__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__NullValue__Group__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__NullValue__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getNullValueAccess().getNullKeyword_1()); }
+
+ 'null'
+
+{ after(grammarAccess.getNullValueAccess().getNullKeyword_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+rule__NoValue__Group__0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__NoValue__Group__0__Impl
+ rule__NoValue__Group__1
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__NoValue__Group__0__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getNoValueAccess().getNoValueAction_0()); }
+(
+
+)
+{ after(grammarAccess.getNoValueAccess().getNoValueAction_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+rule__NoValue__Group__1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+ rule__NoValue__Group__1__Impl
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__NoValue__Group__1__Impl
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getNoValueAccess().getNoneKeyword_1()); }
+
+ 'none'
+
+{ after(grammarAccess.getNoValueAccess().getNoneKeyword_1()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+
+
+
+
+
+rule__PropertyRule__VisibilityAssignment_0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPropertyRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0()); }
+ ruleVisibilityRule{ after(grammarAccess.getPropertyRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PropertyRule__DerivedAssignment_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0()); }
+(
+{ before(grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0()); }
+
+ '/'
+
+{ after(grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0()); }
+)
+
+{ after(grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PropertyRule__NameAssignment_2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPropertyRuleAccess().getNameIDTerminalRuleCall_2_0()); }
+ RULE_ID{ after(grammarAccess.getPropertyRuleAccess().getNameIDTerminalRuleCall_2_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PropertyRule__TypeAssignment_3_1_0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPropertyRuleAccess().getTypeTypeRuleParserRuleCall_3_1_0_0()); }
+ ruleTypeRule{ after(grammarAccess.getPropertyRuleAccess().getTypeTypeRuleParserRuleCall_3_1_0_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PropertyRule__TypeUndefinedAssignment_3_1_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0()); }
+(
+{ before(grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0()); }
+
+ '<Undefined>'
+
+{ after(grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0()); }
+)
+
+{ after(grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PropertyRule__MultiplicityAssignment_4
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPropertyRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0()); }
+ ruleMultiplicityRule{ after(grammarAccess.getPropertyRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PropertyRule__ModifiersAssignment_5
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPropertyRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0()); }
+ ruleModifiersRule{ after(grammarAccess.getPropertyRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__PropertyRule__DefaultAssignment_6
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getPropertyRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0()); }
+ ruleDefaultValueRule{ after(grammarAccess.getPropertyRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__VisibilityRule__VisibilityAssignment
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0()); }
+ ruleVisibilityKind{ after(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__TypeRule__PathAssignment_0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0()); }
+ ruleQualifiedName{ after(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__TypeRule__TypeAssignment_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0()); }
+(
+{ before(grammarAccess.getTypeRuleAccess().getTypeClassifierIDTerminalRuleCall_1_0_1()); }
+ RULE_ID{ after(grammarAccess.getTypeRuleAccess().getTypeClassifierIDTerminalRuleCall_1_0_1()); }
+)
+{ after(grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__QualifiedName__PathAssignment_0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0()); }
+(
+{ before(grammarAccess.getQualifiedNameAccess().getPathNamespaceIDTerminalRuleCall_0_0_1()); }
+ RULE_ID{ after(grammarAccess.getQualifiedNameAccess().getPathNamespaceIDTerminalRuleCall_0_0_1()); }
+)
+{ after(grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__QualifiedName__RemainingAssignment_2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0()); }
+ ruleQualifiedName{ after(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__MultiplicityRule__BoundsAssignment_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0()); }
+ ruleBoundSpecification{ after(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__MultiplicityRule__BoundsAssignment_2_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0()); }
+ ruleBoundSpecification{ after(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__BoundSpecification__ValueAssignment
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getBoundSpecificationAccess().getValueAlternatives_0()); }
+(rule__BoundSpecification__ValueAlternatives_0)
+{ after(grammarAccess.getBoundSpecificationAccess().getValueAlternatives_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__ValuesAssignment_2_0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0()); }
+ ruleModifierSpecification{ after(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifiersRule__ValuesAssignment_2_1_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0()); }
+ ruleModifierSpecification{ after(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifierSpecification__ValueAssignment_0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0()); }
+ ruleModifierKind{ after(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifierSpecification__RedefinesAssignment_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0()); }
+ ruleRedefinesRule{ after(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__ModifierSpecification__SubsetsAssignment_2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0()); }
+ ruleSubsetsRule{ after(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RedefinesRule__PropertyAssignment_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyCrossReference_1_0()); }
+(
+{ before(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1()); }
+ RULE_ID{ after(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1()); }
+)
+{ after(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyCrossReference_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__SubsetsRule__PropertyAssignment_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyCrossReference_1_0()); }
+(
+{ before(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1()); }
+ RULE_ID{ after(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1()); }
+)
+{ after(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyCrossReference_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__DefaultValueRule__DefaultAssignment_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0()); }
+ ruleValue{ after(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__IntValue__LiteralIntegerAssignment
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0()); }
+ RULE_INT{ after(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__StringValue__LiteralStringAssignment
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0()); }
+ RULE_STRING{ after(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__BooleanValue__LiteralBooleanAssignment
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0()); }
+ ruleBooleanLiterals{ after(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__IntegerAssignment_0_0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0()); }
+ RULE_INT{ after(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__FractionAssignment_1_1
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0()); }
+ RULE_INT{ after(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__IntegerAssignment_2_0
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0()); }
+ RULE_INT{ after(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+rule__RealValue__FractionAssignment_2_2
+ @init {
+ int stackSize = keepStackSize();
+ }
+:
+(
+{ before(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0()); }
+ RULE_INT{ after(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0()); }
+)
+
+;
+finally {
+ restoreStackSize(stackSize);
+}
+
+
+RULE_ID : (('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*|'\'' ( options {greedy=false;} : . )*'\'');
+
+RULE_STRING : '"' ('\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')|~(('\\'|'"')))* '"';
+
+RULE_ML_COMMENT : '/*' ~('@') ( options {greedy=false;} : . )*'*/';
+
+RULE_SL_COMMENT : '//' ~(('\n'|'\r'|'@'))* ('\r'? '\n')?;
+
+RULE_INT : ('0'..'9')+;
+
+RULE_INTEGER_VALUE : (('0'|'1'..'9' ('_'? '0'..'9')*)|('0b'|'0B') '0'..'1' ('_'? '0'..'1')*|('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F') ('_'? ('0'..'9'|'a'..'f'|'A'..'F'))*|'0' '_'? '0'..'7' ('_'? '0'..'7')*);
+
+RULE_WS : (' '|'\t'|'\r'|'\n')+;
+
+RULE_ANY_OTHER : .;
+
+
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.tokens b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.tokens
index c25eb9f63ad..e8650d58a3d 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.tokens
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.tokens
@@ -1,62 +1,62 @@
-'#'=15
-'*'=12
-'+'=13
-','=30
-'-'=14
-'.'=34
-'..'=27
-'/'=37
-':'=23
-'::'=24
-'<Undefined>'=38
-'='=33
-'['=25
-']'=26
-'false'=22
-'none'=36
-'null'=35
-'ordered'=19
-'readOnly'=17
-'redefines'=31
-'subsets'=32
-'true'=21
-'union'=18
-'unique'=20
-'{'=28
-'}'=29
-'~'=16
-RULE_ANY_OTHER=11
-RULE_ID=5
-RULE_INT=4
-RULE_INTEGER_VALUE=9
-RULE_ML_COMMENT=7
-RULE_SL_COMMENT=8
-RULE_STRING=6
-RULE_WS=10
-T__12=12
-T__13=13
-T__14=14
-T__15=15
-T__16=16
-T__17=17
-T__18=18
-T__19=19
-T__20=20
-T__21=21
-T__22=22
-T__23=23
-T__24=24
-T__25=25
-T__26=26
-T__27=27
-T__28=28
-T__29=29
-T__30=30
-T__31=31
-T__32=32
-T__33=33
-T__34=34
-T__35=35
-T__36=36
-T__37=37
-T__38=38
+'#'=15
+'*'=12
+'+'=13
+','=30
+'-'=14
+'.'=34
+'..'=27
+'/'=37
+':'=23
+'::'=24
+'<Undefined>'=38
+'='=33
+'['=25
+']'=26
+'false'=22
+'none'=36
+'null'=35
+'ordered'=19
+'readOnly'=17
+'redefines'=31
+'subsets'=32
+'true'=21
+'union'=18
+'unique'=20
+'{'=28
+'}'=29
+'~'=16
+RULE_ANY_OTHER=11
+RULE_ID=6
+RULE_INT=5
+RULE_INTEGER_VALUE=9
+RULE_ML_COMMENT=7
+RULE_SL_COMMENT=8
+RULE_STRING=4
+RULE_WS=10
+T__12=12
+T__13=13
+T__14=14
+T__15=15
+T__16=16
+T__17=17
+T__18=18
+T__19=19
+T__20=20
+T__21=21
+T__22=22
+T__23=23
+T__24=24
+T__25=25
+T__26=26
+T__27=27
+T__28=28
+T__29=29
+T__30=30
+T__31=31
+T__32=32
+T__33=33
+T__34=34
+T__35=35
+T__36=36
+T__37=37
+T__38=38
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlPropertyLexer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlPropertyLexer.java
index 655e289dec9..db759532f17 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlPropertyLexer.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlPropertyLexer.java
@@ -1,2159 +1,2068 @@
-package org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal;
-
-// Hack: Use our own Lexer superclass by means of import.
-// Currently there is no other way to specify the superclass for the lexer.
-import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer;
-
-import org.antlr.runtime.*;
-
-@SuppressWarnings("all")
-public class InternalUmlPropertyLexer extends Lexer {
- public static final int RULE_ID = 5;
- public static final int T__29 = 29;
- public static final int T__28 = 28;
- public static final int T__27 = 27;
- public static final int T__26 = 26;
- public static final int T__25 = 25;
- public static final int T__24 = 24;
- public static final int T__23 = 23;
- public static final int T__22 = 22;
- public static final int RULE_ANY_OTHER = 11;
- public static final int T__21 = 21;
- public static final int T__20 = 20;
- public static final int RULE_INTEGER_VALUE = 9;
- public static final int EOF = -1;
- public static final int RULE_SL_COMMENT = 8;
- public static final int RULE_ML_COMMENT = 7;
- public static final int T__19 = 19;
- public static final int T__30 = 30;
- public static final int T__31 = 31;
- public static final int T__32 = 32;
- public static final int RULE_STRING = 6;
- public static final int T__16 = 16;
- public static final int T__33 = 33;
- public static final int T__15 = 15;
- public static final int T__34 = 34;
- public static final int T__18 = 18;
- public static final int T__35 = 35;
- public static final int T__17 = 17;
- public static final int T__36 = 36;
- public static final int T__12 = 12;
- public static final int T__37 = 37;
- public static final int T__38 = 38;
- public static final int T__14 = 14;
- public static final int T__13 = 13;
- public static final int RULE_INT = 4;
- public static final int RULE_WS = 10;
-
- // delegates
- // delegators
-
- public InternalUmlPropertyLexer() {
- ;
- }
-
- public InternalUmlPropertyLexer(CharStream input) {
- this(input, new RecognizerSharedState());
- }
-
- public InternalUmlPropertyLexer(CharStream input, RecognizerSharedState state) {
- super(input, state);
-
- }
-
- @Override
- public String getGrammarFileName() {
- return "../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g";
- }
-
- // $ANTLR start "T__12"
- public final void mT__12() throws RecognitionException {
- try {
- int _type = T__12;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:11:7: ( '*' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:11:9: '*'
- {
- match('*');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__12"
-
- // $ANTLR start "T__13"
- public final void mT__13() throws RecognitionException {
- try {
- int _type = T__13;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:12:7: ( '+' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:12:9: '+'
- {
- match('+');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__13"
-
- // $ANTLR start "T__14"
- public final void mT__14() throws RecognitionException {
- try {
- int _type = T__14;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:13:7: ( '-' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:13:9: '-'
- {
- match('-');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__14"
-
- // $ANTLR start "T__15"
- public final void mT__15() throws RecognitionException {
- try {
- int _type = T__15;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:14:7: ( '#' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:14:9: '#'
- {
- match('#');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__15"
-
- // $ANTLR start "T__16"
- public final void mT__16() throws RecognitionException {
- try {
- int _type = T__16;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:15:7: ( '~' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:15:9: '~'
- {
- match('~');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__16"
-
- // $ANTLR start "T__17"
- public final void mT__17() throws RecognitionException {
- try {
- int _type = T__17;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:16:7: ( 'readOnly' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:16:9: 'readOnly'
- {
- match("readOnly");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__17"
-
- // $ANTLR start "T__18"
- public final void mT__18() throws RecognitionException {
- try {
- int _type = T__18;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:17:7: ( 'union' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:17:9: 'union'
- {
- match("union");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__18"
-
- // $ANTLR start "T__19"
- public final void mT__19() throws RecognitionException {
- try {
- int _type = T__19;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:18:7: ( 'ordered' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:18:9: 'ordered'
- {
- match("ordered");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__19"
-
- // $ANTLR start "T__20"
- public final void mT__20() throws RecognitionException {
- try {
- int _type = T__20;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:19:7: ( 'unique' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:19:9: 'unique'
- {
- match("unique");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__20"
-
- // $ANTLR start "T__21"
- public final void mT__21() throws RecognitionException {
- try {
- int _type = T__21;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:20:7: ( 'true' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:20:9: 'true'
- {
- match("true");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__21"
-
- // $ANTLR start "T__22"
- public final void mT__22() throws RecognitionException {
- try {
- int _type = T__22;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:21:7: ( 'false' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:21:9: 'false'
- {
- match("false");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__22"
-
- // $ANTLR start "T__23"
- public final void mT__23() throws RecognitionException {
- try {
- int _type = T__23;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:22:7: ( ':' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:22:9: ':'
- {
- match(':');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__23"
-
- // $ANTLR start "T__24"
- public final void mT__24() throws RecognitionException {
- try {
- int _type = T__24;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:23:7: ( '::' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:23:9: '::'
- {
- match("::");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__24"
-
- // $ANTLR start "T__25"
- public final void mT__25() throws RecognitionException {
- try {
- int _type = T__25;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:24:7: ( '[' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:24:9: '['
- {
- match('[');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__25"
-
- // $ANTLR start "T__26"
- public final void mT__26() throws RecognitionException {
- try {
- int _type = T__26;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:25:7: ( ']' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:25:9: ']'
- {
- match(']');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__26"
-
- // $ANTLR start "T__27"
- public final void mT__27() throws RecognitionException {
- try {
- int _type = T__27;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:26:7: ( '..' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:26:9: '..'
- {
- match("..");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__27"
-
- // $ANTLR start "T__28"
- public final void mT__28() throws RecognitionException {
- try {
- int _type = T__28;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:27:7: ( '{' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:27:9: '{'
- {
- match('{');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__28"
-
- // $ANTLR start "T__29"
- public final void mT__29() throws RecognitionException {
- try {
- int _type = T__29;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:28:7: ( '}' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:28:9: '}'
- {
- match('}');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__29"
-
- // $ANTLR start "T__30"
- public final void mT__30() throws RecognitionException {
- try {
- int _type = T__30;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:29:7: ( ',' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:29:9: ','
- {
- match(',');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__30"
-
- // $ANTLR start "T__31"
- public final void mT__31() throws RecognitionException {
- try {
- int _type = T__31;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:30:7: ( 'redefines' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:30:9: 'redefines'
- {
- match("redefines");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__31"
-
- // $ANTLR start "T__32"
- public final void mT__32() throws RecognitionException {
- try {
- int _type = T__32;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:31:7: ( 'subsets' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:31:9: 'subsets'
- {
- match("subsets");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__32"
-
- // $ANTLR start "T__33"
- public final void mT__33() throws RecognitionException {
- try {
- int _type = T__33;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:32:7: ( '=' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:32:9: '='
- {
- match('=');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__33"
-
- // $ANTLR start "T__34"
- public final void mT__34() throws RecognitionException {
- try {
- int _type = T__34;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:33:7: ( '.' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:33:9: '.'
- {
- match('.');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__34"
-
- // $ANTLR start "T__35"
- public final void mT__35() throws RecognitionException {
- try {
- int _type = T__35;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:34:7: ( 'null' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:34:9: 'null'
- {
- match("null");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__35"
-
- // $ANTLR start "T__36"
- public final void mT__36() throws RecognitionException {
- try {
- int _type = T__36;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:35:7: ( 'none' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:35:9: 'none'
- {
- match("none");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__36"
-
- // $ANTLR start "T__37"
- public final void mT__37() throws RecognitionException {
- try {
- int _type = T__37;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:36:7: ( '/' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:36:9: '/'
- {
- match('/');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__37"
-
- // $ANTLR start "T__38"
- public final void mT__38() throws RecognitionException {
- try {
- int _type = T__38;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:37:7: ( '<Undefined>' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:37:9: '<Undefined>'
- {
- match("<Undefined>");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__38"
-
- // $ANTLR start "RULE_ID"
- public final void mRULE_ID() throws RecognitionException {
- try {
- int _type = RULE_ID;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2814:9: ( ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' |
- // '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2814:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' |
- // '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2814:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_'
- // | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' )
- int alt3 = 2;
- int LA3_0 = input.LA(1);
-
- if (((LA3_0 >= 'A' && LA3_0 <= 'Z') || LA3_0 == '_' || (LA3_0 >= 'a' && LA3_0 <= 'z'))) {
- alt3 = 1;
- }
- else if ((LA3_0 == '\'')) {
- alt3 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 3, 0, input);
-
- throw nvae;
- }
- switch (alt3) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2814:12: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' |
- // '0' .. '9' )*
- {
- if ((input.LA(1) >= 'A' && input.LA(1) <= 'Z') || input.LA(1) == '_' || (input.LA(1) >= 'a' && input.LA(1) <= 'z')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2814:36: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
- loop1: do {
- int alt1 = 2;
- int LA1_0 = input.LA(1);
-
- if (((LA1_0 >= '0' && LA1_0 <= '9') || (LA1_0 >= 'A' && LA1_0 <= 'Z') || LA1_0 == '_' || (LA1_0 >= 'a' && LA1_0 <= 'z'))) {
- alt1 = 1;
- }
-
-
- switch (alt1) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:
- {
- if ((input.LA(1) >= '0' && input.LA(1) <= '9') || (input.LA(1) >= 'A' && input.LA(1) <= 'Z') || input.LA(1) == '_' || (input.LA(1) >= 'a' && input.LA(1) <= 'z')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- break loop1;
- }
- } while (true);
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2814:70: '\\'' ( options {greedy=false; } : . )* '\\''
- {
- match('\'');
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2814:75: ( options {greedy=false; } : . )*
- loop2: do {
- int alt2 = 2;
- int LA2_0 = input.LA(1);
-
- if ((LA2_0 == '\'')) {
- alt2 = 2;
- }
- else if (((LA2_0 >= '\u0000' && LA2_0 <= '&') || (LA2_0 >= '(' && LA2_0 <= '\uFFFF'))) {
- alt2 = 1;
- }
-
-
- switch (alt2) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2814:103: .
- {
- matchAny();
-
- }
- break;
-
- default:
- break loop2;
- }
- } while (true);
-
- match('\'');
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_ID"
-
- // $ANTLR start "RULE_STRING"
- public final void mRULE_STRING() throws RecognitionException {
- try {
- int _type = RULE_STRING;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2816:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
- // | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2816:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) |
- // ~ ( ( '\\\\' | '\"' ) ) )* '\"'
- {
- match('\"');
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2816:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~
- // ( ( '\\\\' | '\"' ) ) )*
- loop4: do {
- int alt4 = 3;
- int LA4_0 = input.LA(1);
-
- if ((LA4_0 == '\\')) {
- alt4 = 1;
- }
- else if (((LA4_0 >= '\u0000' && LA4_0 <= '!') || (LA4_0 >= '#' && LA4_0 <= '[') || (LA4_0 >= ']' && LA4_0 <= '\uFFFF'))) {
- alt4 = 2;
- }
-
-
- switch (alt4) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2816:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
- {
- match('\\');
- if (input.LA(1) == '\"' || input.LA(1) == '\'' || input.LA(1) == '\\' || input.LA(1) == 'b' || input.LA(1) == 'f' || input.LA(1) == 'n' || input.LA(1) == 'r' || input.LA(1) == 't') {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2816:61: ~ ( ( '\\\\' | '\"' ) )
- {
- if ((input.LA(1) >= '\u0000' && input.LA(1) <= '!') || (input.LA(1) >= '#' && input.LA(1) <= '[') || (input.LA(1) >= ']' && input.LA(1) <= '\uFFFF')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- break loop4;
- }
- } while (true);
-
- match('\"');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_STRING"
-
- // $ANTLR start "RULE_ML_COMMENT"
- public final void mRULE_ML_COMMENT() throws RecognitionException {
- try {
- int _type = RULE_ML_COMMENT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2818:17: ( '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2818:19: '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/'
- {
- match("/*");
-
- if ((input.LA(1) >= '\u0000' && input.LA(1) <= '?') || (input.LA(1) >= 'A' && input.LA(1) <= '\uFFFF')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2818:31: ( options {greedy=false; } : . )*
- loop5: do {
- int alt5 = 2;
- int LA5_0 = input.LA(1);
-
- if ((LA5_0 == '*')) {
- int LA5_1 = input.LA(2);
-
- if ((LA5_1 == '/')) {
- alt5 = 2;
- }
- else if (((LA5_1 >= '\u0000' && LA5_1 <= '.') || (LA5_1 >= '0' && LA5_1 <= '\uFFFF'))) {
- alt5 = 1;
- }
-
-
- }
- else if (((LA5_0 >= '\u0000' && LA5_0 <= ')') || (LA5_0 >= '+' && LA5_0 <= '\uFFFF'))) {
- alt5 = 1;
- }
-
-
- switch (alt5) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2818:59: .
- {
- matchAny();
-
- }
- break;
-
- default:
- break loop5;
- }
- } while (true);
-
- match("*/");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_ML_COMMENT"
-
- // $ANTLR start "RULE_SL_COMMENT"
- public final void mRULE_SL_COMMENT() throws RecognitionException {
- try {
- int _type = RULE_SL_COMMENT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2820:17: ( '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2820:19: '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )?
- {
- match("//");
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2820:24: (~ ( ( '\\n' | '\\r' | '@' ) ) )*
- loop6: do {
- int alt6 = 2;
- int LA6_0 = input.LA(1);
-
- if (((LA6_0 >= '\u0000' && LA6_0 <= '\t') || (LA6_0 >= '\u000B' && LA6_0 <= '\f') || (LA6_0 >= '\u000E' && LA6_0 <= '?') || (LA6_0 >= 'A' && LA6_0 <= '\uFFFF'))) {
- alt6 = 1;
- }
-
-
- switch (alt6) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2820:24: ~ ( ( '\\n' | '\\r' | '@' ) )
- {
- if ((input.LA(1) >= '\u0000' && input.LA(1) <= '\t') || (input.LA(1) >= '\u000B' && input.LA(1) <= '\f') || (input.LA(1) >= '\u000E' && input.LA(1) <= '?') || (input.LA(1) >= 'A' && input.LA(1) <= '\uFFFF')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- break loop6;
- }
- } while (true);
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2820:44: ( ( '\\r' )? '\\n' )?
- int alt8 = 2;
- int LA8_0 = input.LA(1);
-
- if ((LA8_0 == '\n' || LA8_0 == '\r')) {
- alt8 = 1;
- }
- switch (alt8) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2820:45: ( '\\r' )? '\\n'
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2820:45: ( '\\r' )?
- int alt7 = 2;
- int LA7_0 = input.LA(1);
-
- if ((LA7_0 == '\r')) {
- alt7 = 1;
- }
- switch (alt7) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2820:45: '\\r'
- {
- match('\r');
-
- }
- break;
-
- }
-
- match('\n');
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_SL_COMMENT"
-
- // $ANTLR start "RULE_INT"
- public final void mRULE_INT() throws RecognitionException {
- try {
- int _type = RULE_INT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2822:10: ( ( '0' .. '9' )+ )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2822:12: ( '0' .. '9' )+
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2822:12: ( '0' .. '9' )+
- int cnt9 = 0;
- loop9: do {
- int alt9 = 2;
- int LA9_0 = input.LA(1);
-
- if (((LA9_0 >= '0' && LA9_0 <= '9'))) {
- alt9 = 1;
- }
-
-
- switch (alt9) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2822:13: '0' .. '9'
- {
- matchRange('0', '9');
-
- }
- break;
-
- default:
- if (cnt9 >= 1) {
- break loop9;
- }
- EarlyExitException eee =
- new EarlyExitException(9, input);
- throw eee;
- }
- cnt9++;
- } while (true);
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_INT"
-
- // $ANTLR start "RULE_INTEGER_VALUE"
- public final void mRULE_INTEGER_VALUE() throws RecognitionException {
- try {
- int _type = RULE_INTEGER_VALUE;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:20: ( ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0'
- // .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' ..
- // '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' )
- // '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
- int alt22 = 4;
- int LA22_0 = input.LA(1);
-
- if ((LA22_0 == '0')) {
- switch (input.LA(2)) {
- case 'B':
- case 'b': {
- alt22 = 2;
- }
- break;
- case 'X':
- case 'x': {
- alt22 = 3;
- }
- break;
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '_': {
- alt22 = 4;
- }
- break;
- default:
- alt22 = 1;
- }
-
- }
- else if (((LA22_0 >= '1' && LA22_0 <= '9'))) {
- alt22 = 1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 22, 0, input);
-
- throw nvae;
- }
- switch (alt22) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
- int alt12 = 2;
- int LA12_0 = input.LA(1);
-
- if ((LA12_0 == '0')) {
- alt12 = 1;
- }
- else if (((LA12_0 >= '1' && LA12_0 <= '9'))) {
- alt12 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 12, 0, input);
-
- throw nvae;
- }
- switch (alt12) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:24: '0'
- {
- match('0');
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:28: '1' .. '9' ( ( '_' )? '0' .. '9' )*
- {
- matchRange('1', '9');
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:37: ( ( '_' )? '0' .. '9' )*
- loop11: do {
- int alt11 = 2;
- int LA11_0 = input.LA(1);
-
- if (((LA11_0 >= '0' && LA11_0 <= '9') || LA11_0 == '_')) {
- alt11 = 1;
- }
-
-
- switch (alt11) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:38: ( '_' )? '0' .. '9'
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:38: ( '_' )?
- int alt10 = 2;
- int LA10_0 = input.LA(1);
-
- if ((LA10_0 == '_')) {
- alt10 = 1;
- }
- switch (alt10) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:38: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0', '9');
-
- }
- break;
-
- default:
- break loop11;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:55: ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )*
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:55: ( '0b' | '0B' )
- int alt13 = 2;
- int LA13_0 = input.LA(1);
-
- if ((LA13_0 == '0')) {
- int LA13_1 = input.LA(2);
-
- if ((LA13_1 == 'b')) {
- alt13 = 1;
- }
- else if ((LA13_1 == 'B')) {
- alt13 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 13, 1, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 13, 0, input);
-
- throw nvae;
- }
- switch (alt13) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:56: '0b'
- {
- match("0b");
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:61: '0B'
- {
- match("0B");
-
-
- }
- break;
-
- }
-
- matchRange('0', '1');
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:76: ( ( '_' )? '0' .. '1' )*
- loop15: do {
- int alt15 = 2;
- int LA15_0 = input.LA(1);
-
- if (((LA15_0 >= '0' && LA15_0 <= '1') || LA15_0 == '_')) {
- alt15 = 1;
- }
-
-
- switch (alt15) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:77: ( '_' )? '0' .. '1'
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:77: ( '_' )?
- int alt14 = 2;
- int LA14_0 = input.LA(1);
-
- if ((LA14_0 == '_')) {
- alt14 = 1;
- }
- switch (alt14) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:77: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0', '1');
-
- }
- break;
-
- default:
- break loop15;
- }
- } while (true);
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:93: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )?
- // ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:93: ( '0x' | '0X' )
- int alt16 = 2;
- int LA16_0 = input.LA(1);
-
- if ((LA16_0 == '0')) {
- int LA16_1 = input.LA(2);
-
- if ((LA16_1 == 'x')) {
- alt16 = 1;
- }
- else if ((LA16_1 == 'X')) {
- alt16 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 16, 1, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 16, 0, input);
-
- throw nvae;
- }
- switch (alt16) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:94: '0x'
- {
- match("0x");
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:99: '0X'
- {
- match("0X");
-
-
- }
- break;
-
- }
-
- if ((input.LA(1) >= '0' && input.LA(1) <= '9') || (input.LA(1) >= 'A' && input.LA(1) <= 'F') || (input.LA(1) >= 'a' && input.LA(1) <= 'f')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:134: ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
- loop18: do {
- int alt18 = 2;
- int LA18_0 = input.LA(1);
-
- if (((LA18_0 >= '0' && LA18_0 <= '9') || (LA18_0 >= 'A' && LA18_0 <= 'F') || LA18_0 == '_' || (LA18_0 >= 'a' && LA18_0 <= 'f'))) {
- alt18 = 1;
- }
-
-
- switch (alt18) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:135: ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:135: ( '_' )?
- int alt17 = 2;
- int LA17_0 = input.LA(1);
-
- if ((LA17_0 == '_')) {
- alt17 = 1;
- }
- switch (alt17) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:135: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- if ((input.LA(1) >= '0' && input.LA(1) <= '9') || (input.LA(1) >= 'A' && input.LA(1) <= 'F') || (input.LA(1) >= 'a' && input.LA(1) <= 'f')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- break loop18;
- }
- } while (true);
-
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:171: '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )*
- {
- match('0');
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:175: ( '_' )?
- int alt19 = 2;
- int LA19_0 = input.LA(1);
-
- if ((LA19_0 == '_')) {
- alt19 = 1;
- }
- switch (alt19) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:175: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0', '7');
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:189: ( ( '_' )? '0' .. '7' )*
- loop21: do {
- int alt21 = 2;
- int LA21_0 = input.LA(1);
-
- if (((LA21_0 >= '0' && LA21_0 <= '7') || LA21_0 == '_')) {
- alt21 = 1;
- }
-
-
- switch (alt21) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:190: ( '_' )? '0' .. '7'
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:190: ( '_' )?
- int alt20 = 2;
- int LA20_0 = input.LA(1);
-
- if ((LA20_0 == '_')) {
- alt20 = 1;
- }
- switch (alt20) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:190: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0', '7');
-
- }
- break;
-
- default:
- break loop21;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_INTEGER_VALUE"
-
- // $ANTLR start "RULE_WS"
- public final void mRULE_WS() throws RecognitionException {
- try {
- int _type = RULE_WS;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2826:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2826:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2826:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
- int cnt23 = 0;
- loop23: do {
- int alt23 = 2;
- int LA23_0 = input.LA(1);
-
- if (((LA23_0 >= '\t' && LA23_0 <= '\n') || LA23_0 == '\r' || LA23_0 == ' ')) {
- alt23 = 1;
- }
-
-
- switch (alt23) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:
- {
- if ((input.LA(1) >= '\t' && input.LA(1) <= '\n') || input.LA(1) == '\r' || input.LA(1) == ' ') {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- if (cnt23 >= 1) {
- break loop23;
- }
- EarlyExitException eee =
- new EarlyExitException(23, input);
- throw eee;
- }
- cnt23++;
- } while (true);
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_WS"
-
- // $ANTLR start "RULE_ANY_OTHER"
- public final void mRULE_ANY_OTHER() throws RecognitionException {
- try {
- int _type = RULE_ANY_OTHER;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2828:16: ( . )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2828:18: .
- {
- matchAny();
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_ANY_OTHER"
-
- @Override
- public void mTokens() throws RecognitionException {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21
- // | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS |
- // RULE_ANY_OTHER )
- int alt24 = 35;
- alt24 = dfa24.predict(input);
- switch (alt24) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:10: T__12
- {
- mT__12();
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:16: T__13
- {
- mT__13();
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:22: T__14
- {
- mT__14();
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:28: T__15
- {
- mT__15();
-
- }
- break;
- case 5:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:34: T__16
- {
- mT__16();
-
- }
- break;
- case 6:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:40: T__17
- {
- mT__17();
-
- }
- break;
- case 7:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:46: T__18
- {
- mT__18();
-
- }
- break;
- case 8:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:52: T__19
- {
- mT__19();
-
- }
- break;
- case 9:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:58: T__20
- {
- mT__20();
-
- }
- break;
- case 10:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:64: T__21
- {
- mT__21();
-
- }
- break;
- case 11:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:70: T__22
- {
- mT__22();
-
- }
- break;
- case 12:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:76: T__23
- {
- mT__23();
-
- }
- break;
- case 13:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:82: T__24
- {
- mT__24();
-
- }
- break;
- case 14:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:88: T__25
- {
- mT__25();
-
- }
- break;
- case 15:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:94: T__26
- {
- mT__26();
-
- }
- break;
- case 16:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:100: T__27
- {
- mT__27();
-
- }
- break;
- case 17:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:106: T__28
- {
- mT__28();
-
- }
- break;
- case 18:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:112: T__29
- {
- mT__29();
-
- }
- break;
- case 19:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:118: T__30
- {
- mT__30();
-
- }
- break;
- case 20:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:124: T__31
- {
- mT__31();
-
- }
- break;
- case 21:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:130: T__32
- {
- mT__32();
-
- }
- break;
- case 22:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:136: T__33
- {
- mT__33();
-
- }
- break;
- case 23:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:142: T__34
- {
- mT__34();
-
- }
- break;
- case 24:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:148: T__35
- {
- mT__35();
-
- }
- break;
- case 25:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:154: T__36
- {
- mT__36();
-
- }
- break;
- case 26:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:160: T__37
- {
- mT__37();
-
- }
- break;
- case 27:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:166: T__38
- {
- mT__38();
-
- }
- break;
- case 28:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:172: RULE_ID
- {
- mRULE_ID();
-
- }
- break;
- case 29:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:180: RULE_STRING
- {
- mRULE_STRING();
-
- }
- break;
- case 30:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:192: RULE_ML_COMMENT
- {
- mRULE_ML_COMMENT();
-
- }
- break;
- case 31:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:208: RULE_SL_COMMENT
- {
- mRULE_SL_COMMENT();
-
- }
- break;
- case 32:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:224: RULE_INT
- {
- mRULE_INT();
-
- }
- break;
- case 33:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:233: RULE_INTEGER_VALUE
- {
- mRULE_INTEGER_VALUE();
-
- }
- break;
- case 34:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:252: RULE_WS
- {
- mRULE_WS();
-
- }
- break;
- case 35:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:260: RULE_ANY_OTHER
- {
- mRULE_ANY_OTHER();
-
- }
- break;
-
- }
-
- }
-
-
- protected DFA24 dfa24 = new DFA24(this);
- static final String DFA24_eotS =
- "\6\uffff\5\44\1\52\2\uffff\1\56\3\uffff\1\44\1\uffff\1\44\1\70" +
- "\1\35\1\uffff\2\35\2\75\7\uffff\1\44\1\uffff\4\44\11\uffff\1\44" +
- "\1\uffff\2\44\6\uffff\1\75\1\uffff\1\75\1\uffff\11\44\1\75\5\44" +
- "\1\131\2\44\1\134\1\135\2\44\1\140\2\44\1\uffff\1\143\1\44\2\uffff" +
- "\2\44\1\uffff\1\147\1\44\1\uffff\3\44\1\uffff\1\154\1\155\1\156" +
- "\1\44\3\uffff\1\160\1\uffff";
- static final String DFA24_eofS =
- "\161\uffff";
- static final String DFA24_minS =
- "\1\0\5\uffff\1\145\1\156\2\162\1\141\1\72\2\uffff\1\56\3\uffff" +
- "\1\165\1\uffff\1\157\1\52\1\125\1\uffff\2\0\2\60\7\uffff\1\141\1" +
- "\uffff\1\151\1\144\1\165\1\154\11\uffff\1\142\1\uffff\1\154\1\156" +
- "\6\uffff\1\60\1\uffff\1\60\1\uffff\1\144\1\145\1\157\2\145\2\163" +
- "\1\154\1\145\1\60\1\117\1\146\1\156\1\165\1\162\1\60\2\145\2\60" +
- "\1\156\1\151\1\60\2\145\1\uffff\1\60\1\164\2\uffff\1\154\1\156\1" +
- "\uffff\1\60\1\144\1\uffff\1\163\1\171\1\145\1\uffff\3\60\1\163\3" +
- "\uffff\1\60\1\uffff";
- static final String DFA24_maxS =
- "\1\uffff\5\uffff\1\145\1\156\2\162\1\141\1\72\2\uffff\1\56\3\uffff" +
- "\1\165\1\uffff\1\165\1\57\1\125\1\uffff\2\uffff\1\170\1\137\7\uffff" +
- "\1\144\1\uffff\1\151\1\144\1\165\1\154\11\uffff\1\142\1\uffff\1" +
- "\154\1\156\6\uffff\1\137\1\uffff\1\137\1\uffff\1\144\1\145\1\161" +
- "\2\145\2\163\1\154\1\145\1\137\1\117\1\146\1\156\1\165\1\162\1\172" +
- "\2\145\2\172\1\156\1\151\1\172\2\145\1\uffff\1\172\1\164\2\uffff" +
- "\1\154\1\156\1\uffff\1\172\1\144\1\uffff\1\163\1\171\1\145\1\uffff" +
- "\3\172\1\163\3\uffff\1\172\1\uffff";
- static final String DFA24_acceptS =
- "\1\uffff\1\1\1\2\1\3\1\4\1\5\6\uffff\1\16\1\17\1\uffff\1\21\1\22" +
- "\1\23\1\uffff\1\26\3\uffff\1\34\4\uffff\1\42\1\43\1\1\1\2\1\3\1" +
- "\4\1\5\1\uffff\1\34\4\uffff\1\15\1\14\1\16\1\17\1\20\1\27\1\21\1" +
- "\22\1\23\1\uffff\1\26\2\uffff\1\36\1\37\1\32\1\33\1\35\1\41\1\uffff" +
- "\1\40\1\uffff\1\42\31\uffff\1\12\2\uffff\1\30\1\31\2\uffff\1\7\2" +
- "\uffff\1\13\3\uffff\1\11\4\uffff\1\10\1\25\1\6\1\uffff\1\24";
- static final String DFA24_specialS =
- "\1\0\27\uffff\1\1\1\2\127\uffff}>";
- static final String[] DFA24_transitionS = {
- "\11\35\2\34\2\35\1\34\22\35\1\34\1\35\1\31\1\4\3\35\1\30\2" +
- "\35\1\1\1\2\1\21\1\3\1\16\1\25\1\32\11\33\1\13\1\35\1\26\1\23" +
- "\3\35\32\27\1\14\1\35\1\15\1\35\1\27\1\35\5\27\1\12\7\27\1\24" +
- "\1\10\2\27\1\6\1\22\1\11\1\7\5\27\1\17\1\35\1\20\1\5\uff81\35",
- "",
- "",
- "",
- "",
- "",
- "\1\43",
- "\1\45",
- "\1\46",
- "\1\47",
- "\1\50",
- "\1\51",
- "",
- "",
- "\1\55",
- "",
- "",
- "",
- "\1\62",
- "",
- "\1\65\5\uffff\1\64",
- "\1\66\4\uffff\1\67",
- "\1\71",
- "",
- "\0\44",
- "\0\72",
- "\10\74\12\uffff\1\73\25\uffff\1\73\6\uffff\1\73\2\uffff\1" +
- "\73\25\uffff\1\73",
- "\12\76\45\uffff\1\73",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "\1\100\2\uffff\1\101",
- "",
- "\1\102",
- "\1\103",
- "\1\104",
- "\1\105",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "\1\106",
- "",
- "\1\107",
- "\1\110",
- "",
- "",
- "",
- "",
- "",
- "",
- "\10\111\47\uffff\1\73",
- "",
- "\12\76\45\uffff\1\73",
- "",
- "\1\112",
- "\1\113",
- "\1\114\1\uffff\1\115",
- "\1\116",
- "\1\117",
- "\1\120",
- "\1\121",
- "\1\122",
- "\1\123",
- "\10\111\47\uffff\1\73",
- "\1\124",
- "\1\125",
- "\1\126",
- "\1\127",
- "\1\130",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- "\1\132",
- "\1\133",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- "\1\136",
- "\1\137",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- "\1\141",
- "\1\142",
- "",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- "\1\144",
- "",
- "",
- "\1\145",
- "\1\146",
- "",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- "\1\150",
- "",
- "\1\151",
- "\1\152",
- "\1\153",
- "",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- "\1\157",
- "",
- "",
- "",
- "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
- ""
- };
-
- static final short[] DFA24_eot = DFA.unpackEncodedString(DFA24_eotS);
- static final short[] DFA24_eof = DFA.unpackEncodedString(DFA24_eofS);
- static final char[] DFA24_min = DFA.unpackEncodedStringToUnsignedChars(DFA24_minS);
- static final char[] DFA24_max = DFA.unpackEncodedStringToUnsignedChars(DFA24_maxS);
- static final short[] DFA24_accept = DFA.unpackEncodedString(DFA24_acceptS);
- static final short[] DFA24_special = DFA.unpackEncodedString(DFA24_specialS);
- static final short[][] DFA24_transition;
-
- static {
- int numStates = DFA24_transitionS.length;
- DFA24_transition = new short[numStates][];
- for (int i = 0; i < numStates; i++) {
- DFA24_transition[i] = DFA.unpackEncodedString(DFA24_transitionS[i]);
- }
- }
-
- class DFA24 extends DFA {
-
- public DFA24(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 24;
- this.eot = DFA24_eot;
- this.eof = DFA24_eof;
- this.min = DFA24_min;
- this.max = DFA24_max;
- this.accept = DFA24_accept;
- this.special = DFA24_special;
- this.transition = DFA24_transition;
- }
-
- @Override
- public String getDescription() {
- return "1:1: Tokens : ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER );";
- }
-
- @Override
- public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
- IntStream input = _input;
- int _s = s;
- switch (s) {
- case 0:
- int LA24_0 = input.LA(1);
-
- s = -1;
- if ((LA24_0 == '*')) {
- s = 1;
- }
-
- else if ((LA24_0 == '+')) {
- s = 2;
- }
-
- else if ((LA24_0 == '-')) {
- s = 3;
- }
-
- else if ((LA24_0 == '#')) {
- s = 4;
- }
-
- else if ((LA24_0 == '~')) {
- s = 5;
- }
-
- else if ((LA24_0 == 'r')) {
- s = 6;
- }
-
- else if ((LA24_0 == 'u')) {
- s = 7;
- }
-
- else if ((LA24_0 == 'o')) {
- s = 8;
- }
-
- else if ((LA24_0 == 't')) {
- s = 9;
- }
-
- else if ((LA24_0 == 'f')) {
- s = 10;
- }
-
- else if ((LA24_0 == ':')) {
- s = 11;
- }
-
- else if ((LA24_0 == '[')) {
- s = 12;
- }
-
- else if ((LA24_0 == ']')) {
- s = 13;
- }
-
- else if ((LA24_0 == '.')) {
- s = 14;
- }
-
- else if ((LA24_0 == '{')) {
- s = 15;
- }
-
- else if ((LA24_0 == '}')) {
- s = 16;
- }
-
- else if ((LA24_0 == ',')) {
- s = 17;
- }
-
- else if ((LA24_0 == 's')) {
- s = 18;
- }
-
- else if ((LA24_0 == '=')) {
- s = 19;
- }
-
- else if ((LA24_0 == 'n')) {
- s = 20;
- }
-
- else if ((LA24_0 == '/')) {
- s = 21;
- }
-
- else if ((LA24_0 == '<')) {
- s = 22;
- }
-
- else if (((LA24_0 >= 'A' && LA24_0 <= 'Z') || LA24_0 == '_' || (LA24_0 >= 'a' && LA24_0 <= 'e') || (LA24_0 >= 'g' && LA24_0 <= 'm') || (LA24_0 >= 'p' && LA24_0 <= 'q') || (LA24_0 >= 'v' && LA24_0 <= 'z'))) {
- s = 23;
- }
-
- else if ((LA24_0 == '\'')) {
- s = 24;
- }
-
- else if ((LA24_0 == '\"')) {
- s = 25;
- }
-
- else if ((LA24_0 == '0')) {
- s = 26;
- }
-
- else if (((LA24_0 >= '1' && LA24_0 <= '9'))) {
- s = 27;
- }
-
- else if (((LA24_0 >= '\t' && LA24_0 <= '\n') || LA24_0 == '\r' || LA24_0 == ' ')) {
- s = 28;
- }
-
- else if (((LA24_0 >= '\u0000' && LA24_0 <= '\b') || (LA24_0 >= '\u000B' && LA24_0 <= '\f') || (LA24_0 >= '\u000E' && LA24_0 <= '\u001F') || LA24_0 == '!' || (LA24_0 >= '$' && LA24_0 <= '&') || (LA24_0 >= '(' && LA24_0 <= ')') || LA24_0 == ';'
- || (LA24_0 >= '>' && LA24_0 <= '@') || LA24_0 == '\\' || LA24_0 == '^' || LA24_0 == '`' || LA24_0 == '|' || (LA24_0 >= '\u007F' && LA24_0 <= '\uFFFF'))) {
- s = 29;
- }
-
- if (s >= 0) {
- return s;
- }
- break;
- case 1:
- int LA24_24 = input.LA(1);
-
- s = -1;
- if (((LA24_24 >= '\u0000' && LA24_24 <= '\uFFFF'))) {
- s = 36;
- } else {
- s = 29;
- }
-
- if (s >= 0) {
- return s;
- }
- break;
- case 2:
- int LA24_25 = input.LA(1);
-
- s = -1;
- if (((LA24_25 >= '\u0000' && LA24_25 <= '\uFFFF'))) {
- s = 58;
- } else {
- s = 29;
- }
-
- if (s >= 0) {
- return s;
- }
- break;
- }
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 24, _s, input);
- error(nvae);
- throw nvae;
- }
- }
-
-
+package org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal;
+
+// Hack: Use our own Lexer superclass by means of import.
+// Currently there is no other way to specify the superclass for the lexer.
+import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer;
+
+
+import org.antlr.runtime.*;
+import java.util.Stack;
+import java.util.List;
+import java.util.ArrayList;
+
+@SuppressWarnings("all")
+public class InternalUmlPropertyLexer extends Lexer {
+ public static final int RULE_ID=6;
+ public static final int T__29=29;
+ public static final int T__28=28;
+ public static final int T__27=27;
+ public static final int T__26=26;
+ public static final int T__25=25;
+ public static final int T__24=24;
+ public static final int T__23=23;
+ public static final int T__22=22;
+ public static final int RULE_ANY_OTHER=11;
+ public static final int T__21=21;
+ public static final int T__20=20;
+ public static final int RULE_INTEGER_VALUE=9;
+ public static final int EOF=-1;
+ public static final int RULE_SL_COMMENT=8;
+ public static final int RULE_ML_COMMENT=7;
+ public static final int T__19=19;
+ public static final int T__30=30;
+ public static final int T__31=31;
+ public static final int T__32=32;
+ public static final int RULE_STRING=4;
+ public static final int T__16=16;
+ public static final int T__33=33;
+ public static final int T__15=15;
+ public static final int T__34=34;
+ public static final int T__18=18;
+ public static final int T__35=35;
+ public static final int T__17=17;
+ public static final int T__36=36;
+ public static final int T__12=12;
+ public static final int T__37=37;
+ public static final int T__38=38;
+ public static final int T__14=14;
+ public static final int T__13=13;
+ public static final int RULE_INT=5;
+ public static final int RULE_WS=10;
+
+ // delegates
+ // delegators
+
+ public InternalUmlPropertyLexer() {;}
+ public InternalUmlPropertyLexer(CharStream input) {
+ this(input, new RecognizerSharedState());
+ }
+ public InternalUmlPropertyLexer(CharStream input, RecognizerSharedState state) {
+ super(input,state);
+
+ }
+ public String getGrammarFileName() { return "../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g"; }
+
+ // $ANTLR start "T__12"
+ public final void mT__12() throws RecognitionException {
+ try {
+ int _type = T__12;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:11:7: ( '*' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:11:9: '*'
+ {
+ match('*');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__12"
+
+ // $ANTLR start "T__13"
+ public final void mT__13() throws RecognitionException {
+ try {
+ int _type = T__13;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:12:7: ( '+' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:12:9: '+'
+ {
+ match('+');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__13"
+
+ // $ANTLR start "T__14"
+ public final void mT__14() throws RecognitionException {
+ try {
+ int _type = T__14;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:13:7: ( '-' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:13:9: '-'
+ {
+ match('-');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__14"
+
+ // $ANTLR start "T__15"
+ public final void mT__15() throws RecognitionException {
+ try {
+ int _type = T__15;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:14:7: ( '#' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:14:9: '#'
+ {
+ match('#');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__15"
+
+ // $ANTLR start "T__16"
+ public final void mT__16() throws RecognitionException {
+ try {
+ int _type = T__16;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:15:7: ( '~' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:15:9: '~'
+ {
+ match('~');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__16"
+
+ // $ANTLR start "T__17"
+ public final void mT__17() throws RecognitionException {
+ try {
+ int _type = T__17;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:16:7: ( 'readOnly' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:16:9: 'readOnly'
+ {
+ match("readOnly");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__17"
+
+ // $ANTLR start "T__18"
+ public final void mT__18() throws RecognitionException {
+ try {
+ int _type = T__18;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:17:7: ( 'union' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:17:9: 'union'
+ {
+ match("union");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__18"
+
+ // $ANTLR start "T__19"
+ public final void mT__19() throws RecognitionException {
+ try {
+ int _type = T__19;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:18:7: ( 'ordered' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:18:9: 'ordered'
+ {
+ match("ordered");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__19"
+
+ // $ANTLR start "T__20"
+ public final void mT__20() throws RecognitionException {
+ try {
+ int _type = T__20;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:19:7: ( 'unique' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:19:9: 'unique'
+ {
+ match("unique");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__20"
+
+ // $ANTLR start "T__21"
+ public final void mT__21() throws RecognitionException {
+ try {
+ int _type = T__21;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:20:7: ( 'true' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:20:9: 'true'
+ {
+ match("true");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__21"
+
+ // $ANTLR start "T__22"
+ public final void mT__22() throws RecognitionException {
+ try {
+ int _type = T__22;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:21:7: ( 'false' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:21:9: 'false'
+ {
+ match("false");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__22"
+
+ // $ANTLR start "T__23"
+ public final void mT__23() throws RecognitionException {
+ try {
+ int _type = T__23;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:22:7: ( ':' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:22:9: ':'
+ {
+ match(':');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__23"
+
+ // $ANTLR start "T__24"
+ public final void mT__24() throws RecognitionException {
+ try {
+ int _type = T__24;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:23:7: ( '::' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:23:9: '::'
+ {
+ match("::");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__24"
+
+ // $ANTLR start "T__25"
+ public final void mT__25() throws RecognitionException {
+ try {
+ int _type = T__25;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:24:7: ( '[' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:24:9: '['
+ {
+ match('[');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__25"
+
+ // $ANTLR start "T__26"
+ public final void mT__26() throws RecognitionException {
+ try {
+ int _type = T__26;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:25:7: ( ']' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:25:9: ']'
+ {
+ match(']');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__26"
+
+ // $ANTLR start "T__27"
+ public final void mT__27() throws RecognitionException {
+ try {
+ int _type = T__27;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:26:7: ( '..' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:26:9: '..'
+ {
+ match("..");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__27"
+
+ // $ANTLR start "T__28"
+ public final void mT__28() throws RecognitionException {
+ try {
+ int _type = T__28;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:27:7: ( '{' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:27:9: '{'
+ {
+ match('{');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__28"
+
+ // $ANTLR start "T__29"
+ public final void mT__29() throws RecognitionException {
+ try {
+ int _type = T__29;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:28:7: ( '}' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:28:9: '}'
+ {
+ match('}');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__29"
+
+ // $ANTLR start "T__30"
+ public final void mT__30() throws RecognitionException {
+ try {
+ int _type = T__30;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:29:7: ( ',' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:29:9: ','
+ {
+ match(',');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__30"
+
+ // $ANTLR start "T__31"
+ public final void mT__31() throws RecognitionException {
+ try {
+ int _type = T__31;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:30:7: ( 'redefines' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:30:9: 'redefines'
+ {
+ match("redefines");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__31"
+
+ // $ANTLR start "T__32"
+ public final void mT__32() throws RecognitionException {
+ try {
+ int _type = T__32;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:31:7: ( 'subsets' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:31:9: 'subsets'
+ {
+ match("subsets");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__32"
+
+ // $ANTLR start "T__33"
+ public final void mT__33() throws RecognitionException {
+ try {
+ int _type = T__33;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:32:7: ( '=' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:32:9: '='
+ {
+ match('=');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__33"
+
+ // $ANTLR start "T__34"
+ public final void mT__34() throws RecognitionException {
+ try {
+ int _type = T__34;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:33:7: ( '.' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:33:9: '.'
+ {
+ match('.');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__34"
+
+ // $ANTLR start "T__35"
+ public final void mT__35() throws RecognitionException {
+ try {
+ int _type = T__35;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:34:7: ( 'null' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:34:9: 'null'
+ {
+ match("null");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__35"
+
+ // $ANTLR start "T__36"
+ public final void mT__36() throws RecognitionException {
+ try {
+ int _type = T__36;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:35:7: ( 'none' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:35:9: 'none'
+ {
+ match("none");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__36"
+
+ // $ANTLR start "T__37"
+ public final void mT__37() throws RecognitionException {
+ try {
+ int _type = T__37;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:36:7: ( '/' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:36:9: '/'
+ {
+ match('/');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__37"
+
+ // $ANTLR start "T__38"
+ public final void mT__38() throws RecognitionException {
+ try {
+ int _type = T__38;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:37:7: ( '<Undefined>' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:37:9: '<Undefined>'
+ {
+ match("<Undefined>");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__38"
+
+ // $ANTLR start "RULE_ID"
+ public final void mRULE_ID() throws RecognitionException {
+ try {
+ int _type = RULE_ID;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2865:9: ( ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2865:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2865:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' )
+ int alt3=2;
+ int LA3_0 = input.LA(1);
+
+ if ( ((LA3_0>='A' && LA3_0<='Z')||LA3_0=='_'||(LA3_0>='a' && LA3_0<='z')) ) {
+ alt3=1;
+ }
+ else if ( (LA3_0=='\'') ) {
+ alt3=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 3, 0, input);
+
+ throw nvae;
+ }
+ switch (alt3) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2865:12: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ {
+ if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2865:36: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ loop1:
+ do {
+ int alt1=2;
+ int LA1_0 = input.LA(1);
+
+ if ( ((LA1_0>='0' && LA1_0<='9')||(LA1_0>='A' && LA1_0<='Z')||LA1_0=='_'||(LA1_0>='a' && LA1_0<='z')) ) {
+ alt1=1;
+ }
+
+
+ switch (alt1) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:
+ {
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop1;
+ }
+ } while (true);
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2865:70: '\\'' ( options {greedy=false; } : . )* '\\''
+ {
+ match('\'');
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2865:75: ( options {greedy=false; } : . )*
+ loop2:
+ do {
+ int alt2=2;
+ int LA2_0 = input.LA(1);
+
+ if ( (LA2_0=='\'') ) {
+ alt2=2;
+ }
+ else if ( ((LA2_0>='\u0000' && LA2_0<='&')||(LA2_0>='(' && LA2_0<='\uFFFF')) ) {
+ alt2=1;
+ }
+
+
+ switch (alt2) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2865:103: .
+ {
+ matchAny();
+
+ }
+ break;
+
+ default :
+ break loop2;
+ }
+ } while (true);
+
+ match('\'');
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_ID"
+
+ // $ANTLR start "RULE_STRING"
+ public final void mRULE_STRING() throws RecognitionException {
+ try {
+ int _type = RULE_STRING;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2867:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2867:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
+ {
+ match('\"');
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2867:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
+ loop4:
+ do {
+ int alt4=3;
+ int LA4_0 = input.LA(1);
+
+ if ( (LA4_0=='\\') ) {
+ alt4=1;
+ }
+ else if ( ((LA4_0>='\u0000' && LA4_0<='!')||(LA4_0>='#' && LA4_0<='[')||(LA4_0>=']' && LA4_0<='\uFFFF')) ) {
+ alt4=2;
+ }
+
+
+ switch (alt4) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2867:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
+ {
+ match('\\');
+ if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2867:61: ~ ( ( '\\\\' | '\"' ) )
+ {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop4;
+ }
+ } while (true);
+
+ match('\"');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_STRING"
+
+ // $ANTLR start "RULE_ML_COMMENT"
+ public final void mRULE_ML_COMMENT() throws RecognitionException {
+ try {
+ int _type = RULE_ML_COMMENT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2869:17: ( '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2869:19: '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/'
+ {
+ match("/*");
+
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='?')||(input.LA(1)>='A' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2869:31: ( options {greedy=false; } : . )*
+ loop5:
+ do {
+ int alt5=2;
+ int LA5_0 = input.LA(1);
+
+ if ( (LA5_0=='*') ) {
+ int LA5_1 = input.LA(2);
+
+ if ( (LA5_1=='/') ) {
+ alt5=2;
+ }
+ else if ( ((LA5_1>='\u0000' && LA5_1<='.')||(LA5_1>='0' && LA5_1<='\uFFFF')) ) {
+ alt5=1;
+ }
+
+
+ }
+ else if ( ((LA5_0>='\u0000' && LA5_0<=')')||(LA5_0>='+' && LA5_0<='\uFFFF')) ) {
+ alt5=1;
+ }
+
+
+ switch (alt5) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2869:59: .
+ {
+ matchAny();
+
+ }
+ break;
+
+ default :
+ break loop5;
+ }
+ } while (true);
+
+ match("*/");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_ML_COMMENT"
+
+ // $ANTLR start "RULE_SL_COMMENT"
+ public final void mRULE_SL_COMMENT() throws RecognitionException {
+ try {
+ int _type = RULE_SL_COMMENT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2871:17: ( '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2871:19: '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )?
+ {
+ match("//");
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2871:24: (~ ( ( '\\n' | '\\r' | '@' ) ) )*
+ loop6:
+ do {
+ int alt6=2;
+ int LA6_0 = input.LA(1);
+
+ if ( ((LA6_0>='\u0000' && LA6_0<='\t')||(LA6_0>='\u000B' && LA6_0<='\f')||(LA6_0>='\u000E' && LA6_0<='?')||(LA6_0>='A' && LA6_0<='\uFFFF')) ) {
+ alt6=1;
+ }
+
+
+ switch (alt6) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2871:24: ~ ( ( '\\n' | '\\r' | '@' ) )
+ {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='?')||(input.LA(1)>='A' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop6;
+ }
+ } while (true);
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2871:44: ( ( '\\r' )? '\\n' )?
+ int alt8=2;
+ int LA8_0 = input.LA(1);
+
+ if ( (LA8_0=='\n'||LA8_0=='\r') ) {
+ alt8=1;
+ }
+ switch (alt8) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2871:45: ( '\\r' )? '\\n'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2871:45: ( '\\r' )?
+ int alt7=2;
+ int LA7_0 = input.LA(1);
+
+ if ( (LA7_0=='\r') ) {
+ alt7=1;
+ }
+ switch (alt7) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2871:45: '\\r'
+ {
+ match('\r');
+
+ }
+ break;
+
+ }
+
+ match('\n');
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_SL_COMMENT"
+
+ // $ANTLR start "RULE_INT"
+ public final void mRULE_INT() throws RecognitionException {
+ try {
+ int _type = RULE_INT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2873:10: ( ( '0' .. '9' )+ )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2873:12: ( '0' .. '9' )+
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2873:12: ( '0' .. '9' )+
+ int cnt9=0;
+ loop9:
+ do {
+ int alt9=2;
+ int LA9_0 = input.LA(1);
+
+ if ( ((LA9_0>='0' && LA9_0<='9')) ) {
+ alt9=1;
+ }
+
+
+ switch (alt9) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2873:13: '0' .. '9'
+ {
+ matchRange('0','9');
+
+ }
+ break;
+
+ default :
+ if ( cnt9 >= 1 ) break loop9;
+ EarlyExitException eee =
+ new EarlyExitException(9, input);
+ throw eee;
+ }
+ cnt9++;
+ } while (true);
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_INT"
+
+ // $ANTLR start "RULE_INTEGER_VALUE"
+ public final void mRULE_INTEGER_VALUE() throws RecognitionException {
+ try {
+ int _type = RULE_INTEGER_VALUE;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:20: ( ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
+ int alt22=4;
+ int LA22_0 = input.LA(1);
+
+ if ( (LA22_0=='0') ) {
+ switch ( input.LA(2) ) {
+ case 'B':
+ case 'b':
+ {
+ alt22=2;
+ }
+ break;
+ case 'X':
+ case 'x':
+ {
+ alt22=3;
+ }
+ break;
+ case '0':
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ case '_':
+ {
+ alt22=4;
+ }
+ break;
+ default:
+ alt22=1;}
+
+ }
+ else if ( ((LA22_0>='1' && LA22_0<='9')) ) {
+ alt22=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 22, 0, input);
+
+ throw nvae;
+ }
+ switch (alt22) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
+ int alt12=2;
+ int LA12_0 = input.LA(1);
+
+ if ( (LA12_0=='0') ) {
+ alt12=1;
+ }
+ else if ( ((LA12_0>='1' && LA12_0<='9')) ) {
+ alt12=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 12, 0, input);
+
+ throw nvae;
+ }
+ switch (alt12) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:24: '0'
+ {
+ match('0');
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:28: '1' .. '9' ( ( '_' )? '0' .. '9' )*
+ {
+ matchRange('1','9');
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:37: ( ( '_' )? '0' .. '9' )*
+ loop11:
+ do {
+ int alt11=2;
+ int LA11_0 = input.LA(1);
+
+ if ( ((LA11_0>='0' && LA11_0<='9')||LA11_0=='_') ) {
+ alt11=1;
+ }
+
+
+ switch (alt11) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:38: ( '_' )? '0' .. '9'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:38: ( '_' )?
+ int alt10=2;
+ int LA10_0 = input.LA(1);
+
+ if ( (LA10_0=='_') ) {
+ alt10=1;
+ }
+ switch (alt10) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:38: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','9');
+
+ }
+ break;
+
+ default :
+ break loop11;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:55: ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )*
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:55: ( '0b' | '0B' )
+ int alt13=2;
+ int LA13_0 = input.LA(1);
+
+ if ( (LA13_0=='0') ) {
+ int LA13_1 = input.LA(2);
+
+ if ( (LA13_1=='b') ) {
+ alt13=1;
+ }
+ else if ( (LA13_1=='B') ) {
+ alt13=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 13, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 13, 0, input);
+
+ throw nvae;
+ }
+ switch (alt13) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:56: '0b'
+ {
+ match("0b");
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:61: '0B'
+ {
+ match("0B");
+
+
+ }
+ break;
+
+ }
+
+ matchRange('0','1');
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:76: ( ( '_' )? '0' .. '1' )*
+ loop15:
+ do {
+ int alt15=2;
+ int LA15_0 = input.LA(1);
+
+ if ( ((LA15_0>='0' && LA15_0<='1')||LA15_0=='_') ) {
+ alt15=1;
+ }
+
+
+ switch (alt15) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:77: ( '_' )? '0' .. '1'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:77: ( '_' )?
+ int alt14=2;
+ int LA14_0 = input.LA(1);
+
+ if ( (LA14_0=='_') ) {
+ alt14=1;
+ }
+ switch (alt14) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:77: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','1');
+
+ }
+ break;
+
+ default :
+ break loop15;
+ }
+ } while (true);
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:93: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:93: ( '0x' | '0X' )
+ int alt16=2;
+ int LA16_0 = input.LA(1);
+
+ if ( (LA16_0=='0') ) {
+ int LA16_1 = input.LA(2);
+
+ if ( (LA16_1=='x') ) {
+ alt16=1;
+ }
+ else if ( (LA16_1=='X') ) {
+ alt16=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 16, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 16, 0, input);
+
+ throw nvae;
+ }
+ switch (alt16) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:94: '0x'
+ {
+ match("0x");
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:99: '0X'
+ {
+ match("0X");
+
+
+ }
+ break;
+
+ }
+
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:134: ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
+ loop18:
+ do {
+ int alt18=2;
+ int LA18_0 = input.LA(1);
+
+ if ( ((LA18_0>='0' && LA18_0<='9')||(LA18_0>='A' && LA18_0<='F')||LA18_0=='_'||(LA18_0>='a' && LA18_0<='f')) ) {
+ alt18=1;
+ }
+
+
+ switch (alt18) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:135: ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:135: ( '_' )?
+ int alt17=2;
+ int LA17_0 = input.LA(1);
+
+ if ( (LA17_0=='_') ) {
+ alt17=1;
+ }
+ switch (alt17) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:135: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop18;
+ }
+ } while (true);
+
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:171: '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )*
+ {
+ match('0');
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:175: ( '_' )?
+ int alt19=2;
+ int LA19_0 = input.LA(1);
+
+ if ( (LA19_0=='_') ) {
+ alt19=1;
+ }
+ switch (alt19) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:175: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','7');
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:189: ( ( '_' )? '0' .. '7' )*
+ loop21:
+ do {
+ int alt21=2;
+ int LA21_0 = input.LA(1);
+
+ if ( ((LA21_0>='0' && LA21_0<='7')||LA21_0=='_') ) {
+ alt21=1;
+ }
+
+
+ switch (alt21) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:190: ( '_' )? '0' .. '7'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:190: ( '_' )?
+ int alt20=2;
+ int LA20_0 = input.LA(1);
+
+ if ( (LA20_0=='_') ) {
+ alt20=1;
+ }
+ switch (alt20) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2875:190: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','7');
+
+ }
+ break;
+
+ default :
+ break loop21;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_INTEGER_VALUE"
+
+ // $ANTLR start "RULE_WS"
+ public final void mRULE_WS() throws RecognitionException {
+ try {
+ int _type = RULE_WS;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2877:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2877:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2877:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ int cnt23=0;
+ loop23:
+ do {
+ int alt23=2;
+ int LA23_0 = input.LA(1);
+
+ if ( ((LA23_0>='\t' && LA23_0<='\n')||LA23_0=='\r'||LA23_0==' ') ) {
+ alt23=1;
+ }
+
+
+ switch (alt23) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:
+ {
+ if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ if ( cnt23 >= 1 ) break loop23;
+ EarlyExitException eee =
+ new EarlyExitException(23, input);
+ throw eee;
+ }
+ cnt23++;
+ } while (true);
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_WS"
+
+ // $ANTLR start "RULE_ANY_OTHER"
+ public final void mRULE_ANY_OTHER() throws RecognitionException {
+ try {
+ int _type = RULE_ANY_OTHER;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2879:16: ( . )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2879:18: .
+ {
+ matchAny();
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_ANY_OTHER"
+
+ public void mTokens() throws RecognitionException {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER )
+ int alt24=35;
+ alt24 = dfa24.predict(input);
+ switch (alt24) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:10: T__12
+ {
+ mT__12();
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:16: T__13
+ {
+ mT__13();
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:22: T__14
+ {
+ mT__14();
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:28: T__15
+ {
+ mT__15();
+
+ }
+ break;
+ case 5 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:34: T__16
+ {
+ mT__16();
+
+ }
+ break;
+ case 6 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:40: T__17
+ {
+ mT__17();
+
+ }
+ break;
+ case 7 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:46: T__18
+ {
+ mT__18();
+
+ }
+ break;
+ case 8 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:52: T__19
+ {
+ mT__19();
+
+ }
+ break;
+ case 9 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:58: T__20
+ {
+ mT__20();
+
+ }
+ break;
+ case 10 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:64: T__21
+ {
+ mT__21();
+
+ }
+ break;
+ case 11 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:70: T__22
+ {
+ mT__22();
+
+ }
+ break;
+ case 12 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:76: T__23
+ {
+ mT__23();
+
+ }
+ break;
+ case 13 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:82: T__24
+ {
+ mT__24();
+
+ }
+ break;
+ case 14 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:88: T__25
+ {
+ mT__25();
+
+ }
+ break;
+ case 15 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:94: T__26
+ {
+ mT__26();
+
+ }
+ break;
+ case 16 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:100: T__27
+ {
+ mT__27();
+
+ }
+ break;
+ case 17 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:106: T__28
+ {
+ mT__28();
+
+ }
+ break;
+ case 18 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:112: T__29
+ {
+ mT__29();
+
+ }
+ break;
+ case 19 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:118: T__30
+ {
+ mT__30();
+
+ }
+ break;
+ case 20 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:124: T__31
+ {
+ mT__31();
+
+ }
+ break;
+ case 21 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:130: T__32
+ {
+ mT__32();
+
+ }
+ break;
+ case 22 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:136: T__33
+ {
+ mT__33();
+
+ }
+ break;
+ case 23 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:142: T__34
+ {
+ mT__34();
+
+ }
+ break;
+ case 24 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:148: T__35
+ {
+ mT__35();
+
+ }
+ break;
+ case 25 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:154: T__36
+ {
+ mT__36();
+
+ }
+ break;
+ case 26 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:160: T__37
+ {
+ mT__37();
+
+ }
+ break;
+ case 27 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:166: T__38
+ {
+ mT__38();
+
+ }
+ break;
+ case 28 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:172: RULE_ID
+ {
+ mRULE_ID();
+
+ }
+ break;
+ case 29 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:180: RULE_STRING
+ {
+ mRULE_STRING();
+
+ }
+ break;
+ case 30 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:192: RULE_ML_COMMENT
+ {
+ mRULE_ML_COMMENT();
+
+ }
+ break;
+ case 31 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:208: RULE_SL_COMMENT
+ {
+ mRULE_SL_COMMENT();
+
+ }
+ break;
+ case 32 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:224: RULE_INT
+ {
+ mRULE_INT();
+
+ }
+ break;
+ case 33 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:233: RULE_INTEGER_VALUE
+ {
+ mRULE_INTEGER_VALUE();
+
+ }
+ break;
+ case 34 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:252: RULE_WS
+ {
+ mRULE_WS();
+
+ }
+ break;
+ case 35 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1:260: RULE_ANY_OTHER
+ {
+ mRULE_ANY_OTHER();
+
+ }
+ break;
+
+ }
+
+ }
+
+
+ protected DFA24 dfa24 = new DFA24(this);
+ static final String DFA24_eotS =
+ "\6\uffff\5\44\1\52\2\uffff\1\56\3\uffff\1\44\1\uffff\1\44\1\70"+
+ "\1\35\1\uffff\2\35\2\75\7\uffff\1\44\1\uffff\4\44\11\uffff\1\44"+
+ "\1\uffff\2\44\6\uffff\1\75\1\uffff\1\75\1\uffff\11\44\1\75\5\44"+
+ "\1\131\2\44\1\134\1\135\2\44\1\140\2\44\1\uffff\1\143\1\44\2\uffff"+
+ "\2\44\1\uffff\1\147\1\44\1\uffff\3\44\1\uffff\1\154\1\155\1\156"+
+ "\1\44\3\uffff\1\160\1\uffff";
+ static final String DFA24_eofS =
+ "\161\uffff";
+ static final String DFA24_minS =
+ "\1\0\5\uffff\1\145\1\156\2\162\1\141\1\72\2\uffff\1\56\3\uffff"+
+ "\1\165\1\uffff\1\157\1\52\1\125\1\uffff\2\0\2\60\7\uffff\1\141\1"+
+ "\uffff\1\151\1\144\1\165\1\154\11\uffff\1\142\1\uffff\1\154\1\156"+
+ "\6\uffff\1\60\1\uffff\1\60\1\uffff\1\144\1\145\1\157\2\145\2\163"+
+ "\1\154\1\145\1\60\1\117\1\146\1\156\1\165\1\162\1\60\2\145\2\60"+
+ "\1\156\1\151\1\60\2\145\1\uffff\1\60\1\164\2\uffff\1\154\1\156\1"+
+ "\uffff\1\60\1\144\1\uffff\1\163\1\171\1\145\1\uffff\3\60\1\163\3"+
+ "\uffff\1\60\1\uffff";
+ static final String DFA24_maxS =
+ "\1\uffff\5\uffff\1\145\1\156\2\162\1\141\1\72\2\uffff\1\56\3\uffff"+
+ "\1\165\1\uffff\1\165\1\57\1\125\1\uffff\2\uffff\1\170\1\137\7\uffff"+
+ "\1\144\1\uffff\1\151\1\144\1\165\1\154\11\uffff\1\142\1\uffff\1"+
+ "\154\1\156\6\uffff\1\137\1\uffff\1\137\1\uffff\1\144\1\145\1\161"+
+ "\2\145\2\163\1\154\1\145\1\137\1\117\1\146\1\156\1\165\1\162\1\172"+
+ "\2\145\2\172\1\156\1\151\1\172\2\145\1\uffff\1\172\1\164\2\uffff"+
+ "\1\154\1\156\1\uffff\1\172\1\144\1\uffff\1\163\1\171\1\145\1\uffff"+
+ "\3\172\1\163\3\uffff\1\172\1\uffff";
+ static final String DFA24_acceptS =
+ "\1\uffff\1\1\1\2\1\3\1\4\1\5\6\uffff\1\16\1\17\1\uffff\1\21\1\22"+
+ "\1\23\1\uffff\1\26\3\uffff\1\34\4\uffff\1\42\1\43\1\1\1\2\1\3\1"+
+ "\4\1\5\1\uffff\1\34\4\uffff\1\15\1\14\1\16\1\17\1\20\1\27\1\21\1"+
+ "\22\1\23\1\uffff\1\26\2\uffff\1\36\1\37\1\32\1\33\1\35\1\41\1\uffff"+
+ "\1\40\1\uffff\1\42\31\uffff\1\12\2\uffff\1\30\1\31\2\uffff\1\7\2"+
+ "\uffff\1\13\3\uffff\1\11\4\uffff\1\10\1\25\1\6\1\uffff\1\24";
+ static final String DFA24_specialS =
+ "\1\0\27\uffff\1\1\1\2\127\uffff}>";
+ static final String[] DFA24_transitionS = {
+ "\11\35\2\34\2\35\1\34\22\35\1\34\1\35\1\31\1\4\3\35\1\30\2"+
+ "\35\1\1\1\2\1\21\1\3\1\16\1\25\1\32\11\33\1\13\1\35\1\26\1\23"+
+ "\3\35\32\27\1\14\1\35\1\15\1\35\1\27\1\35\5\27\1\12\7\27\1\24"+
+ "\1\10\2\27\1\6\1\22\1\11\1\7\5\27\1\17\1\35\1\20\1\5\uff81\35",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\43",
+ "\1\45",
+ "\1\46",
+ "\1\47",
+ "\1\50",
+ "\1\51",
+ "",
+ "",
+ "\1\55",
+ "",
+ "",
+ "",
+ "\1\62",
+ "",
+ "\1\65\5\uffff\1\64",
+ "\1\66\4\uffff\1\67",
+ "\1\71",
+ "",
+ "\0\44",
+ "\0\72",
+ "\10\74\12\uffff\1\73\25\uffff\1\73\6\uffff\1\73\2\uffff\1"+
+ "\73\25\uffff\1\73",
+ "\12\76\45\uffff\1\73",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\100\2\uffff\1\101",
+ "",
+ "\1\102",
+ "\1\103",
+ "\1\104",
+ "\1\105",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\106",
+ "",
+ "\1\107",
+ "\1\110",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\10\111\47\uffff\1\73",
+ "",
+ "\12\76\45\uffff\1\73",
+ "",
+ "\1\112",
+ "\1\113",
+ "\1\114\1\uffff\1\115",
+ "\1\116",
+ "\1\117",
+ "\1\120",
+ "\1\121",
+ "\1\122",
+ "\1\123",
+ "\10\111\47\uffff\1\73",
+ "\1\124",
+ "\1\125",
+ "\1\126",
+ "\1\127",
+ "\1\130",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\1\132",
+ "\1\133",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\1\136",
+ "\1\137",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\1\141",
+ "\1\142",
+ "",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\1\144",
+ "",
+ "",
+ "\1\145",
+ "\1\146",
+ "",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\1\150",
+ "",
+ "\1\151",
+ "\1\152",
+ "\1\153",
+ "",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ "\1\157",
+ "",
+ "",
+ "",
+ "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44",
+ ""
+ };
+
+ static final short[] DFA24_eot = DFA.unpackEncodedString(DFA24_eotS);
+ static final short[] DFA24_eof = DFA.unpackEncodedString(DFA24_eofS);
+ static final char[] DFA24_min = DFA.unpackEncodedStringToUnsignedChars(DFA24_minS);
+ static final char[] DFA24_max = DFA.unpackEncodedStringToUnsignedChars(DFA24_maxS);
+ static final short[] DFA24_accept = DFA.unpackEncodedString(DFA24_acceptS);
+ static final short[] DFA24_special = DFA.unpackEncodedString(DFA24_specialS);
+ static final short[][] DFA24_transition;
+
+ static {
+ int numStates = DFA24_transitionS.length;
+ DFA24_transition = new short[numStates][];
+ for (int i=0; i<numStates; i++) {
+ DFA24_transition[i] = DFA.unpackEncodedString(DFA24_transitionS[i]);
+ }
+ }
+
+ class DFA24 extends DFA {
+
+ public DFA24(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 24;
+ this.eot = DFA24_eot;
+ this.eof = DFA24_eof;
+ this.min = DFA24_min;
+ this.max = DFA24_max;
+ this.accept = DFA24_accept;
+ this.special = DFA24_special;
+ this.transition = DFA24_transition;
+ }
+ public String getDescription() {
+ return "1:1: Tokens : ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER );";
+ }
+ public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
+ IntStream input = _input;
+ int _s = s;
+ switch ( s ) {
+ case 0 :
+ int LA24_0 = input.LA(1);
+
+ s = -1;
+ if ( (LA24_0=='*') ) {s = 1;}
+
+ else if ( (LA24_0=='+') ) {s = 2;}
+
+ else if ( (LA24_0=='-') ) {s = 3;}
+
+ else if ( (LA24_0=='#') ) {s = 4;}
+
+ else if ( (LA24_0=='~') ) {s = 5;}
+
+ else if ( (LA24_0=='r') ) {s = 6;}
+
+ else if ( (LA24_0=='u') ) {s = 7;}
+
+ else if ( (LA24_0=='o') ) {s = 8;}
+
+ else if ( (LA24_0=='t') ) {s = 9;}
+
+ else if ( (LA24_0=='f') ) {s = 10;}
+
+ else if ( (LA24_0==':') ) {s = 11;}
+
+ else if ( (LA24_0=='[') ) {s = 12;}
+
+ else if ( (LA24_0==']') ) {s = 13;}
+
+ else if ( (LA24_0=='.') ) {s = 14;}
+
+ else if ( (LA24_0=='{') ) {s = 15;}
+
+ else if ( (LA24_0=='}') ) {s = 16;}
+
+ else if ( (LA24_0==',') ) {s = 17;}
+
+ else if ( (LA24_0=='s') ) {s = 18;}
+
+ else if ( (LA24_0=='=') ) {s = 19;}
+
+ else if ( (LA24_0=='n') ) {s = 20;}
+
+ else if ( (LA24_0=='/') ) {s = 21;}
+
+ else if ( (LA24_0=='<') ) {s = 22;}
+
+ else if ( ((LA24_0>='A' && LA24_0<='Z')||LA24_0=='_'||(LA24_0>='a' && LA24_0<='e')||(LA24_0>='g' && LA24_0<='m')||(LA24_0>='p' && LA24_0<='q')||(LA24_0>='v' && LA24_0<='z')) ) {s = 23;}
+
+ else if ( (LA24_0=='\'') ) {s = 24;}
+
+ else if ( (LA24_0=='\"') ) {s = 25;}
+
+ else if ( (LA24_0=='0') ) {s = 26;}
+
+ else if ( ((LA24_0>='1' && LA24_0<='9')) ) {s = 27;}
+
+ else if ( ((LA24_0>='\t' && LA24_0<='\n')||LA24_0=='\r'||LA24_0==' ') ) {s = 28;}
+
+ else if ( ((LA24_0>='\u0000' && LA24_0<='\b')||(LA24_0>='\u000B' && LA24_0<='\f')||(LA24_0>='\u000E' && LA24_0<='\u001F')||LA24_0=='!'||(LA24_0>='$' && LA24_0<='&')||(LA24_0>='(' && LA24_0<=')')||LA24_0==';'||(LA24_0>='>' && LA24_0<='@')||LA24_0=='\\'||LA24_0=='^'||LA24_0=='`'||LA24_0=='|'||(LA24_0>='\u007F' && LA24_0<='\uFFFF')) ) {s = 29;}
+
+ if ( s>=0 ) return s;
+ break;
+ case 1 :
+ int LA24_24 = input.LA(1);
+
+ s = -1;
+ if ( ((LA24_24>='\u0000' && LA24_24<='\uFFFF')) ) {s = 36;}
+
+ else s = 29;
+
+ if ( s>=0 ) return s;
+ break;
+ case 2 :
+ int LA24_25 = input.LA(1);
+
+ s = -1;
+ if ( ((LA24_25>='\u0000' && LA24_25<='\uFFFF')) ) {s = 58;}
+
+ else s = 29;
+
+ if ( s>=0 ) return s;
+ break;
+ }
+ NoViableAltException nvae =
+ new NoViableAltException(getDescription(), 24, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+
+
} \ No newline at end of file
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlPropertyParser.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlPropertyParser.java
index ca20a425a50..759e022fc10 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlPropertyParser.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlPropertyParser.java
@@ -1,7756 +1,8035 @@
-package org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal;
-
-import org.eclipse.xtext.*;
-import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser;
-import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess;
-
-import org.antlr.runtime.*;
-
-@SuppressWarnings("all")
-public class InternalUmlPropertyParser extends AbstractInternalContentAssistParser {
- public static final String[] tokenNames = new String[] {
- "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_INT", "RULE_ID", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_INTEGER_VALUE", "RULE_WS", "RULE_ANY_OTHER", "'*'", "'+'", "'-'", "'#'", "'~'", "'readOnly'", "'union'", "'ordered'",
- "'unique'", "'true'", "'false'", "':'", "'::'", "'['", "']'", "'..'", "'{'", "'}'", "','", "'redefines'", "'subsets'", "'='", "'.'", "'null'", "'none'", "'/'", "'<Undefined>'"
- };
- public static final int RULE_ID = 5;
- public static final int T__29 = 29;
- public static final int T__28 = 28;
- public static final int T__27 = 27;
- public static final int T__26 = 26;
- public static final int T__25 = 25;
- public static final int T__24 = 24;
- public static final int T__23 = 23;
- public static final int T__22 = 22;
- public static final int RULE_ANY_OTHER = 11;
- public static final int T__21 = 21;
- public static final int T__20 = 20;
- public static final int RULE_INTEGER_VALUE = 9;
- public static final int RULE_SL_COMMENT = 8;
- public static final int EOF = -1;
- public static final int RULE_ML_COMMENT = 7;
- public static final int T__30 = 30;
- public static final int T__19 = 19;
- public static final int T__31 = 31;
- public static final int RULE_STRING = 6;
- public static final int T__32 = 32;
- public static final int T__33 = 33;
- public static final int T__16 = 16;
- public static final int T__34 = 34;
- public static final int T__15 = 15;
- public static final int T__35 = 35;
- public static final int T__18 = 18;
- public static final int T__36 = 36;
- public static final int T__17 = 17;
- public static final int T__37 = 37;
- public static final int T__12 = 12;
- public static final int T__38 = 38;
- public static final int T__14 = 14;
- public static final int T__13 = 13;
- public static final int RULE_INT = 4;
- public static final int RULE_WS = 10;
-
- // delegates
- // delegators
-
-
- public InternalUmlPropertyParser(TokenStream input) {
- this(input, new RecognizerSharedState());
- }
-
- public InternalUmlPropertyParser(TokenStream input, RecognizerSharedState state) {
- super(input, state);
-
- }
-
-
- @Override
- public String[] getTokenNames() {
- return InternalUmlPropertyParser.tokenNames;
- }
-
- @Override
- public String getGrammarFileName() {
- return "../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g";
- }
-
-
-
- private UmlPropertyGrammarAccess grammarAccess;
-
- public void setGrammarAccess(UmlPropertyGrammarAccess grammarAccess) {
- this.grammarAccess = grammarAccess;
- }
-
- @Override
- protected Grammar getGrammar() {
- return grammarAccess.getGrammar();
- }
-
- @Override
- protected String getValueForTokenName(String tokenName) {
- return tokenName;
- }
-
-
-
-
- // $ANTLR start "entryRulePropertyRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:60:1: entryRulePropertyRule : rulePropertyRule EOF ;
- public final void entryRulePropertyRule() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:61:1: ( rulePropertyRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:62:1: rulePropertyRule EOF
- {
- before(grammarAccess.getPropertyRuleRule());
- pushFollow(FOLLOW_rulePropertyRule_in_entryRulePropertyRule61);
- rulePropertyRule();
-
- state._fsp--;
-
- after(grammarAccess.getPropertyRuleRule());
- match(input, EOF, FOLLOW_EOF_in_entryRulePropertyRule68);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRulePropertyRule"
-
-
- // $ANTLR start "rulePropertyRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:69:1: rulePropertyRule : ( ( rule__PropertyRule__Group__0 ) ) ;
- public final void rulePropertyRule() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:73:2: ( ( ( rule__PropertyRule__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:74:1: ( ( rule__PropertyRule__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:74:1: ( ( rule__PropertyRule__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:75:1: ( rule__PropertyRule__Group__0 )
- {
- before(grammarAccess.getPropertyRuleAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:76:1: ( rule__PropertyRule__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:76:2: rule__PropertyRule__Group__0
- {
- pushFollow(FOLLOW_rule__PropertyRule__Group__0_in_rulePropertyRule94);
- rule__PropertyRule__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getPropertyRuleAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rulePropertyRule"
-
-
- // $ANTLR start "entryRuleVisibilityRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:88:1: entryRuleVisibilityRule : ruleVisibilityRule EOF ;
- public final void entryRuleVisibilityRule() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:89:1: ( ruleVisibilityRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:90:1: ruleVisibilityRule EOF
- {
- before(grammarAccess.getVisibilityRuleRule());
- pushFollow(FOLLOW_ruleVisibilityRule_in_entryRuleVisibilityRule121);
- ruleVisibilityRule();
-
- state._fsp--;
-
- after(grammarAccess.getVisibilityRuleRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleVisibilityRule128);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleVisibilityRule"
-
-
- // $ANTLR start "ruleVisibilityRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:97:1: ruleVisibilityRule : ( ( rule__VisibilityRule__VisibilityAssignment ) ) ;
- public final void ruleVisibilityRule() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:101:2: ( ( ( rule__VisibilityRule__VisibilityAssignment ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:102:1: ( ( rule__VisibilityRule__VisibilityAssignment ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:102:1: ( ( rule__VisibilityRule__VisibilityAssignment ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:103:1: ( rule__VisibilityRule__VisibilityAssignment )
- {
- before(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:104:1: ( rule__VisibilityRule__VisibilityAssignment )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:104:2: rule__VisibilityRule__VisibilityAssignment
- {
- pushFollow(FOLLOW_rule__VisibilityRule__VisibilityAssignment_in_ruleVisibilityRule154);
- rule__VisibilityRule__VisibilityAssignment();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleVisibilityRule"
-
-
- // $ANTLR start "entryRuleTypeRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:116:1: entryRuleTypeRule : ruleTypeRule EOF ;
- public final void entryRuleTypeRule() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:117:1: ( ruleTypeRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:118:1: ruleTypeRule EOF
- {
- before(grammarAccess.getTypeRuleRule());
- pushFollow(FOLLOW_ruleTypeRule_in_entryRuleTypeRule181);
- ruleTypeRule();
-
- state._fsp--;
-
- after(grammarAccess.getTypeRuleRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleTypeRule188);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleTypeRule"
-
-
- // $ANTLR start "ruleTypeRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:125:1: ruleTypeRule : ( ( rule__TypeRule__Group__0 ) ) ;
- public final void ruleTypeRule() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:129:2: ( ( ( rule__TypeRule__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:130:1: ( ( rule__TypeRule__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:130:1: ( ( rule__TypeRule__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:131:1: ( rule__TypeRule__Group__0 )
- {
- before(grammarAccess.getTypeRuleAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:132:1: ( rule__TypeRule__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:132:2: rule__TypeRule__Group__0
- {
- pushFollow(FOLLOW_rule__TypeRule__Group__0_in_ruleTypeRule214);
- rule__TypeRule__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getTypeRuleAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleTypeRule"
-
-
- // $ANTLR start "entryRuleQualifiedName"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:144:1: entryRuleQualifiedName : ruleQualifiedName EOF ;
- public final void entryRuleQualifiedName() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:145:1: ( ruleQualifiedName EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:146:1: ruleQualifiedName EOF
- {
- before(grammarAccess.getQualifiedNameRule());
- pushFollow(FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName241);
- ruleQualifiedName();
-
- state._fsp--;
-
- after(grammarAccess.getQualifiedNameRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleQualifiedName248);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleQualifiedName"
-
-
- // $ANTLR start "ruleQualifiedName"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:153:1: ruleQualifiedName : ( ( rule__QualifiedName__Group__0 ) ) ;
- public final void ruleQualifiedName() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:157:2: ( ( ( rule__QualifiedName__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:158:1: ( ( rule__QualifiedName__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:158:1: ( ( rule__QualifiedName__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:159:1: ( rule__QualifiedName__Group__0 )
- {
- before(grammarAccess.getQualifiedNameAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:160:1: ( rule__QualifiedName__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:160:2: rule__QualifiedName__Group__0
- {
- pushFollow(FOLLOW_rule__QualifiedName__Group__0_in_ruleQualifiedName274);
- rule__QualifiedName__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getQualifiedNameAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleQualifiedName"
-
-
- // $ANTLR start "entryRuleMultiplicityRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:172:1: entryRuleMultiplicityRule : ruleMultiplicityRule EOF ;
- public final void entryRuleMultiplicityRule() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:173:1: ( ruleMultiplicityRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:174:1: ruleMultiplicityRule EOF
- {
- before(grammarAccess.getMultiplicityRuleRule());
- pushFollow(FOLLOW_ruleMultiplicityRule_in_entryRuleMultiplicityRule301);
- ruleMultiplicityRule();
-
- state._fsp--;
-
- after(grammarAccess.getMultiplicityRuleRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleMultiplicityRule308);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleMultiplicityRule"
-
-
- // $ANTLR start "ruleMultiplicityRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:181:1: ruleMultiplicityRule : ( ( rule__MultiplicityRule__Group__0 ) ) ;
- public final void ruleMultiplicityRule() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:185:2: ( ( ( rule__MultiplicityRule__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:186:1: ( ( rule__MultiplicityRule__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:186:1: ( ( rule__MultiplicityRule__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:187:1: ( rule__MultiplicityRule__Group__0 )
- {
- before(grammarAccess.getMultiplicityRuleAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:188:1: ( rule__MultiplicityRule__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:188:2: rule__MultiplicityRule__Group__0
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__Group__0_in_ruleMultiplicityRule334);
- rule__MultiplicityRule__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getMultiplicityRuleAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleMultiplicityRule"
-
-
- // $ANTLR start "entryRuleBoundSpecification"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:200:1: entryRuleBoundSpecification : ruleBoundSpecification EOF ;
- public final void entryRuleBoundSpecification() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:201:1: ( ruleBoundSpecification EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:202:1: ruleBoundSpecification EOF
- {
- before(grammarAccess.getBoundSpecificationRule());
- pushFollow(FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification361);
- ruleBoundSpecification();
-
- state._fsp--;
-
- after(grammarAccess.getBoundSpecificationRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleBoundSpecification368);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleBoundSpecification"
-
-
- // $ANTLR start "ruleBoundSpecification"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:209:1: ruleBoundSpecification : ( ( rule__BoundSpecification__ValueAssignment ) ) ;
- public final void ruleBoundSpecification() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:213:2: ( ( ( rule__BoundSpecification__ValueAssignment ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:214:1: ( ( rule__BoundSpecification__ValueAssignment ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:214:1: ( ( rule__BoundSpecification__ValueAssignment ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:215:1: ( rule__BoundSpecification__ValueAssignment )
- {
- before(grammarAccess.getBoundSpecificationAccess().getValueAssignment());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:216:1: ( rule__BoundSpecification__ValueAssignment )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:216:2: rule__BoundSpecification__ValueAssignment
- {
- pushFollow(FOLLOW_rule__BoundSpecification__ValueAssignment_in_ruleBoundSpecification394);
- rule__BoundSpecification__ValueAssignment();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getBoundSpecificationAccess().getValueAssignment());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleBoundSpecification"
-
-
- // $ANTLR start "entryRuleUnlimitedLiteral"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:228:1: entryRuleUnlimitedLiteral : ruleUnlimitedLiteral EOF ;
- public final void entryRuleUnlimitedLiteral() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:229:1: ( ruleUnlimitedLiteral EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:230:1: ruleUnlimitedLiteral EOF
- {
- before(grammarAccess.getUnlimitedLiteralRule());
- pushFollow(FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral421);
- ruleUnlimitedLiteral();
-
- state._fsp--;
-
- after(grammarAccess.getUnlimitedLiteralRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleUnlimitedLiteral428);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleUnlimitedLiteral"
-
-
- // $ANTLR start "ruleUnlimitedLiteral"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:237:1: ruleUnlimitedLiteral : ( ( rule__UnlimitedLiteral__Alternatives ) ) ;
- public final void ruleUnlimitedLiteral() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:241:2: ( ( ( rule__UnlimitedLiteral__Alternatives ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:242:1: ( ( rule__UnlimitedLiteral__Alternatives ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:242:1: ( ( rule__UnlimitedLiteral__Alternatives ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:243:1: ( rule__UnlimitedLiteral__Alternatives )
- {
- before(grammarAccess.getUnlimitedLiteralAccess().getAlternatives());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:244:1: ( rule__UnlimitedLiteral__Alternatives )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:244:2: rule__UnlimitedLiteral__Alternatives
- {
- pushFollow(FOLLOW_rule__UnlimitedLiteral__Alternatives_in_ruleUnlimitedLiteral454);
- rule__UnlimitedLiteral__Alternatives();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getUnlimitedLiteralAccess().getAlternatives());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleUnlimitedLiteral"
-
-
- // $ANTLR start "entryRuleModifiersRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:256:1: entryRuleModifiersRule : ruleModifiersRule EOF ;
- public final void entryRuleModifiersRule() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:257:1: ( ruleModifiersRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:258:1: ruleModifiersRule EOF
- {
- before(grammarAccess.getModifiersRuleRule());
- pushFollow(FOLLOW_ruleModifiersRule_in_entryRuleModifiersRule481);
- ruleModifiersRule();
-
- state._fsp--;
-
- after(grammarAccess.getModifiersRuleRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleModifiersRule488);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleModifiersRule"
-
-
- // $ANTLR start "ruleModifiersRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:265:1: ruleModifiersRule : ( ( rule__ModifiersRule__Group__0 ) ) ;
- public final void ruleModifiersRule() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:269:2: ( ( ( rule__ModifiersRule__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:270:1: ( ( rule__ModifiersRule__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:270:1: ( ( rule__ModifiersRule__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:271:1: ( rule__ModifiersRule__Group__0 )
- {
- before(grammarAccess.getModifiersRuleAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:272:1: ( rule__ModifiersRule__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:272:2: rule__ModifiersRule__Group__0
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group__0_in_ruleModifiersRule514);
- rule__ModifiersRule__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getModifiersRuleAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleModifiersRule"
-
-
- // $ANTLR start "entryRuleModifierSpecification"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:284:1: entryRuleModifierSpecification : ruleModifierSpecification EOF ;
- public final void entryRuleModifierSpecification() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:285:1: ( ruleModifierSpecification EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:286:1: ruleModifierSpecification EOF
- {
- before(grammarAccess.getModifierSpecificationRule());
- pushFollow(FOLLOW_ruleModifierSpecification_in_entryRuleModifierSpecification541);
- ruleModifierSpecification();
-
- state._fsp--;
-
- after(grammarAccess.getModifierSpecificationRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleModifierSpecification548);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleModifierSpecification"
-
-
- // $ANTLR start "ruleModifierSpecification"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:293:1: ruleModifierSpecification : ( ( rule__ModifierSpecification__Alternatives ) ) ;
- public final void ruleModifierSpecification() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:297:2: ( ( ( rule__ModifierSpecification__Alternatives ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:298:1: ( ( rule__ModifierSpecification__Alternatives ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:298:1: ( ( rule__ModifierSpecification__Alternatives ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:299:1: ( rule__ModifierSpecification__Alternatives )
- {
- before(grammarAccess.getModifierSpecificationAccess().getAlternatives());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:300:1: ( rule__ModifierSpecification__Alternatives )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:300:2: rule__ModifierSpecification__Alternatives
- {
- pushFollow(FOLLOW_rule__ModifierSpecification__Alternatives_in_ruleModifierSpecification574);
- rule__ModifierSpecification__Alternatives();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getModifierSpecificationAccess().getAlternatives());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleModifierSpecification"
-
-
- // $ANTLR start "entryRuleRedefinesRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:312:1: entryRuleRedefinesRule : ruleRedefinesRule EOF ;
- public final void entryRuleRedefinesRule() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:313:1: ( ruleRedefinesRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:314:1: ruleRedefinesRule EOF
- {
- before(grammarAccess.getRedefinesRuleRule());
- pushFollow(FOLLOW_ruleRedefinesRule_in_entryRuleRedefinesRule601);
- ruleRedefinesRule();
-
- state._fsp--;
-
- after(grammarAccess.getRedefinesRuleRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleRedefinesRule608);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleRedefinesRule"
-
-
- // $ANTLR start "ruleRedefinesRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:321:1: ruleRedefinesRule : ( ( rule__RedefinesRule__Group__0 ) ) ;
- public final void ruleRedefinesRule() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:325:2: ( ( ( rule__RedefinesRule__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:326:1: ( ( rule__RedefinesRule__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:326:1: ( ( rule__RedefinesRule__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:327:1: ( rule__RedefinesRule__Group__0 )
- {
- before(grammarAccess.getRedefinesRuleAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:328:1: ( rule__RedefinesRule__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:328:2: rule__RedefinesRule__Group__0
- {
- pushFollow(FOLLOW_rule__RedefinesRule__Group__0_in_ruleRedefinesRule634);
- rule__RedefinesRule__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRedefinesRuleAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleRedefinesRule"
-
-
- // $ANTLR start "entryRuleSubsetsRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:340:1: entryRuleSubsetsRule : ruleSubsetsRule EOF ;
- public final void entryRuleSubsetsRule() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:341:1: ( ruleSubsetsRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:342:1: ruleSubsetsRule EOF
- {
- before(grammarAccess.getSubsetsRuleRule());
- pushFollow(FOLLOW_ruleSubsetsRule_in_entryRuleSubsetsRule661);
- ruleSubsetsRule();
-
- state._fsp--;
-
- after(grammarAccess.getSubsetsRuleRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleSubsetsRule668);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleSubsetsRule"
-
-
- // $ANTLR start "ruleSubsetsRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:349:1: ruleSubsetsRule : ( ( rule__SubsetsRule__Group__0 ) ) ;
- public final void ruleSubsetsRule() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:353:2: ( ( ( rule__SubsetsRule__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:354:1: ( ( rule__SubsetsRule__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:354:1: ( ( rule__SubsetsRule__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:355:1: ( rule__SubsetsRule__Group__0 )
- {
- before(grammarAccess.getSubsetsRuleAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:356:1: ( rule__SubsetsRule__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:356:2: rule__SubsetsRule__Group__0
- {
- pushFollow(FOLLOW_rule__SubsetsRule__Group__0_in_ruleSubsetsRule694);
- rule__SubsetsRule__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getSubsetsRuleAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleSubsetsRule"
-
-
- // $ANTLR start "entryRuleDefaultValueRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:368:1: entryRuleDefaultValueRule : ruleDefaultValueRule EOF ;
- public final void entryRuleDefaultValueRule() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:369:1: ( ruleDefaultValueRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:370:1: ruleDefaultValueRule EOF
- {
- before(grammarAccess.getDefaultValueRuleRule());
- pushFollow(FOLLOW_ruleDefaultValueRule_in_entryRuleDefaultValueRule721);
- ruleDefaultValueRule();
-
- state._fsp--;
-
- after(grammarAccess.getDefaultValueRuleRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleDefaultValueRule728);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleDefaultValueRule"
-
-
- // $ANTLR start "ruleDefaultValueRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:377:1: ruleDefaultValueRule : ( ( rule__DefaultValueRule__Group__0 ) ) ;
- public final void ruleDefaultValueRule() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:381:2: ( ( ( rule__DefaultValueRule__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:382:1: ( ( rule__DefaultValueRule__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:382:1: ( ( rule__DefaultValueRule__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:383:1: ( rule__DefaultValueRule__Group__0 )
- {
- before(grammarAccess.getDefaultValueRuleAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:384:1: ( rule__DefaultValueRule__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:384:2: rule__DefaultValueRule__Group__0
- {
- pushFollow(FOLLOW_rule__DefaultValueRule__Group__0_in_ruleDefaultValueRule754);
- rule__DefaultValueRule__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getDefaultValueRuleAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleDefaultValueRule"
-
-
- // $ANTLR start "entryRuleValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:396:1: entryRuleValue : ruleValue EOF ;
- public final void entryRuleValue() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:397:1: ( ruleValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:398:1: ruleValue EOF
- {
- before(grammarAccess.getValueRule());
- pushFollow(FOLLOW_ruleValue_in_entryRuleValue781);
- ruleValue();
-
- state._fsp--;
-
- after(grammarAccess.getValueRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleValue788);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleValue"
-
-
- // $ANTLR start "ruleValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:405:1: ruleValue : ( ( rule__Value__Alternatives ) ) ;
- public final void ruleValue() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:409:2: ( ( ( rule__Value__Alternatives ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:410:1: ( ( rule__Value__Alternatives ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:410:1: ( ( rule__Value__Alternatives ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:411:1: ( rule__Value__Alternatives )
- {
- before(grammarAccess.getValueAccess().getAlternatives());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:412:1: ( rule__Value__Alternatives )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:412:2: rule__Value__Alternatives
- {
- pushFollow(FOLLOW_rule__Value__Alternatives_in_ruleValue814);
- rule__Value__Alternatives();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getValueAccess().getAlternatives());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleValue"
-
-
- // $ANTLR start "entryRuleIntValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:424:1: entryRuleIntValue : ruleIntValue EOF ;
- public final void entryRuleIntValue() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:425:1: ( ruleIntValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:426:1: ruleIntValue EOF
- {
- before(grammarAccess.getIntValueRule());
- pushFollow(FOLLOW_ruleIntValue_in_entryRuleIntValue841);
- ruleIntValue();
-
- state._fsp--;
-
- after(grammarAccess.getIntValueRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleIntValue848);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleIntValue"
-
-
- // $ANTLR start "ruleIntValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:433:1: ruleIntValue : ( ( rule__IntValue__LiteralIntegerAssignment ) ) ;
- public final void ruleIntValue() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:437:2: ( ( ( rule__IntValue__LiteralIntegerAssignment ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:438:1: ( ( rule__IntValue__LiteralIntegerAssignment ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:438:1: ( ( rule__IntValue__LiteralIntegerAssignment ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:439:1: ( rule__IntValue__LiteralIntegerAssignment )
- {
- before(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:440:1: ( rule__IntValue__LiteralIntegerAssignment )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:440:2: rule__IntValue__LiteralIntegerAssignment
- {
- pushFollow(FOLLOW_rule__IntValue__LiteralIntegerAssignment_in_ruleIntValue874);
- rule__IntValue__LiteralIntegerAssignment();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleIntValue"
-
-
- // $ANTLR start "entryRuleStringValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:452:1: entryRuleStringValue : ruleStringValue EOF ;
- public final void entryRuleStringValue() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:453:1: ( ruleStringValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:454:1: ruleStringValue EOF
- {
- before(grammarAccess.getStringValueRule());
- pushFollow(FOLLOW_ruleStringValue_in_entryRuleStringValue901);
- ruleStringValue();
-
- state._fsp--;
-
- after(grammarAccess.getStringValueRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleStringValue908);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleStringValue"
-
-
- // $ANTLR start "ruleStringValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:461:1: ruleStringValue : ( ( rule__StringValue__LiteralStringAssignment ) ) ;
- public final void ruleStringValue() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:465:2: ( ( ( rule__StringValue__LiteralStringAssignment ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:466:1: ( ( rule__StringValue__LiteralStringAssignment ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:466:1: ( ( rule__StringValue__LiteralStringAssignment ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:467:1: ( rule__StringValue__LiteralStringAssignment )
- {
- before(grammarAccess.getStringValueAccess().getLiteralStringAssignment());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:468:1: ( rule__StringValue__LiteralStringAssignment )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:468:2: rule__StringValue__LiteralStringAssignment
- {
- pushFollow(FOLLOW_rule__StringValue__LiteralStringAssignment_in_ruleStringValue934);
- rule__StringValue__LiteralStringAssignment();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getStringValueAccess().getLiteralStringAssignment());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleStringValue"
-
-
- // $ANTLR start "entryRuleBooleanValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:480:1: entryRuleBooleanValue : ruleBooleanValue EOF ;
- public final void entryRuleBooleanValue() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:481:1: ( ruleBooleanValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:482:1: ruleBooleanValue EOF
- {
- before(grammarAccess.getBooleanValueRule());
- pushFollow(FOLLOW_ruleBooleanValue_in_entryRuleBooleanValue961);
- ruleBooleanValue();
-
- state._fsp--;
-
- after(grammarAccess.getBooleanValueRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleBooleanValue968);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleBooleanValue"
-
-
- // $ANTLR start "ruleBooleanValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:489:1: ruleBooleanValue : ( ( rule__BooleanValue__LiteralBooleanAssignment ) ) ;
- public final void ruleBooleanValue() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:493:2: ( ( ( rule__BooleanValue__LiteralBooleanAssignment ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:494:1: ( ( rule__BooleanValue__LiteralBooleanAssignment ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:494:1: ( ( rule__BooleanValue__LiteralBooleanAssignment ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:495:1: ( rule__BooleanValue__LiteralBooleanAssignment )
- {
- before(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:496:1: ( rule__BooleanValue__LiteralBooleanAssignment )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:496:2: rule__BooleanValue__LiteralBooleanAssignment
- {
- pushFollow(FOLLOW_rule__BooleanValue__LiteralBooleanAssignment_in_ruleBooleanValue994);
- rule__BooleanValue__LiteralBooleanAssignment();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleBooleanValue"
-
-
- // $ANTLR start "entryRuleRealValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:508:1: entryRuleRealValue : ruleRealValue EOF ;
- public final void entryRuleRealValue() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:509:1: ( ruleRealValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:510:1: ruleRealValue EOF
- {
- before(grammarAccess.getRealValueRule());
- pushFollow(FOLLOW_ruleRealValue_in_entryRuleRealValue1021);
- ruleRealValue();
-
- state._fsp--;
-
- after(grammarAccess.getRealValueRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleRealValue1028);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleRealValue"
-
-
- // $ANTLR start "ruleRealValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:517:1: ruleRealValue : ( ( rule__RealValue__Alternatives ) ) ;
- public final void ruleRealValue() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:521:2: ( ( ( rule__RealValue__Alternatives ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:522:1: ( ( rule__RealValue__Alternatives ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:522:1: ( ( rule__RealValue__Alternatives ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:523:1: ( rule__RealValue__Alternatives )
- {
- before(grammarAccess.getRealValueAccess().getAlternatives());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:524:1: ( rule__RealValue__Alternatives )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:524:2: rule__RealValue__Alternatives
- {
- pushFollow(FOLLOW_rule__RealValue__Alternatives_in_ruleRealValue1054);
- rule__RealValue__Alternatives();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRealValueAccess().getAlternatives());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleRealValue"
-
-
- // $ANTLR start "entryRuleNullValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:536:1: entryRuleNullValue : ruleNullValue EOF ;
- public final void entryRuleNullValue() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:537:1: ( ruleNullValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:538:1: ruleNullValue EOF
- {
- before(grammarAccess.getNullValueRule());
- pushFollow(FOLLOW_ruleNullValue_in_entryRuleNullValue1081);
- ruleNullValue();
-
- state._fsp--;
-
- after(grammarAccess.getNullValueRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleNullValue1088);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleNullValue"
-
-
- // $ANTLR start "ruleNullValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:545:1: ruleNullValue : ( ( rule__NullValue__Group__0 ) ) ;
- public final void ruleNullValue() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:549:2: ( ( ( rule__NullValue__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:550:1: ( ( rule__NullValue__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:550:1: ( ( rule__NullValue__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:551:1: ( rule__NullValue__Group__0 )
- {
- before(grammarAccess.getNullValueAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:552:1: ( rule__NullValue__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:552:2: rule__NullValue__Group__0
- {
- pushFollow(FOLLOW_rule__NullValue__Group__0_in_ruleNullValue1114);
- rule__NullValue__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getNullValueAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleNullValue"
-
-
- // $ANTLR start "entryRuleNoValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:564:1: entryRuleNoValue : ruleNoValue EOF ;
- public final void entryRuleNoValue() throws RecognitionException {
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:565:1: ( ruleNoValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:566:1: ruleNoValue EOF
- {
- before(grammarAccess.getNoValueRule());
- pushFollow(FOLLOW_ruleNoValue_in_entryRuleNoValue1141);
- ruleNoValue();
-
- state._fsp--;
-
- after(grammarAccess.getNoValueRule());
- match(input, EOF, FOLLOW_EOF_in_entryRuleNoValue1148);
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
- }
- return;
- }
-
- // $ANTLR end "entryRuleNoValue"
-
-
- // $ANTLR start "ruleNoValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:573:1: ruleNoValue : ( ( rule__NoValue__Group__0 ) ) ;
- public final void ruleNoValue() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:577:2: ( ( ( rule__NoValue__Group__0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:578:1: ( ( rule__NoValue__Group__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:578:1: ( ( rule__NoValue__Group__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:579:1: ( rule__NoValue__Group__0 )
- {
- before(grammarAccess.getNoValueAccess().getGroup());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:580:1: ( rule__NoValue__Group__0 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:580:2: rule__NoValue__Group__0
- {
- pushFollow(FOLLOW_rule__NoValue__Group__0_in_ruleNoValue1174);
- rule__NoValue__Group__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getNoValueAccess().getGroup());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleNoValue"
-
-
- // $ANTLR start "ruleVisibilityKind"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:593:1: ruleVisibilityKind : ( ( rule__VisibilityKind__Alternatives ) ) ;
- public final void ruleVisibilityKind() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:597:1: ( ( ( rule__VisibilityKind__Alternatives ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:598:1: ( ( rule__VisibilityKind__Alternatives ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:598:1: ( ( rule__VisibilityKind__Alternatives ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:599:1: ( rule__VisibilityKind__Alternatives )
- {
- before(grammarAccess.getVisibilityKindAccess().getAlternatives());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:600:1: ( rule__VisibilityKind__Alternatives )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:600:2: rule__VisibilityKind__Alternatives
- {
- pushFollow(FOLLOW_rule__VisibilityKind__Alternatives_in_ruleVisibilityKind1211);
- rule__VisibilityKind__Alternatives();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getVisibilityKindAccess().getAlternatives());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleVisibilityKind"
-
-
- // $ANTLR start "ruleModifierKind"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:612:1: ruleModifierKind : ( ( rule__ModifierKind__Alternatives ) ) ;
- public final void ruleModifierKind() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:616:1: ( ( ( rule__ModifierKind__Alternatives ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:617:1: ( ( rule__ModifierKind__Alternatives ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:617:1: ( ( rule__ModifierKind__Alternatives ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:618:1: ( rule__ModifierKind__Alternatives )
- {
- before(grammarAccess.getModifierKindAccess().getAlternatives());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:619:1: ( rule__ModifierKind__Alternatives )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:619:2: rule__ModifierKind__Alternatives
- {
- pushFollow(FOLLOW_rule__ModifierKind__Alternatives_in_ruleModifierKind1247);
- rule__ModifierKind__Alternatives();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getModifierKindAccess().getAlternatives());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleModifierKind"
-
-
- // $ANTLR start "ruleBooleanLiterals"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:631:1: ruleBooleanLiterals : ( ( rule__BooleanLiterals__Alternatives ) ) ;
- public final void ruleBooleanLiterals() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:635:1: ( ( ( rule__BooleanLiterals__Alternatives ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:636:1: ( ( rule__BooleanLiterals__Alternatives ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:636:1: ( ( rule__BooleanLiterals__Alternatives ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:637:1: ( rule__BooleanLiterals__Alternatives )
- {
- before(grammarAccess.getBooleanLiteralsAccess().getAlternatives());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:638:1: ( rule__BooleanLiterals__Alternatives )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:638:2: rule__BooleanLiterals__Alternatives
- {
- pushFollow(FOLLOW_rule__BooleanLiterals__Alternatives_in_ruleBooleanLiterals1283);
- rule__BooleanLiterals__Alternatives();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getBooleanLiteralsAccess().getAlternatives());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "ruleBooleanLiterals"
-
-
- // $ANTLR start "rule__PropertyRule__Alternatives_3_1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:649:1: rule__PropertyRule__Alternatives_3_1 : ( ( (
- // rule__PropertyRule__TypeAssignment_3_1_0 ) ) | ( ( rule__PropertyRule__TypeUndefinedAssignment_3_1_1 ) ) );
- public final void rule__PropertyRule__Alternatives_3_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:653:1: ( ( ( rule__PropertyRule__TypeAssignment_3_1_0 ) ) | ( (
- // rule__PropertyRule__TypeUndefinedAssignment_3_1_1 ) ) )
- int alt1 = 2;
- int LA1_0 = input.LA(1);
-
- if ((LA1_0 == RULE_ID)) {
- alt1 = 1;
- }
- else if ((LA1_0 == 38)) {
- alt1 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 1, 0, input);
-
- throw nvae;
- }
- switch (alt1) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:654:1: ( ( rule__PropertyRule__TypeAssignment_3_1_0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:654:1: ( ( rule__PropertyRule__TypeAssignment_3_1_0 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:655:1: ( rule__PropertyRule__TypeAssignment_3_1_0 )
- {
- before(grammarAccess.getPropertyRuleAccess().getTypeAssignment_3_1_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:656:1: ( rule__PropertyRule__TypeAssignment_3_1_0 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:656:2: rule__PropertyRule__TypeAssignment_3_1_0
- {
- pushFollow(FOLLOW_rule__PropertyRule__TypeAssignment_3_1_0_in_rule__PropertyRule__Alternatives_3_11318);
- rule__PropertyRule__TypeAssignment_3_1_0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getPropertyRuleAccess().getTypeAssignment_3_1_0());
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:660:6: ( ( rule__PropertyRule__TypeUndefinedAssignment_3_1_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:660:6: ( ( rule__PropertyRule__TypeUndefinedAssignment_3_1_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:661:1: ( rule__PropertyRule__TypeUndefinedAssignment_3_1_1 )
- {
- before(grammarAccess.getPropertyRuleAccess().getTypeUndefinedAssignment_3_1_1());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:662:1: ( rule__PropertyRule__TypeUndefinedAssignment_3_1_1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:662:2: rule__PropertyRule__TypeUndefinedAssignment_3_1_1
- {
- pushFollow(FOLLOW_rule__PropertyRule__TypeUndefinedAssignment_3_1_1_in_rule__PropertyRule__Alternatives_3_11336);
- rule__PropertyRule__TypeUndefinedAssignment_3_1_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getPropertyRuleAccess().getTypeUndefinedAssignment_3_1_1());
-
- }
-
-
- }
- break;
-
- }
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__Alternatives_3_1"
-
-
- // $ANTLR start "rule__UnlimitedLiteral__Alternatives"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:671:1: rule__UnlimitedLiteral__Alternatives : ( ( RULE_INT ) | ( '*' ) );
- public final void rule__UnlimitedLiteral__Alternatives() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:675:1: ( ( RULE_INT ) | ( '*' ) )
- int alt2 = 2;
- int LA2_0 = input.LA(1);
-
- if ((LA2_0 == RULE_INT)) {
- alt2 = 1;
- }
- else if ((LA2_0 == 12)) {
- alt2 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 2, 0, input);
-
- throw nvae;
- }
- switch (alt2) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:676:1: ( RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:676:1: ( RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:677:1: RULE_INT
- {
- before(grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0());
- match(input, RULE_INT, FOLLOW_RULE_INT_in_rule__UnlimitedLiteral__Alternatives1369);
- after(grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0());
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:682:6: ( '*' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:682:6: ( '*' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:683:1: '*'
- {
- before(grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1());
- match(input, 12, FOLLOW_12_in_rule__UnlimitedLiteral__Alternatives1387);
- after(grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1());
-
- }
-
-
- }
- break;
-
- }
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__UnlimitedLiteral__Alternatives"
-
-
- // $ANTLR start "rule__ModifierSpecification__Alternatives"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:695:1: rule__ModifierSpecification__Alternatives : ( ( (
- // rule__ModifierSpecification__ValueAssignment_0 ) ) | ( ( rule__ModifierSpecification__RedefinesAssignment_1 ) ) | ( ( rule__ModifierSpecification__SubsetsAssignment_2 ) ) );
- public final void rule__ModifierSpecification__Alternatives() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:699:1: ( ( ( rule__ModifierSpecification__ValueAssignment_0 ) ) | ( (
- // rule__ModifierSpecification__RedefinesAssignment_1 ) ) | ( ( rule__ModifierSpecification__SubsetsAssignment_2 ) ) )
- int alt3 = 3;
- switch (input.LA(1)) {
- case 17:
- case 18:
- case 19:
- case 20: {
- alt3 = 1;
- }
- break;
- case 31: {
- alt3 = 2;
- }
- break;
- case 32: {
- alt3 = 3;
- }
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 3, 0, input);
-
- throw nvae;
- }
-
- switch (alt3) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:700:1: ( ( rule__ModifierSpecification__ValueAssignment_0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:700:1: ( ( rule__ModifierSpecification__ValueAssignment_0 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:701:1: ( rule__ModifierSpecification__ValueAssignment_0 )
- {
- before(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:702:1: ( rule__ModifierSpecification__ValueAssignment_0 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:702:2: rule__ModifierSpecification__ValueAssignment_0
- {
- pushFollow(FOLLOW_rule__ModifierSpecification__ValueAssignment_0_in_rule__ModifierSpecification__Alternatives1421);
- rule__ModifierSpecification__ValueAssignment_0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0());
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:706:6: ( ( rule__ModifierSpecification__RedefinesAssignment_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:706:6: ( ( rule__ModifierSpecification__RedefinesAssignment_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:707:1: ( rule__ModifierSpecification__RedefinesAssignment_1 )
- {
- before(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:708:1: ( rule__ModifierSpecification__RedefinesAssignment_1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:708:2: rule__ModifierSpecification__RedefinesAssignment_1
- {
- pushFollow(FOLLOW_rule__ModifierSpecification__RedefinesAssignment_1_in_rule__ModifierSpecification__Alternatives1439);
- rule__ModifierSpecification__RedefinesAssignment_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1());
-
- }
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:712:6: ( ( rule__ModifierSpecification__SubsetsAssignment_2 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:712:6: ( ( rule__ModifierSpecification__SubsetsAssignment_2 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:713:1: ( rule__ModifierSpecification__SubsetsAssignment_2 )
- {
- before(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:714:1: ( rule__ModifierSpecification__SubsetsAssignment_2 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:714:2: rule__ModifierSpecification__SubsetsAssignment_2
- {
- pushFollow(FOLLOW_rule__ModifierSpecification__SubsetsAssignment_2_in_rule__ModifierSpecification__Alternatives1457);
- rule__ModifierSpecification__SubsetsAssignment_2();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2());
-
- }
-
-
- }
- break;
-
- }
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifierSpecification__Alternatives"
-
-
- // $ANTLR start "rule__Value__Alternatives"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:723:1: rule__Value__Alternatives : ( ( ruleIntValue ) | ( ruleStringValue ) | (
- // ruleBooleanValue ) | ( ruleRealValue ) | ( ruleNullValue ) | ( ruleNoValue ) );
- public final void rule__Value__Alternatives() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:727:1: ( ( ruleIntValue ) | ( ruleStringValue ) | ( ruleBooleanValue ) | (
- // ruleRealValue ) | ( ruleNullValue ) | ( ruleNoValue ) )
- int alt4 = 6;
- switch (input.LA(1)) {
- case RULE_INT: {
- int LA4_1 = input.LA(2);
-
- if ((LA4_1 == 34)) {
- alt4 = 4;
- }
- else if ((LA4_1 == EOF)) {
- alt4 = 1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 4, 1, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_STRING: {
- alt4 = 2;
- }
- break;
- case 21:
- case 22: {
- alt4 = 3;
- }
- break;
- case 34: {
- alt4 = 4;
- }
- break;
- case 35: {
- alt4 = 5;
- }
- break;
- case 36: {
- alt4 = 6;
- }
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 4, 0, input);
-
- throw nvae;
- }
-
- switch (alt4) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:728:1: ( ruleIntValue )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:728:1: ( ruleIntValue )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:729:1: ruleIntValue
- {
- before(grammarAccess.getValueAccess().getIntValueParserRuleCall_0());
- pushFollow(FOLLOW_ruleIntValue_in_rule__Value__Alternatives1490);
- ruleIntValue();
-
- state._fsp--;
-
- after(grammarAccess.getValueAccess().getIntValueParserRuleCall_0());
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:734:6: ( ruleStringValue )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:734:6: ( ruleStringValue )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:735:1: ruleStringValue
- {
- before(grammarAccess.getValueAccess().getStringValueParserRuleCall_1());
- pushFollow(FOLLOW_ruleStringValue_in_rule__Value__Alternatives1507);
- ruleStringValue();
-
- state._fsp--;
-
- after(grammarAccess.getValueAccess().getStringValueParserRuleCall_1());
-
- }
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:740:6: ( ruleBooleanValue )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:740:6: ( ruleBooleanValue )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:741:1: ruleBooleanValue
- {
- before(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2());
- pushFollow(FOLLOW_ruleBooleanValue_in_rule__Value__Alternatives1524);
- ruleBooleanValue();
-
- state._fsp--;
-
- after(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2());
-
- }
-
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:746:6: ( ruleRealValue )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:746:6: ( ruleRealValue )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:747:1: ruleRealValue
- {
- before(grammarAccess.getValueAccess().getRealValueParserRuleCall_3());
- pushFollow(FOLLOW_ruleRealValue_in_rule__Value__Alternatives1541);
- ruleRealValue();
-
- state._fsp--;
-
- after(grammarAccess.getValueAccess().getRealValueParserRuleCall_3());
-
- }
-
-
- }
- break;
- case 5:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:752:6: ( ruleNullValue )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:752:6: ( ruleNullValue )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:753:1: ruleNullValue
- {
- before(grammarAccess.getValueAccess().getNullValueParserRuleCall_4());
- pushFollow(FOLLOW_ruleNullValue_in_rule__Value__Alternatives1558);
- ruleNullValue();
-
- state._fsp--;
-
- after(grammarAccess.getValueAccess().getNullValueParserRuleCall_4());
-
- }
-
-
- }
- break;
- case 6:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:758:6: ( ruleNoValue )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:758:6: ( ruleNoValue )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:759:1: ruleNoValue
- {
- before(grammarAccess.getValueAccess().getNoValueParserRuleCall_5());
- pushFollow(FOLLOW_ruleNoValue_in_rule__Value__Alternatives1575);
- ruleNoValue();
-
- state._fsp--;
-
- after(grammarAccess.getValueAccess().getNoValueParserRuleCall_5());
-
- }
-
-
- }
- break;
-
- }
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__Value__Alternatives"
-
-
- // $ANTLR start "rule__RealValue__Alternatives"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:769:1: rule__RealValue__Alternatives : ( ( ( rule__RealValue__Group_0__0 ) ) | ( (
- // rule__RealValue__Group_1__0 ) ) | ( ( rule__RealValue__Group_2__0 ) ) );
- public final void rule__RealValue__Alternatives() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:773:1: ( ( ( rule__RealValue__Group_0__0 ) ) | ( ( rule__RealValue__Group_1__0 )
- // ) | ( ( rule__RealValue__Group_2__0 ) ) )
- int alt5 = 3;
- int LA5_0 = input.LA(1);
-
- if ((LA5_0 == RULE_INT)) {
- int LA5_1 = input.LA(2);
-
- if ((LA5_1 == 34)) {
- int LA5_3 = input.LA(3);
-
- if ((LA5_3 == EOF)) {
- alt5 = 1;
- }
- else if ((LA5_3 == RULE_INT)) {
- alt5 = 3;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 5, 3, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 5, 1, input);
-
- throw nvae;
- }
- }
- else if ((LA5_0 == 34)) {
- alt5 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 5, 0, input);
-
- throw nvae;
- }
- switch (alt5) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:774:1: ( ( rule__RealValue__Group_0__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:774:1: ( ( rule__RealValue__Group_0__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:775:1: ( rule__RealValue__Group_0__0 )
- {
- before(grammarAccess.getRealValueAccess().getGroup_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:776:1: ( rule__RealValue__Group_0__0 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:776:2: rule__RealValue__Group_0__0
- {
- pushFollow(FOLLOW_rule__RealValue__Group_0__0_in_rule__RealValue__Alternatives1607);
- rule__RealValue__Group_0__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRealValueAccess().getGroup_0());
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:780:6: ( ( rule__RealValue__Group_1__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:780:6: ( ( rule__RealValue__Group_1__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:781:1: ( rule__RealValue__Group_1__0 )
- {
- before(grammarAccess.getRealValueAccess().getGroup_1());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:782:1: ( rule__RealValue__Group_1__0 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:782:2: rule__RealValue__Group_1__0
- {
- pushFollow(FOLLOW_rule__RealValue__Group_1__0_in_rule__RealValue__Alternatives1625);
- rule__RealValue__Group_1__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRealValueAccess().getGroup_1());
-
- }
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:786:6: ( ( rule__RealValue__Group_2__0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:786:6: ( ( rule__RealValue__Group_2__0 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:787:1: ( rule__RealValue__Group_2__0 )
- {
- before(grammarAccess.getRealValueAccess().getGroup_2());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:788:1: ( rule__RealValue__Group_2__0 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:788:2: rule__RealValue__Group_2__0
- {
- pushFollow(FOLLOW_rule__RealValue__Group_2__0_in_rule__RealValue__Alternatives1643);
- rule__RealValue__Group_2__0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRealValueAccess().getGroup_2());
-
- }
-
-
- }
- break;
-
- }
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Alternatives"
-
-
- // $ANTLR start "rule__VisibilityKind__Alternatives"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:797:1: rule__VisibilityKind__Alternatives : ( ( ( '+' ) ) | ( ( '-' ) ) | ( ( '#' ) ) | (
- // ( '~' ) ) );
- public final void rule__VisibilityKind__Alternatives() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:801:1: ( ( ( '+' ) ) | ( ( '-' ) ) | ( ( '#' ) ) | ( ( '~' ) ) )
- int alt6 = 4;
- switch (input.LA(1)) {
- case 13: {
- alt6 = 1;
- }
- break;
- case 14: {
- alt6 = 2;
- }
- break;
- case 15: {
- alt6 = 3;
- }
- break;
- case 16: {
- alt6 = 4;
- }
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 6, 0, input);
-
- throw nvae;
- }
-
- switch (alt6) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:802:1: ( ( '+' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:802:1: ( ( '+' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:803:1: ( '+' )
- {
- before(grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:804:1: ( '+' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:804:3: '+'
- {
- match(input, 13, FOLLOW_13_in_rule__VisibilityKind__Alternatives1677);
-
- }
-
- after(grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0());
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:809:6: ( ( '-' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:809:6: ( ( '-' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:810:1: ( '-' )
- {
- before(grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:811:1: ( '-' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:811:3: '-'
- {
- match(input, 14, FOLLOW_14_in_rule__VisibilityKind__Alternatives1698);
-
- }
-
- after(grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1());
-
- }
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:816:6: ( ( '#' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:816:6: ( ( '#' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:817:1: ( '#' )
- {
- before(grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:818:1: ( '#' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:818:3: '#'
- {
- match(input, 15, FOLLOW_15_in_rule__VisibilityKind__Alternatives1719);
-
- }
-
- after(grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2());
-
- }
-
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:823:6: ( ( '~' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:823:6: ( ( '~' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:824:1: ( '~' )
- {
- before(grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:825:1: ( '~' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:825:3: '~'
- {
- match(input, 16, FOLLOW_16_in_rule__VisibilityKind__Alternatives1740);
-
- }
-
- after(grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3());
-
- }
-
-
- }
- break;
-
- }
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__VisibilityKind__Alternatives"
-
-
- // $ANTLR start "rule__ModifierKind__Alternatives"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:835:1: rule__ModifierKind__Alternatives : ( ( ( 'readOnly' ) ) | ( ( 'union' ) ) | ( (
- // 'ordered' ) ) | ( ( 'unique' ) ) );
- public final void rule__ModifierKind__Alternatives() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:839:1: ( ( ( 'readOnly' ) ) | ( ( 'union' ) ) | ( ( 'ordered' ) ) | ( ( 'unique'
- // ) ) )
- int alt7 = 4;
- switch (input.LA(1)) {
- case 17: {
- alt7 = 1;
- }
- break;
- case 18: {
- alt7 = 2;
- }
- break;
- case 19: {
- alt7 = 3;
- }
- break;
- case 20: {
- alt7 = 4;
- }
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 7, 0, input);
-
- throw nvae;
- }
-
- switch (alt7) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:840:1: ( ( 'readOnly' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:840:1: ( ( 'readOnly' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:841:1: ( 'readOnly' )
- {
- before(grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:842:1: ( 'readOnly' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:842:3: 'readOnly'
- {
- match(input, 17, FOLLOW_17_in_rule__ModifierKind__Alternatives1776);
-
- }
-
- after(grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0());
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:847:6: ( ( 'union' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:847:6: ( ( 'union' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:848:1: ( 'union' )
- {
- before(grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:849:1: ( 'union' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:849:3: 'union'
- {
- match(input, 18, FOLLOW_18_in_rule__ModifierKind__Alternatives1797);
-
- }
-
- after(grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1());
-
- }
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:854:6: ( ( 'ordered' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:854:6: ( ( 'ordered' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:855:1: ( 'ordered' )
- {
- before(grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:856:1: ( 'ordered' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:856:3: 'ordered'
- {
- match(input, 19, FOLLOW_19_in_rule__ModifierKind__Alternatives1818);
-
- }
-
- after(grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2());
-
- }
-
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:861:6: ( ( 'unique' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:861:6: ( ( 'unique' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:862:1: ( 'unique' )
- {
- before(grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:863:1: ( 'unique' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:863:3: 'unique'
- {
- match(input, 20, FOLLOW_20_in_rule__ModifierKind__Alternatives1839);
-
- }
-
- after(grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3());
-
- }
-
-
- }
- break;
-
- }
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifierKind__Alternatives"
-
-
- // $ANTLR start "rule__BooleanLiterals__Alternatives"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:873:1: rule__BooleanLiterals__Alternatives : ( ( ( 'true' ) ) | ( ( 'false' ) ) );
- public final void rule__BooleanLiterals__Alternatives() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:877:1: ( ( ( 'true' ) ) | ( ( 'false' ) ) )
- int alt8 = 2;
- int LA8_0 = input.LA(1);
-
- if ((LA8_0 == 21)) {
- alt8 = 1;
- }
- else if ((LA8_0 == 22)) {
- alt8 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 8, 0, input);
-
- throw nvae;
- }
- switch (alt8) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:878:1: ( ( 'true' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:878:1: ( ( 'true' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:879:1: ( 'true' )
- {
- before(grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:880:1: ( 'true' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:880:3: 'true'
- {
- match(input, 21, FOLLOW_21_in_rule__BooleanLiterals__Alternatives1875);
-
- }
-
- after(grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0());
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:885:6: ( ( 'false' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:885:6: ( ( 'false' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:886:1: ( 'false' )
- {
- before(grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:887:1: ( 'false' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:887:3: 'false'
- {
- match(input, 22, FOLLOW_22_in_rule__BooleanLiterals__Alternatives1896);
-
- }
-
- after(grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1());
-
- }
-
-
- }
- break;
-
- }
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__BooleanLiterals__Alternatives"
-
-
- // $ANTLR start "rule__PropertyRule__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:899:1: rule__PropertyRule__Group__0 : rule__PropertyRule__Group__0__Impl
- // rule__PropertyRule__Group__1 ;
- public final void rule__PropertyRule__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:903:1: ( rule__PropertyRule__Group__0__Impl rule__PropertyRule__Group__1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:904:2: rule__PropertyRule__Group__0__Impl rule__PropertyRule__Group__1
- {
- pushFollow(FOLLOW_rule__PropertyRule__Group__0__Impl_in_rule__PropertyRule__Group__01929);
- rule__PropertyRule__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__PropertyRule__Group__1_in_rule__PropertyRule__Group__01932);
- rule__PropertyRule__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__Group__0"
-
-
- // $ANTLR start "rule__PropertyRule__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:911:1: rule__PropertyRule__Group__0__Impl : ( (
- // rule__PropertyRule__VisibilityAssignment_0 )? ) ;
- public final void rule__PropertyRule__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:915:1: ( ( ( rule__PropertyRule__VisibilityAssignment_0 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:916:1: ( ( rule__PropertyRule__VisibilityAssignment_0 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:916:1: ( ( rule__PropertyRule__VisibilityAssignment_0 )? )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:917:1: ( rule__PropertyRule__VisibilityAssignment_0 )?
- {
- before(grammarAccess.getPropertyRuleAccess().getVisibilityAssignment_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:918:1: ( rule__PropertyRule__VisibilityAssignment_0 )?
- int alt9 = 2;
- int LA9_0 = input.LA(1);
-
- if (((LA9_0 >= 13 && LA9_0 <= 16))) {
- alt9 = 1;
- }
- switch (alt9) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:918:2: rule__PropertyRule__VisibilityAssignment_0
- {
- pushFollow(FOLLOW_rule__PropertyRule__VisibilityAssignment_0_in_rule__PropertyRule__Group__0__Impl1959);
- rule__PropertyRule__VisibilityAssignment_0();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getPropertyRuleAccess().getVisibilityAssignment_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__Group__0__Impl"
-
-
- // $ANTLR start "rule__PropertyRule__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:928:1: rule__PropertyRule__Group__1 : rule__PropertyRule__Group__1__Impl
- // rule__PropertyRule__Group__2 ;
- public final void rule__PropertyRule__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:932:1: ( rule__PropertyRule__Group__1__Impl rule__PropertyRule__Group__2 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:933:2: rule__PropertyRule__Group__1__Impl rule__PropertyRule__Group__2
- {
- pushFollow(FOLLOW_rule__PropertyRule__Group__1__Impl_in_rule__PropertyRule__Group__11990);
- rule__PropertyRule__Group__1__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__PropertyRule__Group__2_in_rule__PropertyRule__Group__11993);
- rule__PropertyRule__Group__2();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__Group__1"
-
-
- // $ANTLR start "rule__PropertyRule__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:940:1: rule__PropertyRule__Group__1__Impl : ( ( rule__PropertyRule__DerivedAssignment_1
- // )? ) ;
- public final void rule__PropertyRule__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:944:1: ( ( ( rule__PropertyRule__DerivedAssignment_1 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:945:1: ( ( rule__PropertyRule__DerivedAssignment_1 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:945:1: ( ( rule__PropertyRule__DerivedAssignment_1 )? )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:946:1: ( rule__PropertyRule__DerivedAssignment_1 )?
- {
- before(grammarAccess.getPropertyRuleAccess().getDerivedAssignment_1());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:947:1: ( rule__PropertyRule__DerivedAssignment_1 )?
- int alt10 = 2;
- int LA10_0 = input.LA(1);
-
- if ((LA10_0 == 37)) {
- alt10 = 1;
- }
- switch (alt10) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:947:2: rule__PropertyRule__DerivedAssignment_1
- {
- pushFollow(FOLLOW_rule__PropertyRule__DerivedAssignment_1_in_rule__PropertyRule__Group__1__Impl2020);
- rule__PropertyRule__DerivedAssignment_1();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getPropertyRuleAccess().getDerivedAssignment_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__Group__1__Impl"
-
-
- // $ANTLR start "rule__PropertyRule__Group__2"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:957:1: rule__PropertyRule__Group__2 : rule__PropertyRule__Group__2__Impl
- // rule__PropertyRule__Group__3 ;
- public final void rule__PropertyRule__Group__2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:961:1: ( rule__PropertyRule__Group__2__Impl rule__PropertyRule__Group__3 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:962:2: rule__PropertyRule__Group__2__Impl rule__PropertyRule__Group__3
- {
- pushFollow(FOLLOW_rule__PropertyRule__Group__2__Impl_in_rule__PropertyRule__Group__22051);
- rule__PropertyRule__Group__2__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__PropertyRule__Group__3_in_rule__PropertyRule__Group__22054);
- rule__PropertyRule__Group__3();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__Group__2"
-
-
- // $ANTLR start "rule__PropertyRule__Group__2__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:969:1: rule__PropertyRule__Group__2__Impl : ( ( rule__PropertyRule__NameAssignment_2 ) )
- // ;
- public final void rule__PropertyRule__Group__2__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:973:1: ( ( ( rule__PropertyRule__NameAssignment_2 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:974:1: ( ( rule__PropertyRule__NameAssignment_2 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:974:1: ( ( rule__PropertyRule__NameAssignment_2 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:975:1: ( rule__PropertyRule__NameAssignment_2 )
- {
- before(grammarAccess.getPropertyRuleAccess().getNameAssignment_2());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:976:1: ( rule__PropertyRule__NameAssignment_2 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:976:2: rule__PropertyRule__NameAssignment_2
- {
- pushFollow(FOLLOW_rule__PropertyRule__NameAssignment_2_in_rule__PropertyRule__Group__2__Impl2081);
- rule__PropertyRule__NameAssignment_2();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getPropertyRuleAccess().getNameAssignment_2());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__Group__2__Impl"
-
-
- // $ANTLR start "rule__PropertyRule__Group__3"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:986:1: rule__PropertyRule__Group__3 : rule__PropertyRule__Group__3__Impl
- // rule__PropertyRule__Group__4 ;
- public final void rule__PropertyRule__Group__3() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:990:1: ( rule__PropertyRule__Group__3__Impl rule__PropertyRule__Group__4 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:991:2: rule__PropertyRule__Group__3__Impl rule__PropertyRule__Group__4
- {
- pushFollow(FOLLOW_rule__PropertyRule__Group__3__Impl_in_rule__PropertyRule__Group__32111);
- rule__PropertyRule__Group__3__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__PropertyRule__Group__4_in_rule__PropertyRule__Group__32114);
- rule__PropertyRule__Group__4();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__Group__3"
-
-
- // $ANTLR start "rule__PropertyRule__Group__3__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:998:1: rule__PropertyRule__Group__3__Impl : ( ( rule__PropertyRule__Group_3__0 )? ) ;
- public final void rule__PropertyRule__Group__3__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1002:1: ( ( ( rule__PropertyRule__Group_3__0 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1003:1: ( ( rule__PropertyRule__Group_3__0 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1003:1: ( ( rule__PropertyRule__Group_3__0 )? )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1004:1: ( rule__PropertyRule__Group_3__0 )?
- {
- before(grammarAccess.getPropertyRuleAccess().getGroup_3());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1005:1: ( rule__PropertyRule__Group_3__0 )?
- int alt11 = 2;
- int LA11_0 = input.LA(1);
-
- if ((LA11_0 == 23)) {
- alt11 = 1;
- }
- switch (alt11) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1005:2: rule__PropertyRule__Group_3__0
- {
- pushFollow(FOLLOW_rule__PropertyRule__Group_3__0_in_rule__PropertyRule__Group__3__Impl2141);
- rule__PropertyRule__Group_3__0();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getPropertyRuleAccess().getGroup_3());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__Group__3__Impl"
-
-
- // $ANTLR start "rule__PropertyRule__Group__4"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1015:1: rule__PropertyRule__Group__4 : rule__PropertyRule__Group__4__Impl
- // rule__PropertyRule__Group__5 ;
- public final void rule__PropertyRule__Group__4() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1019:1: ( rule__PropertyRule__Group__4__Impl rule__PropertyRule__Group__5 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1020:2: rule__PropertyRule__Group__4__Impl rule__PropertyRule__Group__5
- {
- pushFollow(FOLLOW_rule__PropertyRule__Group__4__Impl_in_rule__PropertyRule__Group__42172);
- rule__PropertyRule__Group__4__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__PropertyRule__Group__5_in_rule__PropertyRule__Group__42175);
- rule__PropertyRule__Group__5();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__Group__4"
-
-
- // $ANTLR start "rule__PropertyRule__Group__4__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1027:1: rule__PropertyRule__Group__4__Impl : ( (
- // rule__PropertyRule__MultiplicityAssignment_4 )? ) ;
- public final void rule__PropertyRule__Group__4__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1031:1: ( ( ( rule__PropertyRule__MultiplicityAssignment_4 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1032:1: ( ( rule__PropertyRule__MultiplicityAssignment_4 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1032:1: ( ( rule__PropertyRule__MultiplicityAssignment_4 )? )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1033:1: ( rule__PropertyRule__MultiplicityAssignment_4 )?
- {
- before(grammarAccess.getPropertyRuleAccess().getMultiplicityAssignment_4());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1034:1: ( rule__PropertyRule__MultiplicityAssignment_4 )?
- int alt12 = 2;
- int LA12_0 = input.LA(1);
-
- if ((LA12_0 == 25)) {
- alt12 = 1;
- }
- switch (alt12) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1034:2: rule__PropertyRule__MultiplicityAssignment_4
- {
- pushFollow(FOLLOW_rule__PropertyRule__MultiplicityAssignment_4_in_rule__PropertyRule__Group__4__Impl2202);
- rule__PropertyRule__MultiplicityAssignment_4();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getPropertyRuleAccess().getMultiplicityAssignment_4());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__Group__4__Impl"
-
-
- // $ANTLR start "rule__PropertyRule__Group__5"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1044:1: rule__PropertyRule__Group__5 : rule__PropertyRule__Group__5__Impl
- // rule__PropertyRule__Group__6 ;
- public final void rule__PropertyRule__Group__5() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1048:1: ( rule__PropertyRule__Group__5__Impl rule__PropertyRule__Group__6 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1049:2: rule__PropertyRule__Group__5__Impl rule__PropertyRule__Group__6
- {
- pushFollow(FOLLOW_rule__PropertyRule__Group__5__Impl_in_rule__PropertyRule__Group__52233);
- rule__PropertyRule__Group__5__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__PropertyRule__Group__6_in_rule__PropertyRule__Group__52236);
- rule__PropertyRule__Group__6();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__Group__5"
-
-
- // $ANTLR start "rule__PropertyRule__Group__5__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1056:1: rule__PropertyRule__Group__5__Impl : ( (
- // rule__PropertyRule__ModifiersAssignment_5 )? ) ;
- public final void rule__PropertyRule__Group__5__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1060:1: ( ( ( rule__PropertyRule__ModifiersAssignment_5 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1061:1: ( ( rule__PropertyRule__ModifiersAssignment_5 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1061:1: ( ( rule__PropertyRule__ModifiersAssignment_5 )? )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1062:1: ( rule__PropertyRule__ModifiersAssignment_5 )?
- {
- before(grammarAccess.getPropertyRuleAccess().getModifiersAssignment_5());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1063:1: ( rule__PropertyRule__ModifiersAssignment_5 )?
- int alt13 = 2;
- int LA13_0 = input.LA(1);
-
- if ((LA13_0 == 28)) {
- alt13 = 1;
- }
- switch (alt13) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1063:2: rule__PropertyRule__ModifiersAssignment_5
- {
- pushFollow(FOLLOW_rule__PropertyRule__ModifiersAssignment_5_in_rule__PropertyRule__Group__5__Impl2263);
- rule__PropertyRule__ModifiersAssignment_5();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getPropertyRuleAccess().getModifiersAssignment_5());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__Group__5__Impl"
-
-
- // $ANTLR start "rule__PropertyRule__Group__6"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1073:1: rule__PropertyRule__Group__6 : rule__PropertyRule__Group__6__Impl ;
- public final void rule__PropertyRule__Group__6() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1077:1: ( rule__PropertyRule__Group__6__Impl )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1078:2: rule__PropertyRule__Group__6__Impl
- {
- pushFollow(FOLLOW_rule__PropertyRule__Group__6__Impl_in_rule__PropertyRule__Group__62294);
- rule__PropertyRule__Group__6__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__Group__6"
-
-
- // $ANTLR start "rule__PropertyRule__Group__6__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1084:1: rule__PropertyRule__Group__6__Impl : ( ( rule__PropertyRule__DefaultAssignment_6
- // )? ) ;
- public final void rule__PropertyRule__Group__6__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1088:1: ( ( ( rule__PropertyRule__DefaultAssignment_6 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1089:1: ( ( rule__PropertyRule__DefaultAssignment_6 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1089:1: ( ( rule__PropertyRule__DefaultAssignment_6 )? )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1090:1: ( rule__PropertyRule__DefaultAssignment_6 )?
- {
- before(grammarAccess.getPropertyRuleAccess().getDefaultAssignment_6());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1091:1: ( rule__PropertyRule__DefaultAssignment_6 )?
- int alt14 = 2;
- int LA14_0 = input.LA(1);
-
- if ((LA14_0 == 33)) {
- alt14 = 1;
- }
- switch (alt14) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1091:2: rule__PropertyRule__DefaultAssignment_6
- {
- pushFollow(FOLLOW_rule__PropertyRule__DefaultAssignment_6_in_rule__PropertyRule__Group__6__Impl2321);
- rule__PropertyRule__DefaultAssignment_6();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getPropertyRuleAccess().getDefaultAssignment_6());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__Group__6__Impl"
-
-
- // $ANTLR start "rule__PropertyRule__Group_3__0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1115:1: rule__PropertyRule__Group_3__0 : rule__PropertyRule__Group_3__0__Impl
- // rule__PropertyRule__Group_3__1 ;
- public final void rule__PropertyRule__Group_3__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1119:1: ( rule__PropertyRule__Group_3__0__Impl rule__PropertyRule__Group_3__1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1120:2: rule__PropertyRule__Group_3__0__Impl rule__PropertyRule__Group_3__1
- {
- pushFollow(FOLLOW_rule__PropertyRule__Group_3__0__Impl_in_rule__PropertyRule__Group_3__02366);
- rule__PropertyRule__Group_3__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__PropertyRule__Group_3__1_in_rule__PropertyRule__Group_3__02369);
- rule__PropertyRule__Group_3__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__Group_3__0"
-
-
- // $ANTLR start "rule__PropertyRule__Group_3__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1127:1: rule__PropertyRule__Group_3__0__Impl : ( ':' ) ;
- public final void rule__PropertyRule__Group_3__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1131:1: ( ( ':' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1132:1: ( ':' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1132:1: ( ':' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1133:1: ':'
- {
- before(grammarAccess.getPropertyRuleAccess().getColonKeyword_3_0());
- match(input, 23, FOLLOW_23_in_rule__PropertyRule__Group_3__0__Impl2397);
- after(grammarAccess.getPropertyRuleAccess().getColonKeyword_3_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__Group_3__0__Impl"
-
-
- // $ANTLR start "rule__PropertyRule__Group_3__1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1146:1: rule__PropertyRule__Group_3__1 : rule__PropertyRule__Group_3__1__Impl ;
- public final void rule__PropertyRule__Group_3__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1150:1: ( rule__PropertyRule__Group_3__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1151:2: rule__PropertyRule__Group_3__1__Impl
- {
- pushFollow(FOLLOW_rule__PropertyRule__Group_3__1__Impl_in_rule__PropertyRule__Group_3__12428);
- rule__PropertyRule__Group_3__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__Group_3__1"
-
-
- // $ANTLR start "rule__PropertyRule__Group_3__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1157:1: rule__PropertyRule__Group_3__1__Impl : ( ( rule__PropertyRule__Alternatives_3_1 )
- // ) ;
- public final void rule__PropertyRule__Group_3__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1161:1: ( ( ( rule__PropertyRule__Alternatives_3_1 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1162:1: ( ( rule__PropertyRule__Alternatives_3_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1162:1: ( ( rule__PropertyRule__Alternatives_3_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1163:1: ( rule__PropertyRule__Alternatives_3_1 )
- {
- before(grammarAccess.getPropertyRuleAccess().getAlternatives_3_1());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1164:1: ( rule__PropertyRule__Alternatives_3_1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1164:2: rule__PropertyRule__Alternatives_3_1
- {
- pushFollow(FOLLOW_rule__PropertyRule__Alternatives_3_1_in_rule__PropertyRule__Group_3__1__Impl2455);
- rule__PropertyRule__Alternatives_3_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getPropertyRuleAccess().getAlternatives_3_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__Group_3__1__Impl"
-
-
- // $ANTLR start "rule__TypeRule__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1178:1: rule__TypeRule__Group__0 : rule__TypeRule__Group__0__Impl
- // rule__TypeRule__Group__1 ;
- public final void rule__TypeRule__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1182:1: ( rule__TypeRule__Group__0__Impl rule__TypeRule__Group__1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1183:2: rule__TypeRule__Group__0__Impl rule__TypeRule__Group__1
- {
- pushFollow(FOLLOW_rule__TypeRule__Group__0__Impl_in_rule__TypeRule__Group__02489);
- rule__TypeRule__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__TypeRule__Group__1_in_rule__TypeRule__Group__02492);
- rule__TypeRule__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__TypeRule__Group__0"
-
-
- // $ANTLR start "rule__TypeRule__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1190:1: rule__TypeRule__Group__0__Impl : ( ( rule__TypeRule__PathAssignment_0 )? ) ;
- public final void rule__TypeRule__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1194:1: ( ( ( rule__TypeRule__PathAssignment_0 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1195:1: ( ( rule__TypeRule__PathAssignment_0 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1195:1: ( ( rule__TypeRule__PathAssignment_0 )? )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1196:1: ( rule__TypeRule__PathAssignment_0 )?
- {
- before(grammarAccess.getTypeRuleAccess().getPathAssignment_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1197:1: ( rule__TypeRule__PathAssignment_0 )?
- int alt15 = 2;
- int LA15_0 = input.LA(1);
-
- if ((LA15_0 == RULE_ID)) {
- int LA15_1 = input.LA(2);
-
- if ((LA15_1 == 24)) {
- alt15 = 1;
- }
- }
- switch (alt15) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1197:2: rule__TypeRule__PathAssignment_0
- {
- pushFollow(FOLLOW_rule__TypeRule__PathAssignment_0_in_rule__TypeRule__Group__0__Impl2519);
- rule__TypeRule__PathAssignment_0();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getTypeRuleAccess().getPathAssignment_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__TypeRule__Group__0__Impl"
-
-
- // $ANTLR start "rule__TypeRule__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1207:1: rule__TypeRule__Group__1 : rule__TypeRule__Group__1__Impl ;
- public final void rule__TypeRule__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1211:1: ( rule__TypeRule__Group__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1212:2: rule__TypeRule__Group__1__Impl
- {
- pushFollow(FOLLOW_rule__TypeRule__Group__1__Impl_in_rule__TypeRule__Group__12550);
- rule__TypeRule__Group__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__TypeRule__Group__1"
-
-
- // $ANTLR start "rule__TypeRule__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1218:1: rule__TypeRule__Group__1__Impl : ( ( rule__TypeRule__TypeAssignment_1 ) ) ;
- public final void rule__TypeRule__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1222:1: ( ( ( rule__TypeRule__TypeAssignment_1 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1223:1: ( ( rule__TypeRule__TypeAssignment_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1223:1: ( ( rule__TypeRule__TypeAssignment_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1224:1: ( rule__TypeRule__TypeAssignment_1 )
- {
- before(grammarAccess.getTypeRuleAccess().getTypeAssignment_1());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1225:1: ( rule__TypeRule__TypeAssignment_1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1225:2: rule__TypeRule__TypeAssignment_1
- {
- pushFollow(FOLLOW_rule__TypeRule__TypeAssignment_1_in_rule__TypeRule__Group__1__Impl2577);
- rule__TypeRule__TypeAssignment_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getTypeRuleAccess().getTypeAssignment_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__TypeRule__Group__1__Impl"
-
-
- // $ANTLR start "rule__QualifiedName__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1239:1: rule__QualifiedName__Group__0 : rule__QualifiedName__Group__0__Impl
- // rule__QualifiedName__Group__1 ;
- public final void rule__QualifiedName__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1243:1: ( rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1244:2: rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1
- {
- pushFollow(FOLLOW_rule__QualifiedName__Group__0__Impl_in_rule__QualifiedName__Group__02611);
- rule__QualifiedName__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__QualifiedName__Group__1_in_rule__QualifiedName__Group__02614);
- rule__QualifiedName__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__QualifiedName__Group__0"
-
-
- // $ANTLR start "rule__QualifiedName__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1251:1: rule__QualifiedName__Group__0__Impl : ( ( rule__QualifiedName__PathAssignment_0 )
- // ) ;
- public final void rule__QualifiedName__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1255:1: ( ( ( rule__QualifiedName__PathAssignment_0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1256:1: ( ( rule__QualifiedName__PathAssignment_0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1256:1: ( ( rule__QualifiedName__PathAssignment_0 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1257:1: ( rule__QualifiedName__PathAssignment_0 )
- {
- before(grammarAccess.getQualifiedNameAccess().getPathAssignment_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1258:1: ( rule__QualifiedName__PathAssignment_0 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1258:2: rule__QualifiedName__PathAssignment_0
- {
- pushFollow(FOLLOW_rule__QualifiedName__PathAssignment_0_in_rule__QualifiedName__Group__0__Impl2641);
- rule__QualifiedName__PathAssignment_0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getQualifiedNameAccess().getPathAssignment_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__QualifiedName__Group__0__Impl"
-
-
- // $ANTLR start "rule__QualifiedName__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1268:1: rule__QualifiedName__Group__1 : rule__QualifiedName__Group__1__Impl
- // rule__QualifiedName__Group__2 ;
- public final void rule__QualifiedName__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1272:1: ( rule__QualifiedName__Group__1__Impl rule__QualifiedName__Group__2 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1273:2: rule__QualifiedName__Group__1__Impl rule__QualifiedName__Group__2
- {
- pushFollow(FOLLOW_rule__QualifiedName__Group__1__Impl_in_rule__QualifiedName__Group__12671);
- rule__QualifiedName__Group__1__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__QualifiedName__Group__2_in_rule__QualifiedName__Group__12674);
- rule__QualifiedName__Group__2();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__QualifiedName__Group__1"
-
-
- // $ANTLR start "rule__QualifiedName__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1280:1: rule__QualifiedName__Group__1__Impl : ( '::' ) ;
- public final void rule__QualifiedName__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1284:1: ( ( '::' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1285:1: ( '::' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1285:1: ( '::' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1286:1: '::'
- {
- before(grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1());
- match(input, 24, FOLLOW_24_in_rule__QualifiedName__Group__1__Impl2702);
- after(grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__QualifiedName__Group__1__Impl"
-
-
- // $ANTLR start "rule__QualifiedName__Group__2"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1299:1: rule__QualifiedName__Group__2 : rule__QualifiedName__Group__2__Impl ;
- public final void rule__QualifiedName__Group__2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1303:1: ( rule__QualifiedName__Group__2__Impl )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1304:2: rule__QualifiedName__Group__2__Impl
- {
- pushFollow(FOLLOW_rule__QualifiedName__Group__2__Impl_in_rule__QualifiedName__Group__22733);
- rule__QualifiedName__Group__2__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__QualifiedName__Group__2"
-
-
- // $ANTLR start "rule__QualifiedName__Group__2__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1310:1: rule__QualifiedName__Group__2__Impl : ( (
- // rule__QualifiedName__RemainingAssignment_2 )? ) ;
- public final void rule__QualifiedName__Group__2__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1314:1: ( ( ( rule__QualifiedName__RemainingAssignment_2 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1315:1: ( ( rule__QualifiedName__RemainingAssignment_2 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1315:1: ( ( rule__QualifiedName__RemainingAssignment_2 )? )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1316:1: ( rule__QualifiedName__RemainingAssignment_2 )?
- {
- before(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1317:1: ( rule__QualifiedName__RemainingAssignment_2 )?
- int alt16 = 2;
- int LA16_0 = input.LA(1);
-
- if ((LA16_0 == RULE_ID)) {
- int LA16_1 = input.LA(2);
-
- if ((LA16_1 == 24)) {
- alt16 = 1;
- }
- }
- switch (alt16) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1317:2: rule__QualifiedName__RemainingAssignment_2
- {
- pushFollow(FOLLOW_rule__QualifiedName__RemainingAssignment_2_in_rule__QualifiedName__Group__2__Impl2760);
- rule__QualifiedName__RemainingAssignment_2();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__QualifiedName__Group__2__Impl"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1333:1: rule__MultiplicityRule__Group__0 : rule__MultiplicityRule__Group__0__Impl
- // rule__MultiplicityRule__Group__1 ;
- public final void rule__MultiplicityRule__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1337:1: ( rule__MultiplicityRule__Group__0__Impl rule__MultiplicityRule__Group__1
- // )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1338:2: rule__MultiplicityRule__Group__0__Impl rule__MultiplicityRule__Group__1
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__Group__0__Impl_in_rule__MultiplicityRule__Group__02797);
- rule__MultiplicityRule__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__MultiplicityRule__Group__1_in_rule__MultiplicityRule__Group__02800);
- rule__MultiplicityRule__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group__0"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1345:1: rule__MultiplicityRule__Group__0__Impl : ( '[' ) ;
- public final void rule__MultiplicityRule__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1349:1: ( ( '[' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1350:1: ( '[' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1350:1: ( '[' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1351:1: '['
- {
- before(grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0());
- match(input, 25, FOLLOW_25_in_rule__MultiplicityRule__Group__0__Impl2828);
- after(grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group__0__Impl"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1364:1: rule__MultiplicityRule__Group__1 : rule__MultiplicityRule__Group__1__Impl
- // rule__MultiplicityRule__Group__2 ;
- public final void rule__MultiplicityRule__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1368:1: ( rule__MultiplicityRule__Group__1__Impl rule__MultiplicityRule__Group__2
- // )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1369:2: rule__MultiplicityRule__Group__1__Impl rule__MultiplicityRule__Group__2
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__Group__1__Impl_in_rule__MultiplicityRule__Group__12859);
- rule__MultiplicityRule__Group__1__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__MultiplicityRule__Group__2_in_rule__MultiplicityRule__Group__12862);
- rule__MultiplicityRule__Group__2();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group__1"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1376:1: rule__MultiplicityRule__Group__1__Impl : ( (
- // rule__MultiplicityRule__BoundsAssignment_1 ) ) ;
- public final void rule__MultiplicityRule__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1380:1: ( ( ( rule__MultiplicityRule__BoundsAssignment_1 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1381:1: ( ( rule__MultiplicityRule__BoundsAssignment_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1381:1: ( ( rule__MultiplicityRule__BoundsAssignment_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1382:1: ( rule__MultiplicityRule__BoundsAssignment_1 )
- {
- before(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1383:1: ( rule__MultiplicityRule__BoundsAssignment_1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1383:2: rule__MultiplicityRule__BoundsAssignment_1
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__BoundsAssignment_1_in_rule__MultiplicityRule__Group__1__Impl2889);
- rule__MultiplicityRule__BoundsAssignment_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group__1__Impl"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group__2"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1393:1: rule__MultiplicityRule__Group__2 : rule__MultiplicityRule__Group__2__Impl
- // rule__MultiplicityRule__Group__3 ;
- public final void rule__MultiplicityRule__Group__2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1397:1: ( rule__MultiplicityRule__Group__2__Impl rule__MultiplicityRule__Group__3
- // )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1398:2: rule__MultiplicityRule__Group__2__Impl rule__MultiplicityRule__Group__3
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__Group__2__Impl_in_rule__MultiplicityRule__Group__22919);
- rule__MultiplicityRule__Group__2__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__MultiplicityRule__Group__3_in_rule__MultiplicityRule__Group__22922);
- rule__MultiplicityRule__Group__3();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group__2"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group__2__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1405:1: rule__MultiplicityRule__Group__2__Impl : ( ( rule__MultiplicityRule__Group_2__0
- // )? ) ;
- public final void rule__MultiplicityRule__Group__2__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1409:1: ( ( ( rule__MultiplicityRule__Group_2__0 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1410:1: ( ( rule__MultiplicityRule__Group_2__0 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1410:1: ( ( rule__MultiplicityRule__Group_2__0 )? )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1411:1: ( rule__MultiplicityRule__Group_2__0 )?
- {
- before(grammarAccess.getMultiplicityRuleAccess().getGroup_2());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1412:1: ( rule__MultiplicityRule__Group_2__0 )?
- int alt17 = 2;
- int LA17_0 = input.LA(1);
-
- if ((LA17_0 == 27)) {
- alt17 = 1;
- }
- switch (alt17) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1412:2: rule__MultiplicityRule__Group_2__0
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__Group_2__0_in_rule__MultiplicityRule__Group__2__Impl2949);
- rule__MultiplicityRule__Group_2__0();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getMultiplicityRuleAccess().getGroup_2());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group__2__Impl"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group__3"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1422:1: rule__MultiplicityRule__Group__3 : rule__MultiplicityRule__Group__3__Impl ;
- public final void rule__MultiplicityRule__Group__3() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1426:1: ( rule__MultiplicityRule__Group__3__Impl )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1427:2: rule__MultiplicityRule__Group__3__Impl
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__Group__3__Impl_in_rule__MultiplicityRule__Group__32980);
- rule__MultiplicityRule__Group__3__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group__3"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group__3__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1433:1: rule__MultiplicityRule__Group__3__Impl : ( ']' ) ;
- public final void rule__MultiplicityRule__Group__3__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1437:1: ( ( ']' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1438:1: ( ']' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1438:1: ( ']' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1439:1: ']'
- {
- before(grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3());
- match(input, 26, FOLLOW_26_in_rule__MultiplicityRule__Group__3__Impl3008);
- after(grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group__3__Impl"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group_2__0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1460:1: rule__MultiplicityRule__Group_2__0 : rule__MultiplicityRule__Group_2__0__Impl
- // rule__MultiplicityRule__Group_2__1 ;
- public final void rule__MultiplicityRule__Group_2__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1464:1: ( rule__MultiplicityRule__Group_2__0__Impl
- // rule__MultiplicityRule__Group_2__1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1465:2: rule__MultiplicityRule__Group_2__0__Impl
- // rule__MultiplicityRule__Group_2__1
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__Group_2__0__Impl_in_rule__MultiplicityRule__Group_2__03047);
- rule__MultiplicityRule__Group_2__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__MultiplicityRule__Group_2__1_in_rule__MultiplicityRule__Group_2__03050);
- rule__MultiplicityRule__Group_2__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group_2__0"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group_2__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1472:1: rule__MultiplicityRule__Group_2__0__Impl : ( '..' ) ;
- public final void rule__MultiplicityRule__Group_2__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1476:1: ( ( '..' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1477:1: ( '..' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1477:1: ( '..' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1478:1: '..'
- {
- before(grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0());
- match(input, 27, FOLLOW_27_in_rule__MultiplicityRule__Group_2__0__Impl3078);
- after(grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group_2__0__Impl"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group_2__1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1491:1: rule__MultiplicityRule__Group_2__1 : rule__MultiplicityRule__Group_2__1__Impl ;
- public final void rule__MultiplicityRule__Group_2__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1495:1: ( rule__MultiplicityRule__Group_2__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1496:2: rule__MultiplicityRule__Group_2__1__Impl
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__Group_2__1__Impl_in_rule__MultiplicityRule__Group_2__13109);
- rule__MultiplicityRule__Group_2__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group_2__1"
-
-
- // $ANTLR start "rule__MultiplicityRule__Group_2__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1502:1: rule__MultiplicityRule__Group_2__1__Impl : ( (
- // rule__MultiplicityRule__BoundsAssignment_2_1 ) ) ;
- public final void rule__MultiplicityRule__Group_2__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1506:1: ( ( ( rule__MultiplicityRule__BoundsAssignment_2_1 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1507:1: ( ( rule__MultiplicityRule__BoundsAssignment_2_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1507:1: ( ( rule__MultiplicityRule__BoundsAssignment_2_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1508:1: ( rule__MultiplicityRule__BoundsAssignment_2_1 )
- {
- before(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2_1());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1509:1: ( rule__MultiplicityRule__BoundsAssignment_2_1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1509:2: rule__MultiplicityRule__BoundsAssignment_2_1
- {
- pushFollow(FOLLOW_rule__MultiplicityRule__BoundsAssignment_2_1_in_rule__MultiplicityRule__Group_2__1__Impl3136);
- rule__MultiplicityRule__BoundsAssignment_2_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__Group_2__1__Impl"
-
-
- // $ANTLR start "rule__ModifiersRule__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1523:1: rule__ModifiersRule__Group__0 : rule__ModifiersRule__Group__0__Impl
- // rule__ModifiersRule__Group__1 ;
- public final void rule__ModifiersRule__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1527:1: ( rule__ModifiersRule__Group__0__Impl rule__ModifiersRule__Group__1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1528:2: rule__ModifiersRule__Group__0__Impl rule__ModifiersRule__Group__1
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group__0__Impl_in_rule__ModifiersRule__Group__03170);
- rule__ModifiersRule__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__ModifiersRule__Group__1_in_rule__ModifiersRule__Group__03173);
- rule__ModifiersRule__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group__0"
-
-
- // $ANTLR start "rule__ModifiersRule__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1535:1: rule__ModifiersRule__Group__0__Impl : ( () ) ;
- public final void rule__ModifiersRule__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1539:1: ( ( () ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1540:1: ( () )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1540:1: ( () )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1541:1: ()
- {
- before(grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1542:1: ()
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1544:1:
- {
- }
-
- after(grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0());
-
- }
-
-
- }
-
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group__0__Impl"
-
-
- // $ANTLR start "rule__ModifiersRule__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1554:1: rule__ModifiersRule__Group__1 : rule__ModifiersRule__Group__1__Impl
- // rule__ModifiersRule__Group__2 ;
- public final void rule__ModifiersRule__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1558:1: ( rule__ModifiersRule__Group__1__Impl rule__ModifiersRule__Group__2 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1559:2: rule__ModifiersRule__Group__1__Impl rule__ModifiersRule__Group__2
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group__1__Impl_in_rule__ModifiersRule__Group__13231);
- rule__ModifiersRule__Group__1__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__ModifiersRule__Group__2_in_rule__ModifiersRule__Group__13234);
- rule__ModifiersRule__Group__2();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group__1"
-
-
- // $ANTLR start "rule__ModifiersRule__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1566:1: rule__ModifiersRule__Group__1__Impl : ( '{' ) ;
- public final void rule__ModifiersRule__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1570:1: ( ( '{' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1571:1: ( '{' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1571:1: ( '{' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1572:1: '{'
- {
- before(grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1());
- match(input, 28, FOLLOW_28_in_rule__ModifiersRule__Group__1__Impl3262);
- after(grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group__1__Impl"
-
-
- // $ANTLR start "rule__ModifiersRule__Group__2"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1585:1: rule__ModifiersRule__Group__2 : rule__ModifiersRule__Group__2__Impl
- // rule__ModifiersRule__Group__3 ;
- public final void rule__ModifiersRule__Group__2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1589:1: ( rule__ModifiersRule__Group__2__Impl rule__ModifiersRule__Group__3 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1590:2: rule__ModifiersRule__Group__2__Impl rule__ModifiersRule__Group__3
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group__2__Impl_in_rule__ModifiersRule__Group__23293);
- rule__ModifiersRule__Group__2__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__ModifiersRule__Group__3_in_rule__ModifiersRule__Group__23296);
- rule__ModifiersRule__Group__3();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group__2"
-
-
- // $ANTLR start "rule__ModifiersRule__Group__2__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1597:1: rule__ModifiersRule__Group__2__Impl : ( ( rule__ModifiersRule__Group_2__0 )? ) ;
- public final void rule__ModifiersRule__Group__2__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1601:1: ( ( ( rule__ModifiersRule__Group_2__0 )? ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1602:1: ( ( rule__ModifiersRule__Group_2__0 )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1602:1: ( ( rule__ModifiersRule__Group_2__0 )? )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1603:1: ( rule__ModifiersRule__Group_2__0 )?
- {
- before(grammarAccess.getModifiersRuleAccess().getGroup_2());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1604:1: ( rule__ModifiersRule__Group_2__0 )?
- int alt18 = 2;
- int LA18_0 = input.LA(1);
-
- if (((LA18_0 >= 17 && LA18_0 <= 20) || (LA18_0 >= 31 && LA18_0 <= 32))) {
- alt18 = 1;
- }
- switch (alt18) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1604:2: rule__ModifiersRule__Group_2__0
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group_2__0_in_rule__ModifiersRule__Group__2__Impl3323);
- rule__ModifiersRule__Group_2__0();
-
- state._fsp--;
-
-
- }
- break;
-
- }
-
- after(grammarAccess.getModifiersRuleAccess().getGroup_2());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group__2__Impl"
-
-
- // $ANTLR start "rule__ModifiersRule__Group__3"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1614:1: rule__ModifiersRule__Group__3 : rule__ModifiersRule__Group__3__Impl ;
- public final void rule__ModifiersRule__Group__3() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1618:1: ( rule__ModifiersRule__Group__3__Impl )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1619:2: rule__ModifiersRule__Group__3__Impl
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group__3__Impl_in_rule__ModifiersRule__Group__33354);
- rule__ModifiersRule__Group__3__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group__3"
-
-
- // $ANTLR start "rule__ModifiersRule__Group__3__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1625:1: rule__ModifiersRule__Group__3__Impl : ( '}' ) ;
- public final void rule__ModifiersRule__Group__3__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1629:1: ( ( '}' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1630:1: ( '}' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1630:1: ( '}' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1631:1: '}'
- {
- before(grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3());
- match(input, 29, FOLLOW_29_in_rule__ModifiersRule__Group__3__Impl3382);
- after(grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group__3__Impl"
-
-
- // $ANTLR start "rule__ModifiersRule__Group_2__0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1652:1: rule__ModifiersRule__Group_2__0 : rule__ModifiersRule__Group_2__0__Impl
- // rule__ModifiersRule__Group_2__1 ;
- public final void rule__ModifiersRule__Group_2__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1656:1: ( rule__ModifiersRule__Group_2__0__Impl rule__ModifiersRule__Group_2__1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1657:2: rule__ModifiersRule__Group_2__0__Impl rule__ModifiersRule__Group_2__1
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group_2__0__Impl_in_rule__ModifiersRule__Group_2__03421);
- rule__ModifiersRule__Group_2__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__ModifiersRule__Group_2__1_in_rule__ModifiersRule__Group_2__03424);
- rule__ModifiersRule__Group_2__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group_2__0"
-
-
- // $ANTLR start "rule__ModifiersRule__Group_2__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1664:1: rule__ModifiersRule__Group_2__0__Impl : ( (
- // rule__ModifiersRule__ValuesAssignment_2_0 ) ) ;
- public final void rule__ModifiersRule__Group_2__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1668:1: ( ( ( rule__ModifiersRule__ValuesAssignment_2_0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1669:1: ( ( rule__ModifiersRule__ValuesAssignment_2_0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1669:1: ( ( rule__ModifiersRule__ValuesAssignment_2_0 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1670:1: ( rule__ModifiersRule__ValuesAssignment_2_0 )
- {
- before(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1671:1: ( rule__ModifiersRule__ValuesAssignment_2_0 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1671:2: rule__ModifiersRule__ValuesAssignment_2_0
- {
- pushFollow(FOLLOW_rule__ModifiersRule__ValuesAssignment_2_0_in_rule__ModifiersRule__Group_2__0__Impl3451);
- rule__ModifiersRule__ValuesAssignment_2_0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group_2__0__Impl"
-
-
- // $ANTLR start "rule__ModifiersRule__Group_2__1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1681:1: rule__ModifiersRule__Group_2__1 : rule__ModifiersRule__Group_2__1__Impl ;
- public final void rule__ModifiersRule__Group_2__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1685:1: ( rule__ModifiersRule__Group_2__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1686:2: rule__ModifiersRule__Group_2__1__Impl
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group_2__1__Impl_in_rule__ModifiersRule__Group_2__13481);
- rule__ModifiersRule__Group_2__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group_2__1"
-
-
- // $ANTLR start "rule__ModifiersRule__Group_2__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1692:1: rule__ModifiersRule__Group_2__1__Impl : ( ( rule__ModifiersRule__Group_2_1__0 )*
- // ) ;
- public final void rule__ModifiersRule__Group_2__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1696:1: ( ( ( rule__ModifiersRule__Group_2_1__0 )* ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1697:1: ( ( rule__ModifiersRule__Group_2_1__0 )* )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1697:1: ( ( rule__ModifiersRule__Group_2_1__0 )* )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1698:1: ( rule__ModifiersRule__Group_2_1__0 )*
- {
- before(grammarAccess.getModifiersRuleAccess().getGroup_2_1());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1699:1: ( rule__ModifiersRule__Group_2_1__0 )*
- loop19: do {
- int alt19 = 2;
- int LA19_0 = input.LA(1);
-
- if ((LA19_0 == 30)) {
- alt19 = 1;
- }
-
-
- switch (alt19) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1699:2: rule__ModifiersRule__Group_2_1__0
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group_2_1__0_in_rule__ModifiersRule__Group_2__1__Impl3508);
- rule__ModifiersRule__Group_2_1__0();
-
- state._fsp--;
-
-
- }
- break;
-
- default:
- break loop19;
- }
- } while (true);
-
- after(grammarAccess.getModifiersRuleAccess().getGroup_2_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group_2__1__Impl"
-
-
- // $ANTLR start "rule__ModifiersRule__Group_2_1__0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1713:1: rule__ModifiersRule__Group_2_1__0 : rule__ModifiersRule__Group_2_1__0__Impl
- // rule__ModifiersRule__Group_2_1__1 ;
- public final void rule__ModifiersRule__Group_2_1__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1717:1: ( rule__ModifiersRule__Group_2_1__0__Impl
- // rule__ModifiersRule__Group_2_1__1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1718:2: rule__ModifiersRule__Group_2_1__0__Impl rule__ModifiersRule__Group_2_1__1
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group_2_1__0__Impl_in_rule__ModifiersRule__Group_2_1__03543);
- rule__ModifiersRule__Group_2_1__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__ModifiersRule__Group_2_1__1_in_rule__ModifiersRule__Group_2_1__03546);
- rule__ModifiersRule__Group_2_1__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group_2_1__0"
-
-
- // $ANTLR start "rule__ModifiersRule__Group_2_1__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1725:1: rule__ModifiersRule__Group_2_1__0__Impl : ( ',' ) ;
- public final void rule__ModifiersRule__Group_2_1__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1729:1: ( ( ',' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1730:1: ( ',' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1730:1: ( ',' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1731:1: ','
- {
- before(grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0());
- match(input, 30, FOLLOW_30_in_rule__ModifiersRule__Group_2_1__0__Impl3574);
- after(grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group_2_1__0__Impl"
-
-
- // $ANTLR start "rule__ModifiersRule__Group_2_1__1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1744:1: rule__ModifiersRule__Group_2_1__1 : rule__ModifiersRule__Group_2_1__1__Impl ;
- public final void rule__ModifiersRule__Group_2_1__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1748:1: ( rule__ModifiersRule__Group_2_1__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1749:2: rule__ModifiersRule__Group_2_1__1__Impl
- {
- pushFollow(FOLLOW_rule__ModifiersRule__Group_2_1__1__Impl_in_rule__ModifiersRule__Group_2_1__13605);
- rule__ModifiersRule__Group_2_1__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group_2_1__1"
-
-
- // $ANTLR start "rule__ModifiersRule__Group_2_1__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1755:1: rule__ModifiersRule__Group_2_1__1__Impl : ( (
- // rule__ModifiersRule__ValuesAssignment_2_1_1 ) ) ;
- public final void rule__ModifiersRule__Group_2_1__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1759:1: ( ( ( rule__ModifiersRule__ValuesAssignment_2_1_1 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1760:1: ( ( rule__ModifiersRule__ValuesAssignment_2_1_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1760:1: ( ( rule__ModifiersRule__ValuesAssignment_2_1_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1761:1: ( rule__ModifiersRule__ValuesAssignment_2_1_1 )
- {
- before(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1762:1: ( rule__ModifiersRule__ValuesAssignment_2_1_1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1762:2: rule__ModifiersRule__ValuesAssignment_2_1_1
- {
- pushFollow(FOLLOW_rule__ModifiersRule__ValuesAssignment_2_1_1_in_rule__ModifiersRule__Group_2_1__1__Impl3632);
- rule__ModifiersRule__ValuesAssignment_2_1_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__Group_2_1__1__Impl"
-
-
- // $ANTLR start "rule__RedefinesRule__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1776:1: rule__RedefinesRule__Group__0 : rule__RedefinesRule__Group__0__Impl
- // rule__RedefinesRule__Group__1 ;
- public final void rule__RedefinesRule__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1780:1: ( rule__RedefinesRule__Group__0__Impl rule__RedefinesRule__Group__1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1781:2: rule__RedefinesRule__Group__0__Impl rule__RedefinesRule__Group__1
- {
- pushFollow(FOLLOW_rule__RedefinesRule__Group__0__Impl_in_rule__RedefinesRule__Group__03666);
- rule__RedefinesRule__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__RedefinesRule__Group__1_in_rule__RedefinesRule__Group__03669);
- rule__RedefinesRule__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RedefinesRule__Group__0"
-
-
- // $ANTLR start "rule__RedefinesRule__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1788:1: rule__RedefinesRule__Group__0__Impl : ( 'redefines' ) ;
- public final void rule__RedefinesRule__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1792:1: ( ( 'redefines' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1793:1: ( 'redefines' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1793:1: ( 'redefines' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1794:1: 'redefines'
- {
- before(grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0());
- match(input, 31, FOLLOW_31_in_rule__RedefinesRule__Group__0__Impl3697);
- after(grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RedefinesRule__Group__0__Impl"
-
-
- // $ANTLR start "rule__RedefinesRule__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1807:1: rule__RedefinesRule__Group__1 : rule__RedefinesRule__Group__1__Impl ;
- public final void rule__RedefinesRule__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1811:1: ( rule__RedefinesRule__Group__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1812:2: rule__RedefinesRule__Group__1__Impl
- {
- pushFollow(FOLLOW_rule__RedefinesRule__Group__1__Impl_in_rule__RedefinesRule__Group__13728);
- rule__RedefinesRule__Group__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RedefinesRule__Group__1"
-
-
- // $ANTLR start "rule__RedefinesRule__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1818:1: rule__RedefinesRule__Group__1__Impl : ( (
- // rule__RedefinesRule__PropertyAssignment_1 ) ) ;
- public final void rule__RedefinesRule__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1822:1: ( ( ( rule__RedefinesRule__PropertyAssignment_1 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1823:1: ( ( rule__RedefinesRule__PropertyAssignment_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1823:1: ( ( rule__RedefinesRule__PropertyAssignment_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1824:1: ( rule__RedefinesRule__PropertyAssignment_1 )
- {
- before(grammarAccess.getRedefinesRuleAccess().getPropertyAssignment_1());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1825:1: ( rule__RedefinesRule__PropertyAssignment_1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1825:2: rule__RedefinesRule__PropertyAssignment_1
- {
- pushFollow(FOLLOW_rule__RedefinesRule__PropertyAssignment_1_in_rule__RedefinesRule__Group__1__Impl3755);
- rule__RedefinesRule__PropertyAssignment_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRedefinesRuleAccess().getPropertyAssignment_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RedefinesRule__Group__1__Impl"
-
-
- // $ANTLR start "rule__SubsetsRule__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1839:1: rule__SubsetsRule__Group__0 : rule__SubsetsRule__Group__0__Impl
- // rule__SubsetsRule__Group__1 ;
- public final void rule__SubsetsRule__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1843:1: ( rule__SubsetsRule__Group__0__Impl rule__SubsetsRule__Group__1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1844:2: rule__SubsetsRule__Group__0__Impl rule__SubsetsRule__Group__1
- {
- pushFollow(FOLLOW_rule__SubsetsRule__Group__0__Impl_in_rule__SubsetsRule__Group__03789);
- rule__SubsetsRule__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__SubsetsRule__Group__1_in_rule__SubsetsRule__Group__03792);
- rule__SubsetsRule__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__SubsetsRule__Group__0"
-
-
- // $ANTLR start "rule__SubsetsRule__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1851:1: rule__SubsetsRule__Group__0__Impl : ( 'subsets' ) ;
- public final void rule__SubsetsRule__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1855:1: ( ( 'subsets' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1856:1: ( 'subsets' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1856:1: ( 'subsets' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1857:1: 'subsets'
- {
- before(grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0());
- match(input, 32, FOLLOW_32_in_rule__SubsetsRule__Group__0__Impl3820);
- after(grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__SubsetsRule__Group__0__Impl"
-
-
- // $ANTLR start "rule__SubsetsRule__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1870:1: rule__SubsetsRule__Group__1 : rule__SubsetsRule__Group__1__Impl ;
- public final void rule__SubsetsRule__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1874:1: ( rule__SubsetsRule__Group__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1875:2: rule__SubsetsRule__Group__1__Impl
- {
- pushFollow(FOLLOW_rule__SubsetsRule__Group__1__Impl_in_rule__SubsetsRule__Group__13851);
- rule__SubsetsRule__Group__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__SubsetsRule__Group__1"
-
-
- // $ANTLR start "rule__SubsetsRule__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1881:1: rule__SubsetsRule__Group__1__Impl : ( ( rule__SubsetsRule__PropertyAssignment_1 )
- // ) ;
- public final void rule__SubsetsRule__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1885:1: ( ( ( rule__SubsetsRule__PropertyAssignment_1 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1886:1: ( ( rule__SubsetsRule__PropertyAssignment_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1886:1: ( ( rule__SubsetsRule__PropertyAssignment_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1887:1: ( rule__SubsetsRule__PropertyAssignment_1 )
- {
- before(grammarAccess.getSubsetsRuleAccess().getPropertyAssignment_1());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1888:1: ( rule__SubsetsRule__PropertyAssignment_1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1888:2: rule__SubsetsRule__PropertyAssignment_1
- {
- pushFollow(FOLLOW_rule__SubsetsRule__PropertyAssignment_1_in_rule__SubsetsRule__Group__1__Impl3878);
- rule__SubsetsRule__PropertyAssignment_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getSubsetsRuleAccess().getPropertyAssignment_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__SubsetsRule__Group__1__Impl"
-
-
- // $ANTLR start "rule__DefaultValueRule__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1902:1: rule__DefaultValueRule__Group__0 : rule__DefaultValueRule__Group__0__Impl
- // rule__DefaultValueRule__Group__1 ;
- public final void rule__DefaultValueRule__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1906:1: ( rule__DefaultValueRule__Group__0__Impl rule__DefaultValueRule__Group__1
- // )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1907:2: rule__DefaultValueRule__Group__0__Impl rule__DefaultValueRule__Group__1
- {
- pushFollow(FOLLOW_rule__DefaultValueRule__Group__0__Impl_in_rule__DefaultValueRule__Group__03912);
- rule__DefaultValueRule__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__DefaultValueRule__Group__1_in_rule__DefaultValueRule__Group__03915);
- rule__DefaultValueRule__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__DefaultValueRule__Group__0"
-
-
- // $ANTLR start "rule__DefaultValueRule__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1914:1: rule__DefaultValueRule__Group__0__Impl : ( '=' ) ;
- public final void rule__DefaultValueRule__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1918:1: ( ( '=' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1919:1: ( '=' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1919:1: ( '=' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1920:1: '='
- {
- before(grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0());
- match(input, 33, FOLLOW_33_in_rule__DefaultValueRule__Group__0__Impl3943);
- after(grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__DefaultValueRule__Group__0__Impl"
-
-
- // $ANTLR start "rule__DefaultValueRule__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1933:1: rule__DefaultValueRule__Group__1 : rule__DefaultValueRule__Group__1__Impl ;
- public final void rule__DefaultValueRule__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1937:1: ( rule__DefaultValueRule__Group__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1938:2: rule__DefaultValueRule__Group__1__Impl
- {
- pushFollow(FOLLOW_rule__DefaultValueRule__Group__1__Impl_in_rule__DefaultValueRule__Group__13974);
- rule__DefaultValueRule__Group__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__DefaultValueRule__Group__1"
-
-
- // $ANTLR start "rule__DefaultValueRule__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1944:1: rule__DefaultValueRule__Group__1__Impl : ( (
- // rule__DefaultValueRule__DefaultAssignment_1 ) ) ;
- public final void rule__DefaultValueRule__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1948:1: ( ( ( rule__DefaultValueRule__DefaultAssignment_1 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1949:1: ( ( rule__DefaultValueRule__DefaultAssignment_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1949:1: ( ( rule__DefaultValueRule__DefaultAssignment_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1950:1: ( rule__DefaultValueRule__DefaultAssignment_1 )
- {
- before(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1951:1: ( rule__DefaultValueRule__DefaultAssignment_1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1951:2: rule__DefaultValueRule__DefaultAssignment_1
- {
- pushFollow(FOLLOW_rule__DefaultValueRule__DefaultAssignment_1_in_rule__DefaultValueRule__Group__1__Impl4001);
- rule__DefaultValueRule__DefaultAssignment_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__DefaultValueRule__Group__1__Impl"
-
-
- // $ANTLR start "rule__RealValue__Group_0__0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1965:1: rule__RealValue__Group_0__0 : rule__RealValue__Group_0__0__Impl
- // rule__RealValue__Group_0__1 ;
- public final void rule__RealValue__Group_0__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1969:1: ( rule__RealValue__Group_0__0__Impl rule__RealValue__Group_0__1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1970:2: rule__RealValue__Group_0__0__Impl rule__RealValue__Group_0__1
- {
- pushFollow(FOLLOW_rule__RealValue__Group_0__0__Impl_in_rule__RealValue__Group_0__04035);
- rule__RealValue__Group_0__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__RealValue__Group_0__1_in_rule__RealValue__Group_0__04038);
- rule__RealValue__Group_0__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_0__0"
-
-
- // $ANTLR start "rule__RealValue__Group_0__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1977:1: rule__RealValue__Group_0__0__Impl : ( ( rule__RealValue__IntegerAssignment_0_0 )
- // ) ;
- public final void rule__RealValue__Group_0__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1981:1: ( ( ( rule__RealValue__IntegerAssignment_0_0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1982:1: ( ( rule__RealValue__IntegerAssignment_0_0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1982:1: ( ( rule__RealValue__IntegerAssignment_0_0 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1983:1: ( rule__RealValue__IntegerAssignment_0_0 )
- {
- before(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1984:1: ( rule__RealValue__IntegerAssignment_0_0 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1984:2: rule__RealValue__IntegerAssignment_0_0
- {
- pushFollow(FOLLOW_rule__RealValue__IntegerAssignment_0_0_in_rule__RealValue__Group_0__0__Impl4065);
- rule__RealValue__IntegerAssignment_0_0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_0__0__Impl"
-
-
- // $ANTLR start "rule__RealValue__Group_0__1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1994:1: rule__RealValue__Group_0__1 : rule__RealValue__Group_0__1__Impl ;
- public final void rule__RealValue__Group_0__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1998:1: ( rule__RealValue__Group_0__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1999:2: rule__RealValue__Group_0__1__Impl
- {
- pushFollow(FOLLOW_rule__RealValue__Group_0__1__Impl_in_rule__RealValue__Group_0__14095);
- rule__RealValue__Group_0__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_0__1"
-
-
- // $ANTLR start "rule__RealValue__Group_0__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2005:1: rule__RealValue__Group_0__1__Impl : ( '.' ) ;
- public final void rule__RealValue__Group_0__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2009:1: ( ( '.' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2010:1: ( '.' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2010:1: ( '.' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2011:1: '.'
- {
- before(grammarAccess.getRealValueAccess().getFullStopKeyword_0_1());
- match(input, 34, FOLLOW_34_in_rule__RealValue__Group_0__1__Impl4123);
- after(grammarAccess.getRealValueAccess().getFullStopKeyword_0_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_0__1__Impl"
-
-
- // $ANTLR start "rule__RealValue__Group_1__0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2028:1: rule__RealValue__Group_1__0 : rule__RealValue__Group_1__0__Impl
- // rule__RealValue__Group_1__1 ;
- public final void rule__RealValue__Group_1__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2032:1: ( rule__RealValue__Group_1__0__Impl rule__RealValue__Group_1__1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2033:2: rule__RealValue__Group_1__0__Impl rule__RealValue__Group_1__1
- {
- pushFollow(FOLLOW_rule__RealValue__Group_1__0__Impl_in_rule__RealValue__Group_1__04158);
- rule__RealValue__Group_1__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__RealValue__Group_1__1_in_rule__RealValue__Group_1__04161);
- rule__RealValue__Group_1__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_1__0"
-
-
- // $ANTLR start "rule__RealValue__Group_1__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2040:1: rule__RealValue__Group_1__0__Impl : ( '.' ) ;
- public final void rule__RealValue__Group_1__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2044:1: ( ( '.' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2045:1: ( '.' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2045:1: ( '.' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2046:1: '.'
- {
- before(grammarAccess.getRealValueAccess().getFullStopKeyword_1_0());
- match(input, 34, FOLLOW_34_in_rule__RealValue__Group_1__0__Impl4189);
- after(grammarAccess.getRealValueAccess().getFullStopKeyword_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_1__0__Impl"
-
-
- // $ANTLR start "rule__RealValue__Group_1__1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2059:1: rule__RealValue__Group_1__1 : rule__RealValue__Group_1__1__Impl ;
- public final void rule__RealValue__Group_1__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2063:1: ( rule__RealValue__Group_1__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2064:2: rule__RealValue__Group_1__1__Impl
- {
- pushFollow(FOLLOW_rule__RealValue__Group_1__1__Impl_in_rule__RealValue__Group_1__14220);
- rule__RealValue__Group_1__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_1__1"
-
-
- // $ANTLR start "rule__RealValue__Group_1__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2070:1: rule__RealValue__Group_1__1__Impl : ( ( rule__RealValue__FractionAssignment_1_1 )
- // ) ;
- public final void rule__RealValue__Group_1__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2074:1: ( ( ( rule__RealValue__FractionAssignment_1_1 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2075:1: ( ( rule__RealValue__FractionAssignment_1_1 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2075:1: ( ( rule__RealValue__FractionAssignment_1_1 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2076:1: ( rule__RealValue__FractionAssignment_1_1 )
- {
- before(grammarAccess.getRealValueAccess().getFractionAssignment_1_1());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2077:1: ( rule__RealValue__FractionAssignment_1_1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2077:2: rule__RealValue__FractionAssignment_1_1
- {
- pushFollow(FOLLOW_rule__RealValue__FractionAssignment_1_1_in_rule__RealValue__Group_1__1__Impl4247);
- rule__RealValue__FractionAssignment_1_1();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRealValueAccess().getFractionAssignment_1_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_1__1__Impl"
-
-
- // $ANTLR start "rule__RealValue__Group_2__0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2091:1: rule__RealValue__Group_2__0 : rule__RealValue__Group_2__0__Impl
- // rule__RealValue__Group_2__1 ;
- public final void rule__RealValue__Group_2__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2095:1: ( rule__RealValue__Group_2__0__Impl rule__RealValue__Group_2__1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2096:2: rule__RealValue__Group_2__0__Impl rule__RealValue__Group_2__1
- {
- pushFollow(FOLLOW_rule__RealValue__Group_2__0__Impl_in_rule__RealValue__Group_2__04281);
- rule__RealValue__Group_2__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__RealValue__Group_2__1_in_rule__RealValue__Group_2__04284);
- rule__RealValue__Group_2__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_2__0"
-
-
- // $ANTLR start "rule__RealValue__Group_2__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2103:1: rule__RealValue__Group_2__0__Impl : ( ( rule__RealValue__IntegerAssignment_2_0 )
- // ) ;
- public final void rule__RealValue__Group_2__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2107:1: ( ( ( rule__RealValue__IntegerAssignment_2_0 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2108:1: ( ( rule__RealValue__IntegerAssignment_2_0 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2108:1: ( ( rule__RealValue__IntegerAssignment_2_0 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2109:1: ( rule__RealValue__IntegerAssignment_2_0 )
- {
- before(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2110:1: ( rule__RealValue__IntegerAssignment_2_0 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2110:2: rule__RealValue__IntegerAssignment_2_0
- {
- pushFollow(FOLLOW_rule__RealValue__IntegerAssignment_2_0_in_rule__RealValue__Group_2__0__Impl4311);
- rule__RealValue__IntegerAssignment_2_0();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_2__0__Impl"
-
-
- // $ANTLR start "rule__RealValue__Group_2__1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2120:1: rule__RealValue__Group_2__1 : rule__RealValue__Group_2__1__Impl
- // rule__RealValue__Group_2__2 ;
- public final void rule__RealValue__Group_2__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2124:1: ( rule__RealValue__Group_2__1__Impl rule__RealValue__Group_2__2 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2125:2: rule__RealValue__Group_2__1__Impl rule__RealValue__Group_2__2
- {
- pushFollow(FOLLOW_rule__RealValue__Group_2__1__Impl_in_rule__RealValue__Group_2__14341);
- rule__RealValue__Group_2__1__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__RealValue__Group_2__2_in_rule__RealValue__Group_2__14344);
- rule__RealValue__Group_2__2();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_2__1"
-
-
- // $ANTLR start "rule__RealValue__Group_2__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2132:1: rule__RealValue__Group_2__1__Impl : ( '.' ) ;
- public final void rule__RealValue__Group_2__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2136:1: ( ( '.' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2137:1: ( '.' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2137:1: ( '.' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2138:1: '.'
- {
- before(grammarAccess.getRealValueAccess().getFullStopKeyword_2_1());
- match(input, 34, FOLLOW_34_in_rule__RealValue__Group_2__1__Impl4372);
- after(grammarAccess.getRealValueAccess().getFullStopKeyword_2_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_2__1__Impl"
-
-
- // $ANTLR start "rule__RealValue__Group_2__2"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2151:1: rule__RealValue__Group_2__2 : rule__RealValue__Group_2__2__Impl ;
- public final void rule__RealValue__Group_2__2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2155:1: ( rule__RealValue__Group_2__2__Impl )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2156:2: rule__RealValue__Group_2__2__Impl
- {
- pushFollow(FOLLOW_rule__RealValue__Group_2__2__Impl_in_rule__RealValue__Group_2__24403);
- rule__RealValue__Group_2__2__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_2__2"
-
-
- // $ANTLR start "rule__RealValue__Group_2__2__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2162:1: rule__RealValue__Group_2__2__Impl : ( ( rule__RealValue__FractionAssignment_2_2 )
- // ) ;
- public final void rule__RealValue__Group_2__2__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2166:1: ( ( ( rule__RealValue__FractionAssignment_2_2 ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2167:1: ( ( rule__RealValue__FractionAssignment_2_2 ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2167:1: ( ( rule__RealValue__FractionAssignment_2_2 ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2168:1: ( rule__RealValue__FractionAssignment_2_2 )
- {
- before(grammarAccess.getRealValueAccess().getFractionAssignment_2_2());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2169:1: ( rule__RealValue__FractionAssignment_2_2 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2169:2: rule__RealValue__FractionAssignment_2_2
- {
- pushFollow(FOLLOW_rule__RealValue__FractionAssignment_2_2_in_rule__RealValue__Group_2__2__Impl4430);
- rule__RealValue__FractionAssignment_2_2();
-
- state._fsp--;
-
-
- }
-
- after(grammarAccess.getRealValueAccess().getFractionAssignment_2_2());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__Group_2__2__Impl"
-
-
- // $ANTLR start "rule__NullValue__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2185:1: rule__NullValue__Group__0 : rule__NullValue__Group__0__Impl
- // rule__NullValue__Group__1 ;
- public final void rule__NullValue__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2189:1: ( rule__NullValue__Group__0__Impl rule__NullValue__Group__1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2190:2: rule__NullValue__Group__0__Impl rule__NullValue__Group__1
- {
- pushFollow(FOLLOW_rule__NullValue__Group__0__Impl_in_rule__NullValue__Group__04466);
- rule__NullValue__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__NullValue__Group__1_in_rule__NullValue__Group__04469);
- rule__NullValue__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__NullValue__Group__0"
-
-
- // $ANTLR start "rule__NullValue__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2197:1: rule__NullValue__Group__0__Impl : ( () ) ;
- public final void rule__NullValue__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2201:1: ( ( () ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2202:1: ( () )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2202:1: ( () )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2203:1: ()
- {
- before(grammarAccess.getNullValueAccess().getNullValueAction_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2204:1: ()
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2206:1:
- {
- }
-
- after(grammarAccess.getNullValueAccess().getNullValueAction_0());
-
- }
-
-
- }
-
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__NullValue__Group__0__Impl"
-
-
- // $ANTLR start "rule__NullValue__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2216:1: rule__NullValue__Group__1 : rule__NullValue__Group__1__Impl ;
- public final void rule__NullValue__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2220:1: ( rule__NullValue__Group__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2221:2: rule__NullValue__Group__1__Impl
- {
- pushFollow(FOLLOW_rule__NullValue__Group__1__Impl_in_rule__NullValue__Group__14527);
- rule__NullValue__Group__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__NullValue__Group__1"
-
-
- // $ANTLR start "rule__NullValue__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2227:1: rule__NullValue__Group__1__Impl : ( 'null' ) ;
- public final void rule__NullValue__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2231:1: ( ( 'null' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2232:1: ( 'null' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2232:1: ( 'null' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2233:1: 'null'
- {
- before(grammarAccess.getNullValueAccess().getNullKeyword_1());
- match(input, 35, FOLLOW_35_in_rule__NullValue__Group__1__Impl4555);
- after(grammarAccess.getNullValueAccess().getNullKeyword_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__NullValue__Group__1__Impl"
-
-
- // $ANTLR start "rule__NoValue__Group__0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2250:1: rule__NoValue__Group__0 : rule__NoValue__Group__0__Impl rule__NoValue__Group__1 ;
- public final void rule__NoValue__Group__0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2254:1: ( rule__NoValue__Group__0__Impl rule__NoValue__Group__1 )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2255:2: rule__NoValue__Group__0__Impl rule__NoValue__Group__1
- {
- pushFollow(FOLLOW_rule__NoValue__Group__0__Impl_in_rule__NoValue__Group__04590);
- rule__NoValue__Group__0__Impl();
-
- state._fsp--;
-
- pushFollow(FOLLOW_rule__NoValue__Group__1_in_rule__NoValue__Group__04593);
- rule__NoValue__Group__1();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__NoValue__Group__0"
-
-
- // $ANTLR start "rule__NoValue__Group__0__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2262:1: rule__NoValue__Group__0__Impl : ( () ) ;
- public final void rule__NoValue__Group__0__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2266:1: ( ( () ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2267:1: ( () )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2267:1: ( () )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2268:1: ()
- {
- before(grammarAccess.getNoValueAccess().getNoValueAction_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2269:1: ()
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2271:1:
- {
- }
-
- after(grammarAccess.getNoValueAccess().getNoValueAction_0());
-
- }
-
-
- }
-
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__NoValue__Group__0__Impl"
-
-
- // $ANTLR start "rule__NoValue__Group__1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2281:1: rule__NoValue__Group__1 : rule__NoValue__Group__1__Impl ;
- public final void rule__NoValue__Group__1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2285:1: ( rule__NoValue__Group__1__Impl )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2286:2: rule__NoValue__Group__1__Impl
- {
- pushFollow(FOLLOW_rule__NoValue__Group__1__Impl_in_rule__NoValue__Group__14651);
- rule__NoValue__Group__1__Impl();
-
- state._fsp--;
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__NoValue__Group__1"
-
-
- // $ANTLR start "rule__NoValue__Group__1__Impl"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2292:1: rule__NoValue__Group__1__Impl : ( 'none' ) ;
- public final void rule__NoValue__Group__1__Impl() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2296:1: ( ( 'none' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2297:1: ( 'none' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2297:1: ( 'none' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2298:1: 'none'
- {
- before(grammarAccess.getNoValueAccess().getNoneKeyword_1());
- match(input, 36, FOLLOW_36_in_rule__NoValue__Group__1__Impl4679);
- after(grammarAccess.getNoValueAccess().getNoneKeyword_1());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__NoValue__Group__1__Impl"
-
-
- // $ANTLR start "rule__PropertyRule__VisibilityAssignment_0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2316:1: rule__PropertyRule__VisibilityAssignment_0 : ( ruleVisibilityRule ) ;
- public final void rule__PropertyRule__VisibilityAssignment_0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2320:1: ( ( ruleVisibilityRule ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2321:1: ( ruleVisibilityRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2321:1: ( ruleVisibilityRule )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2322:1: ruleVisibilityRule
- {
- before(grammarAccess.getPropertyRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0());
- pushFollow(FOLLOW_ruleVisibilityRule_in_rule__PropertyRule__VisibilityAssignment_04719);
- ruleVisibilityRule();
-
- state._fsp--;
-
- after(grammarAccess.getPropertyRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__VisibilityAssignment_0"
-
-
- // $ANTLR start "rule__PropertyRule__DerivedAssignment_1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2331:1: rule__PropertyRule__DerivedAssignment_1 : ( ( '/' ) ) ;
- public final void rule__PropertyRule__DerivedAssignment_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2335:1: ( ( ( '/' ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2336:1: ( ( '/' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2336:1: ( ( '/' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2337:1: ( '/' )
- {
- before(grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2338:1: ( '/' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2339:1: '/'
- {
- before(grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0());
- match(input, 37, FOLLOW_37_in_rule__PropertyRule__DerivedAssignment_14755);
- after(grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0());
-
- }
-
- after(grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__DerivedAssignment_1"
-
-
- // $ANTLR start "rule__PropertyRule__NameAssignment_2"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2354:1: rule__PropertyRule__NameAssignment_2 : ( RULE_ID ) ;
- public final void rule__PropertyRule__NameAssignment_2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2358:1: ( ( RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2359:1: ( RULE_ID )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2359:1: ( RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2360:1: RULE_ID
- {
- before(grammarAccess.getPropertyRuleAccess().getNameIDTerminalRuleCall_2_0());
- match(input, RULE_ID, FOLLOW_RULE_ID_in_rule__PropertyRule__NameAssignment_24794);
- after(grammarAccess.getPropertyRuleAccess().getNameIDTerminalRuleCall_2_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__NameAssignment_2"
-
-
- // $ANTLR start "rule__PropertyRule__TypeAssignment_3_1_0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2369:1: rule__PropertyRule__TypeAssignment_3_1_0 : ( ruleTypeRule ) ;
- public final void rule__PropertyRule__TypeAssignment_3_1_0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2373:1: ( ( ruleTypeRule ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2374:1: ( ruleTypeRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2374:1: ( ruleTypeRule )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2375:1: ruleTypeRule
- {
- before(grammarAccess.getPropertyRuleAccess().getTypeTypeRuleParserRuleCall_3_1_0_0());
- pushFollow(FOLLOW_ruleTypeRule_in_rule__PropertyRule__TypeAssignment_3_1_04825);
- ruleTypeRule();
-
- state._fsp--;
-
- after(grammarAccess.getPropertyRuleAccess().getTypeTypeRuleParserRuleCall_3_1_0_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__TypeAssignment_3_1_0"
-
-
- // $ANTLR start "rule__PropertyRule__TypeUndefinedAssignment_3_1_1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2384:1: rule__PropertyRule__TypeUndefinedAssignment_3_1_1 : ( ( '<Undefined>' ) ) ;
- public final void rule__PropertyRule__TypeUndefinedAssignment_3_1_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2388:1: ( ( ( '<Undefined>' ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2389:1: ( ( '<Undefined>' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2389:1: ( ( '<Undefined>' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2390:1: ( '<Undefined>' )
- {
- before(grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2391:1: ( '<Undefined>' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2392:1: '<Undefined>'
- {
- before(grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0());
- match(input, 38, FOLLOW_38_in_rule__PropertyRule__TypeUndefinedAssignment_3_1_14861);
- after(grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0());
-
- }
-
- after(grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__TypeUndefinedAssignment_3_1_1"
-
-
- // $ANTLR start "rule__PropertyRule__MultiplicityAssignment_4"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2407:1: rule__PropertyRule__MultiplicityAssignment_4 : ( ruleMultiplicityRule ) ;
- public final void rule__PropertyRule__MultiplicityAssignment_4() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2411:1: ( ( ruleMultiplicityRule ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2412:1: ( ruleMultiplicityRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2412:1: ( ruleMultiplicityRule )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2413:1: ruleMultiplicityRule
- {
- before(grammarAccess.getPropertyRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0());
- pushFollow(FOLLOW_ruleMultiplicityRule_in_rule__PropertyRule__MultiplicityAssignment_44900);
- ruleMultiplicityRule();
-
- state._fsp--;
-
- after(grammarAccess.getPropertyRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__MultiplicityAssignment_4"
-
-
- // $ANTLR start "rule__PropertyRule__ModifiersAssignment_5"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2422:1: rule__PropertyRule__ModifiersAssignment_5 : ( ruleModifiersRule ) ;
- public final void rule__PropertyRule__ModifiersAssignment_5() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2426:1: ( ( ruleModifiersRule ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2427:1: ( ruleModifiersRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2427:1: ( ruleModifiersRule )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2428:1: ruleModifiersRule
- {
- before(grammarAccess.getPropertyRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0());
- pushFollow(FOLLOW_ruleModifiersRule_in_rule__PropertyRule__ModifiersAssignment_54931);
- ruleModifiersRule();
-
- state._fsp--;
-
- after(grammarAccess.getPropertyRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__ModifiersAssignment_5"
-
-
- // $ANTLR start "rule__PropertyRule__DefaultAssignment_6"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2437:1: rule__PropertyRule__DefaultAssignment_6 : ( ruleDefaultValueRule ) ;
- public final void rule__PropertyRule__DefaultAssignment_6() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2441:1: ( ( ruleDefaultValueRule ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2442:1: ( ruleDefaultValueRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2442:1: ( ruleDefaultValueRule )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2443:1: ruleDefaultValueRule
- {
- before(grammarAccess.getPropertyRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0());
- pushFollow(FOLLOW_ruleDefaultValueRule_in_rule__PropertyRule__DefaultAssignment_64962);
- ruleDefaultValueRule();
-
- state._fsp--;
-
- after(grammarAccess.getPropertyRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__PropertyRule__DefaultAssignment_6"
-
-
- // $ANTLR start "rule__VisibilityRule__VisibilityAssignment"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2452:1: rule__VisibilityRule__VisibilityAssignment : ( ruleVisibilityKind ) ;
- public final void rule__VisibilityRule__VisibilityAssignment() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2456:1: ( ( ruleVisibilityKind ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2457:1: ( ruleVisibilityKind )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2457:1: ( ruleVisibilityKind )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2458:1: ruleVisibilityKind
- {
- before(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0());
- pushFollow(FOLLOW_ruleVisibilityKind_in_rule__VisibilityRule__VisibilityAssignment4993);
- ruleVisibilityKind();
-
- state._fsp--;
-
- after(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__VisibilityRule__VisibilityAssignment"
-
-
- // $ANTLR start "rule__TypeRule__PathAssignment_0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2467:1: rule__TypeRule__PathAssignment_0 : ( ruleQualifiedName ) ;
- public final void rule__TypeRule__PathAssignment_0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2471:1: ( ( ruleQualifiedName ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2472:1: ( ruleQualifiedName )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2472:1: ( ruleQualifiedName )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2473:1: ruleQualifiedName
- {
- before(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0());
- pushFollow(FOLLOW_ruleQualifiedName_in_rule__TypeRule__PathAssignment_05024);
- ruleQualifiedName();
-
- state._fsp--;
-
- after(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__TypeRule__PathAssignment_0"
-
-
- // $ANTLR start "rule__TypeRule__TypeAssignment_1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2482:1: rule__TypeRule__TypeAssignment_1 : ( ( RULE_ID ) ) ;
- public final void rule__TypeRule__TypeAssignment_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2486:1: ( ( ( RULE_ID ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2487:1: ( ( RULE_ID ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2487:1: ( ( RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2488:1: ( RULE_ID )
- {
- before(grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2489:1: ( RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2490:1: RULE_ID
- {
- before(grammarAccess.getTypeRuleAccess().getTypeClassifierIDTerminalRuleCall_1_0_1());
- match(input, RULE_ID, FOLLOW_RULE_ID_in_rule__TypeRule__TypeAssignment_15059);
- after(grammarAccess.getTypeRuleAccess().getTypeClassifierIDTerminalRuleCall_1_0_1());
-
- }
-
- after(grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__TypeRule__TypeAssignment_1"
-
-
- // $ANTLR start "rule__QualifiedName__PathAssignment_0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2501:1: rule__QualifiedName__PathAssignment_0 : ( ( RULE_ID ) ) ;
- public final void rule__QualifiedName__PathAssignment_0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2505:1: ( ( ( RULE_ID ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2506:1: ( ( RULE_ID ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2506:1: ( ( RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2507:1: ( RULE_ID )
- {
- before(grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2508:1: ( RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2509:1: RULE_ID
- {
- before(grammarAccess.getQualifiedNameAccess().getPathNamespaceIDTerminalRuleCall_0_0_1());
- match(input, RULE_ID, FOLLOW_RULE_ID_in_rule__QualifiedName__PathAssignment_05098);
- after(grammarAccess.getQualifiedNameAccess().getPathNamespaceIDTerminalRuleCall_0_0_1());
-
- }
-
- after(grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__QualifiedName__PathAssignment_0"
-
-
- // $ANTLR start "rule__QualifiedName__RemainingAssignment_2"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2520:1: rule__QualifiedName__RemainingAssignment_2 : ( ruleQualifiedName ) ;
- public final void rule__QualifiedName__RemainingAssignment_2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2524:1: ( ( ruleQualifiedName ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2525:1: ( ruleQualifiedName )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2525:1: ( ruleQualifiedName )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2526:1: ruleQualifiedName
- {
- before(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0());
- pushFollow(FOLLOW_ruleQualifiedName_in_rule__QualifiedName__RemainingAssignment_25133);
- ruleQualifiedName();
-
- state._fsp--;
-
- after(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__QualifiedName__RemainingAssignment_2"
-
-
- // $ANTLR start "rule__MultiplicityRule__BoundsAssignment_1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2535:1: rule__MultiplicityRule__BoundsAssignment_1 : ( ruleBoundSpecification ) ;
- public final void rule__MultiplicityRule__BoundsAssignment_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2539:1: ( ( ruleBoundSpecification ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2540:1: ( ruleBoundSpecification )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2540:1: ( ruleBoundSpecification )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2541:1: ruleBoundSpecification
- {
- before(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0());
- pushFollow(FOLLOW_ruleBoundSpecification_in_rule__MultiplicityRule__BoundsAssignment_15164);
- ruleBoundSpecification();
-
- state._fsp--;
-
- after(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__BoundsAssignment_1"
-
-
- // $ANTLR start "rule__MultiplicityRule__BoundsAssignment_2_1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2550:1: rule__MultiplicityRule__BoundsAssignment_2_1 : ( ruleBoundSpecification ) ;
- public final void rule__MultiplicityRule__BoundsAssignment_2_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2554:1: ( ( ruleBoundSpecification ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2555:1: ( ruleBoundSpecification )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2555:1: ( ruleBoundSpecification )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2556:1: ruleBoundSpecification
- {
- before(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0());
- pushFollow(FOLLOW_ruleBoundSpecification_in_rule__MultiplicityRule__BoundsAssignment_2_15195);
- ruleBoundSpecification();
-
- state._fsp--;
-
- after(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__MultiplicityRule__BoundsAssignment_2_1"
-
-
- // $ANTLR start "rule__BoundSpecification__ValueAssignment"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2565:1: rule__BoundSpecification__ValueAssignment : ( ruleUnlimitedLiteral ) ;
- public final void rule__BoundSpecification__ValueAssignment() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2569:1: ( ( ruleUnlimitedLiteral ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2570:1: ( ruleUnlimitedLiteral )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2570:1: ( ruleUnlimitedLiteral )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2571:1: ruleUnlimitedLiteral
- {
- before(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0());
- pushFollow(FOLLOW_ruleUnlimitedLiteral_in_rule__BoundSpecification__ValueAssignment5226);
- ruleUnlimitedLiteral();
-
- state._fsp--;
-
- after(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__BoundSpecification__ValueAssignment"
-
-
- // $ANTLR start "rule__ModifiersRule__ValuesAssignment_2_0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2580:1: rule__ModifiersRule__ValuesAssignment_2_0 : ( ruleModifierSpecification ) ;
- public final void rule__ModifiersRule__ValuesAssignment_2_0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2584:1: ( ( ruleModifierSpecification ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2585:1: ( ruleModifierSpecification )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2585:1: ( ruleModifierSpecification )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2586:1: ruleModifierSpecification
- {
- before(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0());
- pushFollow(FOLLOW_ruleModifierSpecification_in_rule__ModifiersRule__ValuesAssignment_2_05257);
- ruleModifierSpecification();
-
- state._fsp--;
-
- after(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__ValuesAssignment_2_0"
-
-
- // $ANTLR start "rule__ModifiersRule__ValuesAssignment_2_1_1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2595:1: rule__ModifiersRule__ValuesAssignment_2_1_1 : ( ruleModifierSpecification ) ;
- public final void rule__ModifiersRule__ValuesAssignment_2_1_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2599:1: ( ( ruleModifierSpecification ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2600:1: ( ruleModifierSpecification )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2600:1: ( ruleModifierSpecification )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2601:1: ruleModifierSpecification
- {
- before(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0());
- pushFollow(FOLLOW_ruleModifierSpecification_in_rule__ModifiersRule__ValuesAssignment_2_1_15288);
- ruleModifierSpecification();
-
- state._fsp--;
-
- after(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifiersRule__ValuesAssignment_2_1_1"
-
-
- // $ANTLR start "rule__ModifierSpecification__ValueAssignment_0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2610:1: rule__ModifierSpecification__ValueAssignment_0 : ( ruleModifierKind ) ;
- public final void rule__ModifierSpecification__ValueAssignment_0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2614:1: ( ( ruleModifierKind ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2615:1: ( ruleModifierKind )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2615:1: ( ruleModifierKind )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2616:1: ruleModifierKind
- {
- before(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0());
- pushFollow(FOLLOW_ruleModifierKind_in_rule__ModifierSpecification__ValueAssignment_05319);
- ruleModifierKind();
-
- state._fsp--;
-
- after(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifierSpecification__ValueAssignment_0"
-
-
- // $ANTLR start "rule__ModifierSpecification__RedefinesAssignment_1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2625:1: rule__ModifierSpecification__RedefinesAssignment_1 : ( ruleRedefinesRule ) ;
- public final void rule__ModifierSpecification__RedefinesAssignment_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2629:1: ( ( ruleRedefinesRule ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2630:1: ( ruleRedefinesRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2630:1: ( ruleRedefinesRule )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2631:1: ruleRedefinesRule
- {
- before(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0());
- pushFollow(FOLLOW_ruleRedefinesRule_in_rule__ModifierSpecification__RedefinesAssignment_15350);
- ruleRedefinesRule();
-
- state._fsp--;
-
- after(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifierSpecification__RedefinesAssignment_1"
-
-
- // $ANTLR start "rule__ModifierSpecification__SubsetsAssignment_2"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2640:1: rule__ModifierSpecification__SubsetsAssignment_2 : ( ruleSubsetsRule ) ;
- public final void rule__ModifierSpecification__SubsetsAssignment_2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2644:1: ( ( ruleSubsetsRule ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2645:1: ( ruleSubsetsRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2645:1: ( ruleSubsetsRule )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2646:1: ruleSubsetsRule
- {
- before(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0());
- pushFollow(FOLLOW_ruleSubsetsRule_in_rule__ModifierSpecification__SubsetsAssignment_25381);
- ruleSubsetsRule();
-
- state._fsp--;
-
- after(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__ModifierSpecification__SubsetsAssignment_2"
-
-
- // $ANTLR start "rule__RedefinesRule__PropertyAssignment_1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2655:1: rule__RedefinesRule__PropertyAssignment_1 : ( ( RULE_ID ) ) ;
- public final void rule__RedefinesRule__PropertyAssignment_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2659:1: ( ( ( RULE_ID ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2660:1: ( ( RULE_ID ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2660:1: ( ( RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2661:1: ( RULE_ID )
- {
- before(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyCrossReference_1_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2662:1: ( RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2663:1: RULE_ID
- {
- before(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1());
- match(input, RULE_ID, FOLLOW_RULE_ID_in_rule__RedefinesRule__PropertyAssignment_15416);
- after(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1());
-
- }
-
- after(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyCrossReference_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RedefinesRule__PropertyAssignment_1"
-
-
- // $ANTLR start "rule__SubsetsRule__PropertyAssignment_1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2674:1: rule__SubsetsRule__PropertyAssignment_1 : ( ( RULE_ID ) ) ;
- public final void rule__SubsetsRule__PropertyAssignment_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2678:1: ( ( ( RULE_ID ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2679:1: ( ( RULE_ID ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2679:1: ( ( RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2680:1: ( RULE_ID )
- {
- before(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyCrossReference_1_0());
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2681:1: ( RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2682:1: RULE_ID
- {
- before(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1());
- match(input, RULE_ID, FOLLOW_RULE_ID_in_rule__SubsetsRule__PropertyAssignment_15455);
- after(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1());
-
- }
-
- after(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyCrossReference_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__SubsetsRule__PropertyAssignment_1"
-
-
- // $ANTLR start "rule__DefaultValueRule__DefaultAssignment_1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2693:1: rule__DefaultValueRule__DefaultAssignment_1 : ( ruleValue ) ;
- public final void rule__DefaultValueRule__DefaultAssignment_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2697:1: ( ( ruleValue ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2698:1: ( ruleValue )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2698:1: ( ruleValue )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2699:1: ruleValue
- {
- before(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0());
- pushFollow(FOLLOW_ruleValue_in_rule__DefaultValueRule__DefaultAssignment_15490);
- ruleValue();
-
- state._fsp--;
-
- after(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__DefaultValueRule__DefaultAssignment_1"
-
-
- // $ANTLR start "rule__IntValue__LiteralIntegerAssignment"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2708:1: rule__IntValue__LiteralIntegerAssignment : ( RULE_INT ) ;
- public final void rule__IntValue__LiteralIntegerAssignment() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2712:1: ( ( RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2713:1: ( RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2713:1: ( RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2714:1: RULE_INT
- {
- before(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0());
- match(input, RULE_INT, FOLLOW_RULE_INT_in_rule__IntValue__LiteralIntegerAssignment5521);
- after(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__IntValue__LiteralIntegerAssignment"
-
-
- // $ANTLR start "rule__StringValue__LiteralStringAssignment"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2723:1: rule__StringValue__LiteralStringAssignment : ( RULE_STRING ) ;
- public final void rule__StringValue__LiteralStringAssignment() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2727:1: ( ( RULE_STRING ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2728:1: ( RULE_STRING )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2728:1: ( RULE_STRING )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2729:1: RULE_STRING
- {
- before(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0());
- match(input, RULE_STRING, FOLLOW_RULE_STRING_in_rule__StringValue__LiteralStringAssignment5552);
- after(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__StringValue__LiteralStringAssignment"
-
-
- // $ANTLR start "rule__BooleanValue__LiteralBooleanAssignment"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2738:1: rule__BooleanValue__LiteralBooleanAssignment : ( ruleBooleanLiterals ) ;
- public final void rule__BooleanValue__LiteralBooleanAssignment() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2742:1: ( ( ruleBooleanLiterals ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2743:1: ( ruleBooleanLiterals )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2743:1: ( ruleBooleanLiterals )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2744:1: ruleBooleanLiterals
- {
- before(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0());
- pushFollow(FOLLOW_ruleBooleanLiterals_in_rule__BooleanValue__LiteralBooleanAssignment5583);
- ruleBooleanLiterals();
-
- state._fsp--;
-
- after(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__BooleanValue__LiteralBooleanAssignment"
-
-
- // $ANTLR start "rule__RealValue__IntegerAssignment_0_0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2753:1: rule__RealValue__IntegerAssignment_0_0 : ( RULE_INT ) ;
- public final void rule__RealValue__IntegerAssignment_0_0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2757:1: ( ( RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2758:1: ( RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2758:1: ( RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2759:1: RULE_INT
- {
- before(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0());
- match(input, RULE_INT, FOLLOW_RULE_INT_in_rule__RealValue__IntegerAssignment_0_05614);
- after(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__IntegerAssignment_0_0"
-
-
- // $ANTLR start "rule__RealValue__FractionAssignment_1_1"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2768:1: rule__RealValue__FractionAssignment_1_1 : ( RULE_INT ) ;
- public final void rule__RealValue__FractionAssignment_1_1() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2772:1: ( ( RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2773:1: ( RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2773:1: ( RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2774:1: RULE_INT
- {
- before(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0());
- match(input, RULE_INT, FOLLOW_RULE_INT_in_rule__RealValue__FractionAssignment_1_15645);
- after(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__FractionAssignment_1_1"
-
-
- // $ANTLR start "rule__RealValue__IntegerAssignment_2_0"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2783:1: rule__RealValue__IntegerAssignment_2_0 : ( RULE_INT ) ;
- public final void rule__RealValue__IntegerAssignment_2_0() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2787:1: ( ( RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2788:1: ( RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2788:1: ( RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2789:1: RULE_INT
- {
- before(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0());
- match(input, RULE_INT, FOLLOW_RULE_INT_in_rule__RealValue__IntegerAssignment_2_05676);
- after(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__IntegerAssignment_2_0"
-
-
- // $ANTLR start "rule__RealValue__FractionAssignment_2_2"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2798:1: rule__RealValue__FractionAssignment_2_2 : ( RULE_INT ) ;
- public final void rule__RealValue__FractionAssignment_2_2() throws RecognitionException {
-
- int stackSize = keepStackSize();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2802:1: ( ( RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2803:1: ( RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2803:1: ( RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2804:1: RULE_INT
- {
- before(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0());
- match(input, RULE_INT, FOLLOW_RULE_INT_in_rule__RealValue__FractionAssignment_2_25707);
- after(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0());
-
- }
-
-
- }
-
- } catch (RecognitionException re) {
- reportError(re);
- recover(input, re);
- } finally {
-
- restoreStackSize(stackSize);
-
- }
- return;
- }
-
- // $ANTLR end "rule__RealValue__FractionAssignment_2_2"
-
- // Delegated rules
-
-
-
-
- public static final BitSet FOLLOW_rulePropertyRule_in_entryRulePropertyRule61 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRulePropertyRule68 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__Group__0_in_rulePropertyRule94 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleVisibilityRule_in_entryRuleVisibilityRule121 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleVisibilityRule128 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__VisibilityRule__VisibilityAssignment_in_ruleVisibilityRule154 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleTypeRule_in_entryRuleTypeRule181 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleTypeRule188 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__TypeRule__Group__0_in_ruleTypeRule214 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName241 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleQualifiedName248 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__QualifiedName__Group__0_in_ruleQualifiedName274 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleMultiplicityRule_in_entryRuleMultiplicityRule301 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleMultiplicityRule308 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group__0_in_ruleMultiplicityRule334 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification361 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleBoundSpecification368 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__BoundSpecification__ValueAssignment_in_ruleBoundSpecification394 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral421 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleUnlimitedLiteral428 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__UnlimitedLiteral__Alternatives_in_ruleUnlimitedLiteral454 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleModifiersRule_in_entryRuleModifiersRule481 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleModifiersRule488 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group__0_in_ruleModifiersRule514 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleModifierSpecification_in_entryRuleModifierSpecification541 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleModifierSpecification548 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifierSpecification__Alternatives_in_ruleModifierSpecification574 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleRedefinesRule_in_entryRuleRedefinesRule601 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleRedefinesRule608 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RedefinesRule__Group__0_in_ruleRedefinesRule634 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleSubsetsRule_in_entryRuleSubsetsRule661 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleSubsetsRule668 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__SubsetsRule__Group__0_in_ruleSubsetsRule694 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleDefaultValueRule_in_entryRuleDefaultValueRule721 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleDefaultValueRule728 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__DefaultValueRule__Group__0_in_ruleDefaultValueRule754 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleValue_in_entryRuleValue781 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleValue788 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__Value__Alternatives_in_ruleValue814 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleIntValue_in_entryRuleIntValue841 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleIntValue848 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__IntValue__LiteralIntegerAssignment_in_ruleIntValue874 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleStringValue_in_entryRuleStringValue901 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleStringValue908 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__StringValue__LiteralStringAssignment_in_ruleStringValue934 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBooleanValue_in_entryRuleBooleanValue961 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleBooleanValue968 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__BooleanValue__LiteralBooleanAssignment_in_ruleBooleanValue994 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleRealValue_in_entryRuleRealValue1021 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleRealValue1028 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Alternatives_in_ruleRealValue1054 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleNullValue_in_entryRuleNullValue1081 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleNullValue1088 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__NullValue__Group__0_in_ruleNullValue1114 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleNoValue_in_entryRuleNoValue1141 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleNoValue1148 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__NoValue__Group__0_in_ruleNoValue1174 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__VisibilityKind__Alternatives_in_ruleVisibilityKind1211 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifierKind__Alternatives_in_ruleModifierKind1247 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__BooleanLiterals__Alternatives_in_ruleBooleanLiterals1283 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__TypeAssignment_3_1_0_in_rule__PropertyRule__Alternatives_3_11318 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__TypeUndefinedAssignment_3_1_1_in_rule__PropertyRule__Alternatives_3_11336 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_rule__UnlimitedLiteral__Alternatives1369 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_12_in_rule__UnlimitedLiteral__Alternatives1387 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifierSpecification__ValueAssignment_0_in_rule__ModifierSpecification__Alternatives1421 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifierSpecification__RedefinesAssignment_1_in_rule__ModifierSpecification__Alternatives1439 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifierSpecification__SubsetsAssignment_2_in_rule__ModifierSpecification__Alternatives1457 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleIntValue_in_rule__Value__Alternatives1490 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleStringValue_in_rule__Value__Alternatives1507 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBooleanValue_in_rule__Value__Alternatives1524 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleRealValue_in_rule__Value__Alternatives1541 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleNullValue_in_rule__Value__Alternatives1558 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleNoValue_in_rule__Value__Alternatives1575 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_0__0_in_rule__RealValue__Alternatives1607 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_1__0_in_rule__RealValue__Alternatives1625 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_2__0_in_rule__RealValue__Alternatives1643 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_13_in_rule__VisibilityKind__Alternatives1677 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_14_in_rule__VisibilityKind__Alternatives1698 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_15_in_rule__VisibilityKind__Alternatives1719 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_16_in_rule__VisibilityKind__Alternatives1740 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_17_in_rule__ModifierKind__Alternatives1776 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_18_in_rule__ModifierKind__Alternatives1797 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_19_in_rule__ModifierKind__Alternatives1818 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_20_in_rule__ModifierKind__Alternatives1839 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_21_in_rule__BooleanLiterals__Alternatives1875 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_22_in_rule__BooleanLiterals__Alternatives1896 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__Group__0__Impl_in_rule__PropertyRule__Group__01929 = new BitSet(new long[] { 0x0000002000000020L });
- public static final BitSet FOLLOW_rule__PropertyRule__Group__1_in_rule__PropertyRule__Group__01932 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__VisibilityAssignment_0_in_rule__PropertyRule__Group__0__Impl1959 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__Group__1__Impl_in_rule__PropertyRule__Group__11990 = new BitSet(new long[] { 0x0000002000000020L });
- public static final BitSet FOLLOW_rule__PropertyRule__Group__2_in_rule__PropertyRule__Group__11993 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__DerivedAssignment_1_in_rule__PropertyRule__Group__1__Impl2020 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__Group__2__Impl_in_rule__PropertyRule__Group__22051 = new BitSet(new long[] { 0x0000000212800000L });
- public static final BitSet FOLLOW_rule__PropertyRule__Group__3_in_rule__PropertyRule__Group__22054 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__NameAssignment_2_in_rule__PropertyRule__Group__2__Impl2081 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__Group__3__Impl_in_rule__PropertyRule__Group__32111 = new BitSet(new long[] { 0x0000000212800000L });
- public static final BitSet FOLLOW_rule__PropertyRule__Group__4_in_rule__PropertyRule__Group__32114 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__Group_3__0_in_rule__PropertyRule__Group__3__Impl2141 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__Group__4__Impl_in_rule__PropertyRule__Group__42172 = new BitSet(new long[] { 0x0000000212800000L });
- public static final BitSet FOLLOW_rule__PropertyRule__Group__5_in_rule__PropertyRule__Group__42175 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__MultiplicityAssignment_4_in_rule__PropertyRule__Group__4__Impl2202 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__Group__5__Impl_in_rule__PropertyRule__Group__52233 = new BitSet(new long[] { 0x0000000212800000L });
- public static final BitSet FOLLOW_rule__PropertyRule__Group__6_in_rule__PropertyRule__Group__52236 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__ModifiersAssignment_5_in_rule__PropertyRule__Group__5__Impl2263 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__Group__6__Impl_in_rule__PropertyRule__Group__62294 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__DefaultAssignment_6_in_rule__PropertyRule__Group__6__Impl2321 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__Group_3__0__Impl_in_rule__PropertyRule__Group_3__02366 = new BitSet(new long[] { 0x0000004000000020L });
- public static final BitSet FOLLOW_rule__PropertyRule__Group_3__1_in_rule__PropertyRule__Group_3__02369 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_23_in_rule__PropertyRule__Group_3__0__Impl2397 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__Group_3__1__Impl_in_rule__PropertyRule__Group_3__12428 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__PropertyRule__Alternatives_3_1_in_rule__PropertyRule__Group_3__1__Impl2455 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__TypeRule__Group__0__Impl_in_rule__TypeRule__Group__02489 = new BitSet(new long[] { 0x0000000000000020L });
- public static final BitSet FOLLOW_rule__TypeRule__Group__1_in_rule__TypeRule__Group__02492 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__TypeRule__PathAssignment_0_in_rule__TypeRule__Group__0__Impl2519 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__TypeRule__Group__1__Impl_in_rule__TypeRule__Group__12550 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__TypeRule__TypeAssignment_1_in_rule__TypeRule__Group__1__Impl2577 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__QualifiedName__Group__0__Impl_in_rule__QualifiedName__Group__02611 = new BitSet(new long[] { 0x0000000001000000L });
- public static final BitSet FOLLOW_rule__QualifiedName__Group__1_in_rule__QualifiedName__Group__02614 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__QualifiedName__PathAssignment_0_in_rule__QualifiedName__Group__0__Impl2641 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__QualifiedName__Group__1__Impl_in_rule__QualifiedName__Group__12671 = new BitSet(new long[] { 0x0000000000000020L });
- public static final BitSet FOLLOW_rule__QualifiedName__Group__2_in_rule__QualifiedName__Group__12674 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_24_in_rule__QualifiedName__Group__1__Impl2702 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__QualifiedName__Group__2__Impl_in_rule__QualifiedName__Group__22733 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__QualifiedName__RemainingAssignment_2_in_rule__QualifiedName__Group__2__Impl2760 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group__0__Impl_in_rule__MultiplicityRule__Group__02797 = new BitSet(new long[] { 0x0000000000001010L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group__1_in_rule__MultiplicityRule__Group__02800 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_25_in_rule__MultiplicityRule__Group__0__Impl2828 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group__1__Impl_in_rule__MultiplicityRule__Group__12859 = new BitSet(new long[] { 0x000000000C000000L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group__2_in_rule__MultiplicityRule__Group__12862 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__BoundsAssignment_1_in_rule__MultiplicityRule__Group__1__Impl2889 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group__2__Impl_in_rule__MultiplicityRule__Group__22919 = new BitSet(new long[] { 0x000000000C000000L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group__3_in_rule__MultiplicityRule__Group__22922 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group_2__0_in_rule__MultiplicityRule__Group__2__Impl2949 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group__3__Impl_in_rule__MultiplicityRule__Group__32980 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_26_in_rule__MultiplicityRule__Group__3__Impl3008 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group_2__0__Impl_in_rule__MultiplicityRule__Group_2__03047 = new BitSet(new long[] { 0x0000000000001010L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group_2__1_in_rule__MultiplicityRule__Group_2__03050 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_27_in_rule__MultiplicityRule__Group_2__0__Impl3078 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__Group_2__1__Impl_in_rule__MultiplicityRule__Group_2__13109 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__MultiplicityRule__BoundsAssignment_2_1_in_rule__MultiplicityRule__Group_2__1__Impl3136 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group__0__Impl_in_rule__ModifiersRule__Group__03170 = new BitSet(new long[] { 0x0000000010000000L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group__1_in_rule__ModifiersRule__Group__03173 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group__1__Impl_in_rule__ModifiersRule__Group__13231 = new BitSet(new long[] { 0x00000001A01E0000L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group__2_in_rule__ModifiersRule__Group__13234 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_28_in_rule__ModifiersRule__Group__1__Impl3262 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group__2__Impl_in_rule__ModifiersRule__Group__23293 = new BitSet(new long[] { 0x00000001A01E0000L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group__3_in_rule__ModifiersRule__Group__23296 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group_2__0_in_rule__ModifiersRule__Group__2__Impl3323 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group__3__Impl_in_rule__ModifiersRule__Group__33354 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_29_in_rule__ModifiersRule__Group__3__Impl3382 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group_2__0__Impl_in_rule__ModifiersRule__Group_2__03421 = new BitSet(new long[] { 0x0000000040000000L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group_2__1_in_rule__ModifiersRule__Group_2__03424 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__ValuesAssignment_2_0_in_rule__ModifiersRule__Group_2__0__Impl3451 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group_2__1__Impl_in_rule__ModifiersRule__Group_2__13481 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group_2_1__0_in_rule__ModifiersRule__Group_2__1__Impl3508 = new BitSet(new long[] { 0x0000000040000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group_2_1__0__Impl_in_rule__ModifiersRule__Group_2_1__03543 = new BitSet(new long[] { 0x00000001801E0000L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group_2_1__1_in_rule__ModifiersRule__Group_2_1__03546 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_30_in_rule__ModifiersRule__Group_2_1__0__Impl3574 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__Group_2_1__1__Impl_in_rule__ModifiersRule__Group_2_1__13605 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__ModifiersRule__ValuesAssignment_2_1_1_in_rule__ModifiersRule__Group_2_1__1__Impl3632 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RedefinesRule__Group__0__Impl_in_rule__RedefinesRule__Group__03666 = new BitSet(new long[] { 0x0000000000000020L });
- public static final BitSet FOLLOW_rule__RedefinesRule__Group__1_in_rule__RedefinesRule__Group__03669 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_31_in_rule__RedefinesRule__Group__0__Impl3697 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RedefinesRule__Group__1__Impl_in_rule__RedefinesRule__Group__13728 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RedefinesRule__PropertyAssignment_1_in_rule__RedefinesRule__Group__1__Impl3755 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__SubsetsRule__Group__0__Impl_in_rule__SubsetsRule__Group__03789 = new BitSet(new long[] { 0x0000000000000020L });
- public static final BitSet FOLLOW_rule__SubsetsRule__Group__1_in_rule__SubsetsRule__Group__03792 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_32_in_rule__SubsetsRule__Group__0__Impl3820 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__SubsetsRule__Group__1__Impl_in_rule__SubsetsRule__Group__13851 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__SubsetsRule__PropertyAssignment_1_in_rule__SubsetsRule__Group__1__Impl3878 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__DefaultValueRule__Group__0__Impl_in_rule__DefaultValueRule__Group__03912 = new BitSet(new long[] { 0x0000001C00600050L });
- public static final BitSet FOLLOW_rule__DefaultValueRule__Group__1_in_rule__DefaultValueRule__Group__03915 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_33_in_rule__DefaultValueRule__Group__0__Impl3943 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__DefaultValueRule__Group__1__Impl_in_rule__DefaultValueRule__Group__13974 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__DefaultValueRule__DefaultAssignment_1_in_rule__DefaultValueRule__Group__1__Impl4001 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_0__0__Impl_in_rule__RealValue__Group_0__04035 = new BitSet(new long[] { 0x0000000400000000L });
- public static final BitSet FOLLOW_rule__RealValue__Group_0__1_in_rule__RealValue__Group_0__04038 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__IntegerAssignment_0_0_in_rule__RealValue__Group_0__0__Impl4065 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_0__1__Impl_in_rule__RealValue__Group_0__14095 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_34_in_rule__RealValue__Group_0__1__Impl4123 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_1__0__Impl_in_rule__RealValue__Group_1__04158 = new BitSet(new long[] { 0x0000000000000010L });
- public static final BitSet FOLLOW_rule__RealValue__Group_1__1_in_rule__RealValue__Group_1__04161 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_34_in_rule__RealValue__Group_1__0__Impl4189 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_1__1__Impl_in_rule__RealValue__Group_1__14220 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__FractionAssignment_1_1_in_rule__RealValue__Group_1__1__Impl4247 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_2__0__Impl_in_rule__RealValue__Group_2__04281 = new BitSet(new long[] { 0x0000000400000000L });
- public static final BitSet FOLLOW_rule__RealValue__Group_2__1_in_rule__RealValue__Group_2__04284 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__IntegerAssignment_2_0_in_rule__RealValue__Group_2__0__Impl4311 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_2__1__Impl_in_rule__RealValue__Group_2__14341 = new BitSet(new long[] { 0x0000000000000010L });
- public static final BitSet FOLLOW_rule__RealValue__Group_2__2_in_rule__RealValue__Group_2__14344 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_34_in_rule__RealValue__Group_2__1__Impl4372 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__Group_2__2__Impl_in_rule__RealValue__Group_2__24403 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__RealValue__FractionAssignment_2_2_in_rule__RealValue__Group_2__2__Impl4430 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__NullValue__Group__0__Impl_in_rule__NullValue__Group__04466 = new BitSet(new long[] { 0x0000000800000000L });
- public static final BitSet FOLLOW_rule__NullValue__Group__1_in_rule__NullValue__Group__04469 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__NullValue__Group__1__Impl_in_rule__NullValue__Group__14527 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_35_in_rule__NullValue__Group__1__Impl4555 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__NoValue__Group__0__Impl_in_rule__NoValue__Group__04590 = new BitSet(new long[] { 0x0000001C00600050L });
- public static final BitSet FOLLOW_rule__NoValue__Group__1_in_rule__NoValue__Group__04593 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_rule__NoValue__Group__1__Impl_in_rule__NoValue__Group__14651 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_36_in_rule__NoValue__Group__1__Impl4679 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleVisibilityRule_in_rule__PropertyRule__VisibilityAssignment_04719 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_37_in_rule__PropertyRule__DerivedAssignment_14755 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_ID_in_rule__PropertyRule__NameAssignment_24794 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleTypeRule_in_rule__PropertyRule__TypeAssignment_3_1_04825 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_38_in_rule__PropertyRule__TypeUndefinedAssignment_3_1_14861 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleMultiplicityRule_in_rule__PropertyRule__MultiplicityAssignment_44900 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleModifiersRule_in_rule__PropertyRule__ModifiersAssignment_54931 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleDefaultValueRule_in_rule__PropertyRule__DefaultAssignment_64962 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleVisibilityKind_in_rule__VisibilityRule__VisibilityAssignment4993 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleQualifiedName_in_rule__TypeRule__PathAssignment_05024 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_ID_in_rule__TypeRule__TypeAssignment_15059 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_ID_in_rule__QualifiedName__PathAssignment_05098 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleQualifiedName_in_rule__QualifiedName__RemainingAssignment_25133 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBoundSpecification_in_rule__MultiplicityRule__BoundsAssignment_15164 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBoundSpecification_in_rule__MultiplicityRule__BoundsAssignment_2_15195 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_rule__BoundSpecification__ValueAssignment5226 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleModifierSpecification_in_rule__ModifiersRule__ValuesAssignment_2_05257 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleModifierSpecification_in_rule__ModifiersRule__ValuesAssignment_2_1_15288 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleModifierKind_in_rule__ModifierSpecification__ValueAssignment_05319 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleRedefinesRule_in_rule__ModifierSpecification__RedefinesAssignment_15350 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleSubsetsRule_in_rule__ModifierSpecification__SubsetsAssignment_25381 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_ID_in_rule__RedefinesRule__PropertyAssignment_15416 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_ID_in_rule__SubsetsRule__PropertyAssignment_15455 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleValue_in_rule__DefaultValueRule__DefaultAssignment_15490 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_rule__IntValue__LiteralIntegerAssignment5521 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_STRING_in_rule__StringValue__LiteralStringAssignment5552 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBooleanLiterals_in_rule__BooleanValue__LiteralBooleanAssignment5583 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_rule__RealValue__IntegerAssignment_0_05614 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_rule__RealValue__FractionAssignment_1_15645 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_rule__RealValue__IntegerAssignment_2_05676 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_rule__RealValue__FractionAssignment_2_25707 = new BitSet(new long[] { 0x0000000000000002L });
-
+package org.eclipse.papyrus.uml.textedit.property.xtext.ui.contentassist.antlr.internal;
+
+import java.io.InputStream;
+import org.eclipse.xtext.*;
+import org.eclipse.xtext.parser.*;
+import org.eclipse.xtext.parser.impl.*;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
+import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser;
+import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.DFA;
+import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess;
+
+
+
+import org.antlr.runtime.*;
+import java.util.Stack;
+import java.util.List;
+import java.util.ArrayList;
+
+@SuppressWarnings("all")
+public class InternalUmlPropertyParser extends AbstractInternalContentAssistParser {
+ public static final String[] tokenNames = new String[] {
+ "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_STRING", "RULE_INT", "RULE_ID", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_INTEGER_VALUE", "RULE_WS", "RULE_ANY_OTHER", "'*'", "'+'", "'-'", "'#'", "'~'", "'readOnly'", "'union'", "'ordered'", "'unique'", "'true'", "'false'", "':'", "'::'", "'['", "']'", "'..'", "'{'", "'}'", "','", "'redefines'", "'subsets'", "'='", "'.'", "'null'", "'none'", "'/'", "'<Undefined>'"
+ };
+ public static final int RULE_ID=6;
+ public static final int T__29=29;
+ public static final int T__28=28;
+ public static final int T__27=27;
+ public static final int T__26=26;
+ public static final int T__25=25;
+ public static final int T__24=24;
+ public static final int T__23=23;
+ public static final int T__22=22;
+ public static final int RULE_ANY_OTHER=11;
+ public static final int T__21=21;
+ public static final int T__20=20;
+ public static final int RULE_INTEGER_VALUE=9;
+ public static final int RULE_SL_COMMENT=8;
+ public static final int EOF=-1;
+ public static final int RULE_ML_COMMENT=7;
+ public static final int T__30=30;
+ public static final int T__19=19;
+ public static final int T__31=31;
+ public static final int RULE_STRING=4;
+ public static final int T__32=32;
+ public static final int T__33=33;
+ public static final int T__16=16;
+ public static final int T__34=34;
+ public static final int T__15=15;
+ public static final int T__35=35;
+ public static final int T__18=18;
+ public static final int T__36=36;
+ public static final int T__17=17;
+ public static final int T__37=37;
+ public static final int T__12=12;
+ public static final int T__38=38;
+ public static final int T__14=14;
+ public static final int T__13=13;
+ public static final int RULE_INT=5;
+ public static final int RULE_WS=10;
+
+ // delegates
+ // delegators
+
+
+ public InternalUmlPropertyParser(TokenStream input) {
+ this(input, new RecognizerSharedState());
+ }
+ public InternalUmlPropertyParser(TokenStream input, RecognizerSharedState state) {
+ super(input, state);
+
+ }
+
+
+ public String[] getTokenNames() { return InternalUmlPropertyParser.tokenNames; }
+ public String getGrammarFileName() { return "../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g"; }
+
+
+
+ private UmlPropertyGrammarAccess grammarAccess;
+
+ public void setGrammarAccess(UmlPropertyGrammarAccess grammarAccess) {
+ this.grammarAccess = grammarAccess;
+ }
+
+ @Override
+ protected Grammar getGrammar() {
+ return grammarAccess.getGrammar();
+ }
+
+ @Override
+ protected String getValueForTokenName(String tokenName) {
+ return tokenName;
+ }
+
+
+
+
+ // $ANTLR start "entryRulePropertyRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:60:1: entryRulePropertyRule : rulePropertyRule EOF ;
+ public final void entryRulePropertyRule() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:61:1: ( rulePropertyRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:62:1: rulePropertyRule EOF
+ {
+ before(grammarAccess.getPropertyRuleRule());
+ pushFollow(FOLLOW_rulePropertyRule_in_entryRulePropertyRule61);
+ rulePropertyRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getPropertyRuleRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRulePropertyRule68);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRulePropertyRule"
+
+
+ // $ANTLR start "rulePropertyRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:69:1: rulePropertyRule : ( ( rule__PropertyRule__Group__0 ) ) ;
+ public final void rulePropertyRule() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:73:2: ( ( ( rule__PropertyRule__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:74:1: ( ( rule__PropertyRule__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:74:1: ( ( rule__PropertyRule__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:75:1: ( rule__PropertyRule__Group__0 )
+ {
+ before(grammarAccess.getPropertyRuleAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:76:1: ( rule__PropertyRule__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:76:2: rule__PropertyRule__Group__0
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__Group__0_in_rulePropertyRule94);
+ rule__PropertyRule__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getPropertyRuleAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rulePropertyRule"
+
+
+ // $ANTLR start "entryRuleVisibilityRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:88:1: entryRuleVisibilityRule : ruleVisibilityRule EOF ;
+ public final void entryRuleVisibilityRule() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:89:1: ( ruleVisibilityRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:90:1: ruleVisibilityRule EOF
+ {
+ before(grammarAccess.getVisibilityRuleRule());
+ pushFollow(FOLLOW_ruleVisibilityRule_in_entryRuleVisibilityRule121);
+ ruleVisibilityRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getVisibilityRuleRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleVisibilityRule128);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleVisibilityRule"
+
+
+ // $ANTLR start "ruleVisibilityRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:97:1: ruleVisibilityRule : ( ( rule__VisibilityRule__VisibilityAssignment ) ) ;
+ public final void ruleVisibilityRule() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:101:2: ( ( ( rule__VisibilityRule__VisibilityAssignment ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:102:1: ( ( rule__VisibilityRule__VisibilityAssignment ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:102:1: ( ( rule__VisibilityRule__VisibilityAssignment ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:103:1: ( rule__VisibilityRule__VisibilityAssignment )
+ {
+ before(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:104:1: ( rule__VisibilityRule__VisibilityAssignment )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:104:2: rule__VisibilityRule__VisibilityAssignment
+ {
+ pushFollow(FOLLOW_rule__VisibilityRule__VisibilityAssignment_in_ruleVisibilityRule154);
+ rule__VisibilityRule__VisibilityAssignment();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getVisibilityRuleAccess().getVisibilityAssignment());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleVisibilityRule"
+
+
+ // $ANTLR start "entryRuleTypeRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:116:1: entryRuleTypeRule : ruleTypeRule EOF ;
+ public final void entryRuleTypeRule() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:117:1: ( ruleTypeRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:118:1: ruleTypeRule EOF
+ {
+ before(grammarAccess.getTypeRuleRule());
+ pushFollow(FOLLOW_ruleTypeRule_in_entryRuleTypeRule181);
+ ruleTypeRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getTypeRuleRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleTypeRule188);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleTypeRule"
+
+
+ // $ANTLR start "ruleTypeRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:125:1: ruleTypeRule : ( ( rule__TypeRule__Group__0 ) ) ;
+ public final void ruleTypeRule() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:129:2: ( ( ( rule__TypeRule__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:130:1: ( ( rule__TypeRule__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:130:1: ( ( rule__TypeRule__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:131:1: ( rule__TypeRule__Group__0 )
+ {
+ before(grammarAccess.getTypeRuleAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:132:1: ( rule__TypeRule__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:132:2: rule__TypeRule__Group__0
+ {
+ pushFollow(FOLLOW_rule__TypeRule__Group__0_in_ruleTypeRule214);
+ rule__TypeRule__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getTypeRuleAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleTypeRule"
+
+
+ // $ANTLR start "entryRuleQualifiedName"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:144:1: entryRuleQualifiedName : ruleQualifiedName EOF ;
+ public final void entryRuleQualifiedName() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:145:1: ( ruleQualifiedName EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:146:1: ruleQualifiedName EOF
+ {
+ before(grammarAccess.getQualifiedNameRule());
+ pushFollow(FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName241);
+ ruleQualifiedName();
+
+ state._fsp--;
+
+ after(grammarAccess.getQualifiedNameRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleQualifiedName248);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleQualifiedName"
+
+
+ // $ANTLR start "ruleQualifiedName"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:153:1: ruleQualifiedName : ( ( rule__QualifiedName__Group__0 ) ) ;
+ public final void ruleQualifiedName() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:157:2: ( ( ( rule__QualifiedName__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:158:1: ( ( rule__QualifiedName__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:158:1: ( ( rule__QualifiedName__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:159:1: ( rule__QualifiedName__Group__0 )
+ {
+ before(grammarAccess.getQualifiedNameAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:160:1: ( rule__QualifiedName__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:160:2: rule__QualifiedName__Group__0
+ {
+ pushFollow(FOLLOW_rule__QualifiedName__Group__0_in_ruleQualifiedName274);
+ rule__QualifiedName__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getQualifiedNameAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleQualifiedName"
+
+
+ // $ANTLR start "entryRuleMultiplicityRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:172:1: entryRuleMultiplicityRule : ruleMultiplicityRule EOF ;
+ public final void entryRuleMultiplicityRule() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:173:1: ( ruleMultiplicityRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:174:1: ruleMultiplicityRule EOF
+ {
+ before(grammarAccess.getMultiplicityRuleRule());
+ pushFollow(FOLLOW_ruleMultiplicityRule_in_entryRuleMultiplicityRule301);
+ ruleMultiplicityRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getMultiplicityRuleRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleMultiplicityRule308);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleMultiplicityRule"
+
+
+ // $ANTLR start "ruleMultiplicityRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:181:1: ruleMultiplicityRule : ( ( rule__MultiplicityRule__Group__0 ) ) ;
+ public final void ruleMultiplicityRule() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:185:2: ( ( ( rule__MultiplicityRule__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:186:1: ( ( rule__MultiplicityRule__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:186:1: ( ( rule__MultiplicityRule__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:187:1: ( rule__MultiplicityRule__Group__0 )
+ {
+ before(grammarAccess.getMultiplicityRuleAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:188:1: ( rule__MultiplicityRule__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:188:2: rule__MultiplicityRule__Group__0
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group__0_in_ruleMultiplicityRule334);
+ rule__MultiplicityRule__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getMultiplicityRuleAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleMultiplicityRule"
+
+
+ // $ANTLR start "entryRuleBoundSpecification"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:200:1: entryRuleBoundSpecification : ruleBoundSpecification EOF ;
+ public final void entryRuleBoundSpecification() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:201:1: ( ruleBoundSpecification EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:202:1: ruleBoundSpecification EOF
+ {
+ before(grammarAccess.getBoundSpecificationRule());
+ pushFollow(FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification361);
+ ruleBoundSpecification();
+
+ state._fsp--;
+
+ after(grammarAccess.getBoundSpecificationRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleBoundSpecification368);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleBoundSpecification"
+
+
+ // $ANTLR start "ruleBoundSpecification"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:209:1: ruleBoundSpecification : ( ( rule__BoundSpecification__ValueAssignment ) ) ;
+ public final void ruleBoundSpecification() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:213:2: ( ( ( rule__BoundSpecification__ValueAssignment ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:214:1: ( ( rule__BoundSpecification__ValueAssignment ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:214:1: ( ( rule__BoundSpecification__ValueAssignment ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:215:1: ( rule__BoundSpecification__ValueAssignment )
+ {
+ before(grammarAccess.getBoundSpecificationAccess().getValueAssignment());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:216:1: ( rule__BoundSpecification__ValueAssignment )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:216:2: rule__BoundSpecification__ValueAssignment
+ {
+ pushFollow(FOLLOW_rule__BoundSpecification__ValueAssignment_in_ruleBoundSpecification394);
+ rule__BoundSpecification__ValueAssignment();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getBoundSpecificationAccess().getValueAssignment());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleBoundSpecification"
+
+
+ // $ANTLR start "entryRuleUnlimitedLiteral"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:228:1: entryRuleUnlimitedLiteral : ruleUnlimitedLiteral EOF ;
+ public final void entryRuleUnlimitedLiteral() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:229:1: ( ruleUnlimitedLiteral EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:230:1: ruleUnlimitedLiteral EOF
+ {
+ before(grammarAccess.getUnlimitedLiteralRule());
+ pushFollow(FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral421);
+ ruleUnlimitedLiteral();
+
+ state._fsp--;
+
+ after(grammarAccess.getUnlimitedLiteralRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleUnlimitedLiteral428);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleUnlimitedLiteral"
+
+
+ // $ANTLR start "ruleUnlimitedLiteral"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:237:1: ruleUnlimitedLiteral : ( ( rule__UnlimitedLiteral__Alternatives ) ) ;
+ public final void ruleUnlimitedLiteral() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:241:2: ( ( ( rule__UnlimitedLiteral__Alternatives ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:242:1: ( ( rule__UnlimitedLiteral__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:242:1: ( ( rule__UnlimitedLiteral__Alternatives ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:243:1: ( rule__UnlimitedLiteral__Alternatives )
+ {
+ before(grammarAccess.getUnlimitedLiteralAccess().getAlternatives());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:244:1: ( rule__UnlimitedLiteral__Alternatives )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:244:2: rule__UnlimitedLiteral__Alternatives
+ {
+ pushFollow(FOLLOW_rule__UnlimitedLiteral__Alternatives_in_ruleUnlimitedLiteral454);
+ rule__UnlimitedLiteral__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getUnlimitedLiteralAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleUnlimitedLiteral"
+
+
+ // $ANTLR start "entryRuleStringLiteral"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:256:1: entryRuleStringLiteral : ruleStringLiteral EOF ;
+ public final void entryRuleStringLiteral() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:257:1: ( ruleStringLiteral EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:258:1: ruleStringLiteral EOF
+ {
+ before(grammarAccess.getStringLiteralRule());
+ pushFollow(FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral481);
+ ruleStringLiteral();
+
+ state._fsp--;
+
+ after(grammarAccess.getStringLiteralRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleStringLiteral488);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleStringLiteral"
+
+
+ // $ANTLR start "ruleStringLiteral"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:265:1: ruleStringLiteral : ( RULE_STRING ) ;
+ public final void ruleStringLiteral() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:269:2: ( ( RULE_STRING ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:270:1: ( RULE_STRING )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:270:1: ( RULE_STRING )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:271:1: RULE_STRING
+ {
+ before(grammarAccess.getStringLiteralAccess().getSTRINGTerminalRuleCall());
+ match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleStringLiteral514);
+ after(grammarAccess.getStringLiteralAccess().getSTRINGTerminalRuleCall());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleStringLiteral"
+
+
+ // $ANTLR start "entryRuleModifiersRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:284:1: entryRuleModifiersRule : ruleModifiersRule EOF ;
+ public final void entryRuleModifiersRule() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:285:1: ( ruleModifiersRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:286:1: ruleModifiersRule EOF
+ {
+ before(grammarAccess.getModifiersRuleRule());
+ pushFollow(FOLLOW_ruleModifiersRule_in_entryRuleModifiersRule540);
+ ruleModifiersRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getModifiersRuleRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleModifiersRule547);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleModifiersRule"
+
+
+ // $ANTLR start "ruleModifiersRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:293:1: ruleModifiersRule : ( ( rule__ModifiersRule__Group__0 ) ) ;
+ public final void ruleModifiersRule() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:297:2: ( ( ( rule__ModifiersRule__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:298:1: ( ( rule__ModifiersRule__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:298:1: ( ( rule__ModifiersRule__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:299:1: ( rule__ModifiersRule__Group__0 )
+ {
+ before(grammarAccess.getModifiersRuleAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:300:1: ( rule__ModifiersRule__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:300:2: rule__ModifiersRule__Group__0
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group__0_in_ruleModifiersRule573);
+ rule__ModifiersRule__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getModifiersRuleAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleModifiersRule"
+
+
+ // $ANTLR start "entryRuleModifierSpecification"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:312:1: entryRuleModifierSpecification : ruleModifierSpecification EOF ;
+ public final void entryRuleModifierSpecification() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:313:1: ( ruleModifierSpecification EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:314:1: ruleModifierSpecification EOF
+ {
+ before(grammarAccess.getModifierSpecificationRule());
+ pushFollow(FOLLOW_ruleModifierSpecification_in_entryRuleModifierSpecification600);
+ ruleModifierSpecification();
+
+ state._fsp--;
+
+ after(grammarAccess.getModifierSpecificationRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleModifierSpecification607);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleModifierSpecification"
+
+
+ // $ANTLR start "ruleModifierSpecification"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:321:1: ruleModifierSpecification : ( ( rule__ModifierSpecification__Alternatives ) ) ;
+ public final void ruleModifierSpecification() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:325:2: ( ( ( rule__ModifierSpecification__Alternatives ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:326:1: ( ( rule__ModifierSpecification__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:326:1: ( ( rule__ModifierSpecification__Alternatives ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:327:1: ( rule__ModifierSpecification__Alternatives )
+ {
+ before(grammarAccess.getModifierSpecificationAccess().getAlternatives());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:328:1: ( rule__ModifierSpecification__Alternatives )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:328:2: rule__ModifierSpecification__Alternatives
+ {
+ pushFollow(FOLLOW_rule__ModifierSpecification__Alternatives_in_ruleModifierSpecification633);
+ rule__ModifierSpecification__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getModifierSpecificationAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleModifierSpecification"
+
+
+ // $ANTLR start "entryRuleRedefinesRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:340:1: entryRuleRedefinesRule : ruleRedefinesRule EOF ;
+ public final void entryRuleRedefinesRule() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:341:1: ( ruleRedefinesRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:342:1: ruleRedefinesRule EOF
+ {
+ before(grammarAccess.getRedefinesRuleRule());
+ pushFollow(FOLLOW_ruleRedefinesRule_in_entryRuleRedefinesRule660);
+ ruleRedefinesRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getRedefinesRuleRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleRedefinesRule667);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleRedefinesRule"
+
+
+ // $ANTLR start "ruleRedefinesRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:349:1: ruleRedefinesRule : ( ( rule__RedefinesRule__Group__0 ) ) ;
+ public final void ruleRedefinesRule() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:353:2: ( ( ( rule__RedefinesRule__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:354:1: ( ( rule__RedefinesRule__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:354:1: ( ( rule__RedefinesRule__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:355:1: ( rule__RedefinesRule__Group__0 )
+ {
+ before(grammarAccess.getRedefinesRuleAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:356:1: ( rule__RedefinesRule__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:356:2: rule__RedefinesRule__Group__0
+ {
+ pushFollow(FOLLOW_rule__RedefinesRule__Group__0_in_ruleRedefinesRule693);
+ rule__RedefinesRule__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRedefinesRuleAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleRedefinesRule"
+
+
+ // $ANTLR start "entryRuleSubsetsRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:368:1: entryRuleSubsetsRule : ruleSubsetsRule EOF ;
+ public final void entryRuleSubsetsRule() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:369:1: ( ruleSubsetsRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:370:1: ruleSubsetsRule EOF
+ {
+ before(grammarAccess.getSubsetsRuleRule());
+ pushFollow(FOLLOW_ruleSubsetsRule_in_entryRuleSubsetsRule720);
+ ruleSubsetsRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getSubsetsRuleRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleSubsetsRule727);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleSubsetsRule"
+
+
+ // $ANTLR start "ruleSubsetsRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:377:1: ruleSubsetsRule : ( ( rule__SubsetsRule__Group__0 ) ) ;
+ public final void ruleSubsetsRule() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:381:2: ( ( ( rule__SubsetsRule__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:382:1: ( ( rule__SubsetsRule__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:382:1: ( ( rule__SubsetsRule__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:383:1: ( rule__SubsetsRule__Group__0 )
+ {
+ before(grammarAccess.getSubsetsRuleAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:384:1: ( rule__SubsetsRule__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:384:2: rule__SubsetsRule__Group__0
+ {
+ pushFollow(FOLLOW_rule__SubsetsRule__Group__0_in_ruleSubsetsRule753);
+ rule__SubsetsRule__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getSubsetsRuleAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleSubsetsRule"
+
+
+ // $ANTLR start "entryRuleDefaultValueRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:396:1: entryRuleDefaultValueRule : ruleDefaultValueRule EOF ;
+ public final void entryRuleDefaultValueRule() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:397:1: ( ruleDefaultValueRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:398:1: ruleDefaultValueRule EOF
+ {
+ before(grammarAccess.getDefaultValueRuleRule());
+ pushFollow(FOLLOW_ruleDefaultValueRule_in_entryRuleDefaultValueRule780);
+ ruleDefaultValueRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getDefaultValueRuleRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleDefaultValueRule787);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleDefaultValueRule"
+
+
+ // $ANTLR start "ruleDefaultValueRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:405:1: ruleDefaultValueRule : ( ( rule__DefaultValueRule__Group__0 ) ) ;
+ public final void ruleDefaultValueRule() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:409:2: ( ( ( rule__DefaultValueRule__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:410:1: ( ( rule__DefaultValueRule__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:410:1: ( ( rule__DefaultValueRule__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:411:1: ( rule__DefaultValueRule__Group__0 )
+ {
+ before(grammarAccess.getDefaultValueRuleAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:412:1: ( rule__DefaultValueRule__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:412:2: rule__DefaultValueRule__Group__0
+ {
+ pushFollow(FOLLOW_rule__DefaultValueRule__Group__0_in_ruleDefaultValueRule813);
+ rule__DefaultValueRule__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getDefaultValueRuleAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleDefaultValueRule"
+
+
+ // $ANTLR start "entryRuleValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:424:1: entryRuleValue : ruleValue EOF ;
+ public final void entryRuleValue() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:425:1: ( ruleValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:426:1: ruleValue EOF
+ {
+ before(grammarAccess.getValueRule());
+ pushFollow(FOLLOW_ruleValue_in_entryRuleValue840);
+ ruleValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getValueRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleValue847);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleValue"
+
+
+ // $ANTLR start "ruleValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:433:1: ruleValue : ( ( rule__Value__Alternatives ) ) ;
+ public final void ruleValue() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:437:2: ( ( ( rule__Value__Alternatives ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:438:1: ( ( rule__Value__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:438:1: ( ( rule__Value__Alternatives ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:439:1: ( rule__Value__Alternatives )
+ {
+ before(grammarAccess.getValueAccess().getAlternatives());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:440:1: ( rule__Value__Alternatives )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:440:2: rule__Value__Alternatives
+ {
+ pushFollow(FOLLOW_rule__Value__Alternatives_in_ruleValue873);
+ rule__Value__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getValueAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleValue"
+
+
+ // $ANTLR start "entryRuleIntValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:452:1: entryRuleIntValue : ruleIntValue EOF ;
+ public final void entryRuleIntValue() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:453:1: ( ruleIntValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:454:1: ruleIntValue EOF
+ {
+ before(grammarAccess.getIntValueRule());
+ pushFollow(FOLLOW_ruleIntValue_in_entryRuleIntValue900);
+ ruleIntValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getIntValueRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleIntValue907);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleIntValue"
+
+
+ // $ANTLR start "ruleIntValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:461:1: ruleIntValue : ( ( rule__IntValue__LiteralIntegerAssignment ) ) ;
+ public final void ruleIntValue() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:465:2: ( ( ( rule__IntValue__LiteralIntegerAssignment ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:466:1: ( ( rule__IntValue__LiteralIntegerAssignment ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:466:1: ( ( rule__IntValue__LiteralIntegerAssignment ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:467:1: ( rule__IntValue__LiteralIntegerAssignment )
+ {
+ before(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:468:1: ( rule__IntValue__LiteralIntegerAssignment )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:468:2: rule__IntValue__LiteralIntegerAssignment
+ {
+ pushFollow(FOLLOW_rule__IntValue__LiteralIntegerAssignment_in_ruleIntValue933);
+ rule__IntValue__LiteralIntegerAssignment();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getIntValueAccess().getLiteralIntegerAssignment());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleIntValue"
+
+
+ // $ANTLR start "entryRuleStringValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:480:1: entryRuleStringValue : ruleStringValue EOF ;
+ public final void entryRuleStringValue() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:481:1: ( ruleStringValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:482:1: ruleStringValue EOF
+ {
+ before(grammarAccess.getStringValueRule());
+ pushFollow(FOLLOW_ruleStringValue_in_entryRuleStringValue960);
+ ruleStringValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getStringValueRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleStringValue967);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleStringValue"
+
+
+ // $ANTLR start "ruleStringValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:489:1: ruleStringValue : ( ( rule__StringValue__LiteralStringAssignment ) ) ;
+ public final void ruleStringValue() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:493:2: ( ( ( rule__StringValue__LiteralStringAssignment ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:494:1: ( ( rule__StringValue__LiteralStringAssignment ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:494:1: ( ( rule__StringValue__LiteralStringAssignment ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:495:1: ( rule__StringValue__LiteralStringAssignment )
+ {
+ before(grammarAccess.getStringValueAccess().getLiteralStringAssignment());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:496:1: ( rule__StringValue__LiteralStringAssignment )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:496:2: rule__StringValue__LiteralStringAssignment
+ {
+ pushFollow(FOLLOW_rule__StringValue__LiteralStringAssignment_in_ruleStringValue993);
+ rule__StringValue__LiteralStringAssignment();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getStringValueAccess().getLiteralStringAssignment());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleStringValue"
+
+
+ // $ANTLR start "entryRuleBooleanValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:508:1: entryRuleBooleanValue : ruleBooleanValue EOF ;
+ public final void entryRuleBooleanValue() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:509:1: ( ruleBooleanValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:510:1: ruleBooleanValue EOF
+ {
+ before(grammarAccess.getBooleanValueRule());
+ pushFollow(FOLLOW_ruleBooleanValue_in_entryRuleBooleanValue1020);
+ ruleBooleanValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getBooleanValueRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleBooleanValue1027);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleBooleanValue"
+
+
+ // $ANTLR start "ruleBooleanValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:517:1: ruleBooleanValue : ( ( rule__BooleanValue__LiteralBooleanAssignment ) ) ;
+ public final void ruleBooleanValue() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:521:2: ( ( ( rule__BooleanValue__LiteralBooleanAssignment ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:522:1: ( ( rule__BooleanValue__LiteralBooleanAssignment ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:522:1: ( ( rule__BooleanValue__LiteralBooleanAssignment ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:523:1: ( rule__BooleanValue__LiteralBooleanAssignment )
+ {
+ before(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:524:1: ( rule__BooleanValue__LiteralBooleanAssignment )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:524:2: rule__BooleanValue__LiteralBooleanAssignment
+ {
+ pushFollow(FOLLOW_rule__BooleanValue__LiteralBooleanAssignment_in_ruleBooleanValue1053);
+ rule__BooleanValue__LiteralBooleanAssignment();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getBooleanValueAccess().getLiteralBooleanAssignment());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleBooleanValue"
+
+
+ // $ANTLR start "entryRuleRealValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:536:1: entryRuleRealValue : ruleRealValue EOF ;
+ public final void entryRuleRealValue() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:537:1: ( ruleRealValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:538:1: ruleRealValue EOF
+ {
+ before(grammarAccess.getRealValueRule());
+ pushFollow(FOLLOW_ruleRealValue_in_entryRuleRealValue1080);
+ ruleRealValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getRealValueRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleRealValue1087);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleRealValue"
+
+
+ // $ANTLR start "ruleRealValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:545:1: ruleRealValue : ( ( rule__RealValue__Alternatives ) ) ;
+ public final void ruleRealValue() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:549:2: ( ( ( rule__RealValue__Alternatives ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:550:1: ( ( rule__RealValue__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:550:1: ( ( rule__RealValue__Alternatives ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:551:1: ( rule__RealValue__Alternatives )
+ {
+ before(grammarAccess.getRealValueAccess().getAlternatives());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:552:1: ( rule__RealValue__Alternatives )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:552:2: rule__RealValue__Alternatives
+ {
+ pushFollow(FOLLOW_rule__RealValue__Alternatives_in_ruleRealValue1113);
+ rule__RealValue__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRealValueAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleRealValue"
+
+
+ // $ANTLR start "entryRuleNullValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:564:1: entryRuleNullValue : ruleNullValue EOF ;
+ public final void entryRuleNullValue() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:565:1: ( ruleNullValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:566:1: ruleNullValue EOF
+ {
+ before(grammarAccess.getNullValueRule());
+ pushFollow(FOLLOW_ruleNullValue_in_entryRuleNullValue1140);
+ ruleNullValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getNullValueRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleNullValue1147);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleNullValue"
+
+
+ // $ANTLR start "ruleNullValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:573:1: ruleNullValue : ( ( rule__NullValue__Group__0 ) ) ;
+ public final void ruleNullValue() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:577:2: ( ( ( rule__NullValue__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:578:1: ( ( rule__NullValue__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:578:1: ( ( rule__NullValue__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:579:1: ( rule__NullValue__Group__0 )
+ {
+ before(grammarAccess.getNullValueAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:580:1: ( rule__NullValue__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:580:2: rule__NullValue__Group__0
+ {
+ pushFollow(FOLLOW_rule__NullValue__Group__0_in_ruleNullValue1173);
+ rule__NullValue__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getNullValueAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleNullValue"
+
+
+ // $ANTLR start "entryRuleNoValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:592:1: entryRuleNoValue : ruleNoValue EOF ;
+ public final void entryRuleNoValue() throws RecognitionException {
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:593:1: ( ruleNoValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:594:1: ruleNoValue EOF
+ {
+ before(grammarAccess.getNoValueRule());
+ pushFollow(FOLLOW_ruleNoValue_in_entryRuleNoValue1200);
+ ruleNoValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getNoValueRule());
+ match(input,EOF,FOLLOW_EOF_in_entryRuleNoValue1207);
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+ }
+ return ;
+ }
+ // $ANTLR end "entryRuleNoValue"
+
+
+ // $ANTLR start "ruleNoValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:601:1: ruleNoValue : ( ( rule__NoValue__Group__0 ) ) ;
+ public final void ruleNoValue() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:605:2: ( ( ( rule__NoValue__Group__0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:606:1: ( ( rule__NoValue__Group__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:606:1: ( ( rule__NoValue__Group__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:607:1: ( rule__NoValue__Group__0 )
+ {
+ before(grammarAccess.getNoValueAccess().getGroup());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:608:1: ( rule__NoValue__Group__0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:608:2: rule__NoValue__Group__0
+ {
+ pushFollow(FOLLOW_rule__NoValue__Group__0_in_ruleNoValue1233);
+ rule__NoValue__Group__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getNoValueAccess().getGroup());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleNoValue"
+
+
+ // $ANTLR start "ruleVisibilityKind"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:621:1: ruleVisibilityKind : ( ( rule__VisibilityKind__Alternatives ) ) ;
+ public final void ruleVisibilityKind() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:625:1: ( ( ( rule__VisibilityKind__Alternatives ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:626:1: ( ( rule__VisibilityKind__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:626:1: ( ( rule__VisibilityKind__Alternatives ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:627:1: ( rule__VisibilityKind__Alternatives )
+ {
+ before(grammarAccess.getVisibilityKindAccess().getAlternatives());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:628:1: ( rule__VisibilityKind__Alternatives )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:628:2: rule__VisibilityKind__Alternatives
+ {
+ pushFollow(FOLLOW_rule__VisibilityKind__Alternatives_in_ruleVisibilityKind1270);
+ rule__VisibilityKind__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getVisibilityKindAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleVisibilityKind"
+
+
+ // $ANTLR start "ruleModifierKind"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:640:1: ruleModifierKind : ( ( rule__ModifierKind__Alternatives ) ) ;
+ public final void ruleModifierKind() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:644:1: ( ( ( rule__ModifierKind__Alternatives ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:645:1: ( ( rule__ModifierKind__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:645:1: ( ( rule__ModifierKind__Alternatives ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:646:1: ( rule__ModifierKind__Alternatives )
+ {
+ before(grammarAccess.getModifierKindAccess().getAlternatives());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:647:1: ( rule__ModifierKind__Alternatives )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:647:2: rule__ModifierKind__Alternatives
+ {
+ pushFollow(FOLLOW_rule__ModifierKind__Alternatives_in_ruleModifierKind1306);
+ rule__ModifierKind__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getModifierKindAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleModifierKind"
+
+
+ // $ANTLR start "ruleBooleanLiterals"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:659:1: ruleBooleanLiterals : ( ( rule__BooleanLiterals__Alternatives ) ) ;
+ public final void ruleBooleanLiterals() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:663:1: ( ( ( rule__BooleanLiterals__Alternatives ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:664:1: ( ( rule__BooleanLiterals__Alternatives ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:664:1: ( ( rule__BooleanLiterals__Alternatives ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:665:1: ( rule__BooleanLiterals__Alternatives )
+ {
+ before(grammarAccess.getBooleanLiteralsAccess().getAlternatives());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:666:1: ( rule__BooleanLiterals__Alternatives )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:666:2: rule__BooleanLiterals__Alternatives
+ {
+ pushFollow(FOLLOW_rule__BooleanLiterals__Alternatives_in_ruleBooleanLiterals1342);
+ rule__BooleanLiterals__Alternatives();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getBooleanLiteralsAccess().getAlternatives());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "ruleBooleanLiterals"
+
+
+ // $ANTLR start "rule__PropertyRule__Alternatives_3_1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:677:1: rule__PropertyRule__Alternatives_3_1 : ( ( ( rule__PropertyRule__TypeAssignment_3_1_0 ) ) | ( ( rule__PropertyRule__TypeUndefinedAssignment_3_1_1 ) ) );
+ public final void rule__PropertyRule__Alternatives_3_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:681:1: ( ( ( rule__PropertyRule__TypeAssignment_3_1_0 ) ) | ( ( rule__PropertyRule__TypeUndefinedAssignment_3_1_1 ) ) )
+ int alt1=2;
+ int LA1_0 = input.LA(1);
+
+ if ( (LA1_0==RULE_ID) ) {
+ alt1=1;
+ }
+ else if ( (LA1_0==38) ) {
+ alt1=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 1, 0, input);
+
+ throw nvae;
+ }
+ switch (alt1) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:682:1: ( ( rule__PropertyRule__TypeAssignment_3_1_0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:682:1: ( ( rule__PropertyRule__TypeAssignment_3_1_0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:683:1: ( rule__PropertyRule__TypeAssignment_3_1_0 )
+ {
+ before(grammarAccess.getPropertyRuleAccess().getTypeAssignment_3_1_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:684:1: ( rule__PropertyRule__TypeAssignment_3_1_0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:684:2: rule__PropertyRule__TypeAssignment_3_1_0
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__TypeAssignment_3_1_0_in_rule__PropertyRule__Alternatives_3_11377);
+ rule__PropertyRule__TypeAssignment_3_1_0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getPropertyRuleAccess().getTypeAssignment_3_1_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:688:6: ( ( rule__PropertyRule__TypeUndefinedAssignment_3_1_1 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:688:6: ( ( rule__PropertyRule__TypeUndefinedAssignment_3_1_1 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:689:1: ( rule__PropertyRule__TypeUndefinedAssignment_3_1_1 )
+ {
+ before(grammarAccess.getPropertyRuleAccess().getTypeUndefinedAssignment_3_1_1());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:690:1: ( rule__PropertyRule__TypeUndefinedAssignment_3_1_1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:690:2: rule__PropertyRule__TypeUndefinedAssignment_3_1_1
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__TypeUndefinedAssignment_3_1_1_in_rule__PropertyRule__Alternatives_3_11395);
+ rule__PropertyRule__TypeUndefinedAssignment_3_1_1();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getPropertyRuleAccess().getTypeUndefinedAssignment_3_1_1());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__Alternatives_3_1"
+
+
+ // $ANTLR start "rule__BoundSpecification__ValueAlternatives_0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:699:1: rule__BoundSpecification__ValueAlternatives_0 : ( ( ruleUnlimitedLiteral ) | ( ruleStringLiteral ) );
+ public final void rule__BoundSpecification__ValueAlternatives_0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:703:1: ( ( ruleUnlimitedLiteral ) | ( ruleStringLiteral ) )
+ int alt2=2;
+ int LA2_0 = input.LA(1);
+
+ if ( (LA2_0==RULE_INT||LA2_0==12) ) {
+ alt2=1;
+ }
+ else if ( (LA2_0==RULE_STRING) ) {
+ alt2=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 2, 0, input);
+
+ throw nvae;
+ }
+ switch (alt2) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:704:1: ( ruleUnlimitedLiteral )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:704:1: ( ruleUnlimitedLiteral )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:705:1: ruleUnlimitedLiteral
+ {
+ before(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0_0());
+ pushFollow(FOLLOW_ruleUnlimitedLiteral_in_rule__BoundSpecification__ValueAlternatives_01428);
+ ruleUnlimitedLiteral();
+
+ state._fsp--;
+
+ after(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:710:6: ( ruleStringLiteral )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:710:6: ( ruleStringLiteral )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:711:1: ruleStringLiteral
+ {
+ before(grammarAccess.getBoundSpecificationAccess().getValueStringLiteralParserRuleCall_0_1());
+ pushFollow(FOLLOW_ruleStringLiteral_in_rule__BoundSpecification__ValueAlternatives_01445);
+ ruleStringLiteral();
+
+ state._fsp--;
+
+ after(grammarAccess.getBoundSpecificationAccess().getValueStringLiteralParserRuleCall_0_1());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__BoundSpecification__ValueAlternatives_0"
+
+
+ // $ANTLR start "rule__UnlimitedLiteral__Alternatives"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:721:1: rule__UnlimitedLiteral__Alternatives : ( ( RULE_INT ) | ( '*' ) );
+ public final void rule__UnlimitedLiteral__Alternatives() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:725:1: ( ( RULE_INT ) | ( '*' ) )
+ int alt3=2;
+ int LA3_0 = input.LA(1);
+
+ if ( (LA3_0==RULE_INT) ) {
+ alt3=1;
+ }
+ else if ( (LA3_0==12) ) {
+ alt3=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 3, 0, input);
+
+ throw nvae;
+ }
+ switch (alt3) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:726:1: ( RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:726:1: ( RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:727:1: RULE_INT
+ {
+ before(grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0());
+ match(input,RULE_INT,FOLLOW_RULE_INT_in_rule__UnlimitedLiteral__Alternatives1477);
+ after(grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:732:6: ( '*' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:732:6: ( '*' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:733:1: '*'
+ {
+ before(grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1());
+ match(input,12,FOLLOW_12_in_rule__UnlimitedLiteral__Alternatives1495);
+ after(grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__UnlimitedLiteral__Alternatives"
+
+
+ // $ANTLR start "rule__ModifierSpecification__Alternatives"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:745:1: rule__ModifierSpecification__Alternatives : ( ( ( rule__ModifierSpecification__ValueAssignment_0 ) ) | ( ( rule__ModifierSpecification__RedefinesAssignment_1 ) ) | ( ( rule__ModifierSpecification__SubsetsAssignment_2 ) ) );
+ public final void rule__ModifierSpecification__Alternatives() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:749:1: ( ( ( rule__ModifierSpecification__ValueAssignment_0 ) ) | ( ( rule__ModifierSpecification__RedefinesAssignment_1 ) ) | ( ( rule__ModifierSpecification__SubsetsAssignment_2 ) ) )
+ int alt4=3;
+ switch ( input.LA(1) ) {
+ case 17:
+ case 18:
+ case 19:
+ case 20:
+ {
+ alt4=1;
+ }
+ break;
+ case 31:
+ {
+ alt4=2;
+ }
+ break;
+ case 32:
+ {
+ alt4=3;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 4, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt4) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:750:1: ( ( rule__ModifierSpecification__ValueAssignment_0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:750:1: ( ( rule__ModifierSpecification__ValueAssignment_0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:751:1: ( rule__ModifierSpecification__ValueAssignment_0 )
+ {
+ before(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:752:1: ( rule__ModifierSpecification__ValueAssignment_0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:752:2: rule__ModifierSpecification__ValueAssignment_0
+ {
+ pushFollow(FOLLOW_rule__ModifierSpecification__ValueAssignment_0_in_rule__ModifierSpecification__Alternatives1529);
+ rule__ModifierSpecification__ValueAssignment_0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getModifierSpecificationAccess().getValueAssignment_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:756:6: ( ( rule__ModifierSpecification__RedefinesAssignment_1 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:756:6: ( ( rule__ModifierSpecification__RedefinesAssignment_1 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:757:1: ( rule__ModifierSpecification__RedefinesAssignment_1 )
+ {
+ before(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:758:1: ( rule__ModifierSpecification__RedefinesAssignment_1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:758:2: rule__ModifierSpecification__RedefinesAssignment_1
+ {
+ pushFollow(FOLLOW_rule__ModifierSpecification__RedefinesAssignment_1_in_rule__ModifierSpecification__Alternatives1547);
+ rule__ModifierSpecification__RedefinesAssignment_1();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getModifierSpecificationAccess().getRedefinesAssignment_1());
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:762:6: ( ( rule__ModifierSpecification__SubsetsAssignment_2 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:762:6: ( ( rule__ModifierSpecification__SubsetsAssignment_2 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:763:1: ( rule__ModifierSpecification__SubsetsAssignment_2 )
+ {
+ before(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:764:1: ( rule__ModifierSpecification__SubsetsAssignment_2 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:764:2: rule__ModifierSpecification__SubsetsAssignment_2
+ {
+ pushFollow(FOLLOW_rule__ModifierSpecification__SubsetsAssignment_2_in_rule__ModifierSpecification__Alternatives1565);
+ rule__ModifierSpecification__SubsetsAssignment_2();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getModifierSpecificationAccess().getSubsetsAssignment_2());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifierSpecification__Alternatives"
+
+
+ // $ANTLR start "rule__Value__Alternatives"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:773:1: rule__Value__Alternatives : ( ( ruleIntValue ) | ( ruleStringValue ) | ( ruleBooleanValue ) | ( ruleRealValue ) | ( ruleNullValue ) | ( ruleNoValue ) );
+ public final void rule__Value__Alternatives() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:777:1: ( ( ruleIntValue ) | ( ruleStringValue ) | ( ruleBooleanValue ) | ( ruleRealValue ) | ( ruleNullValue ) | ( ruleNoValue ) )
+ int alt5=6;
+ switch ( input.LA(1) ) {
+ case RULE_INT:
+ {
+ int LA5_1 = input.LA(2);
+
+ if ( (LA5_1==34) ) {
+ alt5=4;
+ }
+ else if ( (LA5_1==EOF) ) {
+ alt5=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 5, 1, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_STRING:
+ {
+ alt5=2;
+ }
+ break;
+ case 21:
+ case 22:
+ {
+ alt5=3;
+ }
+ break;
+ case 34:
+ {
+ alt5=4;
+ }
+ break;
+ case 35:
+ {
+ alt5=5;
+ }
+ break;
+ case 36:
+ {
+ alt5=6;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 5, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt5) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:778:1: ( ruleIntValue )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:778:1: ( ruleIntValue )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:779:1: ruleIntValue
+ {
+ before(grammarAccess.getValueAccess().getIntValueParserRuleCall_0());
+ pushFollow(FOLLOW_ruleIntValue_in_rule__Value__Alternatives1598);
+ ruleIntValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getValueAccess().getIntValueParserRuleCall_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:784:6: ( ruleStringValue )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:784:6: ( ruleStringValue )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:785:1: ruleStringValue
+ {
+ before(grammarAccess.getValueAccess().getStringValueParserRuleCall_1());
+ pushFollow(FOLLOW_ruleStringValue_in_rule__Value__Alternatives1615);
+ ruleStringValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getValueAccess().getStringValueParserRuleCall_1());
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:790:6: ( ruleBooleanValue )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:790:6: ( ruleBooleanValue )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:791:1: ruleBooleanValue
+ {
+ before(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2());
+ pushFollow(FOLLOW_ruleBooleanValue_in_rule__Value__Alternatives1632);
+ ruleBooleanValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2());
+
+ }
+
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:796:6: ( ruleRealValue )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:796:6: ( ruleRealValue )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:797:1: ruleRealValue
+ {
+ before(grammarAccess.getValueAccess().getRealValueParserRuleCall_3());
+ pushFollow(FOLLOW_ruleRealValue_in_rule__Value__Alternatives1649);
+ ruleRealValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getValueAccess().getRealValueParserRuleCall_3());
+
+ }
+
+
+ }
+ break;
+ case 5 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:802:6: ( ruleNullValue )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:802:6: ( ruleNullValue )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:803:1: ruleNullValue
+ {
+ before(grammarAccess.getValueAccess().getNullValueParserRuleCall_4());
+ pushFollow(FOLLOW_ruleNullValue_in_rule__Value__Alternatives1666);
+ ruleNullValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getValueAccess().getNullValueParserRuleCall_4());
+
+ }
+
+
+ }
+ break;
+ case 6 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:808:6: ( ruleNoValue )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:808:6: ( ruleNoValue )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:809:1: ruleNoValue
+ {
+ before(grammarAccess.getValueAccess().getNoValueParserRuleCall_5());
+ pushFollow(FOLLOW_ruleNoValue_in_rule__Value__Alternatives1683);
+ ruleNoValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getValueAccess().getNoValueParserRuleCall_5());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__Value__Alternatives"
+
+
+ // $ANTLR start "rule__RealValue__Alternatives"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:819:1: rule__RealValue__Alternatives : ( ( ( rule__RealValue__Group_0__0 ) ) | ( ( rule__RealValue__Group_1__0 ) ) | ( ( rule__RealValue__Group_2__0 ) ) );
+ public final void rule__RealValue__Alternatives() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:823:1: ( ( ( rule__RealValue__Group_0__0 ) ) | ( ( rule__RealValue__Group_1__0 ) ) | ( ( rule__RealValue__Group_2__0 ) ) )
+ int alt6=3;
+ int LA6_0 = input.LA(1);
+
+ if ( (LA6_0==RULE_INT) ) {
+ int LA6_1 = input.LA(2);
+
+ if ( (LA6_1==34) ) {
+ int LA6_3 = input.LA(3);
+
+ if ( (LA6_3==EOF) ) {
+ alt6=1;
+ }
+ else if ( (LA6_3==RULE_INT) ) {
+ alt6=3;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 6, 3, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 6, 1, input);
+
+ throw nvae;
+ }
+ }
+ else if ( (LA6_0==34) ) {
+ alt6=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 6, 0, input);
+
+ throw nvae;
+ }
+ switch (alt6) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:824:1: ( ( rule__RealValue__Group_0__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:824:1: ( ( rule__RealValue__Group_0__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:825:1: ( rule__RealValue__Group_0__0 )
+ {
+ before(grammarAccess.getRealValueAccess().getGroup_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:826:1: ( rule__RealValue__Group_0__0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:826:2: rule__RealValue__Group_0__0
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_0__0_in_rule__RealValue__Alternatives1715);
+ rule__RealValue__Group_0__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRealValueAccess().getGroup_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:830:6: ( ( rule__RealValue__Group_1__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:830:6: ( ( rule__RealValue__Group_1__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:831:1: ( rule__RealValue__Group_1__0 )
+ {
+ before(grammarAccess.getRealValueAccess().getGroup_1());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:832:1: ( rule__RealValue__Group_1__0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:832:2: rule__RealValue__Group_1__0
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_1__0_in_rule__RealValue__Alternatives1733);
+ rule__RealValue__Group_1__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRealValueAccess().getGroup_1());
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:836:6: ( ( rule__RealValue__Group_2__0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:836:6: ( ( rule__RealValue__Group_2__0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:837:1: ( rule__RealValue__Group_2__0 )
+ {
+ before(grammarAccess.getRealValueAccess().getGroup_2());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:838:1: ( rule__RealValue__Group_2__0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:838:2: rule__RealValue__Group_2__0
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_2__0_in_rule__RealValue__Alternatives1751);
+ rule__RealValue__Group_2__0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRealValueAccess().getGroup_2());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Alternatives"
+
+
+ // $ANTLR start "rule__VisibilityKind__Alternatives"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:847:1: rule__VisibilityKind__Alternatives : ( ( ( '+' ) ) | ( ( '-' ) ) | ( ( '#' ) ) | ( ( '~' ) ) );
+ public final void rule__VisibilityKind__Alternatives() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:851:1: ( ( ( '+' ) ) | ( ( '-' ) ) | ( ( '#' ) ) | ( ( '~' ) ) )
+ int alt7=4;
+ switch ( input.LA(1) ) {
+ case 13:
+ {
+ alt7=1;
+ }
+ break;
+ case 14:
+ {
+ alt7=2;
+ }
+ break;
+ case 15:
+ {
+ alt7=3;
+ }
+ break;
+ case 16:
+ {
+ alt7=4;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 7, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt7) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:852:1: ( ( '+' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:852:1: ( ( '+' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:853:1: ( '+' )
+ {
+ before(grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:854:1: ( '+' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:854:3: '+'
+ {
+ match(input,13,FOLLOW_13_in_rule__VisibilityKind__Alternatives1785);
+
+ }
+
+ after(grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:859:6: ( ( '-' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:859:6: ( ( '-' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:860:1: ( '-' )
+ {
+ before(grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:861:1: ( '-' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:861:3: '-'
+ {
+ match(input,14,FOLLOW_14_in_rule__VisibilityKind__Alternatives1806);
+
+ }
+
+ after(grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1());
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:866:6: ( ( '#' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:866:6: ( ( '#' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:867:1: ( '#' )
+ {
+ before(grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:868:1: ( '#' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:868:3: '#'
+ {
+ match(input,15,FOLLOW_15_in_rule__VisibilityKind__Alternatives1827);
+
+ }
+
+ after(grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2());
+
+ }
+
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:873:6: ( ( '~' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:873:6: ( ( '~' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:874:1: ( '~' )
+ {
+ before(grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:875:1: ( '~' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:875:3: '~'
+ {
+ match(input,16,FOLLOW_16_in_rule__VisibilityKind__Alternatives1848);
+
+ }
+
+ after(grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__VisibilityKind__Alternatives"
+
+
+ // $ANTLR start "rule__ModifierKind__Alternatives"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:885:1: rule__ModifierKind__Alternatives : ( ( ( 'readOnly' ) ) | ( ( 'union' ) ) | ( ( 'ordered' ) ) | ( ( 'unique' ) ) );
+ public final void rule__ModifierKind__Alternatives() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:889:1: ( ( ( 'readOnly' ) ) | ( ( 'union' ) ) | ( ( 'ordered' ) ) | ( ( 'unique' ) ) )
+ int alt8=4;
+ switch ( input.LA(1) ) {
+ case 17:
+ {
+ alt8=1;
+ }
+ break;
+ case 18:
+ {
+ alt8=2;
+ }
+ break;
+ case 19:
+ {
+ alt8=3;
+ }
+ break;
+ case 20:
+ {
+ alt8=4;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 8, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt8) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:890:1: ( ( 'readOnly' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:890:1: ( ( 'readOnly' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:891:1: ( 'readOnly' )
+ {
+ before(grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:892:1: ( 'readOnly' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:892:3: 'readOnly'
+ {
+ match(input,17,FOLLOW_17_in_rule__ModifierKind__Alternatives1884);
+
+ }
+
+ after(grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:897:6: ( ( 'union' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:897:6: ( ( 'union' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:898:1: ( 'union' )
+ {
+ before(grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:899:1: ( 'union' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:899:3: 'union'
+ {
+ match(input,18,FOLLOW_18_in_rule__ModifierKind__Alternatives1905);
+
+ }
+
+ after(grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1());
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:904:6: ( ( 'ordered' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:904:6: ( ( 'ordered' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:905:1: ( 'ordered' )
+ {
+ before(grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:906:1: ( 'ordered' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:906:3: 'ordered'
+ {
+ match(input,19,FOLLOW_19_in_rule__ModifierKind__Alternatives1926);
+
+ }
+
+ after(grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2());
+
+ }
+
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:911:6: ( ( 'unique' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:911:6: ( ( 'unique' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:912:1: ( 'unique' )
+ {
+ before(grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:913:1: ( 'unique' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:913:3: 'unique'
+ {
+ match(input,20,FOLLOW_20_in_rule__ModifierKind__Alternatives1947);
+
+ }
+
+ after(grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifierKind__Alternatives"
+
+
+ // $ANTLR start "rule__BooleanLiterals__Alternatives"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:923:1: rule__BooleanLiterals__Alternatives : ( ( ( 'true' ) ) | ( ( 'false' ) ) );
+ public final void rule__BooleanLiterals__Alternatives() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:927:1: ( ( ( 'true' ) ) | ( ( 'false' ) ) )
+ int alt9=2;
+ int LA9_0 = input.LA(1);
+
+ if ( (LA9_0==21) ) {
+ alt9=1;
+ }
+ else if ( (LA9_0==22) ) {
+ alt9=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 9, 0, input);
+
+ throw nvae;
+ }
+ switch (alt9) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:928:1: ( ( 'true' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:928:1: ( ( 'true' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:929:1: ( 'true' )
+ {
+ before(grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:930:1: ( 'true' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:930:3: 'true'
+ {
+ match(input,21,FOLLOW_21_in_rule__BooleanLiterals__Alternatives1983);
+
+ }
+
+ after(grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0());
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:935:6: ( ( 'false' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:935:6: ( ( 'false' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:936:1: ( 'false' )
+ {
+ before(grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:937:1: ( 'false' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:937:3: 'false'
+ {
+ match(input,22,FOLLOW_22_in_rule__BooleanLiterals__Alternatives2004);
+
+ }
+
+ after(grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1());
+
+ }
+
+
+ }
+ break;
+
+ }
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__BooleanLiterals__Alternatives"
+
+
+ // $ANTLR start "rule__PropertyRule__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:949:1: rule__PropertyRule__Group__0 : rule__PropertyRule__Group__0__Impl rule__PropertyRule__Group__1 ;
+ public final void rule__PropertyRule__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:953:1: ( rule__PropertyRule__Group__0__Impl rule__PropertyRule__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:954:2: rule__PropertyRule__Group__0__Impl rule__PropertyRule__Group__1
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__Group__0__Impl_in_rule__PropertyRule__Group__02037);
+ rule__PropertyRule__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__PropertyRule__Group__1_in_rule__PropertyRule__Group__02040);
+ rule__PropertyRule__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__Group__0"
+
+
+ // $ANTLR start "rule__PropertyRule__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:961:1: rule__PropertyRule__Group__0__Impl : ( ( rule__PropertyRule__VisibilityAssignment_0 )? ) ;
+ public final void rule__PropertyRule__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:965:1: ( ( ( rule__PropertyRule__VisibilityAssignment_0 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:966:1: ( ( rule__PropertyRule__VisibilityAssignment_0 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:966:1: ( ( rule__PropertyRule__VisibilityAssignment_0 )? )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:967:1: ( rule__PropertyRule__VisibilityAssignment_0 )?
+ {
+ before(grammarAccess.getPropertyRuleAccess().getVisibilityAssignment_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:968:1: ( rule__PropertyRule__VisibilityAssignment_0 )?
+ int alt10=2;
+ int LA10_0 = input.LA(1);
+
+ if ( ((LA10_0>=13 && LA10_0<=16)) ) {
+ alt10=1;
+ }
+ switch (alt10) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:968:2: rule__PropertyRule__VisibilityAssignment_0
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__VisibilityAssignment_0_in_rule__PropertyRule__Group__0__Impl2067);
+ rule__PropertyRule__VisibilityAssignment_0();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getPropertyRuleAccess().getVisibilityAssignment_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__Group__0__Impl"
+
+
+ // $ANTLR start "rule__PropertyRule__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:978:1: rule__PropertyRule__Group__1 : rule__PropertyRule__Group__1__Impl rule__PropertyRule__Group__2 ;
+ public final void rule__PropertyRule__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:982:1: ( rule__PropertyRule__Group__1__Impl rule__PropertyRule__Group__2 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:983:2: rule__PropertyRule__Group__1__Impl rule__PropertyRule__Group__2
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__Group__1__Impl_in_rule__PropertyRule__Group__12098);
+ rule__PropertyRule__Group__1__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__PropertyRule__Group__2_in_rule__PropertyRule__Group__12101);
+ rule__PropertyRule__Group__2();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__Group__1"
+
+
+ // $ANTLR start "rule__PropertyRule__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:990:1: rule__PropertyRule__Group__1__Impl : ( ( rule__PropertyRule__DerivedAssignment_1 )? ) ;
+ public final void rule__PropertyRule__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:994:1: ( ( ( rule__PropertyRule__DerivedAssignment_1 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:995:1: ( ( rule__PropertyRule__DerivedAssignment_1 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:995:1: ( ( rule__PropertyRule__DerivedAssignment_1 )? )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:996:1: ( rule__PropertyRule__DerivedAssignment_1 )?
+ {
+ before(grammarAccess.getPropertyRuleAccess().getDerivedAssignment_1());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:997:1: ( rule__PropertyRule__DerivedAssignment_1 )?
+ int alt11=2;
+ int LA11_0 = input.LA(1);
+
+ if ( (LA11_0==37) ) {
+ alt11=1;
+ }
+ switch (alt11) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:997:2: rule__PropertyRule__DerivedAssignment_1
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__DerivedAssignment_1_in_rule__PropertyRule__Group__1__Impl2128);
+ rule__PropertyRule__DerivedAssignment_1();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getPropertyRuleAccess().getDerivedAssignment_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__Group__1__Impl"
+
+
+ // $ANTLR start "rule__PropertyRule__Group__2"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1007:1: rule__PropertyRule__Group__2 : rule__PropertyRule__Group__2__Impl rule__PropertyRule__Group__3 ;
+ public final void rule__PropertyRule__Group__2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1011:1: ( rule__PropertyRule__Group__2__Impl rule__PropertyRule__Group__3 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1012:2: rule__PropertyRule__Group__2__Impl rule__PropertyRule__Group__3
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__Group__2__Impl_in_rule__PropertyRule__Group__22159);
+ rule__PropertyRule__Group__2__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__PropertyRule__Group__3_in_rule__PropertyRule__Group__22162);
+ rule__PropertyRule__Group__3();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__Group__2"
+
+
+ // $ANTLR start "rule__PropertyRule__Group__2__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1019:1: rule__PropertyRule__Group__2__Impl : ( ( rule__PropertyRule__NameAssignment_2 ) ) ;
+ public final void rule__PropertyRule__Group__2__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1023:1: ( ( ( rule__PropertyRule__NameAssignment_2 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1024:1: ( ( rule__PropertyRule__NameAssignment_2 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1024:1: ( ( rule__PropertyRule__NameAssignment_2 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1025:1: ( rule__PropertyRule__NameAssignment_2 )
+ {
+ before(grammarAccess.getPropertyRuleAccess().getNameAssignment_2());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1026:1: ( rule__PropertyRule__NameAssignment_2 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1026:2: rule__PropertyRule__NameAssignment_2
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__NameAssignment_2_in_rule__PropertyRule__Group__2__Impl2189);
+ rule__PropertyRule__NameAssignment_2();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getPropertyRuleAccess().getNameAssignment_2());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__Group__2__Impl"
+
+
+ // $ANTLR start "rule__PropertyRule__Group__3"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1036:1: rule__PropertyRule__Group__3 : rule__PropertyRule__Group__3__Impl rule__PropertyRule__Group__4 ;
+ public final void rule__PropertyRule__Group__3() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1040:1: ( rule__PropertyRule__Group__3__Impl rule__PropertyRule__Group__4 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1041:2: rule__PropertyRule__Group__3__Impl rule__PropertyRule__Group__4
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__Group__3__Impl_in_rule__PropertyRule__Group__32219);
+ rule__PropertyRule__Group__3__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__PropertyRule__Group__4_in_rule__PropertyRule__Group__32222);
+ rule__PropertyRule__Group__4();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__Group__3"
+
+
+ // $ANTLR start "rule__PropertyRule__Group__3__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1048:1: rule__PropertyRule__Group__3__Impl : ( ( rule__PropertyRule__Group_3__0 )? ) ;
+ public final void rule__PropertyRule__Group__3__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1052:1: ( ( ( rule__PropertyRule__Group_3__0 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1053:1: ( ( rule__PropertyRule__Group_3__0 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1053:1: ( ( rule__PropertyRule__Group_3__0 )? )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1054:1: ( rule__PropertyRule__Group_3__0 )?
+ {
+ before(grammarAccess.getPropertyRuleAccess().getGroup_3());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1055:1: ( rule__PropertyRule__Group_3__0 )?
+ int alt12=2;
+ int LA12_0 = input.LA(1);
+
+ if ( (LA12_0==23) ) {
+ alt12=1;
+ }
+ switch (alt12) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1055:2: rule__PropertyRule__Group_3__0
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__Group_3__0_in_rule__PropertyRule__Group__3__Impl2249);
+ rule__PropertyRule__Group_3__0();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getPropertyRuleAccess().getGroup_3());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__Group__3__Impl"
+
+
+ // $ANTLR start "rule__PropertyRule__Group__4"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1065:1: rule__PropertyRule__Group__4 : rule__PropertyRule__Group__4__Impl rule__PropertyRule__Group__5 ;
+ public final void rule__PropertyRule__Group__4() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1069:1: ( rule__PropertyRule__Group__4__Impl rule__PropertyRule__Group__5 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1070:2: rule__PropertyRule__Group__4__Impl rule__PropertyRule__Group__5
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__Group__4__Impl_in_rule__PropertyRule__Group__42280);
+ rule__PropertyRule__Group__4__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__PropertyRule__Group__5_in_rule__PropertyRule__Group__42283);
+ rule__PropertyRule__Group__5();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__Group__4"
+
+
+ // $ANTLR start "rule__PropertyRule__Group__4__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1077:1: rule__PropertyRule__Group__4__Impl : ( ( rule__PropertyRule__MultiplicityAssignment_4 )? ) ;
+ public final void rule__PropertyRule__Group__4__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1081:1: ( ( ( rule__PropertyRule__MultiplicityAssignment_4 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1082:1: ( ( rule__PropertyRule__MultiplicityAssignment_4 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1082:1: ( ( rule__PropertyRule__MultiplicityAssignment_4 )? )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1083:1: ( rule__PropertyRule__MultiplicityAssignment_4 )?
+ {
+ before(grammarAccess.getPropertyRuleAccess().getMultiplicityAssignment_4());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1084:1: ( rule__PropertyRule__MultiplicityAssignment_4 )?
+ int alt13=2;
+ int LA13_0 = input.LA(1);
+
+ if ( (LA13_0==25) ) {
+ alt13=1;
+ }
+ switch (alt13) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1084:2: rule__PropertyRule__MultiplicityAssignment_4
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__MultiplicityAssignment_4_in_rule__PropertyRule__Group__4__Impl2310);
+ rule__PropertyRule__MultiplicityAssignment_4();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getPropertyRuleAccess().getMultiplicityAssignment_4());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__Group__4__Impl"
+
+
+ // $ANTLR start "rule__PropertyRule__Group__5"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1094:1: rule__PropertyRule__Group__5 : rule__PropertyRule__Group__5__Impl rule__PropertyRule__Group__6 ;
+ public final void rule__PropertyRule__Group__5() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1098:1: ( rule__PropertyRule__Group__5__Impl rule__PropertyRule__Group__6 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1099:2: rule__PropertyRule__Group__5__Impl rule__PropertyRule__Group__6
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__Group__5__Impl_in_rule__PropertyRule__Group__52341);
+ rule__PropertyRule__Group__5__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__PropertyRule__Group__6_in_rule__PropertyRule__Group__52344);
+ rule__PropertyRule__Group__6();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__Group__5"
+
+
+ // $ANTLR start "rule__PropertyRule__Group__5__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1106:1: rule__PropertyRule__Group__5__Impl : ( ( rule__PropertyRule__ModifiersAssignment_5 )? ) ;
+ public final void rule__PropertyRule__Group__5__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1110:1: ( ( ( rule__PropertyRule__ModifiersAssignment_5 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1111:1: ( ( rule__PropertyRule__ModifiersAssignment_5 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1111:1: ( ( rule__PropertyRule__ModifiersAssignment_5 )? )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1112:1: ( rule__PropertyRule__ModifiersAssignment_5 )?
+ {
+ before(grammarAccess.getPropertyRuleAccess().getModifiersAssignment_5());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1113:1: ( rule__PropertyRule__ModifiersAssignment_5 )?
+ int alt14=2;
+ int LA14_0 = input.LA(1);
+
+ if ( (LA14_0==28) ) {
+ alt14=1;
+ }
+ switch (alt14) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1113:2: rule__PropertyRule__ModifiersAssignment_5
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__ModifiersAssignment_5_in_rule__PropertyRule__Group__5__Impl2371);
+ rule__PropertyRule__ModifiersAssignment_5();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getPropertyRuleAccess().getModifiersAssignment_5());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__Group__5__Impl"
+
+
+ // $ANTLR start "rule__PropertyRule__Group__6"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1123:1: rule__PropertyRule__Group__6 : rule__PropertyRule__Group__6__Impl ;
+ public final void rule__PropertyRule__Group__6() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1127:1: ( rule__PropertyRule__Group__6__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1128:2: rule__PropertyRule__Group__6__Impl
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__Group__6__Impl_in_rule__PropertyRule__Group__62402);
+ rule__PropertyRule__Group__6__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__Group__6"
+
+
+ // $ANTLR start "rule__PropertyRule__Group__6__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1134:1: rule__PropertyRule__Group__6__Impl : ( ( rule__PropertyRule__DefaultAssignment_6 )? ) ;
+ public final void rule__PropertyRule__Group__6__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1138:1: ( ( ( rule__PropertyRule__DefaultAssignment_6 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1139:1: ( ( rule__PropertyRule__DefaultAssignment_6 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1139:1: ( ( rule__PropertyRule__DefaultAssignment_6 )? )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1140:1: ( rule__PropertyRule__DefaultAssignment_6 )?
+ {
+ before(grammarAccess.getPropertyRuleAccess().getDefaultAssignment_6());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1141:1: ( rule__PropertyRule__DefaultAssignment_6 )?
+ int alt15=2;
+ int LA15_0 = input.LA(1);
+
+ if ( (LA15_0==33) ) {
+ alt15=1;
+ }
+ switch (alt15) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1141:2: rule__PropertyRule__DefaultAssignment_6
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__DefaultAssignment_6_in_rule__PropertyRule__Group__6__Impl2429);
+ rule__PropertyRule__DefaultAssignment_6();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getPropertyRuleAccess().getDefaultAssignment_6());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__Group__6__Impl"
+
+
+ // $ANTLR start "rule__PropertyRule__Group_3__0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1165:1: rule__PropertyRule__Group_3__0 : rule__PropertyRule__Group_3__0__Impl rule__PropertyRule__Group_3__1 ;
+ public final void rule__PropertyRule__Group_3__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1169:1: ( rule__PropertyRule__Group_3__0__Impl rule__PropertyRule__Group_3__1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1170:2: rule__PropertyRule__Group_3__0__Impl rule__PropertyRule__Group_3__1
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__Group_3__0__Impl_in_rule__PropertyRule__Group_3__02474);
+ rule__PropertyRule__Group_3__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__PropertyRule__Group_3__1_in_rule__PropertyRule__Group_3__02477);
+ rule__PropertyRule__Group_3__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__Group_3__0"
+
+
+ // $ANTLR start "rule__PropertyRule__Group_3__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1177:1: rule__PropertyRule__Group_3__0__Impl : ( ':' ) ;
+ public final void rule__PropertyRule__Group_3__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1181:1: ( ( ':' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1182:1: ( ':' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1182:1: ( ':' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1183:1: ':'
+ {
+ before(grammarAccess.getPropertyRuleAccess().getColonKeyword_3_0());
+ match(input,23,FOLLOW_23_in_rule__PropertyRule__Group_3__0__Impl2505);
+ after(grammarAccess.getPropertyRuleAccess().getColonKeyword_3_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__Group_3__0__Impl"
+
+
+ // $ANTLR start "rule__PropertyRule__Group_3__1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1196:1: rule__PropertyRule__Group_3__1 : rule__PropertyRule__Group_3__1__Impl ;
+ public final void rule__PropertyRule__Group_3__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1200:1: ( rule__PropertyRule__Group_3__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1201:2: rule__PropertyRule__Group_3__1__Impl
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__Group_3__1__Impl_in_rule__PropertyRule__Group_3__12536);
+ rule__PropertyRule__Group_3__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__Group_3__1"
+
+
+ // $ANTLR start "rule__PropertyRule__Group_3__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1207:1: rule__PropertyRule__Group_3__1__Impl : ( ( rule__PropertyRule__Alternatives_3_1 ) ) ;
+ public final void rule__PropertyRule__Group_3__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1211:1: ( ( ( rule__PropertyRule__Alternatives_3_1 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1212:1: ( ( rule__PropertyRule__Alternatives_3_1 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1212:1: ( ( rule__PropertyRule__Alternatives_3_1 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1213:1: ( rule__PropertyRule__Alternatives_3_1 )
+ {
+ before(grammarAccess.getPropertyRuleAccess().getAlternatives_3_1());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1214:1: ( rule__PropertyRule__Alternatives_3_1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1214:2: rule__PropertyRule__Alternatives_3_1
+ {
+ pushFollow(FOLLOW_rule__PropertyRule__Alternatives_3_1_in_rule__PropertyRule__Group_3__1__Impl2563);
+ rule__PropertyRule__Alternatives_3_1();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getPropertyRuleAccess().getAlternatives_3_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__Group_3__1__Impl"
+
+
+ // $ANTLR start "rule__TypeRule__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1228:1: rule__TypeRule__Group__0 : rule__TypeRule__Group__0__Impl rule__TypeRule__Group__1 ;
+ public final void rule__TypeRule__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1232:1: ( rule__TypeRule__Group__0__Impl rule__TypeRule__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1233:2: rule__TypeRule__Group__0__Impl rule__TypeRule__Group__1
+ {
+ pushFollow(FOLLOW_rule__TypeRule__Group__0__Impl_in_rule__TypeRule__Group__02597);
+ rule__TypeRule__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__TypeRule__Group__1_in_rule__TypeRule__Group__02600);
+ rule__TypeRule__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__TypeRule__Group__0"
+
+
+ // $ANTLR start "rule__TypeRule__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1240:1: rule__TypeRule__Group__0__Impl : ( ( rule__TypeRule__PathAssignment_0 )? ) ;
+ public final void rule__TypeRule__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1244:1: ( ( ( rule__TypeRule__PathAssignment_0 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1245:1: ( ( rule__TypeRule__PathAssignment_0 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1245:1: ( ( rule__TypeRule__PathAssignment_0 )? )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1246:1: ( rule__TypeRule__PathAssignment_0 )?
+ {
+ before(grammarAccess.getTypeRuleAccess().getPathAssignment_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1247:1: ( rule__TypeRule__PathAssignment_0 )?
+ int alt16=2;
+ int LA16_0 = input.LA(1);
+
+ if ( (LA16_0==RULE_ID) ) {
+ int LA16_1 = input.LA(2);
+
+ if ( (LA16_1==24) ) {
+ alt16=1;
+ }
+ }
+ switch (alt16) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1247:2: rule__TypeRule__PathAssignment_0
+ {
+ pushFollow(FOLLOW_rule__TypeRule__PathAssignment_0_in_rule__TypeRule__Group__0__Impl2627);
+ rule__TypeRule__PathAssignment_0();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getTypeRuleAccess().getPathAssignment_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__TypeRule__Group__0__Impl"
+
+
+ // $ANTLR start "rule__TypeRule__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1257:1: rule__TypeRule__Group__1 : rule__TypeRule__Group__1__Impl ;
+ public final void rule__TypeRule__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1261:1: ( rule__TypeRule__Group__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1262:2: rule__TypeRule__Group__1__Impl
+ {
+ pushFollow(FOLLOW_rule__TypeRule__Group__1__Impl_in_rule__TypeRule__Group__12658);
+ rule__TypeRule__Group__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__TypeRule__Group__1"
+
+
+ // $ANTLR start "rule__TypeRule__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1268:1: rule__TypeRule__Group__1__Impl : ( ( rule__TypeRule__TypeAssignment_1 ) ) ;
+ public final void rule__TypeRule__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1272:1: ( ( ( rule__TypeRule__TypeAssignment_1 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1273:1: ( ( rule__TypeRule__TypeAssignment_1 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1273:1: ( ( rule__TypeRule__TypeAssignment_1 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1274:1: ( rule__TypeRule__TypeAssignment_1 )
+ {
+ before(grammarAccess.getTypeRuleAccess().getTypeAssignment_1());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1275:1: ( rule__TypeRule__TypeAssignment_1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1275:2: rule__TypeRule__TypeAssignment_1
+ {
+ pushFollow(FOLLOW_rule__TypeRule__TypeAssignment_1_in_rule__TypeRule__Group__1__Impl2685);
+ rule__TypeRule__TypeAssignment_1();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getTypeRuleAccess().getTypeAssignment_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__TypeRule__Group__1__Impl"
+
+
+ // $ANTLR start "rule__QualifiedName__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1289:1: rule__QualifiedName__Group__0 : rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 ;
+ public final void rule__QualifiedName__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1293:1: ( rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1294:2: rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1
+ {
+ pushFollow(FOLLOW_rule__QualifiedName__Group__0__Impl_in_rule__QualifiedName__Group__02719);
+ rule__QualifiedName__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__QualifiedName__Group__1_in_rule__QualifiedName__Group__02722);
+ rule__QualifiedName__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__QualifiedName__Group__0"
+
+
+ // $ANTLR start "rule__QualifiedName__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1301:1: rule__QualifiedName__Group__0__Impl : ( ( rule__QualifiedName__PathAssignment_0 ) ) ;
+ public final void rule__QualifiedName__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1305:1: ( ( ( rule__QualifiedName__PathAssignment_0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1306:1: ( ( rule__QualifiedName__PathAssignment_0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1306:1: ( ( rule__QualifiedName__PathAssignment_0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1307:1: ( rule__QualifiedName__PathAssignment_0 )
+ {
+ before(grammarAccess.getQualifiedNameAccess().getPathAssignment_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1308:1: ( rule__QualifiedName__PathAssignment_0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1308:2: rule__QualifiedName__PathAssignment_0
+ {
+ pushFollow(FOLLOW_rule__QualifiedName__PathAssignment_0_in_rule__QualifiedName__Group__0__Impl2749);
+ rule__QualifiedName__PathAssignment_0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getQualifiedNameAccess().getPathAssignment_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__QualifiedName__Group__0__Impl"
+
+
+ // $ANTLR start "rule__QualifiedName__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1318:1: rule__QualifiedName__Group__1 : rule__QualifiedName__Group__1__Impl rule__QualifiedName__Group__2 ;
+ public final void rule__QualifiedName__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1322:1: ( rule__QualifiedName__Group__1__Impl rule__QualifiedName__Group__2 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1323:2: rule__QualifiedName__Group__1__Impl rule__QualifiedName__Group__2
+ {
+ pushFollow(FOLLOW_rule__QualifiedName__Group__1__Impl_in_rule__QualifiedName__Group__12779);
+ rule__QualifiedName__Group__1__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__QualifiedName__Group__2_in_rule__QualifiedName__Group__12782);
+ rule__QualifiedName__Group__2();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__QualifiedName__Group__1"
+
+
+ // $ANTLR start "rule__QualifiedName__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1330:1: rule__QualifiedName__Group__1__Impl : ( '::' ) ;
+ public final void rule__QualifiedName__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1334:1: ( ( '::' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1335:1: ( '::' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1335:1: ( '::' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1336:1: '::'
+ {
+ before(grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1());
+ match(input,24,FOLLOW_24_in_rule__QualifiedName__Group__1__Impl2810);
+ after(grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__QualifiedName__Group__1__Impl"
+
+
+ // $ANTLR start "rule__QualifiedName__Group__2"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1349:1: rule__QualifiedName__Group__2 : rule__QualifiedName__Group__2__Impl ;
+ public final void rule__QualifiedName__Group__2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1353:1: ( rule__QualifiedName__Group__2__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1354:2: rule__QualifiedName__Group__2__Impl
+ {
+ pushFollow(FOLLOW_rule__QualifiedName__Group__2__Impl_in_rule__QualifiedName__Group__22841);
+ rule__QualifiedName__Group__2__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__QualifiedName__Group__2"
+
+
+ // $ANTLR start "rule__QualifiedName__Group__2__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1360:1: rule__QualifiedName__Group__2__Impl : ( ( rule__QualifiedName__RemainingAssignment_2 )? ) ;
+ public final void rule__QualifiedName__Group__2__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1364:1: ( ( ( rule__QualifiedName__RemainingAssignment_2 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1365:1: ( ( rule__QualifiedName__RemainingAssignment_2 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1365:1: ( ( rule__QualifiedName__RemainingAssignment_2 )? )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1366:1: ( rule__QualifiedName__RemainingAssignment_2 )?
+ {
+ before(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1367:1: ( rule__QualifiedName__RemainingAssignment_2 )?
+ int alt17=2;
+ int LA17_0 = input.LA(1);
+
+ if ( (LA17_0==RULE_ID) ) {
+ int LA17_1 = input.LA(2);
+
+ if ( (LA17_1==24) ) {
+ alt17=1;
+ }
+ }
+ switch (alt17) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1367:2: rule__QualifiedName__RemainingAssignment_2
+ {
+ pushFollow(FOLLOW_rule__QualifiedName__RemainingAssignment_2_in_rule__QualifiedName__Group__2__Impl2868);
+ rule__QualifiedName__RemainingAssignment_2();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getQualifiedNameAccess().getRemainingAssignment_2());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__QualifiedName__Group__2__Impl"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1383:1: rule__MultiplicityRule__Group__0 : rule__MultiplicityRule__Group__0__Impl rule__MultiplicityRule__Group__1 ;
+ public final void rule__MultiplicityRule__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1387:1: ( rule__MultiplicityRule__Group__0__Impl rule__MultiplicityRule__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1388:2: rule__MultiplicityRule__Group__0__Impl rule__MultiplicityRule__Group__1
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group__0__Impl_in_rule__MultiplicityRule__Group__02905);
+ rule__MultiplicityRule__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group__1_in_rule__MultiplicityRule__Group__02908);
+ rule__MultiplicityRule__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group__0"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1395:1: rule__MultiplicityRule__Group__0__Impl : ( '[' ) ;
+ public final void rule__MultiplicityRule__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1399:1: ( ( '[' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1400:1: ( '[' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1400:1: ( '[' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1401:1: '['
+ {
+ before(grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0());
+ match(input,25,FOLLOW_25_in_rule__MultiplicityRule__Group__0__Impl2936);
+ after(grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group__0__Impl"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1414:1: rule__MultiplicityRule__Group__1 : rule__MultiplicityRule__Group__1__Impl rule__MultiplicityRule__Group__2 ;
+ public final void rule__MultiplicityRule__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1418:1: ( rule__MultiplicityRule__Group__1__Impl rule__MultiplicityRule__Group__2 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1419:2: rule__MultiplicityRule__Group__1__Impl rule__MultiplicityRule__Group__2
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group__1__Impl_in_rule__MultiplicityRule__Group__12967);
+ rule__MultiplicityRule__Group__1__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group__2_in_rule__MultiplicityRule__Group__12970);
+ rule__MultiplicityRule__Group__2();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group__1"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1426:1: rule__MultiplicityRule__Group__1__Impl : ( ( rule__MultiplicityRule__BoundsAssignment_1 ) ) ;
+ public final void rule__MultiplicityRule__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1430:1: ( ( ( rule__MultiplicityRule__BoundsAssignment_1 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1431:1: ( ( rule__MultiplicityRule__BoundsAssignment_1 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1431:1: ( ( rule__MultiplicityRule__BoundsAssignment_1 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1432:1: ( rule__MultiplicityRule__BoundsAssignment_1 )
+ {
+ before(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1433:1: ( rule__MultiplicityRule__BoundsAssignment_1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1433:2: rule__MultiplicityRule__BoundsAssignment_1
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__BoundsAssignment_1_in_rule__MultiplicityRule__Group__1__Impl2997);
+ rule__MultiplicityRule__BoundsAssignment_1();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group__1__Impl"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group__2"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1443:1: rule__MultiplicityRule__Group__2 : rule__MultiplicityRule__Group__2__Impl rule__MultiplicityRule__Group__3 ;
+ public final void rule__MultiplicityRule__Group__2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1447:1: ( rule__MultiplicityRule__Group__2__Impl rule__MultiplicityRule__Group__3 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1448:2: rule__MultiplicityRule__Group__2__Impl rule__MultiplicityRule__Group__3
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group__2__Impl_in_rule__MultiplicityRule__Group__23027);
+ rule__MultiplicityRule__Group__2__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group__3_in_rule__MultiplicityRule__Group__23030);
+ rule__MultiplicityRule__Group__3();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group__2"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group__2__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1455:1: rule__MultiplicityRule__Group__2__Impl : ( ( rule__MultiplicityRule__Group_2__0 )? ) ;
+ public final void rule__MultiplicityRule__Group__2__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1459:1: ( ( ( rule__MultiplicityRule__Group_2__0 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1460:1: ( ( rule__MultiplicityRule__Group_2__0 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1460:1: ( ( rule__MultiplicityRule__Group_2__0 )? )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1461:1: ( rule__MultiplicityRule__Group_2__0 )?
+ {
+ before(grammarAccess.getMultiplicityRuleAccess().getGroup_2());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1462:1: ( rule__MultiplicityRule__Group_2__0 )?
+ int alt18=2;
+ int LA18_0 = input.LA(1);
+
+ if ( (LA18_0==27) ) {
+ alt18=1;
+ }
+ switch (alt18) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1462:2: rule__MultiplicityRule__Group_2__0
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group_2__0_in_rule__MultiplicityRule__Group__2__Impl3057);
+ rule__MultiplicityRule__Group_2__0();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getMultiplicityRuleAccess().getGroup_2());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group__2__Impl"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group__3"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1472:1: rule__MultiplicityRule__Group__3 : rule__MultiplicityRule__Group__3__Impl ;
+ public final void rule__MultiplicityRule__Group__3() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1476:1: ( rule__MultiplicityRule__Group__3__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1477:2: rule__MultiplicityRule__Group__3__Impl
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group__3__Impl_in_rule__MultiplicityRule__Group__33088);
+ rule__MultiplicityRule__Group__3__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group__3"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group__3__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1483:1: rule__MultiplicityRule__Group__3__Impl : ( ']' ) ;
+ public final void rule__MultiplicityRule__Group__3__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1487:1: ( ( ']' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1488:1: ( ']' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1488:1: ( ']' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1489:1: ']'
+ {
+ before(grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3());
+ match(input,26,FOLLOW_26_in_rule__MultiplicityRule__Group__3__Impl3116);
+ after(grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group__3__Impl"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group_2__0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1510:1: rule__MultiplicityRule__Group_2__0 : rule__MultiplicityRule__Group_2__0__Impl rule__MultiplicityRule__Group_2__1 ;
+ public final void rule__MultiplicityRule__Group_2__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1514:1: ( rule__MultiplicityRule__Group_2__0__Impl rule__MultiplicityRule__Group_2__1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1515:2: rule__MultiplicityRule__Group_2__0__Impl rule__MultiplicityRule__Group_2__1
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group_2__0__Impl_in_rule__MultiplicityRule__Group_2__03155);
+ rule__MultiplicityRule__Group_2__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group_2__1_in_rule__MultiplicityRule__Group_2__03158);
+ rule__MultiplicityRule__Group_2__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group_2__0"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group_2__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1522:1: rule__MultiplicityRule__Group_2__0__Impl : ( '..' ) ;
+ public final void rule__MultiplicityRule__Group_2__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1526:1: ( ( '..' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1527:1: ( '..' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1527:1: ( '..' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1528:1: '..'
+ {
+ before(grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0());
+ match(input,27,FOLLOW_27_in_rule__MultiplicityRule__Group_2__0__Impl3186);
+ after(grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group_2__0__Impl"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group_2__1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1541:1: rule__MultiplicityRule__Group_2__1 : rule__MultiplicityRule__Group_2__1__Impl ;
+ public final void rule__MultiplicityRule__Group_2__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1545:1: ( rule__MultiplicityRule__Group_2__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1546:2: rule__MultiplicityRule__Group_2__1__Impl
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__Group_2__1__Impl_in_rule__MultiplicityRule__Group_2__13217);
+ rule__MultiplicityRule__Group_2__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group_2__1"
+
+
+ // $ANTLR start "rule__MultiplicityRule__Group_2__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1552:1: rule__MultiplicityRule__Group_2__1__Impl : ( ( rule__MultiplicityRule__BoundsAssignment_2_1 ) ) ;
+ public final void rule__MultiplicityRule__Group_2__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1556:1: ( ( ( rule__MultiplicityRule__BoundsAssignment_2_1 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1557:1: ( ( rule__MultiplicityRule__BoundsAssignment_2_1 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1557:1: ( ( rule__MultiplicityRule__BoundsAssignment_2_1 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1558:1: ( rule__MultiplicityRule__BoundsAssignment_2_1 )
+ {
+ before(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2_1());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1559:1: ( rule__MultiplicityRule__BoundsAssignment_2_1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1559:2: rule__MultiplicityRule__BoundsAssignment_2_1
+ {
+ pushFollow(FOLLOW_rule__MultiplicityRule__BoundsAssignment_2_1_in_rule__MultiplicityRule__Group_2__1__Impl3244);
+ rule__MultiplicityRule__BoundsAssignment_2_1();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getMultiplicityRuleAccess().getBoundsAssignment_2_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__Group_2__1__Impl"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1573:1: rule__ModifiersRule__Group__0 : rule__ModifiersRule__Group__0__Impl rule__ModifiersRule__Group__1 ;
+ public final void rule__ModifiersRule__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1577:1: ( rule__ModifiersRule__Group__0__Impl rule__ModifiersRule__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1578:2: rule__ModifiersRule__Group__0__Impl rule__ModifiersRule__Group__1
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group__0__Impl_in_rule__ModifiersRule__Group__03278);
+ rule__ModifiersRule__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__ModifiersRule__Group__1_in_rule__ModifiersRule__Group__03281);
+ rule__ModifiersRule__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group__0"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1585:1: rule__ModifiersRule__Group__0__Impl : ( () ) ;
+ public final void rule__ModifiersRule__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1589:1: ( ( () ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1590:1: ( () )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1590:1: ( () )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1591:1: ()
+ {
+ before(grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1592:1: ()
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1594:1:
+ {
+ }
+
+ after(grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0());
+
+ }
+
+
+ }
+
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group__0__Impl"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1604:1: rule__ModifiersRule__Group__1 : rule__ModifiersRule__Group__1__Impl rule__ModifiersRule__Group__2 ;
+ public final void rule__ModifiersRule__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1608:1: ( rule__ModifiersRule__Group__1__Impl rule__ModifiersRule__Group__2 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1609:2: rule__ModifiersRule__Group__1__Impl rule__ModifiersRule__Group__2
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group__1__Impl_in_rule__ModifiersRule__Group__13339);
+ rule__ModifiersRule__Group__1__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__ModifiersRule__Group__2_in_rule__ModifiersRule__Group__13342);
+ rule__ModifiersRule__Group__2();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group__1"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1616:1: rule__ModifiersRule__Group__1__Impl : ( '{' ) ;
+ public final void rule__ModifiersRule__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1620:1: ( ( '{' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1621:1: ( '{' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1621:1: ( '{' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1622:1: '{'
+ {
+ before(grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1());
+ match(input,28,FOLLOW_28_in_rule__ModifiersRule__Group__1__Impl3370);
+ after(grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group__1__Impl"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group__2"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1635:1: rule__ModifiersRule__Group__2 : rule__ModifiersRule__Group__2__Impl rule__ModifiersRule__Group__3 ;
+ public final void rule__ModifiersRule__Group__2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1639:1: ( rule__ModifiersRule__Group__2__Impl rule__ModifiersRule__Group__3 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1640:2: rule__ModifiersRule__Group__2__Impl rule__ModifiersRule__Group__3
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group__2__Impl_in_rule__ModifiersRule__Group__23401);
+ rule__ModifiersRule__Group__2__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__ModifiersRule__Group__3_in_rule__ModifiersRule__Group__23404);
+ rule__ModifiersRule__Group__3();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group__2"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group__2__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1647:1: rule__ModifiersRule__Group__2__Impl : ( ( rule__ModifiersRule__Group_2__0 )? ) ;
+ public final void rule__ModifiersRule__Group__2__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1651:1: ( ( ( rule__ModifiersRule__Group_2__0 )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1652:1: ( ( rule__ModifiersRule__Group_2__0 )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1652:1: ( ( rule__ModifiersRule__Group_2__0 )? )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1653:1: ( rule__ModifiersRule__Group_2__0 )?
+ {
+ before(grammarAccess.getModifiersRuleAccess().getGroup_2());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1654:1: ( rule__ModifiersRule__Group_2__0 )?
+ int alt19=2;
+ int LA19_0 = input.LA(1);
+
+ if ( ((LA19_0>=17 && LA19_0<=20)||(LA19_0>=31 && LA19_0<=32)) ) {
+ alt19=1;
+ }
+ switch (alt19) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1654:2: rule__ModifiersRule__Group_2__0
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group_2__0_in_rule__ModifiersRule__Group__2__Impl3431);
+ rule__ModifiersRule__Group_2__0();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ }
+
+ after(grammarAccess.getModifiersRuleAccess().getGroup_2());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group__2__Impl"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group__3"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1664:1: rule__ModifiersRule__Group__3 : rule__ModifiersRule__Group__3__Impl ;
+ public final void rule__ModifiersRule__Group__3() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1668:1: ( rule__ModifiersRule__Group__3__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1669:2: rule__ModifiersRule__Group__3__Impl
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group__3__Impl_in_rule__ModifiersRule__Group__33462);
+ rule__ModifiersRule__Group__3__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group__3"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group__3__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1675:1: rule__ModifiersRule__Group__3__Impl : ( '}' ) ;
+ public final void rule__ModifiersRule__Group__3__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1679:1: ( ( '}' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1680:1: ( '}' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1680:1: ( '}' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1681:1: '}'
+ {
+ before(grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3());
+ match(input,29,FOLLOW_29_in_rule__ModifiersRule__Group__3__Impl3490);
+ after(grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group__3__Impl"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group_2__0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1702:1: rule__ModifiersRule__Group_2__0 : rule__ModifiersRule__Group_2__0__Impl rule__ModifiersRule__Group_2__1 ;
+ public final void rule__ModifiersRule__Group_2__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1706:1: ( rule__ModifiersRule__Group_2__0__Impl rule__ModifiersRule__Group_2__1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1707:2: rule__ModifiersRule__Group_2__0__Impl rule__ModifiersRule__Group_2__1
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group_2__0__Impl_in_rule__ModifiersRule__Group_2__03529);
+ rule__ModifiersRule__Group_2__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__ModifiersRule__Group_2__1_in_rule__ModifiersRule__Group_2__03532);
+ rule__ModifiersRule__Group_2__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group_2__0"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group_2__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1714:1: rule__ModifiersRule__Group_2__0__Impl : ( ( rule__ModifiersRule__ValuesAssignment_2_0 ) ) ;
+ public final void rule__ModifiersRule__Group_2__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1718:1: ( ( ( rule__ModifiersRule__ValuesAssignment_2_0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1719:1: ( ( rule__ModifiersRule__ValuesAssignment_2_0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1719:1: ( ( rule__ModifiersRule__ValuesAssignment_2_0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1720:1: ( rule__ModifiersRule__ValuesAssignment_2_0 )
+ {
+ before(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1721:1: ( rule__ModifiersRule__ValuesAssignment_2_0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1721:2: rule__ModifiersRule__ValuesAssignment_2_0
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__ValuesAssignment_2_0_in_rule__ModifiersRule__Group_2__0__Impl3559);
+ rule__ModifiersRule__ValuesAssignment_2_0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group_2__0__Impl"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group_2__1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1731:1: rule__ModifiersRule__Group_2__1 : rule__ModifiersRule__Group_2__1__Impl ;
+ public final void rule__ModifiersRule__Group_2__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1735:1: ( rule__ModifiersRule__Group_2__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1736:2: rule__ModifiersRule__Group_2__1__Impl
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group_2__1__Impl_in_rule__ModifiersRule__Group_2__13589);
+ rule__ModifiersRule__Group_2__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group_2__1"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group_2__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1742:1: rule__ModifiersRule__Group_2__1__Impl : ( ( rule__ModifiersRule__Group_2_1__0 )* ) ;
+ public final void rule__ModifiersRule__Group_2__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1746:1: ( ( ( rule__ModifiersRule__Group_2_1__0 )* ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1747:1: ( ( rule__ModifiersRule__Group_2_1__0 )* )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1747:1: ( ( rule__ModifiersRule__Group_2_1__0 )* )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1748:1: ( rule__ModifiersRule__Group_2_1__0 )*
+ {
+ before(grammarAccess.getModifiersRuleAccess().getGroup_2_1());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1749:1: ( rule__ModifiersRule__Group_2_1__0 )*
+ loop20:
+ do {
+ int alt20=2;
+ int LA20_0 = input.LA(1);
+
+ if ( (LA20_0==30) ) {
+ alt20=1;
+ }
+
+
+ switch (alt20) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1749:2: rule__ModifiersRule__Group_2_1__0
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group_2_1__0_in_rule__ModifiersRule__Group_2__1__Impl3616);
+ rule__ModifiersRule__Group_2_1__0();
+
+ state._fsp--;
+
+
+ }
+ break;
+
+ default :
+ break loop20;
+ }
+ } while (true);
+
+ after(grammarAccess.getModifiersRuleAccess().getGroup_2_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group_2__1__Impl"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group_2_1__0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1763:1: rule__ModifiersRule__Group_2_1__0 : rule__ModifiersRule__Group_2_1__0__Impl rule__ModifiersRule__Group_2_1__1 ;
+ public final void rule__ModifiersRule__Group_2_1__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1767:1: ( rule__ModifiersRule__Group_2_1__0__Impl rule__ModifiersRule__Group_2_1__1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1768:2: rule__ModifiersRule__Group_2_1__0__Impl rule__ModifiersRule__Group_2_1__1
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group_2_1__0__Impl_in_rule__ModifiersRule__Group_2_1__03651);
+ rule__ModifiersRule__Group_2_1__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__ModifiersRule__Group_2_1__1_in_rule__ModifiersRule__Group_2_1__03654);
+ rule__ModifiersRule__Group_2_1__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group_2_1__0"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group_2_1__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1775:1: rule__ModifiersRule__Group_2_1__0__Impl : ( ',' ) ;
+ public final void rule__ModifiersRule__Group_2_1__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1779:1: ( ( ',' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1780:1: ( ',' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1780:1: ( ',' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1781:1: ','
+ {
+ before(grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0());
+ match(input,30,FOLLOW_30_in_rule__ModifiersRule__Group_2_1__0__Impl3682);
+ after(grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group_2_1__0__Impl"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group_2_1__1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1794:1: rule__ModifiersRule__Group_2_1__1 : rule__ModifiersRule__Group_2_1__1__Impl ;
+ public final void rule__ModifiersRule__Group_2_1__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1798:1: ( rule__ModifiersRule__Group_2_1__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1799:2: rule__ModifiersRule__Group_2_1__1__Impl
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__Group_2_1__1__Impl_in_rule__ModifiersRule__Group_2_1__13713);
+ rule__ModifiersRule__Group_2_1__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group_2_1__1"
+
+
+ // $ANTLR start "rule__ModifiersRule__Group_2_1__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1805:1: rule__ModifiersRule__Group_2_1__1__Impl : ( ( rule__ModifiersRule__ValuesAssignment_2_1_1 ) ) ;
+ public final void rule__ModifiersRule__Group_2_1__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1809:1: ( ( ( rule__ModifiersRule__ValuesAssignment_2_1_1 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1810:1: ( ( rule__ModifiersRule__ValuesAssignment_2_1_1 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1810:1: ( ( rule__ModifiersRule__ValuesAssignment_2_1_1 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1811:1: ( rule__ModifiersRule__ValuesAssignment_2_1_1 )
+ {
+ before(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1812:1: ( rule__ModifiersRule__ValuesAssignment_2_1_1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1812:2: rule__ModifiersRule__ValuesAssignment_2_1_1
+ {
+ pushFollow(FOLLOW_rule__ModifiersRule__ValuesAssignment_2_1_1_in_rule__ModifiersRule__Group_2_1__1__Impl3740);
+ rule__ModifiersRule__ValuesAssignment_2_1_1();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getModifiersRuleAccess().getValuesAssignment_2_1_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__Group_2_1__1__Impl"
+
+
+ // $ANTLR start "rule__RedefinesRule__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1826:1: rule__RedefinesRule__Group__0 : rule__RedefinesRule__Group__0__Impl rule__RedefinesRule__Group__1 ;
+ public final void rule__RedefinesRule__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1830:1: ( rule__RedefinesRule__Group__0__Impl rule__RedefinesRule__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1831:2: rule__RedefinesRule__Group__0__Impl rule__RedefinesRule__Group__1
+ {
+ pushFollow(FOLLOW_rule__RedefinesRule__Group__0__Impl_in_rule__RedefinesRule__Group__03774);
+ rule__RedefinesRule__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__RedefinesRule__Group__1_in_rule__RedefinesRule__Group__03777);
+ rule__RedefinesRule__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RedefinesRule__Group__0"
+
+
+ // $ANTLR start "rule__RedefinesRule__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1838:1: rule__RedefinesRule__Group__0__Impl : ( 'redefines' ) ;
+ public final void rule__RedefinesRule__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1842:1: ( ( 'redefines' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1843:1: ( 'redefines' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1843:1: ( 'redefines' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1844:1: 'redefines'
+ {
+ before(grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0());
+ match(input,31,FOLLOW_31_in_rule__RedefinesRule__Group__0__Impl3805);
+ after(grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RedefinesRule__Group__0__Impl"
+
+
+ // $ANTLR start "rule__RedefinesRule__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1857:1: rule__RedefinesRule__Group__1 : rule__RedefinesRule__Group__1__Impl ;
+ public final void rule__RedefinesRule__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1861:1: ( rule__RedefinesRule__Group__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1862:2: rule__RedefinesRule__Group__1__Impl
+ {
+ pushFollow(FOLLOW_rule__RedefinesRule__Group__1__Impl_in_rule__RedefinesRule__Group__13836);
+ rule__RedefinesRule__Group__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RedefinesRule__Group__1"
+
+
+ // $ANTLR start "rule__RedefinesRule__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1868:1: rule__RedefinesRule__Group__1__Impl : ( ( rule__RedefinesRule__PropertyAssignment_1 ) ) ;
+ public final void rule__RedefinesRule__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1872:1: ( ( ( rule__RedefinesRule__PropertyAssignment_1 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1873:1: ( ( rule__RedefinesRule__PropertyAssignment_1 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1873:1: ( ( rule__RedefinesRule__PropertyAssignment_1 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1874:1: ( rule__RedefinesRule__PropertyAssignment_1 )
+ {
+ before(grammarAccess.getRedefinesRuleAccess().getPropertyAssignment_1());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1875:1: ( rule__RedefinesRule__PropertyAssignment_1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1875:2: rule__RedefinesRule__PropertyAssignment_1
+ {
+ pushFollow(FOLLOW_rule__RedefinesRule__PropertyAssignment_1_in_rule__RedefinesRule__Group__1__Impl3863);
+ rule__RedefinesRule__PropertyAssignment_1();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRedefinesRuleAccess().getPropertyAssignment_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RedefinesRule__Group__1__Impl"
+
+
+ // $ANTLR start "rule__SubsetsRule__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1889:1: rule__SubsetsRule__Group__0 : rule__SubsetsRule__Group__0__Impl rule__SubsetsRule__Group__1 ;
+ public final void rule__SubsetsRule__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1893:1: ( rule__SubsetsRule__Group__0__Impl rule__SubsetsRule__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1894:2: rule__SubsetsRule__Group__0__Impl rule__SubsetsRule__Group__1
+ {
+ pushFollow(FOLLOW_rule__SubsetsRule__Group__0__Impl_in_rule__SubsetsRule__Group__03897);
+ rule__SubsetsRule__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__SubsetsRule__Group__1_in_rule__SubsetsRule__Group__03900);
+ rule__SubsetsRule__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__SubsetsRule__Group__0"
+
+
+ // $ANTLR start "rule__SubsetsRule__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1901:1: rule__SubsetsRule__Group__0__Impl : ( 'subsets' ) ;
+ public final void rule__SubsetsRule__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1905:1: ( ( 'subsets' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1906:1: ( 'subsets' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1906:1: ( 'subsets' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1907:1: 'subsets'
+ {
+ before(grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0());
+ match(input,32,FOLLOW_32_in_rule__SubsetsRule__Group__0__Impl3928);
+ after(grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__SubsetsRule__Group__0__Impl"
+
+
+ // $ANTLR start "rule__SubsetsRule__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1920:1: rule__SubsetsRule__Group__1 : rule__SubsetsRule__Group__1__Impl ;
+ public final void rule__SubsetsRule__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1924:1: ( rule__SubsetsRule__Group__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1925:2: rule__SubsetsRule__Group__1__Impl
+ {
+ pushFollow(FOLLOW_rule__SubsetsRule__Group__1__Impl_in_rule__SubsetsRule__Group__13959);
+ rule__SubsetsRule__Group__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__SubsetsRule__Group__1"
+
+
+ // $ANTLR start "rule__SubsetsRule__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1931:1: rule__SubsetsRule__Group__1__Impl : ( ( rule__SubsetsRule__PropertyAssignment_1 ) ) ;
+ public final void rule__SubsetsRule__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1935:1: ( ( ( rule__SubsetsRule__PropertyAssignment_1 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1936:1: ( ( rule__SubsetsRule__PropertyAssignment_1 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1936:1: ( ( rule__SubsetsRule__PropertyAssignment_1 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1937:1: ( rule__SubsetsRule__PropertyAssignment_1 )
+ {
+ before(grammarAccess.getSubsetsRuleAccess().getPropertyAssignment_1());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1938:1: ( rule__SubsetsRule__PropertyAssignment_1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1938:2: rule__SubsetsRule__PropertyAssignment_1
+ {
+ pushFollow(FOLLOW_rule__SubsetsRule__PropertyAssignment_1_in_rule__SubsetsRule__Group__1__Impl3986);
+ rule__SubsetsRule__PropertyAssignment_1();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getSubsetsRuleAccess().getPropertyAssignment_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__SubsetsRule__Group__1__Impl"
+
+
+ // $ANTLR start "rule__DefaultValueRule__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1952:1: rule__DefaultValueRule__Group__0 : rule__DefaultValueRule__Group__0__Impl rule__DefaultValueRule__Group__1 ;
+ public final void rule__DefaultValueRule__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1956:1: ( rule__DefaultValueRule__Group__0__Impl rule__DefaultValueRule__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1957:2: rule__DefaultValueRule__Group__0__Impl rule__DefaultValueRule__Group__1
+ {
+ pushFollow(FOLLOW_rule__DefaultValueRule__Group__0__Impl_in_rule__DefaultValueRule__Group__04020);
+ rule__DefaultValueRule__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__DefaultValueRule__Group__1_in_rule__DefaultValueRule__Group__04023);
+ rule__DefaultValueRule__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__DefaultValueRule__Group__0"
+
+
+ // $ANTLR start "rule__DefaultValueRule__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1964:1: rule__DefaultValueRule__Group__0__Impl : ( '=' ) ;
+ public final void rule__DefaultValueRule__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1968:1: ( ( '=' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1969:1: ( '=' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1969:1: ( '=' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1970:1: '='
+ {
+ before(grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0());
+ match(input,33,FOLLOW_33_in_rule__DefaultValueRule__Group__0__Impl4051);
+ after(grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__DefaultValueRule__Group__0__Impl"
+
+
+ // $ANTLR start "rule__DefaultValueRule__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1983:1: rule__DefaultValueRule__Group__1 : rule__DefaultValueRule__Group__1__Impl ;
+ public final void rule__DefaultValueRule__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1987:1: ( rule__DefaultValueRule__Group__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1988:2: rule__DefaultValueRule__Group__1__Impl
+ {
+ pushFollow(FOLLOW_rule__DefaultValueRule__Group__1__Impl_in_rule__DefaultValueRule__Group__14082);
+ rule__DefaultValueRule__Group__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__DefaultValueRule__Group__1"
+
+
+ // $ANTLR start "rule__DefaultValueRule__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1994:1: rule__DefaultValueRule__Group__1__Impl : ( ( rule__DefaultValueRule__DefaultAssignment_1 ) ) ;
+ public final void rule__DefaultValueRule__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1998:1: ( ( ( rule__DefaultValueRule__DefaultAssignment_1 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1999:1: ( ( rule__DefaultValueRule__DefaultAssignment_1 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:1999:1: ( ( rule__DefaultValueRule__DefaultAssignment_1 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2000:1: ( rule__DefaultValueRule__DefaultAssignment_1 )
+ {
+ before(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2001:1: ( rule__DefaultValueRule__DefaultAssignment_1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2001:2: rule__DefaultValueRule__DefaultAssignment_1
+ {
+ pushFollow(FOLLOW_rule__DefaultValueRule__DefaultAssignment_1_in_rule__DefaultValueRule__Group__1__Impl4109);
+ rule__DefaultValueRule__DefaultAssignment_1();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getDefaultValueRuleAccess().getDefaultAssignment_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__DefaultValueRule__Group__1__Impl"
+
+
+ // $ANTLR start "rule__RealValue__Group_0__0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2015:1: rule__RealValue__Group_0__0 : rule__RealValue__Group_0__0__Impl rule__RealValue__Group_0__1 ;
+ public final void rule__RealValue__Group_0__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2019:1: ( rule__RealValue__Group_0__0__Impl rule__RealValue__Group_0__1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2020:2: rule__RealValue__Group_0__0__Impl rule__RealValue__Group_0__1
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_0__0__Impl_in_rule__RealValue__Group_0__04143);
+ rule__RealValue__Group_0__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__RealValue__Group_0__1_in_rule__RealValue__Group_0__04146);
+ rule__RealValue__Group_0__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_0__0"
+
+
+ // $ANTLR start "rule__RealValue__Group_0__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2027:1: rule__RealValue__Group_0__0__Impl : ( ( rule__RealValue__IntegerAssignment_0_0 ) ) ;
+ public final void rule__RealValue__Group_0__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2031:1: ( ( ( rule__RealValue__IntegerAssignment_0_0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2032:1: ( ( rule__RealValue__IntegerAssignment_0_0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2032:1: ( ( rule__RealValue__IntegerAssignment_0_0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2033:1: ( rule__RealValue__IntegerAssignment_0_0 )
+ {
+ before(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2034:1: ( rule__RealValue__IntegerAssignment_0_0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2034:2: rule__RealValue__IntegerAssignment_0_0
+ {
+ pushFollow(FOLLOW_rule__RealValue__IntegerAssignment_0_0_in_rule__RealValue__Group_0__0__Impl4173);
+ rule__RealValue__IntegerAssignment_0_0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRealValueAccess().getIntegerAssignment_0_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_0__0__Impl"
+
+
+ // $ANTLR start "rule__RealValue__Group_0__1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2044:1: rule__RealValue__Group_0__1 : rule__RealValue__Group_0__1__Impl ;
+ public final void rule__RealValue__Group_0__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2048:1: ( rule__RealValue__Group_0__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2049:2: rule__RealValue__Group_0__1__Impl
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_0__1__Impl_in_rule__RealValue__Group_0__14203);
+ rule__RealValue__Group_0__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_0__1"
+
+
+ // $ANTLR start "rule__RealValue__Group_0__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2055:1: rule__RealValue__Group_0__1__Impl : ( '.' ) ;
+ public final void rule__RealValue__Group_0__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2059:1: ( ( '.' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2060:1: ( '.' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2060:1: ( '.' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2061:1: '.'
+ {
+ before(grammarAccess.getRealValueAccess().getFullStopKeyword_0_1());
+ match(input,34,FOLLOW_34_in_rule__RealValue__Group_0__1__Impl4231);
+ after(grammarAccess.getRealValueAccess().getFullStopKeyword_0_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_0__1__Impl"
+
+
+ // $ANTLR start "rule__RealValue__Group_1__0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2078:1: rule__RealValue__Group_1__0 : rule__RealValue__Group_1__0__Impl rule__RealValue__Group_1__1 ;
+ public final void rule__RealValue__Group_1__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2082:1: ( rule__RealValue__Group_1__0__Impl rule__RealValue__Group_1__1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2083:2: rule__RealValue__Group_1__0__Impl rule__RealValue__Group_1__1
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_1__0__Impl_in_rule__RealValue__Group_1__04266);
+ rule__RealValue__Group_1__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__RealValue__Group_1__1_in_rule__RealValue__Group_1__04269);
+ rule__RealValue__Group_1__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_1__0"
+
+
+ // $ANTLR start "rule__RealValue__Group_1__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2090:1: rule__RealValue__Group_1__0__Impl : ( '.' ) ;
+ public final void rule__RealValue__Group_1__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2094:1: ( ( '.' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2095:1: ( '.' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2095:1: ( '.' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2096:1: '.'
+ {
+ before(grammarAccess.getRealValueAccess().getFullStopKeyword_1_0());
+ match(input,34,FOLLOW_34_in_rule__RealValue__Group_1__0__Impl4297);
+ after(grammarAccess.getRealValueAccess().getFullStopKeyword_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_1__0__Impl"
+
+
+ // $ANTLR start "rule__RealValue__Group_1__1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2109:1: rule__RealValue__Group_1__1 : rule__RealValue__Group_1__1__Impl ;
+ public final void rule__RealValue__Group_1__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2113:1: ( rule__RealValue__Group_1__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2114:2: rule__RealValue__Group_1__1__Impl
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_1__1__Impl_in_rule__RealValue__Group_1__14328);
+ rule__RealValue__Group_1__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_1__1"
+
+
+ // $ANTLR start "rule__RealValue__Group_1__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2120:1: rule__RealValue__Group_1__1__Impl : ( ( rule__RealValue__FractionAssignment_1_1 ) ) ;
+ public final void rule__RealValue__Group_1__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2124:1: ( ( ( rule__RealValue__FractionAssignment_1_1 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2125:1: ( ( rule__RealValue__FractionAssignment_1_1 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2125:1: ( ( rule__RealValue__FractionAssignment_1_1 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2126:1: ( rule__RealValue__FractionAssignment_1_1 )
+ {
+ before(grammarAccess.getRealValueAccess().getFractionAssignment_1_1());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2127:1: ( rule__RealValue__FractionAssignment_1_1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2127:2: rule__RealValue__FractionAssignment_1_1
+ {
+ pushFollow(FOLLOW_rule__RealValue__FractionAssignment_1_1_in_rule__RealValue__Group_1__1__Impl4355);
+ rule__RealValue__FractionAssignment_1_1();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRealValueAccess().getFractionAssignment_1_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_1__1__Impl"
+
+
+ // $ANTLR start "rule__RealValue__Group_2__0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2141:1: rule__RealValue__Group_2__0 : rule__RealValue__Group_2__0__Impl rule__RealValue__Group_2__1 ;
+ public final void rule__RealValue__Group_2__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2145:1: ( rule__RealValue__Group_2__0__Impl rule__RealValue__Group_2__1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2146:2: rule__RealValue__Group_2__0__Impl rule__RealValue__Group_2__1
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_2__0__Impl_in_rule__RealValue__Group_2__04389);
+ rule__RealValue__Group_2__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__RealValue__Group_2__1_in_rule__RealValue__Group_2__04392);
+ rule__RealValue__Group_2__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_2__0"
+
+
+ // $ANTLR start "rule__RealValue__Group_2__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2153:1: rule__RealValue__Group_2__0__Impl : ( ( rule__RealValue__IntegerAssignment_2_0 ) ) ;
+ public final void rule__RealValue__Group_2__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2157:1: ( ( ( rule__RealValue__IntegerAssignment_2_0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2158:1: ( ( rule__RealValue__IntegerAssignment_2_0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2158:1: ( ( rule__RealValue__IntegerAssignment_2_0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2159:1: ( rule__RealValue__IntegerAssignment_2_0 )
+ {
+ before(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2160:1: ( rule__RealValue__IntegerAssignment_2_0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2160:2: rule__RealValue__IntegerAssignment_2_0
+ {
+ pushFollow(FOLLOW_rule__RealValue__IntegerAssignment_2_0_in_rule__RealValue__Group_2__0__Impl4419);
+ rule__RealValue__IntegerAssignment_2_0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRealValueAccess().getIntegerAssignment_2_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_2__0__Impl"
+
+
+ // $ANTLR start "rule__RealValue__Group_2__1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2170:1: rule__RealValue__Group_2__1 : rule__RealValue__Group_2__1__Impl rule__RealValue__Group_2__2 ;
+ public final void rule__RealValue__Group_2__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2174:1: ( rule__RealValue__Group_2__1__Impl rule__RealValue__Group_2__2 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2175:2: rule__RealValue__Group_2__1__Impl rule__RealValue__Group_2__2
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_2__1__Impl_in_rule__RealValue__Group_2__14449);
+ rule__RealValue__Group_2__1__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__RealValue__Group_2__2_in_rule__RealValue__Group_2__14452);
+ rule__RealValue__Group_2__2();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_2__1"
+
+
+ // $ANTLR start "rule__RealValue__Group_2__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2182:1: rule__RealValue__Group_2__1__Impl : ( '.' ) ;
+ public final void rule__RealValue__Group_2__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2186:1: ( ( '.' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2187:1: ( '.' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2187:1: ( '.' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2188:1: '.'
+ {
+ before(grammarAccess.getRealValueAccess().getFullStopKeyword_2_1());
+ match(input,34,FOLLOW_34_in_rule__RealValue__Group_2__1__Impl4480);
+ after(grammarAccess.getRealValueAccess().getFullStopKeyword_2_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_2__1__Impl"
+
+
+ // $ANTLR start "rule__RealValue__Group_2__2"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2201:1: rule__RealValue__Group_2__2 : rule__RealValue__Group_2__2__Impl ;
+ public final void rule__RealValue__Group_2__2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2205:1: ( rule__RealValue__Group_2__2__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2206:2: rule__RealValue__Group_2__2__Impl
+ {
+ pushFollow(FOLLOW_rule__RealValue__Group_2__2__Impl_in_rule__RealValue__Group_2__24511);
+ rule__RealValue__Group_2__2__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_2__2"
+
+
+ // $ANTLR start "rule__RealValue__Group_2__2__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2212:1: rule__RealValue__Group_2__2__Impl : ( ( rule__RealValue__FractionAssignment_2_2 ) ) ;
+ public final void rule__RealValue__Group_2__2__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2216:1: ( ( ( rule__RealValue__FractionAssignment_2_2 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2217:1: ( ( rule__RealValue__FractionAssignment_2_2 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2217:1: ( ( rule__RealValue__FractionAssignment_2_2 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2218:1: ( rule__RealValue__FractionAssignment_2_2 )
+ {
+ before(grammarAccess.getRealValueAccess().getFractionAssignment_2_2());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2219:1: ( rule__RealValue__FractionAssignment_2_2 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2219:2: rule__RealValue__FractionAssignment_2_2
+ {
+ pushFollow(FOLLOW_rule__RealValue__FractionAssignment_2_2_in_rule__RealValue__Group_2__2__Impl4538);
+ rule__RealValue__FractionAssignment_2_2();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getRealValueAccess().getFractionAssignment_2_2());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__Group_2__2__Impl"
+
+
+ // $ANTLR start "rule__NullValue__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2235:1: rule__NullValue__Group__0 : rule__NullValue__Group__0__Impl rule__NullValue__Group__1 ;
+ public final void rule__NullValue__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2239:1: ( rule__NullValue__Group__0__Impl rule__NullValue__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2240:2: rule__NullValue__Group__0__Impl rule__NullValue__Group__1
+ {
+ pushFollow(FOLLOW_rule__NullValue__Group__0__Impl_in_rule__NullValue__Group__04574);
+ rule__NullValue__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__NullValue__Group__1_in_rule__NullValue__Group__04577);
+ rule__NullValue__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__NullValue__Group__0"
+
+
+ // $ANTLR start "rule__NullValue__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2247:1: rule__NullValue__Group__0__Impl : ( () ) ;
+ public final void rule__NullValue__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2251:1: ( ( () ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2252:1: ( () )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2252:1: ( () )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2253:1: ()
+ {
+ before(grammarAccess.getNullValueAccess().getNullValueAction_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2254:1: ()
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2256:1:
+ {
+ }
+
+ after(grammarAccess.getNullValueAccess().getNullValueAction_0());
+
+ }
+
+
+ }
+
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__NullValue__Group__0__Impl"
+
+
+ // $ANTLR start "rule__NullValue__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2266:1: rule__NullValue__Group__1 : rule__NullValue__Group__1__Impl ;
+ public final void rule__NullValue__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2270:1: ( rule__NullValue__Group__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2271:2: rule__NullValue__Group__1__Impl
+ {
+ pushFollow(FOLLOW_rule__NullValue__Group__1__Impl_in_rule__NullValue__Group__14635);
+ rule__NullValue__Group__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__NullValue__Group__1"
+
+
+ // $ANTLR start "rule__NullValue__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2277:1: rule__NullValue__Group__1__Impl : ( 'null' ) ;
+ public final void rule__NullValue__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2281:1: ( ( 'null' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2282:1: ( 'null' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2282:1: ( 'null' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2283:1: 'null'
+ {
+ before(grammarAccess.getNullValueAccess().getNullKeyword_1());
+ match(input,35,FOLLOW_35_in_rule__NullValue__Group__1__Impl4663);
+ after(grammarAccess.getNullValueAccess().getNullKeyword_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__NullValue__Group__1__Impl"
+
+
+ // $ANTLR start "rule__NoValue__Group__0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2300:1: rule__NoValue__Group__0 : rule__NoValue__Group__0__Impl rule__NoValue__Group__1 ;
+ public final void rule__NoValue__Group__0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2304:1: ( rule__NoValue__Group__0__Impl rule__NoValue__Group__1 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2305:2: rule__NoValue__Group__0__Impl rule__NoValue__Group__1
+ {
+ pushFollow(FOLLOW_rule__NoValue__Group__0__Impl_in_rule__NoValue__Group__04698);
+ rule__NoValue__Group__0__Impl();
+
+ state._fsp--;
+
+ pushFollow(FOLLOW_rule__NoValue__Group__1_in_rule__NoValue__Group__04701);
+ rule__NoValue__Group__1();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__NoValue__Group__0"
+
+
+ // $ANTLR start "rule__NoValue__Group__0__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2312:1: rule__NoValue__Group__0__Impl : ( () ) ;
+ public final void rule__NoValue__Group__0__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2316:1: ( ( () ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2317:1: ( () )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2317:1: ( () )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2318:1: ()
+ {
+ before(grammarAccess.getNoValueAccess().getNoValueAction_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2319:1: ()
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2321:1:
+ {
+ }
+
+ after(grammarAccess.getNoValueAccess().getNoValueAction_0());
+
+ }
+
+
+ }
+
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__NoValue__Group__0__Impl"
+
+
+ // $ANTLR start "rule__NoValue__Group__1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2331:1: rule__NoValue__Group__1 : rule__NoValue__Group__1__Impl ;
+ public final void rule__NoValue__Group__1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2335:1: ( rule__NoValue__Group__1__Impl )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2336:2: rule__NoValue__Group__1__Impl
+ {
+ pushFollow(FOLLOW_rule__NoValue__Group__1__Impl_in_rule__NoValue__Group__14759);
+ rule__NoValue__Group__1__Impl();
+
+ state._fsp--;
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__NoValue__Group__1"
+
+
+ // $ANTLR start "rule__NoValue__Group__1__Impl"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2342:1: rule__NoValue__Group__1__Impl : ( 'none' ) ;
+ public final void rule__NoValue__Group__1__Impl() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2346:1: ( ( 'none' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2347:1: ( 'none' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2347:1: ( 'none' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2348:1: 'none'
+ {
+ before(grammarAccess.getNoValueAccess().getNoneKeyword_1());
+ match(input,36,FOLLOW_36_in_rule__NoValue__Group__1__Impl4787);
+ after(grammarAccess.getNoValueAccess().getNoneKeyword_1());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__NoValue__Group__1__Impl"
+
+
+ // $ANTLR start "rule__PropertyRule__VisibilityAssignment_0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2366:1: rule__PropertyRule__VisibilityAssignment_0 : ( ruleVisibilityRule ) ;
+ public final void rule__PropertyRule__VisibilityAssignment_0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2370:1: ( ( ruleVisibilityRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2371:1: ( ruleVisibilityRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2371:1: ( ruleVisibilityRule )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2372:1: ruleVisibilityRule
+ {
+ before(grammarAccess.getPropertyRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0());
+ pushFollow(FOLLOW_ruleVisibilityRule_in_rule__PropertyRule__VisibilityAssignment_04827);
+ ruleVisibilityRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getPropertyRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__VisibilityAssignment_0"
+
+
+ // $ANTLR start "rule__PropertyRule__DerivedAssignment_1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2381:1: rule__PropertyRule__DerivedAssignment_1 : ( ( '/' ) ) ;
+ public final void rule__PropertyRule__DerivedAssignment_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2385:1: ( ( ( '/' ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2386:1: ( ( '/' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2386:1: ( ( '/' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2387:1: ( '/' )
+ {
+ before(grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2388:1: ( '/' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2389:1: '/'
+ {
+ before(grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0());
+ match(input,37,FOLLOW_37_in_rule__PropertyRule__DerivedAssignment_14863);
+ after(grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0());
+
+ }
+
+ after(grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__DerivedAssignment_1"
+
+
+ // $ANTLR start "rule__PropertyRule__NameAssignment_2"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2404:1: rule__PropertyRule__NameAssignment_2 : ( RULE_ID ) ;
+ public final void rule__PropertyRule__NameAssignment_2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2408:1: ( ( RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2409:1: ( RULE_ID )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2409:1: ( RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2410:1: RULE_ID
+ {
+ before(grammarAccess.getPropertyRuleAccess().getNameIDTerminalRuleCall_2_0());
+ match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__PropertyRule__NameAssignment_24902);
+ after(grammarAccess.getPropertyRuleAccess().getNameIDTerminalRuleCall_2_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__NameAssignment_2"
+
+
+ // $ANTLR start "rule__PropertyRule__TypeAssignment_3_1_0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2419:1: rule__PropertyRule__TypeAssignment_3_1_0 : ( ruleTypeRule ) ;
+ public final void rule__PropertyRule__TypeAssignment_3_1_0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2423:1: ( ( ruleTypeRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2424:1: ( ruleTypeRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2424:1: ( ruleTypeRule )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2425:1: ruleTypeRule
+ {
+ before(grammarAccess.getPropertyRuleAccess().getTypeTypeRuleParserRuleCall_3_1_0_0());
+ pushFollow(FOLLOW_ruleTypeRule_in_rule__PropertyRule__TypeAssignment_3_1_04933);
+ ruleTypeRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getPropertyRuleAccess().getTypeTypeRuleParserRuleCall_3_1_0_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__TypeAssignment_3_1_0"
+
+
+ // $ANTLR start "rule__PropertyRule__TypeUndefinedAssignment_3_1_1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2434:1: rule__PropertyRule__TypeUndefinedAssignment_3_1_1 : ( ( '<Undefined>' ) ) ;
+ public final void rule__PropertyRule__TypeUndefinedAssignment_3_1_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2438:1: ( ( ( '<Undefined>' ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2439:1: ( ( '<Undefined>' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2439:1: ( ( '<Undefined>' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2440:1: ( '<Undefined>' )
+ {
+ before(grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2441:1: ( '<Undefined>' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2442:1: '<Undefined>'
+ {
+ before(grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0());
+ match(input,38,FOLLOW_38_in_rule__PropertyRule__TypeUndefinedAssignment_3_1_14969);
+ after(grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0());
+
+ }
+
+ after(grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__TypeUndefinedAssignment_3_1_1"
+
+
+ // $ANTLR start "rule__PropertyRule__MultiplicityAssignment_4"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2457:1: rule__PropertyRule__MultiplicityAssignment_4 : ( ruleMultiplicityRule ) ;
+ public final void rule__PropertyRule__MultiplicityAssignment_4() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2461:1: ( ( ruleMultiplicityRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2462:1: ( ruleMultiplicityRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2462:1: ( ruleMultiplicityRule )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2463:1: ruleMultiplicityRule
+ {
+ before(grammarAccess.getPropertyRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0());
+ pushFollow(FOLLOW_ruleMultiplicityRule_in_rule__PropertyRule__MultiplicityAssignment_45008);
+ ruleMultiplicityRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getPropertyRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__MultiplicityAssignment_4"
+
+
+ // $ANTLR start "rule__PropertyRule__ModifiersAssignment_5"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2472:1: rule__PropertyRule__ModifiersAssignment_5 : ( ruleModifiersRule ) ;
+ public final void rule__PropertyRule__ModifiersAssignment_5() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2476:1: ( ( ruleModifiersRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2477:1: ( ruleModifiersRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2477:1: ( ruleModifiersRule )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2478:1: ruleModifiersRule
+ {
+ before(grammarAccess.getPropertyRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0());
+ pushFollow(FOLLOW_ruleModifiersRule_in_rule__PropertyRule__ModifiersAssignment_55039);
+ ruleModifiersRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getPropertyRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__ModifiersAssignment_5"
+
+
+ // $ANTLR start "rule__PropertyRule__DefaultAssignment_6"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2487:1: rule__PropertyRule__DefaultAssignment_6 : ( ruleDefaultValueRule ) ;
+ public final void rule__PropertyRule__DefaultAssignment_6() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2491:1: ( ( ruleDefaultValueRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2492:1: ( ruleDefaultValueRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2492:1: ( ruleDefaultValueRule )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2493:1: ruleDefaultValueRule
+ {
+ before(grammarAccess.getPropertyRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0());
+ pushFollow(FOLLOW_ruleDefaultValueRule_in_rule__PropertyRule__DefaultAssignment_65070);
+ ruleDefaultValueRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getPropertyRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__PropertyRule__DefaultAssignment_6"
+
+
+ // $ANTLR start "rule__VisibilityRule__VisibilityAssignment"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2502:1: rule__VisibilityRule__VisibilityAssignment : ( ruleVisibilityKind ) ;
+ public final void rule__VisibilityRule__VisibilityAssignment() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2506:1: ( ( ruleVisibilityKind ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2507:1: ( ruleVisibilityKind )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2507:1: ( ruleVisibilityKind )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2508:1: ruleVisibilityKind
+ {
+ before(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0());
+ pushFollow(FOLLOW_ruleVisibilityKind_in_rule__VisibilityRule__VisibilityAssignment5101);
+ ruleVisibilityKind();
+
+ state._fsp--;
+
+ after(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__VisibilityRule__VisibilityAssignment"
+
+
+ // $ANTLR start "rule__TypeRule__PathAssignment_0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2517:1: rule__TypeRule__PathAssignment_0 : ( ruleQualifiedName ) ;
+ public final void rule__TypeRule__PathAssignment_0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2521:1: ( ( ruleQualifiedName ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2522:1: ( ruleQualifiedName )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2522:1: ( ruleQualifiedName )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2523:1: ruleQualifiedName
+ {
+ before(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0());
+ pushFollow(FOLLOW_ruleQualifiedName_in_rule__TypeRule__PathAssignment_05132);
+ ruleQualifiedName();
+
+ state._fsp--;
+
+ after(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__TypeRule__PathAssignment_0"
+
+
+ // $ANTLR start "rule__TypeRule__TypeAssignment_1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2532:1: rule__TypeRule__TypeAssignment_1 : ( ( RULE_ID ) ) ;
+ public final void rule__TypeRule__TypeAssignment_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2536:1: ( ( ( RULE_ID ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2537:1: ( ( RULE_ID ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2537:1: ( ( RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2538:1: ( RULE_ID )
+ {
+ before(grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2539:1: ( RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2540:1: RULE_ID
+ {
+ before(grammarAccess.getTypeRuleAccess().getTypeClassifierIDTerminalRuleCall_1_0_1());
+ match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__TypeRule__TypeAssignment_15167);
+ after(grammarAccess.getTypeRuleAccess().getTypeClassifierIDTerminalRuleCall_1_0_1());
+
+ }
+
+ after(grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__TypeRule__TypeAssignment_1"
+
+
+ // $ANTLR start "rule__QualifiedName__PathAssignment_0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2551:1: rule__QualifiedName__PathAssignment_0 : ( ( RULE_ID ) ) ;
+ public final void rule__QualifiedName__PathAssignment_0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2555:1: ( ( ( RULE_ID ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2556:1: ( ( RULE_ID ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2556:1: ( ( RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2557:1: ( RULE_ID )
+ {
+ before(grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2558:1: ( RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2559:1: RULE_ID
+ {
+ before(grammarAccess.getQualifiedNameAccess().getPathNamespaceIDTerminalRuleCall_0_0_1());
+ match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__QualifiedName__PathAssignment_05206);
+ after(grammarAccess.getQualifiedNameAccess().getPathNamespaceIDTerminalRuleCall_0_0_1());
+
+ }
+
+ after(grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__QualifiedName__PathAssignment_0"
+
+
+ // $ANTLR start "rule__QualifiedName__RemainingAssignment_2"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2570:1: rule__QualifiedName__RemainingAssignment_2 : ( ruleQualifiedName ) ;
+ public final void rule__QualifiedName__RemainingAssignment_2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2574:1: ( ( ruleQualifiedName ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2575:1: ( ruleQualifiedName )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2575:1: ( ruleQualifiedName )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2576:1: ruleQualifiedName
+ {
+ before(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0());
+ pushFollow(FOLLOW_ruleQualifiedName_in_rule__QualifiedName__RemainingAssignment_25241);
+ ruleQualifiedName();
+
+ state._fsp--;
+
+ after(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__QualifiedName__RemainingAssignment_2"
+
+
+ // $ANTLR start "rule__MultiplicityRule__BoundsAssignment_1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2585:1: rule__MultiplicityRule__BoundsAssignment_1 : ( ruleBoundSpecification ) ;
+ public final void rule__MultiplicityRule__BoundsAssignment_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2589:1: ( ( ruleBoundSpecification ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2590:1: ( ruleBoundSpecification )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2590:1: ( ruleBoundSpecification )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2591:1: ruleBoundSpecification
+ {
+ before(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0());
+ pushFollow(FOLLOW_ruleBoundSpecification_in_rule__MultiplicityRule__BoundsAssignment_15272);
+ ruleBoundSpecification();
+
+ state._fsp--;
+
+ after(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__BoundsAssignment_1"
+
+
+ // $ANTLR start "rule__MultiplicityRule__BoundsAssignment_2_1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2600:1: rule__MultiplicityRule__BoundsAssignment_2_1 : ( ruleBoundSpecification ) ;
+ public final void rule__MultiplicityRule__BoundsAssignment_2_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2604:1: ( ( ruleBoundSpecification ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2605:1: ( ruleBoundSpecification )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2605:1: ( ruleBoundSpecification )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2606:1: ruleBoundSpecification
+ {
+ before(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0());
+ pushFollow(FOLLOW_ruleBoundSpecification_in_rule__MultiplicityRule__BoundsAssignment_2_15303);
+ ruleBoundSpecification();
+
+ state._fsp--;
+
+ after(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__MultiplicityRule__BoundsAssignment_2_1"
+
+
+ // $ANTLR start "rule__BoundSpecification__ValueAssignment"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2615:1: rule__BoundSpecification__ValueAssignment : ( ( rule__BoundSpecification__ValueAlternatives_0 ) ) ;
+ public final void rule__BoundSpecification__ValueAssignment() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2619:1: ( ( ( rule__BoundSpecification__ValueAlternatives_0 ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2620:1: ( ( rule__BoundSpecification__ValueAlternatives_0 ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2620:1: ( ( rule__BoundSpecification__ValueAlternatives_0 ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2621:1: ( rule__BoundSpecification__ValueAlternatives_0 )
+ {
+ before(grammarAccess.getBoundSpecificationAccess().getValueAlternatives_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2622:1: ( rule__BoundSpecification__ValueAlternatives_0 )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2622:2: rule__BoundSpecification__ValueAlternatives_0
+ {
+ pushFollow(FOLLOW_rule__BoundSpecification__ValueAlternatives_0_in_rule__BoundSpecification__ValueAssignment5334);
+ rule__BoundSpecification__ValueAlternatives_0();
+
+ state._fsp--;
+
+
+ }
+
+ after(grammarAccess.getBoundSpecificationAccess().getValueAlternatives_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__BoundSpecification__ValueAssignment"
+
+
+ // $ANTLR start "rule__ModifiersRule__ValuesAssignment_2_0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2631:1: rule__ModifiersRule__ValuesAssignment_2_0 : ( ruleModifierSpecification ) ;
+ public final void rule__ModifiersRule__ValuesAssignment_2_0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2635:1: ( ( ruleModifierSpecification ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2636:1: ( ruleModifierSpecification )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2636:1: ( ruleModifierSpecification )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2637:1: ruleModifierSpecification
+ {
+ before(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0());
+ pushFollow(FOLLOW_ruleModifierSpecification_in_rule__ModifiersRule__ValuesAssignment_2_05367);
+ ruleModifierSpecification();
+
+ state._fsp--;
+
+ after(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__ValuesAssignment_2_0"
+
+
+ // $ANTLR start "rule__ModifiersRule__ValuesAssignment_2_1_1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2646:1: rule__ModifiersRule__ValuesAssignment_2_1_1 : ( ruleModifierSpecification ) ;
+ public final void rule__ModifiersRule__ValuesAssignment_2_1_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2650:1: ( ( ruleModifierSpecification ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2651:1: ( ruleModifierSpecification )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2651:1: ( ruleModifierSpecification )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2652:1: ruleModifierSpecification
+ {
+ before(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0());
+ pushFollow(FOLLOW_ruleModifierSpecification_in_rule__ModifiersRule__ValuesAssignment_2_1_15398);
+ ruleModifierSpecification();
+
+ state._fsp--;
+
+ after(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifiersRule__ValuesAssignment_2_1_1"
+
+
+ // $ANTLR start "rule__ModifierSpecification__ValueAssignment_0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2661:1: rule__ModifierSpecification__ValueAssignment_0 : ( ruleModifierKind ) ;
+ public final void rule__ModifierSpecification__ValueAssignment_0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2665:1: ( ( ruleModifierKind ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2666:1: ( ruleModifierKind )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2666:1: ( ruleModifierKind )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2667:1: ruleModifierKind
+ {
+ before(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0());
+ pushFollow(FOLLOW_ruleModifierKind_in_rule__ModifierSpecification__ValueAssignment_05429);
+ ruleModifierKind();
+
+ state._fsp--;
+
+ after(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifierSpecification__ValueAssignment_0"
+
+
+ // $ANTLR start "rule__ModifierSpecification__RedefinesAssignment_1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2676:1: rule__ModifierSpecification__RedefinesAssignment_1 : ( ruleRedefinesRule ) ;
+ public final void rule__ModifierSpecification__RedefinesAssignment_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2680:1: ( ( ruleRedefinesRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2681:1: ( ruleRedefinesRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2681:1: ( ruleRedefinesRule )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2682:1: ruleRedefinesRule
+ {
+ before(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0());
+ pushFollow(FOLLOW_ruleRedefinesRule_in_rule__ModifierSpecification__RedefinesAssignment_15460);
+ ruleRedefinesRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifierSpecification__RedefinesAssignment_1"
+
+
+ // $ANTLR start "rule__ModifierSpecification__SubsetsAssignment_2"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2691:1: rule__ModifierSpecification__SubsetsAssignment_2 : ( ruleSubsetsRule ) ;
+ public final void rule__ModifierSpecification__SubsetsAssignment_2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2695:1: ( ( ruleSubsetsRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2696:1: ( ruleSubsetsRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2696:1: ( ruleSubsetsRule )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2697:1: ruleSubsetsRule
+ {
+ before(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0());
+ pushFollow(FOLLOW_ruleSubsetsRule_in_rule__ModifierSpecification__SubsetsAssignment_25491);
+ ruleSubsetsRule();
+
+ state._fsp--;
+
+ after(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__ModifierSpecification__SubsetsAssignment_2"
+
+
+ // $ANTLR start "rule__RedefinesRule__PropertyAssignment_1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2706:1: rule__RedefinesRule__PropertyAssignment_1 : ( ( RULE_ID ) ) ;
+ public final void rule__RedefinesRule__PropertyAssignment_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2710:1: ( ( ( RULE_ID ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2711:1: ( ( RULE_ID ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2711:1: ( ( RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2712:1: ( RULE_ID )
+ {
+ before(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyCrossReference_1_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2713:1: ( RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2714:1: RULE_ID
+ {
+ before(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1());
+ match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__RedefinesRule__PropertyAssignment_15526);
+ after(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1());
+
+ }
+
+ after(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyCrossReference_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RedefinesRule__PropertyAssignment_1"
+
+
+ // $ANTLR start "rule__SubsetsRule__PropertyAssignment_1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2725:1: rule__SubsetsRule__PropertyAssignment_1 : ( ( RULE_ID ) ) ;
+ public final void rule__SubsetsRule__PropertyAssignment_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2729:1: ( ( ( RULE_ID ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2730:1: ( ( RULE_ID ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2730:1: ( ( RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2731:1: ( RULE_ID )
+ {
+ before(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyCrossReference_1_0());
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2732:1: ( RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2733:1: RULE_ID
+ {
+ before(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1());
+ match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__SubsetsRule__PropertyAssignment_15565);
+ after(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1());
+
+ }
+
+ after(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyCrossReference_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__SubsetsRule__PropertyAssignment_1"
+
+
+ // $ANTLR start "rule__DefaultValueRule__DefaultAssignment_1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2744:1: rule__DefaultValueRule__DefaultAssignment_1 : ( ruleValue ) ;
+ public final void rule__DefaultValueRule__DefaultAssignment_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2748:1: ( ( ruleValue ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2749:1: ( ruleValue )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2749:1: ( ruleValue )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2750:1: ruleValue
+ {
+ before(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0());
+ pushFollow(FOLLOW_ruleValue_in_rule__DefaultValueRule__DefaultAssignment_15600);
+ ruleValue();
+
+ state._fsp--;
+
+ after(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__DefaultValueRule__DefaultAssignment_1"
+
+
+ // $ANTLR start "rule__IntValue__LiteralIntegerAssignment"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2759:1: rule__IntValue__LiteralIntegerAssignment : ( RULE_INT ) ;
+ public final void rule__IntValue__LiteralIntegerAssignment() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2763:1: ( ( RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2764:1: ( RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2764:1: ( RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2765:1: RULE_INT
+ {
+ before(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0());
+ match(input,RULE_INT,FOLLOW_RULE_INT_in_rule__IntValue__LiteralIntegerAssignment5631);
+ after(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__IntValue__LiteralIntegerAssignment"
+
+
+ // $ANTLR start "rule__StringValue__LiteralStringAssignment"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2774:1: rule__StringValue__LiteralStringAssignment : ( RULE_STRING ) ;
+ public final void rule__StringValue__LiteralStringAssignment() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2778:1: ( ( RULE_STRING ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2779:1: ( RULE_STRING )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2779:1: ( RULE_STRING )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2780:1: RULE_STRING
+ {
+ before(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0());
+ match(input,RULE_STRING,FOLLOW_RULE_STRING_in_rule__StringValue__LiteralStringAssignment5662);
+ after(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__StringValue__LiteralStringAssignment"
+
+
+ // $ANTLR start "rule__BooleanValue__LiteralBooleanAssignment"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2789:1: rule__BooleanValue__LiteralBooleanAssignment : ( ruleBooleanLiterals ) ;
+ public final void rule__BooleanValue__LiteralBooleanAssignment() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2793:1: ( ( ruleBooleanLiterals ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2794:1: ( ruleBooleanLiterals )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2794:1: ( ruleBooleanLiterals )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2795:1: ruleBooleanLiterals
+ {
+ before(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0());
+ pushFollow(FOLLOW_ruleBooleanLiterals_in_rule__BooleanValue__LiteralBooleanAssignment5693);
+ ruleBooleanLiterals();
+
+ state._fsp--;
+
+ after(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__BooleanValue__LiteralBooleanAssignment"
+
+
+ // $ANTLR start "rule__RealValue__IntegerAssignment_0_0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2804:1: rule__RealValue__IntegerAssignment_0_0 : ( RULE_INT ) ;
+ public final void rule__RealValue__IntegerAssignment_0_0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2808:1: ( ( RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2809:1: ( RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2809:1: ( RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2810:1: RULE_INT
+ {
+ before(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0());
+ match(input,RULE_INT,FOLLOW_RULE_INT_in_rule__RealValue__IntegerAssignment_0_05724);
+ after(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__IntegerAssignment_0_0"
+
+
+ // $ANTLR start "rule__RealValue__FractionAssignment_1_1"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2819:1: rule__RealValue__FractionAssignment_1_1 : ( RULE_INT ) ;
+ public final void rule__RealValue__FractionAssignment_1_1() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2823:1: ( ( RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:1: ( RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2824:1: ( RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2825:1: RULE_INT
+ {
+ before(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0());
+ match(input,RULE_INT,FOLLOW_RULE_INT_in_rule__RealValue__FractionAssignment_1_15755);
+ after(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__FractionAssignment_1_1"
+
+
+ // $ANTLR start "rule__RealValue__IntegerAssignment_2_0"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2834:1: rule__RealValue__IntegerAssignment_2_0 : ( RULE_INT ) ;
+ public final void rule__RealValue__IntegerAssignment_2_0() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2838:1: ( ( RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2839:1: ( RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2839:1: ( RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2840:1: RULE_INT
+ {
+ before(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0());
+ match(input,RULE_INT,FOLLOW_RULE_INT_in_rule__RealValue__IntegerAssignment_2_05786);
+ after(grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__IntegerAssignment_2_0"
+
+
+ // $ANTLR start "rule__RealValue__FractionAssignment_2_2"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2849:1: rule__RealValue__FractionAssignment_2_2 : ( RULE_INT ) ;
+ public final void rule__RealValue__FractionAssignment_2_2() throws RecognitionException {
+
+ int stackSize = keepStackSize();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2853:1: ( ( RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2854:1: ( RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2854:1: ( RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contentassist/antlr/internal/InternalUmlProperty.g:2855:1: RULE_INT
+ {
+ before(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0());
+ match(input,RULE_INT,FOLLOW_RULE_INT_in_rule__RealValue__FractionAssignment_2_25817);
+ after(grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0());
+
+ }
+
+
+ }
+
+ }
+ catch (RecognitionException re) {
+ reportError(re);
+ recover(input,re);
+ }
+ finally {
+
+ restoreStackSize(stackSize);
+
+ }
+ return ;
+ }
+ // $ANTLR end "rule__RealValue__FractionAssignment_2_2"
+
+ // Delegated rules
+
+
+
+
+ public static final BitSet FOLLOW_rulePropertyRule_in_entryRulePropertyRule61 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRulePropertyRule68 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__Group__0_in_rulePropertyRule94 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleVisibilityRule_in_entryRuleVisibilityRule121 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleVisibilityRule128 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__VisibilityRule__VisibilityAssignment_in_ruleVisibilityRule154 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleTypeRule_in_entryRuleTypeRule181 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleTypeRule188 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__TypeRule__Group__0_in_ruleTypeRule214 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName241 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleQualifiedName248 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__QualifiedName__Group__0_in_ruleQualifiedName274 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleMultiplicityRule_in_entryRuleMultiplicityRule301 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleMultiplicityRule308 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group__0_in_ruleMultiplicityRule334 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification361 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleBoundSpecification368 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__BoundSpecification__ValueAssignment_in_ruleBoundSpecification394 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral421 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleUnlimitedLiteral428 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__UnlimitedLiteral__Alternatives_in_ruleUnlimitedLiteral454 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral481 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleStringLiteral488 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_STRING_in_ruleStringLiteral514 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleModifiersRule_in_entryRuleModifiersRule540 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleModifiersRule547 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group__0_in_ruleModifiersRule573 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleModifierSpecification_in_entryRuleModifierSpecification600 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleModifierSpecification607 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifierSpecification__Alternatives_in_ruleModifierSpecification633 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleRedefinesRule_in_entryRuleRedefinesRule660 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleRedefinesRule667 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RedefinesRule__Group__0_in_ruleRedefinesRule693 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleSubsetsRule_in_entryRuleSubsetsRule720 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleSubsetsRule727 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__SubsetsRule__Group__0_in_ruleSubsetsRule753 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleDefaultValueRule_in_entryRuleDefaultValueRule780 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleDefaultValueRule787 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__DefaultValueRule__Group__0_in_ruleDefaultValueRule813 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleValue_in_entryRuleValue840 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleValue847 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__Value__Alternatives_in_ruleValue873 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleIntValue_in_entryRuleIntValue900 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleIntValue907 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__IntValue__LiteralIntegerAssignment_in_ruleIntValue933 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleStringValue_in_entryRuleStringValue960 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleStringValue967 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__StringValue__LiteralStringAssignment_in_ruleStringValue993 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBooleanValue_in_entryRuleBooleanValue1020 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleBooleanValue1027 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__BooleanValue__LiteralBooleanAssignment_in_ruleBooleanValue1053 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleRealValue_in_entryRuleRealValue1080 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleRealValue1087 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Alternatives_in_ruleRealValue1113 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleNullValue_in_entryRuleNullValue1140 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleNullValue1147 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__NullValue__Group__0_in_ruleNullValue1173 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleNoValue_in_entryRuleNoValue1200 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleNoValue1207 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__NoValue__Group__0_in_ruleNoValue1233 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__VisibilityKind__Alternatives_in_ruleVisibilityKind1270 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifierKind__Alternatives_in_ruleModifierKind1306 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__BooleanLiterals__Alternatives_in_ruleBooleanLiterals1342 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__TypeAssignment_3_1_0_in_rule__PropertyRule__Alternatives_3_11377 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__TypeUndefinedAssignment_3_1_1_in_rule__PropertyRule__Alternatives_3_11395 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_rule__BoundSpecification__ValueAlternatives_01428 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleStringLiteral_in_rule__BoundSpecification__ValueAlternatives_01445 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_rule__UnlimitedLiteral__Alternatives1477 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_12_in_rule__UnlimitedLiteral__Alternatives1495 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifierSpecification__ValueAssignment_0_in_rule__ModifierSpecification__Alternatives1529 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifierSpecification__RedefinesAssignment_1_in_rule__ModifierSpecification__Alternatives1547 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifierSpecification__SubsetsAssignment_2_in_rule__ModifierSpecification__Alternatives1565 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleIntValue_in_rule__Value__Alternatives1598 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleStringValue_in_rule__Value__Alternatives1615 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBooleanValue_in_rule__Value__Alternatives1632 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleRealValue_in_rule__Value__Alternatives1649 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleNullValue_in_rule__Value__Alternatives1666 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleNoValue_in_rule__Value__Alternatives1683 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_0__0_in_rule__RealValue__Alternatives1715 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_1__0_in_rule__RealValue__Alternatives1733 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_2__0_in_rule__RealValue__Alternatives1751 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_13_in_rule__VisibilityKind__Alternatives1785 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_14_in_rule__VisibilityKind__Alternatives1806 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_15_in_rule__VisibilityKind__Alternatives1827 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_16_in_rule__VisibilityKind__Alternatives1848 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_17_in_rule__ModifierKind__Alternatives1884 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_18_in_rule__ModifierKind__Alternatives1905 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_19_in_rule__ModifierKind__Alternatives1926 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_20_in_rule__ModifierKind__Alternatives1947 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_21_in_rule__BooleanLiterals__Alternatives1983 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_22_in_rule__BooleanLiterals__Alternatives2004 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__Group__0__Impl_in_rule__PropertyRule__Group__02037 = new BitSet(new long[]{0x0000002000000040L});
+ public static final BitSet FOLLOW_rule__PropertyRule__Group__1_in_rule__PropertyRule__Group__02040 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__VisibilityAssignment_0_in_rule__PropertyRule__Group__0__Impl2067 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__Group__1__Impl_in_rule__PropertyRule__Group__12098 = new BitSet(new long[]{0x0000002000000040L});
+ public static final BitSet FOLLOW_rule__PropertyRule__Group__2_in_rule__PropertyRule__Group__12101 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__DerivedAssignment_1_in_rule__PropertyRule__Group__1__Impl2128 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__Group__2__Impl_in_rule__PropertyRule__Group__22159 = new BitSet(new long[]{0x0000000212800000L});
+ public static final BitSet FOLLOW_rule__PropertyRule__Group__3_in_rule__PropertyRule__Group__22162 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__NameAssignment_2_in_rule__PropertyRule__Group__2__Impl2189 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__Group__3__Impl_in_rule__PropertyRule__Group__32219 = new BitSet(new long[]{0x0000000212800000L});
+ public static final BitSet FOLLOW_rule__PropertyRule__Group__4_in_rule__PropertyRule__Group__32222 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__Group_3__0_in_rule__PropertyRule__Group__3__Impl2249 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__Group__4__Impl_in_rule__PropertyRule__Group__42280 = new BitSet(new long[]{0x0000000212800000L});
+ public static final BitSet FOLLOW_rule__PropertyRule__Group__5_in_rule__PropertyRule__Group__42283 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__MultiplicityAssignment_4_in_rule__PropertyRule__Group__4__Impl2310 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__Group__5__Impl_in_rule__PropertyRule__Group__52341 = new BitSet(new long[]{0x0000000212800000L});
+ public static final BitSet FOLLOW_rule__PropertyRule__Group__6_in_rule__PropertyRule__Group__52344 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__ModifiersAssignment_5_in_rule__PropertyRule__Group__5__Impl2371 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__Group__6__Impl_in_rule__PropertyRule__Group__62402 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__DefaultAssignment_6_in_rule__PropertyRule__Group__6__Impl2429 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__Group_3__0__Impl_in_rule__PropertyRule__Group_3__02474 = new BitSet(new long[]{0x0000004000000040L});
+ public static final BitSet FOLLOW_rule__PropertyRule__Group_3__1_in_rule__PropertyRule__Group_3__02477 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_23_in_rule__PropertyRule__Group_3__0__Impl2505 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__Group_3__1__Impl_in_rule__PropertyRule__Group_3__12536 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__PropertyRule__Alternatives_3_1_in_rule__PropertyRule__Group_3__1__Impl2563 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__TypeRule__Group__0__Impl_in_rule__TypeRule__Group__02597 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_rule__TypeRule__Group__1_in_rule__TypeRule__Group__02600 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__TypeRule__PathAssignment_0_in_rule__TypeRule__Group__0__Impl2627 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__TypeRule__Group__1__Impl_in_rule__TypeRule__Group__12658 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__TypeRule__TypeAssignment_1_in_rule__TypeRule__Group__1__Impl2685 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__QualifiedName__Group__0__Impl_in_rule__QualifiedName__Group__02719 = new BitSet(new long[]{0x0000000001000000L});
+ public static final BitSet FOLLOW_rule__QualifiedName__Group__1_in_rule__QualifiedName__Group__02722 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__QualifiedName__PathAssignment_0_in_rule__QualifiedName__Group__0__Impl2749 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__QualifiedName__Group__1__Impl_in_rule__QualifiedName__Group__12779 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_rule__QualifiedName__Group__2_in_rule__QualifiedName__Group__12782 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_24_in_rule__QualifiedName__Group__1__Impl2810 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__QualifiedName__Group__2__Impl_in_rule__QualifiedName__Group__22841 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__QualifiedName__RemainingAssignment_2_in_rule__QualifiedName__Group__2__Impl2868 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group__0__Impl_in_rule__MultiplicityRule__Group__02905 = new BitSet(new long[]{0x0000000000001030L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group__1_in_rule__MultiplicityRule__Group__02908 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_25_in_rule__MultiplicityRule__Group__0__Impl2936 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group__1__Impl_in_rule__MultiplicityRule__Group__12967 = new BitSet(new long[]{0x000000000C000000L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group__2_in_rule__MultiplicityRule__Group__12970 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__BoundsAssignment_1_in_rule__MultiplicityRule__Group__1__Impl2997 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group__2__Impl_in_rule__MultiplicityRule__Group__23027 = new BitSet(new long[]{0x000000000C000000L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group__3_in_rule__MultiplicityRule__Group__23030 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group_2__0_in_rule__MultiplicityRule__Group__2__Impl3057 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group__3__Impl_in_rule__MultiplicityRule__Group__33088 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_26_in_rule__MultiplicityRule__Group__3__Impl3116 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group_2__0__Impl_in_rule__MultiplicityRule__Group_2__03155 = new BitSet(new long[]{0x0000000000001030L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group_2__1_in_rule__MultiplicityRule__Group_2__03158 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_27_in_rule__MultiplicityRule__Group_2__0__Impl3186 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__Group_2__1__Impl_in_rule__MultiplicityRule__Group_2__13217 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__MultiplicityRule__BoundsAssignment_2_1_in_rule__MultiplicityRule__Group_2__1__Impl3244 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group__0__Impl_in_rule__ModifiersRule__Group__03278 = new BitSet(new long[]{0x0000000010000000L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group__1_in_rule__ModifiersRule__Group__03281 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group__1__Impl_in_rule__ModifiersRule__Group__13339 = new BitSet(new long[]{0x00000001A01E0000L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group__2_in_rule__ModifiersRule__Group__13342 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_28_in_rule__ModifiersRule__Group__1__Impl3370 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group__2__Impl_in_rule__ModifiersRule__Group__23401 = new BitSet(new long[]{0x00000001A01E0000L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group__3_in_rule__ModifiersRule__Group__23404 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group_2__0_in_rule__ModifiersRule__Group__2__Impl3431 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group__3__Impl_in_rule__ModifiersRule__Group__33462 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_29_in_rule__ModifiersRule__Group__3__Impl3490 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group_2__0__Impl_in_rule__ModifiersRule__Group_2__03529 = new BitSet(new long[]{0x0000000040000000L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group_2__1_in_rule__ModifiersRule__Group_2__03532 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__ValuesAssignment_2_0_in_rule__ModifiersRule__Group_2__0__Impl3559 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group_2__1__Impl_in_rule__ModifiersRule__Group_2__13589 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group_2_1__0_in_rule__ModifiersRule__Group_2__1__Impl3616 = new BitSet(new long[]{0x0000000040000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group_2_1__0__Impl_in_rule__ModifiersRule__Group_2_1__03651 = new BitSet(new long[]{0x00000001801E0000L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group_2_1__1_in_rule__ModifiersRule__Group_2_1__03654 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_30_in_rule__ModifiersRule__Group_2_1__0__Impl3682 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__Group_2_1__1__Impl_in_rule__ModifiersRule__Group_2_1__13713 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__ModifiersRule__ValuesAssignment_2_1_1_in_rule__ModifiersRule__Group_2_1__1__Impl3740 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RedefinesRule__Group__0__Impl_in_rule__RedefinesRule__Group__03774 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_rule__RedefinesRule__Group__1_in_rule__RedefinesRule__Group__03777 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_31_in_rule__RedefinesRule__Group__0__Impl3805 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RedefinesRule__Group__1__Impl_in_rule__RedefinesRule__Group__13836 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RedefinesRule__PropertyAssignment_1_in_rule__RedefinesRule__Group__1__Impl3863 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__SubsetsRule__Group__0__Impl_in_rule__SubsetsRule__Group__03897 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_rule__SubsetsRule__Group__1_in_rule__SubsetsRule__Group__03900 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_32_in_rule__SubsetsRule__Group__0__Impl3928 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__SubsetsRule__Group__1__Impl_in_rule__SubsetsRule__Group__13959 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__SubsetsRule__PropertyAssignment_1_in_rule__SubsetsRule__Group__1__Impl3986 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__DefaultValueRule__Group__0__Impl_in_rule__DefaultValueRule__Group__04020 = new BitSet(new long[]{0x0000001C00600030L});
+ public static final BitSet FOLLOW_rule__DefaultValueRule__Group__1_in_rule__DefaultValueRule__Group__04023 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_33_in_rule__DefaultValueRule__Group__0__Impl4051 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__DefaultValueRule__Group__1__Impl_in_rule__DefaultValueRule__Group__14082 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__DefaultValueRule__DefaultAssignment_1_in_rule__DefaultValueRule__Group__1__Impl4109 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_0__0__Impl_in_rule__RealValue__Group_0__04143 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_0__1_in_rule__RealValue__Group_0__04146 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__IntegerAssignment_0_0_in_rule__RealValue__Group_0__0__Impl4173 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_0__1__Impl_in_rule__RealValue__Group_0__14203 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_34_in_rule__RealValue__Group_0__1__Impl4231 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_1__0__Impl_in_rule__RealValue__Group_1__04266 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_1__1_in_rule__RealValue__Group_1__04269 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_34_in_rule__RealValue__Group_1__0__Impl4297 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_1__1__Impl_in_rule__RealValue__Group_1__14328 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__FractionAssignment_1_1_in_rule__RealValue__Group_1__1__Impl4355 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_2__0__Impl_in_rule__RealValue__Group_2__04389 = new BitSet(new long[]{0x0000000400000000L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_2__1_in_rule__RealValue__Group_2__04392 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__IntegerAssignment_2_0_in_rule__RealValue__Group_2__0__Impl4419 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_2__1__Impl_in_rule__RealValue__Group_2__14449 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_2__2_in_rule__RealValue__Group_2__14452 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_34_in_rule__RealValue__Group_2__1__Impl4480 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__Group_2__2__Impl_in_rule__RealValue__Group_2__24511 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__RealValue__FractionAssignment_2_2_in_rule__RealValue__Group_2__2__Impl4538 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__NullValue__Group__0__Impl_in_rule__NullValue__Group__04574 = new BitSet(new long[]{0x0000000800000000L});
+ public static final BitSet FOLLOW_rule__NullValue__Group__1_in_rule__NullValue__Group__04577 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__NullValue__Group__1__Impl_in_rule__NullValue__Group__14635 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_35_in_rule__NullValue__Group__1__Impl4663 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__NoValue__Group__0__Impl_in_rule__NoValue__Group__04698 = new BitSet(new long[]{0x0000001C00600030L});
+ public static final BitSet FOLLOW_rule__NoValue__Group__1_in_rule__NoValue__Group__04701 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__NoValue__Group__1__Impl_in_rule__NoValue__Group__14759 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_36_in_rule__NoValue__Group__1__Impl4787 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleVisibilityRule_in_rule__PropertyRule__VisibilityAssignment_04827 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_37_in_rule__PropertyRule__DerivedAssignment_14863 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_ID_in_rule__PropertyRule__NameAssignment_24902 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleTypeRule_in_rule__PropertyRule__TypeAssignment_3_1_04933 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_38_in_rule__PropertyRule__TypeUndefinedAssignment_3_1_14969 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleMultiplicityRule_in_rule__PropertyRule__MultiplicityAssignment_45008 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleModifiersRule_in_rule__PropertyRule__ModifiersAssignment_55039 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleDefaultValueRule_in_rule__PropertyRule__DefaultAssignment_65070 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleVisibilityKind_in_rule__VisibilityRule__VisibilityAssignment5101 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleQualifiedName_in_rule__TypeRule__PathAssignment_05132 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_ID_in_rule__TypeRule__TypeAssignment_15167 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_ID_in_rule__QualifiedName__PathAssignment_05206 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleQualifiedName_in_rule__QualifiedName__RemainingAssignment_25241 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBoundSpecification_in_rule__MultiplicityRule__BoundsAssignment_15272 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBoundSpecification_in_rule__MultiplicityRule__BoundsAssignment_2_15303 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_rule__BoundSpecification__ValueAlternatives_0_in_rule__BoundSpecification__ValueAssignment5334 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleModifierSpecification_in_rule__ModifiersRule__ValuesAssignment_2_05367 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleModifierSpecification_in_rule__ModifiersRule__ValuesAssignment_2_1_15398 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleModifierKind_in_rule__ModifierSpecification__ValueAssignment_05429 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleRedefinesRule_in_rule__ModifierSpecification__RedefinesAssignment_15460 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleSubsetsRule_in_rule__ModifierSpecification__SubsetsAssignment_25491 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_ID_in_rule__RedefinesRule__PropertyAssignment_15526 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_ID_in_rule__SubsetsRule__PropertyAssignment_15565 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleValue_in_rule__DefaultValueRule__DefaultAssignment_15600 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_rule__IntValue__LiteralIntegerAssignment5631 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_STRING_in_rule__StringValue__LiteralStringAssignment5662 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBooleanLiterals_in_rule__BooleanValue__LiteralBooleanAssignment5693 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_rule__RealValue__IntegerAssignment_0_05724 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_rule__RealValue__FractionAssignment_1_15755 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_rule__RealValue__IntegerAssignment_2_05786 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_rule__RealValue__FractionAssignment_2_25817 = new BitSet(new long[]{0x0000000000000002L});
+
} \ No newline at end of file
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/internal/UmlPropertyActivator.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/internal/UmlPropertyActivator.java
index bc409ae776f..5caf5176382 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/internal/UmlPropertyActivator.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/ui/internal/UmlPropertyActivator.java
@@ -1,95 +1,95 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.ui.internal;
-
-import java.util.Collections;
-import java.util.Map;
-
-import org.apache.log4j.Logger;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.eclipse.xtext.ui.shared.SharedStateModule;
-import org.eclipse.xtext.util.Modules2;
-import org.osgi.framework.BundleContext;
-
-import com.google.common.collect.Maps;
-import com.google.inject.Guice;
-import com.google.inject.Injector;
-import com.google.inject.Module;
-
-/**
- * This class was generated. Customizations should only happen in a newly
- * introduced subclass.
- */
-public class UmlPropertyActivator extends AbstractUIPlugin {
-
- public static final String ORG_ECLIPSE_PAPYRUS_UML_TEXTEDIT_PROPERTY_XTEXT_UMLPROPERTY = "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty";
-
- private static final Logger logger = Logger.getLogger(UmlPropertyActivator.class);
-
- private static UmlPropertyActivator INSTANCE;
-
- private Map<String, Injector> injectors = Collections.synchronizedMap(Maps.<String, Injector> newHashMapWithExpectedSize(1));
-
- @Override
- public void start(BundleContext context) throws Exception {
- super.start(context);
- INSTANCE = this;
- }
-
- @Override
- public void stop(BundleContext context) throws Exception {
- injectors.clear();
- INSTANCE = null;
- super.stop(context);
- }
-
- public static UmlPropertyActivator getInstance() {
- return INSTANCE;
- }
-
- public Injector getInjector(String language) {
- synchronized (injectors) {
- Injector injector = injectors.get(language);
- if (injector == null) {
- injectors.put(language, injector = createInjector(language));
- }
- return injector;
- }
- }
-
- protected Injector createInjector(String language) {
- try {
- Module runtimeModule = getRuntimeModule(language);
- Module sharedStateModule = getSharedStateModule();
- Module uiModule = getUiModule(language);
- Module mergedModule = Modules2.mixin(runtimeModule, sharedStateModule, uiModule);
- return Guice.createInjector(mergedModule);
- } catch (Exception e) {
- logger.error("Failed to create injector for " + language);
- logger.error(e.getMessage(), e);
- throw new RuntimeException("Failed to create injector for " + language, e);
- }
- }
-
- protected Module getRuntimeModule(String grammar) {
- if (ORG_ECLIPSE_PAPYRUS_UML_TEXTEDIT_PROPERTY_XTEXT_UMLPROPERTY.equals(grammar)) {
- return new org.eclipse.papyrus.uml.textedit.property.xtext.UmlPropertyRuntimeModule();
- }
-
- throw new IllegalArgumentException(grammar);
- }
-
- protected Module getUiModule(String grammar) {
- if (ORG_ECLIPSE_PAPYRUS_UML_TEXTEDIT_PROPERTY_XTEXT_UMLPROPERTY.equals(grammar)) {
- return new org.eclipse.papyrus.uml.textedit.property.xtext.ui.UmlPropertyUiModule(this);
- }
-
- throw new IllegalArgumentException(grammar);
- }
-
- protected Module getSharedStateModule() {
- return new SharedStateModule();
- }
-
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.ui.internal;
+
+import java.util.Collections;
+import java.util.Map;
+
+import org.apache.log4j.Logger;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.eclipse.xtext.ui.shared.SharedStateModule;
+import org.eclipse.xtext.util.Modules2;
+import org.osgi.framework.BundleContext;
+
+import com.google.common.collect.Maps;
+import com.google.inject.Guice;
+import com.google.inject.Injector;
+import com.google.inject.Module;
+
+/**
+ * This class was generated. Customizations should only happen in a newly
+ * introduced subclass.
+ */
+public class UmlPropertyActivator extends AbstractUIPlugin {
+
+ public static final String ORG_ECLIPSE_PAPYRUS_UML_TEXTEDIT_PROPERTY_XTEXT_UMLPROPERTY = "org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty";
+
+ private static final Logger logger = Logger.getLogger(UmlPropertyActivator.class);
+
+ private static UmlPropertyActivator INSTANCE;
+
+ private Map<String, Injector> injectors = Collections.synchronizedMap(Maps.<String, Injector> newHashMapWithExpectedSize(1));
+
+ @Override
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ INSTANCE = this;
+ }
+
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ injectors.clear();
+ INSTANCE = null;
+ super.stop(context);
+ }
+
+ public static UmlPropertyActivator getInstance() {
+ return INSTANCE;
+ }
+
+ public Injector getInjector(String language) {
+ synchronized (injectors) {
+ Injector injector = injectors.get(language);
+ if (injector == null) {
+ injectors.put(language, injector = createInjector(language));
+ }
+ return injector;
+ }
+ }
+
+ protected Injector createInjector(String language) {
+ try {
+ Module runtimeModule = getRuntimeModule(language);
+ Module sharedStateModule = getSharedStateModule();
+ Module uiModule = getUiModule(language);
+ Module mergedModule = Modules2.mixin(runtimeModule, sharedStateModule, uiModule);
+ return Guice.createInjector(mergedModule);
+ } catch (Exception e) {
+ logger.error("Failed to create injector for " + language);
+ logger.error(e.getMessage(), e);
+ throw new RuntimeException("Failed to create injector for " + language, e);
+ }
+ }
+
+ protected Module getRuntimeModule(String grammar) {
+ if (ORG_ECLIPSE_PAPYRUS_UML_TEXTEDIT_PROPERTY_XTEXT_UMLPROPERTY.equals(grammar)) {
+ return new org.eclipse.papyrus.uml.textedit.property.xtext.UmlPropertyRuntimeModule();
+ }
+
+ throw new IllegalArgumentException(grammar);
+ }
+
+ protected Module getUiModule(String grammar) {
+ if (ORG_ECLIPSE_PAPYRUS_UML_TEXTEDIT_PROPERTY_XTEXT_UMLPROPERTY.equals(grammar)) {
+ return new org.eclipse.papyrus.uml.textedit.property.xtext.ui.UmlPropertyUiModule(this);
+ }
+
+ throw new IllegalArgumentException(grammar);
+ }
+
+ protected Module getSharedStateModule() {
+ return new SharedStateModule();
+ }
+
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/PropertyXtextDirectEditorConfiguration.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/PropertyXtextDirectEditorConfiguration.java
index 093eab46766..a64cc62dcd7 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/PropertyXtextDirectEditorConfiguration.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/PropertyXtextDirectEditorConfiguration.java
@@ -9,6 +9,7 @@
*
* Contributors:
* CEA LIST - Initial API and implementation
+ * FAUVERGUE Nicolas (ALL4TEC) nicolas.fauvergue@all4tec.net - Bug 465198
*
*****************************************************************************/
package org.eclipse.papyrus.uml.textedit.property.xtext.ui.contributions;
@@ -34,6 +35,7 @@ import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule;
import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value;
import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.util.UmlPropertySwitch;
import org.eclipse.papyrus.uml.xtext.integration.DefaultXtextDirectEditorConfiguration;
+import org.eclipse.papyrus.uml.xtext.integration.MultiplicityXTextParserUtils;
import org.eclipse.uml2.uml.Classifier;
import org.eclipse.uml2.uml.LiteralBoolean;
import org.eclipse.uml2.uml.LiteralInteger;
@@ -58,7 +60,6 @@ import com.google.inject.Injector;
*/
public class PropertyXtextDirectEditorConfiguration extends DefaultXtextDirectEditorConfiguration implements ICustomDirectEditorConfiguration {
-
@Override
public Injector getInjector() {
return UmlPropertyActivator.getInstance().getInjector(UmlPropertyActivator.ORG_ECLIPSE_PAPYRUS_UML_TEXTEDIT_PROPERTY_XTEXT_UMLPROPERTY);
@@ -70,7 +71,7 @@ public class PropertyXtextDirectEditorConfiguration extends DefaultXtextDirectEd
xtextObject = EcoreUtil2.getContainerOfType(xtextObject, PropertyRule.class);
PropertyRule propertyRuleObject = (PropertyRule) xtextObject;
- org.eclipse.gmf.runtime.common.core.command.CompositeCommand updateCommand = new CompositeCommand("Property update");
+ CompositeCommand updateCommand = new CompositeCommand("Property update");
IElementEditService provider = ElementEditServiceUtils.getCommandProvider(property);
boolean newIsDerived = propertyRuleObject.isDerived();
@@ -136,36 +137,8 @@ public class PropertyXtextDirectEditorConfiguration extends DefaultXtextDirectEd
}
if (propertyRuleObject.getMultiplicity() != null) {
- int newLowerBound = 1;
- int newUpperBound = 1;
-
- if (propertyRuleObject.getMultiplicity().getBounds().size() == 1) {
- String tempBound = propertyRuleObject.getMultiplicity().getBounds().get(0).getValue();
- if (tempBound.equals("*")) {
- newLowerBound = 0;
- newUpperBound = -1;
- } else {
- newLowerBound = new Integer(tempBound).intValue();
- newUpperBound = new Integer(tempBound).intValue();
- }
- } else { // size == 2
- String tempBound = propertyRuleObject.getMultiplicity().getBounds().get(0).getValue();
- newLowerBound = new Integer(tempBound).intValue();
- tempBound = propertyRuleObject.getMultiplicity().getBounds().get(1).getValue();
- if (tempBound.equals("*")) {
- newUpperBound = -1;
- } else {
- newUpperBound = new Integer(tempBound).intValue();
- }
- }
-
- SetRequest setLowerRequest = new SetRequest(property, UMLPackage.eINSTANCE.getMultiplicityElement_Lower(), newLowerBound);
- ICommand setLowerCommand = provider.getEditCommand(setLowerRequest);
- updateCommand.add(setLowerCommand);
-
- SetRequest setUpperRequest = new SetRequest(property, UMLPackage.eINSTANCE.getMultiplicityElement_Upper(), newUpperBound);
- ICommand setUpperCommand = provider.getEditCommand(setUpperRequest);
- updateCommand.add(setUpperCommand);
+ // Manage the lower and the upper value specifications
+ updateCommand.add(updateMultiplicityCommand(provider, property, propertyRuleObject));
}
if (propertyRuleObject.getDefault() != null) {
@@ -333,4 +306,24 @@ public class PropertyXtextDirectEditorConfiguration extends DefaultXtextDirectEd
return "not a Property";
}
+ /**
+ * This allow to update the multiplicity lower and upper value specifications.
+ *
+ * @param provider
+ * The provider.
+ * @param eObject
+ * The object to update.
+ * @param portRuleObject
+ * The property rule object of the xtext parsed text.
+ * @return The command to update the multiplicity.
+ */
+ private ICommand updateMultiplicityCommand(final IElementEditService provider, final EObject eObject, final PropertyRule propertyRuleObject) {
+ ICommand result = null;
+ if (propertyRuleObject.getMultiplicity().getBounds().size() == 1) {
+ result = MultiplicityXTextParserUtils.updateOneMultiplicityCommand(provider, eObject, propertyRuleObject.getMultiplicity().getBounds().get(0).getValue());
+ } else { // size == 2
+ result = MultiplicityXTextParserUtils.updateTwoMultiplicityCommand(provider, eObject, propertyRuleObject.getMultiplicity().getBounds().get(0).getValue(), propertyRuleObject.getMultiplicity().getBounds().get(1).getValue());
+ }
+ return result;
+ }
}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/UMLPropertyEditorPropertyUtil.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/UMLPropertyEditorPropertyUtil.java
index 313c7b1689f..a3da7bce948 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/UMLPropertyEditorPropertyUtil.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui/src/org/eclipse/papyrus/uml/textedit/property/xtext/ui/contributions/UMLPropertyEditorPropertyUtil.java
@@ -1,105 +1,105 @@
-/*****************************************************************************
- * Copyright (c) 2010 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.textedit.property.xtext.ui.contributions;
-
-import org.eclipse.papyrus.uml.alf.naming.ALFIDConverter;
-import org.eclipse.papyrus.uml.tools.utils.MultiplicityElementUtil;
-import org.eclipse.papyrus.uml.tools.utils.NamedElementUtil;
-import org.eclipse.papyrus.uml.tools.utils.PropertyUtil;
-import org.eclipse.papyrus.uml.tools.utils.TypeUtil;
-import org.eclipse.papyrus.uml.xtext.integration.CompletionProposalUtils;
-import org.eclipse.uml2.uml.Property;
-import org.eclipse.uml2.uml.util.UMLSwitch;
-
-public class UMLPropertyEditorPropertyUtil extends PropertyUtil {
-
- @SuppressWarnings("nls")
- public static String getLabel(Property property) {
- StringBuffer buffer = new StringBuffer();
- // visibility
- buffer.append(NamedElementUtil.getVisibilityAsSign(property));
- buffer.append(" ");
-
- // derived property
- buffer.append(getDerived(property));
-
- // name
- buffer.append(ALFIDConverter.nameToID(getName(property)));
-
- // type
- if (property.getType() != null) {
- buffer.append(" : "
- + CompletionProposalUtils.getQualifiedNameLabelWithSufficientDepth(property.getType(),
- property.getNamespace()));
- } else {
- buffer.append(" : " + TypeUtil.UNDEFINED_TYPE_NAME);
- }
-
- // multiplicity -> do not display [1]
- String multiplicity = MultiplicityElementUtil.getMultiplicityAsString(property);
- if (!multiplicity.trim().equals("[1]")) {
- buffer.append(multiplicity);
- }
- buffer.append(" ");
-
- // property modifiers
- String modifiers = PropertyUtil.getModifiersAsString(property, false);
- if (!"".equals(modifiers)) {
- buffer.append(modifiers);
- buffer.append(" ");
- }
-
- // default value
- if (property.getDefault() != null) {
- buffer.append("= ");
- String defaultValue = new UMLSwitch<String>() {
- @Override
- public String caseLiteralBoolean(org.eclipse.uml2.uml.LiteralBoolean object) {
- return Boolean.toString(object.booleanValue());
- }
-
- @Override
- public String caseLiteralInteger(org.eclipse.uml2.uml.LiteralInteger object) {
- return Integer.toString(object.integerValue());
- }
-
- @Override
- public String caseLiteralNull(org.eclipse.uml2.uml.LiteralNull object) {
- return "null"; //$NON-NLS-1$
- }
-
- @Override
- public String caseLiteralString(org.eclipse.uml2.uml.LiteralString object) {
- return "\"" + object.stringValue() + "\"";
- }
-
- @Override
- public String caseLiteralReal(org.eclipse.uml2.uml.LiteralReal object) {
- return Double.toString(object.getValue());
- }
-
- @Override
- public String caseLiteralUnlimitedNatural(org.eclipse.uml2.uml.LiteralUnlimitedNatural object) {
- return object.getValue() < 0 ? "*" : Integer.toString(object.getValue());
- }
-
- }.doSwitch(property.getDefaultValue());
-
- buffer.append(defaultValue);
- }
-
- return buffer.toString();
- }
-
-}
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.textedit.property.xtext.ui.contributions;
+
+import org.eclipse.papyrus.uml.alf.naming.ALFIDConverter;
+import org.eclipse.papyrus.uml.tools.utils.MultiplicityElementUtil;
+import org.eclipse.papyrus.uml.tools.utils.NamedElementUtil;
+import org.eclipse.papyrus.uml.tools.utils.PropertyUtil;
+import org.eclipse.papyrus.uml.tools.utils.TypeUtil;
+import org.eclipse.papyrus.uml.xtext.integration.CompletionProposalUtils;
+import org.eclipse.uml2.uml.Property;
+import org.eclipse.uml2.uml.util.UMLSwitch;
+
+public class UMLPropertyEditorPropertyUtil extends PropertyUtil {
+
+ @SuppressWarnings("nls")
+ public static String getLabel(Property property) {
+ StringBuffer buffer = new StringBuffer();
+ // visibility
+ buffer.append(NamedElementUtil.getVisibilityAsSign(property));
+ buffer.append(" ");
+
+ // derived property
+ buffer.append(getDerived(property));
+
+ // name
+ buffer.append(ALFIDConverter.nameToID(getName(property)));
+
+ // type
+ if (property.getType() != null) {
+ buffer.append(" : "
+ + CompletionProposalUtils.getQualifiedNameLabelWithSufficientDepth(property.getType(),
+ property.getNamespace()));
+ } else {
+ buffer.append(" : " + TypeUtil.UNDEFINED_TYPE_NAME);
+ }
+
+ // multiplicity -> do not display [1]
+ String multiplicity = MultiplicityElementUtil.getMultiplicityAsString(property, true);
+ if (!multiplicity.trim().equals("[1]")) {
+ buffer.append(multiplicity);
+ }
+ buffer.append(" ");
+
+ // property modifiers
+ String modifiers = PropertyUtil.getModifiersAsString(property, false);
+ if (!"".equals(modifiers)) {
+ buffer.append(modifiers);
+ buffer.append(" ");
+ }
+
+ // default value
+ if (property.getDefault() != null) {
+ buffer.append("= ");
+ String defaultValue = new UMLSwitch<String>() {
+ @Override
+ public String caseLiteralBoolean(org.eclipse.uml2.uml.LiteralBoolean object) {
+ return Boolean.toString(object.booleanValue());
+ }
+
+ @Override
+ public String caseLiteralInteger(org.eclipse.uml2.uml.LiteralInteger object) {
+ return Integer.toString(object.integerValue());
+ }
+
+ @Override
+ public String caseLiteralNull(org.eclipse.uml2.uml.LiteralNull object) {
+ return "null"; //$NON-NLS-1$
+ }
+
+ @Override
+ public String caseLiteralString(org.eclipse.uml2.uml.LiteralString object) {
+ return "\"" + object.stringValue() + "\"";
+ }
+
+ @Override
+ public String caseLiteralReal(org.eclipse.uml2.uml.LiteralReal object) {
+ return Double.toString(object.getValue());
+ }
+
+ @Override
+ public String caseLiteralUnlimitedNatural(org.eclipse.uml2.uml.LiteralUnlimitedNatural object) {
+ return object.getValue() < 0 ? "*" : Integer.toString(object.getValue());
+ }
+
+ }.doSwitch(property.getDefaultValue());
+
+ buffer.append(defaultValue);
+ }
+
+ return buffer.toString();
+ }
+
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/.classpath b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/.classpath
index 2f6f3f6d779..afb07e33449 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/.classpath
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/.classpath
@@ -1,9 +1,9 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="xtend-gen"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="src" path="src-gen"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="xtend-gen"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="src-gen"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/.settings/org.eclipse.jdt.core.prefs b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/.settings/org.eclipse.jdt.core.prefs
index 849b79c1a3e..50f727c4489 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/.settings/org.eclipse.jdt.core.prefs
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/.settings/org.eclipse.jdt.core.prefs
@@ -1,304 +1,304 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.doc.comment.support=disabled
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
-org.eclipse.jdt.core.compiler.problem.missingJavadocComments=error
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
-org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
-org.eclipse.jdt.core.compiler.source=1.5
-org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_assignment=0
-org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
-org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
-org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
-org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
-org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
-org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
-org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
-org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
-org.eclipse.jdt.core.formatter.blank_lines_after_package=1
-org.eclipse.jdt.core.formatter.blank_lines_before_field=0
-org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
-org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
-org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
-org.eclipse.jdt.core.formatter.blank_lines_before_method=1
-org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
-org.eclipse.jdt.core.formatter.blank_lines_before_package=0
-org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
-org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
-org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
-org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
-org.eclipse.jdt.core.formatter.comment.format_block_comments=true
-org.eclipse.jdt.core.formatter.comment.format_header=false
-org.eclipse.jdt.core.formatter.comment.format_html=true
-org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
-org.eclipse.jdt.core.formatter.comment.format_line_comments=true
-org.eclipse.jdt.core.formatter.comment.format_source_code=true
-org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
-org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
-org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
-org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
-org.eclipse.jdt.core.formatter.comment.line_length=260
-org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
-org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
-org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
-org.eclipse.jdt.core.formatter.compact_else_if=true
-org.eclipse.jdt.core.formatter.continuation_indentation=2
-org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
-org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
-org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
-org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
-org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
-org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_empty_lines=false
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
-org.eclipse.jdt.core.formatter.indentation.size=4
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
-org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
-org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
-org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
-org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
-org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
-org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
-org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.join_lines_in_comments=false
-org.eclipse.jdt.core.formatter.join_wrapped_lines=false
-org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
-org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
-org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
-org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
-org.eclipse.jdt.core.formatter.lineSplit=260
-org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
-org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
-org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
-org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5
-org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
-org.eclipse.jdt.core.formatter.tabulation.char=tab
-org.eclipse.jdt.core.formatter.tabulation.size=4
-org.eclipse.jdt.core.formatter.use_on_off_tags=false
-org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
-org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
-org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
-org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.doc.comment.support=disabled
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=disabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled
+org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
+org.eclipse.jdt.core.compiler.problem.missingJavadocComments=error
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
+org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
+org.eclipse.jdt.core.compiler.source=1.6
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=260
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=false
+org.eclipse.jdt.core.formatter.join_wrapped_lines=false
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=260
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=tab
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/META-INF/MANIFEST.MF b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/META-INF/MANIFEST.MF
index da9596d81b6..913255c825e 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/META-INF/MANIFEST.MF
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/META-INF/MANIFEST.MF
@@ -1,41 +1,41 @@
-Manifest-Version: 1.0
-Require-Bundle: org.eclipse.xtext,
- org.eclipse.xtext.generator;resolution:=optional,
- org.apache.commons.logging;resolution:=optional,
- org.eclipse.emf.codegen.ecore;resolution:=optional,
- org.eclipse.emf.mwe.utils;resolution:=optional,
- org.eclipse.emf.mwe2.launch;resolution:=optional,
- com.ibm.icu;resolution:=optional,
- org.eclipse.xtext.util,
- org.eclipse.emf.ecore,
- org.eclipse.emf.common,
- org.antlr.runtime,
- org.eclipse.uml2.uml;bundle-version="5.0.0",
- org.eclipse.uml2.codegen.ecore;bundle-version="1.6.0",
- org.apache.log4j;bundle-version="1.2.15",
- org.eclipse.papyrus.uml.alf.common;bundle-version="1.1.0",
- org.eclipse.papyrus.uml.xtext.integration.core;bundle-version="1.1.0",
- org.eclipse.papyrus.uml.tools.utils;bundle-version="1.1.0",
- org.eclipse.xtext.xbase.lib
-Export-Package: org.eclipse.papyrus.uml.textedit.property.xtext,
- org.eclipse.papyrus.uml.textedit.property.xtext.formatting,
- org.eclipse.papyrus.uml.textedit.property.xtext.generator,
- org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr,
- org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal,
- org.eclipse.papyrus.uml.textedit.property.xtext.scoping,
- org.eclipse.papyrus.uml.textedit.property.xtext.serializer,
- org.eclipse.papyrus.uml.textedit.property.xtext.services,
- org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty,
- org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl,
- org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.util,
- org.eclipse.papyrus.uml.textedit.property.xtext.validation
-Bundle-Vendor: %providerName
-Bundle-ActivationPolicy: lazy
-Bundle-Version: 1.1.0.qualifier
-Bundle-Name: %pluginName
-Bundle-Localization: plugin
-Bundle-ManifestVersion: 2
-Import-Package: org.apache.log4j,
- org.eclipse.xtext.xbase.lib
-Bundle-SymbolicName: org.eclipse.papyrus.uml.textedit.property.xtext;singleton:=true
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Manifest-Version: 1.0
+Require-Bundle: org.eclipse.xtext,
+ org.eclipse.xtext.generator;resolution:=optional,
+ org.apache.commons.logging;resolution:=optional,
+ org.eclipse.emf.codegen.ecore;resolution:=optional,
+ org.eclipse.emf.mwe.utils;resolution:=optional,
+ org.eclipse.emf.mwe2.launch;resolution:=optional,
+ com.ibm.icu;resolution:=optional,
+ org.eclipse.xtext.util,
+ org.eclipse.emf.ecore,
+ org.eclipse.emf.common,
+ org.antlr.runtime,
+ org.eclipse.uml2.uml;bundle-version="5.0.0",
+ org.eclipse.uml2.codegen.ecore;bundle-version="1.6.0",
+ org.apache.log4j;bundle-version="1.2.15",
+ org.eclipse.papyrus.uml.alf.common;bundle-version="1.1.0",
+ org.eclipse.papyrus.uml.xtext.integration.core;bundle-version="1.1.0",
+ org.eclipse.papyrus.uml.tools.utils;bundle-version="1.1.0",
+ org.eclipse.xtext.xbase.lib
+Export-Package: org.eclipse.papyrus.uml.textedit.property.xtext,
+ org.eclipse.papyrus.uml.textedit.property.xtext.formatting,
+ org.eclipse.papyrus.uml.textedit.property.xtext.generator,
+ org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr,
+ org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal,
+ org.eclipse.papyrus.uml.textedit.property.xtext.scoping,
+ org.eclipse.papyrus.uml.textedit.property.xtext.serializer,
+ org.eclipse.papyrus.uml.textedit.property.xtext.services,
+ org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty,
+ org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl,
+ org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.util,
+ org.eclipse.papyrus.uml.textedit.property.xtext.validation
+Bundle-Vendor: %providerName
+Bundle-ActivationPolicy: lazy
+Bundle-Version: 1.1.0.qualifier
+Bundle-Name: %pluginName
+Bundle-Localization: plugin
+Bundle-ManifestVersion: 2
+Import-Package: org.apache.log4j,
+ org.eclipse.xtext.xbase.lib
+Bundle-SymbolicName: org.eclipse.papyrus.uml.textedit.property.xtext;singleton:=true
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/AbstractUmlPropertyRuntimeModule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/AbstractUmlPropertyRuntimeModule.java
index 3319c8d5bfb..5c6eaaa3ca8 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/AbstractUmlPropertyRuntimeModule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/AbstractUmlPropertyRuntimeModule.java
@@ -1,172 +1,156 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext;
-
-import java.util.Properties;
-
-import org.eclipse.xtext.Constants;
-import org.eclipse.xtext.service.DefaultRuntimeModule;
-
-import com.google.inject.Binder;
-import com.google.inject.name.Names;
-
-/**
- * Manual modifications go to {org.eclipse.papyrus.uml.textedit.property.xtext.UmlPropertyRuntimeModule}
- */
-@SuppressWarnings("all")
-public abstract class AbstractUmlPropertyRuntimeModule extends DefaultRuntimeModule {
-
- protected Properties properties = null;
-
- @Override
- public void configure(Binder binder) {
- properties = tryBindProperties(binder, "org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.properties");
- super.configure(binder);
- }
-
- public void configureLanguageName(Binder binder) {
- binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty");
- }
-
- public void configureFileExtensions(Binder binder) {
- if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null) {
- binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("umlproperty");
- }
- }
-
- // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
- public java.lang.ClassLoader bindClassLoaderToInstance() {
- return getClass().getClassLoader();
- }
-
- // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
- public Class<? extends org.eclipse.xtext.IGrammarAccess> bindIGrammarAccess() {
- return org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess.class;
- }
-
- // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
- @Override
- public Class<? extends org.eclipse.xtext.serializer.sequencer.ISemanticSequencer> bindISemanticSequencer() {
- return org.eclipse.papyrus.uml.textedit.property.xtext.serializer.UmlPropertySemanticSequencer.class;
- }
-
- // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
- public Class<? extends org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer> bindISyntacticSequencer() {
- return org.eclipse.papyrus.uml.textedit.property.xtext.serializer.UmlPropertySyntacticSequencer.class;
- }
-
- // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
- @Override
- public Class<? extends org.eclipse.xtext.serializer.ISerializer> bindISerializer() {
- return org.eclipse.xtext.serializer.impl.Serializer.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public Class<? extends org.eclipse.xtext.parser.IParser> bindIParser() {
- return org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.UmlPropertyParser.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- @Override
- public Class<? extends org.eclipse.xtext.parser.ITokenToStringConverter> bindITokenToStringConverter() {
- return org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public Class<? extends org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
- return org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.UmlPropertyAntlrTokenFileProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public Class<? extends org.eclipse.xtext.parser.antlr.Lexer> bindLexer() {
- return org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal.InternalUmlPropertyLexer.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public com.google.inject.Provider<org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal.InternalUmlPropertyLexer> provideInternalUmlPropertyLexer() {
- return org.eclipse.xtext.parser.antlr.LexerProvider.create(org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal.InternalUmlPropertyLexer.class);
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public void configureRuntimeLexer(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.parser.antlr.LexerBindings.RUNTIME))
- .to(org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal.InternalUmlPropertyLexer.class);
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- @Override
- public Class<? extends org.eclipse.xtext.parser.antlr.ITokenDefProvider> bindITokenDefProvider() {
- return org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.validation.JavaValidatorFragment
- @org.eclipse.xtext.service.SingletonBinding(eager = true)
- public Class<? extends org.eclipse.papyrus.uml.textedit.property.xtext.validation.UmlPropertyJavaValidator> bindUmlPropertyJavaValidator() {
- return org.eclipse.papyrus.uml.textedit.property.xtext.validation.UmlPropertyJavaValidator.class;
- }
-
- // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
- @Override
- public Class<? extends org.eclipse.xtext.scoping.IScopeProvider> bindIScopeProvider() {
- return org.eclipse.papyrus.uml.textedit.property.xtext.scoping.UmlPropertyScopeProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
- public void configureIScopeProviderDelegate(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.NAMED_DELEGATE))
- .to(org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider.class);
- }
-
- // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
- @Override
- public Class<? extends org.eclipse.xtext.scoping.IGlobalScopeProvider> bindIGlobalScopeProvider() {
- return org.eclipse.xtext.scoping.impl.DefaultGlobalScopeProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
- public void configureIgnoreCaseLinking(com.google.inject.Binder binder) {
- binder.bindConstant().annotatedWith(org.eclipse.xtext.scoping.IgnoreCaseLinking.class).to(false);
- }
-
- // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment
- @Override
- public Class<? extends org.eclipse.xtext.naming.IQualifiedNameProvider> bindIQualifiedNameProvider() {
- return org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- @Override
- public Class<? extends org.eclipse.xtext.resource.IContainer.Manager> bindIContainer$Manager() {
- return org.eclipse.xtext.resource.containers.StateBasedContainerManager.class;
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public Class<? extends org.eclipse.xtext.resource.containers.IAllContainersState.Provider> bindIAllContainersState$Provider() {
- return org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- @Override
- public void configureIResourceDescriptions(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public void configureIResourceDescriptionsPersisted(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS))
- .to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
- }
-
- // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
- public Class<? extends org.eclipse.xtext.generator.IGenerator> bindIGenerator() {
- return org.eclipse.papyrus.uml.textedit.property.xtext.generator.UmlPropertyGenerator.class;
- }
-
- // contributed by org.eclipse.xtext.generator.formatting.FormatterFragment
- @Override
- public Class<? extends org.eclipse.xtext.formatting.IFormatter> bindIFormatter() {
- return org.eclipse.papyrus.uml.textedit.property.xtext.formatting.UmlPropertyFormatter.class;
- }
-
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext;
+
+import java.util.Properties;
+
+import org.eclipse.xtext.Constants;
+
+import com.google.inject.Binder;
+import com.google.inject.name.Names;
+
+/**
+ * Manual modifications go to {org.eclipse.papyrus.uml.textedit.property.xtext.UmlPropertyRuntimeModule}
+ */
+@SuppressWarnings("all")
+public abstract class AbstractUmlPropertyRuntimeModule extends org.eclipse.xtext.service.DefaultRuntimeModule {
+
+ protected Properties properties = null;
+
+ @Override
+ public void configure(Binder binder) {
+ properties = tryBindProperties(binder, "org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.properties");
+ super.configure(binder);
+ }
+
+ public void configureLanguageName(Binder binder) {
+ binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty");
+ }
+
+ public void configureFileExtensions(Binder binder) {
+ if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null)
+ binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("umlproperty");
+ }
+
+ // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
+ public java.lang.ClassLoader bindClassLoaderToInstance() {
+ return getClass().getClassLoader();
+ }
+
+ // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
+ public Class<? extends org.eclipse.xtext.IGrammarAccess> bindIGrammarAccess() {
+ return org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
+ public Class<? extends org.eclipse.xtext.serializer.sequencer.ISemanticSequencer> bindISemanticSequencer() {
+ return org.eclipse.papyrus.uml.textedit.property.xtext.serializer.UmlPropertySemanticSequencer.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
+ public Class<? extends org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer> bindISyntacticSequencer() {
+ return org.eclipse.papyrus.uml.textedit.property.xtext.serializer.UmlPropertySyntacticSequencer.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
+ public Class<? extends org.eclipse.xtext.serializer.ISerializer> bindISerializer() {
+ return org.eclipse.xtext.serializer.impl.Serializer.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.IParser> bindIParser() {
+ return org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.UmlPropertyParser.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.ITokenToStringConverter> bindITokenToStringConverter() {
+ return org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
+ return org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.UmlPropertyAntlrTokenFileProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.antlr.Lexer> bindLexer() {
+ return org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal.InternalUmlPropertyLexer.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public com.google.inject.Provider<org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal.InternalUmlPropertyLexer> provideInternalUmlPropertyLexer() {
+ return org.eclipse.xtext.parser.antlr.LexerProvider.create(org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal.InternalUmlPropertyLexer.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public void configureRuntimeLexer(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.parser.antlr.LexerBindings.RUNTIME)).to(org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal.InternalUmlPropertyLexer.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.antlr.ITokenDefProvider> bindITokenDefProvider() {
+ return org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.validation.JavaValidatorFragment
+ @org.eclipse.xtext.service.SingletonBinding(eager=true) public Class<? extends org.eclipse.papyrus.uml.textedit.property.xtext.validation.UmlPropertyJavaValidator> bindUmlPropertyJavaValidator() {
+ return org.eclipse.papyrus.uml.textedit.property.xtext.validation.UmlPropertyJavaValidator.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
+ public Class<? extends org.eclipse.xtext.scoping.IScopeProvider> bindIScopeProvider() {
+ return org.eclipse.papyrus.uml.textedit.property.xtext.scoping.UmlPropertyScopeProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
+ public void configureIScopeProviderDelegate(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
+ public Class<? extends org.eclipse.xtext.scoping.IGlobalScopeProvider> bindIGlobalScopeProvider() {
+ return org.eclipse.xtext.scoping.impl.DefaultGlobalScopeProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
+ public void configureIgnoreCaseLinking(com.google.inject.Binder binder) {
+ binder.bindConstant().annotatedWith(org.eclipse.xtext.scoping.IgnoreCaseLinking.class).to(false);
+ }
+
+ // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment
+ public Class<? extends org.eclipse.xtext.naming.IQualifiedNameProvider> bindIQualifiedNameProvider() {
+ return org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public Class<? extends org.eclipse.xtext.resource.IContainer.Manager> bindIContainer$Manager() {
+ return org.eclipse.xtext.resource.containers.StateBasedContainerManager.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public Class<? extends org.eclipse.xtext.resource.containers.IAllContainersState.Provider> bindIAllContainersState$Provider() {
+ return org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public void configureIResourceDescriptions(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public void configureIResourceDescriptionsPersisted(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
+ public Class<? extends org.eclipse.xtext.generator.IGenerator> bindIGenerator() {
+ return org.eclipse.papyrus.uml.textedit.property.xtext.generator.UmlPropertyGenerator.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.formatting.FormatterFragment
+ public Class<? extends org.eclipse.xtext.formatting.IFormatter> bindIFormatter() {
+ return org.eclipse.papyrus.uml.textedit.property.xtext.formatting.UmlPropertyFormatter.class;
+ }
+
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.genmodel b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.genmodel
index 546d7d26362..48295a53e23 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.genmodel
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.genmodel
@@ -1,89 +1,89 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen"
- editDirectory="/org.eclipse.papyrus.uml.textedit.property.xtext.edit/src" editorDirectory="/org.eclipse.papyrus.uml.textedit.property.xtext.editor/src"
- modelPluginID="org.eclipse.papyrus.uml.textedit.property.xtext" forceOverwrite="true"
- modelName="UmlProperty" updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
- complianceLevel="5.0" copyrightFields="false" editPluginID="org.eclipse.papyrus.uml.textedit.property.xtext.edit"
- editorPluginID="org.eclipse.papyrus.uml.textedit.property.xtext.editor" runtimeVersion="2.10"
- usedGenPackages="platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore platform:/resource/org.eclipse.uml2.uml/model/UML.genmodel#//uml">
- <genPackages prefix="UmlProperty" basePackage="org.eclipse.papyrus.uml.textedit.property.xtext"
- disposableProviderFactory="true" ecorePackage="UmlProperty.ecore#/">
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="UmlProperty.ecore#//VisibilityKind">
- <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//VisibilityKind/public"/>
- <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//VisibilityKind/private"/>
- <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//VisibilityKind/protected"/>
- <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//VisibilityKind/package"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="UmlProperty.ecore#//ModifierKind">
- <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//ModifierKind/readOnly"/>
- <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//ModifierKind/union"/>
- <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//ModifierKind/ordered"/>
- <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//ModifierKind/unique"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="UmlProperty.ecore#//BooleanLiterals">
- <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//BooleanLiterals/true"/>
- <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//BooleanLiterals/false"/>
- </genEnums>
- <genClasses ecoreClass="UmlProperty.ecore#//PropertyRule">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//PropertyRule/visibility"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//PropertyRule/derived"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//PropertyRule/name"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//PropertyRule/type"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//PropertyRule/typeUndefined"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//PropertyRule/multiplicity"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//PropertyRule/modifiers"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//PropertyRule/default"/>
- </genClasses>
- <genClasses ecoreClass="UmlProperty.ecore#//VisibilityRule">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//VisibilityRule/visibility"/>
- </genClasses>
- <genClasses ecoreClass="UmlProperty.ecore#//TypeRule">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//TypeRule/path"/>
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//TypeRule/type"/>
- </genClasses>
- <genClasses ecoreClass="UmlProperty.ecore#//QualifiedName">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//QualifiedName/path"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//QualifiedName/remaining"/>
- </genClasses>
- <genClasses ecoreClass="UmlProperty.ecore#//MultiplicityRule">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//MultiplicityRule/bounds"/>
- </genClasses>
- <genClasses ecoreClass="UmlProperty.ecore#//BoundSpecification">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//BoundSpecification/value"/>
- </genClasses>
- <genClasses ecoreClass="UmlProperty.ecore#//ModifiersRule">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//ModifiersRule/values"/>
- </genClasses>
- <genClasses ecoreClass="UmlProperty.ecore#//ModifierSpecification">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//ModifierSpecification/value"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//ModifierSpecification/redefines"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//ModifierSpecification/subsets"/>
- </genClasses>
- <genClasses ecoreClass="UmlProperty.ecore#//RedefinesRule">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//RedefinesRule/property"/>
- </genClasses>
- <genClasses ecoreClass="UmlProperty.ecore#//SubsetsRule">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//SubsetsRule/property"/>
- </genClasses>
- <genClasses ecoreClass="UmlProperty.ecore#//DefaultValueRule">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//DefaultValueRule/default"/>
- </genClasses>
- <genClasses ecoreClass="UmlProperty.ecore#//Value"/>
- <genClasses ecoreClass="UmlProperty.ecore#//IntValue">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//IntValue/literalInteger"/>
- </genClasses>
- <genClasses ecoreClass="UmlProperty.ecore#//StringValue">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//StringValue/literalString"/>
- </genClasses>
- <genClasses ecoreClass="UmlProperty.ecore#//BooleanValue">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//BooleanValue/literalBoolean"/>
- </genClasses>
- <genClasses ecoreClass="UmlProperty.ecore#//RealValue">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//RealValue/integer"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//RealValue/fraction"/>
- </genClasses>
- <genClasses ecoreClass="UmlProperty.ecore#//NullValue"/>
- <genClasses ecoreClass="UmlProperty.ecore#//NoValue"/>
- </genPackages>
-</genmodel:GenModel>
+<?xml version="1.0" encoding="UTF-8"?>
+<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
+ xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen"
+ editDirectory="/org.eclipse.papyrus.uml.textedit.property.xtext.edit/src" editorDirectory="/org.eclipse.papyrus.uml.textedit.property.xtext.editor/src"
+ modelPluginID="org.eclipse.papyrus.uml.textedit.property.xtext" forceOverwrite="true"
+ modelName="UmlProperty" updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
+ complianceLevel="6.0" copyrightFields="false" editPluginID="org.eclipse.papyrus.uml.textedit.property.xtext.edit"
+ editorPluginID="org.eclipse.papyrus.uml.textedit.property.xtext.editor" runtimeVersion="2.10"
+ usedGenPackages="platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore platform:/resource/org.eclipse.uml2.uml/model/UML.genmodel#//uml">
+ <genPackages prefix="UmlProperty" basePackage="org.eclipse.papyrus.uml.textedit.property.xtext"
+ disposableProviderFactory="true" ecorePackage="UmlProperty.ecore#/">
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="UmlProperty.ecore#//VisibilityKind">
+ <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//VisibilityKind/public"/>
+ <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//VisibilityKind/private"/>
+ <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//VisibilityKind/protected"/>
+ <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//VisibilityKind/package"/>
+ </genEnums>
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="UmlProperty.ecore#//ModifierKind">
+ <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//ModifierKind/readOnly"/>
+ <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//ModifierKind/union"/>
+ <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//ModifierKind/ordered"/>
+ <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//ModifierKind/unique"/>
+ </genEnums>
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="UmlProperty.ecore#//BooleanLiterals">
+ <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//BooleanLiterals/true"/>
+ <genEnumLiterals ecoreEnumLiteral="UmlProperty.ecore#//BooleanLiterals/false"/>
+ </genEnums>
+ <genClasses ecoreClass="UmlProperty.ecore#//PropertyRule">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//PropertyRule/visibility"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//PropertyRule/derived"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//PropertyRule/name"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//PropertyRule/type"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//PropertyRule/typeUndefined"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//PropertyRule/multiplicity"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//PropertyRule/modifiers"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//PropertyRule/default"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlProperty.ecore#//VisibilityRule">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//VisibilityRule/visibility"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlProperty.ecore#//TypeRule">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//TypeRule/path"/>
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//TypeRule/type"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlProperty.ecore#//QualifiedName">
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//QualifiedName/path"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//QualifiedName/remaining"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlProperty.ecore#//MultiplicityRule">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//MultiplicityRule/bounds"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlProperty.ecore#//BoundSpecification">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//BoundSpecification/value"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlProperty.ecore#//ModifiersRule">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//ModifiersRule/values"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlProperty.ecore#//ModifierSpecification">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//ModifierSpecification/value"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//ModifierSpecification/redefines"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//ModifierSpecification/subsets"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlProperty.ecore#//RedefinesRule">
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//RedefinesRule/property"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlProperty.ecore#//SubsetsRule">
+ <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//SubsetsRule/property"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlProperty.ecore#//DefaultValueRule">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference UmlProperty.ecore#//DefaultValueRule/default"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlProperty.ecore#//Value"/>
+ <genClasses ecoreClass="UmlProperty.ecore#//IntValue">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//IntValue/literalInteger"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlProperty.ecore#//StringValue">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//StringValue/literalString"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlProperty.ecore#//BooleanValue">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//BooleanValue/literalBoolean"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlProperty.ecore#//RealValue">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//RealValue/integer"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute UmlProperty.ecore#//RealValue/fraction"/>
+ </genClasses>
+ <genClasses ecoreClass="UmlProperty.ecore#//NullValue"/>
+ <genClasses ecoreClass="UmlProperty.ecore#//NoValue"/>
+ </genPackages>
+</genmodel:GenModel>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtextbin b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtextbin
index ad02e94a7e6..e8719bf6fb4 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtextbin
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtextbin
Binary files differ
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlPropertyStandaloneSetupGenerated.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlPropertyStandaloneSetupGenerated.java
index 6db13f5cc5d..33fe267fdd6 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlPropertyStandaloneSetupGenerated.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/UmlPropertyStandaloneSetupGenerated.java
@@ -1,45 +1,46 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext;
-
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.xtext.ISetup;
-import org.eclipse.emf.ecore.resource.Resource;
-
-import com.google.inject.Guice;
-import com.google.inject.Injector;
-
-/**
- * Generated from StandaloneSetup.xpt!
- */
-@SuppressWarnings("all")
-public class UmlPropertyStandaloneSetupGenerated implements ISetup {
-
- public Injector createInjectorAndDoEMFRegistration() {
- org.eclipse.papyrus.uml.alf.CommonStandaloneSetup.doSetup();
-
- Injector injector = createInjector();
- register(injector);
- return injector;
- }
-
- public Injector createInjector() {
- return Guice.createInjector(new org.eclipse.papyrus.uml.textedit.property.xtext.UmlPropertyRuntimeModule());
- }
-
- public void register(Injector injector) {
- if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty")) {
- EPackage.Registry.INSTANCE.put("http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty", org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage.eINSTANCE);
- }
-
- org.eclipse.xtext.resource.IResourceFactory resourceFactory = injector.getInstance(org.eclipse.xtext.resource.IResourceFactory.class);
- org.eclipse.xtext.resource.IResourceServiceProvider serviceProvider = injector.getInstance(org.eclipse.xtext.resource.IResourceServiceProvider.class);
- Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("umlproperty", resourceFactory);
- org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("umlproperty", serviceProvider);
-
-
-
-
- }
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext;
+
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.xtext.ISetup;
+import org.eclipse.emf.ecore.resource.Resource;
+
+import com.google.inject.Guice;
+import com.google.inject.Injector;
+
+/**
+ * Generated from StandaloneSetup.xpt!
+ */
+@SuppressWarnings("all")
+public class UmlPropertyStandaloneSetupGenerated implements ISetup {
+
+ @Override
+ public Injector createInjectorAndDoEMFRegistration() {
+ org.eclipse.papyrus.uml.alf.CommonStandaloneSetup.doSetup();
+
+ Injector injector = createInjector();
+ register(injector);
+ return injector;
+ }
+
+ public Injector createInjector() {
+ return Guice.createInjector(new org.eclipse.papyrus.uml.textedit.property.xtext.UmlPropertyRuntimeModule());
+ }
+
+ public void register(Injector injector) {
+ if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty")) {
+ EPackage.Registry.INSTANCE.put("http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty", org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage.eINSTANCE);
+ }
+
+ org.eclipse.xtext.resource.IResourceFactory resourceFactory = injector.getInstance(org.eclipse.xtext.resource.IResourceFactory.class);
+ org.eclipse.xtext.resource.IResourceServiceProvider serviceProvider = injector.getInstance(org.eclipse.xtext.resource.IResourceServiceProvider.class);
+ Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("umlproperty", resourceFactory);
+ org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("umlproperty", serviceProvider);
+
+
+
+
+ }
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/UmlPropertyAntlrTokenFileProvider.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/UmlPropertyAntlrTokenFileProvider.java
index 2611b9bec2f..bb39f17a3fa 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/UmlPropertyAntlrTokenFileProvider.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/UmlPropertyAntlrTokenFileProvider.java
@@ -1,15 +1,16 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr;
-
-import java.io.InputStream;
-import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
-
-public class UmlPropertyAntlrTokenFileProvider implements IAntlrTokenFileProvider {
-
- public InputStream getAntlrTokenFile() {
- ClassLoader classLoader = getClass().getClassLoader();
- return classLoader.getResourceAsStream("org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.tokens");
- }
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr;
+
+import java.io.InputStream;
+import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
+
+public class UmlPropertyAntlrTokenFileProvider implements IAntlrTokenFileProvider {
+
+ @Override
+ public InputStream getAntlrTokenFile() {
+ ClassLoader classLoader = getClass().getClassLoader();
+ return classLoader.getResourceAsStream("org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.tokens");
+ }
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/UmlPropertyParser.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/UmlPropertyParser.java
index 8a53360b1d7..26266b4501d 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/UmlPropertyParser.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/UmlPropertyParser.java
@@ -1,39 +1,39 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr;
-
-import com.google.inject.Inject;
-
-import org.eclipse.xtext.parser.antlr.XtextTokenStream;
-import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess;
-
-public class UmlPropertyParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {
-
- @Inject
- private UmlPropertyGrammarAccess grammarAccess;
-
- @Override
- protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
- tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
- }
-
- @Override
- protected org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal.InternalUmlPropertyParser createParser(XtextTokenStream stream) {
- return new org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal.InternalUmlPropertyParser(stream, getGrammarAccess());
- }
-
- @Override
- protected String getDefaultRuleName() {
- return "PropertyRule";
- }
-
- public UmlPropertyGrammarAccess getGrammarAccess() {
- return this.grammarAccess;
- }
-
- public void setGrammarAccess(UmlPropertyGrammarAccess grammarAccess) {
- this.grammarAccess = grammarAccess;
- }
-
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr;
+
+import com.google.inject.Inject;
+
+import org.eclipse.xtext.parser.antlr.XtextTokenStream;
+import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess;
+
+public class UmlPropertyParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {
+
+ @Inject
+ private UmlPropertyGrammarAccess grammarAccess;
+
+ @Override
+ protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
+ tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
+ }
+
+ @Override
+ protected org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal.InternalUmlPropertyParser createParser(XtextTokenStream stream) {
+ return new org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal.InternalUmlPropertyParser(stream, getGrammarAccess());
+ }
+
+ @Override
+ protected String getDefaultRuleName() {
+ return "PropertyRule";
+ }
+
+ public UmlPropertyGrammarAccess getGrammarAccess() {
+ return this.grammarAccess;
+ }
+
+ public void setGrammarAccess(UmlPropertyGrammarAccess grammarAccess) {
+ this.grammarAccess = grammarAccess;
+ }
+
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g
index f22b188e05a..f3d306521d2 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g
@@ -1,1255 +1,1301 @@
-/*
-* generated by Xtext
-*/
-grammar InternalUmlProperty;
-
-options {
- superClass=AbstractInternalAntlrParser;
-
-}
-
-@lexer::header {
-package org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal;
-
-// Hack: Use our own Lexer superclass by means of import.
-// Currently there is no other way to specify the superclass for the lexer.
-import org.eclipse.xtext.parser.antlr.Lexer;
-}
-
-@parser::header {
-package org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal;
-
-import org.eclipse.xtext.*;
-import org.eclipse.xtext.parser.*;
-import org.eclipse.xtext.parser.impl.*;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.common.util.Enumerator;
-import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
-import org.eclipse.xtext.parser.antlr.XtextTokenStream;
-import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
-import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken;
-import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess;
-
-}
-
-@parser::members {
-
- private UmlPropertyGrammarAccess grammarAccess;
-
- public InternalUmlPropertyParser(TokenStream input, UmlPropertyGrammarAccess grammarAccess) {
- this(input);
- this.grammarAccess = grammarAccess;
- registerRules(grammarAccess.getGrammar());
- }
-
- @Override
- protected String getFirstRuleName() {
- return "PropertyRule";
- }
-
- @Override
- protected UmlPropertyGrammarAccess getGrammarAccess() {
- return grammarAccess;
- }
-}
-
-@rulecatch {
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
-}
-
-
-
-
-// Entry rule entryRulePropertyRule
-entryRulePropertyRule returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getPropertyRuleRule()); }
- iv_rulePropertyRule=rulePropertyRule
- { $current=$iv_rulePropertyRule.current; }
- EOF
-;
-
-// Rule PropertyRule
-rulePropertyRule returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getPropertyRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0());
- }
- lv_visibility_0_0=ruleVisibilityRule {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
- }
- set(
- $current,
- "visibility",
- lv_visibility_0_0,
- "VisibilityRule");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?(
-(
- lv_derived_1_0= '/'
- {
- newLeafNode(lv_derived_1_0, grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getPropertyRuleRule());
- }
- setWithLastConsumed($current, "derived", true, "/");
- }
-
-)
-)?(
-(
- lv_name_2_0=RULE_ID
- {
- newLeafNode(lv_name_2_0, grammarAccess.getPropertyRuleAccess().getNameIDTerminalRuleCall_2_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getPropertyRuleRule());
- }
- setWithLastConsumed(
- $current,
- "name",
- lv_name_2_0,
- "ID");
- }
-
-)
-)( otherlv_3=':'
- {
- newLeafNode(otherlv_3, grammarAccess.getPropertyRuleAccess().getColonKeyword_3_0());
- }
-((
-(
- {
- newCompositeNode(grammarAccess.getPropertyRuleAccess().getTypeTypeRuleParserRuleCall_3_1_0_0());
- }
- lv_type_4_0=ruleTypeRule {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
- }
- set(
- $current,
- "type",
- lv_type_4_0,
- "TypeRule");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
- |(
-(
- lv_typeUndefined_5_0= '<Undefined>'
- {
- newLeafNode(lv_typeUndefined_5_0, grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getPropertyRuleRule());
- }
- setWithLastConsumed($current, "typeUndefined", true, "<Undefined>");
- }
-
-)
-)))?(
-(
- {
- newCompositeNode(grammarAccess.getPropertyRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0());
- }
- lv_multiplicity_6_0=ruleMultiplicityRule {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
- }
- set(
- $current,
- "multiplicity",
- lv_multiplicity_6_0,
- "MultiplicityRule");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getPropertyRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0());
- }
- lv_modifiers_7_0=ruleModifiersRule {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
- }
- set(
- $current,
- "modifiers",
- lv_modifiers_7_0,
- "ModifiersRule");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getPropertyRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0());
- }
- lv_default_8_0=ruleDefaultValueRule {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
- }
- set(
- $current,
- "default",
- lv_default_8_0,
- "DefaultValueRule");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?)
-;
-
-
-
-
-
-// Entry rule entryRuleVisibilityRule
-entryRuleVisibilityRule returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getVisibilityRuleRule()); }
- iv_ruleVisibilityRule=ruleVisibilityRule
- { $current=$iv_ruleVisibilityRule.current; }
- EOF
-;
-
-// Rule VisibilityRule
-ruleVisibilityRule returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- {
- newCompositeNode(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0());
- }
- lv_visibility_0_0=ruleVisibilityKind {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getVisibilityRuleRule());
- }
- set(
- $current,
- "visibility",
- lv_visibility_0_0,
- "VisibilityKind");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleTypeRule
-entryRuleTypeRule returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getTypeRuleRule()); }
- iv_ruleTypeRule=ruleTypeRule
- { $current=$iv_ruleTypeRule.current; }
- EOF
-;
-
-// Rule TypeRule
-ruleTypeRule returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0());
- }
- lv_path_0_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getTypeRuleRule());
- }
- set(
- $current,
- "path",
- lv_path_0_0,
- "QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?(
-(
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getTypeRuleRule());
- }
- }
- otherlv_1=RULE_ID
- {
- newLeafNode(otherlv_1, grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0());
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleQualifiedName
-entryRuleQualifiedName returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getQualifiedNameRule()); }
- iv_ruleQualifiedName=ruleQualifiedName
- { $current=$iv_ruleQualifiedName.current; }
- EOF
-;
-
-// Rule QualifiedName
-ruleQualifiedName returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getQualifiedNameRule());
- }
- }
- otherlv_0=RULE_ID
- {
- newLeafNode(otherlv_0, grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0());
- }
-
-)
-) otherlv_1='::'
- {
- newLeafNode(otherlv_1, grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0());
- }
- lv_remaining_2_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getQualifiedNameRule());
- }
- set(
- $current,
- "remaining",
- lv_remaining_2_0,
- "QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?)
-;
-
-
-
-
-
-// Entry rule entryRuleMultiplicityRule
-entryRuleMultiplicityRule returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getMultiplicityRuleRule()); }
- iv_ruleMultiplicityRule=ruleMultiplicityRule
- { $current=$iv_ruleMultiplicityRule.current; }
- EOF
-;
-
-// Rule MultiplicityRule
-ruleMultiplicityRule returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='['
- {
- newLeafNode(otherlv_0, grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0());
- }
- lv_bounds_1_0=ruleBoundSpecification {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule());
- }
- add(
- $current,
- "bounds",
- lv_bounds_1_0,
- "BoundSpecification");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_2='..'
- {
- newLeafNode(otherlv_2, grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0());
- }
- lv_bounds_3_0=ruleBoundSpecification {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule());
- }
- add(
- $current,
- "bounds",
- lv_bounds_3_0,
- "BoundSpecification");
- afterParserOrEnumRuleCall();
- }
-
-)
-))? otherlv_4=']'
- {
- newLeafNode(otherlv_4, grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleBoundSpecification
-entryRuleBoundSpecification returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getBoundSpecificationRule()); }
- iv_ruleBoundSpecification=ruleBoundSpecification
- { $current=$iv_ruleBoundSpecification.current; }
- EOF
-;
-
-// Rule BoundSpecification
-ruleBoundSpecification returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- {
- newCompositeNode(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0());
- }
- lv_value_0_0=ruleUnlimitedLiteral {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getBoundSpecificationRule());
- }
- set(
- $current,
- "value",
- lv_value_0_0,
- "UnlimitedLiteral");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleUnlimitedLiteral
-entryRuleUnlimitedLiteral returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getUnlimitedLiteralRule()); }
- iv_ruleUnlimitedLiteral=ruleUnlimitedLiteral
- { $current=$iv_ruleUnlimitedLiteral.current.getText(); }
- EOF
-;
-
-// Rule UnlimitedLiteral
-ruleUnlimitedLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( this_INT_0=RULE_INT {
- $current.merge(this_INT_0);
- }
-
- {
- newLeafNode(this_INT_0, grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0());
- }
-
- |
- kw='*'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1());
- }
-)
- ;
-
-
-
-
-
-// Entry rule entryRuleModifiersRule
-entryRuleModifiersRule returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getModifiersRuleRule()); }
- iv_ruleModifiersRule=ruleModifiersRule
- { $current=$iv_ruleModifiersRule.current; }
- EOF
-;
-
-// Rule ModifiersRule
-ruleModifiersRule returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
- {
- $current = forceCreateModelElement(
- grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0(),
- $current);
- }
-) otherlv_1='{'
- {
- newLeafNode(otherlv_1, grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1());
- }
-((
-(
- {
- newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0());
- }
- lv_values_2_0=ruleModifierSpecification {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getModifiersRuleRule());
- }
- add(
- $current,
- "values",
- lv_values_2_0,
- "ModifierSpecification");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_3=','
- {
- newLeafNode(otherlv_3, grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0());
- }
- lv_values_4_0=ruleModifierSpecification {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getModifiersRuleRule());
- }
- add(
- $current,
- "values",
- lv_values_4_0,
- "ModifierSpecification");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)? otherlv_5='}'
- {
- newLeafNode(otherlv_5, grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleModifierSpecification
-entryRuleModifierSpecification returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getModifierSpecificationRule()); }
- iv_ruleModifierSpecification=ruleModifierSpecification
- { $current=$iv_ruleModifierSpecification.current; }
- EOF
-;
-
-// Rule ModifierSpecification
-ruleModifierSpecification returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0());
- }
- lv_value_0_0=ruleModifierKind {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
- }
- set(
- $current,
- "value",
- lv_value_0_0,
- "ModifierKind");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
- |(
-(
- {
- newCompositeNode(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0());
- }
- lv_redefines_1_0=ruleRedefinesRule {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
- }
- set(
- $current,
- "redefines",
- lv_redefines_1_0,
- "RedefinesRule");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
- |(
-(
- {
- newCompositeNode(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0());
- }
- lv_subsets_2_0=ruleSubsetsRule {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
- }
- set(
- $current,
- "subsets",
- lv_subsets_2_0,
- "SubsetsRule");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleRedefinesRule
-entryRuleRedefinesRule returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getRedefinesRuleRule()); }
- iv_ruleRedefinesRule=ruleRedefinesRule
- { $current=$iv_ruleRedefinesRule.current; }
- EOF
-;
-
-// Rule RedefinesRule
-ruleRedefinesRule returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='redefines'
- {
- newLeafNode(otherlv_0, grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0());
- }
-(
-(
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getRedefinesRuleRule());
- }
- }
- otherlv_1=RULE_ID
- {
- newLeafNode(otherlv_1, grammarAccess.getRedefinesRuleAccess().getPropertyPropertyCrossReference_1_0());
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleSubsetsRule
-entryRuleSubsetsRule returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSubsetsRuleRule()); }
- iv_ruleSubsetsRule=ruleSubsetsRule
- { $current=$iv_ruleSubsetsRule.current; }
- EOF
-;
-
-// Rule SubsetsRule
-ruleSubsetsRule returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='subsets'
- {
- newLeafNode(otherlv_0, grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0());
- }
-(
-(
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getSubsetsRuleRule());
- }
- }
- otherlv_1=RULE_ID
- {
- newLeafNode(otherlv_1, grammarAccess.getSubsetsRuleAccess().getPropertyPropertyCrossReference_1_0());
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleDefaultValueRule
-entryRuleDefaultValueRule returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getDefaultValueRuleRule()); }
- iv_ruleDefaultValueRule=ruleDefaultValueRule
- { $current=$iv_ruleDefaultValueRule.current; }
- EOF
-;
-
-// Rule DefaultValueRule
-ruleDefaultValueRule returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='='
- {
- newLeafNode(otherlv_0, grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0());
- }
- lv_default_1_0=ruleValue {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getDefaultValueRuleRule());
- }
- set(
- $current,
- "default",
- lv_default_1_0,
- "Value");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleValue
-entryRuleValue returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getValueRule()); }
- iv_ruleValue=ruleValue
- { $current=$iv_ruleValue.current; }
- EOF
-;
-
-// Rule Value
-ruleValue returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- newCompositeNode(grammarAccess.getValueAccess().getIntValueParserRuleCall_0());
- }
- this_IntValue_0=ruleIntValue
- {
- $current = $this_IntValue_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- newCompositeNode(grammarAccess.getValueAccess().getStringValueParserRuleCall_1());
- }
- this_StringValue_1=ruleStringValue
- {
- $current = $this_StringValue_1.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- newCompositeNode(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2());
- }
- this_BooleanValue_2=ruleBooleanValue
- {
- $current = $this_BooleanValue_2.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- newCompositeNode(grammarAccess.getValueAccess().getRealValueParserRuleCall_3());
- }
- this_RealValue_3=ruleRealValue
- {
- $current = $this_RealValue_3.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- newCompositeNode(grammarAccess.getValueAccess().getNullValueParserRuleCall_4());
- }
- this_NullValue_4=ruleNullValue
- {
- $current = $this_NullValue_4.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- newCompositeNode(grammarAccess.getValueAccess().getNoValueParserRuleCall_5());
- }
- this_NoValue_5=ruleNoValue
- {
- $current = $this_NoValue_5.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleIntValue
-entryRuleIntValue returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getIntValueRule()); }
- iv_ruleIntValue=ruleIntValue
- { $current=$iv_ruleIntValue.current; }
- EOF
-;
-
-// Rule IntValue
-ruleIntValue returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- lv_literalInteger_0_0=RULE_INT
- {
- newLeafNode(lv_literalInteger_0_0, grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getIntValueRule());
- }
- setWithLastConsumed(
- $current,
- "literalInteger",
- lv_literalInteger_0_0,
- "INT");
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleStringValue
-entryRuleStringValue returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getStringValueRule()); }
- iv_ruleStringValue=ruleStringValue
- { $current=$iv_ruleStringValue.current; }
- EOF
-;
-
-// Rule StringValue
-ruleStringValue returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- lv_literalString_0_0=RULE_STRING
- {
- newLeafNode(lv_literalString_0_0, grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getStringValueRule());
- }
- setWithLastConsumed(
- $current,
- "literalString",
- lv_literalString_0_0,
- "STRING");
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleBooleanValue
-entryRuleBooleanValue returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getBooleanValueRule()); }
- iv_ruleBooleanValue=ruleBooleanValue
- { $current=$iv_ruleBooleanValue.current; }
- EOF
-;
-
-// Rule BooleanValue
-ruleBooleanValue returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- {
- newCompositeNode(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0());
- }
- lv_literalBoolean_0_0=ruleBooleanLiterals {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getBooleanValueRule());
- }
- set(
- $current,
- "literalBoolean",
- lv_literalBoolean_0_0,
- "BooleanLiterals");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleRealValue
-entryRuleRealValue returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getRealValueRule()); }
- iv_ruleRealValue=ruleRealValue
- { $current=$iv_ruleRealValue.current; }
- EOF
-;
-
-// Rule RealValue
-ruleRealValue returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(((
-(
- lv_integer_0_0=RULE_INT
- {
- newLeafNode(lv_integer_0_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getRealValueRule());
- }
- setWithLastConsumed(
- $current,
- "integer",
- lv_integer_0_0,
- "INT");
- }
-
-)
-) otherlv_1='.'
- {
- newLeafNode(otherlv_1, grammarAccess.getRealValueAccess().getFullStopKeyword_0_1());
- }
-)
- |( otherlv_2='.'
- {
- newLeafNode(otherlv_2, grammarAccess.getRealValueAccess().getFullStopKeyword_1_0());
- }
-(
-(
- lv_fraction_3_0=RULE_INT
- {
- newLeafNode(lv_fraction_3_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getRealValueRule());
- }
- setWithLastConsumed(
- $current,
- "fraction",
- lv_fraction_3_0,
- "INT");
- }
-
-)
-))
- |((
-(
- lv_integer_4_0=RULE_INT
- {
- newLeafNode(lv_integer_4_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getRealValueRule());
- }
- setWithLastConsumed(
- $current,
- "integer",
- lv_integer_4_0,
- "INT");
- }
-
-)
-) otherlv_5='.'
- {
- newLeafNode(otherlv_5, grammarAccess.getRealValueAccess().getFullStopKeyword_2_1());
- }
-(
-(
- lv_fraction_6_0=RULE_INT
- {
- newLeafNode(lv_fraction_6_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getRealValueRule());
- }
- setWithLastConsumed(
- $current,
- "fraction",
- lv_fraction_6_0,
- "INT");
- }
-
-)
-)))
-;
-
-
-
-
-
-// Entry rule entryRuleNullValue
-entryRuleNullValue returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getNullValueRule()); }
- iv_ruleNullValue=ruleNullValue
- { $current=$iv_ruleNullValue.current; }
- EOF
-;
-
-// Rule NullValue
-ruleNullValue returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
- {
- $current = forceCreateModelElement(
- grammarAccess.getNullValueAccess().getNullValueAction_0(),
- $current);
- }
-) otherlv_1='null'
- {
- newLeafNode(otherlv_1, grammarAccess.getNullValueAccess().getNullKeyword_1());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleNoValue
-entryRuleNoValue returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getNoValueRule()); }
- iv_ruleNoValue=ruleNoValue
- { $current=$iv_ruleNoValue.current; }
- EOF
-;
-
-// Rule NoValue
-ruleNoValue returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
- {
- $current = forceCreateModelElement(
- grammarAccess.getNoValueAccess().getNoValueAction_0(),
- $current);
- }
-) otherlv_1='none'
- {
- newLeafNode(otherlv_1, grammarAccess.getNoValueAccess().getNoneKeyword_1());
- }
-)
-;
-
-
-
-
-
-// Rule VisibilityKind
-ruleVisibilityKind returns [Enumerator current=null]
- @init { enterRule(); }
- @after { leaveRule(); }:
-(( enumLiteral_0='+'
- {
- $current = grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_0, grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0());
- }
-)
- |( enumLiteral_1='-'
- {
- $current = grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_1, grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1());
- }
-)
- |( enumLiteral_2='#'
- {
- $current = grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_2, grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2());
- }
-)
- |( enumLiteral_3='~'
- {
- $current = grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_3, grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3());
- }
-));
-
-
-
-// Rule ModifierKind
-ruleModifierKind returns [Enumerator current=null]
- @init { enterRule(); }
- @after { leaveRule(); }:
-(( enumLiteral_0='readOnly'
- {
- $current = grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_0, grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0());
- }
-)
- |( enumLiteral_1='union'
- {
- $current = grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_1, grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1());
- }
-)
- |( enumLiteral_2='ordered'
- {
- $current = grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_2, grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2());
- }
-)
- |( enumLiteral_3='unique'
- {
- $current = grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_3, grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3());
- }
-));
-
-
-
-// Rule BooleanLiterals
-ruleBooleanLiterals returns [Enumerator current=null]
- @init { enterRule(); }
- @after { leaveRule(); }:
-(( enumLiteral_0='true'
- {
- $current = grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_0, grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0());
- }
-)
- |( enumLiteral_1='false'
- {
- $current = grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_1, grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1());
- }
-));
-
-
-
-RULE_ID : (('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*|'\'' ( options {greedy=false;} : . )*'\'');
-
-RULE_STRING : '"' ('\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')|~(('\\'|'"')))* '"';
-
-RULE_ML_COMMENT : '/*' ~('@') ( options {greedy=false;} : . )*'*/';
-
-RULE_SL_COMMENT : '//' ~(('\n'|'\r'|'@'))* ('\r'? '\n')?;
-
-RULE_INT : ('0'..'9')+;
-
-RULE_INTEGER_VALUE : (('0'|'1'..'9' ('_'? '0'..'9')*)|('0b'|'0B') '0'..'1' ('_'? '0'..'1')*|('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F') ('_'? ('0'..'9'|'a'..'f'|'A'..'F'))*|'0' '_'? '0'..'7' ('_'? '0'..'7')*);
-
-RULE_WS : (' '|'\t'|'\r'|'\n')+;
-
-RULE_ANY_OTHER : .;
-
-
+/*
+ * generated by Xtext
+ */
+grammar InternalUmlProperty;
+
+options {
+ superClass=AbstractInternalAntlrParser;
+
+}
+
+@lexer::header {
+package org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal;
+
+// Hack: Use our own Lexer superclass by means of import.
+// Currently there is no other way to specify the superclass for the lexer.
+import org.eclipse.xtext.parser.antlr.Lexer;
+}
+
+@parser::header {
+package org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal;
+
+import org.eclipse.xtext.*;
+import org.eclipse.xtext.parser.*;
+import org.eclipse.xtext.parser.impl.*;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.common.util.Enumerator;
+import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
+import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken;
+import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess;
+
+}
+
+@parser::members {
+
+ private UmlPropertyGrammarAccess grammarAccess;
+
+ public InternalUmlPropertyParser(TokenStream input, UmlPropertyGrammarAccess grammarAccess) {
+ this(input);
+ this.grammarAccess = grammarAccess;
+ registerRules(grammarAccess.getGrammar());
+ }
+
+ @Override
+ protected String getFirstRuleName() {
+ return "PropertyRule";
+ }
+
+ @Override
+ protected UmlPropertyGrammarAccess getGrammarAccess() {
+ return grammarAccess;
+ }
+}
+
+@rulecatch {
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+}
+
+
+
+
+// Entry rule entryRulePropertyRule
+entryRulePropertyRule returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getPropertyRuleRule()); }
+ iv_rulePropertyRule=rulePropertyRule
+ { $current=$iv_rulePropertyRule.current; }
+ EOF
+;
+
+// Rule PropertyRule
+rulePropertyRule returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getPropertyRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0());
+ }
+ lv_visibility_0_0=ruleVisibilityRule {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
+ }
+ set(
+ $current,
+ "visibility",
+ lv_visibility_0_0,
+ "VisibilityRule");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?(
+(
+ lv_derived_1_0= '/'
+ {
+ newLeafNode(lv_derived_1_0, grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getPropertyRuleRule());
+ }
+ setWithLastConsumed($current, "derived", true, "/");
+ }
+
+)
+)?(
+(
+ lv_name_2_0=RULE_ID
+ {
+ newLeafNode(lv_name_2_0, grammarAccess.getPropertyRuleAccess().getNameIDTerminalRuleCall_2_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getPropertyRuleRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "name",
+ lv_name_2_0,
+ "ID");
+ }
+
+)
+)( otherlv_3=':'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getPropertyRuleAccess().getColonKeyword_3_0());
+ }
+((
+(
+ {
+ newCompositeNode(grammarAccess.getPropertyRuleAccess().getTypeTypeRuleParserRuleCall_3_1_0_0());
+ }
+ lv_type_4_0=ruleTypeRule {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
+ }
+ set(
+ $current,
+ "type",
+ lv_type_4_0,
+ "TypeRule");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)
+ |(
+(
+ lv_typeUndefined_5_0= '<Undefined>'
+ {
+ newLeafNode(lv_typeUndefined_5_0, grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getPropertyRuleRule());
+ }
+ setWithLastConsumed($current, "typeUndefined", true, "<Undefined>");
+ }
+
+)
+)))?(
+(
+ {
+ newCompositeNode(grammarAccess.getPropertyRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0());
+ }
+ lv_multiplicity_6_0=ruleMultiplicityRule {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
+ }
+ set(
+ $current,
+ "multiplicity",
+ lv_multiplicity_6_0,
+ "MultiplicityRule");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getPropertyRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0());
+ }
+ lv_modifiers_7_0=ruleModifiersRule {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
+ }
+ set(
+ $current,
+ "modifiers",
+ lv_modifiers_7_0,
+ "ModifiersRule");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getPropertyRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0());
+ }
+ lv_default_8_0=ruleDefaultValueRule {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
+ }
+ set(
+ $current,
+ "default",
+ lv_default_8_0,
+ "DefaultValueRule");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleVisibilityRule
+entryRuleVisibilityRule returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getVisibilityRuleRule()); }
+ iv_ruleVisibilityRule=ruleVisibilityRule
+ { $current=$iv_ruleVisibilityRule.current; }
+ EOF
+;
+
+// Rule VisibilityRule
+ruleVisibilityRule returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ {
+ newCompositeNode(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0());
+ }
+ lv_visibility_0_0=ruleVisibilityKind {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getVisibilityRuleRule());
+ }
+ set(
+ $current,
+ "visibility",
+ lv_visibility_0_0,
+ "VisibilityKind");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleTypeRule
+entryRuleTypeRule returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getTypeRuleRule()); }
+ iv_ruleTypeRule=ruleTypeRule
+ { $current=$iv_ruleTypeRule.current; }
+ EOF
+;
+
+// Rule TypeRule
+ruleTypeRule returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0());
+ }
+ lv_path_0_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getTypeRuleRule());
+ }
+ set(
+ $current,
+ "path",
+ lv_path_0_0,
+ "QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?(
+(
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getTypeRuleRule());
+ }
+ }
+ otherlv_1=RULE_ID
+ {
+ newLeafNode(otherlv_1, grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0());
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleQualifiedName
+entryRuleQualifiedName returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getQualifiedNameRule()); }
+ iv_ruleQualifiedName=ruleQualifiedName
+ { $current=$iv_ruleQualifiedName.current; }
+ EOF
+;
+
+// Rule QualifiedName
+ruleQualifiedName returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getQualifiedNameRule());
+ }
+ }
+ otherlv_0=RULE_ID
+ {
+ newLeafNode(otherlv_0, grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0());
+ }
+
+)
+) otherlv_1='::'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0());
+ }
+ lv_remaining_2_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getQualifiedNameRule());
+ }
+ set(
+ $current,
+ "remaining",
+ lv_remaining_2_0,
+ "QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleMultiplicityRule
+entryRuleMultiplicityRule returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getMultiplicityRuleRule()); }
+ iv_ruleMultiplicityRule=ruleMultiplicityRule
+ { $current=$iv_ruleMultiplicityRule.current; }
+ EOF
+;
+
+// Rule MultiplicityRule
+ruleMultiplicityRule returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='['
+ {
+ newLeafNode(otherlv_0, grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0());
+ }
+ lv_bounds_1_0=ruleBoundSpecification {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule());
+ }
+ add(
+ $current,
+ "bounds",
+ lv_bounds_1_0,
+ "BoundSpecification");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_2='..'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0());
+ }
+ lv_bounds_3_0=ruleBoundSpecification {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule());
+ }
+ add(
+ $current,
+ "bounds",
+ lv_bounds_3_0,
+ "BoundSpecification");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))? otherlv_4=']'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleBoundSpecification
+entryRuleBoundSpecification returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getBoundSpecificationRule()); }
+ iv_ruleBoundSpecification=ruleBoundSpecification
+ { $current=$iv_ruleBoundSpecification.current; }
+ EOF
+;
+
+// Rule BoundSpecification
+ruleBoundSpecification returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+(
+ {
+ newCompositeNode(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0_0());
+ }
+ lv_value_0_1=ruleUnlimitedLiteral {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getBoundSpecificationRule());
+ }
+ set(
+ $current,
+ "value",
+ lv_value_0_1,
+ "UnlimitedLiteral");
+ afterParserOrEnumRuleCall();
+ }
+
+ | {
+ newCompositeNode(grammarAccess.getBoundSpecificationAccess().getValueStringLiteralParserRuleCall_0_1());
+ }
+ lv_value_0_2=ruleStringLiteral {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getBoundSpecificationRule());
+ }
+ set(
+ $current,
+ "value",
+ lv_value_0_2,
+ "StringLiteral");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleUnlimitedLiteral
+entryRuleUnlimitedLiteral returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getUnlimitedLiteralRule()); }
+ iv_ruleUnlimitedLiteral=ruleUnlimitedLiteral
+ { $current=$iv_ruleUnlimitedLiteral.current.getText(); }
+ EOF
+;
+
+// Rule UnlimitedLiteral
+ruleUnlimitedLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( this_INT_0=RULE_INT {
+ $current.merge(this_INT_0);
+ }
+
+ {
+ newLeafNode(this_INT_0, grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0());
+ }
+
+ |
+ kw='*'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1());
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRuleStringLiteral
+entryRuleStringLiteral returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getStringLiteralRule()); }
+ iv_ruleStringLiteral=ruleStringLiteral
+ { $current=$iv_ruleStringLiteral.current.getText(); }
+ EOF
+;
+
+// Rule StringLiteral
+ruleStringLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+ this_STRING_0=RULE_STRING {
+ $current.merge(this_STRING_0);
+ }
+
+ {
+ newLeafNode(this_STRING_0, grammarAccess.getStringLiteralAccess().getSTRINGTerminalRuleCall());
+ }
+
+ ;
+
+
+
+
+
+// Entry rule entryRuleModifiersRule
+entryRuleModifiersRule returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getModifiersRuleRule()); }
+ iv_ruleModifiersRule=ruleModifiersRule
+ { $current=$iv_ruleModifiersRule.current; }
+ EOF
+;
+
+// Rule ModifiersRule
+ruleModifiersRule returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+ {
+ $current = forceCreateModelElement(
+ grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0(),
+ $current);
+ }
+) otherlv_1='{'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1());
+ }
+((
+(
+ {
+ newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0());
+ }
+ lv_values_2_0=ruleModifierSpecification {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getModifiersRuleRule());
+ }
+ add(
+ $current,
+ "values",
+ lv_values_2_0,
+ "ModifierSpecification");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_3=','
+ {
+ newLeafNode(otherlv_3, grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0());
+ }
+ lv_values_4_0=ruleModifierSpecification {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getModifiersRuleRule());
+ }
+ add(
+ $current,
+ "values",
+ lv_values_4_0,
+ "ModifierSpecification");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)? otherlv_5='}'
+ {
+ newLeafNode(otherlv_5, grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleModifierSpecification
+entryRuleModifierSpecification returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getModifierSpecificationRule()); }
+ iv_ruleModifierSpecification=ruleModifierSpecification
+ { $current=$iv_ruleModifierSpecification.current; }
+ EOF
+;
+
+// Rule ModifierSpecification
+ruleModifierSpecification returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0());
+ }
+ lv_value_0_0=ruleModifierKind {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
+ }
+ set(
+ $current,
+ "value",
+ lv_value_0_0,
+ "ModifierKind");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)
+ |(
+(
+ {
+ newCompositeNode(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0());
+ }
+ lv_redefines_1_0=ruleRedefinesRule {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
+ }
+ set(
+ $current,
+ "redefines",
+ lv_redefines_1_0,
+ "RedefinesRule");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)
+ |(
+(
+ {
+ newCompositeNode(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0());
+ }
+ lv_subsets_2_0=ruleSubsetsRule {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
+ }
+ set(
+ $current,
+ "subsets",
+ lv_subsets_2_0,
+ "SubsetsRule");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleRedefinesRule
+entryRuleRedefinesRule returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getRedefinesRuleRule()); }
+ iv_ruleRedefinesRule=ruleRedefinesRule
+ { $current=$iv_ruleRedefinesRule.current; }
+ EOF
+;
+
+// Rule RedefinesRule
+ruleRedefinesRule returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='redefines'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0());
+ }
+(
+(
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getRedefinesRuleRule());
+ }
+ }
+ otherlv_1=RULE_ID
+ {
+ newLeafNode(otherlv_1, grammarAccess.getRedefinesRuleAccess().getPropertyPropertyCrossReference_1_0());
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleSubsetsRule
+entryRuleSubsetsRule returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSubsetsRuleRule()); }
+ iv_ruleSubsetsRule=ruleSubsetsRule
+ { $current=$iv_ruleSubsetsRule.current; }
+ EOF
+;
+
+// Rule SubsetsRule
+ruleSubsetsRule returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='subsets'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0());
+ }
+(
+(
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getSubsetsRuleRule());
+ }
+ }
+ otherlv_1=RULE_ID
+ {
+ newLeafNode(otherlv_1, grammarAccess.getSubsetsRuleAccess().getPropertyPropertyCrossReference_1_0());
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleDefaultValueRule
+entryRuleDefaultValueRule returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getDefaultValueRuleRule()); }
+ iv_ruleDefaultValueRule=ruleDefaultValueRule
+ { $current=$iv_ruleDefaultValueRule.current; }
+ EOF
+;
+
+// Rule DefaultValueRule
+ruleDefaultValueRule returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='='
+ {
+ newLeafNode(otherlv_0, grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0());
+ }
+ lv_default_1_0=ruleValue {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getDefaultValueRuleRule());
+ }
+ set(
+ $current,
+ "default",
+ lv_default_1_0,
+ "Value");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleValue
+entryRuleValue returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getValueRule()); }
+ iv_ruleValue=ruleValue
+ { $current=$iv_ruleValue.current; }
+ EOF
+;
+
+// Rule Value
+ruleValue returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ newCompositeNode(grammarAccess.getValueAccess().getIntValueParserRuleCall_0());
+ }
+ this_IntValue_0=ruleIntValue
+ {
+ $current = $this_IntValue_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ newCompositeNode(grammarAccess.getValueAccess().getStringValueParserRuleCall_1());
+ }
+ this_StringValue_1=ruleStringValue
+ {
+ $current = $this_StringValue_1.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ newCompositeNode(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2());
+ }
+ this_BooleanValue_2=ruleBooleanValue
+ {
+ $current = $this_BooleanValue_2.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ newCompositeNode(grammarAccess.getValueAccess().getRealValueParserRuleCall_3());
+ }
+ this_RealValue_3=ruleRealValue
+ {
+ $current = $this_RealValue_3.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ newCompositeNode(grammarAccess.getValueAccess().getNullValueParserRuleCall_4());
+ }
+ this_NullValue_4=ruleNullValue
+ {
+ $current = $this_NullValue_4.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ newCompositeNode(grammarAccess.getValueAccess().getNoValueParserRuleCall_5());
+ }
+ this_NoValue_5=ruleNoValue
+ {
+ $current = $this_NoValue_5.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleIntValue
+entryRuleIntValue returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getIntValueRule()); }
+ iv_ruleIntValue=ruleIntValue
+ { $current=$iv_ruleIntValue.current; }
+ EOF
+;
+
+// Rule IntValue
+ruleIntValue returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ lv_literalInteger_0_0=RULE_INT
+ {
+ newLeafNode(lv_literalInteger_0_0, grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getIntValueRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "literalInteger",
+ lv_literalInteger_0_0,
+ "INT");
+ }
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleStringValue
+entryRuleStringValue returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getStringValueRule()); }
+ iv_ruleStringValue=ruleStringValue
+ { $current=$iv_ruleStringValue.current; }
+ EOF
+;
+
+// Rule StringValue
+ruleStringValue returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ lv_literalString_0_0=RULE_STRING
+ {
+ newLeafNode(lv_literalString_0_0, grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getStringValueRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "literalString",
+ lv_literalString_0_0,
+ "STRING");
+ }
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleBooleanValue
+entryRuleBooleanValue returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getBooleanValueRule()); }
+ iv_ruleBooleanValue=ruleBooleanValue
+ { $current=$iv_ruleBooleanValue.current; }
+ EOF
+;
+
+// Rule BooleanValue
+ruleBooleanValue returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ {
+ newCompositeNode(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0());
+ }
+ lv_literalBoolean_0_0=ruleBooleanLiterals {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getBooleanValueRule());
+ }
+ set(
+ $current,
+ "literalBoolean",
+ lv_literalBoolean_0_0,
+ "BooleanLiterals");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleRealValue
+entryRuleRealValue returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getRealValueRule()); }
+ iv_ruleRealValue=ruleRealValue
+ { $current=$iv_ruleRealValue.current; }
+ EOF
+;
+
+// Rule RealValue
+ruleRealValue returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(((
+(
+ lv_integer_0_0=RULE_INT
+ {
+ newLeafNode(lv_integer_0_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getRealValueRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "integer",
+ lv_integer_0_0,
+ "INT");
+ }
+
+)
+) otherlv_1='.'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getRealValueAccess().getFullStopKeyword_0_1());
+ }
+)
+ |( otherlv_2='.'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getRealValueAccess().getFullStopKeyword_1_0());
+ }
+(
+(
+ lv_fraction_3_0=RULE_INT
+ {
+ newLeafNode(lv_fraction_3_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getRealValueRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "fraction",
+ lv_fraction_3_0,
+ "INT");
+ }
+
+)
+))
+ |((
+(
+ lv_integer_4_0=RULE_INT
+ {
+ newLeafNode(lv_integer_4_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getRealValueRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "integer",
+ lv_integer_4_0,
+ "INT");
+ }
+
+)
+) otherlv_5='.'
+ {
+ newLeafNode(otherlv_5, grammarAccess.getRealValueAccess().getFullStopKeyword_2_1());
+ }
+(
+(
+ lv_fraction_6_0=RULE_INT
+ {
+ newLeafNode(lv_fraction_6_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getRealValueRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "fraction",
+ lv_fraction_6_0,
+ "INT");
+ }
+
+)
+)))
+;
+
+
+
+
+
+// Entry rule entryRuleNullValue
+entryRuleNullValue returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getNullValueRule()); }
+ iv_ruleNullValue=ruleNullValue
+ { $current=$iv_ruleNullValue.current; }
+ EOF
+;
+
+// Rule NullValue
+ruleNullValue returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+ {
+ $current = forceCreateModelElement(
+ grammarAccess.getNullValueAccess().getNullValueAction_0(),
+ $current);
+ }
+) otherlv_1='null'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getNullValueAccess().getNullKeyword_1());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleNoValue
+entryRuleNoValue returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getNoValueRule()); }
+ iv_ruleNoValue=ruleNoValue
+ { $current=$iv_ruleNoValue.current; }
+ EOF
+;
+
+// Rule NoValue
+ruleNoValue returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+ {
+ $current = forceCreateModelElement(
+ grammarAccess.getNoValueAccess().getNoValueAction_0(),
+ $current);
+ }
+) otherlv_1='none'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getNoValueAccess().getNoneKeyword_1());
+ }
+)
+;
+
+
+
+
+
+// Rule VisibilityKind
+ruleVisibilityKind returns [Enumerator current=null]
+ @init { enterRule(); }
+ @after { leaveRule(); }:
+(( enumLiteral_0='+'
+ {
+ $current = grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_0, grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0());
+ }
+)
+ |( enumLiteral_1='-'
+ {
+ $current = grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_1, grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1());
+ }
+)
+ |( enumLiteral_2='#'
+ {
+ $current = grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_2, grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2());
+ }
+)
+ |( enumLiteral_3='~'
+ {
+ $current = grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_3, grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3());
+ }
+));
+
+
+
+// Rule ModifierKind
+ruleModifierKind returns [Enumerator current=null]
+ @init { enterRule(); }
+ @after { leaveRule(); }:
+(( enumLiteral_0='readOnly'
+ {
+ $current = grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_0, grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0());
+ }
+)
+ |( enumLiteral_1='union'
+ {
+ $current = grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_1, grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1());
+ }
+)
+ |( enumLiteral_2='ordered'
+ {
+ $current = grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_2, grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2());
+ }
+)
+ |( enumLiteral_3='unique'
+ {
+ $current = grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_3, grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3());
+ }
+));
+
+
+
+// Rule BooleanLiterals
+ruleBooleanLiterals returns [Enumerator current=null]
+ @init { enterRule(); }
+ @after { leaveRule(); }:
+(( enumLiteral_0='true'
+ {
+ $current = grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_0, grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0());
+ }
+)
+ |( enumLiteral_1='false'
+ {
+ $current = grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_1, grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1());
+ }
+));
+
+
+
+RULE_ID : (('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*|'\'' ( options {greedy=false;} : . )*'\'');
+
+RULE_STRING : '"' ('\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')|~(('\\'|'"')))* '"';
+
+RULE_ML_COMMENT : '/*' ~('@') ( options {greedy=false;} : . )*'*/';
+
+RULE_SL_COMMENT : '//' ~(('\n'|'\r'|'@'))* ('\r'? '\n')?;
+
+RULE_INT : ('0'..'9')+;
+
+RULE_INTEGER_VALUE : (('0'|'1'..'9' ('_'? '0'..'9')*)|('0b'|'0B') '0'..'1' ('_'? '0'..'1')*|('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F') ('_'? ('0'..'9'|'a'..'f'|'A'..'F'))*|'0' '_'? '0'..'7' ('_'? '0'..'7')*);
+
+RULE_WS : (' '|'\t'|'\r'|'\n')+;
+
+RULE_ANY_OTHER : .;
+
+
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlPropertyLexer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlPropertyLexer.java
index 9323756a544..b54e3bd66f1 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlPropertyLexer.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlPropertyLexer.java
@@ -1,2158 +1,2069 @@
-package org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal;
-
-// Hack: Use our own Lexer superclass by means of import.
-// Currently there is no other way to specify the superclass for the lexer.
-import org.eclipse.xtext.parser.antlr.Lexer;
-
-import org.antlr.runtime.*;
-
-@SuppressWarnings("all")
-public class InternalUmlPropertyLexer extends Lexer {
- public static final int RULE_ID = 4;
- public static final int T__29 = 29;
- public static final int T__28 = 28;
- public static final int T__27 = 27;
- public static final int T__26 = 26;
- public static final int T__25 = 25;
- public static final int T__24 = 24;
- public static final int T__23 = 23;
- public static final int T__22 = 22;
- public static final int RULE_ANY_OTHER = 11;
- public static final int T__21 = 21;
- public static final int T__20 = 20;
- public static final int RULE_INTEGER_VALUE = 9;
- public static final int EOF = -1;
- public static final int RULE_SL_COMMENT = 8;
- public static final int RULE_ML_COMMENT = 7;
- public static final int T__19 = 19;
- public static final int T__30 = 30;
- public static final int T__31 = 31;
- public static final int T__32 = 32;
- public static final int RULE_STRING = 6;
- public static final int T__16 = 16;
- public static final int T__33 = 33;
- public static final int T__15 = 15;
- public static final int T__34 = 34;
- public static final int T__18 = 18;
- public static final int T__35 = 35;
- public static final int T__17 = 17;
- public static final int T__36 = 36;
- public static final int T__12 = 12;
- public static final int T__37 = 37;
- public static final int T__38 = 38;
- public static final int T__14 = 14;
- public static final int T__13 = 13;
- public static final int RULE_INT = 5;
- public static final int RULE_WS = 10;
-
- // delegates
- // delegators
-
- public InternalUmlPropertyLexer() {
- ;
- }
-
- public InternalUmlPropertyLexer(CharStream input) {
- this(input, new RecognizerSharedState());
- }
-
- public InternalUmlPropertyLexer(CharStream input, RecognizerSharedState state) {
- super(input, state);
-
- }
-
- @Override
- public String getGrammarFileName() {
- return "../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g";
- }
-
- // $ANTLR start "T__12"
- public final void mT__12() throws RecognitionException {
- try {
- int _type = T__12;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:11:7: ( '/' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:11:9: '/'
- {
- match('/');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__12"
-
- // $ANTLR start "T__13"
- public final void mT__13() throws RecognitionException {
- try {
- int _type = T__13;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:12:7: ( ':' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:12:9: ':'
- {
- match(':');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__13"
-
- // $ANTLR start "T__14"
- public final void mT__14() throws RecognitionException {
- try {
- int _type = T__14;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:13:7: ( '<Undefined>' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:13:9: '<Undefined>'
- {
- match("<Undefined>");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__14"
-
- // $ANTLR start "T__15"
- public final void mT__15() throws RecognitionException {
- try {
- int _type = T__15;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:14:7: ( '::' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:14:9: '::'
- {
- match("::");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__15"
-
- // $ANTLR start "T__16"
- public final void mT__16() throws RecognitionException {
- try {
- int _type = T__16;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:15:7: ( '[' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:15:9: '['
- {
- match('[');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__16"
-
- // $ANTLR start "T__17"
- public final void mT__17() throws RecognitionException {
- try {
- int _type = T__17;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:16:7: ( '..' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:16:9: '..'
- {
- match("..");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__17"
-
- // $ANTLR start "T__18"
- public final void mT__18() throws RecognitionException {
- try {
- int _type = T__18;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:17:7: ( ']' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:17:9: ']'
- {
- match(']');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__18"
-
- // $ANTLR start "T__19"
- public final void mT__19() throws RecognitionException {
- try {
- int _type = T__19;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:18:7: ( '*' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:18:9: '*'
- {
- match('*');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__19"
-
- // $ANTLR start "T__20"
- public final void mT__20() throws RecognitionException {
- try {
- int _type = T__20;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:19:7: ( '{' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:19:9: '{'
- {
- match('{');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__20"
-
- // $ANTLR start "T__21"
- public final void mT__21() throws RecognitionException {
- try {
- int _type = T__21;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:20:7: ( ',' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:20:9: ','
- {
- match(',');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__21"
-
- // $ANTLR start "T__22"
- public final void mT__22() throws RecognitionException {
- try {
- int _type = T__22;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:21:7: ( '}' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:21:9: '}'
- {
- match('}');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__22"
-
- // $ANTLR start "T__23"
- public final void mT__23() throws RecognitionException {
- try {
- int _type = T__23;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:22:7: ( 'redefines' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:22:9: 'redefines'
- {
- match("redefines");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__23"
-
- // $ANTLR start "T__24"
- public final void mT__24() throws RecognitionException {
- try {
- int _type = T__24;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:23:7: ( 'subsets' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:23:9: 'subsets'
- {
- match("subsets");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__24"
-
- // $ANTLR start "T__25"
- public final void mT__25() throws RecognitionException {
- try {
- int _type = T__25;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:24:7: ( '=' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:24:9: '='
- {
- match('=');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__25"
-
- // $ANTLR start "T__26"
- public final void mT__26() throws RecognitionException {
- try {
- int _type = T__26;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:25:7: ( '.' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:25:9: '.'
- {
- match('.');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__26"
-
- // $ANTLR start "T__27"
- public final void mT__27() throws RecognitionException {
- try {
- int _type = T__27;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:26:7: ( 'null' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:26:9: 'null'
- {
- match("null");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__27"
-
- // $ANTLR start "T__28"
- public final void mT__28() throws RecognitionException {
- try {
- int _type = T__28;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:27:7: ( 'none' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:27:9: 'none'
- {
- match("none");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__28"
-
- // $ANTLR start "T__29"
- public final void mT__29() throws RecognitionException {
- try {
- int _type = T__29;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:28:7: ( '+' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:28:9: '+'
- {
- match('+');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__29"
-
- // $ANTLR start "T__30"
- public final void mT__30() throws RecognitionException {
- try {
- int _type = T__30;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:29:7: ( '-' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:29:9: '-'
- {
- match('-');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__30"
-
- // $ANTLR start "T__31"
- public final void mT__31() throws RecognitionException {
- try {
- int _type = T__31;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:30:7: ( '#' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:30:9: '#'
- {
- match('#');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__31"
-
- // $ANTLR start "T__32"
- public final void mT__32() throws RecognitionException {
- try {
- int _type = T__32;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:31:7: ( '~' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:31:9: '~'
- {
- match('~');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__32"
-
- // $ANTLR start "T__33"
- public final void mT__33() throws RecognitionException {
- try {
- int _type = T__33;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:32:7: ( 'readOnly' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:32:9: 'readOnly'
- {
- match("readOnly");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__33"
-
- // $ANTLR start "T__34"
- public final void mT__34() throws RecognitionException {
- try {
- int _type = T__34;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:33:7: ( 'union' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:33:9: 'union'
- {
- match("union");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__34"
-
- // $ANTLR start "T__35"
- public final void mT__35() throws RecognitionException {
- try {
- int _type = T__35;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:34:7: ( 'ordered' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:34:9: 'ordered'
- {
- match("ordered");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__35"
-
- // $ANTLR start "T__36"
- public final void mT__36() throws RecognitionException {
- try {
- int _type = T__36;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:35:7: ( 'unique' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:35:9: 'unique'
- {
- match("unique");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__36"
-
- // $ANTLR start "T__37"
- public final void mT__37() throws RecognitionException {
- try {
- int _type = T__37;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:36:7: ( 'true' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:36:9: 'true'
- {
- match("true");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__37"
-
- // $ANTLR start "T__38"
- public final void mT__38() throws RecognitionException {
- try {
- int _type = T__38;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:37:7: ( 'false' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:37:9: 'false'
- {
- match("false");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "T__38"
-
- // $ANTLR start "RULE_ID"
- public final void mRULE_ID() throws RecognitionException {
- try {
- int _type = RULE_ID;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1239:9: ( ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
- // | '\\'' ( options {greedy=false; } : . )* '\\'' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1239:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* |
- // '\\'' ( options {greedy=false; } : . )* '\\'' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1239:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9'
- // )* | '\\'' ( options {greedy=false; } : . )* '\\'' )
- int alt3 = 2;
- int LA3_0 = input.LA(1);
-
- if (((LA3_0 >= 'A' && LA3_0 <= 'Z') || LA3_0 == '_' || (LA3_0 >= 'a' && LA3_0 <= 'z'))) {
- alt3 = 1;
- }
- else if ((LA3_0 == '\'')) {
- alt3 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 3, 0, input);
-
- throw nvae;
- }
- switch (alt3) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1239:12: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
- {
- if ((input.LA(1) >= 'A' && input.LA(1) <= 'Z') || input.LA(1) == '_' || (input.LA(1) >= 'a' && input.LA(1) <= 'z')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1239:36: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
- loop1: do {
- int alt1 = 2;
- int LA1_0 = input.LA(1);
-
- if (((LA1_0 >= '0' && LA1_0 <= '9') || (LA1_0 >= 'A' && LA1_0 <= 'Z') || LA1_0 == '_' || (LA1_0 >= 'a' && LA1_0 <= 'z'))) {
- alt1 = 1;
- }
-
-
- switch (alt1) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:
- {
- if ((input.LA(1) >= '0' && input.LA(1) <= '9') || (input.LA(1) >= 'A' && input.LA(1) <= 'Z') || input.LA(1) == '_' || (input.LA(1) >= 'a' && input.LA(1) <= 'z')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- break loop1;
- }
- } while (true);
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1239:70: '\\'' ( options {greedy=false; } : . )* '\\''
- {
- match('\'');
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1239:75: ( options {greedy=false; } : . )*
- loop2: do {
- int alt2 = 2;
- int LA2_0 = input.LA(1);
-
- if ((LA2_0 == '\'')) {
- alt2 = 2;
- }
- else if (((LA2_0 >= '\u0000' && LA2_0 <= '&') || (LA2_0 >= '(' && LA2_0 <= '\uFFFF'))) {
- alt2 = 1;
- }
-
-
- switch (alt2) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1239:103: .
- {
- matchAny();
-
- }
- break;
-
- default:
- break loop2;
- }
- } while (true);
-
- match('\'');
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_ID"
-
- // $ANTLR start "RULE_STRING"
- public final void mRULE_STRING() throws RecognitionException {
- try {
- int _type = RULE_STRING;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1241:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( (
- // '\\\\' | '\"' ) ) )* '\"' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1241:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\'
- // | '\"' ) ) )* '\"'
- {
- match('\"');
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1241:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' |
- // '\"' ) ) )*
- loop4: do {
- int alt4 = 3;
- int LA4_0 = input.LA(1);
-
- if ((LA4_0 == '\\')) {
- alt4 = 1;
- }
- else if (((LA4_0 >= '\u0000' && LA4_0 <= '!') || (LA4_0 >= '#' && LA4_0 <= '[') || (LA4_0 >= ']' && LA4_0 <= '\uFFFF'))) {
- alt4 = 2;
- }
-
-
- switch (alt4) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1241:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
- {
- match('\\');
- if (input.LA(1) == '\"' || input.LA(1) == '\'' || input.LA(1) == '\\' || input.LA(1) == 'b' || input.LA(1) == 'f' || input.LA(1) == 'n' || input.LA(1) == 'r' || input.LA(1) == 't') {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1241:61: ~ ( ( '\\\\' | '\"' ) )
- {
- if ((input.LA(1) >= '\u0000' && input.LA(1) <= '!') || (input.LA(1) >= '#' && input.LA(1) <= '[') || (input.LA(1) >= ']' && input.LA(1) <= '\uFFFF')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- break loop4;
- }
- } while (true);
-
- match('\"');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_STRING"
-
- // $ANTLR start "RULE_ML_COMMENT"
- public final void mRULE_ML_COMMENT() throws RecognitionException {
- try {
- int _type = RULE_ML_COMMENT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1243:17: ( '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1243:19: '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/'
- {
- match("/*");
-
- if ((input.LA(1) >= '\u0000' && input.LA(1) <= '?') || (input.LA(1) >= 'A' && input.LA(1) <= '\uFFFF')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1243:31: ( options {greedy=false; } : . )*
- loop5: do {
- int alt5 = 2;
- int LA5_0 = input.LA(1);
-
- if ((LA5_0 == '*')) {
- int LA5_1 = input.LA(2);
-
- if ((LA5_1 == '/')) {
- alt5 = 2;
- }
- else if (((LA5_1 >= '\u0000' && LA5_1 <= '.') || (LA5_1 >= '0' && LA5_1 <= '\uFFFF'))) {
- alt5 = 1;
- }
-
-
- }
- else if (((LA5_0 >= '\u0000' && LA5_0 <= ')') || (LA5_0 >= '+' && LA5_0 <= '\uFFFF'))) {
- alt5 = 1;
- }
-
-
- switch (alt5) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1243:59: .
- {
- matchAny();
-
- }
- break;
-
- default:
- break loop5;
- }
- } while (true);
-
- match("*/");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_ML_COMMENT"
-
- // $ANTLR start "RULE_SL_COMMENT"
- public final void mRULE_SL_COMMENT() throws RecognitionException {
- try {
- int _type = RULE_SL_COMMENT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1245:17: ( '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1245:19: '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )?
- {
- match("//");
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1245:24: (~ ( ( '\\n' | '\\r' | '@' ) ) )*
- loop6: do {
- int alt6 = 2;
- int LA6_0 = input.LA(1);
-
- if (((LA6_0 >= '\u0000' && LA6_0 <= '\t') || (LA6_0 >= '\u000B' && LA6_0 <= '\f') || (LA6_0 >= '\u000E' && LA6_0 <= '?') || (LA6_0 >= 'A' && LA6_0 <= '\uFFFF'))) {
- alt6 = 1;
- }
-
-
- switch (alt6) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1245:24: ~ ( ( '\\n' | '\\r' | '@' ) )
- {
- if ((input.LA(1) >= '\u0000' && input.LA(1) <= '\t') || (input.LA(1) >= '\u000B' && input.LA(1) <= '\f') || (input.LA(1) >= '\u000E' && input.LA(1) <= '?') || (input.LA(1) >= 'A' && input.LA(1) <= '\uFFFF')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- break loop6;
- }
- } while (true);
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1245:44: ( ( '\\r' )? '\\n' )?
- int alt8 = 2;
- int LA8_0 = input.LA(1);
-
- if ((LA8_0 == '\n' || LA8_0 == '\r')) {
- alt8 = 1;
- }
- switch (alt8) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1245:45: ( '\\r' )? '\\n'
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1245:45: ( '\\r' )?
- int alt7 = 2;
- int LA7_0 = input.LA(1);
-
- if ((LA7_0 == '\r')) {
- alt7 = 1;
- }
- switch (alt7) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1245:45: '\\r'
- {
- match('\r');
-
- }
- break;
-
- }
-
- match('\n');
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_SL_COMMENT"
-
- // $ANTLR start "RULE_INT"
- public final void mRULE_INT() throws RecognitionException {
- try {
- int _type = RULE_INT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1247:10: ( ( '0' .. '9' )+ )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1247:12: ( '0' .. '9' )+
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1247:12: ( '0' .. '9' )+
- int cnt9 = 0;
- loop9: do {
- int alt9 = 2;
- int LA9_0 = input.LA(1);
-
- if (((LA9_0 >= '0' && LA9_0 <= '9'))) {
- alt9 = 1;
- }
-
-
- switch (alt9) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1247:13: '0' .. '9'
- {
- matchRange('0', '9');
-
- }
- break;
-
- default:
- if (cnt9 >= 1) {
- break loop9;
- }
- EarlyExitException eee =
- new EarlyExitException(9, input);
- throw eee;
- }
- cnt9++;
- } while (true);
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_INT"
-
- // $ANTLR start "RULE_INTEGER_VALUE"
- public final void mRULE_INTEGER_VALUE() throws RecognitionException {
- try {
- int _type = RULE_INTEGER_VALUE;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:20: ( ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( (
- // '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_'
- // )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( (
- // '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
- int alt22 = 4;
- int LA22_0 = input.LA(1);
-
- if ((LA22_0 == '0')) {
- switch (input.LA(2)) {
- case 'B':
- case 'b': {
- alt22 = 2;
- }
- break;
- case 'X':
- case 'x': {
- alt22 = 3;
- }
- break;
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '_': {
- alt22 = 4;
- }
- break;
- default:
- alt22 = 1;
- }
-
- }
- else if (((LA22_0 >= '1' && LA22_0 <= '9'))) {
- alt22 = 1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 22, 0, input);
-
- throw nvae;
- }
- switch (alt22) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
- int alt12 = 2;
- int LA12_0 = input.LA(1);
-
- if ((LA12_0 == '0')) {
- alt12 = 1;
- }
- else if (((LA12_0 >= '1' && LA12_0 <= '9'))) {
- alt12 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 12, 0, input);
-
- throw nvae;
- }
- switch (alt12) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:24: '0'
- {
- match('0');
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:28: '1' .. '9' ( ( '_' )? '0' .. '9' )*
- {
- matchRange('1', '9');
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:37: ( ( '_' )? '0' .. '9' )*
- loop11: do {
- int alt11 = 2;
- int LA11_0 = input.LA(1);
-
- if (((LA11_0 >= '0' && LA11_0 <= '9') || LA11_0 == '_')) {
- alt11 = 1;
- }
-
-
- switch (alt11) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:38: ( '_' )? '0' .. '9'
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:38: ( '_' )?
- int alt10 = 2;
- int LA10_0 = input.LA(1);
-
- if ((LA10_0 == '_')) {
- alt10 = 1;
- }
- switch (alt10) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:38: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0', '9');
-
- }
- break;
-
- default:
- break loop11;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:55: ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )*
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:55: ( '0b' | '0B' )
- int alt13 = 2;
- int LA13_0 = input.LA(1);
-
- if ((LA13_0 == '0')) {
- int LA13_1 = input.LA(2);
-
- if ((LA13_1 == 'b')) {
- alt13 = 1;
- }
- else if ((LA13_1 == 'B')) {
- alt13 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 13, 1, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 13, 0, input);
-
- throw nvae;
- }
- switch (alt13) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:56: '0b'
- {
- match("0b");
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:61: '0B'
- {
- match("0B");
-
-
- }
- break;
-
- }
-
- matchRange('0', '1');
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:76: ( ( '_' )? '0' .. '1' )*
- loop15: do {
- int alt15 = 2;
- int LA15_0 = input.LA(1);
-
- if (((LA15_0 >= '0' && LA15_0 <= '1') || LA15_0 == '_')) {
- alt15 = 1;
- }
-
-
- switch (alt15) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:77: ( '_' )? '0' .. '1'
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:77: ( '_' )?
- int alt14 = 2;
- int LA14_0 = input.LA(1);
-
- if ((LA14_0 == '_')) {
- alt14 = 1;
- }
- switch (alt14) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:77: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0', '1');
-
- }
- break;
-
- default:
- break loop15;
- }
- } while (true);
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:93: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9'
- // | 'a' .. 'f' | 'A' .. 'F' ) )*
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:93: ( '0x' | '0X' )
- int alt16 = 2;
- int LA16_0 = input.LA(1);
-
- if ((LA16_0 == '0')) {
- int LA16_1 = input.LA(2);
-
- if ((LA16_1 == 'x')) {
- alt16 = 1;
- }
- else if ((LA16_1 == 'X')) {
- alt16 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 16, 1, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 16, 0, input);
-
- throw nvae;
- }
- switch (alt16) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:94: '0x'
- {
- match("0x");
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:99: '0X'
- {
- match("0X");
-
-
- }
- break;
-
- }
-
- if ((input.LA(1) >= '0' && input.LA(1) <= '9') || (input.LA(1) >= 'A' && input.LA(1) <= 'F') || (input.LA(1) >= 'a' && input.LA(1) <= 'f')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:134: ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
- loop18: do {
- int alt18 = 2;
- int LA18_0 = input.LA(1);
-
- if (((LA18_0 >= '0' && LA18_0 <= '9') || (LA18_0 >= 'A' && LA18_0 <= 'F') || LA18_0 == '_' || (LA18_0 >= 'a' && LA18_0 <= 'f'))) {
- alt18 = 1;
- }
-
-
- switch (alt18) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:135: ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:135: ( '_' )?
- int alt17 = 2;
- int LA17_0 = input.LA(1);
-
- if ((LA17_0 == '_')) {
- alt17 = 1;
- }
- switch (alt17) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:135: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- if ((input.LA(1) >= '0' && input.LA(1) <= '9') || (input.LA(1) >= 'A' && input.LA(1) <= 'F') || (input.LA(1) >= 'a' && input.LA(1) <= 'f')) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- break loop18;
- }
- } while (true);
-
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:171: '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )*
- {
- match('0');
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:175: ( '_' )?
- int alt19 = 2;
- int LA19_0 = input.LA(1);
-
- if ((LA19_0 == '_')) {
- alt19 = 1;
- }
- switch (alt19) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:175: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0', '7');
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:189: ( ( '_' )? '0' .. '7' )*
- loop21: do {
- int alt21 = 2;
- int LA21_0 = input.LA(1);
-
- if (((LA21_0 >= '0' && LA21_0 <= '7') || LA21_0 == '_')) {
- alt21 = 1;
- }
-
-
- switch (alt21) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:190: ( '_' )? '0' .. '7'
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:190: ( '_' )?
- int alt20 = 2;
- int LA20_0 = input.LA(1);
-
- if ((LA20_0 == '_')) {
- alt20 = 1;
- }
- switch (alt20) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1249:190: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0', '7');
-
- }
- break;
-
- default:
- break loop21;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_INTEGER_VALUE"
-
- // $ANTLR start "RULE_WS"
- public final void mRULE_WS() throws RecognitionException {
- try {
- int _type = RULE_WS;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1251:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1251:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1251:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
- int cnt23 = 0;
- loop23: do {
- int alt23 = 2;
- int LA23_0 = input.LA(1);
-
- if (((LA23_0 >= '\t' && LA23_0 <= '\n') || LA23_0 == '\r' || LA23_0 == ' ')) {
- alt23 = 1;
- }
-
-
- switch (alt23) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:
- {
- if ((input.LA(1) >= '\t' && input.LA(1) <= '\n') || input.LA(1) == '\r' || input.LA(1) == ' ') {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null, input);
- recover(mse);
- throw mse;
- }
-
-
- }
- break;
-
- default:
- if (cnt23 >= 1) {
- break loop23;
- }
- EarlyExitException eee =
- new EarlyExitException(23, input);
- throw eee;
- }
- cnt23++;
- } while (true);
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_WS"
-
- // $ANTLR start "RULE_ANY_OTHER"
- public final void mRULE_ANY_OTHER() throws RecognitionException {
- try {
- int _type = RULE_ANY_OTHER;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1253:16: ( . )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1253:18: .
- {
- matchAny();
-
- }
-
- state.type = _type;
- state.channel = _channel;
- } finally {
- }
- }
-
- // $ANTLR end "RULE_ANY_OTHER"
-
- @Override
- public void mTokens() throws RecognitionException {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 |
- // T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER )
- int alt24 = 35;
- alt24 = dfa24.predict(input);
- switch (alt24) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:10: T__12
- {
- mT__12();
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:16: T__13
- {
- mT__13();
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:22: T__14
- {
- mT__14();
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:28: T__15
- {
- mT__15();
-
- }
- break;
- case 5:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:34: T__16
- {
- mT__16();
-
- }
- break;
- case 6:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:40: T__17
- {
- mT__17();
-
- }
- break;
- case 7:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:46: T__18
- {
- mT__18();
-
- }
- break;
- case 8:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:52: T__19
- {
- mT__19();
-
- }
- break;
- case 9:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:58: T__20
- {
- mT__20();
-
- }
- break;
- case 10:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:64: T__21
- {
- mT__21();
-
- }
- break;
- case 11:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:70: T__22
- {
- mT__22();
-
- }
- break;
- case 12:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:76: T__23
- {
- mT__23();
-
- }
- break;
- case 13:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:82: T__24
- {
- mT__24();
-
- }
- break;
- case 14:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:88: T__25
- {
- mT__25();
-
- }
- break;
- case 15:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:94: T__26
- {
- mT__26();
-
- }
- break;
- case 16:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:100: T__27
- {
- mT__27();
-
- }
- break;
- case 17:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:106: T__28
- {
- mT__28();
-
- }
- break;
- case 18:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:112: T__29
- {
- mT__29();
-
- }
- break;
- case 19:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:118: T__30
- {
- mT__30();
-
- }
- break;
- case 20:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:124: T__31
- {
- mT__31();
-
- }
- break;
- case 21:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:130: T__32
- {
- mT__32();
-
- }
- break;
- case 22:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:136: T__33
- {
- mT__33();
-
- }
- break;
- case 23:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:142: T__34
- {
- mT__34();
-
- }
- break;
- case 24:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:148: T__35
- {
- mT__35();
-
- }
- break;
- case 25:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:154: T__36
- {
- mT__36();
-
- }
- break;
- case 26:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:160: T__37
- {
- mT__37();
-
- }
- break;
- case 27:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:166: T__38
- {
- mT__38();
-
- }
- break;
- case 28:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:172: RULE_ID
- {
- mRULE_ID();
-
- }
- break;
- case 29:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:180: RULE_STRING
- {
- mRULE_STRING();
-
- }
- break;
- case 30:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:192: RULE_ML_COMMENT
- {
- mRULE_ML_COMMENT();
-
- }
- break;
- case 31:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:208: RULE_SL_COMMENT
- {
- mRULE_SL_COMMENT();
-
- }
- break;
- case 32:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:224: RULE_INT
- {
- mRULE_INT();
-
- }
- break;
- case 33:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:233: RULE_INTEGER_VALUE
- {
- mRULE_INTEGER_VALUE();
-
- }
- break;
- case 34:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:252: RULE_WS
- {
- mRULE_WS();
-
- }
- break;
- case 35:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:260: RULE_ANY_OTHER
- {
- mRULE_ANY_OTHER();
-
- }
- break;
-
- }
-
- }
-
-
- protected DFA24 dfa24 = new DFA24(this);
- static final String DFA24_eotS =
- "\1\uffff\1\40\1\42\1\35\1\uffff\1\46\5\uffff\2\55\1\uffff\1\55" +
- "\4\uffff\4\55\1\uffff\2\35\2\75\20\uffff\1\55\1\uffff\1\55\1\uffff" +
- "\2\55\4\uffff\4\55\2\uffff\1\75\1\uffff\1\75\1\uffff\11\55\1\75" +
- "\3\55\1\127\1\130\3\55\1\134\4\55\2\uffff\1\141\2\55\1\uffff\1\144" +
- "\3\55\1\uffff\1\150\1\55\1\uffff\2\55\1\154\1\uffff\1\155\1\55\1" +
- "\157\2\uffff\1\160\2\uffff";
- static final String DFA24_eofS =
- "\161\uffff";
- static final String DFA24_minS =
- "\1\0\1\52\1\72\1\125\1\uffff\1\56\5\uffff\1\145\1\165\1\uffff\1" +
- "\157\4\uffff\1\156\2\162\1\141\1\uffff\2\0\2\60\20\uffff\1\141\1" +
- "\uffff\1\142\1\uffff\1\154\1\156\4\uffff\1\151\1\144\1\165\1\154" +
- "\2\uffff\1\60\1\uffff\1\60\1\uffff\1\145\1\144\1\163\1\154\1\145" +
- "\1\157\2\145\1\163\1\60\1\146\1\117\1\145\2\60\1\156\1\165\1\162" +
- "\1\60\1\145\1\151\1\156\1\164\2\uffff\1\60\2\145\1\uffff\1\60\1" +
- "\156\1\154\1\163\1\uffff\1\60\1\144\1\uffff\1\145\1\171\1\60\1\uffff" +
- "\1\60\1\163\1\60\2\uffff\1\60\2\uffff";
- static final String DFA24_maxS =
- "\1\uffff\1\57\1\72\1\125\1\uffff\1\56\5\uffff\1\145\1\165\1\uffff" +
- "\1\165\4\uffff\1\156\2\162\1\141\1\uffff\2\uffff\1\170\1\137\20" +
- "\uffff\1\144\1\uffff\1\142\1\uffff\1\154\1\156\4\uffff\1\151\1\144" +
- "\1\165\1\154\2\uffff\1\137\1\uffff\1\137\1\uffff\1\145\1\144\1\163" +
- "\1\154\1\145\1\161\2\145\1\163\1\137\1\146\1\117\1\145\2\172\1\156" +
- "\1\165\1\162\1\172\1\145\1\151\1\156\1\164\2\uffff\1\172\2\145\1" +
- "\uffff\1\172\1\156\1\154\1\163\1\uffff\1\172\1\144\1\uffff\1\145" +
- "\1\171\1\172\1\uffff\1\172\1\163\1\172\2\uffff\1\172\2\uffff";
- static final String DFA24_acceptS =
- "\4\uffff\1\5\1\uffff\1\7\1\10\1\11\1\12\1\13\2\uffff\1\16\1\uffff" +
- "\1\22\1\23\1\24\1\25\4\uffff\1\34\4\uffff\1\42\1\43\1\36\1\37\1" +
- "\1\1\4\1\2\1\3\1\5\1\6\1\17\1\7\1\10\1\11\1\12\1\13\1\uffff\1\34" +
- "\1\uffff\1\16\2\uffff\1\22\1\23\1\24\1\25\4\uffff\1\35\1\41\1\uffff" +
- "\1\40\1\uffff\1\42\27\uffff\1\20\1\21\3\uffff\1\32\4\uffff\1\27" +
- "\2\uffff\1\33\3\uffff\1\31\3\uffff\1\15\1\30\1\uffff\1\26\1\14";
- static final String DFA24_specialS =
- "\1\0\27\uffff\1\1\1\2\127\uffff}>";
- static final String[] DFA24_transitionS = {
- "\11\35\2\34\2\35\1\34\22\35\1\34\1\35\1\31\1\21\3\35\1\30\2" +
- "\35\1\7\1\17\1\11\1\20\1\5\1\1\1\32\11\33\1\2\1\35\1\3\1\15" +
- "\3\35\32\27\1\4\1\35\1\6\1\35\1\27\1\35\5\27\1\26\7\27\1\16" +
- "\1\24\2\27\1\13\1\14\1\25\1\23\5\27\1\10\1\35\1\12\1\22\uff81" +
- "\35",
- "\1\36\4\uffff\1\37",
- "\1\41",
- "\1\43",
- "",
- "\1\45",
- "",
- "",
- "",
- "",
- "",
- "\1\54",
- "\1\56",
- "",
- "\1\61\5\uffff\1\60",
- "",
- "",
- "",
- "",
- "\1\66",
- "\1\67",
- "\1\70",
- "\1\71",
- "",
- "\0\55",
- "\0\72",
- "\10\74\12\uffff\1\73\25\uffff\1\73\6\uffff\1\73\2\uffff\1" +
- "\73\25\uffff\1\73",
- "\12\76\45\uffff\1\73",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "\1\101\2\uffff\1\100",
- "",
- "\1\102",
- "",
- "\1\103",
- "\1\104",
- "",
- "",
- "",
- "",
- "\1\105",
- "\1\106",
- "\1\107",
- "\1\110",
- "",
- "",
- "\10\111\47\uffff\1\73",
- "",
- "\12\76\45\uffff\1\73",
- "",
- "\1\112",
- "\1\113",
- "\1\114",
- "\1\115",
- "\1\116",
- "\1\117\1\uffff\1\120",
- "\1\121",
- "\1\122",
- "\1\123",
- "\10\111\47\uffff\1\73",
- "\1\124",
- "\1\125",
- "\1\126",
- "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
- "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
- "\1\131",
- "\1\132",
- "\1\133",
- "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
- "\1\135",
- "\1\136",
- "\1\137",
- "\1\140",
- "",
- "",
- "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
- "\1\142",
- "\1\143",
- "",
- "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
- "\1\145",
- "\1\146",
- "\1\147",
- "",
- "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
- "\1\151",
- "",
- "\1\152",
- "\1\153",
- "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
- "",
- "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
- "\1\156",
- "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
- "",
- "",
- "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
- "",
- ""
- };
-
- static final short[] DFA24_eot = DFA.unpackEncodedString(DFA24_eotS);
- static final short[] DFA24_eof = DFA.unpackEncodedString(DFA24_eofS);
- static final char[] DFA24_min = DFA.unpackEncodedStringToUnsignedChars(DFA24_minS);
- static final char[] DFA24_max = DFA.unpackEncodedStringToUnsignedChars(DFA24_maxS);
- static final short[] DFA24_accept = DFA.unpackEncodedString(DFA24_acceptS);
- static final short[] DFA24_special = DFA.unpackEncodedString(DFA24_specialS);
- static final short[][] DFA24_transition;
-
- static {
- int numStates = DFA24_transitionS.length;
- DFA24_transition = new short[numStates][];
- for (int i = 0; i < numStates; i++) {
- DFA24_transition[i] = DFA.unpackEncodedString(DFA24_transitionS[i]);
- }
- }
-
- class DFA24 extends DFA {
-
- public DFA24(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 24;
- this.eot = DFA24_eot;
- this.eof = DFA24_eof;
- this.min = DFA24_min;
- this.max = DFA24_max;
- this.accept = DFA24_accept;
- this.special = DFA24_special;
- this.transition = DFA24_transition;
- }
-
- @Override
- public String getDescription() {
- return "1:1: Tokens : ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER );";
- }
-
- @Override
- public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
- IntStream input = _input;
- int _s = s;
- switch (s) {
- case 0:
- int LA24_0 = input.LA(1);
-
- s = -1;
- if ((LA24_0 == '/')) {
- s = 1;
- }
-
- else if ((LA24_0 == ':')) {
- s = 2;
- }
-
- else if ((LA24_0 == '<')) {
- s = 3;
- }
-
- else if ((LA24_0 == '[')) {
- s = 4;
- }
-
- else if ((LA24_0 == '.')) {
- s = 5;
- }
-
- else if ((LA24_0 == ']')) {
- s = 6;
- }
-
- else if ((LA24_0 == '*')) {
- s = 7;
- }
-
- else if ((LA24_0 == '{')) {
- s = 8;
- }
-
- else if ((LA24_0 == ',')) {
- s = 9;
- }
-
- else if ((LA24_0 == '}')) {
- s = 10;
- }
-
- else if ((LA24_0 == 'r')) {
- s = 11;
- }
-
- else if ((LA24_0 == 's')) {
- s = 12;
- }
-
- else if ((LA24_0 == '=')) {
- s = 13;
- }
-
- else if ((LA24_0 == 'n')) {
- s = 14;
- }
-
- else if ((LA24_0 == '+')) {
- s = 15;
- }
-
- else if ((LA24_0 == '-')) {
- s = 16;
- }
-
- else if ((LA24_0 == '#')) {
- s = 17;
- }
-
- else if ((LA24_0 == '~')) {
- s = 18;
- }
-
- else if ((LA24_0 == 'u')) {
- s = 19;
- }
-
- else if ((LA24_0 == 'o')) {
- s = 20;
- }
-
- else if ((LA24_0 == 't')) {
- s = 21;
- }
-
- else if ((LA24_0 == 'f')) {
- s = 22;
- }
-
- else if (((LA24_0 >= 'A' && LA24_0 <= 'Z') || LA24_0 == '_' || (LA24_0 >= 'a' && LA24_0 <= 'e') || (LA24_0 >= 'g' && LA24_0 <= 'm') || (LA24_0 >= 'p' && LA24_0 <= 'q') || (LA24_0 >= 'v' && LA24_0 <= 'z'))) {
- s = 23;
- }
-
- else if ((LA24_0 == '\'')) {
- s = 24;
- }
-
- else if ((LA24_0 == '\"')) {
- s = 25;
- }
-
- else if ((LA24_0 == '0')) {
- s = 26;
- }
-
- else if (((LA24_0 >= '1' && LA24_0 <= '9'))) {
- s = 27;
- }
-
- else if (((LA24_0 >= '\t' && LA24_0 <= '\n') || LA24_0 == '\r' || LA24_0 == ' ')) {
- s = 28;
- }
-
- else if (((LA24_0 >= '\u0000' && LA24_0 <= '\b') || (LA24_0 >= '\u000B' && LA24_0 <= '\f') || (LA24_0 >= '\u000E' && LA24_0 <= '\u001F') || LA24_0 == '!' || (LA24_0 >= '$' && LA24_0 <= '&') || (LA24_0 >= '(' && LA24_0 <= ')') || LA24_0 == ';'
- || (LA24_0 >= '>' && LA24_0 <= '@') || LA24_0 == '\\' || LA24_0 == '^' || LA24_0 == '`' || LA24_0 == '|' || (LA24_0 >= '\u007F' && LA24_0 <= '\uFFFF'))) {
- s = 29;
- }
-
- if (s >= 0) {
- return s;
- }
- break;
- case 1:
- int LA24_24 = input.LA(1);
-
- s = -1;
- if (((LA24_24 >= '\u0000' && LA24_24 <= '\uFFFF'))) {
- s = 45;
- } else {
- s = 29;
- }
-
- if (s >= 0) {
- return s;
- }
- break;
- case 2:
- int LA24_25 = input.LA(1);
-
- s = -1;
- if (((LA24_25 >= '\u0000' && LA24_25 <= '\uFFFF'))) {
- s = 58;
- } else {
- s = 29;
- }
-
- if (s >= 0) {
- return s;
- }
- break;
- }
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 24, _s, input);
- error(nvae);
- throw nvae;
- }
- }
-
-
+package org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal;
+
+// Hack: Use our own Lexer superclass by means of import.
+// Currently there is no other way to specify the superclass for the lexer.
+import org.eclipse.xtext.parser.antlr.Lexer;
+
+
+import org.antlr.runtime.*;
+import java.util.Stack;
+import java.util.List;
+import java.util.ArrayList;
+
+@SuppressWarnings("all")
+public class InternalUmlPropertyLexer extends Lexer {
+ public static final int RULE_ID=4;
+ public static final int T__29=29;
+ public static final int T__28=28;
+ public static final int T__27=27;
+ public static final int T__26=26;
+ public static final int T__25=25;
+ public static final int T__24=24;
+ public static final int T__23=23;
+ public static final int T__22=22;
+ public static final int RULE_ANY_OTHER=11;
+ public static final int T__21=21;
+ public static final int T__20=20;
+ public static final int RULE_INTEGER_VALUE=9;
+ public static final int EOF=-1;
+ public static final int RULE_SL_COMMENT=8;
+ public static final int RULE_ML_COMMENT=7;
+ public static final int T__19=19;
+ public static final int T__30=30;
+ public static final int T__31=31;
+ public static final int T__32=32;
+ public static final int RULE_STRING=6;
+ public static final int T__16=16;
+ public static final int T__33=33;
+ public static final int T__15=15;
+ public static final int T__34=34;
+ public static final int T__18=18;
+ public static final int T__35=35;
+ public static final int T__17=17;
+ public static final int T__36=36;
+ public static final int T__12=12;
+ public static final int T__37=37;
+ public static final int T__38=38;
+ public static final int T__14=14;
+ public static final int T__13=13;
+ public static final int RULE_INT=5;
+ public static final int RULE_WS=10;
+
+ // delegates
+ // delegators
+
+ public InternalUmlPropertyLexer() {;}
+ public InternalUmlPropertyLexer(CharStream input) {
+ this(input, new RecognizerSharedState());
+ }
+ public InternalUmlPropertyLexer(CharStream input, RecognizerSharedState state) {
+ super(input,state);
+
+ }
+ public String getGrammarFileName() { return "../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g"; }
+
+ // $ANTLR start "T__12"
+ public final void mT__12() throws RecognitionException {
+ try {
+ int _type = T__12;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:11:7: ( '/' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:11:9: '/'
+ {
+ match('/');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__12"
+
+ // $ANTLR start "T__13"
+ public final void mT__13() throws RecognitionException {
+ try {
+ int _type = T__13;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:12:7: ( ':' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:12:9: ':'
+ {
+ match(':');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__13"
+
+ // $ANTLR start "T__14"
+ public final void mT__14() throws RecognitionException {
+ try {
+ int _type = T__14;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:13:7: ( '<Undefined>' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:13:9: '<Undefined>'
+ {
+ match("<Undefined>");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__14"
+
+ // $ANTLR start "T__15"
+ public final void mT__15() throws RecognitionException {
+ try {
+ int _type = T__15;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:14:7: ( '::' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:14:9: '::'
+ {
+ match("::");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__15"
+
+ // $ANTLR start "T__16"
+ public final void mT__16() throws RecognitionException {
+ try {
+ int _type = T__16;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:15:7: ( '[' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:15:9: '['
+ {
+ match('[');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__16"
+
+ // $ANTLR start "T__17"
+ public final void mT__17() throws RecognitionException {
+ try {
+ int _type = T__17;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:16:7: ( '..' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:16:9: '..'
+ {
+ match("..");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__17"
+
+ // $ANTLR start "T__18"
+ public final void mT__18() throws RecognitionException {
+ try {
+ int _type = T__18;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:17:7: ( ']' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:17:9: ']'
+ {
+ match(']');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__18"
+
+ // $ANTLR start "T__19"
+ public final void mT__19() throws RecognitionException {
+ try {
+ int _type = T__19;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:18:7: ( '*' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:18:9: '*'
+ {
+ match('*');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__19"
+
+ // $ANTLR start "T__20"
+ public final void mT__20() throws RecognitionException {
+ try {
+ int _type = T__20;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:19:7: ( '{' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:19:9: '{'
+ {
+ match('{');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__20"
+
+ // $ANTLR start "T__21"
+ public final void mT__21() throws RecognitionException {
+ try {
+ int _type = T__21;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:20:7: ( ',' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:20:9: ','
+ {
+ match(',');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__21"
+
+ // $ANTLR start "T__22"
+ public final void mT__22() throws RecognitionException {
+ try {
+ int _type = T__22;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:21:7: ( '}' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:21:9: '}'
+ {
+ match('}');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__22"
+
+ // $ANTLR start "T__23"
+ public final void mT__23() throws RecognitionException {
+ try {
+ int _type = T__23;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:22:7: ( 'redefines' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:22:9: 'redefines'
+ {
+ match("redefines");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__23"
+
+ // $ANTLR start "T__24"
+ public final void mT__24() throws RecognitionException {
+ try {
+ int _type = T__24;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:23:7: ( 'subsets' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:23:9: 'subsets'
+ {
+ match("subsets");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__24"
+
+ // $ANTLR start "T__25"
+ public final void mT__25() throws RecognitionException {
+ try {
+ int _type = T__25;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:24:7: ( '=' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:24:9: '='
+ {
+ match('=');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__25"
+
+ // $ANTLR start "T__26"
+ public final void mT__26() throws RecognitionException {
+ try {
+ int _type = T__26;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:25:7: ( '.' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:25:9: '.'
+ {
+ match('.');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__26"
+
+ // $ANTLR start "T__27"
+ public final void mT__27() throws RecognitionException {
+ try {
+ int _type = T__27;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:26:7: ( 'null' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:26:9: 'null'
+ {
+ match("null");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__27"
+
+ // $ANTLR start "T__28"
+ public final void mT__28() throws RecognitionException {
+ try {
+ int _type = T__28;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:27:7: ( 'none' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:27:9: 'none'
+ {
+ match("none");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__28"
+
+ // $ANTLR start "T__29"
+ public final void mT__29() throws RecognitionException {
+ try {
+ int _type = T__29;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:28:7: ( '+' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:28:9: '+'
+ {
+ match('+');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__29"
+
+ // $ANTLR start "T__30"
+ public final void mT__30() throws RecognitionException {
+ try {
+ int _type = T__30;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:29:7: ( '-' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:29:9: '-'
+ {
+ match('-');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__30"
+
+ // $ANTLR start "T__31"
+ public final void mT__31() throws RecognitionException {
+ try {
+ int _type = T__31;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:30:7: ( '#' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:30:9: '#'
+ {
+ match('#');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__31"
+
+ // $ANTLR start "T__32"
+ public final void mT__32() throws RecognitionException {
+ try {
+ int _type = T__32;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:31:7: ( '~' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:31:9: '~'
+ {
+ match('~');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__32"
+
+ // $ANTLR start "T__33"
+ public final void mT__33() throws RecognitionException {
+ try {
+ int _type = T__33;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:32:7: ( 'readOnly' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:32:9: 'readOnly'
+ {
+ match("readOnly");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__33"
+
+ // $ANTLR start "T__34"
+ public final void mT__34() throws RecognitionException {
+ try {
+ int _type = T__34;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:33:7: ( 'union' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:33:9: 'union'
+ {
+ match("union");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__34"
+
+ // $ANTLR start "T__35"
+ public final void mT__35() throws RecognitionException {
+ try {
+ int _type = T__35;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:34:7: ( 'ordered' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:34:9: 'ordered'
+ {
+ match("ordered");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__35"
+
+ // $ANTLR start "T__36"
+ public final void mT__36() throws RecognitionException {
+ try {
+ int _type = T__36;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:35:7: ( 'unique' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:35:9: 'unique'
+ {
+ match("unique");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__36"
+
+ // $ANTLR start "T__37"
+ public final void mT__37() throws RecognitionException {
+ try {
+ int _type = T__37;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:36:7: ( 'true' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:36:9: 'true'
+ {
+ match("true");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__37"
+
+ // $ANTLR start "T__38"
+ public final void mT__38() throws RecognitionException {
+ try {
+ int _type = T__38;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:37:7: ( 'false' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:37:9: 'false'
+ {
+ match("false");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__38"
+
+ // $ANTLR start "RULE_ID"
+ public final void mRULE_ID() throws RecognitionException {
+ try {
+ int _type = RULE_ID;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1285:9: ( ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1285:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1285:11: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | '\\'' ( options {greedy=false; } : . )* '\\'' )
+ int alt3=2;
+ int LA3_0 = input.LA(1);
+
+ if ( ((LA3_0>='A' && LA3_0<='Z')||LA3_0=='_'||(LA3_0>='a' && LA3_0<='z')) ) {
+ alt3=1;
+ }
+ else if ( (LA3_0=='\'') ) {
+ alt3=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 3, 0, input);
+
+ throw nvae;
+ }
+ switch (alt3) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1285:12: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ {
+ if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1285:36: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ loop1:
+ do {
+ int alt1=2;
+ int LA1_0 = input.LA(1);
+
+ if ( ((LA1_0>='0' && LA1_0<='9')||(LA1_0>='A' && LA1_0<='Z')||LA1_0=='_'||(LA1_0>='a' && LA1_0<='z')) ) {
+ alt1=1;
+ }
+
+
+ switch (alt1) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:
+ {
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop1;
+ }
+ } while (true);
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1285:70: '\\'' ( options {greedy=false; } : . )* '\\''
+ {
+ match('\'');
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1285:75: ( options {greedy=false; } : . )*
+ loop2:
+ do {
+ int alt2=2;
+ int LA2_0 = input.LA(1);
+
+ if ( (LA2_0=='\'') ) {
+ alt2=2;
+ }
+ else if ( ((LA2_0>='\u0000' && LA2_0<='&')||(LA2_0>='(' && LA2_0<='\uFFFF')) ) {
+ alt2=1;
+ }
+
+
+ switch (alt2) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1285:103: .
+ {
+ matchAny();
+
+ }
+ break;
+
+ default :
+ break loop2;
+ }
+ } while (true);
+
+ match('\'');
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_ID"
+
+ // $ANTLR start "RULE_STRING"
+ public final void mRULE_STRING() throws RecognitionException {
+ try {
+ int _type = RULE_STRING;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1287:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1287:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
+ {
+ match('\"');
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1287:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
+ loop4:
+ do {
+ int alt4=3;
+ int LA4_0 = input.LA(1);
+
+ if ( (LA4_0=='\\') ) {
+ alt4=1;
+ }
+ else if ( ((LA4_0>='\u0000' && LA4_0<='!')||(LA4_0>='#' && LA4_0<='[')||(LA4_0>=']' && LA4_0<='\uFFFF')) ) {
+ alt4=2;
+ }
+
+
+ switch (alt4) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1287:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
+ {
+ match('\\');
+ if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1287:61: ~ ( ( '\\\\' | '\"' ) )
+ {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop4;
+ }
+ } while (true);
+
+ match('\"');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_STRING"
+
+ // $ANTLR start "RULE_ML_COMMENT"
+ public final void mRULE_ML_COMMENT() throws RecognitionException {
+ try {
+ int _type = RULE_ML_COMMENT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1289:17: ( '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1289:19: '/*' ~ ( '@' ) ( options {greedy=false; } : . )* '*/'
+ {
+ match("/*");
+
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='?')||(input.LA(1)>='A' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1289:31: ( options {greedy=false; } : . )*
+ loop5:
+ do {
+ int alt5=2;
+ int LA5_0 = input.LA(1);
+
+ if ( (LA5_0=='*') ) {
+ int LA5_1 = input.LA(2);
+
+ if ( (LA5_1=='/') ) {
+ alt5=2;
+ }
+ else if ( ((LA5_1>='\u0000' && LA5_1<='.')||(LA5_1>='0' && LA5_1<='\uFFFF')) ) {
+ alt5=1;
+ }
+
+
+ }
+ else if ( ((LA5_0>='\u0000' && LA5_0<=')')||(LA5_0>='+' && LA5_0<='\uFFFF')) ) {
+ alt5=1;
+ }
+
+
+ switch (alt5) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1289:59: .
+ {
+ matchAny();
+
+ }
+ break;
+
+ default :
+ break loop5;
+ }
+ } while (true);
+
+ match("*/");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_ML_COMMENT"
+
+ // $ANTLR start "RULE_SL_COMMENT"
+ public final void mRULE_SL_COMMENT() throws RecognitionException {
+ try {
+ int _type = RULE_SL_COMMENT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1291:17: ( '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )? )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1291:19: '//' (~ ( ( '\\n' | '\\r' | '@' ) ) )* ( ( '\\r' )? '\\n' )?
+ {
+ match("//");
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1291:24: (~ ( ( '\\n' | '\\r' | '@' ) ) )*
+ loop6:
+ do {
+ int alt6=2;
+ int LA6_0 = input.LA(1);
+
+ if ( ((LA6_0>='\u0000' && LA6_0<='\t')||(LA6_0>='\u000B' && LA6_0<='\f')||(LA6_0>='\u000E' && LA6_0<='?')||(LA6_0>='A' && LA6_0<='\uFFFF')) ) {
+ alt6=1;
+ }
+
+
+ switch (alt6) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1291:24: ~ ( ( '\\n' | '\\r' | '@' ) )
+ {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='?')||(input.LA(1)>='A' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop6;
+ }
+ } while (true);
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1291:44: ( ( '\\r' )? '\\n' )?
+ int alt8=2;
+ int LA8_0 = input.LA(1);
+
+ if ( (LA8_0=='\n'||LA8_0=='\r') ) {
+ alt8=1;
+ }
+ switch (alt8) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1291:45: ( '\\r' )? '\\n'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1291:45: ( '\\r' )?
+ int alt7=2;
+ int LA7_0 = input.LA(1);
+
+ if ( (LA7_0=='\r') ) {
+ alt7=1;
+ }
+ switch (alt7) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1291:45: '\\r'
+ {
+ match('\r');
+
+ }
+ break;
+
+ }
+
+ match('\n');
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_SL_COMMENT"
+
+ // $ANTLR start "RULE_INT"
+ public final void mRULE_INT() throws RecognitionException {
+ try {
+ int _type = RULE_INT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1293:10: ( ( '0' .. '9' )+ )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1293:12: ( '0' .. '9' )+
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1293:12: ( '0' .. '9' )+
+ int cnt9=0;
+ loop9:
+ do {
+ int alt9=2;
+ int LA9_0 = input.LA(1);
+
+ if ( ((LA9_0>='0' && LA9_0<='9')) ) {
+ alt9=1;
+ }
+
+
+ switch (alt9) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1293:13: '0' .. '9'
+ {
+ matchRange('0','9');
+
+ }
+ break;
+
+ default :
+ if ( cnt9 >= 1 ) break loop9;
+ EarlyExitException eee =
+ new EarlyExitException(9, input);
+ throw eee;
+ }
+ cnt9++;
+ } while (true);
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_INT"
+
+ // $ANTLR start "RULE_INTEGER_VALUE"
+ public final void mRULE_INTEGER_VALUE() throws RecognitionException {
+ try {
+ int _type = RULE_INTEGER_VALUE;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:20: ( ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
+ int alt22=4;
+ int LA22_0 = input.LA(1);
+
+ if ( (LA22_0=='0') ) {
+ switch ( input.LA(2) ) {
+ case 'B':
+ case 'b':
+ {
+ alt22=2;
+ }
+ break;
+ case 'X':
+ case 'x':
+ {
+ alt22=3;
+ }
+ break;
+ case '0':
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ case '_':
+ {
+ alt22=4;
+ }
+ break;
+ default:
+ alt22=1;}
+
+ }
+ else if ( ((LA22_0>='1' && LA22_0<='9')) ) {
+ alt22=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 22, 0, input);
+
+ throw nvae;
+ }
+ switch (alt22) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
+ int alt12=2;
+ int LA12_0 = input.LA(1);
+
+ if ( (LA12_0=='0') ) {
+ alt12=1;
+ }
+ else if ( ((LA12_0>='1' && LA12_0<='9')) ) {
+ alt12=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 12, 0, input);
+
+ throw nvae;
+ }
+ switch (alt12) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:24: '0'
+ {
+ match('0');
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:28: '1' .. '9' ( ( '_' )? '0' .. '9' )*
+ {
+ matchRange('1','9');
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:37: ( ( '_' )? '0' .. '9' )*
+ loop11:
+ do {
+ int alt11=2;
+ int LA11_0 = input.LA(1);
+
+ if ( ((LA11_0>='0' && LA11_0<='9')||LA11_0=='_') ) {
+ alt11=1;
+ }
+
+
+ switch (alt11) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:38: ( '_' )? '0' .. '9'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:38: ( '_' )?
+ int alt10=2;
+ int LA10_0 = input.LA(1);
+
+ if ( (LA10_0=='_') ) {
+ alt10=1;
+ }
+ switch (alt10) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:38: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','9');
+
+ }
+ break;
+
+ default :
+ break loop11;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:55: ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )*
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:55: ( '0b' | '0B' )
+ int alt13=2;
+ int LA13_0 = input.LA(1);
+
+ if ( (LA13_0=='0') ) {
+ int LA13_1 = input.LA(2);
+
+ if ( (LA13_1=='b') ) {
+ alt13=1;
+ }
+ else if ( (LA13_1=='B') ) {
+ alt13=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 13, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 13, 0, input);
+
+ throw nvae;
+ }
+ switch (alt13) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:56: '0b'
+ {
+ match("0b");
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:61: '0B'
+ {
+ match("0B");
+
+
+ }
+ break;
+
+ }
+
+ matchRange('0','1');
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:76: ( ( '_' )? '0' .. '1' )*
+ loop15:
+ do {
+ int alt15=2;
+ int LA15_0 = input.LA(1);
+
+ if ( ((LA15_0>='0' && LA15_0<='1')||LA15_0=='_') ) {
+ alt15=1;
+ }
+
+
+ switch (alt15) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:77: ( '_' )? '0' .. '1'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:77: ( '_' )?
+ int alt14=2;
+ int LA14_0 = input.LA(1);
+
+ if ( (LA14_0=='_') ) {
+ alt14=1;
+ }
+ switch (alt14) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:77: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','1');
+
+ }
+ break;
+
+ default :
+ break loop15;
+ }
+ } while (true);
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:93: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:93: ( '0x' | '0X' )
+ int alt16=2;
+ int LA16_0 = input.LA(1);
+
+ if ( (LA16_0=='0') ) {
+ int LA16_1 = input.LA(2);
+
+ if ( (LA16_1=='x') ) {
+ alt16=1;
+ }
+ else if ( (LA16_1=='X') ) {
+ alt16=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 16, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 16, 0, input);
+
+ throw nvae;
+ }
+ switch (alt16) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:94: '0x'
+ {
+ match("0x");
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:99: '0X'
+ {
+ match("0X");
+
+
+ }
+ break;
+
+ }
+
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:134: ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
+ loop18:
+ do {
+ int alt18=2;
+ int LA18_0 = input.LA(1);
+
+ if ( ((LA18_0>='0' && LA18_0<='9')||(LA18_0>='A' && LA18_0<='F')||LA18_0=='_'||(LA18_0>='a' && LA18_0<='f')) ) {
+ alt18=1;
+ }
+
+
+ switch (alt18) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:135: ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:135: ( '_' )?
+ int alt17=2;
+ int LA17_0 = input.LA(1);
+
+ if ( (LA17_0=='_') ) {
+ alt17=1;
+ }
+ switch (alt17) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:135: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop18;
+ }
+ } while (true);
+
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:171: '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )*
+ {
+ match('0');
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:175: ( '_' )?
+ int alt19=2;
+ int LA19_0 = input.LA(1);
+
+ if ( (LA19_0=='_') ) {
+ alt19=1;
+ }
+ switch (alt19) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:175: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','7');
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:189: ( ( '_' )? '0' .. '7' )*
+ loop21:
+ do {
+ int alt21=2;
+ int LA21_0 = input.LA(1);
+
+ if ( ((LA21_0>='0' && LA21_0<='7')||LA21_0=='_') ) {
+ alt21=1;
+ }
+
+
+ switch (alt21) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:190: ( '_' )? '0' .. '7'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:190: ( '_' )?
+ int alt20=2;
+ int LA20_0 = input.LA(1);
+
+ if ( (LA20_0=='_') ) {
+ alt20=1;
+ }
+ switch (alt20) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1295:190: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','7');
+
+ }
+ break;
+
+ default :
+ break loop21;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_INTEGER_VALUE"
+
+ // $ANTLR start "RULE_WS"
+ public final void mRULE_WS() throws RecognitionException {
+ try {
+ int _type = RULE_WS;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1297:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1297:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1297:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ int cnt23=0;
+ loop23:
+ do {
+ int alt23=2;
+ int LA23_0 = input.LA(1);
+
+ if ( ((LA23_0>='\t' && LA23_0<='\n')||LA23_0=='\r'||LA23_0==' ') ) {
+ alt23=1;
+ }
+
+
+ switch (alt23) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:
+ {
+ if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ if ( cnt23 >= 1 ) break loop23;
+ EarlyExitException eee =
+ new EarlyExitException(23, input);
+ throw eee;
+ }
+ cnt23++;
+ } while (true);
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_WS"
+
+ // $ANTLR start "RULE_ANY_OTHER"
+ public final void mRULE_ANY_OTHER() throws RecognitionException {
+ try {
+ int _type = RULE_ANY_OTHER;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1299:16: ( . )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1299:18: .
+ {
+ matchAny();
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_ANY_OTHER"
+
+ public void mTokens() throws RecognitionException {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER )
+ int alt24=35;
+ alt24 = dfa24.predict(input);
+ switch (alt24) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:10: T__12
+ {
+ mT__12();
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:16: T__13
+ {
+ mT__13();
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:22: T__14
+ {
+ mT__14();
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:28: T__15
+ {
+ mT__15();
+
+ }
+ break;
+ case 5 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:34: T__16
+ {
+ mT__16();
+
+ }
+ break;
+ case 6 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:40: T__17
+ {
+ mT__17();
+
+ }
+ break;
+ case 7 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:46: T__18
+ {
+ mT__18();
+
+ }
+ break;
+ case 8 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:52: T__19
+ {
+ mT__19();
+
+ }
+ break;
+ case 9 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:58: T__20
+ {
+ mT__20();
+
+ }
+ break;
+ case 10 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:64: T__21
+ {
+ mT__21();
+
+ }
+ break;
+ case 11 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:70: T__22
+ {
+ mT__22();
+
+ }
+ break;
+ case 12 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:76: T__23
+ {
+ mT__23();
+
+ }
+ break;
+ case 13 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:82: T__24
+ {
+ mT__24();
+
+ }
+ break;
+ case 14 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:88: T__25
+ {
+ mT__25();
+
+ }
+ break;
+ case 15 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:94: T__26
+ {
+ mT__26();
+
+ }
+ break;
+ case 16 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:100: T__27
+ {
+ mT__27();
+
+ }
+ break;
+ case 17 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:106: T__28
+ {
+ mT__28();
+
+ }
+ break;
+ case 18 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:112: T__29
+ {
+ mT__29();
+
+ }
+ break;
+ case 19 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:118: T__30
+ {
+ mT__30();
+
+ }
+ break;
+ case 20 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:124: T__31
+ {
+ mT__31();
+
+ }
+ break;
+ case 21 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:130: T__32
+ {
+ mT__32();
+
+ }
+ break;
+ case 22 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:136: T__33
+ {
+ mT__33();
+
+ }
+ break;
+ case 23 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:142: T__34
+ {
+ mT__34();
+
+ }
+ break;
+ case 24 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:148: T__35
+ {
+ mT__35();
+
+ }
+ break;
+ case 25 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:154: T__36
+ {
+ mT__36();
+
+ }
+ break;
+ case 26 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:160: T__37
+ {
+ mT__37();
+
+ }
+ break;
+ case 27 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:166: T__38
+ {
+ mT__38();
+
+ }
+ break;
+ case 28 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:172: RULE_ID
+ {
+ mRULE_ID();
+
+ }
+ break;
+ case 29 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:180: RULE_STRING
+ {
+ mRULE_STRING();
+
+ }
+ break;
+ case 30 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:192: RULE_ML_COMMENT
+ {
+ mRULE_ML_COMMENT();
+
+ }
+ break;
+ case 31 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:208: RULE_SL_COMMENT
+ {
+ mRULE_SL_COMMENT();
+
+ }
+ break;
+ case 32 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:224: RULE_INT
+ {
+ mRULE_INT();
+
+ }
+ break;
+ case 33 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:233: RULE_INTEGER_VALUE
+ {
+ mRULE_INTEGER_VALUE();
+
+ }
+ break;
+ case 34 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:252: RULE_WS
+ {
+ mRULE_WS();
+
+ }
+ break;
+ case 35 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1:260: RULE_ANY_OTHER
+ {
+ mRULE_ANY_OTHER();
+
+ }
+ break;
+
+ }
+
+ }
+
+
+ protected DFA24 dfa24 = new DFA24(this);
+ static final String DFA24_eotS =
+ "\1\uffff\1\40\1\42\1\35\1\uffff\1\46\5\uffff\2\55\1\uffff\1\55"+
+ "\4\uffff\4\55\1\uffff\2\35\2\75\20\uffff\1\55\1\uffff\1\55\1\uffff"+
+ "\2\55\4\uffff\4\55\2\uffff\1\75\1\uffff\1\75\1\uffff\11\55\1\75"+
+ "\3\55\1\127\1\130\3\55\1\134\4\55\2\uffff\1\141\2\55\1\uffff\1\144"+
+ "\3\55\1\uffff\1\150\1\55\1\uffff\2\55\1\154\1\uffff\1\155\1\55\1"+
+ "\157\2\uffff\1\160\2\uffff";
+ static final String DFA24_eofS =
+ "\161\uffff";
+ static final String DFA24_minS =
+ "\1\0\1\52\1\72\1\125\1\uffff\1\56\5\uffff\1\145\1\165\1\uffff\1"+
+ "\157\4\uffff\1\156\2\162\1\141\1\uffff\2\0\2\60\20\uffff\1\141\1"+
+ "\uffff\1\142\1\uffff\1\154\1\156\4\uffff\1\151\1\144\1\165\1\154"+
+ "\2\uffff\1\60\1\uffff\1\60\1\uffff\1\145\1\144\1\163\1\154\1\145"+
+ "\1\157\2\145\1\163\1\60\1\146\1\117\1\145\2\60\1\156\1\165\1\162"+
+ "\1\60\1\145\1\151\1\156\1\164\2\uffff\1\60\2\145\1\uffff\1\60\1"+
+ "\156\1\154\1\163\1\uffff\1\60\1\144\1\uffff\1\145\1\171\1\60\1\uffff"+
+ "\1\60\1\163\1\60\2\uffff\1\60\2\uffff";
+ static final String DFA24_maxS =
+ "\1\uffff\1\57\1\72\1\125\1\uffff\1\56\5\uffff\1\145\1\165\1\uffff"+
+ "\1\165\4\uffff\1\156\2\162\1\141\1\uffff\2\uffff\1\170\1\137\20"+
+ "\uffff\1\144\1\uffff\1\142\1\uffff\1\154\1\156\4\uffff\1\151\1\144"+
+ "\1\165\1\154\2\uffff\1\137\1\uffff\1\137\1\uffff\1\145\1\144\1\163"+
+ "\1\154\1\145\1\161\2\145\1\163\1\137\1\146\1\117\1\145\2\172\1\156"+
+ "\1\165\1\162\1\172\1\145\1\151\1\156\1\164\2\uffff\1\172\2\145\1"+
+ "\uffff\1\172\1\156\1\154\1\163\1\uffff\1\172\1\144\1\uffff\1\145"+
+ "\1\171\1\172\1\uffff\1\172\1\163\1\172\2\uffff\1\172\2\uffff";
+ static final String DFA24_acceptS =
+ "\4\uffff\1\5\1\uffff\1\7\1\10\1\11\1\12\1\13\2\uffff\1\16\1\uffff"+
+ "\1\22\1\23\1\24\1\25\4\uffff\1\34\4\uffff\1\42\1\43\1\36\1\37\1"+
+ "\1\1\4\1\2\1\3\1\5\1\6\1\17\1\7\1\10\1\11\1\12\1\13\1\uffff\1\34"+
+ "\1\uffff\1\16\2\uffff\1\22\1\23\1\24\1\25\4\uffff\1\35\1\41\1\uffff"+
+ "\1\40\1\uffff\1\42\27\uffff\1\20\1\21\3\uffff\1\32\4\uffff\1\27"+
+ "\2\uffff\1\33\3\uffff\1\31\3\uffff\1\15\1\30\1\uffff\1\26\1\14";
+ static final String DFA24_specialS =
+ "\1\0\27\uffff\1\1\1\2\127\uffff}>";
+ static final String[] DFA24_transitionS = {
+ "\11\35\2\34\2\35\1\34\22\35\1\34\1\35\1\31\1\21\3\35\1\30\2"+
+ "\35\1\7\1\17\1\11\1\20\1\5\1\1\1\32\11\33\1\2\1\35\1\3\1\15"+
+ "\3\35\32\27\1\4\1\35\1\6\1\35\1\27\1\35\5\27\1\26\7\27\1\16"+
+ "\1\24\2\27\1\13\1\14\1\25\1\23\5\27\1\10\1\35\1\12\1\22\uff81"+
+ "\35",
+ "\1\36\4\uffff\1\37",
+ "\1\41",
+ "\1\43",
+ "",
+ "\1\45",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\54",
+ "\1\56",
+ "",
+ "\1\61\5\uffff\1\60",
+ "",
+ "",
+ "",
+ "",
+ "\1\66",
+ "\1\67",
+ "\1\70",
+ "\1\71",
+ "",
+ "\0\55",
+ "\0\72",
+ "\10\74\12\uffff\1\73\25\uffff\1\73\6\uffff\1\73\2\uffff\1"+
+ "\73\25\uffff\1\73",
+ "\12\76\45\uffff\1\73",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\101\2\uffff\1\100",
+ "",
+ "\1\102",
+ "",
+ "\1\103",
+ "\1\104",
+ "",
+ "",
+ "",
+ "",
+ "\1\105",
+ "\1\106",
+ "\1\107",
+ "\1\110",
+ "",
+ "",
+ "\10\111\47\uffff\1\73",
+ "",
+ "\12\76\45\uffff\1\73",
+ "",
+ "\1\112",
+ "\1\113",
+ "\1\114",
+ "\1\115",
+ "\1\116",
+ "\1\117\1\uffff\1\120",
+ "\1\121",
+ "\1\122",
+ "\1\123",
+ "\10\111\47\uffff\1\73",
+ "\1\124",
+ "\1\125",
+ "\1\126",
+ "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
+ "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
+ "\1\131",
+ "\1\132",
+ "\1\133",
+ "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
+ "\1\135",
+ "\1\136",
+ "\1\137",
+ "\1\140",
+ "",
+ "",
+ "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
+ "\1\142",
+ "\1\143",
+ "",
+ "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
+ "\1\145",
+ "\1\146",
+ "\1\147",
+ "",
+ "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
+ "\1\151",
+ "",
+ "\1\152",
+ "\1\153",
+ "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
+ "",
+ "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
+ "\1\156",
+ "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
+ "",
+ "",
+ "\12\55\7\uffff\32\55\4\uffff\1\55\1\uffff\32\55",
+ "",
+ ""
+ };
+
+ static final short[] DFA24_eot = DFA.unpackEncodedString(DFA24_eotS);
+ static final short[] DFA24_eof = DFA.unpackEncodedString(DFA24_eofS);
+ static final char[] DFA24_min = DFA.unpackEncodedStringToUnsignedChars(DFA24_minS);
+ static final char[] DFA24_max = DFA.unpackEncodedStringToUnsignedChars(DFA24_maxS);
+ static final short[] DFA24_accept = DFA.unpackEncodedString(DFA24_acceptS);
+ static final short[] DFA24_special = DFA.unpackEncodedString(DFA24_specialS);
+ static final short[][] DFA24_transition;
+
+ static {
+ int numStates = DFA24_transitionS.length;
+ DFA24_transition = new short[numStates][];
+ for (int i=0; i<numStates; i++) {
+ DFA24_transition[i] = DFA.unpackEncodedString(DFA24_transitionS[i]);
+ }
+ }
+
+ class DFA24 extends DFA {
+
+ public DFA24(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 24;
+ this.eot = DFA24_eot;
+ this.eof = DFA24_eof;
+ this.min = DFA24_min;
+ this.max = DFA24_max;
+ this.accept = DFA24_accept;
+ this.special = DFA24_special;
+ this.transition = DFA24_transition;
+ }
+ public String getDescription() {
+ return "1:1: Tokens : ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_INT | RULE_INTEGER_VALUE | RULE_WS | RULE_ANY_OTHER );";
+ }
+ public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
+ IntStream input = _input;
+ int _s = s;
+ switch ( s ) {
+ case 0 :
+ int LA24_0 = input.LA(1);
+
+ s = -1;
+ if ( (LA24_0=='/') ) {s = 1;}
+
+ else if ( (LA24_0==':') ) {s = 2;}
+
+ else if ( (LA24_0=='<') ) {s = 3;}
+
+ else if ( (LA24_0=='[') ) {s = 4;}
+
+ else if ( (LA24_0=='.') ) {s = 5;}
+
+ else if ( (LA24_0==']') ) {s = 6;}
+
+ else if ( (LA24_0=='*') ) {s = 7;}
+
+ else if ( (LA24_0=='{') ) {s = 8;}
+
+ else if ( (LA24_0==',') ) {s = 9;}
+
+ else if ( (LA24_0=='}') ) {s = 10;}
+
+ else if ( (LA24_0=='r') ) {s = 11;}
+
+ else if ( (LA24_0=='s') ) {s = 12;}
+
+ else if ( (LA24_0=='=') ) {s = 13;}
+
+ else if ( (LA24_0=='n') ) {s = 14;}
+
+ else if ( (LA24_0=='+') ) {s = 15;}
+
+ else if ( (LA24_0=='-') ) {s = 16;}
+
+ else if ( (LA24_0=='#') ) {s = 17;}
+
+ else if ( (LA24_0=='~') ) {s = 18;}
+
+ else if ( (LA24_0=='u') ) {s = 19;}
+
+ else if ( (LA24_0=='o') ) {s = 20;}
+
+ else if ( (LA24_0=='t') ) {s = 21;}
+
+ else if ( (LA24_0=='f') ) {s = 22;}
+
+ else if ( ((LA24_0>='A' && LA24_0<='Z')||LA24_0=='_'||(LA24_0>='a' && LA24_0<='e')||(LA24_0>='g' && LA24_0<='m')||(LA24_0>='p' && LA24_0<='q')||(LA24_0>='v' && LA24_0<='z')) ) {s = 23;}
+
+ else if ( (LA24_0=='\'') ) {s = 24;}
+
+ else if ( (LA24_0=='\"') ) {s = 25;}
+
+ else if ( (LA24_0=='0') ) {s = 26;}
+
+ else if ( ((LA24_0>='1' && LA24_0<='9')) ) {s = 27;}
+
+ else if ( ((LA24_0>='\t' && LA24_0<='\n')||LA24_0=='\r'||LA24_0==' ') ) {s = 28;}
+
+ else if ( ((LA24_0>='\u0000' && LA24_0<='\b')||(LA24_0>='\u000B' && LA24_0<='\f')||(LA24_0>='\u000E' && LA24_0<='\u001F')||LA24_0=='!'||(LA24_0>='$' && LA24_0<='&')||(LA24_0>='(' && LA24_0<=')')||LA24_0==';'||(LA24_0>='>' && LA24_0<='@')||LA24_0=='\\'||LA24_0=='^'||LA24_0=='`'||LA24_0=='|'||(LA24_0>='\u007F' && LA24_0<='\uFFFF')) ) {s = 29;}
+
+ if ( s>=0 ) return s;
+ break;
+ case 1 :
+ int LA24_24 = input.LA(1);
+
+ s = -1;
+ if ( ((LA24_24>='\u0000' && LA24_24<='\uFFFF')) ) {s = 45;}
+
+ else s = 29;
+
+ if ( s>=0 ) return s;
+ break;
+ case 2 :
+ int LA24_25 = input.LA(1);
+
+ s = -1;
+ if ( ((LA24_25>='\u0000' && LA24_25<='\uFFFF')) ) {s = 58;}
+
+ else s = 29;
+
+ if ( s>=0 ) return s;
+ break;
+ }
+ NoViableAltException nvae =
+ new NoViableAltException(getDescription(), 24, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+
+
} \ No newline at end of file
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlPropertyParser.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlPropertyParser.java
index 88ebac0ddc7..ce2a6544784 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlPropertyParser.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlPropertyParser.java
@@ -1,3485 +1,3562 @@
-package org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.common.util.Enumerator;
-import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
-import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken;
-import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess;
-
-import org.antlr.runtime.*;
-
-@SuppressWarnings("all")
-public class InternalUmlPropertyParser extends AbstractInternalAntlrParser {
- public static final String[] tokenNames = new String[] {
- "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_INTEGER_VALUE", "RULE_WS", "RULE_ANY_OTHER", "'/'", "':'", "'<Undefined>'", "'::'", "'['", "'..'", "']'", "'*'", "'{'",
- "','", "'}'", "'redefines'", "'subsets'", "'='", "'.'", "'null'", "'none'", "'+'", "'-'", "'#'", "'~'", "'readOnly'", "'union'", "'ordered'", "'unique'", "'true'", "'false'"
- };
- public static final int RULE_ID = 4;
- public static final int T__29 = 29;
- public static final int T__28 = 28;
- public static final int T__27 = 27;
- public static final int T__26 = 26;
- public static final int T__25 = 25;
- public static final int T__24 = 24;
- public static final int T__23 = 23;
- public static final int T__22 = 22;
- public static final int RULE_ANY_OTHER = 11;
- public static final int T__21 = 21;
- public static final int T__20 = 20;
- public static final int RULE_INTEGER_VALUE = 9;
- public static final int RULE_SL_COMMENT = 8;
- public static final int EOF = -1;
- public static final int RULE_ML_COMMENT = 7;
- public static final int T__30 = 30;
- public static final int T__19 = 19;
- public static final int T__31 = 31;
- public static final int RULE_STRING = 6;
- public static final int T__32 = 32;
- public static final int T__33 = 33;
- public static final int T__16 = 16;
- public static final int T__34 = 34;
- public static final int T__15 = 15;
- public static final int T__35 = 35;
- public static final int T__18 = 18;
- public static final int T__36 = 36;
- public static final int T__17 = 17;
- public static final int T__37 = 37;
- public static final int T__12 = 12;
- public static final int T__38 = 38;
- public static final int T__14 = 14;
- public static final int T__13 = 13;
- public static final int RULE_INT = 5;
- public static final int RULE_WS = 10;
-
- // delegates
- // delegators
-
-
- public InternalUmlPropertyParser(TokenStream input) {
- this(input, new RecognizerSharedState());
- }
-
- public InternalUmlPropertyParser(TokenStream input, RecognizerSharedState state) {
- super(input, state);
-
- }
-
-
- @Override
- public String[] getTokenNames() {
- return InternalUmlPropertyParser.tokenNames;
- }
-
- @Override
- public String getGrammarFileName() {
- return "../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g";
- }
-
-
-
- private UmlPropertyGrammarAccess grammarAccess;
-
- public InternalUmlPropertyParser(TokenStream input, UmlPropertyGrammarAccess grammarAccess) {
- this(input);
- this.grammarAccess = grammarAccess;
- registerRules(grammarAccess.getGrammar());
- }
-
- @Override
- protected String getFirstRuleName() {
- return "PropertyRule";
- }
-
- @Override
- protected UmlPropertyGrammarAccess getGrammarAccess() {
- return grammarAccess;
- }
-
-
-
- // $ANTLR start "entryRulePropertyRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:68:1: entryRulePropertyRule returns [EObject current=null] : iv_rulePropertyRule= rulePropertyRule EOF
- // ;
- public final EObject entryRulePropertyRule() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePropertyRule = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:69:2: (iv_rulePropertyRule= rulePropertyRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:70:2: iv_rulePropertyRule= rulePropertyRule EOF
- {
- newCompositeNode(grammarAccess.getPropertyRuleRule());
- pushFollow(FOLLOW_rulePropertyRule_in_entryRulePropertyRule75);
- iv_rulePropertyRule = rulePropertyRule();
-
- state._fsp--;
-
- current = iv_rulePropertyRule;
- match(input, EOF, FOLLOW_EOF_in_entryRulePropertyRule85);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRulePropertyRule"
-
-
- // $ANTLR start "rulePropertyRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:77:1: rulePropertyRule returns [EObject current=null] : ( ( (lv_visibility_0_0= ruleVisibilityRule )
- // )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )?
- // ( (lv_default_8_0= ruleDefaultValueRule ) )? ) ;
- public final EObject rulePropertyRule() throws RecognitionException {
- EObject current = null;
-
- Token lv_derived_1_0 = null;
- Token lv_name_2_0 = null;
- Token otherlv_3 = null;
- Token lv_typeUndefined_5_0 = null;
- EObject lv_visibility_0_0 = null;
-
- EObject lv_type_4_0 = null;
-
- EObject lv_multiplicity_6_0 = null;
-
- EObject lv_modifiers_7_0 = null;
-
- EObject lv_default_8_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:80:28: ( ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? (
- // (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )? ( (lv_default_8_0=
- // ruleDefaultValueRule ) )? ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:81:1: ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? (
- // (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )? ( (lv_default_8_0=
- // ruleDefaultValueRule ) )? )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:81:1: ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? (
- // (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )? ( (lv_default_8_0=
- // ruleDefaultValueRule ) )? )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:81:2: ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? (
- // (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )? ( (lv_default_8_0=
- // ruleDefaultValueRule ) )?
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:81:2: ( (lv_visibility_0_0= ruleVisibilityRule ) )?
- int alt1 = 2;
- int LA1_0 = input.LA(1);
-
- if (((LA1_0 >= 29 && LA1_0 <= 32))) {
- alt1 = 1;
- }
- switch (alt1) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:82:1: (lv_visibility_0_0= ruleVisibilityRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:82:1: (lv_visibility_0_0= ruleVisibilityRule )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:83:3: lv_visibility_0_0= ruleVisibilityRule
- {
-
- newCompositeNode(grammarAccess.getPropertyRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0());
-
- pushFollow(FOLLOW_ruleVisibilityRule_in_rulePropertyRule131);
- lv_visibility_0_0 = ruleVisibilityRule();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
- }
- set(
- current,
- "visibility",
- lv_visibility_0_0,
- "VisibilityRule");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
- break;
-
- }
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:99:3: ( (lv_derived_1_0= '/' ) )?
- int alt2 = 2;
- int LA2_0 = input.LA(1);
-
- if ((LA2_0 == 12)) {
- alt2 = 1;
- }
- switch (alt2) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:100:1: (lv_derived_1_0= '/' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:100:1: (lv_derived_1_0= '/' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:101:3: lv_derived_1_0= '/'
- {
- lv_derived_1_0 = (Token) match(input, 12, FOLLOW_12_in_rulePropertyRule150);
-
- newLeafNode(lv_derived_1_0, grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0());
-
-
- if (current == null) {
- current = createModelElement(grammarAccess.getPropertyRuleRule());
- }
- setWithLastConsumed(current, "derived", true, "/");
-
-
- }
-
-
- }
- break;
-
- }
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:114:3: ( (lv_name_2_0= RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:115:1: (lv_name_2_0= RULE_ID )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:115:1: (lv_name_2_0= RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:116:3: lv_name_2_0= RULE_ID
- {
- lv_name_2_0 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_rulePropertyRule181);
-
- newLeafNode(lv_name_2_0, grammarAccess.getPropertyRuleAccess().getNameIDTerminalRuleCall_2_0());
-
-
- if (current == null) {
- current = createModelElement(grammarAccess.getPropertyRuleRule());
- }
- setWithLastConsumed(
- current,
- "name",
- lv_name_2_0,
- "ID");
-
-
- }
-
-
- }
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:132:2: (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0=
- // '<Undefined>' ) ) ) )?
- int alt4 = 2;
- int LA4_0 = input.LA(1);
-
- if ((LA4_0 == 13)) {
- alt4 = 1;
- }
- switch (alt4) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:132:4: otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0=
- // '<Undefined>' ) ) )
- {
- otherlv_3 = (Token) match(input, 13, FOLLOW_13_in_rulePropertyRule199);
-
- newLeafNode(otherlv_3, grammarAccess.getPropertyRuleAccess().getColonKeyword_3_0());
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:136:1: ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>'
- // ) ) )
- int alt3 = 2;
- int LA3_0 = input.LA(1);
-
- if ((LA3_0 == RULE_ID)) {
- alt3 = 1;
- }
- else if ((LA3_0 == 14)) {
- alt3 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 3, 0, input);
-
- throw nvae;
- }
- switch (alt3) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:136:2: ( (lv_type_4_0= ruleTypeRule ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:136:2: ( (lv_type_4_0= ruleTypeRule ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:137:1: (lv_type_4_0= ruleTypeRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:137:1: (lv_type_4_0= ruleTypeRule )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:138:3: lv_type_4_0= ruleTypeRule
- {
-
- newCompositeNode(grammarAccess.getPropertyRuleAccess().getTypeTypeRuleParserRuleCall_3_1_0_0());
-
- pushFollow(FOLLOW_ruleTypeRule_in_rulePropertyRule221);
- lv_type_4_0 = ruleTypeRule();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
- }
- set(
- current,
- "type",
- lv_type_4_0,
- "TypeRule");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:155:6: ( (lv_typeUndefined_5_0= '<Undefined>' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:155:6: ( (lv_typeUndefined_5_0= '<Undefined>' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:156:1: (lv_typeUndefined_5_0= '<Undefined>' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:156:1: (lv_typeUndefined_5_0= '<Undefined>' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:157:3: lv_typeUndefined_5_0= '<Undefined>'
- {
- lv_typeUndefined_5_0 = (Token) match(input, 14, FOLLOW_14_in_rulePropertyRule245);
-
- newLeafNode(lv_typeUndefined_5_0, grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0());
-
-
- if (current == null) {
- current = createModelElement(grammarAccess.getPropertyRuleRule());
- }
- setWithLastConsumed(current, "typeUndefined", true, "<Undefined>");
-
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
- break;
-
- }
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:170:5: ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )?
- int alt5 = 2;
- int LA5_0 = input.LA(1);
-
- if ((LA5_0 == 16)) {
- alt5 = 1;
- }
- switch (alt5) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:171:1: (lv_multiplicity_6_0= ruleMultiplicityRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:171:1: (lv_multiplicity_6_0= ruleMultiplicityRule )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:172:3: lv_multiplicity_6_0= ruleMultiplicityRule
- {
-
- newCompositeNode(grammarAccess.getPropertyRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0());
-
- pushFollow(FOLLOW_ruleMultiplicityRule_in_rulePropertyRule282);
- lv_multiplicity_6_0 = ruleMultiplicityRule();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
- }
- set(
- current,
- "multiplicity",
- lv_multiplicity_6_0,
- "MultiplicityRule");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
- break;
-
- }
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:188:3: ( (lv_modifiers_7_0= ruleModifiersRule ) )?
- int alt6 = 2;
- int LA6_0 = input.LA(1);
-
- if ((LA6_0 == 20)) {
- alt6 = 1;
- }
- switch (alt6) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:189:1: (lv_modifiers_7_0= ruleModifiersRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:189:1: (lv_modifiers_7_0= ruleModifiersRule )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:190:3: lv_modifiers_7_0= ruleModifiersRule
- {
-
- newCompositeNode(grammarAccess.getPropertyRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0());
-
- pushFollow(FOLLOW_ruleModifiersRule_in_rulePropertyRule304);
- lv_modifiers_7_0 = ruleModifiersRule();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
- }
- set(
- current,
- "modifiers",
- lv_modifiers_7_0,
- "ModifiersRule");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
- break;
-
- }
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:206:3: ( (lv_default_8_0= ruleDefaultValueRule ) )?
- int alt7 = 2;
- int LA7_0 = input.LA(1);
-
- if ((LA7_0 == 25)) {
- alt7 = 1;
- }
- switch (alt7) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:207:1: (lv_default_8_0= ruleDefaultValueRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:207:1: (lv_default_8_0= ruleDefaultValueRule )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:208:3: lv_default_8_0= ruleDefaultValueRule
- {
-
- newCompositeNode(grammarAccess.getPropertyRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0());
-
- pushFollow(FOLLOW_ruleDefaultValueRule_in_rulePropertyRule326);
- lv_default_8_0 = ruleDefaultValueRule();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
- }
- set(
- current,
- "default",
- lv_default_8_0,
- "DefaultValueRule");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "rulePropertyRule"
-
-
- // $ANTLR start "entryRuleVisibilityRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:232:1: entryRuleVisibilityRule returns [EObject current=null] : iv_ruleVisibilityRule=
- // ruleVisibilityRule EOF ;
- public final EObject entryRuleVisibilityRule() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleVisibilityRule = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:233:2: (iv_ruleVisibilityRule= ruleVisibilityRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:234:2: iv_ruleVisibilityRule= ruleVisibilityRule EOF
- {
- newCompositeNode(grammarAccess.getVisibilityRuleRule());
- pushFollow(FOLLOW_ruleVisibilityRule_in_entryRuleVisibilityRule363);
- iv_ruleVisibilityRule = ruleVisibilityRule();
-
- state._fsp--;
-
- current = iv_ruleVisibilityRule;
- match(input, EOF, FOLLOW_EOF_in_entryRuleVisibilityRule373);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleVisibilityRule"
-
-
- // $ANTLR start "ruleVisibilityRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:241:1: ruleVisibilityRule returns [EObject current=null] : ( (lv_visibility_0_0= ruleVisibilityKind )
- // ) ;
- public final EObject ruleVisibilityRule() throws RecognitionException {
- EObject current = null;
-
- Enumerator lv_visibility_0_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:244:28: ( ( (lv_visibility_0_0= ruleVisibilityKind ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:245:1: ( (lv_visibility_0_0= ruleVisibilityKind ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:245:1: ( (lv_visibility_0_0= ruleVisibilityKind ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:246:1: (lv_visibility_0_0= ruleVisibilityKind )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:246:1: (lv_visibility_0_0= ruleVisibilityKind )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:247:3: lv_visibility_0_0= ruleVisibilityKind
- {
-
- newCompositeNode(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0());
-
- pushFollow(FOLLOW_ruleVisibilityKind_in_ruleVisibilityRule418);
- lv_visibility_0_0 = ruleVisibilityKind();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getVisibilityRuleRule());
- }
- set(
- current,
- "visibility",
- lv_visibility_0_0,
- "VisibilityKind");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleVisibilityRule"
-
-
- // $ANTLR start "entryRuleTypeRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:271:1: entryRuleTypeRule returns [EObject current=null] : iv_ruleTypeRule= ruleTypeRule EOF ;
- public final EObject entryRuleTypeRule() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleTypeRule = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:272:2: (iv_ruleTypeRule= ruleTypeRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:273:2: iv_ruleTypeRule= ruleTypeRule EOF
- {
- newCompositeNode(grammarAccess.getTypeRuleRule());
- pushFollow(FOLLOW_ruleTypeRule_in_entryRuleTypeRule453);
- iv_ruleTypeRule = ruleTypeRule();
-
- state._fsp--;
-
- current = iv_ruleTypeRule;
- match(input, EOF, FOLLOW_EOF_in_entryRuleTypeRule463);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleTypeRule"
-
-
- // $ANTLR start "ruleTypeRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:280:1: ruleTypeRule returns [EObject current=null] : ( ( (lv_path_0_0= ruleQualifiedName ) )? (
- // (otherlv_1= RULE_ID ) ) ) ;
- public final EObject ruleTypeRule() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1 = null;
- EObject lv_path_0_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:283:28: ( ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:284:1: ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:284:1: ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:284:2: ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:284:2: ( (lv_path_0_0= ruleQualifiedName ) )?
- int alt8 = 2;
- int LA8_0 = input.LA(1);
-
- if ((LA8_0 == RULE_ID)) {
- int LA8_1 = input.LA(2);
-
- if ((LA8_1 == 15)) {
- alt8 = 1;
- }
- }
- switch (alt8) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:285:1: (lv_path_0_0= ruleQualifiedName )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:285:1: (lv_path_0_0= ruleQualifiedName )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:286:3: lv_path_0_0= ruleQualifiedName
- {
-
- newCompositeNode(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0());
-
- pushFollow(FOLLOW_ruleQualifiedName_in_ruleTypeRule509);
- lv_path_0_0 = ruleQualifiedName();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getTypeRuleRule());
- }
- set(
- current,
- "path",
- lv_path_0_0,
- "QualifiedName");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
- break;
-
- }
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:302:3: ( (otherlv_1= RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:303:1: (otherlv_1= RULE_ID )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:303:1: (otherlv_1= RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:304:3: otherlv_1= RULE_ID
- {
-
- if (current == null) {
- current = createModelElement(grammarAccess.getTypeRuleRule());
- }
-
- otherlv_1 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleTypeRule530);
-
- newLeafNode(otherlv_1, grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0());
-
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleTypeRule"
-
-
- // $ANTLR start "entryRuleQualifiedName"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:323:1: entryRuleQualifiedName returns [EObject current=null] : iv_ruleQualifiedName= ruleQualifiedName
- // EOF ;
- public final EObject entryRuleQualifiedName() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleQualifiedName = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:324:2: (iv_ruleQualifiedName= ruleQualifiedName EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:325:2: iv_ruleQualifiedName= ruleQualifiedName EOF
- {
- newCompositeNode(grammarAccess.getQualifiedNameRule());
- pushFollow(FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName566);
- iv_ruleQualifiedName = ruleQualifiedName();
-
- state._fsp--;
-
- current = iv_ruleQualifiedName;
- match(input, EOF, FOLLOW_EOF_in_entryRuleQualifiedName576);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleQualifiedName"
-
-
- // $ANTLR start "ruleQualifiedName"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:332:1: ruleQualifiedName returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::'
- // ( (lv_remaining_2_0= ruleQualifiedName ) )? ) ;
- public final EObject ruleQualifiedName() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0 = null;
- Token otherlv_1 = null;
- EObject lv_remaining_2_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:335:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName )
- // )? ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:336:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )?
- // )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:336:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName
- // ) )? )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:336:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName )
- // )?
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:336:2: ( (otherlv_0= RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:337:1: (otherlv_0= RULE_ID )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:337:1: (otherlv_0= RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:338:3: otherlv_0= RULE_ID
- {
-
- if (current == null) {
- current = createModelElement(grammarAccess.getQualifiedNameRule());
- }
-
- otherlv_0 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleQualifiedName621);
-
- newLeafNode(otherlv_0, grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0());
-
-
- }
-
-
- }
-
- otherlv_1 = (Token) match(input, 15, FOLLOW_15_in_ruleQualifiedName633);
-
- newLeafNode(otherlv_1, grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1());
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:353:1: ( (lv_remaining_2_0= ruleQualifiedName ) )?
- int alt9 = 2;
- int LA9_0 = input.LA(1);
-
- if ((LA9_0 == RULE_ID)) {
- int LA9_1 = input.LA(2);
-
- if ((LA9_1 == 15)) {
- alt9 = 1;
- }
- }
- switch (alt9) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:354:1: (lv_remaining_2_0= ruleQualifiedName )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:354:1: (lv_remaining_2_0= ruleQualifiedName )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:355:3: lv_remaining_2_0= ruleQualifiedName
- {
-
- newCompositeNode(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0());
-
- pushFollow(FOLLOW_ruleQualifiedName_in_ruleQualifiedName654);
- lv_remaining_2_0 = ruleQualifiedName();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getQualifiedNameRule());
- }
- set(
- current,
- "remaining",
- lv_remaining_2_0,
- "QualifiedName");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleQualifiedName"
-
-
- // $ANTLR start "entryRuleMultiplicityRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:379:1: entryRuleMultiplicityRule returns [EObject current=null] : iv_ruleMultiplicityRule=
- // ruleMultiplicityRule EOF ;
- public final EObject entryRuleMultiplicityRule() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleMultiplicityRule = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:380:2: (iv_ruleMultiplicityRule= ruleMultiplicityRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:381:2: iv_ruleMultiplicityRule= ruleMultiplicityRule EOF
- {
- newCompositeNode(grammarAccess.getMultiplicityRuleRule());
- pushFollow(FOLLOW_ruleMultiplicityRule_in_entryRuleMultiplicityRule691);
- iv_ruleMultiplicityRule = ruleMultiplicityRule();
-
- state._fsp--;
-
- current = iv_ruleMultiplicityRule;
- match(input, EOF, FOLLOW_EOF_in_entryRuleMultiplicityRule701);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleMultiplicityRule"
-
-
- // $ANTLR start "ruleMultiplicityRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:388:1: ruleMultiplicityRule returns [EObject current=null] : (otherlv_0= '[' ( (lv_bounds_1_0=
- // ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']' ) ;
- public final EObject ruleMultiplicityRule() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0 = null;
- Token otherlv_2 = null;
- Token otherlv_4 = null;
- EObject lv_bounds_1_0 = null;
-
- EObject lv_bounds_3_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:391:28: ( (otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' (
- // (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:392:1: (otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' (
- // (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:392:1: (otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' (
- // (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:392:3: otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' (
- // (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']'
- {
- otherlv_0 = (Token) match(input, 16, FOLLOW_16_in_ruleMultiplicityRule738);
-
- newLeafNode(otherlv_0, grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0());
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:396:1: ( (lv_bounds_1_0= ruleBoundSpecification ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:397:1: (lv_bounds_1_0= ruleBoundSpecification )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:397:1: (lv_bounds_1_0= ruleBoundSpecification )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:398:3: lv_bounds_1_0= ruleBoundSpecification
- {
-
- newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0());
-
- pushFollow(FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule759);
- lv_bounds_1_0 = ruleBoundSpecification();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule());
- }
- add(
- current,
- "bounds",
- lv_bounds_1_0,
- "BoundSpecification");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:414:2: (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )?
- int alt10 = 2;
- int LA10_0 = input.LA(1);
-
- if ((LA10_0 == 17)) {
- alt10 = 1;
- }
- switch (alt10) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:414:4: otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) )
- {
- otherlv_2 = (Token) match(input, 17, FOLLOW_17_in_ruleMultiplicityRule772);
-
- newLeafNode(otherlv_2, grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0());
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:418:1: ( (lv_bounds_3_0= ruleBoundSpecification ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:419:1: (lv_bounds_3_0= ruleBoundSpecification )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:419:1: (lv_bounds_3_0= ruleBoundSpecification )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:420:3: lv_bounds_3_0= ruleBoundSpecification
- {
-
- newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0());
-
- pushFollow(FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule793);
- lv_bounds_3_0 = ruleBoundSpecification();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule());
- }
- add(
- current,
- "bounds",
- lv_bounds_3_0,
- "BoundSpecification");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_4 = (Token) match(input, 18, FOLLOW_18_in_ruleMultiplicityRule807);
-
- newLeafNode(otherlv_4, grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3());
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleMultiplicityRule"
-
-
- // $ANTLR start "entryRuleBoundSpecification"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:448:1: entryRuleBoundSpecification returns [EObject current=null] : iv_ruleBoundSpecification=
- // ruleBoundSpecification EOF ;
- public final EObject entryRuleBoundSpecification() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBoundSpecification = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:449:2: (iv_ruleBoundSpecification= ruleBoundSpecification EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:450:2: iv_ruleBoundSpecification= ruleBoundSpecification EOF
- {
- newCompositeNode(grammarAccess.getBoundSpecificationRule());
- pushFollow(FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification843);
- iv_ruleBoundSpecification = ruleBoundSpecification();
-
- state._fsp--;
-
- current = iv_ruleBoundSpecification;
- match(input, EOF, FOLLOW_EOF_in_entryRuleBoundSpecification853);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleBoundSpecification"
-
-
- // $ANTLR start "ruleBoundSpecification"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:457:1: ruleBoundSpecification returns [EObject current=null] : ( (lv_value_0_0= ruleUnlimitedLiteral )
- // ) ;
- public final EObject ruleBoundSpecification() throws RecognitionException {
- EObject current = null;
-
- AntlrDatatypeRuleToken lv_value_0_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:460:28: ( ( (lv_value_0_0= ruleUnlimitedLiteral ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:461:1: ( (lv_value_0_0= ruleUnlimitedLiteral ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:461:1: ( (lv_value_0_0= ruleUnlimitedLiteral ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:462:1: (lv_value_0_0= ruleUnlimitedLiteral )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:462:1: (lv_value_0_0= ruleUnlimitedLiteral )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:463:3: lv_value_0_0= ruleUnlimitedLiteral
- {
-
- newCompositeNode(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0());
-
- pushFollow(FOLLOW_ruleUnlimitedLiteral_in_ruleBoundSpecification898);
- lv_value_0_0 = ruleUnlimitedLiteral();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getBoundSpecificationRule());
- }
- set(
- current,
- "value",
- lv_value_0_0,
- "UnlimitedLiteral");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleBoundSpecification"
-
-
- // $ANTLR start "entryRuleUnlimitedLiteral"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:487:1: entryRuleUnlimitedLiteral returns [String current=null] : iv_ruleUnlimitedLiteral=
- // ruleUnlimitedLiteral EOF ;
- public final String entryRuleUnlimitedLiteral() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleUnlimitedLiteral = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:488:2: (iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:489:2: iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF
- {
- newCompositeNode(grammarAccess.getUnlimitedLiteralRule());
- pushFollow(FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral934);
- iv_ruleUnlimitedLiteral = ruleUnlimitedLiteral();
-
- state._fsp--;
-
- current = iv_ruleUnlimitedLiteral.getText();
- match(input, EOF, FOLLOW_EOF_in_entryRuleUnlimitedLiteral945);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleUnlimitedLiteral"
-
-
- // $ANTLR start "ruleUnlimitedLiteral"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:496:1: ruleUnlimitedLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] :
- // (this_INT_0= RULE_INT | kw= '*' ) ;
- public final AntlrDatatypeRuleToken ruleUnlimitedLiteral() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token this_INT_0 = null;
- Token kw = null;
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:499:28: ( (this_INT_0= RULE_INT | kw= '*' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:500:1: (this_INT_0= RULE_INT | kw= '*' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:500:1: (this_INT_0= RULE_INT | kw= '*' )
- int alt11 = 2;
- int LA11_0 = input.LA(1);
-
- if ((LA11_0 == RULE_INT)) {
- alt11 = 1;
- }
- else if ((LA11_0 == 19)) {
- alt11 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 11, 0, input);
-
- throw nvae;
- }
- switch (alt11) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:500:6: this_INT_0= RULE_INT
- {
- this_INT_0 = (Token) match(input, RULE_INT, FOLLOW_RULE_INT_in_ruleUnlimitedLiteral985);
-
- current.merge(this_INT_0);
-
-
- newLeafNode(this_INT_0, grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0());
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:509:2: kw= '*'
- {
- kw = (Token) match(input, 19, FOLLOW_19_in_ruleUnlimitedLiteral1009);
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1());
-
-
- }
- break;
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleUnlimitedLiteral"
-
-
- // $ANTLR start "entryRuleModifiersRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:522:1: entryRuleModifiersRule returns [EObject current=null] : iv_ruleModifiersRule= ruleModifiersRule
- // EOF ;
- public final EObject entryRuleModifiersRule() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleModifiersRule = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:523:2: (iv_ruleModifiersRule= ruleModifiersRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:524:2: iv_ruleModifiersRule= ruleModifiersRule EOF
- {
- newCompositeNode(grammarAccess.getModifiersRuleRule());
- pushFollow(FOLLOW_ruleModifiersRule_in_entryRuleModifiersRule1049);
- iv_ruleModifiersRule = ruleModifiersRule();
-
- state._fsp--;
-
- current = iv_ruleModifiersRule;
- match(input, EOF, FOLLOW_EOF_in_entryRuleModifiersRule1059);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleModifiersRule"
-
-
- // $ANTLR start "ruleModifiersRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:531:1: ruleModifiersRule returns [EObject current=null] : ( () otherlv_1= '{' ( ( (lv_values_2_0=
- // ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' ) ;
- public final EObject ruleModifiersRule() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1 = null;
- Token otherlv_3 = null;
- Token otherlv_5 = null;
- EObject lv_values_2_0 = null;
-
- EObject lv_values_4_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:534:28: ( ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3=
- // ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:535:1: ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' (
- // (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:535:1: ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3=
- // ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:535:2: () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ','
- // ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}'
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:535:2: ()
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:536:5:
- {
-
- current = forceCreateModelElement(
- grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0(),
- current);
-
-
- }
-
- otherlv_1 = (Token) match(input, 20, FOLLOW_20_in_ruleModifiersRule1105);
-
- newLeafNode(otherlv_1, grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1());
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:545:1: ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' (
- // (lv_values_4_0= ruleModifierSpecification ) ) )* )?
- int alt13 = 2;
- int LA13_0 = input.LA(1);
-
- if (((LA13_0 >= 23 && LA13_0 <= 24) || (LA13_0 >= 33 && LA13_0 <= 36))) {
- alt13 = 1;
- }
- switch (alt13) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:545:2: ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' (
- // (lv_values_4_0= ruleModifierSpecification ) ) )*
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:545:2: ( (lv_values_2_0= ruleModifierSpecification ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:546:1: (lv_values_2_0= ruleModifierSpecification )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:546:1: (lv_values_2_0= ruleModifierSpecification )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:547:3: lv_values_2_0= ruleModifierSpecification
- {
-
- newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0());
-
- pushFollow(FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1127);
- lv_values_2_0 = ruleModifierSpecification();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getModifiersRuleRule());
- }
- add(
- current,
- "values",
- lv_values_2_0,
- "ModifierSpecification");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:563:2: (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )*
- loop12: do {
- int alt12 = 2;
- int LA12_0 = input.LA(1);
-
- if ((LA12_0 == 21)) {
- alt12 = 1;
- }
-
-
- switch (alt12) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:563:4: otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) )
- {
- otherlv_3 = (Token) match(input, 21, FOLLOW_21_in_ruleModifiersRule1140);
-
- newLeafNode(otherlv_3, grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0());
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:567:1: ( (lv_values_4_0= ruleModifierSpecification ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:568:1: (lv_values_4_0= ruleModifierSpecification )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:568:1: (lv_values_4_0= ruleModifierSpecification )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:569:3: lv_values_4_0= ruleModifierSpecification
- {
-
- newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0());
-
- pushFollow(FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1161);
- lv_values_4_0 = ruleModifierSpecification();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getModifiersRuleRule());
- }
- add(
- current,
- "values",
- lv_values_4_0,
- "ModifierSpecification");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
- break;
-
- default:
- break loop12;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
- otherlv_5 = (Token) match(input, 22, FOLLOW_22_in_ruleModifiersRule1177);
-
- newLeafNode(otherlv_5, grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3());
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleModifiersRule"
-
-
- // $ANTLR start "entryRuleModifierSpecification"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:597:1: entryRuleModifierSpecification returns [EObject current=null] : iv_ruleModifierSpecification=
- // ruleModifierSpecification EOF ;
- public final EObject entryRuleModifierSpecification() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleModifierSpecification = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:598:2: (iv_ruleModifierSpecification= ruleModifierSpecification EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:599:2: iv_ruleModifierSpecification= ruleModifierSpecification EOF
- {
- newCompositeNode(grammarAccess.getModifierSpecificationRule());
- pushFollow(FOLLOW_ruleModifierSpecification_in_entryRuleModifierSpecification1213);
- iv_ruleModifierSpecification = ruleModifierSpecification();
-
- state._fsp--;
-
- current = iv_ruleModifierSpecification;
- match(input, EOF, FOLLOW_EOF_in_entryRuleModifierSpecification1223);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleModifierSpecification"
-
-
- // $ANTLR start "ruleModifierSpecification"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:606:1: ruleModifierSpecification returns [EObject current=null] : ( ( (lv_value_0_0= ruleModifierKind
- // ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | ( (lv_subsets_2_0= ruleSubsetsRule ) ) ) ;
- public final EObject ruleModifierSpecification() throws RecognitionException {
- EObject current = null;
-
- Enumerator lv_value_0_0 = null;
-
- EObject lv_redefines_1_0 = null;
-
- EObject lv_subsets_2_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:609:28: ( ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) )
- // | ( (lv_subsets_2_0= ruleSubsetsRule ) ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:610:1: ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) |
- // ( (lv_subsets_2_0= ruleSubsetsRule ) ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:610:1: ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule )
- // ) | ( (lv_subsets_2_0= ruleSubsetsRule ) ) )
- int alt14 = 3;
- switch (input.LA(1)) {
- case 33:
- case 34:
- case 35:
- case 36: {
- alt14 = 1;
- }
- break;
- case 23: {
- alt14 = 2;
- }
- break;
- case 24: {
- alt14 = 3;
- }
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 14, 0, input);
-
- throw nvae;
- }
-
- switch (alt14) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:610:2: ( (lv_value_0_0= ruleModifierKind ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:610:2: ( (lv_value_0_0= ruleModifierKind ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:611:1: (lv_value_0_0= ruleModifierKind )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:611:1: (lv_value_0_0= ruleModifierKind )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:612:3: lv_value_0_0= ruleModifierKind
- {
-
- newCompositeNode(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0());
-
- pushFollow(FOLLOW_ruleModifierKind_in_ruleModifierSpecification1269);
- lv_value_0_0 = ruleModifierKind();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
- }
- set(
- current,
- "value",
- lv_value_0_0,
- "ModifierKind");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:629:6: ( (lv_redefines_1_0= ruleRedefinesRule ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:629:6: ( (lv_redefines_1_0= ruleRedefinesRule ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:630:1: (lv_redefines_1_0= ruleRedefinesRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:630:1: (lv_redefines_1_0= ruleRedefinesRule )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:631:3: lv_redefines_1_0= ruleRedefinesRule
- {
-
- newCompositeNode(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0());
-
- pushFollow(FOLLOW_ruleRedefinesRule_in_ruleModifierSpecification1296);
- lv_redefines_1_0 = ruleRedefinesRule();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
- }
- set(
- current,
- "redefines",
- lv_redefines_1_0,
- "RedefinesRule");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:648:6: ( (lv_subsets_2_0= ruleSubsetsRule ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:648:6: ( (lv_subsets_2_0= ruleSubsetsRule ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:649:1: (lv_subsets_2_0= ruleSubsetsRule )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:649:1: (lv_subsets_2_0= ruleSubsetsRule )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:650:3: lv_subsets_2_0= ruleSubsetsRule
- {
-
- newCompositeNode(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0());
-
- pushFollow(FOLLOW_ruleSubsetsRule_in_ruleModifierSpecification1323);
- lv_subsets_2_0 = ruleSubsetsRule();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
- }
- set(
- current,
- "subsets",
- lv_subsets_2_0,
- "SubsetsRule");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleModifierSpecification"
-
-
- // $ANTLR start "entryRuleRedefinesRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:674:1: entryRuleRedefinesRule returns [EObject current=null] : iv_ruleRedefinesRule= ruleRedefinesRule
- // EOF ;
- public final EObject entryRuleRedefinesRule() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleRedefinesRule = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:675:2: (iv_ruleRedefinesRule= ruleRedefinesRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:676:2: iv_ruleRedefinesRule= ruleRedefinesRule EOF
- {
- newCompositeNode(grammarAccess.getRedefinesRuleRule());
- pushFollow(FOLLOW_ruleRedefinesRule_in_entryRuleRedefinesRule1359);
- iv_ruleRedefinesRule = ruleRedefinesRule();
-
- state._fsp--;
-
- current = iv_ruleRedefinesRule;
- match(input, EOF, FOLLOW_EOF_in_entryRuleRedefinesRule1369);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleRedefinesRule"
-
-
- // $ANTLR start "ruleRedefinesRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:683:1: ruleRedefinesRule returns [EObject current=null] : (otherlv_0= 'redefines' ( (otherlv_1=
- // RULE_ID ) ) ) ;
- public final EObject ruleRedefinesRule() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0 = null;
- Token otherlv_1 = null;
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:686:28: ( (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:687:1: (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:687:1: (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:687:3: otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) )
- {
- otherlv_0 = (Token) match(input, 23, FOLLOW_23_in_ruleRedefinesRule1406);
-
- newLeafNode(otherlv_0, grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0());
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:691:1: ( (otherlv_1= RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:692:1: (otherlv_1= RULE_ID )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:692:1: (otherlv_1= RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:693:3: otherlv_1= RULE_ID
- {
-
- if (current == null) {
- current = createModelElement(grammarAccess.getRedefinesRuleRule());
- }
-
- otherlv_1 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleRedefinesRule1426);
-
- newLeafNode(otherlv_1, grammarAccess.getRedefinesRuleAccess().getPropertyPropertyCrossReference_1_0());
-
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleRedefinesRule"
-
-
- // $ANTLR start "entryRuleSubsetsRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:712:1: entryRuleSubsetsRule returns [EObject current=null] : iv_ruleSubsetsRule= ruleSubsetsRule EOF ;
- public final EObject entryRuleSubsetsRule() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSubsetsRule = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:713:2: (iv_ruleSubsetsRule= ruleSubsetsRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:714:2: iv_ruleSubsetsRule= ruleSubsetsRule EOF
- {
- newCompositeNode(grammarAccess.getSubsetsRuleRule());
- pushFollow(FOLLOW_ruleSubsetsRule_in_entryRuleSubsetsRule1462);
- iv_ruleSubsetsRule = ruleSubsetsRule();
-
- state._fsp--;
-
- current = iv_ruleSubsetsRule;
- match(input, EOF, FOLLOW_EOF_in_entryRuleSubsetsRule1472);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleSubsetsRule"
-
-
- // $ANTLR start "ruleSubsetsRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:721:1: ruleSubsetsRule returns [EObject current=null] : (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID )
- // ) ) ;
- public final EObject ruleSubsetsRule() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0 = null;
- Token otherlv_1 = null;
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:724:28: ( (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:725:1: (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:725:1: (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:725:3: otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) )
- {
- otherlv_0 = (Token) match(input, 24, FOLLOW_24_in_ruleSubsetsRule1509);
-
- newLeafNode(otherlv_0, grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0());
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:729:1: ( (otherlv_1= RULE_ID ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:730:1: (otherlv_1= RULE_ID )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:730:1: (otherlv_1= RULE_ID )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:731:3: otherlv_1= RULE_ID
- {
-
- if (current == null) {
- current = createModelElement(grammarAccess.getSubsetsRuleRule());
- }
-
- otherlv_1 = (Token) match(input, RULE_ID, FOLLOW_RULE_ID_in_ruleSubsetsRule1529);
-
- newLeafNode(otherlv_1, grammarAccess.getSubsetsRuleAccess().getPropertyPropertyCrossReference_1_0());
-
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleSubsetsRule"
-
-
- // $ANTLR start "entryRuleDefaultValueRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:750:1: entryRuleDefaultValueRule returns [EObject current=null] : iv_ruleDefaultValueRule=
- // ruleDefaultValueRule EOF ;
- public final EObject entryRuleDefaultValueRule() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleDefaultValueRule = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:751:2: (iv_ruleDefaultValueRule= ruleDefaultValueRule EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:752:2: iv_ruleDefaultValueRule= ruleDefaultValueRule EOF
- {
- newCompositeNode(grammarAccess.getDefaultValueRuleRule());
- pushFollow(FOLLOW_ruleDefaultValueRule_in_entryRuleDefaultValueRule1565);
- iv_ruleDefaultValueRule = ruleDefaultValueRule();
-
- state._fsp--;
-
- current = iv_ruleDefaultValueRule;
- match(input, EOF, FOLLOW_EOF_in_entryRuleDefaultValueRule1575);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleDefaultValueRule"
-
-
- // $ANTLR start "ruleDefaultValueRule"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:759:1: ruleDefaultValueRule returns [EObject current=null] : (otherlv_0= '=' ( (lv_default_1_0=
- // ruleValue ) ) ) ;
- public final EObject ruleDefaultValueRule() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0 = null;
- EObject lv_default_1_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:762:28: ( (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:763:1: (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:763:1: (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:763:3: otherlv_0= '=' ( (lv_default_1_0= ruleValue ) )
- {
- otherlv_0 = (Token) match(input, 25, FOLLOW_25_in_ruleDefaultValueRule1612);
-
- newLeafNode(otherlv_0, grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0());
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:767:1: ( (lv_default_1_0= ruleValue ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:768:1: (lv_default_1_0= ruleValue )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:768:1: (lv_default_1_0= ruleValue )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:769:3: lv_default_1_0= ruleValue
- {
-
- newCompositeNode(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0());
-
- pushFollow(FOLLOW_ruleValue_in_ruleDefaultValueRule1633);
- lv_default_1_0 = ruleValue();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getDefaultValueRuleRule());
- }
- set(
- current,
- "default",
- lv_default_1_0,
- "Value");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleDefaultValueRule"
-
-
- // $ANTLR start "entryRuleValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:793:1: entryRuleValue returns [EObject current=null] : iv_ruleValue= ruleValue EOF ;
- public final EObject entryRuleValue() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleValue = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:794:2: (iv_ruleValue= ruleValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:795:2: iv_ruleValue= ruleValue EOF
- {
- newCompositeNode(grammarAccess.getValueRule());
- pushFollow(FOLLOW_ruleValue_in_entryRuleValue1669);
- iv_ruleValue = ruleValue();
-
- state._fsp--;
-
- current = iv_ruleValue;
- match(input, EOF, FOLLOW_EOF_in_entryRuleValue1679);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleValue"
-
-
- // $ANTLR start "ruleValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:802:1: ruleValue returns [EObject current=null] : (this_IntValue_0= ruleIntValue | this_StringValue_1=
- // ruleStringValue | this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue ) ;
- public final EObject ruleValue() throws RecognitionException {
- EObject current = null;
-
- EObject this_IntValue_0 = null;
-
- EObject this_StringValue_1 = null;
-
- EObject this_BooleanValue_2 = null;
-
- EObject this_RealValue_3 = null;
-
- EObject this_NullValue_4 = null;
-
- EObject this_NoValue_5 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:805:28: ( (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue |
- // this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:806:1: (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue |
- // this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:806:1: (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue |
- // this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue )
- int alt15 = 6;
- switch (input.LA(1)) {
- case RULE_INT: {
- int LA15_1 = input.LA(2);
-
- if ((LA15_1 == 26)) {
- alt15 = 4;
- }
- else if ((LA15_1 == EOF)) {
- alt15 = 1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 15, 1, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_STRING: {
- alt15 = 2;
- }
- break;
- case 37:
- case 38: {
- alt15 = 3;
- }
- break;
- case 26: {
- alt15 = 4;
- }
- break;
- case 27: {
- alt15 = 5;
- }
- break;
- case 28: {
- alt15 = 6;
- }
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 15, 0, input);
-
- throw nvae;
- }
-
- switch (alt15) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:807:5: this_IntValue_0= ruleIntValue
- {
-
- newCompositeNode(grammarAccess.getValueAccess().getIntValueParserRuleCall_0());
-
- pushFollow(FOLLOW_ruleIntValue_in_ruleValue1726);
- this_IntValue_0 = ruleIntValue();
-
- state._fsp--;
-
-
- current = this_IntValue_0;
- afterParserOrEnumRuleCall();
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:817:5: this_StringValue_1= ruleStringValue
- {
-
- newCompositeNode(grammarAccess.getValueAccess().getStringValueParserRuleCall_1());
-
- pushFollow(FOLLOW_ruleStringValue_in_ruleValue1753);
- this_StringValue_1 = ruleStringValue();
-
- state._fsp--;
-
-
- current = this_StringValue_1;
- afterParserOrEnumRuleCall();
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:827:5: this_BooleanValue_2= ruleBooleanValue
- {
-
- newCompositeNode(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2());
-
- pushFollow(FOLLOW_ruleBooleanValue_in_ruleValue1780);
- this_BooleanValue_2 = ruleBooleanValue();
-
- state._fsp--;
-
-
- current = this_BooleanValue_2;
- afterParserOrEnumRuleCall();
-
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:837:5: this_RealValue_3= ruleRealValue
- {
-
- newCompositeNode(grammarAccess.getValueAccess().getRealValueParserRuleCall_3());
-
- pushFollow(FOLLOW_ruleRealValue_in_ruleValue1807);
- this_RealValue_3 = ruleRealValue();
-
- state._fsp--;
-
-
- current = this_RealValue_3;
- afterParserOrEnumRuleCall();
-
-
- }
- break;
- case 5:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:847:5: this_NullValue_4= ruleNullValue
- {
-
- newCompositeNode(grammarAccess.getValueAccess().getNullValueParserRuleCall_4());
-
- pushFollow(FOLLOW_ruleNullValue_in_ruleValue1834);
- this_NullValue_4 = ruleNullValue();
-
- state._fsp--;
-
-
- current = this_NullValue_4;
- afterParserOrEnumRuleCall();
-
-
- }
- break;
- case 6:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:857:5: this_NoValue_5= ruleNoValue
- {
-
- newCompositeNode(grammarAccess.getValueAccess().getNoValueParserRuleCall_5());
-
- pushFollow(FOLLOW_ruleNoValue_in_ruleValue1861);
- this_NoValue_5 = ruleNoValue();
-
- state._fsp--;
-
-
- current = this_NoValue_5;
- afterParserOrEnumRuleCall();
-
-
- }
- break;
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleValue"
-
-
- // $ANTLR start "entryRuleIntValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:873:1: entryRuleIntValue returns [EObject current=null] : iv_ruleIntValue= ruleIntValue EOF ;
- public final EObject entryRuleIntValue() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleIntValue = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:874:2: (iv_ruleIntValue= ruleIntValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:875:2: iv_ruleIntValue= ruleIntValue EOF
- {
- newCompositeNode(grammarAccess.getIntValueRule());
- pushFollow(FOLLOW_ruleIntValue_in_entryRuleIntValue1896);
- iv_ruleIntValue = ruleIntValue();
-
- state._fsp--;
-
- current = iv_ruleIntValue;
- match(input, EOF, FOLLOW_EOF_in_entryRuleIntValue1906);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleIntValue"
-
-
- // $ANTLR start "ruleIntValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:882:1: ruleIntValue returns [EObject current=null] : ( (lv_literalInteger_0_0= RULE_INT ) ) ;
- public final EObject ruleIntValue() throws RecognitionException {
- EObject current = null;
-
- Token lv_literalInteger_0_0 = null;
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:885:28: ( ( (lv_literalInteger_0_0= RULE_INT ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:886:1: ( (lv_literalInteger_0_0= RULE_INT ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:886:1: ( (lv_literalInteger_0_0= RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:887:1: (lv_literalInteger_0_0= RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:887:1: (lv_literalInteger_0_0= RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:888:3: lv_literalInteger_0_0= RULE_INT
- {
- lv_literalInteger_0_0 = (Token) match(input, RULE_INT, FOLLOW_RULE_INT_in_ruleIntValue1947);
-
- newLeafNode(lv_literalInteger_0_0, grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0());
-
-
- if (current == null) {
- current = createModelElement(grammarAccess.getIntValueRule());
- }
- setWithLastConsumed(
- current,
- "literalInteger",
- lv_literalInteger_0_0,
- "INT");
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleIntValue"
-
-
- // $ANTLR start "entryRuleStringValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:912:1: entryRuleStringValue returns [EObject current=null] : iv_ruleStringValue= ruleStringValue EOF ;
- public final EObject entryRuleStringValue() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleStringValue = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:913:2: (iv_ruleStringValue= ruleStringValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:914:2: iv_ruleStringValue= ruleStringValue EOF
- {
- newCompositeNode(grammarAccess.getStringValueRule());
- pushFollow(FOLLOW_ruleStringValue_in_entryRuleStringValue1987);
- iv_ruleStringValue = ruleStringValue();
-
- state._fsp--;
-
- current = iv_ruleStringValue;
- match(input, EOF, FOLLOW_EOF_in_entryRuleStringValue1997);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleStringValue"
-
-
- // $ANTLR start "ruleStringValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:921:1: ruleStringValue returns [EObject current=null] : ( (lv_literalString_0_0= RULE_STRING ) ) ;
- public final EObject ruleStringValue() throws RecognitionException {
- EObject current = null;
-
- Token lv_literalString_0_0 = null;
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:924:28: ( ( (lv_literalString_0_0= RULE_STRING ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:925:1: ( (lv_literalString_0_0= RULE_STRING ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:925:1: ( (lv_literalString_0_0= RULE_STRING ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:926:1: (lv_literalString_0_0= RULE_STRING )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:926:1: (lv_literalString_0_0= RULE_STRING )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:927:3: lv_literalString_0_0= RULE_STRING
- {
- lv_literalString_0_0 = (Token) match(input, RULE_STRING, FOLLOW_RULE_STRING_in_ruleStringValue2038);
-
- newLeafNode(lv_literalString_0_0, grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0());
-
-
- if (current == null) {
- current = createModelElement(grammarAccess.getStringValueRule());
- }
- setWithLastConsumed(
- current,
- "literalString",
- lv_literalString_0_0,
- "STRING");
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleStringValue"
-
-
- // $ANTLR start "entryRuleBooleanValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:951:1: entryRuleBooleanValue returns [EObject current=null] : iv_ruleBooleanValue= ruleBooleanValue
- // EOF ;
- public final EObject entryRuleBooleanValue() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBooleanValue = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:952:2: (iv_ruleBooleanValue= ruleBooleanValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:953:2: iv_ruleBooleanValue= ruleBooleanValue EOF
- {
- newCompositeNode(grammarAccess.getBooleanValueRule());
- pushFollow(FOLLOW_ruleBooleanValue_in_entryRuleBooleanValue2078);
- iv_ruleBooleanValue = ruleBooleanValue();
-
- state._fsp--;
-
- current = iv_ruleBooleanValue;
- match(input, EOF, FOLLOW_EOF_in_entryRuleBooleanValue2088);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleBooleanValue"
-
-
- // $ANTLR start "ruleBooleanValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:960:1: ruleBooleanValue returns [EObject current=null] : ( (lv_literalBoolean_0_0= ruleBooleanLiterals
- // ) ) ;
- public final EObject ruleBooleanValue() throws RecognitionException {
- EObject current = null;
-
- Enumerator lv_literalBoolean_0_0 = null;
-
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:963:28: ( ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:964:1: ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:964:1: ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:965:1: (lv_literalBoolean_0_0= ruleBooleanLiterals )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:965:1: (lv_literalBoolean_0_0= ruleBooleanLiterals )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:966:3: lv_literalBoolean_0_0= ruleBooleanLiterals
- {
-
- newCompositeNode(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0());
-
- pushFollow(FOLLOW_ruleBooleanLiterals_in_ruleBooleanValue2133);
- lv_literalBoolean_0_0 = ruleBooleanLiterals();
-
- state._fsp--;
-
-
- if (current == null) {
- current = createModelElementForParent(grammarAccess.getBooleanValueRule());
- }
- set(
- current,
- "literalBoolean",
- lv_literalBoolean_0_0,
- "BooleanLiterals");
- afterParserOrEnumRuleCall();
-
-
- }
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleBooleanValue"
-
-
- // $ANTLR start "entryRuleRealValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:990:1: entryRuleRealValue returns [EObject current=null] : iv_ruleRealValue= ruleRealValue EOF ;
- public final EObject entryRuleRealValue() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleRealValue = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:991:2: (iv_ruleRealValue= ruleRealValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:992:2: iv_ruleRealValue= ruleRealValue EOF
- {
- newCompositeNode(grammarAccess.getRealValueRule());
- pushFollow(FOLLOW_ruleRealValue_in_entryRuleRealValue2168);
- iv_ruleRealValue = ruleRealValue();
-
- state._fsp--;
-
- current = iv_ruleRealValue;
- match(input, EOF, FOLLOW_EOF_in_entryRuleRealValue2178);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleRealValue"
-
-
- // $ANTLR start "ruleRealValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:999:1: ruleRealValue returns [EObject current=null] : ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1=
- // '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) ) ;
- public final EObject ruleRealValue() throws RecognitionException {
- EObject current = null;
-
- Token lv_integer_0_0 = null;
- Token otherlv_1 = null;
- Token otherlv_2 = null;
- Token lv_fraction_3_0 = null;
- Token lv_integer_4_0 = null;
- Token otherlv_5 = null;
- Token lv_fraction_6_0 = null;
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1002:28: ( ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' (
- // (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1003:1: ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' (
- // (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1003:1: ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' (
- // (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) )
- int alt16 = 3;
- int LA16_0 = input.LA(1);
-
- if ((LA16_0 == RULE_INT)) {
- int LA16_1 = input.LA(2);
-
- if ((LA16_1 == 26)) {
- int LA16_3 = input.LA(3);
-
- if ((LA16_3 == RULE_INT)) {
- alt16 = 3;
- }
- else if ((LA16_3 == EOF)) {
- alt16 = 1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 16, 3, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 16, 1, input);
-
- throw nvae;
- }
- }
- else if ((LA16_0 == 26)) {
- alt16 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 16, 0, input);
-
- throw nvae;
- }
- switch (alt16) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1003:2: ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1003:2: ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1003:3: ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.'
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1003:3: ( (lv_integer_0_0= RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1004:1: (lv_integer_0_0= RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1004:1: (lv_integer_0_0= RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1005:3: lv_integer_0_0= RULE_INT
- {
- lv_integer_0_0 = (Token) match(input, RULE_INT, FOLLOW_RULE_INT_in_ruleRealValue2221);
-
- newLeafNode(lv_integer_0_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0());
-
-
- if (current == null) {
- current = createModelElement(grammarAccess.getRealValueRule());
- }
- setWithLastConsumed(
- current,
- "integer",
- lv_integer_0_0,
- "INT");
-
-
- }
-
-
- }
-
- otherlv_1 = (Token) match(input, 26, FOLLOW_26_in_ruleRealValue2238);
-
- newLeafNode(otherlv_1, grammarAccess.getRealValueAccess().getFullStopKeyword_0_1());
-
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1026:6: (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1026:6: (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1026:8: otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) )
- {
- otherlv_2 = (Token) match(input, 26, FOLLOW_26_in_ruleRealValue2258);
-
- newLeafNode(otherlv_2, grammarAccess.getRealValueAccess().getFullStopKeyword_1_0());
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1030:1: ( (lv_fraction_3_0= RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1031:1: (lv_fraction_3_0= RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1031:1: (lv_fraction_3_0= RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1032:3: lv_fraction_3_0= RULE_INT
- {
- lv_fraction_3_0 = (Token) match(input, RULE_INT, FOLLOW_RULE_INT_in_ruleRealValue2275);
-
- newLeafNode(lv_fraction_3_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0());
-
-
- if (current == null) {
- current = createModelElement(grammarAccess.getRealValueRule());
- }
- setWithLastConsumed(
- current,
- "fraction",
- lv_fraction_3_0,
- "INT");
-
-
- }
-
-
- }
-
-
- }
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1049:6: ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) )
- // )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1049:6: ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT
- // ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1049:7: ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT )
- // )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1049:7: ( (lv_integer_4_0= RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1050:1: (lv_integer_4_0= RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1050:1: (lv_integer_4_0= RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1051:3: lv_integer_4_0= RULE_INT
- {
- lv_integer_4_0 = (Token) match(input, RULE_INT, FOLLOW_RULE_INT_in_ruleRealValue2305);
-
- newLeafNode(lv_integer_4_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0());
-
-
- if (current == null) {
- current = createModelElement(grammarAccess.getRealValueRule());
- }
- setWithLastConsumed(
- current,
- "integer",
- lv_integer_4_0,
- "INT");
-
-
- }
-
-
- }
-
- otherlv_5 = (Token) match(input, 26, FOLLOW_26_in_ruleRealValue2322);
-
- newLeafNode(otherlv_5, grammarAccess.getRealValueAccess().getFullStopKeyword_2_1());
-
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1071:1: ( (lv_fraction_6_0= RULE_INT ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1072:1: (lv_fraction_6_0= RULE_INT )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1072:1: (lv_fraction_6_0= RULE_INT )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1073:3: lv_fraction_6_0= RULE_INT
- {
- lv_fraction_6_0 = (Token) match(input, RULE_INT, FOLLOW_RULE_INT_in_ruleRealValue2339);
-
- newLeafNode(lv_fraction_6_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0());
-
-
- if (current == null) {
- current = createModelElement(grammarAccess.getRealValueRule());
- }
- setWithLastConsumed(
- current,
- "fraction",
- lv_fraction_6_0,
- "INT");
-
-
- }
-
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleRealValue"
-
-
- // $ANTLR start "entryRuleNullValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1097:1: entryRuleNullValue returns [EObject current=null] : iv_ruleNullValue= ruleNullValue EOF ;
- public final EObject entryRuleNullValue() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNullValue = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1098:2: (iv_ruleNullValue= ruleNullValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1099:2: iv_ruleNullValue= ruleNullValue EOF
- {
- newCompositeNode(grammarAccess.getNullValueRule());
- pushFollow(FOLLOW_ruleNullValue_in_entryRuleNullValue2381);
- iv_ruleNullValue = ruleNullValue();
-
- state._fsp--;
-
- current = iv_ruleNullValue;
- match(input, EOF, FOLLOW_EOF_in_entryRuleNullValue2391);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleNullValue"
-
-
- // $ANTLR start "ruleNullValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1106:1: ruleNullValue returns [EObject current=null] : ( () otherlv_1= 'null' ) ;
- public final EObject ruleNullValue() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1 = null;
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1109:28: ( ( () otherlv_1= 'null' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1110:1: ( () otherlv_1= 'null' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1110:1: ( () otherlv_1= 'null' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1110:2: () otherlv_1= 'null'
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1110:2: ()
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1111:5:
- {
-
- current = forceCreateModelElement(
- grammarAccess.getNullValueAccess().getNullValueAction_0(),
- current);
-
-
- }
-
- otherlv_1 = (Token) match(input, 27, FOLLOW_27_in_ruleNullValue2437);
-
- newLeafNode(otherlv_1, grammarAccess.getNullValueAccess().getNullKeyword_1());
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleNullValue"
-
-
- // $ANTLR start "entryRuleNoValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1128:1: entryRuleNoValue returns [EObject current=null] : iv_ruleNoValue= ruleNoValue EOF ;
- public final EObject entryRuleNoValue() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNoValue = null;
-
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1129:2: (iv_ruleNoValue= ruleNoValue EOF )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1130:2: iv_ruleNoValue= ruleNoValue EOF
- {
- newCompositeNode(grammarAccess.getNoValueRule());
- pushFollow(FOLLOW_ruleNoValue_in_entryRuleNoValue2473);
- iv_ruleNoValue = ruleNoValue();
-
- state._fsp--;
-
- current = iv_ruleNoValue;
- match(input, EOF, FOLLOW_EOF_in_entryRuleNoValue2483);
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "entryRuleNoValue"
-
-
- // $ANTLR start "ruleNoValue"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1137:1: ruleNoValue returns [EObject current=null] : ( () otherlv_1= 'none' ) ;
- public final EObject ruleNoValue() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1 = null;
-
- enterRule();
-
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1140:28: ( ( () otherlv_1= 'none' ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1141:1: ( () otherlv_1= 'none' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1141:1: ( () otherlv_1= 'none' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1141:2: () otherlv_1= 'none'
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1141:2: ()
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1142:5:
- {
-
- current = forceCreateModelElement(
- grammarAccess.getNoValueAccess().getNoValueAction_0(),
- current);
-
-
- }
-
- otherlv_1 = (Token) match(input, 28, FOLLOW_28_in_ruleNoValue2529);
-
- newLeafNode(otherlv_1, grammarAccess.getNoValueAccess().getNoneKeyword_1());
-
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleNoValue"
-
-
- // $ANTLR start "ruleVisibilityKind"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1159:1: ruleVisibilityKind returns [Enumerator current=null] : ( (enumLiteral_0= '+' ) |
- // (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~' ) ) ;
- public final Enumerator ruleVisibilityKind() throws RecognitionException {
- Enumerator current = null;
-
- Token enumLiteral_0 = null;
- Token enumLiteral_1 = null;
- Token enumLiteral_2 = null;
- Token enumLiteral_3 = null;
-
- enterRule();
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1161:28: ( ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) |
- // (enumLiteral_3= '~' ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1162:1: ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) |
- // (enumLiteral_3= '~' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1162:1: ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) |
- // (enumLiteral_3= '~' ) )
- int alt17 = 4;
- switch (input.LA(1)) {
- case 29: {
- alt17 = 1;
- }
- break;
- case 30: {
- alt17 = 2;
- }
- break;
- case 31: {
- alt17 = 3;
- }
- break;
- case 32: {
- alt17 = 4;
- }
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 17, 0, input);
-
- throw nvae;
- }
-
- switch (alt17) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1162:2: (enumLiteral_0= '+' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1162:2: (enumLiteral_0= '+' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1162:4: enumLiteral_0= '+'
- {
- enumLiteral_0 = (Token) match(input, 29, FOLLOW_29_in_ruleVisibilityKind2579);
-
- current = grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_0, grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0());
-
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1168:6: (enumLiteral_1= '-' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1168:6: (enumLiteral_1= '-' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1168:8: enumLiteral_1= '-'
- {
- enumLiteral_1 = (Token) match(input, 30, FOLLOW_30_in_ruleVisibilityKind2596);
-
- current = grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_1, grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1());
-
-
- }
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1174:6: (enumLiteral_2= '#' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1174:6: (enumLiteral_2= '#' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1174:8: enumLiteral_2= '#'
- {
- enumLiteral_2 = (Token) match(input, 31, FOLLOW_31_in_ruleVisibilityKind2613);
-
- current = grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_2, grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2());
-
-
- }
-
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1180:6: (enumLiteral_3= '~' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1180:6: (enumLiteral_3= '~' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1180:8: enumLiteral_3= '~'
- {
- enumLiteral_3 = (Token) match(input, 32, FOLLOW_32_in_ruleVisibilityKind2630);
-
- current = grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_3, grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3());
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleVisibilityKind"
-
-
- // $ANTLR start "ruleModifierKind"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1190:1: ruleModifierKind returns [Enumerator current=null] : ( (enumLiteral_0= 'readOnly' ) |
- // (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) | (enumLiteral_3= 'unique' ) ) ;
- public final Enumerator ruleModifierKind() throws RecognitionException {
- Enumerator current = null;
-
- Token enumLiteral_0 = null;
- Token enumLiteral_1 = null;
- Token enumLiteral_2 = null;
- Token enumLiteral_3 = null;
-
- enterRule();
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1192:28: ( ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2=
- // 'ordered' ) | (enumLiteral_3= 'unique' ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1193:1: ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered'
- // ) | (enumLiteral_3= 'unique' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1193:1: ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2=
- // 'ordered' ) | (enumLiteral_3= 'unique' ) )
- int alt18 = 4;
- switch (input.LA(1)) {
- case 33: {
- alt18 = 1;
- }
- break;
- case 34: {
- alt18 = 2;
- }
- break;
- case 35: {
- alt18 = 3;
- }
- break;
- case 36: {
- alt18 = 4;
- }
- break;
- default:
- NoViableAltException nvae =
- new NoViableAltException("", 18, 0, input);
-
- throw nvae;
- }
-
- switch (alt18) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1193:2: (enumLiteral_0= 'readOnly' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1193:2: (enumLiteral_0= 'readOnly' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1193:4: enumLiteral_0= 'readOnly'
- {
- enumLiteral_0 = (Token) match(input, 33, FOLLOW_33_in_ruleModifierKind2675);
-
- current = grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_0, grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0());
-
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1199:6: (enumLiteral_1= 'union' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1199:6: (enumLiteral_1= 'union' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1199:8: enumLiteral_1= 'union'
- {
- enumLiteral_1 = (Token) match(input, 34, FOLLOW_34_in_ruleModifierKind2692);
-
- current = grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_1, grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1());
-
-
- }
-
-
- }
- break;
- case 3:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1205:6: (enumLiteral_2= 'ordered' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1205:6: (enumLiteral_2= 'ordered' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1205:8: enumLiteral_2= 'ordered'
- {
- enumLiteral_2 = (Token) match(input, 35, FOLLOW_35_in_ruleModifierKind2709);
-
- current = grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_2, grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2());
-
-
- }
-
-
- }
- break;
- case 4:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1211:6: (enumLiteral_3= 'unique' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1211:6: (enumLiteral_3= 'unique' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1211:8: enumLiteral_3= 'unique'
- {
- enumLiteral_3 = (Token) match(input, 36, FOLLOW_36_in_ruleModifierKind2726);
-
- current = grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_3, grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3());
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleModifierKind"
-
-
- // $ANTLR start "ruleBooleanLiterals"
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1221:1: ruleBooleanLiterals returns [Enumerator current=null] : ( (enumLiteral_0= 'true' ) |
- // (enumLiteral_1= 'false' ) ) ;
- public final Enumerator ruleBooleanLiterals() throws RecognitionException {
- Enumerator current = null;
-
- Token enumLiteral_0 = null;
- Token enumLiteral_1 = null;
-
- enterRule();
- try {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1223:28: ( ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) ) )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1224:1: ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1224:1: ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) )
- int alt19 = 2;
- int LA19_0 = input.LA(1);
-
- if ((LA19_0 == 37)) {
- alt19 = 1;
- }
- else if ((LA19_0 == 38)) {
- alt19 = 2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 19, 0, input);
-
- throw nvae;
- }
- switch (alt19) {
- case 1:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1224:2: (enumLiteral_0= 'true' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1224:2: (enumLiteral_0= 'true' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1224:4: enumLiteral_0= 'true'
- {
- enumLiteral_0 = (Token) match(input, 37, FOLLOW_37_in_ruleBooleanLiterals2771);
-
- current = grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_0, grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0());
-
-
- }
-
-
- }
- break;
- case 2:
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1230:6: (enumLiteral_1= 'false' )
- {
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1230:6: (enumLiteral_1= 'false' )
- // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1230:8: enumLiteral_1= 'false'
- {
- enumLiteral_1 = (Token) match(input, 38, FOLLOW_38_in_ruleBooleanLiterals2788);
-
- current = grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_1, grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1());
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- leaveRule();
- }
-
- catch (RecognitionException re) {
- recover(input, re);
- appendSkippedTokens();
- } finally {
- }
- return current;
- }
-
- // $ANTLR end "ruleBooleanLiterals"
-
- // Delegated rules
-
-
-
-
- public static final BitSet FOLLOW_rulePropertyRule_in_entryRulePropertyRule75 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRulePropertyRule85 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleVisibilityRule_in_rulePropertyRule131 = new BitSet(new long[] { 0x0000000000001010L });
- public static final BitSet FOLLOW_12_in_rulePropertyRule150 = new BitSet(new long[] { 0x0000000000000010L });
- public static final BitSet FOLLOW_RULE_ID_in_rulePropertyRule181 = new BitSet(new long[] { 0x0000000002112002L });
- public static final BitSet FOLLOW_13_in_rulePropertyRule199 = new BitSet(new long[] { 0x0000000000004010L });
- public static final BitSet FOLLOW_ruleTypeRule_in_rulePropertyRule221 = new BitSet(new long[] { 0x0000000002110002L });
- public static final BitSet FOLLOW_14_in_rulePropertyRule245 = new BitSet(new long[] { 0x0000000002110002L });
- public static final BitSet FOLLOW_ruleMultiplicityRule_in_rulePropertyRule282 = new BitSet(new long[] { 0x0000000002100002L });
- public static final BitSet FOLLOW_ruleModifiersRule_in_rulePropertyRule304 = new BitSet(new long[] { 0x0000000002000002L });
- public static final BitSet FOLLOW_ruleDefaultValueRule_in_rulePropertyRule326 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleVisibilityRule_in_entryRuleVisibilityRule363 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleVisibilityRule373 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleVisibilityKind_in_ruleVisibilityRule418 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleTypeRule_in_entryRuleTypeRule453 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleTypeRule463 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleQualifiedName_in_ruleTypeRule509 = new BitSet(new long[] { 0x0000000000000010L });
- public static final BitSet FOLLOW_RULE_ID_in_ruleTypeRule530 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName566 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleQualifiedName576 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_ID_in_ruleQualifiedName621 = new BitSet(new long[] { 0x0000000000008000L });
- public static final BitSet FOLLOW_15_in_ruleQualifiedName633 = new BitSet(new long[] { 0x0000000000000012L });
- public static final BitSet FOLLOW_ruleQualifiedName_in_ruleQualifiedName654 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleMultiplicityRule_in_entryRuleMultiplicityRule691 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleMultiplicityRule701 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_16_in_ruleMultiplicityRule738 = new BitSet(new long[] { 0x0000000000080020L });
- public static final BitSet FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule759 = new BitSet(new long[] { 0x0000000000060000L });
- public static final BitSet FOLLOW_17_in_ruleMultiplicityRule772 = new BitSet(new long[] { 0x0000000000080020L });
- public static final BitSet FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule793 = new BitSet(new long[] { 0x0000000000040000L });
- public static final BitSet FOLLOW_18_in_ruleMultiplicityRule807 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification843 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleBoundSpecification853 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_ruleBoundSpecification898 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral934 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleUnlimitedLiteral945 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_ruleUnlimitedLiteral985 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_19_in_ruleUnlimitedLiteral1009 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleModifiersRule_in_entryRuleModifiersRule1049 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleModifiersRule1059 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_20_in_ruleModifiersRule1105 = new BitSet(new long[] { 0x0000001E01C00000L });
- public static final BitSet FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1127 = new BitSet(new long[] { 0x0000000000600000L });
- public static final BitSet FOLLOW_21_in_ruleModifiersRule1140 = new BitSet(new long[] { 0x0000001E01800000L });
- public static final BitSet FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1161 = new BitSet(new long[] { 0x0000000000600000L });
- public static final BitSet FOLLOW_22_in_ruleModifiersRule1177 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleModifierSpecification_in_entryRuleModifierSpecification1213 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleModifierSpecification1223 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleModifierKind_in_ruleModifierSpecification1269 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleRedefinesRule_in_ruleModifierSpecification1296 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleSubsetsRule_in_ruleModifierSpecification1323 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleRedefinesRule_in_entryRuleRedefinesRule1359 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleRedefinesRule1369 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_23_in_ruleRedefinesRule1406 = new BitSet(new long[] { 0x0000000000000010L });
- public static final BitSet FOLLOW_RULE_ID_in_ruleRedefinesRule1426 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleSubsetsRule_in_entryRuleSubsetsRule1462 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleSubsetsRule1472 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_24_in_ruleSubsetsRule1509 = new BitSet(new long[] { 0x0000000000000010L });
- public static final BitSet FOLLOW_RULE_ID_in_ruleSubsetsRule1529 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleDefaultValueRule_in_entryRuleDefaultValueRule1565 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleDefaultValueRule1575 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_25_in_ruleDefaultValueRule1612 = new BitSet(new long[] { 0x000000601C000060L });
- public static final BitSet FOLLOW_ruleValue_in_ruleDefaultValueRule1633 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleValue_in_entryRuleValue1669 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleValue1679 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleIntValue_in_ruleValue1726 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleStringValue_in_ruleValue1753 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBooleanValue_in_ruleValue1780 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleRealValue_in_ruleValue1807 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleNullValue_in_ruleValue1834 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleNoValue_in_ruleValue1861 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleIntValue_in_entryRuleIntValue1896 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleIntValue1906 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_ruleIntValue1947 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleStringValue_in_entryRuleStringValue1987 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleStringValue1997 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_STRING_in_ruleStringValue2038 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBooleanValue_in_entryRuleBooleanValue2078 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleBooleanValue2088 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleBooleanLiterals_in_ruleBooleanValue2133 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleRealValue_in_entryRuleRealValue2168 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleRealValue2178 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2221 = new BitSet(new long[] { 0x0000000004000000L });
- public static final BitSet FOLLOW_26_in_ruleRealValue2238 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_26_in_ruleRealValue2258 = new BitSet(new long[] { 0x0000000000000020L });
- public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2275 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2305 = new BitSet(new long[] { 0x0000000004000000L });
- public static final BitSet FOLLOW_26_in_ruleRealValue2322 = new BitSet(new long[] { 0x0000000000000020L });
- public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2339 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleNullValue_in_entryRuleNullValue2381 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleNullValue2391 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_27_in_ruleNullValue2437 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_ruleNoValue_in_entryRuleNoValue2473 = new BitSet(new long[] { 0x0000000000000000L });
- public static final BitSet FOLLOW_EOF_in_entryRuleNoValue2483 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_28_in_ruleNoValue2529 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_29_in_ruleVisibilityKind2579 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_30_in_ruleVisibilityKind2596 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_31_in_ruleVisibilityKind2613 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_32_in_ruleVisibilityKind2630 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_33_in_ruleModifierKind2675 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_34_in_ruleModifierKind2692 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_35_in_ruleModifierKind2709 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_36_in_ruleModifierKind2726 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_37_in_ruleBooleanLiterals2771 = new BitSet(new long[] { 0x0000000000000002L });
- public static final BitSet FOLLOW_38_in_ruleBooleanLiterals2788 = new BitSet(new long[] { 0x0000000000000002L });
-
+package org.eclipse.papyrus.uml.textedit.property.xtext.parser.antlr.internal;
+
+import org.eclipse.xtext.*;
+import org.eclipse.xtext.parser.*;
+import org.eclipse.xtext.parser.impl.*;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.common.util.Enumerator;
+import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
+import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken;
+import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess;
+
+
+
+import org.antlr.runtime.*;
+import java.util.Stack;
+import java.util.List;
+import java.util.ArrayList;
+
+@SuppressWarnings("all")
+public class InternalUmlPropertyParser extends AbstractInternalAntlrParser {
+ public static final String[] tokenNames = new String[] {
+ "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_INTEGER_VALUE", "RULE_WS", "RULE_ANY_OTHER", "'/'", "':'", "'<Undefined>'", "'::'", "'['", "'..'", "']'", "'*'", "'{'", "','", "'}'", "'redefines'", "'subsets'", "'='", "'.'", "'null'", "'none'", "'+'", "'-'", "'#'", "'~'", "'readOnly'", "'union'", "'ordered'", "'unique'", "'true'", "'false'"
+ };
+ public static final int RULE_ID=4;
+ public static final int T__29=29;
+ public static final int T__28=28;
+ public static final int T__27=27;
+ public static final int T__26=26;
+ public static final int T__25=25;
+ public static final int T__24=24;
+ public static final int T__23=23;
+ public static final int T__22=22;
+ public static final int RULE_ANY_OTHER=11;
+ public static final int T__21=21;
+ public static final int T__20=20;
+ public static final int RULE_INTEGER_VALUE=9;
+ public static final int RULE_SL_COMMENT=8;
+ public static final int EOF=-1;
+ public static final int RULE_ML_COMMENT=7;
+ public static final int T__30=30;
+ public static final int T__19=19;
+ public static final int T__31=31;
+ public static final int RULE_STRING=6;
+ public static final int T__32=32;
+ public static final int T__33=33;
+ public static final int T__16=16;
+ public static final int T__34=34;
+ public static final int T__15=15;
+ public static final int T__35=35;
+ public static final int T__18=18;
+ public static final int T__36=36;
+ public static final int T__17=17;
+ public static final int T__37=37;
+ public static final int T__12=12;
+ public static final int T__38=38;
+ public static final int T__14=14;
+ public static final int T__13=13;
+ public static final int RULE_INT=5;
+ public static final int RULE_WS=10;
+
+ // delegates
+ // delegators
+
+
+ public InternalUmlPropertyParser(TokenStream input) {
+ this(input, new RecognizerSharedState());
+ }
+ public InternalUmlPropertyParser(TokenStream input, RecognizerSharedState state) {
+ super(input, state);
+
+ }
+
+
+ public String[] getTokenNames() { return InternalUmlPropertyParser.tokenNames; }
+ public String getGrammarFileName() { return "../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g"; }
+
+
+
+ private UmlPropertyGrammarAccess grammarAccess;
+
+ public InternalUmlPropertyParser(TokenStream input, UmlPropertyGrammarAccess grammarAccess) {
+ this(input);
+ this.grammarAccess = grammarAccess;
+ registerRules(grammarAccess.getGrammar());
+ }
+
+ @Override
+ protected String getFirstRuleName() {
+ return "PropertyRule";
+ }
+
+ @Override
+ protected UmlPropertyGrammarAccess getGrammarAccess() {
+ return grammarAccess;
+ }
+
+
+
+ // $ANTLR start "entryRulePropertyRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:68:1: entryRulePropertyRule returns [EObject current=null] : iv_rulePropertyRule= rulePropertyRule EOF ;
+ public final EObject entryRulePropertyRule() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePropertyRule = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:69:2: (iv_rulePropertyRule= rulePropertyRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:70:2: iv_rulePropertyRule= rulePropertyRule EOF
+ {
+ newCompositeNode(grammarAccess.getPropertyRuleRule());
+ pushFollow(FOLLOW_rulePropertyRule_in_entryRulePropertyRule75);
+ iv_rulePropertyRule=rulePropertyRule();
+
+ state._fsp--;
+
+ current =iv_rulePropertyRule;
+ match(input,EOF,FOLLOW_EOF_in_entryRulePropertyRule85);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRulePropertyRule"
+
+
+ // $ANTLR start "rulePropertyRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:77:1: rulePropertyRule returns [EObject current=null] : ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )? ( (lv_default_8_0= ruleDefaultValueRule ) )? ) ;
+ public final EObject rulePropertyRule() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_derived_1_0=null;
+ Token lv_name_2_0=null;
+ Token otherlv_3=null;
+ Token lv_typeUndefined_5_0=null;
+ EObject lv_visibility_0_0 = null;
+
+ EObject lv_type_4_0 = null;
+
+ EObject lv_multiplicity_6_0 = null;
+
+ EObject lv_modifiers_7_0 = null;
+
+ EObject lv_default_8_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:80:28: ( ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )? ( (lv_default_8_0= ruleDefaultValueRule ) )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:81:1: ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )? ( (lv_default_8_0= ruleDefaultValueRule ) )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:81:1: ( ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )? ( (lv_default_8_0= ruleDefaultValueRule ) )? )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:81:2: ( (lv_visibility_0_0= ruleVisibilityRule ) )? ( (lv_derived_1_0= '/' ) )? ( (lv_name_2_0= RULE_ID ) ) (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )? ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )? ( (lv_modifiers_7_0= ruleModifiersRule ) )? ( (lv_default_8_0= ruleDefaultValueRule ) )?
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:81:2: ( (lv_visibility_0_0= ruleVisibilityRule ) )?
+ int alt1=2;
+ int LA1_0 = input.LA(1);
+
+ if ( ((LA1_0>=29 && LA1_0<=32)) ) {
+ alt1=1;
+ }
+ switch (alt1) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:82:1: (lv_visibility_0_0= ruleVisibilityRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:82:1: (lv_visibility_0_0= ruleVisibilityRule )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:83:3: lv_visibility_0_0= ruleVisibilityRule
+ {
+
+ newCompositeNode(grammarAccess.getPropertyRuleAccess().getVisibilityVisibilityRuleParserRuleCall_0_0());
+
+ pushFollow(FOLLOW_ruleVisibilityRule_in_rulePropertyRule131);
+ lv_visibility_0_0=ruleVisibilityRule();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
+ }
+ set(
+ current,
+ "visibility",
+ lv_visibility_0_0,
+ "VisibilityRule");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:99:3: ( (lv_derived_1_0= '/' ) )?
+ int alt2=2;
+ int LA2_0 = input.LA(1);
+
+ if ( (LA2_0==12) ) {
+ alt2=1;
+ }
+ switch (alt2) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:100:1: (lv_derived_1_0= '/' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:100:1: (lv_derived_1_0= '/' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:101:3: lv_derived_1_0= '/'
+ {
+ lv_derived_1_0=(Token)match(input,12,FOLLOW_12_in_rulePropertyRule150);
+
+ newLeafNode(lv_derived_1_0, grammarAccess.getPropertyRuleAccess().getDerivedSolidusKeyword_1_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getPropertyRuleRule());
+ }
+ setWithLastConsumed(current, "derived", true, "/");
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:114:3: ( (lv_name_2_0= RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:115:1: (lv_name_2_0= RULE_ID )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:115:1: (lv_name_2_0= RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:116:3: lv_name_2_0= RULE_ID
+ {
+ lv_name_2_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_rulePropertyRule181);
+
+ newLeafNode(lv_name_2_0, grammarAccess.getPropertyRuleAccess().getNameIDTerminalRuleCall_2_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getPropertyRuleRule());
+ }
+ setWithLastConsumed(
+ current,
+ "name",
+ lv_name_2_0,
+ "ID");
+
+
+ }
+
+
+ }
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:132:2: (otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) ) )?
+ int alt4=2;
+ int LA4_0 = input.LA(1);
+
+ if ( (LA4_0==13) ) {
+ alt4=1;
+ }
+ switch (alt4) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:132:4: otherlv_3= ':' ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) )
+ {
+ otherlv_3=(Token)match(input,13,FOLLOW_13_in_rulePropertyRule199);
+
+ newLeafNode(otherlv_3, grammarAccess.getPropertyRuleAccess().getColonKeyword_3_0());
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:136:1: ( ( (lv_type_4_0= ruleTypeRule ) ) | ( (lv_typeUndefined_5_0= '<Undefined>' ) ) )
+ int alt3=2;
+ int LA3_0 = input.LA(1);
+
+ if ( (LA3_0==RULE_ID) ) {
+ alt3=1;
+ }
+ else if ( (LA3_0==14) ) {
+ alt3=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 3, 0, input);
+
+ throw nvae;
+ }
+ switch (alt3) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:136:2: ( (lv_type_4_0= ruleTypeRule ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:136:2: ( (lv_type_4_0= ruleTypeRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:137:1: (lv_type_4_0= ruleTypeRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:137:1: (lv_type_4_0= ruleTypeRule )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:138:3: lv_type_4_0= ruleTypeRule
+ {
+
+ newCompositeNode(grammarAccess.getPropertyRuleAccess().getTypeTypeRuleParserRuleCall_3_1_0_0());
+
+ pushFollow(FOLLOW_ruleTypeRule_in_rulePropertyRule221);
+ lv_type_4_0=ruleTypeRule();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
+ }
+ set(
+ current,
+ "type",
+ lv_type_4_0,
+ "TypeRule");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:155:6: ( (lv_typeUndefined_5_0= '<Undefined>' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:155:6: ( (lv_typeUndefined_5_0= '<Undefined>' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:156:1: (lv_typeUndefined_5_0= '<Undefined>' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:156:1: (lv_typeUndefined_5_0= '<Undefined>' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:157:3: lv_typeUndefined_5_0= '<Undefined>'
+ {
+ lv_typeUndefined_5_0=(Token)match(input,14,FOLLOW_14_in_rulePropertyRule245);
+
+ newLeafNode(lv_typeUndefined_5_0, grammarAccess.getPropertyRuleAccess().getTypeUndefinedUndefinedKeyword_3_1_1_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getPropertyRuleRule());
+ }
+ setWithLastConsumed(current, "typeUndefined", true, "<Undefined>");
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:170:5: ( (lv_multiplicity_6_0= ruleMultiplicityRule ) )?
+ int alt5=2;
+ int LA5_0 = input.LA(1);
+
+ if ( (LA5_0==16) ) {
+ alt5=1;
+ }
+ switch (alt5) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:171:1: (lv_multiplicity_6_0= ruleMultiplicityRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:171:1: (lv_multiplicity_6_0= ruleMultiplicityRule )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:172:3: lv_multiplicity_6_0= ruleMultiplicityRule
+ {
+
+ newCompositeNode(grammarAccess.getPropertyRuleAccess().getMultiplicityMultiplicityRuleParserRuleCall_4_0());
+
+ pushFollow(FOLLOW_ruleMultiplicityRule_in_rulePropertyRule282);
+ lv_multiplicity_6_0=ruleMultiplicityRule();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
+ }
+ set(
+ current,
+ "multiplicity",
+ lv_multiplicity_6_0,
+ "MultiplicityRule");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:188:3: ( (lv_modifiers_7_0= ruleModifiersRule ) )?
+ int alt6=2;
+ int LA6_0 = input.LA(1);
+
+ if ( (LA6_0==20) ) {
+ alt6=1;
+ }
+ switch (alt6) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:189:1: (lv_modifiers_7_0= ruleModifiersRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:189:1: (lv_modifiers_7_0= ruleModifiersRule )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:190:3: lv_modifiers_7_0= ruleModifiersRule
+ {
+
+ newCompositeNode(grammarAccess.getPropertyRuleAccess().getModifiersModifiersRuleParserRuleCall_5_0());
+
+ pushFollow(FOLLOW_ruleModifiersRule_in_rulePropertyRule304);
+ lv_modifiers_7_0=ruleModifiersRule();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
+ }
+ set(
+ current,
+ "modifiers",
+ lv_modifiers_7_0,
+ "ModifiersRule");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:206:3: ( (lv_default_8_0= ruleDefaultValueRule ) )?
+ int alt7=2;
+ int LA7_0 = input.LA(1);
+
+ if ( (LA7_0==25) ) {
+ alt7=1;
+ }
+ switch (alt7) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:207:1: (lv_default_8_0= ruleDefaultValueRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:207:1: (lv_default_8_0= ruleDefaultValueRule )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:208:3: lv_default_8_0= ruleDefaultValueRule
+ {
+
+ newCompositeNode(grammarAccess.getPropertyRuleAccess().getDefaultDefaultValueRuleParserRuleCall_6_0());
+
+ pushFollow(FOLLOW_ruleDefaultValueRule_in_rulePropertyRule326);
+ lv_default_8_0=ruleDefaultValueRule();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPropertyRuleRule());
+ }
+ set(
+ current,
+ "default",
+ lv_default_8_0,
+ "DefaultValueRule");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePropertyRule"
+
+
+ // $ANTLR start "entryRuleVisibilityRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:232:1: entryRuleVisibilityRule returns [EObject current=null] : iv_ruleVisibilityRule= ruleVisibilityRule EOF ;
+ public final EObject entryRuleVisibilityRule() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleVisibilityRule = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:233:2: (iv_ruleVisibilityRule= ruleVisibilityRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:234:2: iv_ruleVisibilityRule= ruleVisibilityRule EOF
+ {
+ newCompositeNode(grammarAccess.getVisibilityRuleRule());
+ pushFollow(FOLLOW_ruleVisibilityRule_in_entryRuleVisibilityRule363);
+ iv_ruleVisibilityRule=ruleVisibilityRule();
+
+ state._fsp--;
+
+ current =iv_ruleVisibilityRule;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleVisibilityRule373);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleVisibilityRule"
+
+
+ // $ANTLR start "ruleVisibilityRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:241:1: ruleVisibilityRule returns [EObject current=null] : ( (lv_visibility_0_0= ruleVisibilityKind ) ) ;
+ public final EObject ruleVisibilityRule() throws RecognitionException {
+ EObject current = null;
+
+ Enumerator lv_visibility_0_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:244:28: ( ( (lv_visibility_0_0= ruleVisibilityKind ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:245:1: ( (lv_visibility_0_0= ruleVisibilityKind ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:245:1: ( (lv_visibility_0_0= ruleVisibilityKind ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:246:1: (lv_visibility_0_0= ruleVisibilityKind )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:246:1: (lv_visibility_0_0= ruleVisibilityKind )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:247:3: lv_visibility_0_0= ruleVisibilityKind
+ {
+
+ newCompositeNode(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0());
+
+ pushFollow(FOLLOW_ruleVisibilityKind_in_ruleVisibilityRule418);
+ lv_visibility_0_0=ruleVisibilityKind();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getVisibilityRuleRule());
+ }
+ set(
+ current,
+ "visibility",
+ lv_visibility_0_0,
+ "VisibilityKind");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleVisibilityRule"
+
+
+ // $ANTLR start "entryRuleTypeRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:271:1: entryRuleTypeRule returns [EObject current=null] : iv_ruleTypeRule= ruleTypeRule EOF ;
+ public final EObject entryRuleTypeRule() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleTypeRule = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:272:2: (iv_ruleTypeRule= ruleTypeRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:273:2: iv_ruleTypeRule= ruleTypeRule EOF
+ {
+ newCompositeNode(grammarAccess.getTypeRuleRule());
+ pushFollow(FOLLOW_ruleTypeRule_in_entryRuleTypeRule453);
+ iv_ruleTypeRule=ruleTypeRule();
+
+ state._fsp--;
+
+ current =iv_ruleTypeRule;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleTypeRule463);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleTypeRule"
+
+
+ // $ANTLR start "ruleTypeRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:280:1: ruleTypeRule returns [EObject current=null] : ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) ) ;
+ public final EObject ruleTypeRule() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ EObject lv_path_0_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:283:28: ( ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:284:1: ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:284:1: ( ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:284:2: ( (lv_path_0_0= ruleQualifiedName ) )? ( (otherlv_1= RULE_ID ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:284:2: ( (lv_path_0_0= ruleQualifiedName ) )?
+ int alt8=2;
+ int LA8_0 = input.LA(1);
+
+ if ( (LA8_0==RULE_ID) ) {
+ int LA8_1 = input.LA(2);
+
+ if ( (LA8_1==15) ) {
+ alt8=1;
+ }
+ }
+ switch (alt8) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:285:1: (lv_path_0_0= ruleQualifiedName )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:285:1: (lv_path_0_0= ruleQualifiedName )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:286:3: lv_path_0_0= ruleQualifiedName
+ {
+
+ newCompositeNode(grammarAccess.getTypeRuleAccess().getPathQualifiedNameParserRuleCall_0_0());
+
+ pushFollow(FOLLOW_ruleQualifiedName_in_ruleTypeRule509);
+ lv_path_0_0=ruleQualifiedName();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getTypeRuleRule());
+ }
+ set(
+ current,
+ "path",
+ lv_path_0_0,
+ "QualifiedName");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:302:3: ( (otherlv_1= RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:303:1: (otherlv_1= RULE_ID )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:303:1: (otherlv_1= RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:304:3: otherlv_1= RULE_ID
+ {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getTypeRuleRule());
+ }
+
+ otherlv_1=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleTypeRule530);
+
+ newLeafNode(otherlv_1, grammarAccess.getTypeRuleAccess().getTypeClassifierCrossReference_1_0());
+
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleTypeRule"
+
+
+ // $ANTLR start "entryRuleQualifiedName"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:323:1: entryRuleQualifiedName returns [EObject current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ;
+ public final EObject entryRuleQualifiedName() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleQualifiedName = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:324:2: (iv_ruleQualifiedName= ruleQualifiedName EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:325:2: iv_ruleQualifiedName= ruleQualifiedName EOF
+ {
+ newCompositeNode(grammarAccess.getQualifiedNameRule());
+ pushFollow(FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName566);
+ iv_ruleQualifiedName=ruleQualifiedName();
+
+ state._fsp--;
+
+ current =iv_ruleQualifiedName;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleQualifiedName576);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleQualifiedName"
+
+
+ // $ANTLR start "ruleQualifiedName"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:332:1: ruleQualifiedName returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) ;
+ public final EObject ruleQualifiedName() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_1=null;
+ EObject lv_remaining_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:335:28: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:336:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:336:1: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )? )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:336:2: ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' ( (lv_remaining_2_0= ruleQualifiedName ) )?
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:336:2: ( (otherlv_0= RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:337:1: (otherlv_0= RULE_ID )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:337:1: (otherlv_0= RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:338:3: otherlv_0= RULE_ID
+ {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getQualifiedNameRule());
+ }
+
+ otherlv_0=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleQualifiedName621);
+
+ newLeafNode(otherlv_0, grammarAccess.getQualifiedNameAccess().getPathNamespaceCrossReference_0_0());
+
+
+ }
+
+
+ }
+
+ otherlv_1=(Token)match(input,15,FOLLOW_15_in_ruleQualifiedName633);
+
+ newLeafNode(otherlv_1, grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1());
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:353:1: ( (lv_remaining_2_0= ruleQualifiedName ) )?
+ int alt9=2;
+ int LA9_0 = input.LA(1);
+
+ if ( (LA9_0==RULE_ID) ) {
+ int LA9_1 = input.LA(2);
+
+ if ( (LA9_1==15) ) {
+ alt9=1;
+ }
+ }
+ switch (alt9) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:354:1: (lv_remaining_2_0= ruleQualifiedName )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:354:1: (lv_remaining_2_0= ruleQualifiedName )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:355:3: lv_remaining_2_0= ruleQualifiedName
+ {
+
+ newCompositeNode(grammarAccess.getQualifiedNameAccess().getRemainingQualifiedNameParserRuleCall_2_0());
+
+ pushFollow(FOLLOW_ruleQualifiedName_in_ruleQualifiedName654);
+ lv_remaining_2_0=ruleQualifiedName();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getQualifiedNameRule());
+ }
+ set(
+ current,
+ "remaining",
+ lv_remaining_2_0,
+ "QualifiedName");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleQualifiedName"
+
+
+ // $ANTLR start "entryRuleMultiplicityRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:379:1: entryRuleMultiplicityRule returns [EObject current=null] : iv_ruleMultiplicityRule= ruleMultiplicityRule EOF ;
+ public final EObject entryRuleMultiplicityRule() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleMultiplicityRule = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:380:2: (iv_ruleMultiplicityRule= ruleMultiplicityRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:381:2: iv_ruleMultiplicityRule= ruleMultiplicityRule EOF
+ {
+ newCompositeNode(grammarAccess.getMultiplicityRuleRule());
+ pushFollow(FOLLOW_ruleMultiplicityRule_in_entryRuleMultiplicityRule691);
+ iv_ruleMultiplicityRule=ruleMultiplicityRule();
+
+ state._fsp--;
+
+ current =iv_ruleMultiplicityRule;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleMultiplicityRule701);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleMultiplicityRule"
+
+
+ // $ANTLR start "ruleMultiplicityRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:388:1: ruleMultiplicityRule returns [EObject current=null] : (otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']' ) ;
+ public final EObject ruleMultiplicityRule() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_2=null;
+ Token otherlv_4=null;
+ EObject lv_bounds_1_0 = null;
+
+ EObject lv_bounds_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:391:28: ( (otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:392:1: (otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:392:1: (otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:392:3: otherlv_0= '[' ( (lv_bounds_1_0= ruleBoundSpecification ) ) (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )? otherlv_4= ']'
+ {
+ otherlv_0=(Token)match(input,16,FOLLOW_16_in_ruleMultiplicityRule738);
+
+ newLeafNode(otherlv_0, grammarAccess.getMultiplicityRuleAccess().getLeftSquareBracketKeyword_0());
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:396:1: ( (lv_bounds_1_0= ruleBoundSpecification ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:397:1: (lv_bounds_1_0= ruleBoundSpecification )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:397:1: (lv_bounds_1_0= ruleBoundSpecification )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:398:3: lv_bounds_1_0= ruleBoundSpecification
+ {
+
+ newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_1_0());
+
+ pushFollow(FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule759);
+ lv_bounds_1_0=ruleBoundSpecification();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule());
+ }
+ add(
+ current,
+ "bounds",
+ lv_bounds_1_0,
+ "BoundSpecification");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:414:2: (otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) ) )?
+ int alt10=2;
+ int LA10_0 = input.LA(1);
+
+ if ( (LA10_0==17) ) {
+ alt10=1;
+ }
+ switch (alt10) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:414:4: otherlv_2= '..' ( (lv_bounds_3_0= ruleBoundSpecification ) )
+ {
+ otherlv_2=(Token)match(input,17,FOLLOW_17_in_ruleMultiplicityRule772);
+
+ newLeafNode(otherlv_2, grammarAccess.getMultiplicityRuleAccess().getFullStopFullStopKeyword_2_0());
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:418:1: ( (lv_bounds_3_0= ruleBoundSpecification ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:419:1: (lv_bounds_3_0= ruleBoundSpecification )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:419:1: (lv_bounds_3_0= ruleBoundSpecification )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:420:3: lv_bounds_3_0= ruleBoundSpecification
+ {
+
+ newCompositeNode(grammarAccess.getMultiplicityRuleAccess().getBoundsBoundSpecificationParserRuleCall_2_1_0());
+
+ pushFollow(FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule793);
+ lv_bounds_3_0=ruleBoundSpecification();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getMultiplicityRuleRule());
+ }
+ add(
+ current,
+ "bounds",
+ lv_bounds_3_0,
+ "BoundSpecification");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_4=(Token)match(input,18,FOLLOW_18_in_ruleMultiplicityRule807);
+
+ newLeafNode(otherlv_4, grammarAccess.getMultiplicityRuleAccess().getRightSquareBracketKeyword_3());
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleMultiplicityRule"
+
+
+ // $ANTLR start "entryRuleBoundSpecification"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:448:1: entryRuleBoundSpecification returns [EObject current=null] : iv_ruleBoundSpecification= ruleBoundSpecification EOF ;
+ public final EObject entryRuleBoundSpecification() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBoundSpecification = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:449:2: (iv_ruleBoundSpecification= ruleBoundSpecification EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:450:2: iv_ruleBoundSpecification= ruleBoundSpecification EOF
+ {
+ newCompositeNode(grammarAccess.getBoundSpecificationRule());
+ pushFollow(FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification843);
+ iv_ruleBoundSpecification=ruleBoundSpecification();
+
+ state._fsp--;
+
+ current =iv_ruleBoundSpecification;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleBoundSpecification853);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleBoundSpecification"
+
+
+ // $ANTLR start "ruleBoundSpecification"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:457:1: ruleBoundSpecification returns [EObject current=null] : ( ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) ) ;
+ public final EObject ruleBoundSpecification() throws RecognitionException {
+ EObject current = null;
+
+ AntlrDatatypeRuleToken lv_value_0_1 = null;
+
+ AntlrDatatypeRuleToken lv_value_0_2 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:460:28: ( ( ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:461:1: ( ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:461:1: ( ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:462:1: ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:462:1: ( (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:463:1: (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:463:1: (lv_value_0_1= ruleUnlimitedLiteral | lv_value_0_2= ruleStringLiteral )
+ int alt11=2;
+ int LA11_0 = input.LA(1);
+
+ if ( (LA11_0==RULE_INT||LA11_0==19) ) {
+ alt11=1;
+ }
+ else if ( (LA11_0==RULE_STRING) ) {
+ alt11=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 11, 0, input);
+
+ throw nvae;
+ }
+ switch (alt11) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:464:3: lv_value_0_1= ruleUnlimitedLiteral
+ {
+
+ newCompositeNode(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0_0());
+
+ pushFollow(FOLLOW_ruleUnlimitedLiteral_in_ruleBoundSpecification900);
+ lv_value_0_1=ruleUnlimitedLiteral();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getBoundSpecificationRule());
+ }
+ set(
+ current,
+ "value",
+ lv_value_0_1,
+ "UnlimitedLiteral");
+ afterParserOrEnumRuleCall();
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:479:8: lv_value_0_2= ruleStringLiteral
+ {
+
+ newCompositeNode(grammarAccess.getBoundSpecificationAccess().getValueStringLiteralParserRuleCall_0_1());
+
+ pushFollow(FOLLOW_ruleStringLiteral_in_ruleBoundSpecification919);
+ lv_value_0_2=ruleStringLiteral();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getBoundSpecificationRule());
+ }
+ set(
+ current,
+ "value",
+ lv_value_0_2,
+ "StringLiteral");
+ afterParserOrEnumRuleCall();
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleBoundSpecification"
+
+
+ // $ANTLR start "entryRuleUnlimitedLiteral"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:505:1: entryRuleUnlimitedLiteral returns [String current=null] : iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF ;
+ public final String entryRuleUnlimitedLiteral() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleUnlimitedLiteral = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:506:2: (iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:507:2: iv_ruleUnlimitedLiteral= ruleUnlimitedLiteral EOF
+ {
+ newCompositeNode(grammarAccess.getUnlimitedLiteralRule());
+ pushFollow(FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral958);
+ iv_ruleUnlimitedLiteral=ruleUnlimitedLiteral();
+
+ state._fsp--;
+
+ current =iv_ruleUnlimitedLiteral.getText();
+ match(input,EOF,FOLLOW_EOF_in_entryRuleUnlimitedLiteral969);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleUnlimitedLiteral"
+
+
+ // $ANTLR start "ruleUnlimitedLiteral"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:514:1: ruleUnlimitedLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_INT_0= RULE_INT | kw= '*' ) ;
+ public final AntlrDatatypeRuleToken ruleUnlimitedLiteral() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token this_INT_0=null;
+ Token kw=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:517:28: ( (this_INT_0= RULE_INT | kw= '*' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:518:1: (this_INT_0= RULE_INT | kw= '*' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:518:1: (this_INT_0= RULE_INT | kw= '*' )
+ int alt12=2;
+ int LA12_0 = input.LA(1);
+
+ if ( (LA12_0==RULE_INT) ) {
+ alt12=1;
+ }
+ else if ( (LA12_0==19) ) {
+ alt12=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 12, 0, input);
+
+ throw nvae;
+ }
+ switch (alt12) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:518:6: this_INT_0= RULE_INT
+ {
+ this_INT_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleUnlimitedLiteral1009);
+
+ current.merge(this_INT_0);
+
+
+ newLeafNode(this_INT_0, grammarAccess.getUnlimitedLiteralAccess().getINTTerminalRuleCall_0());
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:527:2: kw= '*'
+ {
+ kw=(Token)match(input,19,FOLLOW_19_in_ruleUnlimitedLiteral1033);
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getUnlimitedLiteralAccess().getAsteriskKeyword_1());
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleUnlimitedLiteral"
+
+
+ // $ANTLR start "entryRuleStringLiteral"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:540:1: entryRuleStringLiteral returns [String current=null] : iv_ruleStringLiteral= ruleStringLiteral EOF ;
+ public final String entryRuleStringLiteral() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleStringLiteral = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:541:2: (iv_ruleStringLiteral= ruleStringLiteral EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:542:2: iv_ruleStringLiteral= ruleStringLiteral EOF
+ {
+ newCompositeNode(grammarAccess.getStringLiteralRule());
+ pushFollow(FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral1074);
+ iv_ruleStringLiteral=ruleStringLiteral();
+
+ state._fsp--;
+
+ current =iv_ruleStringLiteral.getText();
+ match(input,EOF,FOLLOW_EOF_in_entryRuleStringLiteral1085);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleStringLiteral"
+
+
+ // $ANTLR start "ruleStringLiteral"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:549:1: ruleStringLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_STRING_0= RULE_STRING ;
+ public final AntlrDatatypeRuleToken ruleStringLiteral() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token this_STRING_0=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:552:28: (this_STRING_0= RULE_STRING )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:553:5: this_STRING_0= RULE_STRING
+ {
+ this_STRING_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleStringLiteral1124);
+
+ current.merge(this_STRING_0);
+
+
+ newLeafNode(this_STRING_0, grammarAccess.getStringLiteralAccess().getSTRINGTerminalRuleCall());
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleStringLiteral"
+
+
+ // $ANTLR start "entryRuleModifiersRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:568:1: entryRuleModifiersRule returns [EObject current=null] : iv_ruleModifiersRule= ruleModifiersRule EOF ;
+ public final EObject entryRuleModifiersRule() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleModifiersRule = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:569:2: (iv_ruleModifiersRule= ruleModifiersRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:570:2: iv_ruleModifiersRule= ruleModifiersRule EOF
+ {
+ newCompositeNode(grammarAccess.getModifiersRuleRule());
+ pushFollow(FOLLOW_ruleModifiersRule_in_entryRuleModifiersRule1168);
+ iv_ruleModifiersRule=ruleModifiersRule();
+
+ state._fsp--;
+
+ current =iv_ruleModifiersRule;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleModifiersRule1178);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleModifiersRule"
+
+
+ // $ANTLR start "ruleModifiersRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:577:1: ruleModifiersRule returns [EObject current=null] : ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' ) ;
+ public final EObject ruleModifiersRule() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ Token otherlv_5=null;
+ EObject lv_values_2_0 = null;
+
+ EObject lv_values_4_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:580:28: ( ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:581:1: ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:581:1: ( () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:581:2: () otherlv_1= '{' ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )? otherlv_5= '}'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:581:2: ()
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:582:5:
+ {
+
+ current = forceCreateModelElement(
+ grammarAccess.getModifiersRuleAccess().getModifiersRuleAction_0(),
+ current);
+
+
+ }
+
+ otherlv_1=(Token)match(input,20,FOLLOW_20_in_ruleModifiersRule1224);
+
+ newLeafNode(otherlv_1, grammarAccess.getModifiersRuleAccess().getLeftCurlyBracketKeyword_1());
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:591:1: ( ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )* )?
+ int alt14=2;
+ int LA14_0 = input.LA(1);
+
+ if ( ((LA14_0>=23 && LA14_0<=24)||(LA14_0>=33 && LA14_0<=36)) ) {
+ alt14=1;
+ }
+ switch (alt14) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:591:2: ( (lv_values_2_0= ruleModifierSpecification ) ) (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )*
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:591:2: ( (lv_values_2_0= ruleModifierSpecification ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:592:1: (lv_values_2_0= ruleModifierSpecification )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:592:1: (lv_values_2_0= ruleModifierSpecification )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:593:3: lv_values_2_0= ruleModifierSpecification
+ {
+
+ newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_0_0());
+
+ pushFollow(FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1246);
+ lv_values_2_0=ruleModifierSpecification();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getModifiersRuleRule());
+ }
+ add(
+ current,
+ "values",
+ lv_values_2_0,
+ "ModifierSpecification");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:609:2: (otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) ) )*
+ loop13:
+ do {
+ int alt13=2;
+ int LA13_0 = input.LA(1);
+
+ if ( (LA13_0==21) ) {
+ alt13=1;
+ }
+
+
+ switch (alt13) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:609:4: otherlv_3= ',' ( (lv_values_4_0= ruleModifierSpecification ) )
+ {
+ otherlv_3=(Token)match(input,21,FOLLOW_21_in_ruleModifiersRule1259);
+
+ newLeafNode(otherlv_3, grammarAccess.getModifiersRuleAccess().getCommaKeyword_2_1_0());
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:613:1: ( (lv_values_4_0= ruleModifierSpecification ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:614:1: (lv_values_4_0= ruleModifierSpecification )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:614:1: (lv_values_4_0= ruleModifierSpecification )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:615:3: lv_values_4_0= ruleModifierSpecification
+ {
+
+ newCompositeNode(grammarAccess.getModifiersRuleAccess().getValuesModifierSpecificationParserRuleCall_2_1_1_0());
+
+ pushFollow(FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1280);
+ lv_values_4_0=ruleModifierSpecification();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getModifiersRuleRule());
+ }
+ add(
+ current,
+ "values",
+ lv_values_4_0,
+ "ModifierSpecification");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop13;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+ otherlv_5=(Token)match(input,22,FOLLOW_22_in_ruleModifiersRule1296);
+
+ newLeafNode(otherlv_5, grammarAccess.getModifiersRuleAccess().getRightCurlyBracketKeyword_3());
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleModifiersRule"
+
+
+ // $ANTLR start "entryRuleModifierSpecification"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:643:1: entryRuleModifierSpecification returns [EObject current=null] : iv_ruleModifierSpecification= ruleModifierSpecification EOF ;
+ public final EObject entryRuleModifierSpecification() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleModifierSpecification = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:644:2: (iv_ruleModifierSpecification= ruleModifierSpecification EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:645:2: iv_ruleModifierSpecification= ruleModifierSpecification EOF
+ {
+ newCompositeNode(grammarAccess.getModifierSpecificationRule());
+ pushFollow(FOLLOW_ruleModifierSpecification_in_entryRuleModifierSpecification1332);
+ iv_ruleModifierSpecification=ruleModifierSpecification();
+
+ state._fsp--;
+
+ current =iv_ruleModifierSpecification;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleModifierSpecification1342);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleModifierSpecification"
+
+
+ // $ANTLR start "ruleModifierSpecification"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:652:1: ruleModifierSpecification returns [EObject current=null] : ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | ( (lv_subsets_2_0= ruleSubsetsRule ) ) ) ;
+ public final EObject ruleModifierSpecification() throws RecognitionException {
+ EObject current = null;
+
+ Enumerator lv_value_0_0 = null;
+
+ EObject lv_redefines_1_0 = null;
+
+ EObject lv_subsets_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:655:28: ( ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | ( (lv_subsets_2_0= ruleSubsetsRule ) ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:656:1: ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | ( (lv_subsets_2_0= ruleSubsetsRule ) ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:656:1: ( ( (lv_value_0_0= ruleModifierKind ) ) | ( (lv_redefines_1_0= ruleRedefinesRule ) ) | ( (lv_subsets_2_0= ruleSubsetsRule ) ) )
+ int alt15=3;
+ switch ( input.LA(1) ) {
+ case 33:
+ case 34:
+ case 35:
+ case 36:
+ {
+ alt15=1;
+ }
+ break;
+ case 23:
+ {
+ alt15=2;
+ }
+ break;
+ case 24:
+ {
+ alt15=3;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 15, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt15) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:656:2: ( (lv_value_0_0= ruleModifierKind ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:656:2: ( (lv_value_0_0= ruleModifierKind ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:657:1: (lv_value_0_0= ruleModifierKind )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:657:1: (lv_value_0_0= ruleModifierKind )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:658:3: lv_value_0_0= ruleModifierKind
+ {
+
+ newCompositeNode(grammarAccess.getModifierSpecificationAccess().getValueModifierKindEnumRuleCall_0_0());
+
+ pushFollow(FOLLOW_ruleModifierKind_in_ruleModifierSpecification1388);
+ lv_value_0_0=ruleModifierKind();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
+ }
+ set(
+ current,
+ "value",
+ lv_value_0_0,
+ "ModifierKind");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:675:6: ( (lv_redefines_1_0= ruleRedefinesRule ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:675:6: ( (lv_redefines_1_0= ruleRedefinesRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:676:1: (lv_redefines_1_0= ruleRedefinesRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:676:1: (lv_redefines_1_0= ruleRedefinesRule )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:677:3: lv_redefines_1_0= ruleRedefinesRule
+ {
+
+ newCompositeNode(grammarAccess.getModifierSpecificationAccess().getRedefinesRedefinesRuleParserRuleCall_1_0());
+
+ pushFollow(FOLLOW_ruleRedefinesRule_in_ruleModifierSpecification1415);
+ lv_redefines_1_0=ruleRedefinesRule();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
+ }
+ set(
+ current,
+ "redefines",
+ lv_redefines_1_0,
+ "RedefinesRule");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:694:6: ( (lv_subsets_2_0= ruleSubsetsRule ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:694:6: ( (lv_subsets_2_0= ruleSubsetsRule ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:695:1: (lv_subsets_2_0= ruleSubsetsRule )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:695:1: (lv_subsets_2_0= ruleSubsetsRule )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:696:3: lv_subsets_2_0= ruleSubsetsRule
+ {
+
+ newCompositeNode(grammarAccess.getModifierSpecificationAccess().getSubsetsSubsetsRuleParserRuleCall_2_0());
+
+ pushFollow(FOLLOW_ruleSubsetsRule_in_ruleModifierSpecification1442);
+ lv_subsets_2_0=ruleSubsetsRule();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getModifierSpecificationRule());
+ }
+ set(
+ current,
+ "subsets",
+ lv_subsets_2_0,
+ "SubsetsRule");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleModifierSpecification"
+
+
+ // $ANTLR start "entryRuleRedefinesRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:720:1: entryRuleRedefinesRule returns [EObject current=null] : iv_ruleRedefinesRule= ruleRedefinesRule EOF ;
+ public final EObject entryRuleRedefinesRule() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleRedefinesRule = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:721:2: (iv_ruleRedefinesRule= ruleRedefinesRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:722:2: iv_ruleRedefinesRule= ruleRedefinesRule EOF
+ {
+ newCompositeNode(grammarAccess.getRedefinesRuleRule());
+ pushFollow(FOLLOW_ruleRedefinesRule_in_entryRuleRedefinesRule1478);
+ iv_ruleRedefinesRule=ruleRedefinesRule();
+
+ state._fsp--;
+
+ current =iv_ruleRedefinesRule;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleRedefinesRule1488);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleRedefinesRule"
+
+
+ // $ANTLR start "ruleRedefinesRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:729:1: ruleRedefinesRule returns [EObject current=null] : (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) ) ;
+ public final EObject ruleRedefinesRule() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_1=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:732:28: ( (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:733:1: (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:733:1: (otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:733:3: otherlv_0= 'redefines' ( (otherlv_1= RULE_ID ) )
+ {
+ otherlv_0=(Token)match(input,23,FOLLOW_23_in_ruleRedefinesRule1525);
+
+ newLeafNode(otherlv_0, grammarAccess.getRedefinesRuleAccess().getRedefinesKeyword_0());
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:737:1: ( (otherlv_1= RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:738:1: (otherlv_1= RULE_ID )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:738:1: (otherlv_1= RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:739:3: otherlv_1= RULE_ID
+ {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getRedefinesRuleRule());
+ }
+
+ otherlv_1=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleRedefinesRule1545);
+
+ newLeafNode(otherlv_1, grammarAccess.getRedefinesRuleAccess().getPropertyPropertyCrossReference_1_0());
+
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleRedefinesRule"
+
+
+ // $ANTLR start "entryRuleSubsetsRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:758:1: entryRuleSubsetsRule returns [EObject current=null] : iv_ruleSubsetsRule= ruleSubsetsRule EOF ;
+ public final EObject entryRuleSubsetsRule() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSubsetsRule = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:759:2: (iv_ruleSubsetsRule= ruleSubsetsRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:760:2: iv_ruleSubsetsRule= ruleSubsetsRule EOF
+ {
+ newCompositeNode(grammarAccess.getSubsetsRuleRule());
+ pushFollow(FOLLOW_ruleSubsetsRule_in_entryRuleSubsetsRule1581);
+ iv_ruleSubsetsRule=ruleSubsetsRule();
+
+ state._fsp--;
+
+ current =iv_ruleSubsetsRule;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleSubsetsRule1591);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSubsetsRule"
+
+
+ // $ANTLR start "ruleSubsetsRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:767:1: ruleSubsetsRule returns [EObject current=null] : (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) ) ;
+ public final EObject ruleSubsetsRule() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_1=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:770:28: ( (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:771:1: (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:771:1: (otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:771:3: otherlv_0= 'subsets' ( (otherlv_1= RULE_ID ) )
+ {
+ otherlv_0=(Token)match(input,24,FOLLOW_24_in_ruleSubsetsRule1628);
+
+ newLeafNode(otherlv_0, grammarAccess.getSubsetsRuleAccess().getSubsetsKeyword_0());
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:775:1: ( (otherlv_1= RULE_ID ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:776:1: (otherlv_1= RULE_ID )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:776:1: (otherlv_1= RULE_ID )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:777:3: otherlv_1= RULE_ID
+ {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getSubsetsRuleRule());
+ }
+
+ otherlv_1=(Token)match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleSubsetsRule1648);
+
+ newLeafNode(otherlv_1, grammarAccess.getSubsetsRuleAccess().getPropertyPropertyCrossReference_1_0());
+
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSubsetsRule"
+
+
+ // $ANTLR start "entryRuleDefaultValueRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:796:1: entryRuleDefaultValueRule returns [EObject current=null] : iv_ruleDefaultValueRule= ruleDefaultValueRule EOF ;
+ public final EObject entryRuleDefaultValueRule() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleDefaultValueRule = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:797:2: (iv_ruleDefaultValueRule= ruleDefaultValueRule EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:798:2: iv_ruleDefaultValueRule= ruleDefaultValueRule EOF
+ {
+ newCompositeNode(grammarAccess.getDefaultValueRuleRule());
+ pushFollow(FOLLOW_ruleDefaultValueRule_in_entryRuleDefaultValueRule1684);
+ iv_ruleDefaultValueRule=ruleDefaultValueRule();
+
+ state._fsp--;
+
+ current =iv_ruleDefaultValueRule;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleDefaultValueRule1694);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleDefaultValueRule"
+
+
+ // $ANTLR start "ruleDefaultValueRule"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:805:1: ruleDefaultValueRule returns [EObject current=null] : (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) ) ;
+ public final EObject ruleDefaultValueRule() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ EObject lv_default_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:808:28: ( (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:809:1: (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:809:1: (otherlv_0= '=' ( (lv_default_1_0= ruleValue ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:809:3: otherlv_0= '=' ( (lv_default_1_0= ruleValue ) )
+ {
+ otherlv_0=(Token)match(input,25,FOLLOW_25_in_ruleDefaultValueRule1731);
+
+ newLeafNode(otherlv_0, grammarAccess.getDefaultValueRuleAccess().getEqualsSignKeyword_0());
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:813:1: ( (lv_default_1_0= ruleValue ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:814:1: (lv_default_1_0= ruleValue )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:814:1: (lv_default_1_0= ruleValue )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:815:3: lv_default_1_0= ruleValue
+ {
+
+ newCompositeNode(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0());
+
+ pushFollow(FOLLOW_ruleValue_in_ruleDefaultValueRule1752);
+ lv_default_1_0=ruleValue();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getDefaultValueRuleRule());
+ }
+ set(
+ current,
+ "default",
+ lv_default_1_0,
+ "Value");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleDefaultValueRule"
+
+
+ // $ANTLR start "entryRuleValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:839:1: entryRuleValue returns [EObject current=null] : iv_ruleValue= ruleValue EOF ;
+ public final EObject entryRuleValue() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleValue = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:840:2: (iv_ruleValue= ruleValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:841:2: iv_ruleValue= ruleValue EOF
+ {
+ newCompositeNode(grammarAccess.getValueRule());
+ pushFollow(FOLLOW_ruleValue_in_entryRuleValue1788);
+ iv_ruleValue=ruleValue();
+
+ state._fsp--;
+
+ current =iv_ruleValue;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleValue1798);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleValue"
+
+
+ // $ANTLR start "ruleValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:848:1: ruleValue returns [EObject current=null] : (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue | this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue ) ;
+ public final EObject ruleValue() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_IntValue_0 = null;
+
+ EObject this_StringValue_1 = null;
+
+ EObject this_BooleanValue_2 = null;
+
+ EObject this_RealValue_3 = null;
+
+ EObject this_NullValue_4 = null;
+
+ EObject this_NoValue_5 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:851:28: ( (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue | this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:852:1: (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue | this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:852:1: (this_IntValue_0= ruleIntValue | this_StringValue_1= ruleStringValue | this_BooleanValue_2= ruleBooleanValue | this_RealValue_3= ruleRealValue | this_NullValue_4= ruleNullValue | this_NoValue_5= ruleNoValue )
+ int alt16=6;
+ switch ( input.LA(1) ) {
+ case RULE_INT:
+ {
+ int LA16_1 = input.LA(2);
+
+ if ( (LA16_1==EOF) ) {
+ alt16=1;
+ }
+ else if ( (LA16_1==26) ) {
+ alt16=4;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 16, 1, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_STRING:
+ {
+ alt16=2;
+ }
+ break;
+ case 37:
+ case 38:
+ {
+ alt16=3;
+ }
+ break;
+ case 26:
+ {
+ alt16=4;
+ }
+ break;
+ case 27:
+ {
+ alt16=5;
+ }
+ break;
+ case 28:
+ {
+ alt16=6;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 16, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt16) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:853:5: this_IntValue_0= ruleIntValue
+ {
+
+ newCompositeNode(grammarAccess.getValueAccess().getIntValueParserRuleCall_0());
+
+ pushFollow(FOLLOW_ruleIntValue_in_ruleValue1845);
+ this_IntValue_0=ruleIntValue();
+
+ state._fsp--;
+
+
+ current = this_IntValue_0;
+ afterParserOrEnumRuleCall();
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:863:5: this_StringValue_1= ruleStringValue
+ {
+
+ newCompositeNode(grammarAccess.getValueAccess().getStringValueParserRuleCall_1());
+
+ pushFollow(FOLLOW_ruleStringValue_in_ruleValue1872);
+ this_StringValue_1=ruleStringValue();
+
+ state._fsp--;
+
+
+ current = this_StringValue_1;
+ afterParserOrEnumRuleCall();
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:873:5: this_BooleanValue_2= ruleBooleanValue
+ {
+
+ newCompositeNode(grammarAccess.getValueAccess().getBooleanValueParserRuleCall_2());
+
+ pushFollow(FOLLOW_ruleBooleanValue_in_ruleValue1899);
+ this_BooleanValue_2=ruleBooleanValue();
+
+ state._fsp--;
+
+
+ current = this_BooleanValue_2;
+ afterParserOrEnumRuleCall();
+
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:883:5: this_RealValue_3= ruleRealValue
+ {
+
+ newCompositeNode(grammarAccess.getValueAccess().getRealValueParserRuleCall_3());
+
+ pushFollow(FOLLOW_ruleRealValue_in_ruleValue1926);
+ this_RealValue_3=ruleRealValue();
+
+ state._fsp--;
+
+
+ current = this_RealValue_3;
+ afterParserOrEnumRuleCall();
+
+
+ }
+ break;
+ case 5 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:893:5: this_NullValue_4= ruleNullValue
+ {
+
+ newCompositeNode(grammarAccess.getValueAccess().getNullValueParserRuleCall_4());
+
+ pushFollow(FOLLOW_ruleNullValue_in_ruleValue1953);
+ this_NullValue_4=ruleNullValue();
+
+ state._fsp--;
+
+
+ current = this_NullValue_4;
+ afterParserOrEnumRuleCall();
+
+
+ }
+ break;
+ case 6 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:903:5: this_NoValue_5= ruleNoValue
+ {
+
+ newCompositeNode(grammarAccess.getValueAccess().getNoValueParserRuleCall_5());
+
+ pushFollow(FOLLOW_ruleNoValue_in_ruleValue1980);
+ this_NoValue_5=ruleNoValue();
+
+ state._fsp--;
+
+
+ current = this_NoValue_5;
+ afterParserOrEnumRuleCall();
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleValue"
+
+
+ // $ANTLR start "entryRuleIntValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:919:1: entryRuleIntValue returns [EObject current=null] : iv_ruleIntValue= ruleIntValue EOF ;
+ public final EObject entryRuleIntValue() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleIntValue = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:920:2: (iv_ruleIntValue= ruleIntValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:921:2: iv_ruleIntValue= ruleIntValue EOF
+ {
+ newCompositeNode(grammarAccess.getIntValueRule());
+ pushFollow(FOLLOW_ruleIntValue_in_entryRuleIntValue2015);
+ iv_ruleIntValue=ruleIntValue();
+
+ state._fsp--;
+
+ current =iv_ruleIntValue;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleIntValue2025);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleIntValue"
+
+
+ // $ANTLR start "ruleIntValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:928:1: ruleIntValue returns [EObject current=null] : ( (lv_literalInteger_0_0= RULE_INT ) ) ;
+ public final EObject ruleIntValue() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_literalInteger_0_0=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:931:28: ( ( (lv_literalInteger_0_0= RULE_INT ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:932:1: ( (lv_literalInteger_0_0= RULE_INT ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:932:1: ( (lv_literalInteger_0_0= RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:933:1: (lv_literalInteger_0_0= RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:933:1: (lv_literalInteger_0_0= RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:934:3: lv_literalInteger_0_0= RULE_INT
+ {
+ lv_literalInteger_0_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleIntValue2066);
+
+ newLeafNode(lv_literalInteger_0_0, grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getIntValueRule());
+ }
+ setWithLastConsumed(
+ current,
+ "literalInteger",
+ lv_literalInteger_0_0,
+ "INT");
+
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleIntValue"
+
+
+ // $ANTLR start "entryRuleStringValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:958:1: entryRuleStringValue returns [EObject current=null] : iv_ruleStringValue= ruleStringValue EOF ;
+ public final EObject entryRuleStringValue() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleStringValue = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:959:2: (iv_ruleStringValue= ruleStringValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:960:2: iv_ruleStringValue= ruleStringValue EOF
+ {
+ newCompositeNode(grammarAccess.getStringValueRule());
+ pushFollow(FOLLOW_ruleStringValue_in_entryRuleStringValue2106);
+ iv_ruleStringValue=ruleStringValue();
+
+ state._fsp--;
+
+ current =iv_ruleStringValue;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleStringValue2116);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleStringValue"
+
+
+ // $ANTLR start "ruleStringValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:967:1: ruleStringValue returns [EObject current=null] : ( (lv_literalString_0_0= RULE_STRING ) ) ;
+ public final EObject ruleStringValue() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_literalString_0_0=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:970:28: ( ( (lv_literalString_0_0= RULE_STRING ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:971:1: ( (lv_literalString_0_0= RULE_STRING ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:971:1: ( (lv_literalString_0_0= RULE_STRING ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:972:1: (lv_literalString_0_0= RULE_STRING )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:972:1: (lv_literalString_0_0= RULE_STRING )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:973:3: lv_literalString_0_0= RULE_STRING
+ {
+ lv_literalString_0_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleStringValue2157);
+
+ newLeafNode(lv_literalString_0_0, grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getStringValueRule());
+ }
+ setWithLastConsumed(
+ current,
+ "literalString",
+ lv_literalString_0_0,
+ "STRING");
+
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleStringValue"
+
+
+ // $ANTLR start "entryRuleBooleanValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:997:1: entryRuleBooleanValue returns [EObject current=null] : iv_ruleBooleanValue= ruleBooleanValue EOF ;
+ public final EObject entryRuleBooleanValue() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBooleanValue = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:998:2: (iv_ruleBooleanValue= ruleBooleanValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:999:2: iv_ruleBooleanValue= ruleBooleanValue EOF
+ {
+ newCompositeNode(grammarAccess.getBooleanValueRule());
+ pushFollow(FOLLOW_ruleBooleanValue_in_entryRuleBooleanValue2197);
+ iv_ruleBooleanValue=ruleBooleanValue();
+
+ state._fsp--;
+
+ current =iv_ruleBooleanValue;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleBooleanValue2207);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleBooleanValue"
+
+
+ // $ANTLR start "ruleBooleanValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1006:1: ruleBooleanValue returns [EObject current=null] : ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) ) ;
+ public final EObject ruleBooleanValue() throws RecognitionException {
+ EObject current = null;
+
+ Enumerator lv_literalBoolean_0_0 = null;
+
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1009:28: ( ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1010:1: ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1010:1: ( (lv_literalBoolean_0_0= ruleBooleanLiterals ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1011:1: (lv_literalBoolean_0_0= ruleBooleanLiterals )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1011:1: (lv_literalBoolean_0_0= ruleBooleanLiterals )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1012:3: lv_literalBoolean_0_0= ruleBooleanLiterals
+ {
+
+ newCompositeNode(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0());
+
+ pushFollow(FOLLOW_ruleBooleanLiterals_in_ruleBooleanValue2252);
+ lv_literalBoolean_0_0=ruleBooleanLiterals();
+
+ state._fsp--;
+
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getBooleanValueRule());
+ }
+ set(
+ current,
+ "literalBoolean",
+ lv_literalBoolean_0_0,
+ "BooleanLiterals");
+ afterParserOrEnumRuleCall();
+
+
+ }
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleBooleanValue"
+
+
+ // $ANTLR start "entryRuleRealValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1036:1: entryRuleRealValue returns [EObject current=null] : iv_ruleRealValue= ruleRealValue EOF ;
+ public final EObject entryRuleRealValue() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleRealValue = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1037:2: (iv_ruleRealValue= ruleRealValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1038:2: iv_ruleRealValue= ruleRealValue EOF
+ {
+ newCompositeNode(grammarAccess.getRealValueRule());
+ pushFollow(FOLLOW_ruleRealValue_in_entryRuleRealValue2287);
+ iv_ruleRealValue=ruleRealValue();
+
+ state._fsp--;
+
+ current =iv_ruleRealValue;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleRealValue2297);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleRealValue"
+
+
+ // $ANTLR start "ruleRealValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1045:1: ruleRealValue returns [EObject current=null] : ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) ) ;
+ public final EObject ruleRealValue() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_integer_0_0=null;
+ Token otherlv_1=null;
+ Token otherlv_2=null;
+ Token lv_fraction_3_0=null;
+ Token lv_integer_4_0=null;
+ Token otherlv_5=null;
+ Token lv_fraction_6_0=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1048:28: ( ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1049:1: ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1049:1: ( ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' ) | (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) ) | ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) ) )
+ int alt17=3;
+ int LA17_0 = input.LA(1);
+
+ if ( (LA17_0==RULE_INT) ) {
+ int LA17_1 = input.LA(2);
+
+ if ( (LA17_1==26) ) {
+ int LA17_3 = input.LA(3);
+
+ if ( (LA17_3==EOF) ) {
+ alt17=1;
+ }
+ else if ( (LA17_3==RULE_INT) ) {
+ alt17=3;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 17, 3, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 17, 1, input);
+
+ throw nvae;
+ }
+ }
+ else if ( (LA17_0==26) ) {
+ alt17=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 17, 0, input);
+
+ throw nvae;
+ }
+ switch (alt17) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1049:2: ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1049:2: ( ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1049:3: ( (lv_integer_0_0= RULE_INT ) ) otherlv_1= '.'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1049:3: ( (lv_integer_0_0= RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1050:1: (lv_integer_0_0= RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1050:1: (lv_integer_0_0= RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1051:3: lv_integer_0_0= RULE_INT
+ {
+ lv_integer_0_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleRealValue2340);
+
+ newLeafNode(lv_integer_0_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_0_0_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getRealValueRule());
+ }
+ setWithLastConsumed(
+ current,
+ "integer",
+ lv_integer_0_0,
+ "INT");
+
+
+ }
+
+
+ }
+
+ otherlv_1=(Token)match(input,26,FOLLOW_26_in_ruleRealValue2357);
+
+ newLeafNode(otherlv_1, grammarAccess.getRealValueAccess().getFullStopKeyword_0_1());
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1072:6: (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1072:6: (otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1072:8: otherlv_2= '.' ( (lv_fraction_3_0= RULE_INT ) )
+ {
+ otherlv_2=(Token)match(input,26,FOLLOW_26_in_ruleRealValue2377);
+
+ newLeafNode(otherlv_2, grammarAccess.getRealValueAccess().getFullStopKeyword_1_0());
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1076:1: ( (lv_fraction_3_0= RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1077:1: (lv_fraction_3_0= RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1077:1: (lv_fraction_3_0= RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1078:3: lv_fraction_3_0= RULE_INT
+ {
+ lv_fraction_3_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleRealValue2394);
+
+ newLeafNode(lv_fraction_3_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_1_1_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getRealValueRule());
+ }
+ setWithLastConsumed(
+ current,
+ "fraction",
+ lv_fraction_3_0,
+ "INT");
+
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1095:6: ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1095:6: ( ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1095:7: ( (lv_integer_4_0= RULE_INT ) ) otherlv_5= '.' ( (lv_fraction_6_0= RULE_INT ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1095:7: ( (lv_integer_4_0= RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1096:1: (lv_integer_4_0= RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1096:1: (lv_integer_4_0= RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1097:3: lv_integer_4_0= RULE_INT
+ {
+ lv_integer_4_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleRealValue2424);
+
+ newLeafNode(lv_integer_4_0, grammarAccess.getRealValueAccess().getIntegerINTTerminalRuleCall_2_0_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getRealValueRule());
+ }
+ setWithLastConsumed(
+ current,
+ "integer",
+ lv_integer_4_0,
+ "INT");
+
+
+ }
+
+
+ }
+
+ otherlv_5=(Token)match(input,26,FOLLOW_26_in_ruleRealValue2441);
+
+ newLeafNode(otherlv_5, grammarAccess.getRealValueAccess().getFullStopKeyword_2_1());
+
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1117:1: ( (lv_fraction_6_0= RULE_INT ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1118:1: (lv_fraction_6_0= RULE_INT )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1118:1: (lv_fraction_6_0= RULE_INT )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1119:3: lv_fraction_6_0= RULE_INT
+ {
+ lv_fraction_6_0=(Token)match(input,RULE_INT,FOLLOW_RULE_INT_in_ruleRealValue2458);
+
+ newLeafNode(lv_fraction_6_0, grammarAccess.getRealValueAccess().getFractionINTTerminalRuleCall_2_2_0());
+
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getRealValueRule());
+ }
+ setWithLastConsumed(
+ current,
+ "fraction",
+ lv_fraction_6_0,
+ "INT");
+
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleRealValue"
+
+
+ // $ANTLR start "entryRuleNullValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1143:1: entryRuleNullValue returns [EObject current=null] : iv_ruleNullValue= ruleNullValue EOF ;
+ public final EObject entryRuleNullValue() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNullValue = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1144:2: (iv_ruleNullValue= ruleNullValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1145:2: iv_ruleNullValue= ruleNullValue EOF
+ {
+ newCompositeNode(grammarAccess.getNullValueRule());
+ pushFollow(FOLLOW_ruleNullValue_in_entryRuleNullValue2500);
+ iv_ruleNullValue=ruleNullValue();
+
+ state._fsp--;
+
+ current =iv_ruleNullValue;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleNullValue2510);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleNullValue"
+
+
+ // $ANTLR start "ruleNullValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1152:1: ruleNullValue returns [EObject current=null] : ( () otherlv_1= 'null' ) ;
+ public final EObject ruleNullValue() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1155:28: ( ( () otherlv_1= 'null' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1156:1: ( () otherlv_1= 'null' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1156:1: ( () otherlv_1= 'null' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1156:2: () otherlv_1= 'null'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1156:2: ()
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1157:5:
+ {
+
+ current = forceCreateModelElement(
+ grammarAccess.getNullValueAccess().getNullValueAction_0(),
+ current);
+
+
+ }
+
+ otherlv_1=(Token)match(input,27,FOLLOW_27_in_ruleNullValue2556);
+
+ newLeafNode(otherlv_1, grammarAccess.getNullValueAccess().getNullKeyword_1());
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNullValue"
+
+
+ // $ANTLR start "entryRuleNoValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1174:1: entryRuleNoValue returns [EObject current=null] : iv_ruleNoValue= ruleNoValue EOF ;
+ public final EObject entryRuleNoValue() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNoValue = null;
+
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1175:2: (iv_ruleNoValue= ruleNoValue EOF )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1176:2: iv_ruleNoValue= ruleNoValue EOF
+ {
+ newCompositeNode(grammarAccess.getNoValueRule());
+ pushFollow(FOLLOW_ruleNoValue_in_entryRuleNoValue2592);
+ iv_ruleNoValue=ruleNoValue();
+
+ state._fsp--;
+
+ current =iv_ruleNoValue;
+ match(input,EOF,FOLLOW_EOF_in_entryRuleNoValue2602);
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleNoValue"
+
+
+ // $ANTLR start "ruleNoValue"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1183:1: ruleNoValue returns [EObject current=null] : ( () otherlv_1= 'none' ) ;
+ public final EObject ruleNoValue() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+
+ enterRule();
+
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1186:28: ( ( () otherlv_1= 'none' ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1187:1: ( () otherlv_1= 'none' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1187:1: ( () otherlv_1= 'none' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1187:2: () otherlv_1= 'none'
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1187:2: ()
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1188:5:
+ {
+
+ current = forceCreateModelElement(
+ grammarAccess.getNoValueAccess().getNoValueAction_0(),
+ current);
+
+
+ }
+
+ otherlv_1=(Token)match(input,28,FOLLOW_28_in_ruleNoValue2648);
+
+ newLeafNode(otherlv_1, grammarAccess.getNoValueAccess().getNoneKeyword_1());
+
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNoValue"
+
+
+ // $ANTLR start "ruleVisibilityKind"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1205:1: ruleVisibilityKind returns [Enumerator current=null] : ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~' ) ) ;
+ public final Enumerator ruleVisibilityKind() throws RecognitionException {
+ Enumerator current = null;
+
+ Token enumLiteral_0=null;
+ Token enumLiteral_1=null;
+ Token enumLiteral_2=null;
+ Token enumLiteral_3=null;
+
+ enterRule();
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1207:28: ( ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~' ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1208:1: ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1208:1: ( (enumLiteral_0= '+' ) | (enumLiteral_1= '-' ) | (enumLiteral_2= '#' ) | (enumLiteral_3= '~' ) )
+ int alt18=4;
+ switch ( input.LA(1) ) {
+ case 29:
+ {
+ alt18=1;
+ }
+ break;
+ case 30:
+ {
+ alt18=2;
+ }
+ break;
+ case 31:
+ {
+ alt18=3;
+ }
+ break;
+ case 32:
+ {
+ alt18=4;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 18, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt18) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1208:2: (enumLiteral_0= '+' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1208:2: (enumLiteral_0= '+' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1208:4: enumLiteral_0= '+'
+ {
+ enumLiteral_0=(Token)match(input,29,FOLLOW_29_in_ruleVisibilityKind2698);
+
+ current = grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_0, grammarAccess.getVisibilityKindAccess().getPublicEnumLiteralDeclaration_0());
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1214:6: (enumLiteral_1= '-' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1214:6: (enumLiteral_1= '-' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1214:8: enumLiteral_1= '-'
+ {
+ enumLiteral_1=(Token)match(input,30,FOLLOW_30_in_ruleVisibilityKind2715);
+
+ current = grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_1, grammarAccess.getVisibilityKindAccess().getPrivateEnumLiteralDeclaration_1());
+
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1220:6: (enumLiteral_2= '#' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1220:6: (enumLiteral_2= '#' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1220:8: enumLiteral_2= '#'
+ {
+ enumLiteral_2=(Token)match(input,31,FOLLOW_31_in_ruleVisibilityKind2732);
+
+ current = grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_2, grammarAccess.getVisibilityKindAccess().getProtectedEnumLiteralDeclaration_2());
+
+
+ }
+
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1226:6: (enumLiteral_3= '~' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1226:6: (enumLiteral_3= '~' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1226:8: enumLiteral_3= '~'
+ {
+ enumLiteral_3=(Token)match(input,32,FOLLOW_32_in_ruleVisibilityKind2749);
+
+ current = grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_3, grammarAccess.getVisibilityKindAccess().getPackageEnumLiteralDeclaration_3());
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleVisibilityKind"
+
+
+ // $ANTLR start "ruleModifierKind"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1236:1: ruleModifierKind returns [Enumerator current=null] : ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) | (enumLiteral_3= 'unique' ) ) ;
+ public final Enumerator ruleModifierKind() throws RecognitionException {
+ Enumerator current = null;
+
+ Token enumLiteral_0=null;
+ Token enumLiteral_1=null;
+ Token enumLiteral_2=null;
+ Token enumLiteral_3=null;
+
+ enterRule();
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1238:28: ( ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) | (enumLiteral_3= 'unique' ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1239:1: ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) | (enumLiteral_3= 'unique' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1239:1: ( (enumLiteral_0= 'readOnly' ) | (enumLiteral_1= 'union' ) | (enumLiteral_2= 'ordered' ) | (enumLiteral_3= 'unique' ) )
+ int alt19=4;
+ switch ( input.LA(1) ) {
+ case 33:
+ {
+ alt19=1;
+ }
+ break;
+ case 34:
+ {
+ alt19=2;
+ }
+ break;
+ case 35:
+ {
+ alt19=3;
+ }
+ break;
+ case 36:
+ {
+ alt19=4;
+ }
+ break;
+ default:
+ NoViableAltException nvae =
+ new NoViableAltException("", 19, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt19) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1239:2: (enumLiteral_0= 'readOnly' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1239:2: (enumLiteral_0= 'readOnly' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1239:4: enumLiteral_0= 'readOnly'
+ {
+ enumLiteral_0=(Token)match(input,33,FOLLOW_33_in_ruleModifierKind2794);
+
+ current = grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_0, grammarAccess.getModifierKindAccess().getReadOnlyEnumLiteralDeclaration_0());
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1245:6: (enumLiteral_1= 'union' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1245:6: (enumLiteral_1= 'union' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1245:8: enumLiteral_1= 'union'
+ {
+ enumLiteral_1=(Token)match(input,34,FOLLOW_34_in_ruleModifierKind2811);
+
+ current = grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_1, grammarAccess.getModifierKindAccess().getUnionEnumLiteralDeclaration_1());
+
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1251:6: (enumLiteral_2= 'ordered' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1251:6: (enumLiteral_2= 'ordered' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1251:8: enumLiteral_2= 'ordered'
+ {
+ enumLiteral_2=(Token)match(input,35,FOLLOW_35_in_ruleModifierKind2828);
+
+ current = grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_2, grammarAccess.getModifierKindAccess().getOrderedEnumLiteralDeclaration_2());
+
+
+ }
+
+
+ }
+ break;
+ case 4 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1257:6: (enumLiteral_3= 'unique' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1257:6: (enumLiteral_3= 'unique' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1257:8: enumLiteral_3= 'unique'
+ {
+ enumLiteral_3=(Token)match(input,36,FOLLOW_36_in_ruleModifierKind2845);
+
+ current = grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_3, grammarAccess.getModifierKindAccess().getUniqueEnumLiteralDeclaration_3());
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleModifierKind"
+
+
+ // $ANTLR start "ruleBooleanLiterals"
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1267:1: ruleBooleanLiterals returns [Enumerator current=null] : ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) ) ;
+ public final Enumerator ruleBooleanLiterals() throws RecognitionException {
+ Enumerator current = null;
+
+ Token enumLiteral_0=null;
+ Token enumLiteral_1=null;
+
+ enterRule();
+ try {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1269:28: ( ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) ) )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1270:1: ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1270:1: ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) )
+ int alt20=2;
+ int LA20_0 = input.LA(1);
+
+ if ( (LA20_0==37) ) {
+ alt20=1;
+ }
+ else if ( (LA20_0==38) ) {
+ alt20=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 20, 0, input);
+
+ throw nvae;
+ }
+ switch (alt20) {
+ case 1 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1270:2: (enumLiteral_0= 'true' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1270:2: (enumLiteral_0= 'true' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1270:4: enumLiteral_0= 'true'
+ {
+ enumLiteral_0=(Token)match(input,37,FOLLOW_37_in_ruleBooleanLiterals2890);
+
+ current = grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_0, grammarAccess.getBooleanLiteralsAccess().getTrueEnumLiteralDeclaration_0());
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1276:6: (enumLiteral_1= 'false' )
+ {
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1276:6: (enumLiteral_1= 'false' )
+ // ../org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/parser/antlr/internal/InternalUmlProperty.g:1276:8: enumLiteral_1= 'false'
+ {
+ enumLiteral_1=(Token)match(input,38,FOLLOW_38_in_ruleBooleanLiterals2907);
+
+ current = grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_1, grammarAccess.getBooleanLiteralsAccess().getFalseEnumLiteralDeclaration_1());
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ leaveRule();
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleBooleanLiterals"
+
+ // Delegated rules
+
+
+
+
+ public static final BitSet FOLLOW_rulePropertyRule_in_entryRulePropertyRule75 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRulePropertyRule85 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleVisibilityRule_in_rulePropertyRule131 = new BitSet(new long[]{0x0000000000001010L});
+ public static final BitSet FOLLOW_12_in_rulePropertyRule150 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_RULE_ID_in_rulePropertyRule181 = new BitSet(new long[]{0x0000000002112002L});
+ public static final BitSet FOLLOW_13_in_rulePropertyRule199 = new BitSet(new long[]{0x0000000000004010L});
+ public static final BitSet FOLLOW_ruleTypeRule_in_rulePropertyRule221 = new BitSet(new long[]{0x0000000002110002L});
+ public static final BitSet FOLLOW_14_in_rulePropertyRule245 = new BitSet(new long[]{0x0000000002110002L});
+ public static final BitSet FOLLOW_ruleMultiplicityRule_in_rulePropertyRule282 = new BitSet(new long[]{0x0000000002100002L});
+ public static final BitSet FOLLOW_ruleModifiersRule_in_rulePropertyRule304 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_ruleDefaultValueRule_in_rulePropertyRule326 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleVisibilityRule_in_entryRuleVisibilityRule363 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleVisibilityRule373 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleVisibilityKind_in_ruleVisibilityRule418 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleTypeRule_in_entryRuleTypeRule453 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleTypeRule463 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleQualifiedName_in_ruleTypeRule509 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_RULE_ID_in_ruleTypeRule530 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleQualifiedName_in_entryRuleQualifiedName566 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleQualifiedName576 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_ID_in_ruleQualifiedName621 = new BitSet(new long[]{0x0000000000008000L});
+ public static final BitSet FOLLOW_15_in_ruleQualifiedName633 = new BitSet(new long[]{0x0000000000000012L});
+ public static final BitSet FOLLOW_ruleQualifiedName_in_ruleQualifiedName654 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleMultiplicityRule_in_entryRuleMultiplicityRule691 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleMultiplicityRule701 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_16_in_ruleMultiplicityRule738 = new BitSet(new long[]{0x0000000000080060L});
+ public static final BitSet FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule759 = new BitSet(new long[]{0x0000000000060000L});
+ public static final BitSet FOLLOW_17_in_ruleMultiplicityRule772 = new BitSet(new long[]{0x0000000000080060L});
+ public static final BitSet FOLLOW_ruleBoundSpecification_in_ruleMultiplicityRule793 = new BitSet(new long[]{0x0000000000040000L});
+ public static final BitSet FOLLOW_18_in_ruleMultiplicityRule807 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBoundSpecification_in_entryRuleBoundSpecification843 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleBoundSpecification853 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_ruleBoundSpecification900 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleStringLiteral_in_ruleBoundSpecification919 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleUnlimitedLiteral_in_entryRuleUnlimitedLiteral958 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleUnlimitedLiteral969 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_ruleUnlimitedLiteral1009 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_19_in_ruleUnlimitedLiteral1033 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleStringLiteral_in_entryRuleStringLiteral1074 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleStringLiteral1085 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_STRING_in_ruleStringLiteral1124 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleModifiersRule_in_entryRuleModifiersRule1168 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleModifiersRule1178 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_20_in_ruleModifiersRule1224 = new BitSet(new long[]{0x0000001E01C00000L});
+ public static final BitSet FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1246 = new BitSet(new long[]{0x0000000000600000L});
+ public static final BitSet FOLLOW_21_in_ruleModifiersRule1259 = new BitSet(new long[]{0x0000001E01800000L});
+ public static final BitSet FOLLOW_ruleModifierSpecification_in_ruleModifiersRule1280 = new BitSet(new long[]{0x0000000000600000L});
+ public static final BitSet FOLLOW_22_in_ruleModifiersRule1296 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleModifierSpecification_in_entryRuleModifierSpecification1332 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleModifierSpecification1342 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleModifierKind_in_ruleModifierSpecification1388 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleRedefinesRule_in_ruleModifierSpecification1415 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleSubsetsRule_in_ruleModifierSpecification1442 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleRedefinesRule_in_entryRuleRedefinesRule1478 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleRedefinesRule1488 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_23_in_ruleRedefinesRule1525 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_RULE_ID_in_ruleRedefinesRule1545 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleSubsetsRule_in_entryRuleSubsetsRule1581 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleSubsetsRule1591 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_24_in_ruleSubsetsRule1628 = new BitSet(new long[]{0x0000000000000010L});
+ public static final BitSet FOLLOW_RULE_ID_in_ruleSubsetsRule1648 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleDefaultValueRule_in_entryRuleDefaultValueRule1684 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleDefaultValueRule1694 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_25_in_ruleDefaultValueRule1731 = new BitSet(new long[]{0x000000601C000060L});
+ public static final BitSet FOLLOW_ruleValue_in_ruleDefaultValueRule1752 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleValue_in_entryRuleValue1788 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleValue1798 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleIntValue_in_ruleValue1845 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleStringValue_in_ruleValue1872 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBooleanValue_in_ruleValue1899 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleRealValue_in_ruleValue1926 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleNullValue_in_ruleValue1953 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleNoValue_in_ruleValue1980 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleIntValue_in_entryRuleIntValue2015 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleIntValue2025 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_ruleIntValue2066 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleStringValue_in_entryRuleStringValue2106 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleStringValue2116 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_STRING_in_ruleStringValue2157 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBooleanValue_in_entryRuleBooleanValue2197 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleBooleanValue2207 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleBooleanLiterals_in_ruleBooleanValue2252 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleRealValue_in_entryRuleRealValue2287 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleRealValue2297 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2340 = new BitSet(new long[]{0x0000000004000000L});
+ public static final BitSet FOLLOW_26_in_ruleRealValue2357 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_26_in_ruleRealValue2377 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2394 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2424 = new BitSet(new long[]{0x0000000004000000L});
+ public static final BitSet FOLLOW_26_in_ruleRealValue2441 = new BitSet(new long[]{0x0000000000000020L});
+ public static final BitSet FOLLOW_RULE_INT_in_ruleRealValue2458 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleNullValue_in_entryRuleNullValue2500 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleNullValue2510 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_27_in_ruleNullValue2556 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_ruleNoValue_in_entryRuleNoValue2592 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_EOF_in_entryRuleNoValue2602 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_28_in_ruleNoValue2648 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_29_in_ruleVisibilityKind2698 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_30_in_ruleVisibilityKind2715 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_31_in_ruleVisibilityKind2732 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_32_in_ruleVisibilityKind2749 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_33_in_ruleModifierKind2794 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_34_in_ruleModifierKind2811 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_35_in_ruleModifierKind2828 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_36_in_ruleModifierKind2845 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_37_in_ruleBooleanLiterals2890 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_38_in_ruleBooleanLiterals2907 = new BitSet(new long[]{0x0000000000000002L});
+
} \ No newline at end of file
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/UmlPropertySemanticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/UmlPropertySemanticSequencer.java
index bc4dfb84535..b2f15595b57 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/UmlPropertySemanticSequencer.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/UmlPropertySemanticSequencer.java
@@ -1,393 +1,311 @@
-package org.eclipse.papyrus.uml.textedit.property.xtext.serializer;
-
-import com.google.inject.Inject;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule;
-import org.eclipse.xtext.serializer.acceptor.SequenceFeeder;
-import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider;
-import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient;
-
-@SuppressWarnings("all")
-public class UmlPropertySemanticSequencer extends AbstractDelegatingSemanticSequencer {
-
- @Inject
- private UmlPropertyGrammarAccess grammarAccess;
-
- public void createSequence(EObject context, EObject semanticObject) {
- if (semanticObject.eClass().getEPackage() == UmlPropertyPackage.eINSTANCE) {
- switch (semanticObject.eClass().getClassifierID()) {
- case UmlPropertyPackage.BOOLEAN_VALUE:
- if (context == grammarAccess.getBooleanValueRule() ||
- context == grammarAccess.getValueRule()) {
- sequence_BooleanValue(context, (BooleanValue) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPropertyPackage.BOUND_SPECIFICATION:
- if (context == grammarAccess.getBoundSpecificationRule()) {
- sequence_BoundSpecification(context, (BoundSpecification) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPropertyPackage.DEFAULT_VALUE_RULE:
- if (context == grammarAccess.getDefaultValueRuleRule()) {
- sequence_DefaultValueRule(context, (DefaultValueRule) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPropertyPackage.INT_VALUE:
- if (context == grammarAccess.getIntValueRule() ||
- context == grammarAccess.getValueRule()) {
- sequence_IntValue(context, (IntValue) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPropertyPackage.MODIFIER_SPECIFICATION:
- if (context == grammarAccess.getModifierSpecificationRule()) {
- sequence_ModifierSpecification(context, (ModifierSpecification) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPropertyPackage.MODIFIERS_RULE:
- if (context == grammarAccess.getModifiersRuleRule()) {
- sequence_ModifiersRule(context, (ModifiersRule) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPropertyPackage.MULTIPLICITY_RULE:
- if (context == grammarAccess.getMultiplicityRuleRule()) {
- sequence_MultiplicityRule(context, (MultiplicityRule) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPropertyPackage.NO_VALUE:
- if (context == grammarAccess.getNoValueRule() ||
- context == grammarAccess.getValueRule()) {
- sequence_NoValue(context, (NoValue) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPropertyPackage.NULL_VALUE:
- if (context == grammarAccess.getNullValueRule() ||
- context == grammarAccess.getValueRule()) {
- sequence_NullValue(context, (NullValue) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPropertyPackage.PROPERTY_RULE:
- if (context == grammarAccess.getPropertyRuleRule()) {
- sequence_PropertyRule(context, (PropertyRule) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPropertyPackage.QUALIFIED_NAME:
- if (context == grammarAccess.getQualifiedNameRule()) {
- sequence_QualifiedName(context, (QualifiedName) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPropertyPackage.REAL_VALUE:
- if (context == grammarAccess.getRealValueRule() ||
- context == grammarAccess.getValueRule()) {
- sequence_RealValue(context, (RealValue) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPropertyPackage.REDEFINES_RULE:
- if (context == grammarAccess.getRedefinesRuleRule()) {
- sequence_RedefinesRule(context, (RedefinesRule) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPropertyPackage.STRING_VALUE:
- if (context == grammarAccess.getStringValueRule() ||
- context == grammarAccess.getValueRule()) {
- sequence_StringValue(context, (StringValue) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPropertyPackage.SUBSETS_RULE:
- if (context == grammarAccess.getSubsetsRuleRule()) {
- sequence_SubsetsRule(context, (SubsetsRule) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPropertyPackage.TYPE_RULE:
- if (context == grammarAccess.getTypeRuleRule()) {
- sequence_TypeRule(context, (TypeRule) semanticObject);
- return;
- } else {
- break;
- }
- case UmlPropertyPackage.VISIBILITY_RULE:
- if (context == grammarAccess.getVisibilityRuleRule()) {
- sequence_VisibilityRule(context, (VisibilityRule) semanticObject);
- return;
- } else {
- break;
- }
- }
- }
- if (errorAcceptor != null) {
- errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
- }
- }
-
- /**
- * Constraint:
- * literalBoolean=BooleanLiterals
- */
- protected void sequence_BooleanValue(EObject context, BooleanValue semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.BOOLEAN_VALUE__LITERAL_BOOLEAN) == ValueTransient.YES) {
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.BOOLEAN_VALUE__LITERAL_BOOLEAN));
- }
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0(), semanticObject.getLiteralBoolean());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * value=UnlimitedLiteral
- */
- protected void sequence_BoundSpecification(EObject context, BoundSpecification semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.BOUND_SPECIFICATION__VALUE) == ValueTransient.YES) {
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.BOUND_SPECIFICATION__VALUE));
- }
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getBoundSpecificationAccess().getValueUnlimitedLiteralParserRuleCall_0(), semanticObject.getValue());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * default=Value
- */
- protected void sequence_DefaultValueRule(EObject context, DefaultValueRule semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.DEFAULT_VALUE_RULE__DEFAULT) == ValueTransient.YES) {
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.DEFAULT_VALUE_RULE__DEFAULT));
- }
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0(), semanticObject.getDefault());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * literalInteger=INT
- */
- protected void sequence_IntValue(EObject context, IntValue semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.INT_VALUE__LITERAL_INTEGER) == ValueTransient.YES) {
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.INT_VALUE__LITERAL_INTEGER));
- }
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0(), semanticObject.getLiteralInteger());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule)
- */
- protected void sequence_ModifierSpecification(EObject context, ModifierSpecification semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * ((values+=ModifierSpecification values+=ModifierSpecification*)?)
- */
- protected void sequence_ModifiersRule(EObject context, ModifiersRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (bounds+=BoundSpecification bounds+=BoundSpecification?)
- */
- protected void sequence_MultiplicityRule(EObject context, MultiplicityRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * {NoValue}
- */
- protected void sequence_NoValue(EObject context, NoValue semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * {NullValue}
- */
- protected void sequence_NullValue(EObject context, NullValue semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (
- * visibility=VisibilityRule?
- * derived?='/'?
- * name=ID
- * (type=TypeRule | typeUndefined?='<Undefined>')?
- * multiplicity=MultiplicityRule?
- * modifiers=ModifiersRule?
- * default=DefaultValueRule?
- * )
- */
- protected void sequence_PropertyRule(EObject context, PropertyRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (path=[Namespace|ID] remaining=QualifiedName?)
- */
- protected void sequence_QualifiedName(EObject context, QualifiedName semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * (integer=INT | fraction=INT | (integer=INT fraction=INT))
- */
- protected void sequence_RealValue(EObject context, RealValue semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * property=[Property|ID]
- */
- protected void sequence_RedefinesRule(EObject context, RedefinesRule semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.REDEFINES_RULE__PROPERTY) == ValueTransient.YES) {
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.REDEFINES_RULE__PROPERTY));
- }
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1(), semanticObject.getProperty());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * literalString=STRING
- */
- protected void sequence_StringValue(EObject context, StringValue semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.STRING_VALUE__LITERAL_STRING) == ValueTransient.YES) {
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.STRING_VALUE__LITERAL_STRING));
- }
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0(), semanticObject.getLiteralString());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * property=[Property|ID]
- */
- protected void sequence_SubsetsRule(EObject context, SubsetsRule semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.SUBSETS_RULE__PROPERTY) == ValueTransient.YES) {
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.SUBSETS_RULE__PROPERTY));
- }
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1(), semanticObject.getProperty());
- feeder.finish();
- }
-
-
- /**
- * Constraint:
- * (path=QualifiedName? type=[Classifier|ID])
- */
- protected void sequence_TypeRule(EObject context, TypeRule semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Constraint:
- * visibility=VisibilityKind
- */
- protected void sequence_VisibilityRule(EObject context, VisibilityRule semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.VISIBILITY_RULE__VISIBILITY) == ValueTransient.YES) {
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.VISIBILITY_RULE__VISIBILITY));
- }
- }
- INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
- SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
- feeder.accept(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0(), semanticObject.getVisibility());
- feeder.finish();
- }
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.serializer;
+
+import com.google.inject.Inject;
+import com.google.inject.Provider;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule;
+import org.eclipse.xtext.serializer.acceptor.ISemanticSequenceAcceptor;
+import org.eclipse.xtext.serializer.acceptor.SequenceFeeder;
+import org.eclipse.xtext.serializer.diagnostic.ISemanticSequencerDiagnosticProvider;
+import org.eclipse.xtext.serializer.diagnostic.ISerializationDiagnostic.Acceptor;
+import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer;
+import org.eclipse.xtext.serializer.sequencer.GenericSequencer;
+import org.eclipse.xtext.serializer.sequencer.ISemanticNodeProvider.INodesForEObjectProvider;
+import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer;
+import org.eclipse.xtext.serializer.sequencer.ITransientValueService;
+import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient;
+
+@SuppressWarnings("all")
+public class UmlPropertySemanticSequencer extends AbstractDelegatingSemanticSequencer {
+
+ @Inject
+ private UmlPropertyGrammarAccess grammarAccess;
+
+ @Override
+ public void createSequence(EObject context, EObject semanticObject) {
+ if(semanticObject.eClass().getEPackage() == UmlPropertyPackage.eINSTANCE) switch(semanticObject.eClass().getClassifierID()) {
+ case UmlPropertyPackage.BOOLEAN_VALUE:
+ sequence_BooleanValue(context, (BooleanValue) semanticObject);
+ return;
+ case UmlPropertyPackage.BOUND_SPECIFICATION:
+ sequence_BoundSpecification(context, (BoundSpecification) semanticObject);
+ return;
+ case UmlPropertyPackage.DEFAULT_VALUE_RULE:
+ sequence_DefaultValueRule(context, (DefaultValueRule) semanticObject);
+ return;
+ case UmlPropertyPackage.INT_VALUE:
+ sequence_IntValue(context, (IntValue) semanticObject);
+ return;
+ case UmlPropertyPackage.MODIFIER_SPECIFICATION:
+ sequence_ModifierSpecification(context, (ModifierSpecification) semanticObject);
+ return;
+ case UmlPropertyPackage.MODIFIERS_RULE:
+ sequence_ModifiersRule(context, (ModifiersRule) semanticObject);
+ return;
+ case UmlPropertyPackage.MULTIPLICITY_RULE:
+ sequence_MultiplicityRule(context, (MultiplicityRule) semanticObject);
+ return;
+ case UmlPropertyPackage.NO_VALUE:
+ sequence_NoValue(context, (NoValue) semanticObject);
+ return;
+ case UmlPropertyPackage.NULL_VALUE:
+ sequence_NullValue(context, (NullValue) semanticObject);
+ return;
+ case UmlPropertyPackage.PROPERTY_RULE:
+ sequence_PropertyRule(context, (PropertyRule) semanticObject);
+ return;
+ case UmlPropertyPackage.QUALIFIED_NAME:
+ sequence_QualifiedName(context, (QualifiedName) semanticObject);
+ return;
+ case UmlPropertyPackage.REAL_VALUE:
+ sequence_RealValue(context, (RealValue) semanticObject);
+ return;
+ case UmlPropertyPackage.REDEFINES_RULE:
+ sequence_RedefinesRule(context, (RedefinesRule) semanticObject);
+ return;
+ case UmlPropertyPackage.STRING_VALUE:
+ sequence_StringValue(context, (StringValue) semanticObject);
+ return;
+ case UmlPropertyPackage.SUBSETS_RULE:
+ sequence_SubsetsRule(context, (SubsetsRule) semanticObject);
+ return;
+ case UmlPropertyPackage.TYPE_RULE:
+ sequence_TypeRule(context, (TypeRule) semanticObject);
+ return;
+ case UmlPropertyPackage.VISIBILITY_RULE:
+ sequence_VisibilityRule(context, (VisibilityRule) semanticObject);
+ return;
+ }
+ if (errorAcceptor != null) errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
+ }
+
+ /**
+ * Constraint:
+ * literalBoolean=BooleanLiterals
+ */
+ protected void sequence_BooleanValue(EObject context, BooleanValue semanticObject) {
+ if(errorAcceptor != null) {
+ if(transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.BOOLEAN_VALUE__LITERAL_BOOLEAN) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.BOOLEAN_VALUE__LITERAL_BOOLEAN));
+ }
+ INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
+ SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
+ feeder.accept(grammarAccess.getBooleanValueAccess().getLiteralBooleanBooleanLiteralsEnumRuleCall_0(), semanticObject.getLiteralBoolean());
+ feeder.finish();
+ }
+
+
+ /**
+ * Constraint:
+ * (value=UnlimitedLiteral | value=StringLiteral)
+ */
+ protected void sequence_BoundSpecification(EObject context, BoundSpecification semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * default=Value
+ */
+ protected void sequence_DefaultValueRule(EObject context, DefaultValueRule semanticObject) {
+ if(errorAcceptor != null) {
+ if(transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.DEFAULT_VALUE_RULE__DEFAULT) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.DEFAULT_VALUE_RULE__DEFAULT));
+ }
+ INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
+ SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
+ feeder.accept(grammarAccess.getDefaultValueRuleAccess().getDefaultValueParserRuleCall_1_0(), semanticObject.getDefault());
+ feeder.finish();
+ }
+
+
+ /**
+ * Constraint:
+ * literalInteger=INT
+ */
+ protected void sequence_IntValue(EObject context, IntValue semanticObject) {
+ if(errorAcceptor != null) {
+ if(transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.INT_VALUE__LITERAL_INTEGER) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.INT_VALUE__LITERAL_INTEGER));
+ }
+ INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
+ SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
+ feeder.accept(grammarAccess.getIntValueAccess().getLiteralIntegerINTTerminalRuleCall_0(), semanticObject.getLiteralInteger());
+ feeder.finish();
+ }
+
+
+ /**
+ * Constraint:
+ * (value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule)
+ */
+ protected void sequence_ModifierSpecification(EObject context, ModifierSpecification semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * ((values+=ModifierSpecification values+=ModifierSpecification*)?)
+ */
+ protected void sequence_ModifiersRule(EObject context, ModifiersRule semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * (bounds+=BoundSpecification bounds+=BoundSpecification?)
+ */
+ protected void sequence_MultiplicityRule(EObject context, MultiplicityRule semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * {NoValue}
+ */
+ protected void sequence_NoValue(EObject context, NoValue semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * {NullValue}
+ */
+ protected void sequence_NullValue(EObject context, NullValue semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * (
+ * visibility=VisibilityRule?
+ * derived?='/'?
+ * name=ID
+ * (type=TypeRule | typeUndefined?='<Undefined>')?
+ * multiplicity=MultiplicityRule?
+ * modifiers=ModifiersRule?
+ * default=DefaultValueRule?
+ * )
+ */
+ protected void sequence_PropertyRule(EObject context, PropertyRule semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * (path=[Namespace|ID] remaining=QualifiedName?)
+ */
+ protected void sequence_QualifiedName(EObject context, QualifiedName semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * (integer=INT | fraction=INT | (integer=INT fraction=INT))
+ */
+ protected void sequence_RealValue(EObject context, RealValue semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * property=[Property|ID]
+ */
+ protected void sequence_RedefinesRule(EObject context, RedefinesRule semanticObject) {
+ if(errorAcceptor != null) {
+ if(transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.REDEFINES_RULE__PROPERTY) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.REDEFINES_RULE__PROPERTY));
+ }
+ INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
+ SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
+ feeder.accept(grammarAccess.getRedefinesRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1(), semanticObject.getProperty());
+ feeder.finish();
+ }
+
+
+ /**
+ * Constraint:
+ * literalString=STRING
+ */
+ protected void sequence_StringValue(EObject context, StringValue semanticObject) {
+ if(errorAcceptor != null) {
+ if(transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.STRING_VALUE__LITERAL_STRING) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.STRING_VALUE__LITERAL_STRING));
+ }
+ INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
+ SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
+ feeder.accept(grammarAccess.getStringValueAccess().getLiteralStringSTRINGTerminalRuleCall_0(), semanticObject.getLiteralString());
+ feeder.finish();
+ }
+
+
+ /**
+ * Constraint:
+ * property=[Property|ID]
+ */
+ protected void sequence_SubsetsRule(EObject context, SubsetsRule semanticObject) {
+ if(errorAcceptor != null) {
+ if(transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.SUBSETS_RULE__PROPERTY) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.SUBSETS_RULE__PROPERTY));
+ }
+ INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
+ SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
+ feeder.accept(grammarAccess.getSubsetsRuleAccess().getPropertyPropertyIDTerminalRuleCall_1_0_1(), semanticObject.getProperty());
+ feeder.finish();
+ }
+
+
+ /**
+ * Constraint:
+ * (path=QualifiedName? type=[Classifier|ID])
+ */
+ protected void sequence_TypeRule(EObject context, TypeRule semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Constraint:
+ * visibility=VisibilityKind
+ */
+ protected void sequence_VisibilityRule(EObject context, VisibilityRule semanticObject) {
+ if(errorAcceptor != null) {
+ if(transientValues.isValueTransient(semanticObject, UmlPropertyPackage.Literals.VISIBILITY_RULE__VISIBILITY) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, UmlPropertyPackage.Literals.VISIBILITY_RULE__VISIBILITY));
+ }
+ INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
+ SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
+ feeder.accept(grammarAccess.getVisibilityRuleAccess().getVisibilityVisibilityKindEnumRuleCall_0(), semanticObject.getVisibility());
+ feeder.finish();
+ }
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/UmlPropertySyntacticSequencer.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/UmlPropertySyntacticSequencer.java
index fd9022598ae..0a42f0c1046 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/UmlPropertySyntacticSequencer.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/serializer/UmlPropertySyntacticSequencer.java
@@ -1,42 +1,43 @@
-package org.eclipse.papyrus.uml.textedit.property.xtext.serializer;
-
-import com.google.inject.Inject;
-import java.util.List;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess;
-import org.eclipse.xtext.IGrammarAccess;
-import org.eclipse.xtext.RuleCall;
-import org.eclipse.xtext.nodemodel.INode;
-import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
-import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
-import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
-
-@SuppressWarnings("all")
-public class UmlPropertySyntacticSequencer extends AbstractSyntacticSequencer {
-
- protected UmlPropertyGrammarAccess grammarAccess;
-
- @Inject
- protected void init(IGrammarAccess access) {
- grammarAccess = (UmlPropertyGrammarAccess) access;
- }
-
- @Override
- protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) {
- return "";
- }
-
-
- @Override
- protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
- if (transition.getAmbiguousSyntaxes().isEmpty()) {
- return;
- }
- List<INode> transitionNodes = collectNodes(fromNode, toNode);
- for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
- List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
- acceptNodes(getLastNavigableState(), syntaxNodes);
- }
- }
-
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.serializer;
+
+import com.google.inject.Inject;
+import java.util.List;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.papyrus.uml.textedit.property.xtext.services.UmlPropertyGrammarAccess;
+import org.eclipse.xtext.IGrammarAccess;
+import org.eclipse.xtext.RuleCall;
+import org.eclipse.xtext.nodemodel.INode;
+import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
+import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
+import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
+
+@SuppressWarnings("all")
+public class UmlPropertySyntacticSequencer extends AbstractSyntacticSequencer {
+
+ protected UmlPropertyGrammarAccess grammarAccess;
+
+ @Inject
+ protected void init(IGrammarAccess access) {
+ grammarAccess = (UmlPropertyGrammarAccess) access;
+ }
+
+ @Override
+ protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) {
+ return "";
+ }
+
+
+ @Override
+ protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
+ if (transition.getAmbiguousSyntaxes().isEmpty()) return;
+ List<INode> transitionNodes = collectNodes(fromNode, toNode);
+ for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
+ List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
+ acceptNodes(getLastNavigableState(), syntaxNodes);
+ }
+ }
+
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/services/UmlPropertyGrammarAccess.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/services/UmlPropertyGrammarAccess.java
index 9b1f05dc24b..cc4ad0e055a 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/services/UmlPropertyGrammarAccess.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/services/UmlPropertyGrammarAccess.java
@@ -1,1436 +1,1148 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.services;
-
-import com.google.inject.Singleton;
-import com.google.inject.Inject;
-
-import java.util.List;
-
-import org.eclipse.xtext.*;
-import org.eclipse.xtext.service.GrammarProvider;
-import org.eclipse.xtext.service.AbstractElementFinder.*;
-
-import org.eclipse.papyrus.uml.alf.services.CommonGrammarAccess;
-
-@Singleton
-public class UmlPropertyGrammarAccess extends AbstractGrammarElementFinder {
-
-
- public class PropertyRuleElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "PropertyRule");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Assignment cVisibilityAssignment_0 = (Assignment) cGroup.eContents().get(0);
- private final RuleCall cVisibilityVisibilityRuleParserRuleCall_0_0 = (RuleCall) cVisibilityAssignment_0.eContents().get(0);
- private final Assignment cDerivedAssignment_1 = (Assignment) cGroup.eContents().get(1);
- private final Keyword cDerivedSolidusKeyword_1_0 = (Keyword) cDerivedAssignment_1.eContents().get(0);
- private final Assignment cNameAssignment_2 = (Assignment) cGroup.eContents().get(2);
- private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall) cNameAssignment_2.eContents().get(0);
- private final Group cGroup_3 = (Group) cGroup.eContents().get(3);
- private final Keyword cColonKeyword_3_0 = (Keyword) cGroup_3.eContents().get(0);
- private final Alternatives cAlternatives_3_1 = (Alternatives) cGroup_3.eContents().get(1);
- private final Assignment cTypeAssignment_3_1_0 = (Assignment) cAlternatives_3_1.eContents().get(0);
- private final RuleCall cTypeTypeRuleParserRuleCall_3_1_0_0 = (RuleCall) cTypeAssignment_3_1_0.eContents().get(0);
- private final Assignment cTypeUndefinedAssignment_3_1_1 = (Assignment) cAlternatives_3_1.eContents().get(1);
- private final Keyword cTypeUndefinedUndefinedKeyword_3_1_1_0 = (Keyword) cTypeUndefinedAssignment_3_1_1.eContents().get(0);
- private final Assignment cMultiplicityAssignment_4 = (Assignment) cGroup.eContents().get(4);
- private final RuleCall cMultiplicityMultiplicityRuleParserRuleCall_4_0 = (RuleCall) cMultiplicityAssignment_4.eContents().get(0);
- private final Assignment cModifiersAssignment_5 = (Assignment) cGroup.eContents().get(5);
- private final RuleCall cModifiersModifiersRuleParserRuleCall_5_0 = (RuleCall) cModifiersAssignment_5.eContents().get(0);
- private final Assignment cDefaultAssignment_6 = (Assignment) cGroup.eContents().get(6);
- private final RuleCall cDefaultDefaultValueRuleParserRuleCall_6_0 = (RuleCall) cDefaultAssignment_6.eContents().get(0);
-
- // PropertyRule:
- // visibility=VisibilityRule? derived?="/"? name=ID (":" (type=TypeRule | typeUndefined?="<Undefined>"))?
- // multiplicity=MultiplicityRule? modifiers=ModifiersRule? default=DefaultValueRule?;
- public ParserRule getRule() {
- return rule;
- }
-
- // visibility=VisibilityRule? derived?="/"? name=ID (":" (type=TypeRule | typeUndefined?="<Undefined>"))?
- // multiplicity=MultiplicityRule? modifiers=ModifiersRule? default=DefaultValueRule?
- public Group getGroup() {
- return cGroup;
- }
-
- // visibility=VisibilityRule?
- public Assignment getVisibilityAssignment_0() {
- return cVisibilityAssignment_0;
- }
-
- // VisibilityRule
- public RuleCall getVisibilityVisibilityRuleParserRuleCall_0_0() {
- return cVisibilityVisibilityRuleParserRuleCall_0_0;
- }
-
- // derived?="/"?
- public Assignment getDerivedAssignment_1() {
- return cDerivedAssignment_1;
- }
-
- // "/"
- public Keyword getDerivedSolidusKeyword_1_0() {
- return cDerivedSolidusKeyword_1_0;
- }
-
- // name=ID
- public Assignment getNameAssignment_2() {
- return cNameAssignment_2;
- }
-
- // ID
- public RuleCall getNameIDTerminalRuleCall_2_0() {
- return cNameIDTerminalRuleCall_2_0;
- }
-
- // (":" (type=TypeRule | typeUndefined?="<Undefined>"))?
- public Group getGroup_3() {
- return cGroup_3;
- }
-
- // ":"
- public Keyword getColonKeyword_3_0() {
- return cColonKeyword_3_0;
- }
-
- // type=TypeRule | typeUndefined?="<Undefined>"
- public Alternatives getAlternatives_3_1() {
- return cAlternatives_3_1;
- }
-
- // type=TypeRule
- public Assignment getTypeAssignment_3_1_0() {
- return cTypeAssignment_3_1_0;
- }
-
- // TypeRule
- public RuleCall getTypeTypeRuleParserRuleCall_3_1_0_0() {
- return cTypeTypeRuleParserRuleCall_3_1_0_0;
- }
-
- // typeUndefined?="<Undefined>"
- public Assignment getTypeUndefinedAssignment_3_1_1() {
- return cTypeUndefinedAssignment_3_1_1;
- }
-
- // "<Undefined>"
- public Keyword getTypeUndefinedUndefinedKeyword_3_1_1_0() {
- return cTypeUndefinedUndefinedKeyword_3_1_1_0;
- }
-
- // multiplicity=MultiplicityRule?
- public Assignment getMultiplicityAssignment_4() {
- return cMultiplicityAssignment_4;
- }
-
- // MultiplicityRule
- public RuleCall getMultiplicityMultiplicityRuleParserRuleCall_4_0() {
- return cMultiplicityMultiplicityRuleParserRuleCall_4_0;
- }
-
- // modifiers=ModifiersRule?
- public Assignment getModifiersAssignment_5() {
- return cModifiersAssignment_5;
- }
-
- // ModifiersRule
- public RuleCall getModifiersModifiersRuleParserRuleCall_5_0() {
- return cModifiersModifiersRuleParserRuleCall_5_0;
- }
-
- // default=DefaultValueRule?
- public Assignment getDefaultAssignment_6() {
- return cDefaultAssignment_6;
- }
-
- // DefaultValueRule
- public RuleCall getDefaultDefaultValueRuleParserRuleCall_6_0() {
- return cDefaultDefaultValueRuleParserRuleCall_6_0;
- }
- }
-
- public class VisibilityRuleElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "VisibilityRule");
- private final Assignment cVisibilityAssignment = (Assignment) rule.eContents().get(1);
- private final RuleCall cVisibilityVisibilityKindEnumRuleCall_0 = (RuleCall) cVisibilityAssignment.eContents().get(0);
-
- // VisibilityRule:
- // visibility=VisibilityKind;
- public ParserRule getRule() {
- return rule;
- }
-
- // visibility=VisibilityKind
- public Assignment getVisibilityAssignment() {
- return cVisibilityAssignment;
- }
-
- // VisibilityKind
- public RuleCall getVisibilityVisibilityKindEnumRuleCall_0() {
- return cVisibilityVisibilityKindEnumRuleCall_0;
- }
- }
-
- public class TypeRuleElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "TypeRule");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Assignment cPathAssignment_0 = (Assignment) cGroup.eContents().get(0);
- private final RuleCall cPathQualifiedNameParserRuleCall_0_0 = (RuleCall) cPathAssignment_0.eContents().get(0);
- private final Assignment cTypeAssignment_1 = (Assignment) cGroup.eContents().get(1);
- private final CrossReference cTypeClassifierCrossReference_1_0 = (CrossReference) cTypeAssignment_1.eContents().get(0);
- private final RuleCall cTypeClassifierIDTerminalRuleCall_1_0_1 = (RuleCall) cTypeClassifierCrossReference_1_0.eContents().get(1);
-
- // TypeRule:
- // path=QualifiedName? type=[uml::Classifier];
- public ParserRule getRule() {
- return rule;
- }
-
- // path=QualifiedName? type=[uml::Classifier]
- public Group getGroup() {
- return cGroup;
- }
-
- // path=QualifiedName?
- public Assignment getPathAssignment_0() {
- return cPathAssignment_0;
- }
-
- // QualifiedName
- public RuleCall getPathQualifiedNameParserRuleCall_0_0() {
- return cPathQualifiedNameParserRuleCall_0_0;
- }
-
- // type=[uml::Classifier]
- public Assignment getTypeAssignment_1() {
- return cTypeAssignment_1;
- }
-
- // [uml::Classifier]
- public CrossReference getTypeClassifierCrossReference_1_0() {
- return cTypeClassifierCrossReference_1_0;
- }
-
- // ID
- public RuleCall getTypeClassifierIDTerminalRuleCall_1_0_1() {
- return cTypeClassifierIDTerminalRuleCall_1_0_1;
- }
- }
-
- public class QualifiedNameElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "QualifiedName");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Assignment cPathAssignment_0 = (Assignment) cGroup.eContents().get(0);
- private final CrossReference cPathNamespaceCrossReference_0_0 = (CrossReference) cPathAssignment_0.eContents().get(0);
- private final RuleCall cPathNamespaceIDTerminalRuleCall_0_0_1 = (RuleCall) cPathNamespaceCrossReference_0_0.eContents().get(1);
- private final Keyword cColonColonKeyword_1 = (Keyword) cGroup.eContents().get(1);
- private final Assignment cRemainingAssignment_2 = (Assignment) cGroup.eContents().get(2);
- private final RuleCall cRemainingQualifiedNameParserRuleCall_2_0 = (RuleCall) cRemainingAssignment_2.eContents().get(0);
-
- // QualifiedName:
- // path=[uml::Namespace] "::" remaining=QualifiedName?;
- public ParserRule getRule() {
- return rule;
- }
-
- // path=[uml::Namespace] "::" remaining=QualifiedName?
- public Group getGroup() {
- return cGroup;
- }
-
- // path=[uml::Namespace]
- public Assignment getPathAssignment_0() {
- return cPathAssignment_0;
- }
-
- // [uml::Namespace]
- public CrossReference getPathNamespaceCrossReference_0_0() {
- return cPathNamespaceCrossReference_0_0;
- }
-
- // ID
- public RuleCall getPathNamespaceIDTerminalRuleCall_0_0_1() {
- return cPathNamespaceIDTerminalRuleCall_0_0_1;
- }
-
- // "::"
- public Keyword getColonColonKeyword_1() {
- return cColonColonKeyword_1;
- }
-
- // remaining=QualifiedName?
- public Assignment getRemainingAssignment_2() {
- return cRemainingAssignment_2;
- }
-
- // QualifiedName
- public RuleCall getRemainingQualifiedNameParserRuleCall_2_0() {
- return cRemainingQualifiedNameParserRuleCall_2_0;
- }
- }
-
- public class MultiplicityRuleElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "MultiplicityRule");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Keyword cLeftSquareBracketKeyword_0 = (Keyword) cGroup.eContents().get(0);
- private final Assignment cBoundsAssignment_1 = (Assignment) cGroup.eContents().get(1);
- private final RuleCall cBoundsBoundSpecificationParserRuleCall_1_0 = (RuleCall) cBoundsAssignment_1.eContents().get(0);
- private final Group cGroup_2 = (Group) cGroup.eContents().get(2);
- private final Keyword cFullStopFullStopKeyword_2_0 = (Keyword) cGroup_2.eContents().get(0);
- private final Assignment cBoundsAssignment_2_1 = (Assignment) cGroup_2.eContents().get(1);
- private final RuleCall cBoundsBoundSpecificationParserRuleCall_2_1_0 = (RuleCall) cBoundsAssignment_2_1.eContents().get(0);
- private final Keyword cRightSquareBracketKeyword_3 = (Keyword) cGroup.eContents().get(3);
-
- // MultiplicityRule:
- // "[" bounds+=BoundSpecification (".." bounds+=BoundSpecification)? "]";
- public ParserRule getRule() {
- return rule;
- }
-
- // "[" bounds+=BoundSpecification (".." bounds+=BoundSpecification)? "]"
- public Group getGroup() {
- return cGroup;
- }
-
- // "["
- public Keyword getLeftSquareBracketKeyword_0() {
- return cLeftSquareBracketKeyword_0;
- }
-
- // bounds+=BoundSpecification
- public Assignment getBoundsAssignment_1() {
- return cBoundsAssignment_1;
- }
-
- // BoundSpecification
- public RuleCall getBoundsBoundSpecificationParserRuleCall_1_0() {
- return cBoundsBoundSpecificationParserRuleCall_1_0;
- }
-
- // (".." bounds+=BoundSpecification)?
- public Group getGroup_2() {
- return cGroup_2;
- }
-
- // ".."
- public Keyword getFullStopFullStopKeyword_2_0() {
- return cFullStopFullStopKeyword_2_0;
- }
-
- // bounds+=BoundSpecification
- public Assignment getBoundsAssignment_2_1() {
- return cBoundsAssignment_2_1;
- }
-
- // BoundSpecification
- public RuleCall getBoundsBoundSpecificationParserRuleCall_2_1_0() {
- return cBoundsBoundSpecificationParserRuleCall_2_1_0;
- }
-
- // "]"
- public Keyword getRightSquareBracketKeyword_3() {
- return cRightSquareBracketKeyword_3;
- }
- }
-
- public class BoundSpecificationElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "BoundSpecification");
- private final Assignment cValueAssignment = (Assignment) rule.eContents().get(1);
- private final RuleCall cValueUnlimitedLiteralParserRuleCall_0 = (RuleCall) cValueAssignment.eContents().get(0);
-
- // BoundSpecification:
- // value=UnlimitedLiteral;
- public ParserRule getRule() {
- return rule;
- }
-
- // value=UnlimitedLiteral
- public Assignment getValueAssignment() {
- return cValueAssignment;
- }
-
- // UnlimitedLiteral
- public RuleCall getValueUnlimitedLiteralParserRuleCall_0() {
- return cValueUnlimitedLiteralParserRuleCall_0;
- }
- }
-
- public class UnlimitedLiteralElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "UnlimitedLiteral");
- private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
- private final RuleCall cINTTerminalRuleCall_0 = (RuleCall) cAlternatives.eContents().get(0);
- private final Keyword cAsteriskKeyword_1 = (Keyword) cAlternatives.eContents().get(1);
-
- // UnlimitedLiteral:
- // INT | "*";
- public ParserRule getRule() {
- return rule;
- }
-
- // INT | "*"
- public Alternatives getAlternatives() {
- return cAlternatives;
- }
-
- // INT
- public RuleCall getINTTerminalRuleCall_0() {
- return cINTTerminalRuleCall_0;
- }
-
- // "*"
- public Keyword getAsteriskKeyword_1() {
- return cAsteriskKeyword_1;
- }
- }
-
- public class ModifiersRuleElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ModifiersRule");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Action cModifiersRuleAction_0 = (Action) cGroup.eContents().get(0);
- private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword) cGroup.eContents().get(1);
- private final Group cGroup_2 = (Group) cGroup.eContents().get(2);
- private final Assignment cValuesAssignment_2_0 = (Assignment) cGroup_2.eContents().get(0);
- private final RuleCall cValuesModifierSpecificationParserRuleCall_2_0_0 = (RuleCall) cValuesAssignment_2_0.eContents().get(0);
- private final Group cGroup_2_1 = (Group) cGroup_2.eContents().get(1);
- private final Keyword cCommaKeyword_2_1_0 = (Keyword) cGroup_2_1.eContents().get(0);
- private final Assignment cValuesAssignment_2_1_1 = (Assignment) cGroup_2_1.eContents().get(1);
- private final RuleCall cValuesModifierSpecificationParserRuleCall_2_1_1_0 = (RuleCall) cValuesAssignment_2_1_1.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_3 = (Keyword) cGroup.eContents().get(3);
-
- // ModifiersRule:
- // {ModifiersRule} "{" (values+=ModifierSpecification ("," values+=ModifierSpecification)*)? "}";
- public ParserRule getRule() {
- return rule;
- }
-
- // {ModifiersRule} "{" (values+=ModifierSpecification ("," values+=ModifierSpecification)*)? "}"
- public Group getGroup() {
- return cGroup;
- }
-
- // {ModifiersRule}
- public Action getModifiersRuleAction_0() {
- return cModifiersRuleAction_0;
- }
-
- // "{"
- public Keyword getLeftCurlyBracketKeyword_1() {
- return cLeftCurlyBracketKeyword_1;
- }
-
- // (values+=ModifierSpecification ("," values+=ModifierSpecification)*)?
- public Group getGroup_2() {
- return cGroup_2;
- }
-
- // values+=ModifierSpecification
- public Assignment getValuesAssignment_2_0() {
- return cValuesAssignment_2_0;
- }
-
- // ModifierSpecification
- public RuleCall getValuesModifierSpecificationParserRuleCall_2_0_0() {
- return cValuesModifierSpecificationParserRuleCall_2_0_0;
- }
-
- // ("," values+=ModifierSpecification)*
- public Group getGroup_2_1() {
- return cGroup_2_1;
- }
-
- // ","
- public Keyword getCommaKeyword_2_1_0() {
- return cCommaKeyword_2_1_0;
- }
-
- // values+=ModifierSpecification
- public Assignment getValuesAssignment_2_1_1() {
- return cValuesAssignment_2_1_1;
- }
-
- // ModifierSpecification
- public RuleCall getValuesModifierSpecificationParserRuleCall_2_1_1_0() {
- return cValuesModifierSpecificationParserRuleCall_2_1_1_0;
- }
-
- // "}"
- public Keyword getRightCurlyBracketKeyword_3() {
- return cRightCurlyBracketKeyword_3;
- }
- }
-
- public class ModifierSpecificationElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ModifierSpecification");
- private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
- private final Assignment cValueAssignment_0 = (Assignment) cAlternatives.eContents().get(0);
- private final RuleCall cValueModifierKindEnumRuleCall_0_0 = (RuleCall) cValueAssignment_0.eContents().get(0);
- private final Assignment cRedefinesAssignment_1 = (Assignment) cAlternatives.eContents().get(1);
- private final RuleCall cRedefinesRedefinesRuleParserRuleCall_1_0 = (RuleCall) cRedefinesAssignment_1.eContents().get(0);
- private final Assignment cSubsetsAssignment_2 = (Assignment) cAlternatives.eContents().get(2);
- private final RuleCall cSubsetsSubsetsRuleParserRuleCall_2_0 = (RuleCall) cSubsetsAssignment_2.eContents().get(0);
-
- // ModifierSpecification:
- // value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule;
- public ParserRule getRule() {
- return rule;
- }
-
- // value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule
- public Alternatives getAlternatives() {
- return cAlternatives;
- }
-
- // value=ModifierKind
- public Assignment getValueAssignment_0() {
- return cValueAssignment_0;
- }
-
- // ModifierKind
- public RuleCall getValueModifierKindEnumRuleCall_0_0() {
- return cValueModifierKindEnumRuleCall_0_0;
- }
-
- // redefines=RedefinesRule
- public Assignment getRedefinesAssignment_1() {
- return cRedefinesAssignment_1;
- }
-
- // RedefinesRule
- public RuleCall getRedefinesRedefinesRuleParserRuleCall_1_0() {
- return cRedefinesRedefinesRuleParserRuleCall_1_0;
- }
-
- // subsets=SubsetsRule
- public Assignment getSubsetsAssignment_2() {
- return cSubsetsAssignment_2;
- }
-
- // SubsetsRule
- public RuleCall getSubsetsSubsetsRuleParserRuleCall_2_0() {
- return cSubsetsSubsetsRuleParserRuleCall_2_0;
- }
- }
-
- public class RedefinesRuleElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "RedefinesRule");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Keyword cRedefinesKeyword_0 = (Keyword) cGroup.eContents().get(0);
- private final Assignment cPropertyAssignment_1 = (Assignment) cGroup.eContents().get(1);
- private final CrossReference cPropertyPropertyCrossReference_1_0 = (CrossReference) cPropertyAssignment_1.eContents().get(0);
- private final RuleCall cPropertyPropertyIDTerminalRuleCall_1_0_1 = (RuleCall) cPropertyPropertyCrossReference_1_0.eContents().get(1);
-
- // RedefinesRule:
- // "redefines" property=[uml::Property];
- public ParserRule getRule() {
- return rule;
- }
-
- // "redefines" property=[uml::Property]
- public Group getGroup() {
- return cGroup;
- }
-
- // "redefines"
- public Keyword getRedefinesKeyword_0() {
- return cRedefinesKeyword_0;
- }
-
- // property=[uml::Property]
- public Assignment getPropertyAssignment_1() {
- return cPropertyAssignment_1;
- }
-
- // [uml::Property]
- public CrossReference getPropertyPropertyCrossReference_1_0() {
- return cPropertyPropertyCrossReference_1_0;
- }
-
- // ID
- public RuleCall getPropertyPropertyIDTerminalRuleCall_1_0_1() {
- return cPropertyPropertyIDTerminalRuleCall_1_0_1;
- }
- }
-
- public class SubsetsRuleElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "SubsetsRule");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Keyword cSubsetsKeyword_0 = (Keyword) cGroup.eContents().get(0);
- private final Assignment cPropertyAssignment_1 = (Assignment) cGroup.eContents().get(1);
- private final CrossReference cPropertyPropertyCrossReference_1_0 = (CrossReference) cPropertyAssignment_1.eContents().get(0);
- private final RuleCall cPropertyPropertyIDTerminalRuleCall_1_0_1 = (RuleCall) cPropertyPropertyCrossReference_1_0.eContents().get(1);
-
- // SubsetsRule:
- // "subsets" property=[uml::Property];
- public ParserRule getRule() {
- return rule;
- }
-
- // "subsets" property=[uml::Property]
- public Group getGroup() {
- return cGroup;
- }
-
- // "subsets"
- public Keyword getSubsetsKeyword_0() {
- return cSubsetsKeyword_0;
- }
-
- // property=[uml::Property]
- public Assignment getPropertyAssignment_1() {
- return cPropertyAssignment_1;
- }
-
- // [uml::Property]
- public CrossReference getPropertyPropertyCrossReference_1_0() {
- return cPropertyPropertyCrossReference_1_0;
- }
-
- // ID
- public RuleCall getPropertyPropertyIDTerminalRuleCall_1_0_1() {
- return cPropertyPropertyIDTerminalRuleCall_1_0_1;
- }
- }
-
- public class DefaultValueRuleElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "DefaultValueRule");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Keyword cEqualsSignKeyword_0 = (Keyword) cGroup.eContents().get(0);
- private final Assignment cDefaultAssignment_1 = (Assignment) cGroup.eContents().get(1);
- private final RuleCall cDefaultValueParserRuleCall_1_0 = (RuleCall) cDefaultAssignment_1.eContents().get(0);
-
- // DefaultValueRule:
- // "=" default=Value;
- public ParserRule getRule() {
- return rule;
- }
-
- // "=" default=Value
- public Group getGroup() {
- return cGroup;
- }
-
- // "="
- public Keyword getEqualsSignKeyword_0() {
- return cEqualsSignKeyword_0;
- }
-
- // default=Value
- public Assignment getDefaultAssignment_1() {
- return cDefaultAssignment_1;
- }
-
- // Value
- public RuleCall getDefaultValueParserRuleCall_1_0() {
- return cDefaultValueParserRuleCall_1_0;
- }
- }
-
- public class ValueElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Value");
- private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
- private final RuleCall cIntValueParserRuleCall_0 = (RuleCall) cAlternatives.eContents().get(0);
- private final RuleCall cStringValueParserRuleCall_1 = (RuleCall) cAlternatives.eContents().get(1);
- private final RuleCall cBooleanValueParserRuleCall_2 = (RuleCall) cAlternatives.eContents().get(2);
- private final RuleCall cRealValueParserRuleCall_3 = (RuleCall) cAlternatives.eContents().get(3);
- private final RuleCall cNullValueParserRuleCall_4 = (RuleCall) cAlternatives.eContents().get(4);
- private final RuleCall cNoValueParserRuleCall_5 = (RuleCall) cAlternatives.eContents().get(5);
-
- // Value:
- // IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue;
- public ParserRule getRule() {
- return rule;
- }
-
- // IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue
- public Alternatives getAlternatives() {
- return cAlternatives;
- }
-
- // IntValue
- public RuleCall getIntValueParserRuleCall_0() {
- return cIntValueParserRuleCall_0;
- }
-
- // StringValue
- public RuleCall getStringValueParserRuleCall_1() {
- return cStringValueParserRuleCall_1;
- }
-
- // BooleanValue
- public RuleCall getBooleanValueParserRuleCall_2() {
- return cBooleanValueParserRuleCall_2;
- }
-
- // RealValue
- public RuleCall getRealValueParserRuleCall_3() {
- return cRealValueParserRuleCall_3;
- }
-
- // NullValue
- public RuleCall getNullValueParserRuleCall_4() {
- return cNullValueParserRuleCall_4;
- }
-
- // NoValue
- public RuleCall getNoValueParserRuleCall_5() {
- return cNoValueParserRuleCall_5;
- }
- }
-
- public class IntValueElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "IntValue");
- private final Assignment cLiteralIntegerAssignment = (Assignment) rule.eContents().get(1);
- private final RuleCall cLiteralIntegerINTTerminalRuleCall_0 = (RuleCall) cLiteralIntegerAssignment.eContents().get(0);
-
- // IntValue:
- // literalInteger=INT;
- public ParserRule getRule() {
- return rule;
- }
-
- // literalInteger=INT
- public Assignment getLiteralIntegerAssignment() {
- return cLiteralIntegerAssignment;
- }
-
- // INT
- public RuleCall getLiteralIntegerINTTerminalRuleCall_0() {
- return cLiteralIntegerINTTerminalRuleCall_0;
- }
- }
-
- public class StringValueElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "StringValue");
- private final Assignment cLiteralStringAssignment = (Assignment) rule.eContents().get(1);
- private final RuleCall cLiteralStringSTRINGTerminalRuleCall_0 = (RuleCall) cLiteralStringAssignment.eContents().get(0);
-
- // StringValue:
- // literalString=STRING;
- public ParserRule getRule() {
- return rule;
- }
-
- // literalString=STRING
- public Assignment getLiteralStringAssignment() {
- return cLiteralStringAssignment;
- }
-
- // STRING
- public RuleCall getLiteralStringSTRINGTerminalRuleCall_0() {
- return cLiteralStringSTRINGTerminalRuleCall_0;
- }
- }
-
- public class BooleanValueElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "BooleanValue");
- private final Assignment cLiteralBooleanAssignment = (Assignment) rule.eContents().get(1);
- private final RuleCall cLiteralBooleanBooleanLiteralsEnumRuleCall_0 = (RuleCall) cLiteralBooleanAssignment.eContents().get(0);
-
- // BooleanValue:
- // literalBoolean=BooleanLiterals;
- public ParserRule getRule() {
- return rule;
- }
-
- // literalBoolean=BooleanLiterals
- public Assignment getLiteralBooleanAssignment() {
- return cLiteralBooleanAssignment;
- }
-
- // BooleanLiterals
- public RuleCall getLiteralBooleanBooleanLiteralsEnumRuleCall_0() {
- return cLiteralBooleanBooleanLiteralsEnumRuleCall_0;
- }
- }
-
- public class RealValueElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "RealValue");
- private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
- private final Group cGroup_0 = (Group) cAlternatives.eContents().get(0);
- private final Assignment cIntegerAssignment_0_0 = (Assignment) cGroup_0.eContents().get(0);
- private final RuleCall cIntegerINTTerminalRuleCall_0_0_0 = (RuleCall) cIntegerAssignment_0_0.eContents().get(0);
- private final Keyword cFullStopKeyword_0_1 = (Keyword) cGroup_0.eContents().get(1);
- private final Group cGroup_1 = (Group) cAlternatives.eContents().get(1);
- private final Keyword cFullStopKeyword_1_0 = (Keyword) cGroup_1.eContents().get(0);
- private final Assignment cFractionAssignment_1_1 = (Assignment) cGroup_1.eContents().get(1);
- private final RuleCall cFractionINTTerminalRuleCall_1_1_0 = (RuleCall) cFractionAssignment_1_1.eContents().get(0);
- private final Group cGroup_2 = (Group) cAlternatives.eContents().get(2);
- private final Assignment cIntegerAssignment_2_0 = (Assignment) cGroup_2.eContents().get(0);
- private final RuleCall cIntegerINTTerminalRuleCall_2_0_0 = (RuleCall) cIntegerAssignment_2_0.eContents().get(0);
- private final Keyword cFullStopKeyword_2_1 = (Keyword) cGroup_2.eContents().get(1);
- private final Assignment cFractionAssignment_2_2 = (Assignment) cGroup_2.eContents().get(2);
- private final RuleCall cFractionINTTerminalRuleCall_2_2_0 = (RuleCall) cFractionAssignment_2_2.eContents().get(0);
-
- // //TODO: Support all Java-compliant doubles
- // RealValue:
- // integer=INT "." | "." fraction=INT | integer=INT "." fraction=INT;
- public ParserRule getRule() {
- return rule;
- }
-
- // integer=INT "." | "." fraction=INT | integer=INT "." fraction=INT
- public Alternatives getAlternatives() {
- return cAlternatives;
- }
-
- // integer=INT "."
- public Group getGroup_0() {
- return cGroup_0;
- }
-
- // integer=INT
- public Assignment getIntegerAssignment_0_0() {
- return cIntegerAssignment_0_0;
- }
-
- // INT
- public RuleCall getIntegerINTTerminalRuleCall_0_0_0() {
- return cIntegerINTTerminalRuleCall_0_0_0;
- }
-
- // "."
- public Keyword getFullStopKeyword_0_1() {
- return cFullStopKeyword_0_1;
- }
-
- // "." fraction=INT
- public Group getGroup_1() {
- return cGroup_1;
- }
-
- // "."
- public Keyword getFullStopKeyword_1_0() {
- return cFullStopKeyword_1_0;
- }
-
- // fraction=INT
- public Assignment getFractionAssignment_1_1() {
- return cFractionAssignment_1_1;
- }
-
- // INT
- public RuleCall getFractionINTTerminalRuleCall_1_1_0() {
- return cFractionINTTerminalRuleCall_1_1_0;
- }
-
- // integer=INT "." fraction=INT
- public Group getGroup_2() {
- return cGroup_2;
- }
-
- // integer=INT
- public Assignment getIntegerAssignment_2_0() {
- return cIntegerAssignment_2_0;
- }
-
- // INT
- public RuleCall getIntegerINTTerminalRuleCall_2_0_0() {
- return cIntegerINTTerminalRuleCall_2_0_0;
- }
-
- // "."
- public Keyword getFullStopKeyword_2_1() {
- return cFullStopKeyword_2_1;
- }
-
- // fraction=INT
- public Assignment getFractionAssignment_2_2() {
- return cFractionAssignment_2_2;
- }
-
- // INT
- public RuleCall getFractionINTTerminalRuleCall_2_2_0() {
- return cFractionINTTerminalRuleCall_2_2_0;
- }
- }
-
- public class NullValueElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "NullValue");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Action cNullValueAction_0 = (Action) cGroup.eContents().get(0);
- private final Keyword cNullKeyword_1 = (Keyword) cGroup.eContents().get(1);
-
- // NullValue:
- // {NullValue} "null";
- public ParserRule getRule() {
- return rule;
- }
-
- // {NullValue} "null"
- public Group getGroup() {
- return cGroup;
- }
-
- // {NullValue}
- public Action getNullValueAction_0() {
- return cNullValueAction_0;
- }
-
- // "null"
- public Keyword getNullKeyword_1() {
- return cNullKeyword_1;
- }
- }
-
- public class NoValueElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "NoValue");
- private final Group cGroup = (Group) rule.eContents().get(1);
- private final Action cNoValueAction_0 = (Action) cGroup.eContents().get(0);
- private final Keyword cNoneKeyword_1 = (Keyword) cGroup.eContents().get(1);
-
- // NoValue:
- // {NoValue} "none";
- public ParserRule getRule() {
- return rule;
- }
-
- // {NoValue} "none"
- public Group getGroup() {
- return cGroup;
- }
-
- // {NoValue}
- public Action getNoValueAction_0() {
- return cNoValueAction_0;
- }
-
- // "none"
- public Keyword getNoneKeyword_1() {
- return cNoneKeyword_1;
- }
- }
-
-
- public class VisibilityKindElements extends AbstractEnumRuleElementFinder {
- private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "VisibilityKind");
- private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
- private final EnumLiteralDeclaration cPublicEnumLiteralDeclaration_0 = (EnumLiteralDeclaration) cAlternatives.eContents().get(0);
- private final Keyword cPublicPlusSignKeyword_0_0 = (Keyword) cPublicEnumLiteralDeclaration_0.eContents().get(0);
- private final EnumLiteralDeclaration cPrivateEnumLiteralDeclaration_1 = (EnumLiteralDeclaration) cAlternatives.eContents().get(1);
- private final Keyword cPrivateHyphenMinusKeyword_1_0 = (Keyword) cPrivateEnumLiteralDeclaration_1.eContents().get(0);
- private final EnumLiteralDeclaration cProtectedEnumLiteralDeclaration_2 = (EnumLiteralDeclaration) cAlternatives.eContents().get(2);
- private final Keyword cProtectedNumberSignKeyword_2_0 = (Keyword) cProtectedEnumLiteralDeclaration_2.eContents().get(0);
- private final EnumLiteralDeclaration cPackageEnumLiteralDeclaration_3 = (EnumLiteralDeclaration) cAlternatives.eContents().get(3);
- private final Keyword cPackageTildeKeyword_3_0 = (Keyword) cPackageEnumLiteralDeclaration_3.eContents().get(0);
-
- // enum VisibilityKind:
- // public="+" | private="-" | protected="#" | package="~";
- public EnumRule getRule() {
- return rule;
- }
-
- // public="+" | private="-" | protected="#" | package="~"
- public Alternatives getAlternatives() {
- return cAlternatives;
- }
-
- // public="+"
- public EnumLiteralDeclaration getPublicEnumLiteralDeclaration_0() {
- return cPublicEnumLiteralDeclaration_0;
- }
-
- // "+"
- public Keyword getPublicPlusSignKeyword_0_0() {
- return cPublicPlusSignKeyword_0_0;
- }
-
- // private="-"
- public EnumLiteralDeclaration getPrivateEnumLiteralDeclaration_1() {
- return cPrivateEnumLiteralDeclaration_1;
- }
-
- // "-"
- public Keyword getPrivateHyphenMinusKeyword_1_0() {
- return cPrivateHyphenMinusKeyword_1_0;
- }
-
- // protected="#"
- public EnumLiteralDeclaration getProtectedEnumLiteralDeclaration_2() {
- return cProtectedEnumLiteralDeclaration_2;
- }
-
- // "#"
- public Keyword getProtectedNumberSignKeyword_2_0() {
- return cProtectedNumberSignKeyword_2_0;
- }
-
- // package="~"
- public EnumLiteralDeclaration getPackageEnumLiteralDeclaration_3() {
- return cPackageEnumLiteralDeclaration_3;
- }
-
- // "~"
- public Keyword getPackageTildeKeyword_3_0() {
- return cPackageTildeKeyword_3_0;
- }
- }
-
- public class ModifierKindElements extends AbstractEnumRuleElementFinder {
- private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "ModifierKind");
- private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
- private final EnumLiteralDeclaration cReadOnlyEnumLiteralDeclaration_0 = (EnumLiteralDeclaration) cAlternatives.eContents().get(0);
- private final Keyword cReadOnlyReadOnlyKeyword_0_0 = (Keyword) cReadOnlyEnumLiteralDeclaration_0.eContents().get(0);
- private final EnumLiteralDeclaration cUnionEnumLiteralDeclaration_1 = (EnumLiteralDeclaration) cAlternatives.eContents().get(1);
- private final Keyword cUnionUnionKeyword_1_0 = (Keyword) cUnionEnumLiteralDeclaration_1.eContents().get(0);
- private final EnumLiteralDeclaration cOrderedEnumLiteralDeclaration_2 = (EnumLiteralDeclaration) cAlternatives.eContents().get(2);
- private final Keyword cOrderedOrderedKeyword_2_0 = (Keyword) cOrderedEnumLiteralDeclaration_2.eContents().get(0);
- private final EnumLiteralDeclaration cUniqueEnumLiteralDeclaration_3 = (EnumLiteralDeclaration) cAlternatives.eContents().get(3);
- private final Keyword cUniqueUniqueKeyword_3_0 = (Keyword) cUniqueEnumLiteralDeclaration_3.eContents().get(0);
-
- // enum ModifierKind:
- // readOnly | union | ordered | unique;
- public EnumRule getRule() {
- return rule;
- }
-
- // readOnly | union | ordered | unique
- public Alternatives getAlternatives() {
- return cAlternatives;
- }
-
- // readOnly
- public EnumLiteralDeclaration getReadOnlyEnumLiteralDeclaration_0() {
- return cReadOnlyEnumLiteralDeclaration_0;
- }
-
- // "readOnly"
- public Keyword getReadOnlyReadOnlyKeyword_0_0() {
- return cReadOnlyReadOnlyKeyword_0_0;
- }
-
- // union
- public EnumLiteralDeclaration getUnionEnumLiteralDeclaration_1() {
- return cUnionEnumLiteralDeclaration_1;
- }
-
- // "union"
- public Keyword getUnionUnionKeyword_1_0() {
- return cUnionUnionKeyword_1_0;
- }
-
- // ordered
- public EnumLiteralDeclaration getOrderedEnumLiteralDeclaration_2() {
- return cOrderedEnumLiteralDeclaration_2;
- }
-
- // "ordered"
- public Keyword getOrderedOrderedKeyword_2_0() {
- return cOrderedOrderedKeyword_2_0;
- }
-
- // unique
- public EnumLiteralDeclaration getUniqueEnumLiteralDeclaration_3() {
- return cUniqueEnumLiteralDeclaration_3;
- }
-
- // "unique"
- public Keyword getUniqueUniqueKeyword_3_0() {
- return cUniqueUniqueKeyword_3_0;
- }
- }
-
- public class BooleanLiteralsElements extends AbstractEnumRuleElementFinder {
- private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "BooleanLiterals");
- private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
- private final EnumLiteralDeclaration cTrueEnumLiteralDeclaration_0 = (EnumLiteralDeclaration) cAlternatives.eContents().get(0);
- private final Keyword cTrueTrueKeyword_0_0 = (Keyword) cTrueEnumLiteralDeclaration_0.eContents().get(0);
- private final EnumLiteralDeclaration cFalseEnumLiteralDeclaration_1 = (EnumLiteralDeclaration) cAlternatives.eContents().get(1);
- private final Keyword cFalseFalseKeyword_1_0 = (Keyword) cFalseEnumLiteralDeclaration_1.eContents().get(0);
-
- // enum BooleanLiterals:
- // true | false;
- public EnumRule getRule() {
- return rule;
- }
-
- // true | false
- public Alternatives getAlternatives() {
- return cAlternatives;
- }
-
- // true
- public EnumLiteralDeclaration getTrueEnumLiteralDeclaration_0() {
- return cTrueEnumLiteralDeclaration_0;
- }
-
- // "true"
- public Keyword getTrueTrueKeyword_0_0() {
- return cTrueTrueKeyword_0_0;
- }
-
- // false
- public EnumLiteralDeclaration getFalseEnumLiteralDeclaration_1() {
- return cFalseEnumLiteralDeclaration_1;
- }
-
- // "false"
- public Keyword getFalseFalseKeyword_1_0() {
- return cFalseFalseKeyword_1_0;
- }
- }
-
- private final PropertyRuleElements pPropertyRule;
- private final VisibilityKindElements unknownRuleVisibilityKind;
- private final VisibilityRuleElements pVisibilityRule;
- private final TypeRuleElements pTypeRule;
- private final QualifiedNameElements pQualifiedName;
- private final MultiplicityRuleElements pMultiplicityRule;
- private final BoundSpecificationElements pBoundSpecification;
- private final UnlimitedLiteralElements pUnlimitedLiteral;
- private final ModifiersRuleElements pModifiersRule;
- private final ModifierSpecificationElements pModifierSpecification;
- private final ModifierKindElements unknownRuleModifierKind;
- private final RedefinesRuleElements pRedefinesRule;
- private final SubsetsRuleElements pSubsetsRule;
- private final DefaultValueRuleElements pDefaultValueRule;
- private final ValueElements pValue;
- private final IntValueElements pIntValue;
- private final StringValueElements pStringValue;
- private final BooleanLiteralsElements unknownRuleBooleanLiterals;
- private final BooleanValueElements pBooleanValue;
- private final RealValueElements pRealValue;
- private final NullValueElements pNullValue;
- private final NoValueElements pNoValue;
-
- private final Grammar grammar;
-
- private final CommonGrammarAccess gaCommon;
-
- @Inject
- public UmlPropertyGrammarAccess(GrammarProvider grammarProvider,
- CommonGrammarAccess gaCommon) {
- this.grammar = internalFindGrammar(grammarProvider);
- this.gaCommon = gaCommon;
- this.pPropertyRule = new PropertyRuleElements();
- this.unknownRuleVisibilityKind = new VisibilityKindElements();
- this.pVisibilityRule = new VisibilityRuleElements();
- this.pTypeRule = new TypeRuleElements();
- this.pQualifiedName = new QualifiedNameElements();
- this.pMultiplicityRule = new MultiplicityRuleElements();
- this.pBoundSpecification = new BoundSpecificationElements();
- this.pUnlimitedLiteral = new UnlimitedLiteralElements();
- this.pModifiersRule = new ModifiersRuleElements();
- this.pModifierSpecification = new ModifierSpecificationElements();
- this.unknownRuleModifierKind = new ModifierKindElements();
- this.pRedefinesRule = new RedefinesRuleElements();
- this.pSubsetsRule = new SubsetsRuleElements();
- this.pDefaultValueRule = new DefaultValueRuleElements();
- this.pValue = new ValueElements();
- this.pIntValue = new IntValueElements();
- this.pStringValue = new StringValueElements();
- this.unknownRuleBooleanLiterals = new BooleanLiteralsElements();
- this.pBooleanValue = new BooleanValueElements();
- this.pRealValue = new RealValueElements();
- this.pNullValue = new NullValueElements();
- this.pNoValue = new NoValueElements();
- }
-
- protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
- Grammar grammar = grammarProvider.getGrammar(this);
- while (grammar != null) {
- if ("org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty".equals(grammar.getName())) {
- return grammar;
- }
- List<Grammar> grammars = grammar.getUsedGrammars();
- if (!grammars.isEmpty()) {
- grammar = grammars.iterator().next();
- } else {
- return null;
- }
- }
- return grammar;
- }
-
-
- public Grammar getGrammar() {
- return grammar;
- }
-
-
- public CommonGrammarAccess getCommonGrammarAccess() {
- return gaCommon;
- }
-
-
- // PropertyRule:
- // visibility=VisibilityRule? derived?="/"? name=ID (":" (type=TypeRule | typeUndefined?="<Undefined>"))?
- // multiplicity=MultiplicityRule? modifiers=ModifiersRule? default=DefaultValueRule?;
- public PropertyRuleElements getPropertyRuleAccess() {
- return pPropertyRule;
- }
-
- public ParserRule getPropertyRuleRule() {
- return getPropertyRuleAccess().getRule();
- }
-
- // enum VisibilityKind:
- // public="+" | private="-" | protected="#" | package="~";
- public VisibilityKindElements getVisibilityKindAccess() {
- return unknownRuleVisibilityKind;
- }
-
- public EnumRule getVisibilityKindRule() {
- return getVisibilityKindAccess().getRule();
- }
-
- // VisibilityRule:
- // visibility=VisibilityKind;
- public VisibilityRuleElements getVisibilityRuleAccess() {
- return pVisibilityRule;
- }
-
- public ParserRule getVisibilityRuleRule() {
- return getVisibilityRuleAccess().getRule();
- }
-
- // TypeRule:
- // path=QualifiedName? type=[uml::Classifier];
- public TypeRuleElements getTypeRuleAccess() {
- return pTypeRule;
- }
-
- public ParserRule getTypeRuleRule() {
- return getTypeRuleAccess().getRule();
- }
-
- // QualifiedName:
- // path=[uml::Namespace] "::" remaining=QualifiedName?;
- public QualifiedNameElements getQualifiedNameAccess() {
- return pQualifiedName;
- }
-
- public ParserRule getQualifiedNameRule() {
- return getQualifiedNameAccess().getRule();
- }
-
- // MultiplicityRule:
- // "[" bounds+=BoundSpecification (".." bounds+=BoundSpecification)? "]";
- public MultiplicityRuleElements getMultiplicityRuleAccess() {
- return pMultiplicityRule;
- }
-
- public ParserRule getMultiplicityRuleRule() {
- return getMultiplicityRuleAccess().getRule();
- }
-
- // BoundSpecification:
- // value=UnlimitedLiteral;
- public BoundSpecificationElements getBoundSpecificationAccess() {
- return pBoundSpecification;
- }
-
- public ParserRule getBoundSpecificationRule() {
- return getBoundSpecificationAccess().getRule();
- }
-
- // UnlimitedLiteral:
- // INT | "*";
- public UnlimitedLiteralElements getUnlimitedLiteralAccess() {
- return pUnlimitedLiteral;
- }
-
- public ParserRule getUnlimitedLiteralRule() {
- return getUnlimitedLiteralAccess().getRule();
- }
-
- // ModifiersRule:
- // {ModifiersRule} "{" (values+=ModifierSpecification ("," values+=ModifierSpecification)*)? "}";
- public ModifiersRuleElements getModifiersRuleAccess() {
- return pModifiersRule;
- }
-
- public ParserRule getModifiersRuleRule() {
- return getModifiersRuleAccess().getRule();
- }
-
- // ModifierSpecification:
- // value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule;
- public ModifierSpecificationElements getModifierSpecificationAccess() {
- return pModifierSpecification;
- }
-
- public ParserRule getModifierSpecificationRule() {
- return getModifierSpecificationAccess().getRule();
- }
-
- // enum ModifierKind:
- // readOnly | union | ordered | unique;
- public ModifierKindElements getModifierKindAccess() {
- return unknownRuleModifierKind;
- }
-
- public EnumRule getModifierKindRule() {
- return getModifierKindAccess().getRule();
- }
-
- // RedefinesRule:
- // "redefines" property=[uml::Property];
- public RedefinesRuleElements getRedefinesRuleAccess() {
- return pRedefinesRule;
- }
-
- public ParserRule getRedefinesRuleRule() {
- return getRedefinesRuleAccess().getRule();
- }
-
- // SubsetsRule:
- // "subsets" property=[uml::Property];
- public SubsetsRuleElements getSubsetsRuleAccess() {
- return pSubsetsRule;
- }
-
- public ParserRule getSubsetsRuleRule() {
- return getSubsetsRuleAccess().getRule();
- }
-
- // DefaultValueRule:
- // "=" default=Value;
- public DefaultValueRuleElements getDefaultValueRuleAccess() {
- return pDefaultValueRule;
- }
-
- public ParserRule getDefaultValueRuleRule() {
- return getDefaultValueRuleAccess().getRule();
- }
-
- // Value:
- // IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue;
- public ValueElements getValueAccess() {
- return pValue;
- }
-
- public ParserRule getValueRule() {
- return getValueAccess().getRule();
- }
-
- // IntValue:
- // literalInteger=INT;
- public IntValueElements getIntValueAccess() {
- return pIntValue;
- }
-
- public ParserRule getIntValueRule() {
- return getIntValueAccess().getRule();
- }
-
- // StringValue:
- // literalString=STRING;
- public StringValueElements getStringValueAccess() {
- return pStringValue;
- }
-
- public ParserRule getStringValueRule() {
- return getStringValueAccess().getRule();
- }
-
- // enum BooleanLiterals:
- // true | false;
- public BooleanLiteralsElements getBooleanLiteralsAccess() {
- return unknownRuleBooleanLiterals;
- }
-
- public EnumRule getBooleanLiteralsRule() {
- return getBooleanLiteralsAccess().getRule();
- }
-
- // BooleanValue:
- // literalBoolean=BooleanLiterals;
- public BooleanValueElements getBooleanValueAccess() {
- return pBooleanValue;
- }
-
- public ParserRule getBooleanValueRule() {
- return getBooleanValueAccess().getRule();
- }
-
- // //TODO: Support all Java-compliant doubles
- // RealValue:
- // integer=INT "." | "." fraction=INT | integer=INT "." fraction=INT;
- public RealValueElements getRealValueAccess() {
- return pRealValue;
- }
-
- public ParserRule getRealValueRule() {
- return getRealValueAccess().getRule();
- }
-
- // NullValue:
- // {NullValue} "null";
- public NullValueElements getNullValueAccess() {
- return pNullValue;
- }
-
- public ParserRule getNullValueRule() {
- return getNullValueAccess().getRule();
- }
-
- // NoValue:
- // {NoValue} "none";
- public NoValueElements getNoValueAccess() {
- return pNoValue;
- }
-
- public ParserRule getNoValueRule() {
- return getNoValueAccess().getRule();
- }
-
- // terminal ID:
- // ("a".."z" | "A".."Z" | "_") ("a".."z" | "A".."Z" | "_" | "0".."9")* | "\'"->"\'";
- public TerminalRule getIDRule() {
- return gaCommon.getIDRule();
- }
-
- // terminal STRING:
- // "\"" ("\\" ("b" | "t" | "n" | "f" | "r" | "\"" | "\'" | "\\") | !("\\" | "\""))* "\"";
- public TerminalRule getSTRINGRule() {
- return gaCommon.getSTRINGRule();
- }
-
- // terminal ML_COMMENT:
- // "/ *" !"@"->"* /";
- public TerminalRule getML_COMMENTRule() {
- return gaCommon.getML_COMMENTRule();
- }
-
- // terminal SL_COMMENT:
- // "//" !("\n" | "\r" | "@")* ("\r"? "\n")?;
- public TerminalRule getSL_COMMENTRule() {
- return gaCommon.getSL_COMMENTRule();
- }
-
- // terminal INT returns ecore::EInt:
- // "0".."9"+;
- public TerminalRule getINTRule() {
- return gaCommon.getINTRule();
- }
-
- // //terminal DOUBLE_COLON : '::' ;
- // //terminal IDENTIFIER : ID ;
- // //terminal IDENTIFIER : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')* | ('\'' -> '\'') ;
- // //terminal DOCUMENTATION_COMMENT : '/ *' -> '* /' ;
- // //terminal ML_COMMENT : '/°' -> '°/';
- // //terminal SL_COMMENT : '°°' !('\n'|'\r')* ('\r'? '\n')?;
- // //terminal WS : (' '|'\t'|'\r'|'\n')+; terminal INTEGER_VALUE:
- // ("0" | "1".."9" ("_"? "0".."9")*) //DECIMAL
- // // BINARY
- // // HEX
- // // OCT
- // | ("0b" | "0B") "0".."1" ("_"? "0".."1")* | ("0x" | "0X") ("0".."9" | "a".."f" | "A".."F") ("_"? ("0".."9" | "a".."f" |
- // "A".."F"))* | "0" "_"? "0".."7" ("_"? "0".."7")*;
- public TerminalRule getINTEGER_VALUERule() {
- return gaCommon.getINTEGER_VALUERule();
- }
-
- // terminal WS:
- // (" " | "\t" | "\r" | "\n")+;
- public TerminalRule getWSRule() {
- return gaCommon.getWSRule();
- }
-
- // terminal ANY_OTHER:
- // .;
- public TerminalRule getANY_OTHERRule() {
- return gaCommon.getANY_OTHERRule();
- }
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.services;
+
+import com.google.inject.Singleton;
+import com.google.inject.Inject;
+
+import java.util.List;
+
+import org.eclipse.xtext.*;
+import org.eclipse.xtext.service.GrammarProvider;
+import org.eclipse.xtext.service.AbstractElementFinder.*;
+
+import org.eclipse.papyrus.uml.alf.services.CommonGrammarAccess;
+
+@Singleton
+public class UmlPropertyGrammarAccess extends AbstractGrammarElementFinder {
+
+
+ public class PropertyRuleElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "PropertyRule");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cVisibilityAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cVisibilityVisibilityRuleParserRuleCall_0_0 = (RuleCall)cVisibilityAssignment_0.eContents().get(0);
+ private final Assignment cDerivedAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final Keyword cDerivedSolidusKeyword_1_0 = (Keyword)cDerivedAssignment_1.eContents().get(0);
+ private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
+ private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
+ private final Keyword cColonKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
+ private final Alternatives cAlternatives_3_1 = (Alternatives)cGroup_3.eContents().get(1);
+ private final Assignment cTypeAssignment_3_1_0 = (Assignment)cAlternatives_3_1.eContents().get(0);
+ private final RuleCall cTypeTypeRuleParserRuleCall_3_1_0_0 = (RuleCall)cTypeAssignment_3_1_0.eContents().get(0);
+ private final Assignment cTypeUndefinedAssignment_3_1_1 = (Assignment)cAlternatives_3_1.eContents().get(1);
+ private final Keyword cTypeUndefinedUndefinedKeyword_3_1_1_0 = (Keyword)cTypeUndefinedAssignment_3_1_1.eContents().get(0);
+ private final Assignment cMultiplicityAssignment_4 = (Assignment)cGroup.eContents().get(4);
+ private final RuleCall cMultiplicityMultiplicityRuleParserRuleCall_4_0 = (RuleCall)cMultiplicityAssignment_4.eContents().get(0);
+ private final Assignment cModifiersAssignment_5 = (Assignment)cGroup.eContents().get(5);
+ private final RuleCall cModifiersModifiersRuleParserRuleCall_5_0 = (RuleCall)cModifiersAssignment_5.eContents().get(0);
+ private final Assignment cDefaultAssignment_6 = (Assignment)cGroup.eContents().get(6);
+ private final RuleCall cDefaultDefaultValueRuleParserRuleCall_6_0 = (RuleCall)cDefaultAssignment_6.eContents().get(0);
+
+ //PropertyRule:
+ // visibility=VisibilityRule? derived?="/"? name=ID (":" (type=TypeRule | typeUndefined?="<Undefined>"))?
+ // multiplicity=MultiplicityRule? modifiers=ModifiersRule? default=DefaultValueRule?;
+ @Override public ParserRule getRule() { return rule; }
+
+ //visibility=VisibilityRule? derived?="/"? name=ID (":" (type=TypeRule | typeUndefined?="<Undefined>"))?
+ //multiplicity=MultiplicityRule? modifiers=ModifiersRule? default=DefaultValueRule?
+ public Group getGroup() { return cGroup; }
+
+ //visibility=VisibilityRule?
+ public Assignment getVisibilityAssignment_0() { return cVisibilityAssignment_0; }
+
+ //VisibilityRule
+ public RuleCall getVisibilityVisibilityRuleParserRuleCall_0_0() { return cVisibilityVisibilityRuleParserRuleCall_0_0; }
+
+ //derived?="/"?
+ public Assignment getDerivedAssignment_1() { return cDerivedAssignment_1; }
+
+ //"/"
+ public Keyword getDerivedSolidusKeyword_1_0() { return cDerivedSolidusKeyword_1_0; }
+
+ //name=ID
+ public Assignment getNameAssignment_2() { return cNameAssignment_2; }
+
+ //ID
+ public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; }
+
+ //(":" (type=TypeRule | typeUndefined?="<Undefined>"))?
+ public Group getGroup_3() { return cGroup_3; }
+
+ //":"
+ public Keyword getColonKeyword_3_0() { return cColonKeyword_3_0; }
+
+ //type=TypeRule | typeUndefined?="<Undefined>"
+ public Alternatives getAlternatives_3_1() { return cAlternatives_3_1; }
+
+ //type=TypeRule
+ public Assignment getTypeAssignment_3_1_0() { return cTypeAssignment_3_1_0; }
+
+ //TypeRule
+ public RuleCall getTypeTypeRuleParserRuleCall_3_1_0_0() { return cTypeTypeRuleParserRuleCall_3_1_0_0; }
+
+ //typeUndefined?="<Undefined>"
+ public Assignment getTypeUndefinedAssignment_3_1_1() { return cTypeUndefinedAssignment_3_1_1; }
+
+ //"<Undefined>"
+ public Keyword getTypeUndefinedUndefinedKeyword_3_1_1_0() { return cTypeUndefinedUndefinedKeyword_3_1_1_0; }
+
+ //multiplicity=MultiplicityRule?
+ public Assignment getMultiplicityAssignment_4() { return cMultiplicityAssignment_4; }
+
+ //MultiplicityRule
+ public RuleCall getMultiplicityMultiplicityRuleParserRuleCall_4_0() { return cMultiplicityMultiplicityRuleParserRuleCall_4_0; }
+
+ //modifiers=ModifiersRule?
+ public Assignment getModifiersAssignment_5() { return cModifiersAssignment_5; }
+
+ //ModifiersRule
+ public RuleCall getModifiersModifiersRuleParserRuleCall_5_0() { return cModifiersModifiersRuleParserRuleCall_5_0; }
+
+ //default=DefaultValueRule?
+ public Assignment getDefaultAssignment_6() { return cDefaultAssignment_6; }
+
+ //DefaultValueRule
+ public RuleCall getDefaultDefaultValueRuleParserRuleCall_6_0() { return cDefaultDefaultValueRuleParserRuleCall_6_0; }
+ }
+
+ public class VisibilityRuleElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "VisibilityRule");
+ private final Assignment cVisibilityAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cVisibilityVisibilityKindEnumRuleCall_0 = (RuleCall)cVisibilityAssignment.eContents().get(0);
+
+ //VisibilityRule:
+ // visibility=VisibilityKind;
+ @Override public ParserRule getRule() { return rule; }
+
+ //visibility=VisibilityKind
+ public Assignment getVisibilityAssignment() { return cVisibilityAssignment; }
+
+ //VisibilityKind
+ public RuleCall getVisibilityVisibilityKindEnumRuleCall_0() { return cVisibilityVisibilityKindEnumRuleCall_0; }
+ }
+
+ public class TypeRuleElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "TypeRule");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cPathAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cPathQualifiedNameParserRuleCall_0_0 = (RuleCall)cPathAssignment_0.eContents().get(0);
+ private final Assignment cTypeAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final CrossReference cTypeClassifierCrossReference_1_0 = (CrossReference)cTypeAssignment_1.eContents().get(0);
+ private final RuleCall cTypeClassifierIDTerminalRuleCall_1_0_1 = (RuleCall)cTypeClassifierCrossReference_1_0.eContents().get(1);
+
+ //TypeRule:
+ // path=QualifiedName? type=[uml::Classifier];
+ @Override public ParserRule getRule() { return rule; }
+
+ //path=QualifiedName? type=[uml::Classifier]
+ public Group getGroup() { return cGroup; }
+
+ //path=QualifiedName?
+ public Assignment getPathAssignment_0() { return cPathAssignment_0; }
+
+ //QualifiedName
+ public RuleCall getPathQualifiedNameParserRuleCall_0_0() { return cPathQualifiedNameParserRuleCall_0_0; }
+
+ //type=[uml::Classifier]
+ public Assignment getTypeAssignment_1() { return cTypeAssignment_1; }
+
+ //[uml::Classifier]
+ public CrossReference getTypeClassifierCrossReference_1_0() { return cTypeClassifierCrossReference_1_0; }
+
+ //ID
+ public RuleCall getTypeClassifierIDTerminalRuleCall_1_0_1() { return cTypeClassifierIDTerminalRuleCall_1_0_1; }
+ }
+
+ public class QualifiedNameElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "QualifiedName");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cPathAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final CrossReference cPathNamespaceCrossReference_0_0 = (CrossReference)cPathAssignment_0.eContents().get(0);
+ private final RuleCall cPathNamespaceIDTerminalRuleCall_0_0_1 = (RuleCall)cPathNamespaceCrossReference_0_0.eContents().get(1);
+ private final Keyword cColonColonKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cRemainingAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cRemainingQualifiedNameParserRuleCall_2_0 = (RuleCall)cRemainingAssignment_2.eContents().get(0);
+
+ //QualifiedName:
+ // path=[uml::Namespace] "::" remaining=QualifiedName?;
+ @Override public ParserRule getRule() { return rule; }
+
+ //path=[uml::Namespace] "::" remaining=QualifiedName?
+ public Group getGroup() { return cGroup; }
+
+ //path=[uml::Namespace]
+ public Assignment getPathAssignment_0() { return cPathAssignment_0; }
+
+ //[uml::Namespace]
+ public CrossReference getPathNamespaceCrossReference_0_0() { return cPathNamespaceCrossReference_0_0; }
+
+ //ID
+ public RuleCall getPathNamespaceIDTerminalRuleCall_0_0_1() { return cPathNamespaceIDTerminalRuleCall_0_0_1; }
+
+ //"::"
+ public Keyword getColonColonKeyword_1() { return cColonColonKeyword_1; }
+
+ //remaining=QualifiedName?
+ public Assignment getRemainingAssignment_2() { return cRemainingAssignment_2; }
+
+ //QualifiedName
+ public RuleCall getRemainingQualifiedNameParserRuleCall_2_0() { return cRemainingQualifiedNameParserRuleCall_2_0; }
+ }
+
+ public class MultiplicityRuleElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "MultiplicityRule");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cLeftSquareBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cBoundsAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cBoundsBoundSpecificationParserRuleCall_1_0 = (RuleCall)cBoundsAssignment_1.eContents().get(0);
+ private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
+ private final Keyword cFullStopFullStopKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
+ private final Assignment cBoundsAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1);
+ private final RuleCall cBoundsBoundSpecificationParserRuleCall_2_1_0 = (RuleCall)cBoundsAssignment_2_1.eContents().get(0);
+ private final Keyword cRightSquareBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
+
+ //MultiplicityRule:
+ // "[" bounds+=BoundSpecification (".." bounds+=BoundSpecification)? "]";
+ @Override public ParserRule getRule() { return rule; }
+
+ //"[" bounds+=BoundSpecification (".." bounds+=BoundSpecification)? "]"
+ public Group getGroup() { return cGroup; }
+
+ //"["
+ public Keyword getLeftSquareBracketKeyword_0() { return cLeftSquareBracketKeyword_0; }
+
+ //bounds+=BoundSpecification
+ public Assignment getBoundsAssignment_1() { return cBoundsAssignment_1; }
+
+ //BoundSpecification
+ public RuleCall getBoundsBoundSpecificationParserRuleCall_1_0() { return cBoundsBoundSpecificationParserRuleCall_1_0; }
+
+ //(".." bounds+=BoundSpecification)?
+ public Group getGroup_2() { return cGroup_2; }
+
+ //".."
+ public Keyword getFullStopFullStopKeyword_2_0() { return cFullStopFullStopKeyword_2_0; }
+
+ //bounds+=BoundSpecification
+ public Assignment getBoundsAssignment_2_1() { return cBoundsAssignment_2_1; }
+
+ //BoundSpecification
+ public RuleCall getBoundsBoundSpecificationParserRuleCall_2_1_0() { return cBoundsBoundSpecificationParserRuleCall_2_1_0; }
+
+ //"]"
+ public Keyword getRightSquareBracketKeyword_3() { return cRightSquareBracketKeyword_3; }
+ }
+
+ public class BoundSpecificationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "BoundSpecification");
+ private final Assignment cValueAssignment = (Assignment)rule.eContents().get(1);
+ private final Alternatives cValueAlternatives_0 = (Alternatives)cValueAssignment.eContents().get(0);
+ private final RuleCall cValueUnlimitedLiteralParserRuleCall_0_0 = (RuleCall)cValueAlternatives_0.eContents().get(0);
+ private final RuleCall cValueStringLiteralParserRuleCall_0_1 = (RuleCall)cValueAlternatives_0.eContents().get(1);
+
+ //BoundSpecification:
+ // value=(UnlimitedLiteral | StringLiteral);
+ @Override public ParserRule getRule() { return rule; }
+
+ //value=(UnlimitedLiteral | StringLiteral)
+ public Assignment getValueAssignment() { return cValueAssignment; }
+
+ //UnlimitedLiteral | StringLiteral
+ public Alternatives getValueAlternatives_0() { return cValueAlternatives_0; }
+
+ //UnlimitedLiteral
+ public RuleCall getValueUnlimitedLiteralParserRuleCall_0_0() { return cValueUnlimitedLiteralParserRuleCall_0_0; }
+
+ //StringLiteral
+ public RuleCall getValueStringLiteralParserRuleCall_0_1() { return cValueStringLiteralParserRuleCall_0_1; }
+ }
+
+ public class UnlimitedLiteralElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "UnlimitedLiteral");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cINTTerminalRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final Keyword cAsteriskKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
+
+ //UnlimitedLiteral:
+ // INT | "*";
+ @Override public ParserRule getRule() { return rule; }
+
+ //INT | "*"
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //INT
+ public RuleCall getINTTerminalRuleCall_0() { return cINTTerminalRuleCall_0; }
+
+ //"*"
+ public Keyword getAsteriskKeyword_1() { return cAsteriskKeyword_1; }
+ }
+
+ public class StringLiteralElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "StringLiteral");
+ private final RuleCall cSTRINGTerminalRuleCall = (RuleCall)rule.eContents().get(1);
+
+ //StringLiteral:
+ // STRING;
+ @Override public ParserRule getRule() { return rule; }
+
+ //STRING
+ public RuleCall getSTRINGTerminalRuleCall() { return cSTRINGTerminalRuleCall; }
+ }
+
+ public class ModifiersRuleElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ModifiersRule");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cModifiersRuleAction_0 = (Action)cGroup.eContents().get(0);
+ private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
+ private final Assignment cValuesAssignment_2_0 = (Assignment)cGroup_2.eContents().get(0);
+ private final RuleCall cValuesModifierSpecificationParserRuleCall_2_0_0 = (RuleCall)cValuesAssignment_2_0.eContents().get(0);
+ private final Group cGroup_2_1 = (Group)cGroup_2.eContents().get(1);
+ private final Keyword cCommaKeyword_2_1_0 = (Keyword)cGroup_2_1.eContents().get(0);
+ private final Assignment cValuesAssignment_2_1_1 = (Assignment)cGroup_2_1.eContents().get(1);
+ private final RuleCall cValuesModifierSpecificationParserRuleCall_2_1_1_0 = (RuleCall)cValuesAssignment_2_1_1.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
+
+ //ModifiersRule:
+ // {ModifiersRule} "{" (values+=ModifierSpecification ("," values+=ModifierSpecification)*)? "}";
+ @Override public ParserRule getRule() { return rule; }
+
+ //{ModifiersRule} "{" (values+=ModifierSpecification ("," values+=ModifierSpecification)*)? "}"
+ public Group getGroup() { return cGroup; }
+
+ //{ModifiersRule}
+ public Action getModifiersRuleAction_0() { return cModifiersRuleAction_0; }
+
+ //"{"
+ public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
+
+ //(values+=ModifierSpecification ("," values+=ModifierSpecification)*)?
+ public Group getGroup_2() { return cGroup_2; }
+
+ //values+=ModifierSpecification
+ public Assignment getValuesAssignment_2_0() { return cValuesAssignment_2_0; }
+
+ //ModifierSpecification
+ public RuleCall getValuesModifierSpecificationParserRuleCall_2_0_0() { return cValuesModifierSpecificationParserRuleCall_2_0_0; }
+
+ //("," values+=ModifierSpecification)*
+ public Group getGroup_2_1() { return cGroup_2_1; }
+
+ //","
+ public Keyword getCommaKeyword_2_1_0() { return cCommaKeyword_2_1_0; }
+
+ //values+=ModifierSpecification
+ public Assignment getValuesAssignment_2_1_1() { return cValuesAssignment_2_1_1; }
+
+ //ModifierSpecification
+ public RuleCall getValuesModifierSpecificationParserRuleCall_2_1_1_0() { return cValuesModifierSpecificationParserRuleCall_2_1_1_0; }
+
+ //"}"
+ public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
+ }
+
+ public class ModifierSpecificationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ModifierSpecification");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Assignment cValueAssignment_0 = (Assignment)cAlternatives.eContents().get(0);
+ private final RuleCall cValueModifierKindEnumRuleCall_0_0 = (RuleCall)cValueAssignment_0.eContents().get(0);
+ private final Assignment cRedefinesAssignment_1 = (Assignment)cAlternatives.eContents().get(1);
+ private final RuleCall cRedefinesRedefinesRuleParserRuleCall_1_0 = (RuleCall)cRedefinesAssignment_1.eContents().get(0);
+ private final Assignment cSubsetsAssignment_2 = (Assignment)cAlternatives.eContents().get(2);
+ private final RuleCall cSubsetsSubsetsRuleParserRuleCall_2_0 = (RuleCall)cSubsetsAssignment_2.eContents().get(0);
+
+ //ModifierSpecification:
+ // value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule;
+ @Override public ParserRule getRule() { return rule; }
+
+ //value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //value=ModifierKind
+ public Assignment getValueAssignment_0() { return cValueAssignment_0; }
+
+ //ModifierKind
+ public RuleCall getValueModifierKindEnumRuleCall_0_0() { return cValueModifierKindEnumRuleCall_0_0; }
+
+ //redefines=RedefinesRule
+ public Assignment getRedefinesAssignment_1() { return cRedefinesAssignment_1; }
+
+ //RedefinesRule
+ public RuleCall getRedefinesRedefinesRuleParserRuleCall_1_0() { return cRedefinesRedefinesRuleParserRuleCall_1_0; }
+
+ //subsets=SubsetsRule
+ public Assignment getSubsetsAssignment_2() { return cSubsetsAssignment_2; }
+
+ //SubsetsRule
+ public RuleCall getSubsetsSubsetsRuleParserRuleCall_2_0() { return cSubsetsSubsetsRuleParserRuleCall_2_0; }
+ }
+
+ public class RedefinesRuleElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "RedefinesRule");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cRedefinesKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cPropertyAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final CrossReference cPropertyPropertyCrossReference_1_0 = (CrossReference)cPropertyAssignment_1.eContents().get(0);
+ private final RuleCall cPropertyPropertyIDTerminalRuleCall_1_0_1 = (RuleCall)cPropertyPropertyCrossReference_1_0.eContents().get(1);
+
+ //RedefinesRule:
+ // "redefines" property=[uml::Property];
+ @Override public ParserRule getRule() { return rule; }
+
+ //"redefines" property=[uml::Property]
+ public Group getGroup() { return cGroup; }
+
+ //"redefines"
+ public Keyword getRedefinesKeyword_0() { return cRedefinesKeyword_0; }
+
+ //property=[uml::Property]
+ public Assignment getPropertyAssignment_1() { return cPropertyAssignment_1; }
+
+ //[uml::Property]
+ public CrossReference getPropertyPropertyCrossReference_1_0() { return cPropertyPropertyCrossReference_1_0; }
+
+ //ID
+ public RuleCall getPropertyPropertyIDTerminalRuleCall_1_0_1() { return cPropertyPropertyIDTerminalRuleCall_1_0_1; }
+ }
+
+ public class SubsetsRuleElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "SubsetsRule");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cSubsetsKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cPropertyAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final CrossReference cPropertyPropertyCrossReference_1_0 = (CrossReference)cPropertyAssignment_1.eContents().get(0);
+ private final RuleCall cPropertyPropertyIDTerminalRuleCall_1_0_1 = (RuleCall)cPropertyPropertyCrossReference_1_0.eContents().get(1);
+
+ //SubsetsRule:
+ // "subsets" property=[uml::Property];
+ @Override public ParserRule getRule() { return rule; }
+
+ //"subsets" property=[uml::Property]
+ public Group getGroup() { return cGroup; }
+
+ //"subsets"
+ public Keyword getSubsetsKeyword_0() { return cSubsetsKeyword_0; }
+
+ //property=[uml::Property]
+ public Assignment getPropertyAssignment_1() { return cPropertyAssignment_1; }
+
+ //[uml::Property]
+ public CrossReference getPropertyPropertyCrossReference_1_0() { return cPropertyPropertyCrossReference_1_0; }
+
+ //ID
+ public RuleCall getPropertyPropertyIDTerminalRuleCall_1_0_1() { return cPropertyPropertyIDTerminalRuleCall_1_0_1; }
+ }
+
+ public class DefaultValueRuleElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "DefaultValueRule");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cEqualsSignKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cDefaultAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cDefaultValueParserRuleCall_1_0 = (RuleCall)cDefaultAssignment_1.eContents().get(0);
+
+ //DefaultValueRule:
+ // "=" default=Value;
+ @Override public ParserRule getRule() { return rule; }
+
+ //"=" default=Value
+ public Group getGroup() { return cGroup; }
+
+ //"="
+ public Keyword getEqualsSignKeyword_0() { return cEqualsSignKeyword_0; }
+
+ //default=Value
+ public Assignment getDefaultAssignment_1() { return cDefaultAssignment_1; }
+
+ //Value
+ public RuleCall getDefaultValueParserRuleCall_1_0() { return cDefaultValueParserRuleCall_1_0; }
+ }
+
+ public class ValueElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Value");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cIntValueParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cStringValueParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+ private final RuleCall cBooleanValueParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
+ private final RuleCall cRealValueParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
+ private final RuleCall cNullValueParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
+ private final RuleCall cNoValueParserRuleCall_5 = (RuleCall)cAlternatives.eContents().get(5);
+
+ //Value:
+ // IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue;
+ @Override public ParserRule getRule() { return rule; }
+
+ //IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //IntValue
+ public RuleCall getIntValueParserRuleCall_0() { return cIntValueParserRuleCall_0; }
+
+ //StringValue
+ public RuleCall getStringValueParserRuleCall_1() { return cStringValueParserRuleCall_1; }
+
+ //BooleanValue
+ public RuleCall getBooleanValueParserRuleCall_2() { return cBooleanValueParserRuleCall_2; }
+
+ //RealValue
+ public RuleCall getRealValueParserRuleCall_3() { return cRealValueParserRuleCall_3; }
+
+ //NullValue
+ public RuleCall getNullValueParserRuleCall_4() { return cNullValueParserRuleCall_4; }
+
+ //NoValue
+ public RuleCall getNoValueParserRuleCall_5() { return cNoValueParserRuleCall_5; }
+ }
+
+ public class IntValueElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "IntValue");
+ private final Assignment cLiteralIntegerAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cLiteralIntegerINTTerminalRuleCall_0 = (RuleCall)cLiteralIntegerAssignment.eContents().get(0);
+
+ //IntValue:
+ // literalInteger=INT;
+ @Override public ParserRule getRule() { return rule; }
+
+ //literalInteger=INT
+ public Assignment getLiteralIntegerAssignment() { return cLiteralIntegerAssignment; }
+
+ //INT
+ public RuleCall getLiteralIntegerINTTerminalRuleCall_0() { return cLiteralIntegerINTTerminalRuleCall_0; }
+ }
+
+ public class StringValueElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "StringValue");
+ private final Assignment cLiteralStringAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cLiteralStringSTRINGTerminalRuleCall_0 = (RuleCall)cLiteralStringAssignment.eContents().get(0);
+
+ //StringValue:
+ // literalString=STRING;
+ @Override public ParserRule getRule() { return rule; }
+
+ //literalString=STRING
+ public Assignment getLiteralStringAssignment() { return cLiteralStringAssignment; }
+
+ //STRING
+ public RuleCall getLiteralStringSTRINGTerminalRuleCall_0() { return cLiteralStringSTRINGTerminalRuleCall_0; }
+ }
+
+ public class BooleanValueElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "BooleanValue");
+ private final Assignment cLiteralBooleanAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cLiteralBooleanBooleanLiteralsEnumRuleCall_0 = (RuleCall)cLiteralBooleanAssignment.eContents().get(0);
+
+ //BooleanValue:
+ // literalBoolean=BooleanLiterals;
+ @Override public ParserRule getRule() { return rule; }
+
+ //literalBoolean=BooleanLiterals
+ public Assignment getLiteralBooleanAssignment() { return cLiteralBooleanAssignment; }
+
+ //BooleanLiterals
+ public RuleCall getLiteralBooleanBooleanLiteralsEnumRuleCall_0() { return cLiteralBooleanBooleanLiteralsEnumRuleCall_0; }
+ }
+
+ public class RealValueElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "RealValue");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
+ private final Assignment cIntegerAssignment_0_0 = (Assignment)cGroup_0.eContents().get(0);
+ private final RuleCall cIntegerINTTerminalRuleCall_0_0_0 = (RuleCall)cIntegerAssignment_0_0.eContents().get(0);
+ private final Keyword cFullStopKeyword_0_1 = (Keyword)cGroup_0.eContents().get(1);
+ private final Group cGroup_1 = (Group)cAlternatives.eContents().get(1);
+ private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
+ private final Assignment cFractionAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cFractionINTTerminalRuleCall_1_1_0 = (RuleCall)cFractionAssignment_1_1.eContents().get(0);
+ private final Group cGroup_2 = (Group)cAlternatives.eContents().get(2);
+ private final Assignment cIntegerAssignment_2_0 = (Assignment)cGroup_2.eContents().get(0);
+ private final RuleCall cIntegerINTTerminalRuleCall_2_0_0 = (RuleCall)cIntegerAssignment_2_0.eContents().get(0);
+ private final Keyword cFullStopKeyword_2_1 = (Keyword)cGroup_2.eContents().get(1);
+ private final Assignment cFractionAssignment_2_2 = (Assignment)cGroup_2.eContents().get(2);
+ private final RuleCall cFractionINTTerminalRuleCall_2_2_0 = (RuleCall)cFractionAssignment_2_2.eContents().get(0);
+
+ ////TODO: Support all Java-compliant doubles
+ //RealValue:
+ // integer=INT "." | "." fraction=INT | integer=INT "." fraction=INT;
+ @Override public ParserRule getRule() { return rule; }
+
+ //integer=INT "." | "." fraction=INT | integer=INT "." fraction=INT
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //integer=INT "."
+ public Group getGroup_0() { return cGroup_0; }
+
+ //integer=INT
+ public Assignment getIntegerAssignment_0_0() { return cIntegerAssignment_0_0; }
+
+ //INT
+ public RuleCall getIntegerINTTerminalRuleCall_0_0_0() { return cIntegerINTTerminalRuleCall_0_0_0; }
+
+ //"."
+ public Keyword getFullStopKeyword_0_1() { return cFullStopKeyword_0_1; }
+
+ //"." fraction=INT
+ public Group getGroup_1() { return cGroup_1; }
+
+ //"."
+ public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; }
+
+ //fraction=INT
+ public Assignment getFractionAssignment_1_1() { return cFractionAssignment_1_1; }
+
+ //INT
+ public RuleCall getFractionINTTerminalRuleCall_1_1_0() { return cFractionINTTerminalRuleCall_1_1_0; }
+
+ //integer=INT "." fraction=INT
+ public Group getGroup_2() { return cGroup_2; }
+
+ //integer=INT
+ public Assignment getIntegerAssignment_2_0() { return cIntegerAssignment_2_0; }
+
+ //INT
+ public RuleCall getIntegerINTTerminalRuleCall_2_0_0() { return cIntegerINTTerminalRuleCall_2_0_0; }
+
+ //"."
+ public Keyword getFullStopKeyword_2_1() { return cFullStopKeyword_2_1; }
+
+ //fraction=INT
+ public Assignment getFractionAssignment_2_2() { return cFractionAssignment_2_2; }
+
+ //INT
+ public RuleCall getFractionINTTerminalRuleCall_2_2_0() { return cFractionINTTerminalRuleCall_2_2_0; }
+ }
+
+ public class NullValueElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "NullValue");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cNullValueAction_0 = (Action)cGroup.eContents().get(0);
+ private final Keyword cNullKeyword_1 = (Keyword)cGroup.eContents().get(1);
+
+ //NullValue:
+ // {NullValue} "null";
+ @Override public ParserRule getRule() { return rule; }
+
+ //{NullValue} "null"
+ public Group getGroup() { return cGroup; }
+
+ //{NullValue}
+ public Action getNullValueAction_0() { return cNullValueAction_0; }
+
+ //"null"
+ public Keyword getNullKeyword_1() { return cNullKeyword_1; }
+ }
+
+ public class NoValueElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "NoValue");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cNoValueAction_0 = (Action)cGroup.eContents().get(0);
+ private final Keyword cNoneKeyword_1 = (Keyword)cGroup.eContents().get(1);
+
+ //NoValue:
+ // {NoValue} "none";
+ @Override public ParserRule getRule() { return rule; }
+
+ //{NoValue} "none"
+ public Group getGroup() { return cGroup; }
+
+ //{NoValue}
+ public Action getNoValueAction_0() { return cNoValueAction_0; }
+
+ //"none"
+ public Keyword getNoneKeyword_1() { return cNoneKeyword_1; }
+ }
+
+
+ public class VisibilityKindElements extends AbstractEnumRuleElementFinder {
+ private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "VisibilityKind");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final EnumLiteralDeclaration cPublicEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0);
+ private final Keyword cPublicPlusSignKeyword_0_0 = (Keyword)cPublicEnumLiteralDeclaration_0.eContents().get(0);
+ private final EnumLiteralDeclaration cPrivateEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1);
+ private final Keyword cPrivateHyphenMinusKeyword_1_0 = (Keyword)cPrivateEnumLiteralDeclaration_1.eContents().get(0);
+ private final EnumLiteralDeclaration cProtectedEnumLiteralDeclaration_2 = (EnumLiteralDeclaration)cAlternatives.eContents().get(2);
+ private final Keyword cProtectedNumberSignKeyword_2_0 = (Keyword)cProtectedEnumLiteralDeclaration_2.eContents().get(0);
+ private final EnumLiteralDeclaration cPackageEnumLiteralDeclaration_3 = (EnumLiteralDeclaration)cAlternatives.eContents().get(3);
+ private final Keyword cPackageTildeKeyword_3_0 = (Keyword)cPackageEnumLiteralDeclaration_3.eContents().get(0);
+
+ //enum VisibilityKind:
+ // public="+" | private="-" | protected="#" | package="~";
+ public EnumRule getRule() { return rule; }
+
+ //public="+" | private="-" | protected="#" | package="~"
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //public="+"
+ public EnumLiteralDeclaration getPublicEnumLiteralDeclaration_0() { return cPublicEnumLiteralDeclaration_0; }
+
+ //"+"
+ public Keyword getPublicPlusSignKeyword_0_0() { return cPublicPlusSignKeyword_0_0; }
+
+ //private="-"
+ public EnumLiteralDeclaration getPrivateEnumLiteralDeclaration_1() { return cPrivateEnumLiteralDeclaration_1; }
+
+ //"-"
+ public Keyword getPrivateHyphenMinusKeyword_1_0() { return cPrivateHyphenMinusKeyword_1_0; }
+
+ //protected="#"
+ public EnumLiteralDeclaration getProtectedEnumLiteralDeclaration_2() { return cProtectedEnumLiteralDeclaration_2; }
+
+ //"#"
+ public Keyword getProtectedNumberSignKeyword_2_0() { return cProtectedNumberSignKeyword_2_0; }
+
+ //package="~"
+ public EnumLiteralDeclaration getPackageEnumLiteralDeclaration_3() { return cPackageEnumLiteralDeclaration_3; }
+
+ //"~"
+ public Keyword getPackageTildeKeyword_3_0() { return cPackageTildeKeyword_3_0; }
+ }
+
+ public class ModifierKindElements extends AbstractEnumRuleElementFinder {
+ private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "ModifierKind");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final EnumLiteralDeclaration cReadOnlyEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0);
+ private final Keyword cReadOnlyReadOnlyKeyword_0_0 = (Keyword)cReadOnlyEnumLiteralDeclaration_0.eContents().get(0);
+ private final EnumLiteralDeclaration cUnionEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1);
+ private final Keyword cUnionUnionKeyword_1_0 = (Keyword)cUnionEnumLiteralDeclaration_1.eContents().get(0);
+ private final EnumLiteralDeclaration cOrderedEnumLiteralDeclaration_2 = (EnumLiteralDeclaration)cAlternatives.eContents().get(2);
+ private final Keyword cOrderedOrderedKeyword_2_0 = (Keyword)cOrderedEnumLiteralDeclaration_2.eContents().get(0);
+ private final EnumLiteralDeclaration cUniqueEnumLiteralDeclaration_3 = (EnumLiteralDeclaration)cAlternatives.eContents().get(3);
+ private final Keyword cUniqueUniqueKeyword_3_0 = (Keyword)cUniqueEnumLiteralDeclaration_3.eContents().get(0);
+
+ //enum ModifierKind:
+ // readOnly | union | ordered | unique;
+ public EnumRule getRule() { return rule; }
+
+ //readOnly | union | ordered | unique
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //readOnly
+ public EnumLiteralDeclaration getReadOnlyEnumLiteralDeclaration_0() { return cReadOnlyEnumLiteralDeclaration_0; }
+
+ //"readOnly"
+ public Keyword getReadOnlyReadOnlyKeyword_0_0() { return cReadOnlyReadOnlyKeyword_0_0; }
+
+ //union
+ public EnumLiteralDeclaration getUnionEnumLiteralDeclaration_1() { return cUnionEnumLiteralDeclaration_1; }
+
+ //"union"
+ public Keyword getUnionUnionKeyword_1_0() { return cUnionUnionKeyword_1_0; }
+
+ //ordered
+ public EnumLiteralDeclaration getOrderedEnumLiteralDeclaration_2() { return cOrderedEnumLiteralDeclaration_2; }
+
+ //"ordered"
+ public Keyword getOrderedOrderedKeyword_2_0() { return cOrderedOrderedKeyword_2_0; }
+
+ //unique
+ public EnumLiteralDeclaration getUniqueEnumLiteralDeclaration_3() { return cUniqueEnumLiteralDeclaration_3; }
+
+ //"unique"
+ public Keyword getUniqueUniqueKeyword_3_0() { return cUniqueUniqueKeyword_3_0; }
+ }
+
+ public class BooleanLiteralsElements extends AbstractEnumRuleElementFinder {
+ private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "BooleanLiterals");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final EnumLiteralDeclaration cTrueEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0);
+ private final Keyword cTrueTrueKeyword_0_0 = (Keyword)cTrueEnumLiteralDeclaration_0.eContents().get(0);
+ private final EnumLiteralDeclaration cFalseEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1);
+ private final Keyword cFalseFalseKeyword_1_0 = (Keyword)cFalseEnumLiteralDeclaration_1.eContents().get(0);
+
+ //enum BooleanLiterals:
+ // true | false;
+ public EnumRule getRule() { return rule; }
+
+ //true | false
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //true
+ public EnumLiteralDeclaration getTrueEnumLiteralDeclaration_0() { return cTrueEnumLiteralDeclaration_0; }
+
+ //"true"
+ public Keyword getTrueTrueKeyword_0_0() { return cTrueTrueKeyword_0_0; }
+
+ //false
+ public EnumLiteralDeclaration getFalseEnumLiteralDeclaration_1() { return cFalseEnumLiteralDeclaration_1; }
+
+ //"false"
+ public Keyword getFalseFalseKeyword_1_0() { return cFalseFalseKeyword_1_0; }
+ }
+
+ private final PropertyRuleElements pPropertyRule;
+ private final VisibilityKindElements unknownRuleVisibilityKind;
+ private final VisibilityRuleElements pVisibilityRule;
+ private final TypeRuleElements pTypeRule;
+ private final QualifiedNameElements pQualifiedName;
+ private final MultiplicityRuleElements pMultiplicityRule;
+ private final BoundSpecificationElements pBoundSpecification;
+ private final UnlimitedLiteralElements pUnlimitedLiteral;
+ private final StringLiteralElements pStringLiteral;
+ private final ModifiersRuleElements pModifiersRule;
+ private final ModifierSpecificationElements pModifierSpecification;
+ private final ModifierKindElements unknownRuleModifierKind;
+ private final RedefinesRuleElements pRedefinesRule;
+ private final SubsetsRuleElements pSubsetsRule;
+ private final DefaultValueRuleElements pDefaultValueRule;
+ private final ValueElements pValue;
+ private final IntValueElements pIntValue;
+ private final StringValueElements pStringValue;
+ private final BooleanLiteralsElements unknownRuleBooleanLiterals;
+ private final BooleanValueElements pBooleanValue;
+ private final RealValueElements pRealValue;
+ private final NullValueElements pNullValue;
+ private final NoValueElements pNoValue;
+
+ private final Grammar grammar;
+
+ private final CommonGrammarAccess gaCommon;
+
+ @Inject
+ public UmlPropertyGrammarAccess(GrammarProvider grammarProvider,
+ CommonGrammarAccess gaCommon) {
+ this.grammar = internalFindGrammar(grammarProvider);
+ this.gaCommon = gaCommon;
+ this.pPropertyRule = new PropertyRuleElements();
+ this.unknownRuleVisibilityKind = new VisibilityKindElements();
+ this.pVisibilityRule = new VisibilityRuleElements();
+ this.pTypeRule = new TypeRuleElements();
+ this.pQualifiedName = new QualifiedNameElements();
+ this.pMultiplicityRule = new MultiplicityRuleElements();
+ this.pBoundSpecification = new BoundSpecificationElements();
+ this.pUnlimitedLiteral = new UnlimitedLiteralElements();
+ this.pStringLiteral = new StringLiteralElements();
+ this.pModifiersRule = new ModifiersRuleElements();
+ this.pModifierSpecification = new ModifierSpecificationElements();
+ this.unknownRuleModifierKind = new ModifierKindElements();
+ this.pRedefinesRule = new RedefinesRuleElements();
+ this.pSubsetsRule = new SubsetsRuleElements();
+ this.pDefaultValueRule = new DefaultValueRuleElements();
+ this.pValue = new ValueElements();
+ this.pIntValue = new IntValueElements();
+ this.pStringValue = new StringValueElements();
+ this.unknownRuleBooleanLiterals = new BooleanLiteralsElements();
+ this.pBooleanValue = new BooleanValueElements();
+ this.pRealValue = new RealValueElements();
+ this.pNullValue = new NullValueElements();
+ this.pNoValue = new NoValueElements();
+ }
+
+ protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
+ Grammar grammar = grammarProvider.getGrammar(this);
+ while (grammar != null) {
+ if ("org.eclipse.papyrus.uml.textedit.property.xtext.UmlProperty".equals(grammar.getName())) {
+ return grammar;
+ }
+ List<Grammar> grammars = grammar.getUsedGrammars();
+ if (!grammars.isEmpty()) {
+ grammar = grammars.iterator().next();
+ } else {
+ return null;
+ }
+ }
+ return grammar;
+ }
+
+ @Override
+ public Grammar getGrammar() {
+ return grammar;
+ }
+
+
+ public CommonGrammarAccess getCommonGrammarAccess() {
+ return gaCommon;
+ }
+
+
+ //PropertyRule:
+ // visibility=VisibilityRule? derived?="/"? name=ID (":" (type=TypeRule | typeUndefined?="<Undefined>"))?
+ // multiplicity=MultiplicityRule? modifiers=ModifiersRule? default=DefaultValueRule?;
+ public PropertyRuleElements getPropertyRuleAccess() {
+ return pPropertyRule;
+ }
+
+ public ParserRule getPropertyRuleRule() {
+ return getPropertyRuleAccess().getRule();
+ }
+
+ //enum VisibilityKind:
+ // public="+" | private="-" | protected="#" | package="~";
+ public VisibilityKindElements getVisibilityKindAccess() {
+ return unknownRuleVisibilityKind;
+ }
+
+ public EnumRule getVisibilityKindRule() {
+ return getVisibilityKindAccess().getRule();
+ }
+
+ //VisibilityRule:
+ // visibility=VisibilityKind;
+ public VisibilityRuleElements getVisibilityRuleAccess() {
+ return pVisibilityRule;
+ }
+
+ public ParserRule getVisibilityRuleRule() {
+ return getVisibilityRuleAccess().getRule();
+ }
+
+ //TypeRule:
+ // path=QualifiedName? type=[uml::Classifier];
+ public TypeRuleElements getTypeRuleAccess() {
+ return pTypeRule;
+ }
+
+ public ParserRule getTypeRuleRule() {
+ return getTypeRuleAccess().getRule();
+ }
+
+ //QualifiedName:
+ // path=[uml::Namespace] "::" remaining=QualifiedName?;
+ public QualifiedNameElements getQualifiedNameAccess() {
+ return pQualifiedName;
+ }
+
+ public ParserRule getQualifiedNameRule() {
+ return getQualifiedNameAccess().getRule();
+ }
+
+ //MultiplicityRule:
+ // "[" bounds+=BoundSpecification (".." bounds+=BoundSpecification)? "]";
+ public MultiplicityRuleElements getMultiplicityRuleAccess() {
+ return pMultiplicityRule;
+ }
+
+ public ParserRule getMultiplicityRuleRule() {
+ return getMultiplicityRuleAccess().getRule();
+ }
+
+ //BoundSpecification:
+ // value=(UnlimitedLiteral | StringLiteral);
+ public BoundSpecificationElements getBoundSpecificationAccess() {
+ return pBoundSpecification;
+ }
+
+ public ParserRule getBoundSpecificationRule() {
+ return getBoundSpecificationAccess().getRule();
+ }
+
+ //UnlimitedLiteral:
+ // INT | "*";
+ public UnlimitedLiteralElements getUnlimitedLiteralAccess() {
+ return pUnlimitedLiteral;
+ }
+
+ public ParserRule getUnlimitedLiteralRule() {
+ return getUnlimitedLiteralAccess().getRule();
+ }
+
+ //StringLiteral:
+ // STRING;
+ public StringLiteralElements getStringLiteralAccess() {
+ return pStringLiteral;
+ }
+
+ public ParserRule getStringLiteralRule() {
+ return getStringLiteralAccess().getRule();
+ }
+
+ //ModifiersRule:
+ // {ModifiersRule} "{" (values+=ModifierSpecification ("," values+=ModifierSpecification)*)? "}";
+ public ModifiersRuleElements getModifiersRuleAccess() {
+ return pModifiersRule;
+ }
+
+ public ParserRule getModifiersRuleRule() {
+ return getModifiersRuleAccess().getRule();
+ }
+
+ //ModifierSpecification:
+ // value=ModifierKind | redefines=RedefinesRule | subsets=SubsetsRule;
+ public ModifierSpecificationElements getModifierSpecificationAccess() {
+ return pModifierSpecification;
+ }
+
+ public ParserRule getModifierSpecificationRule() {
+ return getModifierSpecificationAccess().getRule();
+ }
+
+ //enum ModifierKind:
+ // readOnly | union | ordered | unique;
+ public ModifierKindElements getModifierKindAccess() {
+ return unknownRuleModifierKind;
+ }
+
+ public EnumRule getModifierKindRule() {
+ return getModifierKindAccess().getRule();
+ }
+
+ //RedefinesRule:
+ // "redefines" property=[uml::Property];
+ public RedefinesRuleElements getRedefinesRuleAccess() {
+ return pRedefinesRule;
+ }
+
+ public ParserRule getRedefinesRuleRule() {
+ return getRedefinesRuleAccess().getRule();
+ }
+
+ //SubsetsRule:
+ // "subsets" property=[uml::Property];
+ public SubsetsRuleElements getSubsetsRuleAccess() {
+ return pSubsetsRule;
+ }
+
+ public ParserRule getSubsetsRuleRule() {
+ return getSubsetsRuleAccess().getRule();
+ }
+
+ //DefaultValueRule:
+ // "=" default=Value;
+ public DefaultValueRuleElements getDefaultValueRuleAccess() {
+ return pDefaultValueRule;
+ }
+
+ public ParserRule getDefaultValueRuleRule() {
+ return getDefaultValueRuleAccess().getRule();
+ }
+
+ //Value:
+ // IntValue | StringValue | BooleanValue | RealValue | NullValue | NoValue;
+ public ValueElements getValueAccess() {
+ return pValue;
+ }
+
+ public ParserRule getValueRule() {
+ return getValueAccess().getRule();
+ }
+
+ //IntValue:
+ // literalInteger=INT;
+ public IntValueElements getIntValueAccess() {
+ return pIntValue;
+ }
+
+ public ParserRule getIntValueRule() {
+ return getIntValueAccess().getRule();
+ }
+
+ //StringValue:
+ // literalString=STRING;
+ public StringValueElements getStringValueAccess() {
+ return pStringValue;
+ }
+
+ public ParserRule getStringValueRule() {
+ return getStringValueAccess().getRule();
+ }
+
+ //enum BooleanLiterals:
+ // true | false;
+ public BooleanLiteralsElements getBooleanLiteralsAccess() {
+ return unknownRuleBooleanLiterals;
+ }
+
+ public EnumRule getBooleanLiteralsRule() {
+ return getBooleanLiteralsAccess().getRule();
+ }
+
+ //BooleanValue:
+ // literalBoolean=BooleanLiterals;
+ public BooleanValueElements getBooleanValueAccess() {
+ return pBooleanValue;
+ }
+
+ public ParserRule getBooleanValueRule() {
+ return getBooleanValueAccess().getRule();
+ }
+
+ ////TODO: Support all Java-compliant doubles
+ //RealValue:
+ // integer=INT "." | "." fraction=INT | integer=INT "." fraction=INT;
+ public RealValueElements getRealValueAccess() {
+ return pRealValue;
+ }
+
+ public ParserRule getRealValueRule() {
+ return getRealValueAccess().getRule();
+ }
+
+ //NullValue:
+ // {NullValue} "null";
+ public NullValueElements getNullValueAccess() {
+ return pNullValue;
+ }
+
+ public ParserRule getNullValueRule() {
+ return getNullValueAccess().getRule();
+ }
+
+ //NoValue:
+ // {NoValue} "none";
+ public NoValueElements getNoValueAccess() {
+ return pNoValue;
+ }
+
+ public ParserRule getNoValueRule() {
+ return getNoValueAccess().getRule();
+ }
+
+ //terminal ID:
+ // ("a".."z" | "A".."Z" | "_") ("a".."z" | "A".."Z" | "_" | "0".."9")* | "\'"->"\'";
+ public TerminalRule getIDRule() {
+ return gaCommon.getIDRule();
+ }
+
+ //terminal STRING:
+ // "\"" ("\\" ("b" | "t" | "n" | "f" | "r" | "\"" | "\'" | "\\") | !("\\" | "\""))* "\"";
+ public TerminalRule getSTRINGRule() {
+ return gaCommon.getSTRINGRule();
+ }
+
+ //terminal ML_COMMENT:
+ // "/ *" !"@"->"* /";
+ public TerminalRule getML_COMMENTRule() {
+ return gaCommon.getML_COMMENTRule();
+ }
+
+ //terminal SL_COMMENT:
+ // "//" !("\n" | "\r" | "@")* ("\r"? "\n")?;
+ public TerminalRule getSL_COMMENTRule() {
+ return gaCommon.getSL_COMMENTRule();
+ }
+
+ //terminal INT returns ecore::EInt:
+ // "0".."9"+;
+ public TerminalRule getINTRule() {
+ return gaCommon.getINTRule();
+ }
+
+ ////terminal DOUBLE_COLON : '::' ;
+ ////terminal IDENTIFIER : ID ;
+ ////terminal IDENTIFIER : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')* | ('\'' -> '\'') ;
+ ////terminal DOCUMENTATION_COMMENT : '/ *' -> '* /' ;
+ ////terminal ML_COMMENT : '/°' -> '°/';
+ ////terminal SL_COMMENT : '°°' !('\n'|'\r')* ('\r'? '\n')?;
+ ////terminal WS : (' '|'\t'|'\r'|'\n')+; terminal INTEGER_VALUE:
+ // ("0" | "1".."9" ("_"? "0".."9")*) //DECIMAL
+ // // BINARY
+ // // HEX
+ // // OCT
+ // | ("0b" | "0B") "0".."1" ("_"? "0".."1")* | ("0x" | "0X") ("0".."9" | "a".."f" | "A".."F") ("_"? ("0".."9" | "a".."f" |
+ // "A".."F"))* | "0" "_"? "0".."7" ("_"? "0".."7")*;
+ public TerminalRule getINTEGER_VALUERule() {
+ return gaCommon.getINTEGER_VALUERule();
+ }
+
+ //terminal WS:
+ // (" " | "\t" | "\r" | "\n")+;
+ public TerminalRule getWSRule() {
+ return gaCommon.getWSRule();
+ }
+
+ //terminal ANY_OTHER:
+ // .;
+ public TerminalRule getANY_OTHERRule() {
+ return gaCommon.getANY_OTHERRule();
+ }
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BooleanLiterals.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BooleanLiterals.java
index 1502c247f58..4f685585f13 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BooleanLiterals.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BooleanLiterals.java
@@ -1,241 +1,229 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.Enumerator;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the literals of the enumeration '<em><b>Boolean Literals</b></em>',
- * and utility methods for working with them.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getBooleanLiterals()
- * @model
- * @generated
- */
-public enum BooleanLiterals implements Enumerator
-{
- /**
- * The '<em><b>True</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #TRUE_VALUE
- * @generated
- * @ordered
- */
- TRUE(0, "true", "true"),
-
- /**
- * The '<em><b>False</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #FALSE_VALUE
- * @generated
- * @ordered
- */
- FALSE(1, "false", "false");
-
- /**
- * The '<em><b>True</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>True</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #TRUE
- * @model name="true"
- * @generated
- * @ordered
- */
- public static final int TRUE_VALUE = 0;
-
- /**
- * The '<em><b>False</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>False</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #FALSE
- * @model name="false"
- * @generated
- * @ordered
- */
- public static final int FALSE_VALUE = 1;
-
- /**
- * An array of all the '<em><b>Boolean Literals</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private static final BooleanLiterals[] VALUES_ARRAY =
- new BooleanLiterals[]
- {
- TRUE,
- FALSE,
- };
-
- /**
- * A public read-only list of all the '<em><b>Boolean Literals</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static final List<BooleanLiterals> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the '<em><b>Boolean Literals</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static BooleanLiterals get(String literal)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- BooleanLiterals result = VALUES_ARRAY[i];
- if (result.toString().equals(literal))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Boolean Literals</b></em>' literal with the specified name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static BooleanLiterals getByName(String name)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- BooleanLiterals result = VALUES_ARRAY[i];
- if (result.getName().equals(name))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Boolean Literals</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static BooleanLiterals get(int value)
- {
- switch (value)
- {
- case TRUE_VALUE:
- return TRUE;
- case FALSE_VALUE:
- return FALSE;
- }
- return null;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private final int value;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private final String name;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private final String literal;
-
- /**
- * Only this class can construct instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private BooleanLiterals(int value, String name, String literal)
- {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public int getValue()
- {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getLiteral()
- {
- return literal;
- }
-
- /**
- * Returns the literal value of the enumerator, which is its string representation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- return literal;
- }
-
-} // BooleanLiterals
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>Boolean Literals</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getBooleanLiterals()
+ * @model
+ * @generated
+ */
+public enum BooleanLiterals implements Enumerator
+{
+ /**
+ * The '<em><b>True</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #TRUE_VALUE
+ * @generated
+ * @ordered
+ */
+ TRUE(0, "true", "true"),
+
+ /**
+ * The '<em><b>False</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #FALSE_VALUE
+ * @generated
+ * @ordered
+ */
+ FALSE(1, "false", "false");
+
+ /**
+ * The '<em><b>True</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>True</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #TRUE
+ * @model name="true"
+ * @generated
+ * @ordered
+ */
+ public static final int TRUE_VALUE = 0;
+
+ /**
+ * The '<em><b>False</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>False</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #FALSE
+ * @model name="false"
+ * @generated
+ * @ordered
+ */
+ public static final int FALSE_VALUE = 1;
+
+ /**
+ * An array of all the '<em><b>Boolean Literals</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final BooleanLiterals[] VALUES_ARRAY =
+ new BooleanLiterals[]
+ {
+ TRUE,
+ FALSE,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>Boolean Literals</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<BooleanLiterals> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Boolean Literals</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param literal the literal.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static BooleanLiterals get(String literal)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ BooleanLiterals result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Boolean Literals</b></em>' literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param name the name.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static BooleanLiterals getByName(String name)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ BooleanLiterals result = VALUES_ARRAY[i];
+ if (result.getName().equals(name))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Boolean Literals</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the integer value.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static BooleanLiterals get(int value)
+ {
+ switch (value)
+ {
+ case TRUE_VALUE: return TRUE;
+ case FALSE_VALUE: return FALSE;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private BooleanLiterals(int value, String name, String literal)
+ {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue()
+ {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteral()
+ {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ return literal;
+ }
+
+} //BooleanLiterals
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BooleanValue.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BooleanValue.java
index 8ac1b89d391..cdb5a3ddad7 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BooleanValue.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BooleanValue.java
@@ -1,55 +1,53 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Boolean Value</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue#getLiteralBoolean <em>Literal Boolean</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getBooleanValue()
- * @model
- * @generated
- */
-public interface BooleanValue extends Value
-{
- /**
- * Returns the value of the '<em><b>Literal Boolean</b></em>' attribute.
- * The literals are from the enumeration {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Literal Boolean</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Literal Boolean</em>' attribute.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals
- * @see #setLiteralBoolean(BooleanLiterals)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getBooleanValue_LiteralBoolean()
- * @model
- * @generated
- */
- BooleanLiterals getLiteralBoolean();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue#getLiteralBoolean <em>Literal Boolean</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Literal Boolean</em>' attribute.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals
- * @see #getLiteralBoolean()
- * @generated
- */
- void setLiteralBoolean(BooleanLiterals value);
-
-} // BooleanValue
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Boolean Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue#getLiteralBoolean <em>Literal Boolean</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getBooleanValue()
+ * @model
+ * @generated
+ */
+public interface BooleanValue extends Value
+{
+ /**
+ * Returns the value of the '<em><b>Literal Boolean</b></em>' attribute.
+ * The literals are from the enumeration {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Literal Boolean</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Literal Boolean</em>' attribute.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals
+ * @see #setLiteralBoolean(BooleanLiterals)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getBooleanValue_LiteralBoolean()
+ * @model
+ * @generated
+ */
+ BooleanLiterals getLiteralBoolean();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue#getLiteralBoolean <em>Literal Boolean</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Literal Boolean</em>' attribute.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals
+ * @see #getLiteralBoolean()
+ * @generated
+ */
+ void setLiteralBoolean(BooleanLiterals value);
+
+} // BooleanValue
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BoundSpecification.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BoundSpecification.java
index ac761cfb1eb..78221dc4c22 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BoundSpecification.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/BoundSpecification.java
@@ -1,53 +1,51 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Bound Specification</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification#getValue <em>Value</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getBoundSpecification()
- * @model
- * @generated
- */
-public interface BoundSpecification extends EObject
-{
- /**
- * Returns the value of the '<em><b>Value</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Value</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Value</em>' attribute.
- * @see #setValue(String)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getBoundSpecification_Value()
- * @model
- * @generated
- */
- String getValue();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification#getValue <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Value</em>' attribute.
- * @see #getValue()
- * @generated
- */
- void setValue(String value);
-
-} // BoundSpecification
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Bound Specification</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification#getValue <em>Value</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getBoundSpecification()
+ * @model
+ * @generated
+ */
+public interface BoundSpecification extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Value</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Value</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Value</em>' attribute.
+ * @see #setValue(String)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getBoundSpecification_Value()
+ * @model
+ * @generated
+ */
+ String getValue();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification#getValue <em>Value</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Value</em>' attribute.
+ * @see #getValue()
+ * @generated
+ */
+ void setValue(String value);
+
+} // BoundSpecification
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/DefaultValueRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/DefaultValueRule.java
index 3f966ca32d5..51a5ed5119d 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/DefaultValueRule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/DefaultValueRule.java
@@ -1,53 +1,51 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Default Value Rule</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule#getDefault <em>Default</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getDefaultValueRule()
- * @model
- * @generated
- */
-public interface DefaultValueRule extends EObject
-{
- /**
- * Returns the value of the '<em><b>Default</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Default</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Default</em>' containment reference.
- * @see #setDefault(Value)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getDefaultValueRule_Default()
- * @model containment="true"
- * @generated
- */
- Value getDefault();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule#getDefault <em>Default</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Default</em>' containment reference.
- * @see #getDefault()
- * @generated
- */
- void setDefault(Value value);
-
-} // DefaultValueRule
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Default Value Rule</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule#getDefault <em>Default</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getDefaultValueRule()
+ * @model
+ * @generated
+ */
+public interface DefaultValueRule extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Default</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Default</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Default</em>' containment reference.
+ * @see #setDefault(Value)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getDefaultValueRule_Default()
+ * @model containment="true"
+ * @generated
+ */
+ Value getDefault();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule#getDefault <em>Default</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Default</em>' containment reference.
+ * @see #getDefault()
+ * @generated
+ */
+ void setDefault(Value value);
+
+} // DefaultValueRule
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/IntValue.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/IntValue.java
index 3df3fd2d350..6192cfce097 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/IntValue.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/IntValue.java
@@ -1,52 +1,50 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Int Value</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue#getLiteralInteger <em>Literal Integer</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getIntValue()
- * @model
- * @generated
- */
-public interface IntValue extends Value
-{
- /**
- * Returns the value of the '<em><b>Literal Integer</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Literal Integer</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Literal Integer</em>' attribute.
- * @see #setLiteralInteger(int)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getIntValue_LiteralInteger()
- * @model
- * @generated
- */
- int getLiteralInteger();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue#getLiteralInteger <em>Literal Integer</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Literal Integer</em>' attribute.
- * @see #getLiteralInteger()
- * @generated
- */
- void setLiteralInteger(int value);
-
-} // IntValue
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Int Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue#getLiteralInteger <em>Literal Integer</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getIntValue()
+ * @model
+ * @generated
+ */
+public interface IntValue extends Value
+{
+ /**
+ * Returns the value of the '<em><b>Literal Integer</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Literal Integer</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Literal Integer</em>' attribute.
+ * @see #setLiteralInteger(int)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getIntValue_LiteralInteger()
+ * @model
+ * @generated
+ */
+ int getLiteralInteger();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue#getLiteralInteger <em>Literal Integer</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Literal Integer</em>' attribute.
+ * @see #getLiteralInteger()
+ * @generated
+ */
+ void setLiteralInteger(int value);
+
+} // IntValue
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierKind.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierKind.java
index b5bdff70350..63b98676e86 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierKind.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierKind.java
@@ -1,299 +1,283 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.Enumerator;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the literals of the enumeration '<em><b>Modifier Kind</b></em>',
- * and utility methods for working with them.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifierKind()
- * @model
- * @generated
- */
-public enum ModifierKind implements Enumerator
-{
- /**
- * The '<em><b>Read Only</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #READ_ONLY_VALUE
- * @generated
- * @ordered
- */
- READ_ONLY(0, "readOnly", "readOnly"),
-
- /**
- * The '<em><b>Union</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #UNION_VALUE
- * @generated
- * @ordered
- */
- UNION(1, "union", "union"),
-
- /**
- * The '<em><b>Ordered</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #ORDERED_VALUE
- * @generated
- * @ordered
- */
- ORDERED(2, "ordered", "ordered"),
-
- /**
- * The '<em><b>Unique</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #UNIQUE_VALUE
- * @generated
- * @ordered
- */
- UNIQUE(3, "unique", "unique");
-
- /**
- * The '<em><b>Read Only</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Read Only</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #READ_ONLY
- * @model name="readOnly"
- * @generated
- * @ordered
- */
- public static final int READ_ONLY_VALUE = 0;
-
- /**
- * The '<em><b>Union</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Union</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #UNION
- * @model name="union"
- * @generated
- * @ordered
- */
- public static final int UNION_VALUE = 1;
-
- /**
- * The '<em><b>Ordered</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Ordered</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #ORDERED
- * @model name="ordered"
- * @generated
- * @ordered
- */
- public static final int ORDERED_VALUE = 2;
-
- /**
- * The '<em><b>Unique</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Unique</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #UNIQUE
- * @model name="unique"
- * @generated
- * @ordered
- */
- public static final int UNIQUE_VALUE = 3;
-
- /**
- * An array of all the '<em><b>Modifier Kind</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private static final ModifierKind[] VALUES_ARRAY =
- new ModifierKind[]
- {
- READ_ONLY,
- UNION,
- ORDERED,
- UNIQUE,
- };
-
- /**
- * A public read-only list of all the '<em><b>Modifier Kind</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static final List<ModifierKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the '<em><b>Modifier Kind</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static ModifierKind get(String literal)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- ModifierKind result = VALUES_ARRAY[i];
- if (result.toString().equals(literal))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Modifier Kind</b></em>' literal with the specified name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static ModifierKind getByName(String name)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- ModifierKind result = VALUES_ARRAY[i];
- if (result.getName().equals(name))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Modifier Kind</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static ModifierKind get(int value)
- {
- switch (value)
- {
- case READ_ONLY_VALUE:
- return READ_ONLY;
- case UNION_VALUE:
- return UNION;
- case ORDERED_VALUE:
- return ORDERED;
- case UNIQUE_VALUE:
- return UNIQUE;
- }
- return null;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private final int value;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private final String name;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private final String literal;
-
- /**
- * Only this class can construct instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private ModifierKind(int value, String name, String literal)
- {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public int getValue()
- {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getLiteral()
- {
- return literal;
- }
-
- /**
- * Returns the literal value of the enumerator, which is its string representation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- return literal;
- }
-
-} // ModifierKind
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>Modifier Kind</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifierKind()
+ * @model
+ * @generated
+ */
+public enum ModifierKind implements Enumerator
+{
+ /**
+ * The '<em><b>Read Only</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #READ_ONLY_VALUE
+ * @generated
+ * @ordered
+ */
+ READ_ONLY(0, "readOnly", "readOnly"),
+
+ /**
+ * The '<em><b>Union</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #UNION_VALUE
+ * @generated
+ * @ordered
+ */
+ UNION(1, "union", "union"),
+
+ /**
+ * The '<em><b>Ordered</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #ORDERED_VALUE
+ * @generated
+ * @ordered
+ */
+ ORDERED(2, "ordered", "ordered"),
+
+ /**
+ * The '<em><b>Unique</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #UNIQUE_VALUE
+ * @generated
+ * @ordered
+ */
+ UNIQUE(3, "unique", "unique");
+
+ /**
+ * The '<em><b>Read Only</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Read Only</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #READ_ONLY
+ * @model name="readOnly"
+ * @generated
+ * @ordered
+ */
+ public static final int READ_ONLY_VALUE = 0;
+
+ /**
+ * The '<em><b>Union</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Union</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #UNION
+ * @model name="union"
+ * @generated
+ * @ordered
+ */
+ public static final int UNION_VALUE = 1;
+
+ /**
+ * The '<em><b>Ordered</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Ordered</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #ORDERED
+ * @model name="ordered"
+ * @generated
+ * @ordered
+ */
+ public static final int ORDERED_VALUE = 2;
+
+ /**
+ * The '<em><b>Unique</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Unique</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #UNIQUE
+ * @model name="unique"
+ * @generated
+ * @ordered
+ */
+ public static final int UNIQUE_VALUE = 3;
+
+ /**
+ * An array of all the '<em><b>Modifier Kind</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final ModifierKind[] VALUES_ARRAY =
+ new ModifierKind[]
+ {
+ READ_ONLY,
+ UNION,
+ ORDERED,
+ UNIQUE,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>Modifier Kind</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<ModifierKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Modifier Kind</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param literal the literal.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static ModifierKind get(String literal)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ ModifierKind result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Modifier Kind</b></em>' literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param name the name.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static ModifierKind getByName(String name)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ ModifierKind result = VALUES_ARRAY[i];
+ if (result.getName().equals(name))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Modifier Kind</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the integer value.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static ModifierKind get(int value)
+ {
+ switch (value)
+ {
+ case READ_ONLY_VALUE: return READ_ONLY;
+ case UNION_VALUE: return UNION;
+ case ORDERED_VALUE: return ORDERED;
+ case UNIQUE_VALUE: return UNIQUE;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private ModifierKind(int value, String name, String literal)
+ {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue()
+ {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteral()
+ {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ return literal;
+ }
+
+} //ModifierKind
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierSpecification.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierSpecification.java
index e12fbcb2137..496cb0e80a4 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierSpecification.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifierSpecification.java
@@ -1,114 +1,108 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Modifier Specification</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getValue <em>Value</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getRedefines <em>Redefines</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getSubsets <em>Subsets</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifierSpecification()
- * @model
- * @generated
- */
-public interface ModifierSpecification extends EObject
-{
- /**
- * Returns the value of the '<em><b>Value</b></em>' attribute.
- * The literals are from the enumeration {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Value</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Value</em>' attribute.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind
- * @see #setValue(ModifierKind)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifierSpecification_Value()
- * @model
- * @generated
- */
- ModifierKind getValue();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getValue <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Value</em>' attribute.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind
- * @see #getValue()
- * @generated
- */
- void setValue(ModifierKind value);
-
- /**
- * Returns the value of the '<em><b>Redefines</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Redefines</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Redefines</em>' containment reference.
- * @see #setRedefines(RedefinesRule)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifierSpecification_Redefines()
- * @model containment="true"
- * @generated
- */
- RedefinesRule getRedefines();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getRedefines <em>Redefines</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Redefines</em>' containment reference.
- * @see #getRedefines()
- * @generated
- */
- void setRedefines(RedefinesRule value);
-
- /**
- * Returns the value of the '<em><b>Subsets</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Subsets</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Subsets</em>' containment reference.
- * @see #setSubsets(SubsetsRule)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifierSpecification_Subsets()
- * @model containment="true"
- * @generated
- */
- SubsetsRule getSubsets();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getSubsets <em>Subsets</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Subsets</em>' containment reference.
- * @see #getSubsets()
- * @generated
- */
- void setSubsets(SubsetsRule value);
-
-} // ModifierSpecification
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Modifier Specification</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getValue <em>Value</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getRedefines <em>Redefines</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getSubsets <em>Subsets</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifierSpecification()
+ * @model
+ * @generated
+ */
+public interface ModifierSpecification extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Value</b></em>' attribute.
+ * The literals are from the enumeration {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Value</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Value</em>' attribute.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind
+ * @see #setValue(ModifierKind)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifierSpecification_Value()
+ * @model
+ * @generated
+ */
+ ModifierKind getValue();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getValue <em>Value</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Value</em>' attribute.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind
+ * @see #getValue()
+ * @generated
+ */
+ void setValue(ModifierKind value);
+
+ /**
+ * Returns the value of the '<em><b>Redefines</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Redefines</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Redefines</em>' containment reference.
+ * @see #setRedefines(RedefinesRule)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifierSpecification_Redefines()
+ * @model containment="true"
+ * @generated
+ */
+ RedefinesRule getRedefines();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getRedefines <em>Redefines</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Redefines</em>' containment reference.
+ * @see #getRedefines()
+ * @generated
+ */
+ void setRedefines(RedefinesRule value);
+
+ /**
+ * Returns the value of the '<em><b>Subsets</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Subsets</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Subsets</em>' containment reference.
+ * @see #setSubsets(SubsetsRule)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifierSpecification_Subsets()
+ * @model containment="true"
+ * @generated
+ */
+ SubsetsRule getSubsets();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getSubsets <em>Subsets</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Subsets</em>' containment reference.
+ * @see #getSubsets()
+ * @generated
+ */
+ void setSubsets(SubsetsRule value);
+
+} // ModifierSpecification
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifiersRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifiersRule.java
index a10dd704f1f..42156a2b20f 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifiersRule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/ModifiersRule.java
@@ -1,43 +1,43 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Modifiers Rule</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule#getValues <em>Values</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifiersRule()
- * @model
- * @generated
- */
-public interface ModifiersRule extends EObject
-{
- /**
- * Returns the value of the '<em><b>Values</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Values</em>' containment reference list isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Values</em>' containment reference list.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifiersRule_Values()
- * @model containment="true"
- * @generated
- */
- EList<ModifierSpecification> getValues();
-
-} // ModifiersRule
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Modifiers Rule</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule#getValues <em>Values</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifiersRule()
+ * @model
+ * @generated
+ */
+public interface ModifiersRule extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Values</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Values</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Values</em>' containment reference list.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getModifiersRule_Values()
+ * @model containment="true"
+ * @generated
+ */
+ EList<ModifierSpecification> getValues();
+
+} // ModifiersRule
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/MultiplicityRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/MultiplicityRule.java
index 62b2da3607c..92cfd0b187a 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/MultiplicityRule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/MultiplicityRule.java
@@ -1,43 +1,43 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Multiplicity Rule</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule#getBounds <em>Bounds</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getMultiplicityRule()
- * @model
- * @generated
- */
-public interface MultiplicityRule extends EObject
-{
- /**
- * Returns the value of the '<em><b>Bounds</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Bounds</em>' containment reference list isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Bounds</em>' containment reference list.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getMultiplicityRule_Bounds()
- * @model containment="true"
- * @generated
- */
- EList<BoundSpecification> getBounds();
-
-} // MultiplicityRule
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Multiplicity Rule</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule#getBounds <em>Bounds</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getMultiplicityRule()
+ * @model
+ * @generated
+ */
+public interface MultiplicityRule extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Bounds</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Bounds</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Bounds</em>' containment reference list.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getMultiplicityRule_Bounds()
+ * @model containment="true"
+ * @generated
+ */
+ EList<BoundSpecification> getBounds();
+
+} // MultiplicityRule
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/PropertyRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/PropertyRule.java
index 18ae07be87c..45444d1938d 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/PropertyRule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/PropertyRule.java
@@ -1,256 +1,240 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Property Rule</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getVisibility <em>Visibility</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isDerived <em>Derived</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getType <em>Type</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isTypeUndefined <em>Type Undefined</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getMultiplicity <em>Multiplicity</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getModifiers <em>Modifiers</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getDefault <em>Default</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule()
- * @model
- * @generated
- */
-public interface PropertyRule extends EObject
-{
- /**
- * Returns the value of the '<em><b>Visibility</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Visibility</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Visibility</em>' containment reference.
- * @see #setVisibility(VisibilityRule)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Visibility()
- * @model containment="true"
- * @generated
- */
- VisibilityRule getVisibility();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getVisibility <em>Visibility</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Visibility</em>' containment reference.
- * @see #getVisibility()
- * @generated
- */
- void setVisibility(VisibilityRule value);
-
- /**
- * Returns the value of the '<em><b>Derived</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Derived</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Derived</em>' attribute.
- * @see #setDerived(boolean)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Derived()
- * @model
- * @generated
- */
- boolean isDerived();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isDerived <em>Derived</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Derived</em>' attribute.
- * @see #isDerived()
- * @generated
- */
- void setDerived(boolean value);
-
- /**
- * Returns the value of the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Name</em>' attribute.
- * @see #setName(String)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getName <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Name</em>' attribute.
- * @see #getName()
- * @generated
- */
- void setName(String value);
-
- /**
- * Returns the value of the '<em><b>Type</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Type</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Type</em>' containment reference.
- * @see #setType(TypeRule)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Type()
- * @model containment="true"
- * @generated
- */
- TypeRule getType();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getType <em>Type</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Type</em>' containment reference.
- * @see #getType()
- * @generated
- */
- void setType(TypeRule value);
-
- /**
- * Returns the value of the '<em><b>Type Undefined</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Type Undefined</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Type Undefined</em>' attribute.
- * @see #setTypeUndefined(boolean)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_TypeUndefined()
- * @model
- * @generated
- */
- boolean isTypeUndefined();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isTypeUndefined <em>Type Undefined</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Type Undefined</em>' attribute.
- * @see #isTypeUndefined()
- * @generated
- */
- void setTypeUndefined(boolean value);
-
- /**
- * Returns the value of the '<em><b>Multiplicity</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Multiplicity</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Multiplicity</em>' containment reference.
- * @see #setMultiplicity(MultiplicityRule)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Multiplicity()
- * @model containment="true"
- * @generated
- */
- MultiplicityRule getMultiplicity();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getMultiplicity <em>Multiplicity</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Multiplicity</em>' containment reference.
- * @see #getMultiplicity()
- * @generated
- */
- void setMultiplicity(MultiplicityRule value);
-
- /**
- * Returns the value of the '<em><b>Modifiers</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Modifiers</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Modifiers</em>' containment reference.
- * @see #setModifiers(ModifiersRule)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Modifiers()
- * @model containment="true"
- * @generated
- */
- ModifiersRule getModifiers();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getModifiers <em>Modifiers</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Modifiers</em>' containment reference.
- * @see #getModifiers()
- * @generated
- */
- void setModifiers(ModifiersRule value);
-
- /**
- * Returns the value of the '<em><b>Default</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Default</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Default</em>' containment reference.
- * @see #setDefault(DefaultValueRule)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Default()
- * @model containment="true"
- * @generated
- */
- DefaultValueRule getDefault();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getDefault <em>Default</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Default</em>' containment reference.
- * @see #getDefault()
- * @generated
- */
- void setDefault(DefaultValueRule value);
-
-} // PropertyRule
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Property Rule</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getVisibility <em>Visibility</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isDerived <em>Derived</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getType <em>Type</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isTypeUndefined <em>Type Undefined</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getMultiplicity <em>Multiplicity</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getModifiers <em>Modifiers</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getDefault <em>Default</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule()
+ * @model
+ * @generated
+ */
+public interface PropertyRule extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Visibility</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Visibility</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Visibility</em>' containment reference.
+ * @see #setVisibility(VisibilityRule)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Visibility()
+ * @model containment="true"
+ * @generated
+ */
+ VisibilityRule getVisibility();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getVisibility <em>Visibility</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Visibility</em>' containment reference.
+ * @see #getVisibility()
+ * @generated
+ */
+ void setVisibility(VisibilityRule value);
+
+ /**
+ * Returns the value of the '<em><b>Derived</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Derived</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Derived</em>' attribute.
+ * @see #setDerived(boolean)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Derived()
+ * @model
+ * @generated
+ */
+ boolean isDerived();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isDerived <em>Derived</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Derived</em>' attribute.
+ * @see #isDerived()
+ * @generated
+ */
+ void setDerived(boolean value);
+
+ /**
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Name()
+ * @model
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getName <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Type</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Type</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Type</em>' containment reference.
+ * @see #setType(TypeRule)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Type()
+ * @model containment="true"
+ * @generated
+ */
+ TypeRule getType();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getType <em>Type</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Type</em>' containment reference.
+ * @see #getType()
+ * @generated
+ */
+ void setType(TypeRule value);
+
+ /**
+ * Returns the value of the '<em><b>Type Undefined</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Type Undefined</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Type Undefined</em>' attribute.
+ * @see #setTypeUndefined(boolean)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_TypeUndefined()
+ * @model
+ * @generated
+ */
+ boolean isTypeUndefined();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isTypeUndefined <em>Type Undefined</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Type Undefined</em>' attribute.
+ * @see #isTypeUndefined()
+ * @generated
+ */
+ void setTypeUndefined(boolean value);
+
+ /**
+ * Returns the value of the '<em><b>Multiplicity</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Multiplicity</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Multiplicity</em>' containment reference.
+ * @see #setMultiplicity(MultiplicityRule)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Multiplicity()
+ * @model containment="true"
+ * @generated
+ */
+ MultiplicityRule getMultiplicity();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getMultiplicity <em>Multiplicity</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Multiplicity</em>' containment reference.
+ * @see #getMultiplicity()
+ * @generated
+ */
+ void setMultiplicity(MultiplicityRule value);
+
+ /**
+ * Returns the value of the '<em><b>Modifiers</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Modifiers</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Modifiers</em>' containment reference.
+ * @see #setModifiers(ModifiersRule)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Modifiers()
+ * @model containment="true"
+ * @generated
+ */
+ ModifiersRule getModifiers();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getModifiers <em>Modifiers</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Modifiers</em>' containment reference.
+ * @see #getModifiers()
+ * @generated
+ */
+ void setModifiers(ModifiersRule value);
+
+ /**
+ * Returns the value of the '<em><b>Default</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Default</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Default</em>' containment reference.
+ * @see #setDefault(DefaultValueRule)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getPropertyRule_Default()
+ * @model containment="true"
+ * @generated
+ */
+ DefaultValueRule getDefault();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getDefault <em>Default</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Default</em>' containment reference.
+ * @see #getDefault()
+ * @generated
+ */
+ void setDefault(DefaultValueRule value);
+
+} // PropertyRule
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/QualifiedName.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/QualifiedName.java
index 9b14b1426e7..0d21ee97c05 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/QualifiedName.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/QualifiedName.java
@@ -1,84 +1,80 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.uml2.uml.Namespace;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Qualified Name</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getPath <em>Path</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getRemaining <em>Remaining</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getQualifiedName()
- * @model
- * @generated
- */
-public interface QualifiedName extends EObject
-{
- /**
- * Returns the value of the '<em><b>Path</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Path</em>' reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Path</em>' reference.
- * @see #setPath(Namespace)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getQualifiedName_Path()
- * @model
- * @generated
- */
- Namespace getPath();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getPath <em>Path</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Path</em>' reference.
- * @see #getPath()
- * @generated
- */
- void setPath(Namespace value);
-
- /**
- * Returns the value of the '<em><b>Remaining</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Remaining</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Remaining</em>' containment reference.
- * @see #setRemaining(QualifiedName)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getQualifiedName_Remaining()
- * @model containment="true"
- * @generated
- */
- QualifiedName getRemaining();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getRemaining <em>Remaining</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Remaining</em>' containment reference.
- * @see #getRemaining()
- * @generated
- */
- void setRemaining(QualifiedName value);
-
-} // QualifiedName
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.uml2.uml.Namespace;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Qualified Name</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getPath <em>Path</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getRemaining <em>Remaining</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getQualifiedName()
+ * @model
+ * @generated
+ */
+public interface QualifiedName extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Path</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Path</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Path</em>' reference.
+ * @see #setPath(Namespace)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getQualifiedName_Path()
+ * @model
+ * @generated
+ */
+ Namespace getPath();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getPath <em>Path</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Path</em>' reference.
+ * @see #getPath()
+ * @generated
+ */
+ void setPath(Namespace value);
+
+ /**
+ * Returns the value of the '<em><b>Remaining</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Remaining</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Remaining</em>' containment reference.
+ * @see #setRemaining(QualifiedName)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getQualifiedName_Remaining()
+ * @model containment="true"
+ * @generated
+ */
+ QualifiedName getRemaining();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getRemaining <em>Remaining</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Remaining</em>' containment reference.
+ * @see #getRemaining()
+ * @generated
+ */
+ void setRemaining(QualifiedName value);
+
+} // QualifiedName
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/RealValue.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/RealValue.java
index 39c056066d7..16a5f83ef2f 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/RealValue.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/RealValue.java
@@ -1,81 +1,77 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Real Value</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getInteger <em>Integer</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getFraction <em>Fraction</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getRealValue()
- * @model
- * @generated
- */
-public interface RealValue extends Value
-{
- /**
- * Returns the value of the '<em><b>Integer</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Integer</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Integer</em>' attribute.
- * @see #setInteger(int)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getRealValue_Integer()
- * @model
- * @generated
- */
- int getInteger();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getInteger <em>Integer</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Integer</em>' attribute.
- * @see #getInteger()
- * @generated
- */
- void setInteger(int value);
-
- /**
- * Returns the value of the '<em><b>Fraction</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Fraction</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Fraction</em>' attribute.
- * @see #setFraction(int)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getRealValue_Fraction()
- * @model
- * @generated
- */
- int getFraction();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getFraction <em>Fraction</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Fraction</em>' attribute.
- * @see #getFraction()
- * @generated
- */
- void setFraction(int value);
-
-} // RealValue
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Real Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getInteger <em>Integer</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getFraction <em>Fraction</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getRealValue()
+ * @model
+ * @generated
+ */
+public interface RealValue extends Value
+{
+ /**
+ * Returns the value of the '<em><b>Integer</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Integer</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Integer</em>' attribute.
+ * @see #setInteger(int)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getRealValue_Integer()
+ * @model
+ * @generated
+ */
+ int getInteger();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getInteger <em>Integer</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Integer</em>' attribute.
+ * @see #getInteger()
+ * @generated
+ */
+ void setInteger(int value);
+
+ /**
+ * Returns the value of the '<em><b>Fraction</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Fraction</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Fraction</em>' attribute.
+ * @see #setFraction(int)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getRealValue_Fraction()
+ * @model
+ * @generated
+ */
+ int getFraction();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getFraction <em>Fraction</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Fraction</em>' attribute.
+ * @see #getFraction()
+ * @generated
+ */
+ void setFraction(int value);
+
+} // RealValue
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/RedefinesRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/RedefinesRule.java
index 72f33828ef8..4d7cc2a97a4 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/RedefinesRule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/RedefinesRule.java
@@ -1,55 +1,53 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.uml2.uml.Property;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Redefines Rule</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule#getProperty <em>Property</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getRedefinesRule()
- * @model
- * @generated
- */
-public interface RedefinesRule extends EObject
-{
- /**
- * Returns the value of the '<em><b>Property</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Property</em>' reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Property</em>' reference.
- * @see #setProperty(Property)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getRedefinesRule_Property()
- * @model
- * @generated
- */
- Property getProperty();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule#getProperty <em>Property</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Property</em>' reference.
- * @see #getProperty()
- * @generated
- */
- void setProperty(Property value);
-
-} // RedefinesRule
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.uml2.uml.Property;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Redefines Rule</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule#getProperty <em>Property</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getRedefinesRule()
+ * @model
+ * @generated
+ */
+public interface RedefinesRule extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Property</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Property</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Property</em>' reference.
+ * @see #setProperty(Property)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getRedefinesRule_Property()
+ * @model
+ * @generated
+ */
+ Property getProperty();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule#getProperty <em>Property</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Property</em>' reference.
+ * @see #getProperty()
+ * @generated
+ */
+ void setProperty(Property value);
+
+} // RedefinesRule
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/StringValue.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/StringValue.java
index f63c43dbba1..389cb1944f4 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/StringValue.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/StringValue.java
@@ -1,52 +1,50 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>String Value</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue#getLiteralString <em>Literal String</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getStringValue()
- * @model
- * @generated
- */
-public interface StringValue extends Value
-{
- /**
- * Returns the value of the '<em><b>Literal String</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Literal String</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Literal String</em>' attribute.
- * @see #setLiteralString(String)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getStringValue_LiteralString()
- * @model
- * @generated
- */
- String getLiteralString();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue#getLiteralString <em>Literal String</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Literal String</em>' attribute.
- * @see #getLiteralString()
- * @generated
- */
- void setLiteralString(String value);
-
-} // StringValue
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>String Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue#getLiteralString <em>Literal String</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getStringValue()
+ * @model
+ * @generated
+ */
+public interface StringValue extends Value
+{
+ /**
+ * Returns the value of the '<em><b>Literal String</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Literal String</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Literal String</em>' attribute.
+ * @see #setLiteralString(String)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getStringValue_LiteralString()
+ * @model
+ * @generated
+ */
+ String getLiteralString();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue#getLiteralString <em>Literal String</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Literal String</em>' attribute.
+ * @see #getLiteralString()
+ * @generated
+ */
+ void setLiteralString(String value);
+
+} // StringValue
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/SubsetsRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/SubsetsRule.java
index a8bb7393ff3..50dab572d94 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/SubsetsRule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/SubsetsRule.java
@@ -1,55 +1,53 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.uml2.uml.Property;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Subsets Rule</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule#getProperty <em>Property</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getSubsetsRule()
- * @model
- * @generated
- */
-public interface SubsetsRule extends EObject
-{
- /**
- * Returns the value of the '<em><b>Property</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Property</em>' reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Property</em>' reference.
- * @see #setProperty(Property)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getSubsetsRule_Property()
- * @model
- * @generated
- */
- Property getProperty();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule#getProperty <em>Property</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Property</em>' reference.
- * @see #getProperty()
- * @generated
- */
- void setProperty(Property value);
-
-} // SubsetsRule
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.uml2.uml.Property;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Subsets Rule</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule#getProperty <em>Property</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getSubsetsRule()
+ * @model
+ * @generated
+ */
+public interface SubsetsRule extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Property</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Property</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Property</em>' reference.
+ * @see #setProperty(Property)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getSubsetsRule_Property()
+ * @model
+ * @generated
+ */
+ Property getProperty();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule#getProperty <em>Property</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Property</em>' reference.
+ * @see #getProperty()
+ * @generated
+ */
+ void setProperty(Property value);
+
+} // SubsetsRule
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/TypeRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/TypeRule.java
index e4b487c01cf..a2469a5e050 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/TypeRule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/TypeRule.java
@@ -1,84 +1,80 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.uml2.uml.Classifier;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Type Rule</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getPath <em>Path</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getType <em>Type</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getTypeRule()
- * @model
- * @generated
- */
-public interface TypeRule extends EObject
-{
- /**
- * Returns the value of the '<em><b>Path</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Path</em>' containment reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Path</em>' containment reference.
- * @see #setPath(QualifiedName)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getTypeRule_Path()
- * @model containment="true"
- * @generated
- */
- QualifiedName getPath();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getPath <em>Path</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Path</em>' containment reference.
- * @see #getPath()
- * @generated
- */
- void setPath(QualifiedName value);
-
- /**
- * Returns the value of the '<em><b>Type</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Type</em>' reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Type</em>' reference.
- * @see #setType(Classifier)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getTypeRule_Type()
- * @model
- * @generated
- */
- Classifier getType();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getType <em>Type</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Type</em>' reference.
- * @see #getType()
- * @generated
- */
- void setType(Classifier value);
-
-} // TypeRule
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.uml2.uml.Classifier;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Type Rule</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getPath <em>Path</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getType <em>Type</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getTypeRule()
+ * @model
+ * @generated
+ */
+public interface TypeRule extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Path</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Path</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Path</em>' containment reference.
+ * @see #setPath(QualifiedName)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getTypeRule_Path()
+ * @model containment="true"
+ * @generated
+ */
+ QualifiedName getPath();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getPath <em>Path</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Path</em>' containment reference.
+ * @see #getPath()
+ * @generated
+ */
+ void setPath(QualifiedName value);
+
+ /**
+ * Returns the value of the '<em><b>Type</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Type</em>' reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Type</em>' reference.
+ * @see #setType(Classifier)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getTypeRule_Type()
+ * @model
+ * @generated
+ */
+ Classifier getType();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getType <em>Type</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Type</em>' reference.
+ * @see #getType()
+ * @generated
+ */
+ void setType(Classifier value);
+
+} // TypeRule
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/UmlPropertyFactory.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/UmlPropertyFactory.java
index 70e835407a2..cd3b057cddc 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/UmlPropertyFactory.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/UmlPropertyFactory.java
@@ -1,217 +1,196 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-import org.eclipse.emf.ecore.EFactory;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Factory</b> for the model.
- * It provides a create method for each non-abstract class of the model.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage
- * @generated
- */
-public interface UmlPropertyFactory extends EFactory
-{
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- UmlPropertyFactory eINSTANCE = org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Property Rule</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Property Rule</em>'.
- * @generated
- */
- PropertyRule createPropertyRule();
-
- /**
- * Returns a new object of class '<em>Visibility Rule</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Visibility Rule</em>'.
- * @generated
- */
- VisibilityRule createVisibilityRule();
-
- /**
- * Returns a new object of class '<em>Type Rule</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Type Rule</em>'.
- * @generated
- */
- TypeRule createTypeRule();
-
- /**
- * Returns a new object of class '<em>Qualified Name</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Qualified Name</em>'.
- * @generated
- */
- QualifiedName createQualifiedName();
-
- /**
- * Returns a new object of class '<em>Multiplicity Rule</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Multiplicity Rule</em>'.
- * @generated
- */
- MultiplicityRule createMultiplicityRule();
-
- /**
- * Returns a new object of class '<em>Bound Specification</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Bound Specification</em>'.
- * @generated
- */
- BoundSpecification createBoundSpecification();
-
- /**
- * Returns a new object of class '<em>Modifiers Rule</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Modifiers Rule</em>'.
- * @generated
- */
- ModifiersRule createModifiersRule();
-
- /**
- * Returns a new object of class '<em>Modifier Specification</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Modifier Specification</em>'.
- * @generated
- */
- ModifierSpecification createModifierSpecification();
-
- /**
- * Returns a new object of class '<em>Redefines Rule</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Redefines Rule</em>'.
- * @generated
- */
- RedefinesRule createRedefinesRule();
-
- /**
- * Returns a new object of class '<em>Subsets Rule</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Subsets Rule</em>'.
- * @generated
- */
- SubsetsRule createSubsetsRule();
-
- /**
- * Returns a new object of class '<em>Default Value Rule</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Default Value Rule</em>'.
- * @generated
- */
- DefaultValueRule createDefaultValueRule();
-
- /**
- * Returns a new object of class '<em>Value</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Value</em>'.
- * @generated
- */
- Value createValue();
-
- /**
- * Returns a new object of class '<em>Int Value</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Int Value</em>'.
- * @generated
- */
- IntValue createIntValue();
-
- /**
- * Returns a new object of class '<em>String Value</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>String Value</em>'.
- * @generated
- */
- StringValue createStringValue();
-
- /**
- * Returns a new object of class '<em>Boolean Value</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Boolean Value</em>'.
- * @generated
- */
- BooleanValue createBooleanValue();
-
- /**
- * Returns a new object of class '<em>Real Value</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Real Value</em>'.
- * @generated
- */
- RealValue createRealValue();
-
- /**
- * Returns a new object of class '<em>Null Value</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Null Value</em>'.
- * @generated
- */
- NullValue createNullValue();
-
- /**
- * Returns a new object of class '<em>No Value</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>No Value</em>'.
- * @generated
- */
- NoValue createNoValue();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the package supported by this factory.
- * @generated
- */
- UmlPropertyPackage getUmlPropertyPackage();
-
-} // UmlPropertyFactory
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Factory</b> for the model.
+ * It provides a create method for each non-abstract class of the model.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage
+ * @generated
+ */
+public interface UmlPropertyFactory extends EFactory
+{
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ UmlPropertyFactory eINSTANCE = org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyFactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>Property Rule</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Property Rule</em>'.
+ * @generated
+ */
+ PropertyRule createPropertyRule();
+
+ /**
+ * Returns a new object of class '<em>Visibility Rule</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Visibility Rule</em>'.
+ * @generated
+ */
+ VisibilityRule createVisibilityRule();
+
+ /**
+ * Returns a new object of class '<em>Type Rule</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Type Rule</em>'.
+ * @generated
+ */
+ TypeRule createTypeRule();
+
+ /**
+ * Returns a new object of class '<em>Qualified Name</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Qualified Name</em>'.
+ * @generated
+ */
+ QualifiedName createQualifiedName();
+
+ /**
+ * Returns a new object of class '<em>Multiplicity Rule</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Multiplicity Rule</em>'.
+ * @generated
+ */
+ MultiplicityRule createMultiplicityRule();
+
+ /**
+ * Returns a new object of class '<em>Bound Specification</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Bound Specification</em>'.
+ * @generated
+ */
+ BoundSpecification createBoundSpecification();
+
+ /**
+ * Returns a new object of class '<em>Modifiers Rule</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Modifiers Rule</em>'.
+ * @generated
+ */
+ ModifiersRule createModifiersRule();
+
+ /**
+ * Returns a new object of class '<em>Modifier Specification</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Modifier Specification</em>'.
+ * @generated
+ */
+ ModifierSpecification createModifierSpecification();
+
+ /**
+ * Returns a new object of class '<em>Redefines Rule</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Redefines Rule</em>'.
+ * @generated
+ */
+ RedefinesRule createRedefinesRule();
+
+ /**
+ * Returns a new object of class '<em>Subsets Rule</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Subsets Rule</em>'.
+ * @generated
+ */
+ SubsetsRule createSubsetsRule();
+
+ /**
+ * Returns a new object of class '<em>Default Value Rule</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Default Value Rule</em>'.
+ * @generated
+ */
+ DefaultValueRule createDefaultValueRule();
+
+ /**
+ * Returns a new object of class '<em>Value</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Value</em>'.
+ * @generated
+ */
+ Value createValue();
+
+ /**
+ * Returns a new object of class '<em>Int Value</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Int Value</em>'.
+ * @generated
+ */
+ IntValue createIntValue();
+
+ /**
+ * Returns a new object of class '<em>String Value</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>String Value</em>'.
+ * @generated
+ */
+ StringValue createStringValue();
+
+ /**
+ * Returns a new object of class '<em>Boolean Value</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Boolean Value</em>'.
+ * @generated
+ */
+ BooleanValue createBooleanValue();
+
+ /**
+ * Returns a new object of class '<em>Real Value</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Real Value</em>'.
+ * @generated
+ */
+ RealValue createRealValue();
+
+ /**
+ * Returns a new object of class '<em>Null Value</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Null Value</em>'.
+ * @generated
+ */
+ NullValue createNullValue();
+
+ /**
+ * Returns a new object of class '<em>No Value</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>No Value</em>'.
+ * @generated
+ */
+ NoValue createNoValue();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ UmlPropertyPackage getUmlPropertyPackage();
+
+} //UmlPropertyFactory
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/UmlPropertyPackage.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/UmlPropertyPackage.java
index 0ab23cbfc3e..52938114ce5 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/UmlPropertyPackage.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/UmlPropertyPackage.java
@@ -1,1803 +1,1634 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Package</b> for the model.
- * It contains accessors for the meta objects to represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyFactory
- * @model kind="package"
- * @generated
- */
-public interface UmlPropertyPackage extends EPackage
-{
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNAME = "umlProperty";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_PREFIX = "umlProperty";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- UmlPropertyPackage eINSTANCE = org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl <em>Property Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getPropertyRule()
- * @generated
- */
- int PROPERTY_RULE = 0;
-
- /**
- * The feature id for the '<em><b>Visibility</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROPERTY_RULE__VISIBILITY = 0;
-
- /**
- * The feature id for the '<em><b>Derived</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROPERTY_RULE__DERIVED = 1;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROPERTY_RULE__NAME = 2;
-
- /**
- * The feature id for the '<em><b>Type</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROPERTY_RULE__TYPE = 3;
-
- /**
- * The feature id for the '<em><b>Type Undefined</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROPERTY_RULE__TYPE_UNDEFINED = 4;
-
- /**
- * The feature id for the '<em><b>Multiplicity</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROPERTY_RULE__MULTIPLICITY = 5;
-
- /**
- * The feature id for the '<em><b>Modifiers</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROPERTY_RULE__MODIFIERS = 6;
-
- /**
- * The feature id for the '<em><b>Default</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROPERTY_RULE__DEFAULT = 7;
-
- /**
- * The number of structural features of the '<em>Property Rule</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROPERTY_RULE_FEATURE_COUNT = 8;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl <em>Visibility Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getVisibilityRule()
- * @generated
- */
- int VISIBILITY_RULE = 1;
-
- /**
- * The feature id for the '<em><b>Visibility</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int VISIBILITY_RULE__VISIBILITY = 0;
-
- /**
- * The number of structural features of the '<em>Visibility Rule</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int VISIBILITY_RULE_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl <em>Type Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getTypeRule()
- * @generated
- */
- int TYPE_RULE = 2;
-
- /**
- * The feature id for the '<em><b>Path</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int TYPE_RULE__PATH = 0;
-
- /**
- * The feature id for the '<em><b>Type</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int TYPE_RULE__TYPE = 1;
-
- /**
- * The number of structural features of the '<em>Type Rule</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int TYPE_RULE_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl <em>Qualified Name</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getQualifiedName()
- * @generated
- */
- int QUALIFIED_NAME = 3;
-
- /**
- * The feature id for the '<em><b>Path</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int QUALIFIED_NAME__PATH = 0;
-
- /**
- * The feature id for the '<em><b>Remaining</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int QUALIFIED_NAME__REMAINING = 1;
-
- /**
- * The number of structural features of the '<em>Qualified Name</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int QUALIFIED_NAME_FEATURE_COUNT = 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl <em>Multiplicity Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getMultiplicityRule()
- * @generated
- */
- int MULTIPLICITY_RULE = 4;
-
- /**
- * The feature id for the '<em><b>Bounds</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MULTIPLICITY_RULE__BOUNDS = 0;
-
- /**
- * The number of structural features of the '<em>Multiplicity Rule</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MULTIPLICITY_RULE_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl <em>Bound Specification</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBoundSpecification()
- * @generated
- */
- int BOUND_SPECIFICATION = 5;
-
- /**
- * The feature id for the '<em><b>Value</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int BOUND_SPECIFICATION__VALUE = 0;
-
- /**
- * The number of structural features of the '<em>Bound Specification</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int BOUND_SPECIFICATION_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl <em>Modifiers Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifiersRule()
- * @generated
- */
- int MODIFIERS_RULE = 6;
-
- /**
- * The feature id for the '<em><b>Values</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODIFIERS_RULE__VALUES = 0;
-
- /**
- * The number of structural features of the '<em>Modifiers Rule</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODIFIERS_RULE_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl <em>Modifier Specification</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifierSpecification()
- * @generated
- */
- int MODIFIER_SPECIFICATION = 7;
-
- /**
- * The feature id for the '<em><b>Value</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODIFIER_SPECIFICATION__VALUE = 0;
-
- /**
- * The feature id for the '<em><b>Redefines</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODIFIER_SPECIFICATION__REDEFINES = 1;
-
- /**
- * The feature id for the '<em><b>Subsets</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODIFIER_SPECIFICATION__SUBSETS = 2;
-
- /**
- * The number of structural features of the '<em>Modifier Specification</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MODIFIER_SPECIFICATION_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl <em>Redefines Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getRedefinesRule()
- * @generated
- */
- int REDEFINES_RULE = 8;
-
- /**
- * The feature id for the '<em><b>Property</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REDEFINES_RULE__PROPERTY = 0;
-
- /**
- * The number of structural features of the '<em>Redefines Rule</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REDEFINES_RULE_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl <em>Subsets Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getSubsetsRule()
- * @generated
- */
- int SUBSETS_RULE = 9;
-
- /**
- * The feature id for the '<em><b>Property</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int SUBSETS_RULE__PROPERTY = 0;
-
- /**
- * The number of structural features of the '<em>Subsets Rule</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int SUBSETS_RULE_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl <em>Default Value Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getDefaultValueRule()
- * @generated
- */
- int DEFAULT_VALUE_RULE = 10;
-
- /**
- * The feature id for the '<em><b>Default</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEFAULT_VALUE_RULE__DEFAULT = 0;
-
- /**
- * The number of structural features of the '<em>Default Value Rule</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEFAULT_VALUE_RULE_FEATURE_COUNT = 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ValueImpl <em>Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ValueImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getValue()
- * @generated
- */
- int VALUE = 11;
-
- /**
- * The number of structural features of the '<em>Value</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int VALUE_FEATURE_COUNT = 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl <em>Int Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getIntValue()
- * @generated
- */
- int INT_VALUE = 12;
-
- /**
- * The feature id for the '<em><b>Literal Integer</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int INT_VALUE__LITERAL_INTEGER = VALUE_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Int Value</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int INT_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl <em>String Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getStringValue()
- * @generated
- */
- int STRING_VALUE = 13;
-
- /**
- * The feature id for the '<em><b>Literal String</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int STRING_VALUE__LITERAL_STRING = VALUE_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>String Value</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int STRING_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl <em>Boolean Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBooleanValue()
- * @generated
- */
- int BOOLEAN_VALUE = 14;
-
- /**
- * The feature id for the '<em><b>Literal Boolean</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int BOOLEAN_VALUE__LITERAL_BOOLEAN = VALUE_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Boolean Value</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int BOOLEAN_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl <em>Real Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getRealValue()
- * @generated
- */
- int REAL_VALUE = 15;
-
- /**
- * The feature id for the '<em><b>Integer</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REAL_VALUE__INTEGER = VALUE_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Fraction</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REAL_VALUE__FRACTION = VALUE_FEATURE_COUNT + 1;
-
- /**
- * The number of structural features of the '<em>Real Value</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int REAL_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NullValueImpl <em>Null Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NullValueImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getNullValue()
- * @generated
- */
- int NULL_VALUE = 16;
-
- /**
- * The number of structural features of the '<em>Null Value</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NULL_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NoValueImpl <em>No Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NoValueImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getNoValue()
- * @generated
- */
- int NO_VALUE = 17;
-
- /**
- * The number of structural features of the '<em>No Value</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int NO_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind <em>Visibility Kind</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getVisibilityKind()
- * @generated
- */
- int VISIBILITY_KIND = 18;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind <em>Modifier Kind</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifierKind()
- * @generated
- */
- int MODIFIER_KIND = 19;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals <em>Boolean Literals</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBooleanLiterals()
- * @generated
- */
- int BOOLEAN_LITERALS = 20;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule <em>Property Rule</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Property Rule</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule
- * @generated
- */
- EClass getPropertyRule();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getVisibility <em>Visibility</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Visibility</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getVisibility()
- * @see #getPropertyRule()
- * @generated
- */
- EReference getPropertyRule_Visibility();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isDerived <em>Derived</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Derived</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isDerived()
- * @see #getPropertyRule()
- * @generated
- */
- EAttribute getPropertyRule_Derived();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getName()
- * @see #getPropertyRule()
- * @generated
- */
- EAttribute getPropertyRule_Name();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getType <em>Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Type</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getType()
- * @see #getPropertyRule()
- * @generated
- */
- EReference getPropertyRule_Type();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isTypeUndefined <em>Type Undefined</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Type Undefined</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isTypeUndefined()
- * @see #getPropertyRule()
- * @generated
- */
- EAttribute getPropertyRule_TypeUndefined();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getMultiplicity <em>Multiplicity</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Multiplicity</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getMultiplicity()
- * @see #getPropertyRule()
- * @generated
- */
- EReference getPropertyRule_Multiplicity();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getModifiers <em>Modifiers</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Modifiers</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getModifiers()
- * @see #getPropertyRule()
- * @generated
- */
- EReference getPropertyRule_Modifiers();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getDefault <em>Default</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Default</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getDefault()
- * @see #getPropertyRule()
- * @generated
- */
- EReference getPropertyRule_Default();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule <em>Visibility Rule</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Visibility Rule</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule
- * @generated
- */
- EClass getVisibilityRule();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule#getVisibility <em>Visibility</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Visibility</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule#getVisibility()
- * @see #getVisibilityRule()
- * @generated
- */
- EAttribute getVisibilityRule_Visibility();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule <em>Type Rule</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Type Rule</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule
- * @generated
- */
- EClass getTypeRule();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getPath <em>Path</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Path</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getPath()
- * @see #getTypeRule()
- * @generated
- */
- EReference getTypeRule_Path();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getType <em>Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the reference '<em>Type</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getType()
- * @see #getTypeRule()
- * @generated
- */
- EReference getTypeRule_Type();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName <em>Qualified Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Qualified Name</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName
- * @generated
- */
- EClass getQualifiedName();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getPath <em>Path</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the reference '<em>Path</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getPath()
- * @see #getQualifiedName()
- * @generated
- */
- EReference getQualifiedName_Path();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getRemaining <em>Remaining</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Remaining</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getRemaining()
- * @see #getQualifiedName()
- * @generated
- */
- EReference getQualifiedName_Remaining();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule <em>Multiplicity Rule</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Multiplicity Rule</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule
- * @generated
- */
- EClass getMultiplicityRule();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule#getBounds <em>Bounds</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference list '<em>Bounds</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule#getBounds()
- * @see #getMultiplicityRule()
- * @generated
- */
- EReference getMultiplicityRule_Bounds();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification <em>Bound Specification</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Bound Specification</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification
- * @generated
- */
- EClass getBoundSpecification();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification#getValue <em>Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Value</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification#getValue()
- * @see #getBoundSpecification()
- * @generated
- */
- EAttribute getBoundSpecification_Value();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule <em>Modifiers Rule</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Modifiers Rule</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule
- * @generated
- */
- EClass getModifiersRule();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule#getValues <em>Values</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference list '<em>Values</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule#getValues()
- * @see #getModifiersRule()
- * @generated
- */
- EReference getModifiersRule_Values();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification <em>Modifier Specification</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Modifier Specification</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification
- * @generated
- */
- EClass getModifierSpecification();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getValue <em>Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Value</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getValue()
- * @see #getModifierSpecification()
- * @generated
- */
- EAttribute getModifierSpecification_Value();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getRedefines <em>Redefines</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Redefines</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getRedefines()
- * @see #getModifierSpecification()
- * @generated
- */
- EReference getModifierSpecification_Redefines();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getSubsets <em>Subsets</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Subsets</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getSubsets()
- * @see #getModifierSpecification()
- * @generated
- */
- EReference getModifierSpecification_Subsets();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule <em>Redefines Rule</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Redefines Rule</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule
- * @generated
- */
- EClass getRedefinesRule();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule#getProperty <em>Property</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the reference '<em>Property</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule#getProperty()
- * @see #getRedefinesRule()
- * @generated
- */
- EReference getRedefinesRule_Property();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule <em>Subsets Rule</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Subsets Rule</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule
- * @generated
- */
- EClass getSubsetsRule();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule#getProperty <em>Property</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the reference '<em>Property</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule#getProperty()
- * @see #getSubsetsRule()
- * @generated
- */
- EReference getSubsetsRule_Property();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule <em>Default Value Rule</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Default Value Rule</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule
- * @generated
- */
- EClass getDefaultValueRule();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule#getDefault <em>Default</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Default</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule#getDefault()
- * @see #getDefaultValueRule()
- * @generated
- */
- EReference getDefaultValueRule_Default();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value <em>Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Value</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value
- * @generated
- */
- EClass getValue();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue <em>Int Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Int Value</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue
- * @generated
- */
- EClass getIntValue();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue#getLiteralInteger <em>Literal Integer</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Literal Integer</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue#getLiteralInteger()
- * @see #getIntValue()
- * @generated
- */
- EAttribute getIntValue_LiteralInteger();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue <em>String Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>String Value</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue
- * @generated
- */
- EClass getStringValue();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue#getLiteralString <em>Literal String</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Literal String</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue#getLiteralString()
- * @see #getStringValue()
- * @generated
- */
- EAttribute getStringValue_LiteralString();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue <em>Boolean Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Boolean Value</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue
- * @generated
- */
- EClass getBooleanValue();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue#getLiteralBoolean <em>Literal Boolean</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Literal Boolean</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue#getLiteralBoolean()
- * @see #getBooleanValue()
- * @generated
- */
- EAttribute getBooleanValue_LiteralBoolean();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue <em>Real Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Real Value</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue
- * @generated
- */
- EClass getRealValue();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getInteger <em>Integer</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Integer</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getInteger()
- * @see #getRealValue()
- * @generated
- */
- EAttribute getRealValue_Integer();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getFraction <em>Fraction</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Fraction</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getFraction()
- * @see #getRealValue()
- * @generated
- */
- EAttribute getRealValue_Fraction();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue <em>Null Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Null Value</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue
- * @generated
- */
- EClass getNullValue();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue <em>No Value</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>No Value</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue
- * @generated
- */
- EClass getNoValue();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind <em>Visibility Kind</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for enum '<em>Visibility Kind</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind
- * @generated
- */
- EEnum getVisibilityKind();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind <em>Modifier Kind</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for enum '<em>Modifier Kind</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind
- * @generated
- */
- EEnum getModifierKind();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals <em>Boolean Literals</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for enum '<em>Boolean Literals</em>'.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals
- * @generated
- */
- EEnum getBooleanLiterals();
-
- /**
- * Returns the factory that creates the instances of the model.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the factory that creates the instances of the model.
- * @generated
- */
- UmlPropertyFactory getUmlPropertyFactory();
-
- /**
- * <!-- begin-user-doc -->
- * Defines literals for the meta objects that represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- *
- * @generated
- */
- interface Literals
- {
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl <em>Property Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getPropertyRule()
- * @generated
- */
- EClass PROPERTY_RULE = eINSTANCE.getPropertyRule();
-
- /**
- * The meta object literal for the '<em><b>Visibility</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference PROPERTY_RULE__VISIBILITY = eINSTANCE.getPropertyRule_Visibility();
-
- /**
- * The meta object literal for the '<em><b>Derived</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute PROPERTY_RULE__DERIVED = eINSTANCE.getPropertyRule_Derived();
-
- /**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute PROPERTY_RULE__NAME = eINSTANCE.getPropertyRule_Name();
-
- /**
- * The meta object literal for the '<em><b>Type</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference PROPERTY_RULE__TYPE = eINSTANCE.getPropertyRule_Type();
-
- /**
- * The meta object literal for the '<em><b>Type Undefined</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute PROPERTY_RULE__TYPE_UNDEFINED = eINSTANCE.getPropertyRule_TypeUndefined();
-
- /**
- * The meta object literal for the '<em><b>Multiplicity</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference PROPERTY_RULE__MULTIPLICITY = eINSTANCE.getPropertyRule_Multiplicity();
-
- /**
- * The meta object literal for the '<em><b>Modifiers</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference PROPERTY_RULE__MODIFIERS = eINSTANCE.getPropertyRule_Modifiers();
-
- /**
- * The meta object literal for the '<em><b>Default</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference PROPERTY_RULE__DEFAULT = eINSTANCE.getPropertyRule_Default();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl <em>Visibility Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getVisibilityRule()
- * @generated
- */
- EClass VISIBILITY_RULE = eINSTANCE.getVisibilityRule();
-
- /**
- * The meta object literal for the '<em><b>Visibility</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute VISIBILITY_RULE__VISIBILITY = eINSTANCE.getVisibilityRule_Visibility();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl <em>Type Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getTypeRule()
- * @generated
- */
- EClass TYPE_RULE = eINSTANCE.getTypeRule();
-
- /**
- * The meta object literal for the '<em><b>Path</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference TYPE_RULE__PATH = eINSTANCE.getTypeRule_Path();
-
- /**
- * The meta object literal for the '<em><b>Type</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference TYPE_RULE__TYPE = eINSTANCE.getTypeRule_Type();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl <em>Qualified Name</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getQualifiedName()
- * @generated
- */
- EClass QUALIFIED_NAME = eINSTANCE.getQualifiedName();
-
- /**
- * The meta object literal for the '<em><b>Path</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference QUALIFIED_NAME__PATH = eINSTANCE.getQualifiedName_Path();
-
- /**
- * The meta object literal for the '<em><b>Remaining</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference QUALIFIED_NAME__REMAINING = eINSTANCE.getQualifiedName_Remaining();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl <em>Multiplicity Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getMultiplicityRule()
- * @generated
- */
- EClass MULTIPLICITY_RULE = eINSTANCE.getMultiplicityRule();
-
- /**
- * The meta object literal for the '<em><b>Bounds</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference MULTIPLICITY_RULE__BOUNDS = eINSTANCE.getMultiplicityRule_Bounds();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl <em>Bound Specification</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBoundSpecification()
- * @generated
- */
- EClass BOUND_SPECIFICATION = eINSTANCE.getBoundSpecification();
-
- /**
- * The meta object literal for the '<em><b>Value</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute BOUND_SPECIFICATION__VALUE = eINSTANCE.getBoundSpecification_Value();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl <em>Modifiers Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifiersRule()
- * @generated
- */
- EClass MODIFIERS_RULE = eINSTANCE.getModifiersRule();
-
- /**
- * The meta object literal for the '<em><b>Values</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference MODIFIERS_RULE__VALUES = eINSTANCE.getModifiersRule_Values();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl <em>Modifier Specification</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifierSpecification()
- * @generated
- */
- EClass MODIFIER_SPECIFICATION = eINSTANCE.getModifierSpecification();
-
- /**
- * The meta object literal for the '<em><b>Value</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute MODIFIER_SPECIFICATION__VALUE = eINSTANCE.getModifierSpecification_Value();
-
- /**
- * The meta object literal for the '<em><b>Redefines</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference MODIFIER_SPECIFICATION__REDEFINES = eINSTANCE.getModifierSpecification_Redefines();
-
- /**
- * The meta object literal for the '<em><b>Subsets</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference MODIFIER_SPECIFICATION__SUBSETS = eINSTANCE.getModifierSpecification_Subsets();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl <em>Redefines Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getRedefinesRule()
- * @generated
- */
- EClass REDEFINES_RULE = eINSTANCE.getRedefinesRule();
-
- /**
- * The meta object literal for the '<em><b>Property</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference REDEFINES_RULE__PROPERTY = eINSTANCE.getRedefinesRule_Property();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl <em>Subsets Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getSubsetsRule()
- * @generated
- */
- EClass SUBSETS_RULE = eINSTANCE.getSubsetsRule();
-
- /**
- * The meta object literal for the '<em><b>Property</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference SUBSETS_RULE__PROPERTY = eINSTANCE.getSubsetsRule_Property();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl <em>Default Value Rule</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getDefaultValueRule()
- * @generated
- */
- EClass DEFAULT_VALUE_RULE = eINSTANCE.getDefaultValueRule();
-
- /**
- * The meta object literal for the '<em><b>Default</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference DEFAULT_VALUE_RULE__DEFAULT = eINSTANCE.getDefaultValueRule_Default();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ValueImpl <em>Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ValueImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getValue()
- * @generated
- */
- EClass VALUE = eINSTANCE.getValue();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl <em>Int Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getIntValue()
- * @generated
- */
- EClass INT_VALUE = eINSTANCE.getIntValue();
-
- /**
- * The meta object literal for the '<em><b>Literal Integer</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute INT_VALUE__LITERAL_INTEGER = eINSTANCE.getIntValue_LiteralInteger();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl <em>String Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getStringValue()
- * @generated
- */
- EClass STRING_VALUE = eINSTANCE.getStringValue();
-
- /**
- * The meta object literal for the '<em><b>Literal String</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute STRING_VALUE__LITERAL_STRING = eINSTANCE.getStringValue_LiteralString();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl <em>Boolean Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBooleanValue()
- * @generated
- */
- EClass BOOLEAN_VALUE = eINSTANCE.getBooleanValue();
-
- /**
- * The meta object literal for the '<em><b>Literal Boolean</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute BOOLEAN_VALUE__LITERAL_BOOLEAN = eINSTANCE.getBooleanValue_LiteralBoolean();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl <em>Real Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getRealValue()
- * @generated
- */
- EClass REAL_VALUE = eINSTANCE.getRealValue();
-
- /**
- * The meta object literal for the '<em><b>Integer</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute REAL_VALUE__INTEGER = eINSTANCE.getRealValue_Integer();
-
- /**
- * The meta object literal for the '<em><b>Fraction</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute REAL_VALUE__FRACTION = eINSTANCE.getRealValue_Fraction();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NullValueImpl <em>Null Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NullValueImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getNullValue()
- * @generated
- */
- EClass NULL_VALUE = eINSTANCE.getNullValue();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NoValueImpl <em>No Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NoValueImpl
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getNoValue()
- * @generated
- */
- EClass NO_VALUE = eINSTANCE.getNoValue();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind <em>Visibility Kind</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getVisibilityKind()
- * @generated
- */
- EEnum VISIBILITY_KIND = eINSTANCE.getVisibilityKind();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind <em>Modifier Kind</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifierKind()
- * @generated
- */
- EEnum MODIFIER_KIND = eINSTANCE.getModifierKind();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals <em>Boolean Literals</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBooleanLiterals()
- * @generated
- */
- EEnum BOOLEAN_LITERALS = eINSTANCE.getBooleanLiterals();
-
- }
-
-} // UmlPropertyPackage
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Package</b> for the model.
+ * It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface UmlPropertyPackage extends EPackage
+{
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "umlProperty";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://www.eclipse.org/papyrus/uml/textedit/property/xtext/UmlProperty";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "umlProperty";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ UmlPropertyPackage eINSTANCE = org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl <em>Property Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getPropertyRule()
+ * @generated
+ */
+ int PROPERTY_RULE = 0;
+
+ /**
+ * The feature id for the '<em><b>Visibility</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PROPERTY_RULE__VISIBILITY = 0;
+
+ /**
+ * The feature id for the '<em><b>Derived</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PROPERTY_RULE__DERIVED = 1;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PROPERTY_RULE__NAME = 2;
+
+ /**
+ * The feature id for the '<em><b>Type</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PROPERTY_RULE__TYPE = 3;
+
+ /**
+ * The feature id for the '<em><b>Type Undefined</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PROPERTY_RULE__TYPE_UNDEFINED = 4;
+
+ /**
+ * The feature id for the '<em><b>Multiplicity</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PROPERTY_RULE__MULTIPLICITY = 5;
+
+ /**
+ * The feature id for the '<em><b>Modifiers</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PROPERTY_RULE__MODIFIERS = 6;
+
+ /**
+ * The feature id for the '<em><b>Default</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PROPERTY_RULE__DEFAULT = 7;
+
+ /**
+ * The number of structural features of the '<em>Property Rule</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PROPERTY_RULE_FEATURE_COUNT = 8;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl <em>Visibility Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getVisibilityRule()
+ * @generated
+ */
+ int VISIBILITY_RULE = 1;
+
+ /**
+ * The feature id for the '<em><b>Visibility</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int VISIBILITY_RULE__VISIBILITY = 0;
+
+ /**
+ * The number of structural features of the '<em>Visibility Rule</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int VISIBILITY_RULE_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl <em>Type Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getTypeRule()
+ * @generated
+ */
+ int TYPE_RULE = 2;
+
+ /**
+ * The feature id for the '<em><b>Path</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int TYPE_RULE__PATH = 0;
+
+ /**
+ * The feature id for the '<em><b>Type</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int TYPE_RULE__TYPE = 1;
+
+ /**
+ * The number of structural features of the '<em>Type Rule</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int TYPE_RULE_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl <em>Qualified Name</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getQualifiedName()
+ * @generated
+ */
+ int QUALIFIED_NAME = 3;
+
+ /**
+ * The feature id for the '<em><b>Path</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int QUALIFIED_NAME__PATH = 0;
+
+ /**
+ * The feature id for the '<em><b>Remaining</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int QUALIFIED_NAME__REMAINING = 1;
+
+ /**
+ * The number of structural features of the '<em>Qualified Name</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int QUALIFIED_NAME_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl <em>Multiplicity Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getMultiplicityRule()
+ * @generated
+ */
+ int MULTIPLICITY_RULE = 4;
+
+ /**
+ * The feature id for the '<em><b>Bounds</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_RULE__BOUNDS = 0;
+
+ /**
+ * The number of structural features of the '<em>Multiplicity Rule</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MULTIPLICITY_RULE_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl <em>Bound Specification</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBoundSpecification()
+ * @generated
+ */
+ int BOUND_SPECIFICATION = 5;
+
+ /**
+ * The feature id for the '<em><b>Value</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int BOUND_SPECIFICATION__VALUE = 0;
+
+ /**
+ * The number of structural features of the '<em>Bound Specification</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int BOUND_SPECIFICATION_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl <em>Modifiers Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifiersRule()
+ * @generated
+ */
+ int MODIFIERS_RULE = 6;
+
+ /**
+ * The feature id for the '<em><b>Values</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MODIFIERS_RULE__VALUES = 0;
+
+ /**
+ * The number of structural features of the '<em>Modifiers Rule</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MODIFIERS_RULE_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl <em>Modifier Specification</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifierSpecification()
+ * @generated
+ */
+ int MODIFIER_SPECIFICATION = 7;
+
+ /**
+ * The feature id for the '<em><b>Value</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MODIFIER_SPECIFICATION__VALUE = 0;
+
+ /**
+ * The feature id for the '<em><b>Redefines</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MODIFIER_SPECIFICATION__REDEFINES = 1;
+
+ /**
+ * The feature id for the '<em><b>Subsets</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MODIFIER_SPECIFICATION__SUBSETS = 2;
+
+ /**
+ * The number of structural features of the '<em>Modifier Specification</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MODIFIER_SPECIFICATION_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl <em>Redefines Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getRedefinesRule()
+ * @generated
+ */
+ int REDEFINES_RULE = 8;
+
+ /**
+ * The feature id for the '<em><b>Property</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REDEFINES_RULE__PROPERTY = 0;
+
+ /**
+ * The number of structural features of the '<em>Redefines Rule</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REDEFINES_RULE_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl <em>Subsets Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getSubsetsRule()
+ * @generated
+ */
+ int SUBSETS_RULE = 9;
+
+ /**
+ * The feature id for the '<em><b>Property</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SUBSETS_RULE__PROPERTY = 0;
+
+ /**
+ * The number of structural features of the '<em>Subsets Rule</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SUBSETS_RULE_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl <em>Default Value Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getDefaultValueRule()
+ * @generated
+ */
+ int DEFAULT_VALUE_RULE = 10;
+
+ /**
+ * The feature id for the '<em><b>Default</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DEFAULT_VALUE_RULE__DEFAULT = 0;
+
+ /**
+ * The number of structural features of the '<em>Default Value Rule</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DEFAULT_VALUE_RULE_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ValueImpl <em>Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getValue()
+ * @generated
+ */
+ int VALUE = 11;
+
+ /**
+ * The number of structural features of the '<em>Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int VALUE_FEATURE_COUNT = 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl <em>Int Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getIntValue()
+ * @generated
+ */
+ int INT_VALUE = 12;
+
+ /**
+ * The feature id for the '<em><b>Literal Integer</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int INT_VALUE__LITERAL_INTEGER = VALUE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Int Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int INT_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl <em>String Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getStringValue()
+ * @generated
+ */
+ int STRING_VALUE = 13;
+
+ /**
+ * The feature id for the '<em><b>Literal String</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int STRING_VALUE__LITERAL_STRING = VALUE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>String Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int STRING_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl <em>Boolean Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBooleanValue()
+ * @generated
+ */
+ int BOOLEAN_VALUE = 14;
+
+ /**
+ * The feature id for the '<em><b>Literal Boolean</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int BOOLEAN_VALUE__LITERAL_BOOLEAN = VALUE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Boolean Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int BOOLEAN_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl <em>Real Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getRealValue()
+ * @generated
+ */
+ int REAL_VALUE = 15;
+
+ /**
+ * The feature id for the '<em><b>Integer</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REAL_VALUE__INTEGER = VALUE_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Fraction</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REAL_VALUE__FRACTION = VALUE_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the '<em>Real Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int REAL_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NullValueImpl <em>Null Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NullValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getNullValue()
+ * @generated
+ */
+ int NULL_VALUE = 16;
+
+ /**
+ * The number of structural features of the '<em>Null Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int NULL_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NoValueImpl <em>No Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NoValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getNoValue()
+ * @generated
+ */
+ int NO_VALUE = 17;
+
+ /**
+ * The number of structural features of the '<em>No Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int NO_VALUE_FEATURE_COUNT = VALUE_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind <em>Visibility Kind</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getVisibilityKind()
+ * @generated
+ */
+ int VISIBILITY_KIND = 18;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind <em>Modifier Kind</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifierKind()
+ * @generated
+ */
+ int MODIFIER_KIND = 19;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals <em>Boolean Literals</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBooleanLiterals()
+ * @generated
+ */
+ int BOOLEAN_LITERALS = 20;
+
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule <em>Property Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Property Rule</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule
+ * @generated
+ */
+ EClass getPropertyRule();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getVisibility <em>Visibility</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Visibility</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getVisibility()
+ * @see #getPropertyRule()
+ * @generated
+ */
+ EReference getPropertyRule_Visibility();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isDerived <em>Derived</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Derived</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isDerived()
+ * @see #getPropertyRule()
+ * @generated
+ */
+ EAttribute getPropertyRule_Derived();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getName <em>Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getName()
+ * @see #getPropertyRule()
+ * @generated
+ */
+ EAttribute getPropertyRule_Name();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getType <em>Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Type</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getType()
+ * @see #getPropertyRule()
+ * @generated
+ */
+ EReference getPropertyRule_Type();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isTypeUndefined <em>Type Undefined</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Type Undefined</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#isTypeUndefined()
+ * @see #getPropertyRule()
+ * @generated
+ */
+ EAttribute getPropertyRule_TypeUndefined();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getMultiplicity <em>Multiplicity</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Multiplicity</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getMultiplicity()
+ * @see #getPropertyRule()
+ * @generated
+ */
+ EReference getPropertyRule_Multiplicity();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getModifiers <em>Modifiers</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Modifiers</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getModifiers()
+ * @see #getPropertyRule()
+ * @generated
+ */
+ EReference getPropertyRule_Modifiers();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getDefault <em>Default</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Default</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule#getDefault()
+ * @see #getPropertyRule()
+ * @generated
+ */
+ EReference getPropertyRule_Default();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule <em>Visibility Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Visibility Rule</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule
+ * @generated
+ */
+ EClass getVisibilityRule();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule#getVisibility <em>Visibility</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Visibility</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule#getVisibility()
+ * @see #getVisibilityRule()
+ * @generated
+ */
+ EAttribute getVisibilityRule_Visibility();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule <em>Type Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Type Rule</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule
+ * @generated
+ */
+ EClass getTypeRule();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getPath <em>Path</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Path</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getPath()
+ * @see #getTypeRule()
+ * @generated
+ */
+ EReference getTypeRule_Path();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getType <em>Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Type</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule#getType()
+ * @see #getTypeRule()
+ * @generated
+ */
+ EReference getTypeRule_Type();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName <em>Qualified Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Qualified Name</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName
+ * @generated
+ */
+ EClass getQualifiedName();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getPath <em>Path</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Path</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getPath()
+ * @see #getQualifiedName()
+ * @generated
+ */
+ EReference getQualifiedName_Path();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getRemaining <em>Remaining</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Remaining</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName#getRemaining()
+ * @see #getQualifiedName()
+ * @generated
+ */
+ EReference getQualifiedName_Remaining();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule <em>Multiplicity Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Multiplicity Rule</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule
+ * @generated
+ */
+ EClass getMultiplicityRule();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule#getBounds <em>Bounds</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Bounds</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule#getBounds()
+ * @see #getMultiplicityRule()
+ * @generated
+ */
+ EReference getMultiplicityRule_Bounds();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification <em>Bound Specification</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Bound Specification</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification
+ * @generated
+ */
+ EClass getBoundSpecification();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification#getValue <em>Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Value</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification#getValue()
+ * @see #getBoundSpecification()
+ * @generated
+ */
+ EAttribute getBoundSpecification_Value();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule <em>Modifiers Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Modifiers Rule</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule
+ * @generated
+ */
+ EClass getModifiersRule();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule#getValues <em>Values</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Values</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule#getValues()
+ * @see #getModifiersRule()
+ * @generated
+ */
+ EReference getModifiersRule_Values();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification <em>Modifier Specification</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Modifier Specification</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification
+ * @generated
+ */
+ EClass getModifierSpecification();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getValue <em>Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Value</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getValue()
+ * @see #getModifierSpecification()
+ * @generated
+ */
+ EAttribute getModifierSpecification_Value();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getRedefines <em>Redefines</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Redefines</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getRedefines()
+ * @see #getModifierSpecification()
+ * @generated
+ */
+ EReference getModifierSpecification_Redefines();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getSubsets <em>Subsets</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Subsets</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification#getSubsets()
+ * @see #getModifierSpecification()
+ * @generated
+ */
+ EReference getModifierSpecification_Subsets();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule <em>Redefines Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Redefines Rule</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule
+ * @generated
+ */
+ EClass getRedefinesRule();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule#getProperty <em>Property</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Property</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule#getProperty()
+ * @see #getRedefinesRule()
+ * @generated
+ */
+ EReference getRedefinesRule_Property();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule <em>Subsets Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Subsets Rule</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule
+ * @generated
+ */
+ EClass getSubsetsRule();
+
+ /**
+ * Returns the meta object for the reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule#getProperty <em>Property</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the reference '<em>Property</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule#getProperty()
+ * @see #getSubsetsRule()
+ * @generated
+ */
+ EReference getSubsetsRule_Property();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule <em>Default Value Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Default Value Rule</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule
+ * @generated
+ */
+ EClass getDefaultValueRule();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule#getDefault <em>Default</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Default</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule#getDefault()
+ * @see #getDefaultValueRule()
+ * @generated
+ */
+ EReference getDefaultValueRule_Default();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value <em>Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Value</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value
+ * @generated
+ */
+ EClass getValue();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue <em>Int Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Int Value</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue
+ * @generated
+ */
+ EClass getIntValue();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue#getLiteralInteger <em>Literal Integer</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Literal Integer</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue#getLiteralInteger()
+ * @see #getIntValue()
+ * @generated
+ */
+ EAttribute getIntValue_LiteralInteger();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue <em>String Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>String Value</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue
+ * @generated
+ */
+ EClass getStringValue();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue#getLiteralString <em>Literal String</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Literal String</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue#getLiteralString()
+ * @see #getStringValue()
+ * @generated
+ */
+ EAttribute getStringValue_LiteralString();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue <em>Boolean Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Boolean Value</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue
+ * @generated
+ */
+ EClass getBooleanValue();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue#getLiteralBoolean <em>Literal Boolean</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Literal Boolean</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue#getLiteralBoolean()
+ * @see #getBooleanValue()
+ * @generated
+ */
+ EAttribute getBooleanValue_LiteralBoolean();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue <em>Real Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Real Value</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue
+ * @generated
+ */
+ EClass getRealValue();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getInteger <em>Integer</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Integer</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getInteger()
+ * @see #getRealValue()
+ * @generated
+ */
+ EAttribute getRealValue_Integer();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getFraction <em>Fraction</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Fraction</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue#getFraction()
+ * @see #getRealValue()
+ * @generated
+ */
+ EAttribute getRealValue_Fraction();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue <em>Null Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Null Value</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue
+ * @generated
+ */
+ EClass getNullValue();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue <em>No Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>No Value</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue
+ * @generated
+ */
+ EClass getNoValue();
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind <em>Visibility Kind</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>Visibility Kind</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind
+ * @generated
+ */
+ EEnum getVisibilityKind();
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind <em>Modifier Kind</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>Modifier Kind</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind
+ * @generated
+ */
+ EEnum getModifierKind();
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals <em>Boolean Literals</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>Boolean Literals</em>'.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals
+ * @generated
+ */
+ EEnum getBooleanLiterals();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ UmlPropertyFactory getUmlPropertyFactory();
+
+ /**
+ * <!-- begin-user-doc -->
+ * Defines literals for the meta objects that represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ interface Literals
+ {
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl <em>Property Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getPropertyRule()
+ * @generated
+ */
+ EClass PROPERTY_RULE = eINSTANCE.getPropertyRule();
+
+ /**
+ * The meta object literal for the '<em><b>Visibility</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference PROPERTY_RULE__VISIBILITY = eINSTANCE.getPropertyRule_Visibility();
+
+ /**
+ * The meta object literal for the '<em><b>Derived</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute PROPERTY_RULE__DERIVED = eINSTANCE.getPropertyRule_Derived();
+
+ /**
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute PROPERTY_RULE__NAME = eINSTANCE.getPropertyRule_Name();
+
+ /**
+ * The meta object literal for the '<em><b>Type</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference PROPERTY_RULE__TYPE = eINSTANCE.getPropertyRule_Type();
+
+ /**
+ * The meta object literal for the '<em><b>Type Undefined</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute PROPERTY_RULE__TYPE_UNDEFINED = eINSTANCE.getPropertyRule_TypeUndefined();
+
+ /**
+ * The meta object literal for the '<em><b>Multiplicity</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference PROPERTY_RULE__MULTIPLICITY = eINSTANCE.getPropertyRule_Multiplicity();
+
+ /**
+ * The meta object literal for the '<em><b>Modifiers</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference PROPERTY_RULE__MODIFIERS = eINSTANCE.getPropertyRule_Modifiers();
+
+ /**
+ * The meta object literal for the '<em><b>Default</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference PROPERTY_RULE__DEFAULT = eINSTANCE.getPropertyRule_Default();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl <em>Visibility Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getVisibilityRule()
+ * @generated
+ */
+ EClass VISIBILITY_RULE = eINSTANCE.getVisibilityRule();
+
+ /**
+ * The meta object literal for the '<em><b>Visibility</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute VISIBILITY_RULE__VISIBILITY = eINSTANCE.getVisibilityRule_Visibility();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl <em>Type Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getTypeRule()
+ * @generated
+ */
+ EClass TYPE_RULE = eINSTANCE.getTypeRule();
+
+ /**
+ * The meta object literal for the '<em><b>Path</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference TYPE_RULE__PATH = eINSTANCE.getTypeRule_Path();
+
+ /**
+ * The meta object literal for the '<em><b>Type</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference TYPE_RULE__TYPE = eINSTANCE.getTypeRule_Type();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl <em>Qualified Name</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getQualifiedName()
+ * @generated
+ */
+ EClass QUALIFIED_NAME = eINSTANCE.getQualifiedName();
+
+ /**
+ * The meta object literal for the '<em><b>Path</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference QUALIFIED_NAME__PATH = eINSTANCE.getQualifiedName_Path();
+
+ /**
+ * The meta object literal for the '<em><b>Remaining</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference QUALIFIED_NAME__REMAINING = eINSTANCE.getQualifiedName_Remaining();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl <em>Multiplicity Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getMultiplicityRule()
+ * @generated
+ */
+ EClass MULTIPLICITY_RULE = eINSTANCE.getMultiplicityRule();
+
+ /**
+ * The meta object literal for the '<em><b>Bounds</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference MULTIPLICITY_RULE__BOUNDS = eINSTANCE.getMultiplicityRule_Bounds();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl <em>Bound Specification</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBoundSpecification()
+ * @generated
+ */
+ EClass BOUND_SPECIFICATION = eINSTANCE.getBoundSpecification();
+
+ /**
+ * The meta object literal for the '<em><b>Value</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute BOUND_SPECIFICATION__VALUE = eINSTANCE.getBoundSpecification_Value();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl <em>Modifiers Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifiersRule()
+ * @generated
+ */
+ EClass MODIFIERS_RULE = eINSTANCE.getModifiersRule();
+
+ /**
+ * The meta object literal for the '<em><b>Values</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference MODIFIERS_RULE__VALUES = eINSTANCE.getModifiersRule_Values();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl <em>Modifier Specification</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifierSpecification()
+ * @generated
+ */
+ EClass MODIFIER_SPECIFICATION = eINSTANCE.getModifierSpecification();
+
+ /**
+ * The meta object literal for the '<em><b>Value</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute MODIFIER_SPECIFICATION__VALUE = eINSTANCE.getModifierSpecification_Value();
+
+ /**
+ * The meta object literal for the '<em><b>Redefines</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference MODIFIER_SPECIFICATION__REDEFINES = eINSTANCE.getModifierSpecification_Redefines();
+
+ /**
+ * The meta object literal for the '<em><b>Subsets</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference MODIFIER_SPECIFICATION__SUBSETS = eINSTANCE.getModifierSpecification_Subsets();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl <em>Redefines Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getRedefinesRule()
+ * @generated
+ */
+ EClass REDEFINES_RULE = eINSTANCE.getRedefinesRule();
+
+ /**
+ * The meta object literal for the '<em><b>Property</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference REDEFINES_RULE__PROPERTY = eINSTANCE.getRedefinesRule_Property();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl <em>Subsets Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getSubsetsRule()
+ * @generated
+ */
+ EClass SUBSETS_RULE = eINSTANCE.getSubsetsRule();
+
+ /**
+ * The meta object literal for the '<em><b>Property</b></em>' reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference SUBSETS_RULE__PROPERTY = eINSTANCE.getSubsetsRule_Property();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl <em>Default Value Rule</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getDefaultValueRule()
+ * @generated
+ */
+ EClass DEFAULT_VALUE_RULE = eINSTANCE.getDefaultValueRule();
+
+ /**
+ * The meta object literal for the '<em><b>Default</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DEFAULT_VALUE_RULE__DEFAULT = eINSTANCE.getDefaultValueRule_Default();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ValueImpl <em>Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getValue()
+ * @generated
+ */
+ EClass VALUE = eINSTANCE.getValue();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl <em>Int Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getIntValue()
+ * @generated
+ */
+ EClass INT_VALUE = eINSTANCE.getIntValue();
+
+ /**
+ * The meta object literal for the '<em><b>Literal Integer</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute INT_VALUE__LITERAL_INTEGER = eINSTANCE.getIntValue_LiteralInteger();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl <em>String Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getStringValue()
+ * @generated
+ */
+ EClass STRING_VALUE = eINSTANCE.getStringValue();
+
+ /**
+ * The meta object literal for the '<em><b>Literal String</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute STRING_VALUE__LITERAL_STRING = eINSTANCE.getStringValue_LiteralString();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl <em>Boolean Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBooleanValue()
+ * @generated
+ */
+ EClass BOOLEAN_VALUE = eINSTANCE.getBooleanValue();
+
+ /**
+ * The meta object literal for the '<em><b>Literal Boolean</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute BOOLEAN_VALUE__LITERAL_BOOLEAN = eINSTANCE.getBooleanValue_LiteralBoolean();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl <em>Real Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getRealValue()
+ * @generated
+ */
+ EClass REAL_VALUE = eINSTANCE.getRealValue();
+
+ /**
+ * The meta object literal for the '<em><b>Integer</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute REAL_VALUE__INTEGER = eINSTANCE.getRealValue_Integer();
+
+ /**
+ * The meta object literal for the '<em><b>Fraction</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute REAL_VALUE__FRACTION = eINSTANCE.getRealValue_Fraction();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NullValueImpl <em>Null Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NullValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getNullValue()
+ * @generated
+ */
+ EClass NULL_VALUE = eINSTANCE.getNullValue();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NoValueImpl <em>No Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.NoValueImpl
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getNoValue()
+ * @generated
+ */
+ EClass NO_VALUE = eINSTANCE.getNoValue();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind <em>Visibility Kind</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getVisibilityKind()
+ * @generated
+ */
+ EEnum VISIBILITY_KIND = eINSTANCE.getVisibilityKind();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind <em>Modifier Kind</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getModifierKind()
+ * @generated
+ */
+ EEnum MODIFIER_KIND = eINSTANCE.getModifierKind();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals <em>Boolean Literals</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.UmlPropertyPackageImpl#getBooleanLiterals()
+ * @generated
+ */
+ EEnum BOOLEAN_LITERALS = eINSTANCE.getBooleanLiterals();
+
+ }
+
+} //UmlPropertyPackage
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/VisibilityKind.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/VisibilityKind.java
index 7c1c2362abd..6d47ab192d7 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/VisibilityKind.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/VisibilityKind.java
@@ -1,299 +1,283 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.Enumerator;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the literals of the enumeration '<em><b>Visibility Kind</b></em>',
- * and utility methods for working with them.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getVisibilityKind()
- * @model
- * @generated
- */
-public enum VisibilityKind implements Enumerator
-{
- /**
- * The '<em><b>Public</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #PUBLIC_VALUE
- * @generated
- * @ordered
- */
- PUBLIC(0, "public", "+"),
-
- /**
- * The '<em><b>Private</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #PRIVATE_VALUE
- * @generated
- * @ordered
- */
- PRIVATE(1, "private", "-"),
-
- /**
- * The '<em><b>Protected</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #PROTECTED_VALUE
- * @generated
- * @ordered
- */
- PROTECTED(2, "protected", "#"),
-
- /**
- * The '<em><b>Package</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #PACKAGE_VALUE
- * @generated
- * @ordered
- */
- PACKAGE(3, "package", "~");
-
- /**
- * The '<em><b>Public</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Public</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #PUBLIC
- * @model name="public" literal="+"
- * @generated
- * @ordered
- */
- public static final int PUBLIC_VALUE = 0;
-
- /**
- * The '<em><b>Private</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Private</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #PRIVATE
- * @model name="private" literal="-"
- * @generated
- * @ordered
- */
- public static final int PRIVATE_VALUE = 1;
-
- /**
- * The '<em><b>Protected</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Protected</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #PROTECTED
- * @model name="protected" literal="#"
- * @generated
- * @ordered
- */
- public static final int PROTECTED_VALUE = 2;
-
- /**
- * The '<em><b>Package</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Package</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #PACKAGE
- * @model name="package" literal="~"
- * @generated
- * @ordered
- */
- public static final int PACKAGE_VALUE = 3;
-
- /**
- * An array of all the '<em><b>Visibility Kind</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private static final VisibilityKind[] VALUES_ARRAY =
- new VisibilityKind[]
- {
- PUBLIC,
- PRIVATE,
- PROTECTED,
- PACKAGE,
- };
-
- /**
- * A public read-only list of all the '<em><b>Visibility Kind</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static final List<VisibilityKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static VisibilityKind get(String literal)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- VisibilityKind result = VALUES_ARRAY[i];
- if (result.toString().equals(literal))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static VisibilityKind getByName(String name)
- {
- for (int i = 0; i < VALUES_ARRAY.length; ++i)
- {
- VisibilityKind result = VALUES_ARRAY[i];
- if (result.getName().equals(name))
- {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static VisibilityKind get(int value)
- {
- switch (value)
- {
- case PUBLIC_VALUE:
- return PUBLIC;
- case PRIVATE_VALUE:
- return PRIVATE;
- case PROTECTED_VALUE:
- return PROTECTED;
- case PACKAGE_VALUE:
- return PACKAGE;
- }
- return null;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private final int value;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private final String name;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private final String literal;
-
- /**
- * Only this class can construct instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private VisibilityKind(int value, String name, String literal)
- {
- this.value = value;
- this.name = name;
- this.literal = literal;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public int getValue()
- {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getLiteral()
- {
- return literal;
- }
-
- /**
- * Returns the literal value of the enumerator, which is its string representation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- return literal;
- }
-
-} // VisibilityKind
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>Visibility Kind</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getVisibilityKind()
+ * @model
+ * @generated
+ */
+public enum VisibilityKind implements Enumerator
+{
+ /**
+ * The '<em><b>Public</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #PUBLIC_VALUE
+ * @generated
+ * @ordered
+ */
+ PUBLIC(0, "public", "+"),
+
+ /**
+ * The '<em><b>Private</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #PRIVATE_VALUE
+ * @generated
+ * @ordered
+ */
+ PRIVATE(1, "private", "-"),
+
+ /**
+ * The '<em><b>Protected</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #PROTECTED_VALUE
+ * @generated
+ * @ordered
+ */
+ PROTECTED(2, "protected", "#"),
+
+ /**
+ * The '<em><b>Package</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #PACKAGE_VALUE
+ * @generated
+ * @ordered
+ */
+ PACKAGE(3, "package", "~");
+
+ /**
+ * The '<em><b>Public</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Public</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #PUBLIC
+ * @model name="public" literal="+"
+ * @generated
+ * @ordered
+ */
+ public static final int PUBLIC_VALUE = 0;
+
+ /**
+ * The '<em><b>Private</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Private</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #PRIVATE
+ * @model name="private" literal="-"
+ * @generated
+ * @ordered
+ */
+ public static final int PRIVATE_VALUE = 1;
+
+ /**
+ * The '<em><b>Protected</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Protected</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #PROTECTED
+ * @model name="protected" literal="#"
+ * @generated
+ * @ordered
+ */
+ public static final int PROTECTED_VALUE = 2;
+
+ /**
+ * The '<em><b>Package</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>Package</b></em>' literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #PACKAGE
+ * @model name="package" literal="~"
+ * @generated
+ * @ordered
+ */
+ public static final int PACKAGE_VALUE = 3;
+
+ /**
+ * An array of all the '<em><b>Visibility Kind</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final VisibilityKind[] VALUES_ARRAY =
+ new VisibilityKind[]
+ {
+ PUBLIC,
+ PRIVATE,
+ PROTECTED,
+ PACKAGE,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>Visibility Kind</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<VisibilityKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param literal the literal.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static VisibilityKind get(String literal)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ VisibilityKind result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param name the name.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static VisibilityKind getByName(String name)
+ {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i)
+ {
+ VisibilityKind result = VALUES_ARRAY[i];
+ if (result.getName().equals(name))
+ {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Visibility Kind</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the integer value.
+ * @return the matching enumerator or <code>null</code>.
+ * @generated
+ */
+ public static VisibilityKind get(int value)
+ {
+ switch (value)
+ {
+ case PUBLIC_VALUE: return PUBLIC;
+ case PRIVATE_VALUE: return PRIVATE;
+ case PROTECTED_VALUE: return PROTECTED;
+ case PACKAGE_VALUE: return PACKAGE;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private VisibilityKind(int value, String name, String literal)
+ {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue()
+ {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteral()
+ {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ return literal;
+ }
+
+} //VisibilityKind
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/VisibilityRule.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/VisibilityRule.java
index aab98c7e8f2..8bcdad6cd62 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/VisibilityRule.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/VisibilityRule.java
@@ -1,56 +1,54 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Visibility Rule</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule#getVisibility <em>Visibility</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getVisibilityRule()
- * @model
- * @generated
- */
-public interface VisibilityRule extends EObject
-{
- /**
- * Returns the value of the '<em><b>Visibility</b></em>' attribute.
- * The literals are from the enumeration {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Visibility</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Visibility</em>' attribute.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind
- * @see #setVisibility(VisibilityKind)
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getVisibilityRule_Visibility()
- * @model
- * @generated
- */
- VisibilityKind getVisibility();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule#getVisibility <em>Visibility</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Visibility</em>' attribute.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind
- * @see #getVisibility()
- * @generated
- */
- void setVisibility(VisibilityKind value);
-
-} // VisibilityRule
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Visibility Rule</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule#getVisibility <em>Visibility</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getVisibilityRule()
+ * @model
+ * @generated
+ */
+public interface VisibilityRule extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Visibility</b></em>' attribute.
+ * The literals are from the enumeration {@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Visibility</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Visibility</em>' attribute.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind
+ * @see #setVisibility(VisibilityKind)
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#getVisibilityRule_Visibility()
+ * @model
+ * @generated
+ */
+ VisibilityKind getVisibility();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule#getVisibility <em>Visibility</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Visibility</em>' attribute.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind
+ * @see #getVisibility()
+ * @generated
+ */
+ void setVisibility(VisibilityKind value);
+
+} // VisibilityRule
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/BooleanValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/BooleanValueImpl.java
index 0e641c1febd..fc931408f3f 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/BooleanValueImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/BooleanValueImpl.java
@@ -1,191 +1,177 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Boolean Value</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl#getLiteralBoolean <em>Literal Boolean</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class BooleanValueImpl extends ValueImpl implements BooleanValue
-{
- /**
- * The default value of the '{@link #getLiteralBoolean() <em>Literal Boolean</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getLiteralBoolean()
- * @generated
- * @ordered
- */
- protected static final BooleanLiterals LITERAL_BOOLEAN_EDEFAULT = BooleanLiterals.TRUE;
-
- /**
- * The cached value of the '{@link #getLiteralBoolean() <em>Literal Boolean</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getLiteralBoolean()
- * @generated
- * @ordered
- */
- protected BooleanLiterals literalBoolean = LITERAL_BOOLEAN_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected BooleanValueImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPropertyPackage.Literals.BOOLEAN_VALUE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public BooleanLiterals getLiteralBoolean()
- {
- return literalBoolean;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setLiteralBoolean(BooleanLiterals newLiteralBoolean)
- {
- BooleanLiterals oldLiteralBoolean = literalBoolean;
- literalBoolean = newLiteralBoolean == null ? LITERAL_BOOLEAN_EDEFAULT : newLiteralBoolean;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN, oldLiteralBoolean, literalBoolean));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN:
- return getLiteralBoolean();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN:
- setLiteralBoolean((BooleanLiterals) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN:
- setLiteralBoolean(LITERAL_BOOLEAN_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN:
- return literalBoolean != LITERAL_BOOLEAN_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (literalBoolean: ");
- result.append(literalBoolean);
- result.append(')');
- return result.toString();
- }
-
-} // BooleanValueImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Boolean Value</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BooleanValueImpl#getLiteralBoolean <em>Literal Boolean</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class BooleanValueImpl extends ValueImpl implements BooleanValue
+{
+ /**
+ * The default value of the '{@link #getLiteralBoolean() <em>Literal Boolean</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLiteralBoolean()
+ * @generated
+ * @ordered
+ */
+ protected static final BooleanLiterals LITERAL_BOOLEAN_EDEFAULT = BooleanLiterals.TRUE;
+
+ /**
+ * The cached value of the '{@link #getLiteralBoolean() <em>Literal Boolean</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLiteralBoolean()
+ * @generated
+ * @ordered
+ */
+ protected BooleanLiterals literalBoolean = LITERAL_BOOLEAN_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected BooleanValueImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPropertyPackage.Literals.BOOLEAN_VALUE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public BooleanLiterals getLiteralBoolean()
+ {
+ return literalBoolean;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setLiteralBoolean(BooleanLiterals newLiteralBoolean)
+ {
+ BooleanLiterals oldLiteralBoolean = literalBoolean;
+ literalBoolean = newLiteralBoolean == null ? LITERAL_BOOLEAN_EDEFAULT : newLiteralBoolean;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN, oldLiteralBoolean, literalBoolean));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN:
+ return getLiteralBoolean();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN:
+ setLiteralBoolean((BooleanLiterals)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN:
+ setLiteralBoolean(LITERAL_BOOLEAN_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.BOOLEAN_VALUE__LITERAL_BOOLEAN:
+ return literalBoolean != LITERAL_BOOLEAN_EDEFAULT;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (literalBoolean: ");
+ result.append(literalBoolean);
+ result.append(')');
+ return result.toString();
+ }
+
+} //BooleanValueImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/BoundSpecificationImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/BoundSpecificationImpl.java
index e2a89e08828..2813f51c874 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/BoundSpecificationImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/BoundSpecificationImpl.java
@@ -1,191 +1,177 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Bound Specification</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl#getValue <em>Value</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class BoundSpecificationImpl extends MinimalEObjectImpl.Container implements BoundSpecification
-{
- /**
- * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected static final String VALUE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected String value = VALUE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected BoundSpecificationImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPropertyPackage.Literals.BOUND_SPECIFICATION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getValue()
- {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setValue(String newValue)
- {
- String oldValue = value;
- value = newValue;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.BOUND_SPECIFICATION__VALUE, oldValue, value));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.BOUND_SPECIFICATION__VALUE:
- return getValue();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.BOUND_SPECIFICATION__VALUE:
- setValue((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.BOUND_SPECIFICATION__VALUE:
- setValue(VALUE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.BOUND_SPECIFICATION__VALUE:
- return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (value: ");
- result.append(value);
- result.append(')');
- return result.toString();
- }
-
-} // BoundSpecificationImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Bound Specification</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.BoundSpecificationImpl#getValue <em>Value</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class BoundSpecificationImpl extends MinimalEObjectImpl.Container implements BoundSpecification
+{
+ /**
+ * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected static final String VALUE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected String value = VALUE_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected BoundSpecificationImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPropertyPackage.Literals.BOUND_SPECIFICATION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getValue()
+ {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setValue(String newValue)
+ {
+ String oldValue = value;
+ value = newValue;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.BOUND_SPECIFICATION__VALUE, oldValue, value));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.BOUND_SPECIFICATION__VALUE:
+ return getValue();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.BOUND_SPECIFICATION__VALUE:
+ setValue((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.BOUND_SPECIFICATION__VALUE:
+ setValue(VALUE_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.BOUND_SPECIFICATION__VALUE:
+ return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (value: ");
+ result.append(value);
+ result.append(')');
+ return result.toString();
+ }
+
+} //BoundSpecificationImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/DefaultValueRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/DefaultValueRuleImpl.java
index 62d70a31f08..558b94ecb97 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/DefaultValueRuleImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/DefaultValueRuleImpl.java
@@ -1,214 +1,194 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Default Value Rule</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl#getDefault <em>Default</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class DefaultValueRuleImpl extends MinimalEObjectImpl.Container implements DefaultValueRule
-{
- /**
- * The cached value of the '{@link #getDefault() <em>Default</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getDefault()
- * @generated
- * @ordered
- */
- protected Value default_;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected DefaultValueRuleImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPropertyPackage.Literals.DEFAULT_VALUE_RULE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Value getDefault()
- {
- return default_;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetDefault(Value newDefault, NotificationChain msgs)
- {
- Value oldDefault = default_;
- default_ = newDefault;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, oldDefault, newDefault);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDefault(Value newDefault)
- {
- if (newDefault != default_)
- {
- NotificationChain msgs = null;
- if (default_ != null) {
- msgs = ((InternalEObject) default_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs);
- }
- if (newDefault != null) {
- msgs = ((InternalEObject) newDefault).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs);
- }
- msgs = basicSetDefault(newDefault, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, newDefault, newDefault));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT:
- return basicSetDefault(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT:
- return getDefault();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT:
- setDefault((Value) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT:
- setDefault((Value) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT:
- return default_ != null;
- }
- return super.eIsSet(featureID);
- }
-
-} // DefaultValueRuleImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Default Value Rule</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.DefaultValueRuleImpl#getDefault <em>Default</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class DefaultValueRuleImpl extends MinimalEObjectImpl.Container implements DefaultValueRule
+{
+ /**
+ * The cached value of the '{@link #getDefault() <em>Default</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDefault()
+ * @generated
+ * @ordered
+ */
+ protected Value default_;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DefaultValueRuleImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPropertyPackage.Literals.DEFAULT_VALUE_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Value getDefault()
+ {
+ return default_;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetDefault(Value newDefault, NotificationChain msgs)
+ {
+ Value oldDefault = default_;
+ default_ = newDefault;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, oldDefault, newDefault);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDefault(Value newDefault)
+ {
+ if (newDefault != default_)
+ {
+ NotificationChain msgs = null;
+ if (default_ != null)
+ msgs = ((InternalEObject)default_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs);
+ if (newDefault != null)
+ msgs = ((InternalEObject)newDefault).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, null, msgs);
+ msgs = basicSetDefault(newDefault, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT, newDefault, newDefault));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT:
+ return basicSetDefault(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT:
+ return getDefault();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT:
+ setDefault((Value)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT:
+ setDefault((Value)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.DEFAULT_VALUE_RULE__DEFAULT:
+ return default_ != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //DefaultValueRuleImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/IntValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/IntValueImpl.java
index ae21711a4f0..955329d9cb8 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/IntValueImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/IntValueImpl.java
@@ -1,190 +1,176 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Int Value</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl#getLiteralInteger <em>Literal Integer</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class IntValueImpl extends ValueImpl implements IntValue
-{
- /**
- * The default value of the '{@link #getLiteralInteger() <em>Literal Integer</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getLiteralInteger()
- * @generated
- * @ordered
- */
- protected static final int LITERAL_INTEGER_EDEFAULT = 0;
-
- /**
- * The cached value of the '{@link #getLiteralInteger() <em>Literal Integer</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getLiteralInteger()
- * @generated
- * @ordered
- */
- protected int literalInteger = LITERAL_INTEGER_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected IntValueImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPropertyPackage.Literals.INT_VALUE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public int getLiteralInteger()
- {
- return literalInteger;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setLiteralInteger(int newLiteralInteger)
- {
- int oldLiteralInteger = literalInteger;
- literalInteger = newLiteralInteger;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER, oldLiteralInteger, literalInteger));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER:
- return getLiteralInteger();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER:
- setLiteralInteger((Integer) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER:
- setLiteralInteger(LITERAL_INTEGER_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER:
- return literalInteger != LITERAL_INTEGER_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (literalInteger: ");
- result.append(literalInteger);
- result.append(')');
- return result.toString();
- }
-
-} // IntValueImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Int Value</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.IntValueImpl#getLiteralInteger <em>Literal Integer</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class IntValueImpl extends ValueImpl implements IntValue
+{
+ /**
+ * The default value of the '{@link #getLiteralInteger() <em>Literal Integer</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLiteralInteger()
+ * @generated
+ * @ordered
+ */
+ protected static final int LITERAL_INTEGER_EDEFAULT = 0;
+
+ /**
+ * The cached value of the '{@link #getLiteralInteger() <em>Literal Integer</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLiteralInteger()
+ * @generated
+ * @ordered
+ */
+ protected int literalInteger = LITERAL_INTEGER_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IntValueImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPropertyPackage.Literals.INT_VALUE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getLiteralInteger()
+ {
+ return literalInteger;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setLiteralInteger(int newLiteralInteger)
+ {
+ int oldLiteralInteger = literalInteger;
+ literalInteger = newLiteralInteger;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER, oldLiteralInteger, literalInteger));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER:
+ return getLiteralInteger();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER:
+ setLiteralInteger((Integer)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER:
+ setLiteralInteger(LITERAL_INTEGER_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.INT_VALUE__LITERAL_INTEGER:
+ return literalInteger != LITERAL_INTEGER_EDEFAULT;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (literalInteger: ");
+ result.append(literalInteger);
+ result.append(')');
+ return result.toString();
+ }
+
+} //IntValueImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ModifierSpecificationImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ModifierSpecificationImpl.java
index cd59b4bfaa2..d7b5604efa1 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ModifierSpecificationImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ModifierSpecificationImpl.java
@@ -1,379 +1,338 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Modifier Specification</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl#getValue <em>Value</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl#getRedefines <em>Redefines</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl#getSubsets <em>Subsets</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ModifierSpecificationImpl extends MinimalEObjectImpl.Container implements ModifierSpecification
-{
- /**
- * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected static final ModifierKind VALUE_EDEFAULT = ModifierKind.READ_ONLY;
-
- /**
- * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getValue()
- * @generated
- * @ordered
- */
- protected ModifierKind value = VALUE_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getRedefines() <em>Redefines</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getRedefines()
- * @generated
- * @ordered
- */
- protected RedefinesRule redefines;
-
- /**
- * The cached value of the '{@link #getSubsets() <em>Subsets</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getSubsets()
- * @generated
- * @ordered
- */
- protected SubsetsRule subsets;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected ModifierSpecificationImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPropertyPackage.Literals.MODIFIER_SPECIFICATION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ModifierKind getValue()
- {
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setValue(ModifierKind newValue)
- {
- ModifierKind oldValue = value;
- value = newValue == null ? VALUE_EDEFAULT : newValue;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE, oldValue, value));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public RedefinesRule getRedefines()
- {
- return redefines;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetRedefines(RedefinesRule newRedefines, NotificationChain msgs)
- {
- RedefinesRule oldRedefines = redefines;
- redefines = newRedefines;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES, oldRedefines, newRedefines);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setRedefines(RedefinesRule newRedefines)
- {
- if (newRedefines != redefines)
- {
- NotificationChain msgs = null;
- if (redefines != null) {
- msgs = ((InternalEObject) redefines).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES, null, msgs);
- }
- if (newRedefines != null) {
- msgs = ((InternalEObject) newRedefines).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES, null, msgs);
- }
- msgs = basicSetRedefines(newRedefines, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES, newRedefines, newRedefines));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public SubsetsRule getSubsets()
- {
- return subsets;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetSubsets(SubsetsRule newSubsets, NotificationChain msgs)
- {
- SubsetsRule oldSubsets = subsets;
- subsets = newSubsets;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS, oldSubsets, newSubsets);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setSubsets(SubsetsRule newSubsets)
- {
- if (newSubsets != subsets)
- {
- NotificationChain msgs = null;
- if (subsets != null) {
- msgs = ((InternalEObject) subsets).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS, null, msgs);
- }
- if (newSubsets != null) {
- msgs = ((InternalEObject) newSubsets).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS, null, msgs);
- }
- msgs = basicSetSubsets(newSubsets, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS, newSubsets, newSubsets));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES:
- return basicSetRedefines(null, msgs);
- case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS:
- return basicSetSubsets(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE:
- return getValue();
- case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES:
- return getRedefines();
- case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS:
- return getSubsets();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE:
- setValue((ModifierKind) newValue);
- return;
- case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES:
- setRedefines((RedefinesRule) newValue);
- return;
- case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS:
- setSubsets((SubsetsRule) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE:
- setValue(VALUE_EDEFAULT);
- return;
- case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES:
- setRedefines((RedefinesRule) null);
- return;
- case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS:
- setSubsets((SubsetsRule) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE:
- return value != VALUE_EDEFAULT;
- case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES:
- return redefines != null;
- case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS:
- return subsets != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (value: ");
- result.append(value);
- result.append(')');
- return result.toString();
- }
-
-} // ModifierSpecificationImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Modifier Specification</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl#getValue <em>Value</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl#getRedefines <em>Redefines</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifierSpecificationImpl#getSubsets <em>Subsets</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class ModifierSpecificationImpl extends MinimalEObjectImpl.Container implements ModifierSpecification
+{
+ /**
+ * The default value of the '{@link #getValue() <em>Value</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected static final ModifierKind VALUE_EDEFAULT = ModifierKind.READ_ONLY;
+
+ /**
+ * The cached value of the '{@link #getValue() <em>Value</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected ModifierKind value = VALUE_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getRedefines() <em>Redefines</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRedefines()
+ * @generated
+ * @ordered
+ */
+ protected RedefinesRule redefines;
+
+ /**
+ * The cached value of the '{@link #getSubsets() <em>Subsets</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSubsets()
+ * @generated
+ * @ordered
+ */
+ protected SubsetsRule subsets;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ModifierSpecificationImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPropertyPackage.Literals.MODIFIER_SPECIFICATION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ModifierKind getValue()
+ {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setValue(ModifierKind newValue)
+ {
+ ModifierKind oldValue = value;
+ value = newValue == null ? VALUE_EDEFAULT : newValue;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE, oldValue, value));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RedefinesRule getRedefines()
+ {
+ return redefines;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetRedefines(RedefinesRule newRedefines, NotificationChain msgs)
+ {
+ RedefinesRule oldRedefines = redefines;
+ redefines = newRedefines;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES, oldRedefines, newRedefines);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRedefines(RedefinesRule newRedefines)
+ {
+ if (newRedefines != redefines)
+ {
+ NotificationChain msgs = null;
+ if (redefines != null)
+ msgs = ((InternalEObject)redefines).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES, null, msgs);
+ if (newRedefines != null)
+ msgs = ((InternalEObject)newRedefines).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES, null, msgs);
+ msgs = basicSetRedefines(newRedefines, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES, newRedefines, newRedefines));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SubsetsRule getSubsets()
+ {
+ return subsets;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetSubsets(SubsetsRule newSubsets, NotificationChain msgs)
+ {
+ SubsetsRule oldSubsets = subsets;
+ subsets = newSubsets;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS, oldSubsets, newSubsets);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSubsets(SubsetsRule newSubsets)
+ {
+ if (newSubsets != subsets)
+ {
+ NotificationChain msgs = null;
+ if (subsets != null)
+ msgs = ((InternalEObject)subsets).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS, null, msgs);
+ if (newSubsets != null)
+ msgs = ((InternalEObject)newSubsets).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS, null, msgs);
+ msgs = basicSetSubsets(newSubsets, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS, newSubsets, newSubsets));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES:
+ return basicSetRedefines(null, msgs);
+ case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS:
+ return basicSetSubsets(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE:
+ return getValue();
+ case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES:
+ return getRedefines();
+ case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS:
+ return getSubsets();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE:
+ setValue((ModifierKind)newValue);
+ return;
+ case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES:
+ setRedefines((RedefinesRule)newValue);
+ return;
+ case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS:
+ setSubsets((SubsetsRule)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE:
+ setValue(VALUE_EDEFAULT);
+ return;
+ case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES:
+ setRedefines((RedefinesRule)null);
+ return;
+ case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS:
+ setSubsets((SubsetsRule)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.MODIFIER_SPECIFICATION__VALUE:
+ return value != VALUE_EDEFAULT;
+ case UmlPropertyPackage.MODIFIER_SPECIFICATION__REDEFINES:
+ return redefines != null;
+ case UmlPropertyPackage.MODIFIER_SPECIFICATION__SUBSETS:
+ return subsets != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (value: ");
+ result.append(value);
+ result.append(')');
+ return result.toString();
+ }
+
+} //ModifierSpecificationImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ModifiersRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ModifiersRuleImpl.java
index 310e813c49f..50631e6abff 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ModifiersRuleImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ModifiersRuleImpl.java
@@ -1,176 +1,167 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Modifiers Rule</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl#getValues <em>Values</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ModifiersRuleImpl extends MinimalEObjectImpl.Container implements ModifiersRule
-{
- /**
- * The cached value of the '{@link #getValues() <em>Values</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getValues()
- * @generated
- * @ordered
- */
- protected EList<ModifierSpecification> values;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected ModifiersRuleImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPropertyPackage.Literals.MODIFIERS_RULE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<ModifierSpecification> getValues()
- {
- if (values == null)
- {
- values = new EObjectContainmentEList<ModifierSpecification>(ModifierSpecification.class, this, UmlPropertyPackage.MODIFIERS_RULE__VALUES);
- }
- return values;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.MODIFIERS_RULE__VALUES:
- return ((InternalEList<?>) getValues()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.MODIFIERS_RULE__VALUES:
- return getValues();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.MODIFIERS_RULE__VALUES:
- getValues().clear();
- getValues().addAll((Collection<? extends ModifierSpecification>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.MODIFIERS_RULE__VALUES:
- getValues().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.MODIFIERS_RULE__VALUES:
- return values != null && !values.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} // ModifiersRuleImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Modifiers Rule</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.ModifiersRuleImpl#getValues <em>Values</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class ModifiersRuleImpl extends MinimalEObjectImpl.Container implements ModifiersRule
+{
+ /**
+ * The cached value of the '{@link #getValues() <em>Values</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValues()
+ * @generated
+ * @ordered
+ */
+ protected EList<ModifierSpecification> values;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ModifiersRuleImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPropertyPackage.Literals.MODIFIERS_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<ModifierSpecification> getValues()
+ {
+ if (values == null)
+ {
+ values = new EObjectContainmentEList<ModifierSpecification>(ModifierSpecification.class, this, UmlPropertyPackage.MODIFIERS_RULE__VALUES);
+ }
+ return values;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.MODIFIERS_RULE__VALUES:
+ return ((InternalEList<?>)getValues()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.MODIFIERS_RULE__VALUES:
+ return getValues();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.MODIFIERS_RULE__VALUES:
+ getValues().clear();
+ getValues().addAll((Collection<? extends ModifierSpecification>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.MODIFIERS_RULE__VALUES:
+ getValues().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.MODIFIERS_RULE__VALUES:
+ return values != null && !values.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //ModifiersRuleImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/MultiplicityRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/MultiplicityRuleImpl.java
index 80628e374d2..942a8c5c397 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/MultiplicityRuleImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/MultiplicityRuleImpl.java
@@ -1,176 +1,167 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Multiplicity Rule</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl#getBounds <em>Bounds</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class MultiplicityRuleImpl extends MinimalEObjectImpl.Container implements MultiplicityRule
-{
- /**
- * The cached value of the '{@link #getBounds() <em>Bounds</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBounds()
- * @generated
- * @ordered
- */
- protected EList<BoundSpecification> bounds;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected MultiplicityRuleImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPropertyPackage.Literals.MULTIPLICITY_RULE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<BoundSpecification> getBounds()
- {
- if (bounds == null)
- {
- bounds = new EObjectContainmentEList<BoundSpecification>(BoundSpecification.class, this, UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS);
- }
- return bounds;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS:
- return ((InternalEList<?>) getBounds()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS:
- return getBounds();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS:
- getBounds().clear();
- getBounds().addAll((Collection<? extends BoundSpecification>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS:
- getBounds().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS:
- return bounds != null && !bounds.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} // MultiplicityRuleImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Multiplicity Rule</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.MultiplicityRuleImpl#getBounds <em>Bounds</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class MultiplicityRuleImpl extends MinimalEObjectImpl.Container implements MultiplicityRule
+{
+ /**
+ * The cached value of the '{@link #getBounds() <em>Bounds</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBounds()
+ * @generated
+ * @ordered
+ */
+ protected EList<BoundSpecification> bounds;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected MultiplicityRuleImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPropertyPackage.Literals.MULTIPLICITY_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<BoundSpecification> getBounds()
+ {
+ if (bounds == null)
+ {
+ bounds = new EObjectContainmentEList<BoundSpecification>(BoundSpecification.class, this, UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS);
+ }
+ return bounds;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS:
+ return ((InternalEList<?>)getBounds()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS:
+ return getBounds();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS:
+ getBounds().clear();
+ getBounds().addAll((Collection<? extends BoundSpecification>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS:
+ getBounds().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.MULTIPLICITY_RULE__BOUNDS:
+ return bounds != null && !bounds.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //MultiplicityRuleImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/NoValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/NoValueImpl.java
index 77e1252e789..86c3915e238 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/NoValueImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/NoValueImpl.java
@@ -1,44 +1,40 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>No Value</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class NoValueImpl extends ValueImpl implements NoValue
-{
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected NoValueImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPropertyPackage.Literals.NO_VALUE;
- }
-
-} // NoValueImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>No Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class NoValueImpl extends ValueImpl implements NoValue
+{
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected NoValueImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPropertyPackage.Literals.NO_VALUE;
+ }
+
+} //NoValueImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/NullValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/NullValueImpl.java
index 64fefd8e744..9442bbf074a 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/NullValueImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/NullValueImpl.java
@@ -1,44 +1,40 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Null Value</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class NullValueImpl extends ValueImpl implements NullValue
-{
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected NullValueImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPropertyPackage.Literals.NULL_VALUE;
- }
-
-} // NullValueImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Null Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class NullValueImpl extends ValueImpl implements NullValue
+{
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected NullValueImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPropertyPackage.Literals.NULL_VALUE;
+ }
+
+} //NullValueImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/PropertyRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/PropertyRuleImpl.java
index 1f86d35c368..a297a06056f 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/PropertyRuleImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/PropertyRuleImpl.java
@@ -1,755 +1,665 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Property Rule</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getVisibility <em>Visibility</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#isDerived <em>Derived</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getType <em>Type</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#isTypeUndefined <em>Type Undefined</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getMultiplicity <em>Multiplicity</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getModifiers <em>Modifiers</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getDefault <em>Default</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class PropertyRuleImpl extends MinimalEObjectImpl.Container implements PropertyRule
-{
- /**
- * The cached value of the '{@link #getVisibility() <em>Visibility</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getVisibility()
- * @generated
- * @ordered
- */
- protected VisibilityRule visibility;
-
- /**
- * The default value of the '{@link #isDerived() <em>Derived</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isDerived()
- * @generated
- * @ordered
- */
- protected static final boolean DERIVED_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isDerived() <em>Derived</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isDerived()
- * @generated
- * @ordered
- */
- protected boolean derived = DERIVED_EDEFAULT;
-
- /**
- * The default value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected static final String NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getName()
- * @generated
- * @ordered
- */
- protected String name = NAME_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getType() <em>Type</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getType()
- * @generated
- * @ordered
- */
- protected TypeRule type;
-
- /**
- * The default value of the '{@link #isTypeUndefined() <em>Type Undefined</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isTypeUndefined()
- * @generated
- * @ordered
- */
- protected static final boolean TYPE_UNDEFINED_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isTypeUndefined() <em>Type Undefined</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isTypeUndefined()
- * @generated
- * @ordered
- */
- protected boolean typeUndefined = TYPE_UNDEFINED_EDEFAULT;
-
- /**
- * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getMultiplicity()
- * @generated
- * @ordered
- */
- protected MultiplicityRule multiplicity;
-
- /**
- * The cached value of the '{@link #getModifiers() <em>Modifiers</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getModifiers()
- * @generated
- * @ordered
- */
- protected ModifiersRule modifiers;
-
- /**
- * The cached value of the '{@link #getDefault() <em>Default</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getDefault()
- * @generated
- * @ordered
- */
- protected DefaultValueRule default_;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected PropertyRuleImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPropertyPackage.Literals.PROPERTY_RULE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public VisibilityRule getVisibility()
- {
- return visibility;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetVisibility(VisibilityRule newVisibility, NotificationChain msgs)
- {
- VisibilityRule oldVisibility = visibility;
- visibility = newVisibility;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__VISIBILITY, oldVisibility, newVisibility);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setVisibility(VisibilityRule newVisibility)
- {
- if (newVisibility != visibility)
- {
- NotificationChain msgs = null;
- if (visibility != null) {
- msgs = ((InternalEObject) visibility).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__VISIBILITY, null, msgs);
- }
- if (newVisibility != null) {
- msgs = ((InternalEObject) newVisibility).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__VISIBILITY, null, msgs);
- }
- msgs = basicSetVisibility(newVisibility, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__VISIBILITY, newVisibility, newVisibility));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isDerived()
- {
- return derived;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDerived(boolean newDerived)
- {
- boolean oldDerived = derived;
- derived = newDerived;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__DERIVED, oldDerived, derived));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setName(String newName)
- {
- String oldName = name;
- name = newName;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__NAME, oldName, name));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public TypeRule getType()
- {
- return type;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetType(TypeRule newType, NotificationChain msgs)
- {
- TypeRule oldType = type;
- type = newType;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__TYPE, oldType, newType);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setType(TypeRule newType)
- {
- if (newType != type)
- {
- NotificationChain msgs = null;
- if (type != null) {
- msgs = ((InternalEObject) type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__TYPE, null, msgs);
- }
- if (newType != null) {
- msgs = ((InternalEObject) newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__TYPE, null, msgs);
- }
- msgs = basicSetType(newType, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__TYPE, newType, newType));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public boolean isTypeUndefined()
- {
- return typeUndefined;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setTypeUndefined(boolean newTypeUndefined)
- {
- boolean oldTypeUndefined = typeUndefined;
- typeUndefined = newTypeUndefined;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED, oldTypeUndefined, typeUndefined));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public MultiplicityRule getMultiplicity()
- {
- return multiplicity;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetMultiplicity(MultiplicityRule newMultiplicity, NotificationChain msgs)
- {
- MultiplicityRule oldMultiplicity = multiplicity;
- multiplicity = newMultiplicity;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY, oldMultiplicity, newMultiplicity);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setMultiplicity(MultiplicityRule newMultiplicity)
- {
- if (newMultiplicity != multiplicity)
- {
- NotificationChain msgs = null;
- if (multiplicity != null) {
- msgs = ((InternalEObject) multiplicity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY, null, msgs);
- }
- if (newMultiplicity != null) {
- msgs = ((InternalEObject) newMultiplicity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY, null, msgs);
- }
- msgs = basicSetMultiplicity(newMultiplicity, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY, newMultiplicity, newMultiplicity));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ModifiersRule getModifiers()
- {
- return modifiers;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetModifiers(ModifiersRule newModifiers, NotificationChain msgs)
- {
- ModifiersRule oldModifiers = modifiers;
- modifiers = newModifiers;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__MODIFIERS, oldModifiers, newModifiers);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setModifiers(ModifiersRule newModifiers)
- {
- if (newModifiers != modifiers)
- {
- NotificationChain msgs = null;
- if (modifiers != null) {
- msgs = ((InternalEObject) modifiers).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__MODIFIERS, null, msgs);
- }
- if (newModifiers != null) {
- msgs = ((InternalEObject) newModifiers).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__MODIFIERS, null, msgs);
- }
- msgs = basicSetModifiers(newModifiers, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__MODIFIERS, newModifiers, newModifiers));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public DefaultValueRule getDefault()
- {
- return default_;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetDefault(DefaultValueRule newDefault, NotificationChain msgs)
- {
- DefaultValueRule oldDefault = default_;
- default_ = newDefault;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__DEFAULT, oldDefault, newDefault);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setDefault(DefaultValueRule newDefault)
- {
- if (newDefault != default_)
- {
- NotificationChain msgs = null;
- if (default_ != null) {
- msgs = ((InternalEObject) default_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__DEFAULT, null, msgs);
- }
- if (newDefault != null) {
- msgs = ((InternalEObject) newDefault).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__DEFAULT, null, msgs);
- }
- msgs = basicSetDefault(newDefault, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__DEFAULT, newDefault, newDefault));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY:
- return basicSetVisibility(null, msgs);
- case UmlPropertyPackage.PROPERTY_RULE__TYPE:
- return basicSetType(null, msgs);
- case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY:
- return basicSetMultiplicity(null, msgs);
- case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS:
- return basicSetModifiers(null, msgs);
- case UmlPropertyPackage.PROPERTY_RULE__DEFAULT:
- return basicSetDefault(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY:
- return getVisibility();
- case UmlPropertyPackage.PROPERTY_RULE__DERIVED:
- return isDerived();
- case UmlPropertyPackage.PROPERTY_RULE__NAME:
- return getName();
- case UmlPropertyPackage.PROPERTY_RULE__TYPE:
- return getType();
- case UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED:
- return isTypeUndefined();
- case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY:
- return getMultiplicity();
- case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS:
- return getModifiers();
- case UmlPropertyPackage.PROPERTY_RULE__DEFAULT:
- return getDefault();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY:
- setVisibility((VisibilityRule) newValue);
- return;
- case UmlPropertyPackage.PROPERTY_RULE__DERIVED:
- setDerived((Boolean) newValue);
- return;
- case UmlPropertyPackage.PROPERTY_RULE__NAME:
- setName((String) newValue);
- return;
- case UmlPropertyPackage.PROPERTY_RULE__TYPE:
- setType((TypeRule) newValue);
- return;
- case UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED:
- setTypeUndefined((Boolean) newValue);
- return;
- case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY:
- setMultiplicity((MultiplicityRule) newValue);
- return;
- case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS:
- setModifiers((ModifiersRule) newValue);
- return;
- case UmlPropertyPackage.PROPERTY_RULE__DEFAULT:
- setDefault((DefaultValueRule) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY:
- setVisibility((VisibilityRule) null);
- return;
- case UmlPropertyPackage.PROPERTY_RULE__DERIVED:
- setDerived(DERIVED_EDEFAULT);
- return;
- case UmlPropertyPackage.PROPERTY_RULE__NAME:
- setName(NAME_EDEFAULT);
- return;
- case UmlPropertyPackage.PROPERTY_RULE__TYPE:
- setType((TypeRule) null);
- return;
- case UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED:
- setTypeUndefined(TYPE_UNDEFINED_EDEFAULT);
- return;
- case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY:
- setMultiplicity((MultiplicityRule) null);
- return;
- case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS:
- setModifiers((ModifiersRule) null);
- return;
- case UmlPropertyPackage.PROPERTY_RULE__DEFAULT:
- setDefault((DefaultValueRule) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY:
- return visibility != null;
- case UmlPropertyPackage.PROPERTY_RULE__DERIVED:
- return derived != DERIVED_EDEFAULT;
- case UmlPropertyPackage.PROPERTY_RULE__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case UmlPropertyPackage.PROPERTY_RULE__TYPE:
- return type != null;
- case UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED:
- return typeUndefined != TYPE_UNDEFINED_EDEFAULT;
- case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY:
- return multiplicity != null;
- case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS:
- return modifiers != null;
- case UmlPropertyPackage.PROPERTY_RULE__DEFAULT:
- return default_ != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (derived: ");
- result.append(derived);
- result.append(", name: ");
- result.append(name);
- result.append(", typeUndefined: ");
- result.append(typeUndefined);
- result.append(')');
- return result.toString();
- }
-
-} // PropertyRuleImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Property Rule</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getVisibility <em>Visibility</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#isDerived <em>Derived</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getType <em>Type</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#isTypeUndefined <em>Type Undefined</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getMultiplicity <em>Multiplicity</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getModifiers <em>Modifiers</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.PropertyRuleImpl#getDefault <em>Default</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class PropertyRuleImpl extends MinimalEObjectImpl.Container implements PropertyRule
+{
+ /**
+ * The cached value of the '{@link #getVisibility() <em>Visibility</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getVisibility()
+ * @generated
+ * @ordered
+ */
+ protected VisibilityRule visibility;
+
+ /**
+ * The default value of the '{@link #isDerived() <em>Derived</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isDerived()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean DERIVED_EDEFAULT = false;
+
+ /**
+ * The cached value of the '{@link #isDerived() <em>Derived</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isDerived()
+ * @generated
+ * @ordered
+ */
+ protected boolean derived = DERIVED_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getType() <em>Type</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected TypeRule type;
+
+ /**
+ * The default value of the '{@link #isTypeUndefined() <em>Type Undefined</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isTypeUndefined()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean TYPE_UNDEFINED_EDEFAULT = false;
+
+ /**
+ * The cached value of the '{@link #isTypeUndefined() <em>Type Undefined</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isTypeUndefined()
+ * @generated
+ * @ordered
+ */
+ protected boolean typeUndefined = TYPE_UNDEFINED_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMultiplicity()
+ * @generated
+ * @ordered
+ */
+ protected MultiplicityRule multiplicity;
+
+ /**
+ * The cached value of the '{@link #getModifiers() <em>Modifiers</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getModifiers()
+ * @generated
+ * @ordered
+ */
+ protected ModifiersRule modifiers;
+
+ /**
+ * The cached value of the '{@link #getDefault() <em>Default</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDefault()
+ * @generated
+ * @ordered
+ */
+ protected DefaultValueRule default_;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected PropertyRuleImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPropertyPackage.Literals.PROPERTY_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public VisibilityRule getVisibility()
+ {
+ return visibility;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetVisibility(VisibilityRule newVisibility, NotificationChain msgs)
+ {
+ VisibilityRule oldVisibility = visibility;
+ visibility = newVisibility;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__VISIBILITY, oldVisibility, newVisibility);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setVisibility(VisibilityRule newVisibility)
+ {
+ if (newVisibility != visibility)
+ {
+ NotificationChain msgs = null;
+ if (visibility != null)
+ msgs = ((InternalEObject)visibility).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__VISIBILITY, null, msgs);
+ if (newVisibility != null)
+ msgs = ((InternalEObject)newVisibility).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__VISIBILITY, null, msgs);
+ msgs = basicSetVisibility(newVisibility, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__VISIBILITY, newVisibility, newVisibility));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isDerived()
+ {
+ return derived;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDerived(boolean newDerived)
+ {
+ boolean oldDerived = derived;
+ derived = newDerived;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__DERIVED, oldDerived, derived));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName)
+ {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public TypeRule getType()
+ {
+ return type;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetType(TypeRule newType, NotificationChain msgs)
+ {
+ TypeRule oldType = type;
+ type = newType;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__TYPE, oldType, newType);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setType(TypeRule newType)
+ {
+ if (newType != type)
+ {
+ NotificationChain msgs = null;
+ if (type != null)
+ msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__TYPE, null, msgs);
+ if (newType != null)
+ msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__TYPE, null, msgs);
+ msgs = basicSetType(newType, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__TYPE, newType, newType));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isTypeUndefined()
+ {
+ return typeUndefined;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTypeUndefined(boolean newTypeUndefined)
+ {
+ boolean oldTypeUndefined = typeUndefined;
+ typeUndefined = newTypeUndefined;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED, oldTypeUndefined, typeUndefined));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public MultiplicityRule getMultiplicity()
+ {
+ return multiplicity;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetMultiplicity(MultiplicityRule newMultiplicity, NotificationChain msgs)
+ {
+ MultiplicityRule oldMultiplicity = multiplicity;
+ multiplicity = newMultiplicity;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY, oldMultiplicity, newMultiplicity);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setMultiplicity(MultiplicityRule newMultiplicity)
+ {
+ if (newMultiplicity != multiplicity)
+ {
+ NotificationChain msgs = null;
+ if (multiplicity != null)
+ msgs = ((InternalEObject)multiplicity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY, null, msgs);
+ if (newMultiplicity != null)
+ msgs = ((InternalEObject)newMultiplicity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY, null, msgs);
+ msgs = basicSetMultiplicity(newMultiplicity, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY, newMultiplicity, newMultiplicity));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ModifiersRule getModifiers()
+ {
+ return modifiers;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetModifiers(ModifiersRule newModifiers, NotificationChain msgs)
+ {
+ ModifiersRule oldModifiers = modifiers;
+ modifiers = newModifiers;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__MODIFIERS, oldModifiers, newModifiers);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setModifiers(ModifiersRule newModifiers)
+ {
+ if (newModifiers != modifiers)
+ {
+ NotificationChain msgs = null;
+ if (modifiers != null)
+ msgs = ((InternalEObject)modifiers).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__MODIFIERS, null, msgs);
+ if (newModifiers != null)
+ msgs = ((InternalEObject)newModifiers).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__MODIFIERS, null, msgs);
+ msgs = basicSetModifiers(newModifiers, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__MODIFIERS, newModifiers, newModifiers));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DefaultValueRule getDefault()
+ {
+ return default_;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetDefault(DefaultValueRule newDefault, NotificationChain msgs)
+ {
+ DefaultValueRule oldDefault = default_;
+ default_ = newDefault;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__DEFAULT, oldDefault, newDefault);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDefault(DefaultValueRule newDefault)
+ {
+ if (newDefault != default_)
+ {
+ NotificationChain msgs = null;
+ if (default_ != null)
+ msgs = ((InternalEObject)default_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__DEFAULT, null, msgs);
+ if (newDefault != null)
+ msgs = ((InternalEObject)newDefault).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.PROPERTY_RULE__DEFAULT, null, msgs);
+ msgs = basicSetDefault(newDefault, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.PROPERTY_RULE__DEFAULT, newDefault, newDefault));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY:
+ return basicSetVisibility(null, msgs);
+ case UmlPropertyPackage.PROPERTY_RULE__TYPE:
+ return basicSetType(null, msgs);
+ case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY:
+ return basicSetMultiplicity(null, msgs);
+ case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS:
+ return basicSetModifiers(null, msgs);
+ case UmlPropertyPackage.PROPERTY_RULE__DEFAULT:
+ return basicSetDefault(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY:
+ return getVisibility();
+ case UmlPropertyPackage.PROPERTY_RULE__DERIVED:
+ return isDerived();
+ case UmlPropertyPackage.PROPERTY_RULE__NAME:
+ return getName();
+ case UmlPropertyPackage.PROPERTY_RULE__TYPE:
+ return getType();
+ case UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED:
+ return isTypeUndefined();
+ case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY:
+ return getMultiplicity();
+ case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS:
+ return getModifiers();
+ case UmlPropertyPackage.PROPERTY_RULE__DEFAULT:
+ return getDefault();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY:
+ setVisibility((VisibilityRule)newValue);
+ return;
+ case UmlPropertyPackage.PROPERTY_RULE__DERIVED:
+ setDerived((Boolean)newValue);
+ return;
+ case UmlPropertyPackage.PROPERTY_RULE__NAME:
+ setName((String)newValue);
+ return;
+ case UmlPropertyPackage.PROPERTY_RULE__TYPE:
+ setType((TypeRule)newValue);
+ return;
+ case UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED:
+ setTypeUndefined((Boolean)newValue);
+ return;
+ case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY:
+ setMultiplicity((MultiplicityRule)newValue);
+ return;
+ case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS:
+ setModifiers((ModifiersRule)newValue);
+ return;
+ case UmlPropertyPackage.PROPERTY_RULE__DEFAULT:
+ setDefault((DefaultValueRule)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY:
+ setVisibility((VisibilityRule)null);
+ return;
+ case UmlPropertyPackage.PROPERTY_RULE__DERIVED:
+ setDerived(DERIVED_EDEFAULT);
+ return;
+ case UmlPropertyPackage.PROPERTY_RULE__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case UmlPropertyPackage.PROPERTY_RULE__TYPE:
+ setType((TypeRule)null);
+ return;
+ case UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED:
+ setTypeUndefined(TYPE_UNDEFINED_EDEFAULT);
+ return;
+ case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY:
+ setMultiplicity((MultiplicityRule)null);
+ return;
+ case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS:
+ setModifiers((ModifiersRule)null);
+ return;
+ case UmlPropertyPackage.PROPERTY_RULE__DEFAULT:
+ setDefault((DefaultValueRule)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.PROPERTY_RULE__VISIBILITY:
+ return visibility != null;
+ case UmlPropertyPackage.PROPERTY_RULE__DERIVED:
+ return derived != DERIVED_EDEFAULT;
+ case UmlPropertyPackage.PROPERTY_RULE__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case UmlPropertyPackage.PROPERTY_RULE__TYPE:
+ return type != null;
+ case UmlPropertyPackage.PROPERTY_RULE__TYPE_UNDEFINED:
+ return typeUndefined != TYPE_UNDEFINED_EDEFAULT;
+ case UmlPropertyPackage.PROPERTY_RULE__MULTIPLICITY:
+ return multiplicity != null;
+ case UmlPropertyPackage.PROPERTY_RULE__MODIFIERS:
+ return modifiers != null;
+ case UmlPropertyPackage.PROPERTY_RULE__DEFAULT:
+ return default_ != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (derived: ");
+ result.append(derived);
+ result.append(", name: ");
+ result.append(name);
+ result.append(", typeUndefined: ");
+ result.append(typeUndefined);
+ result.append(')');
+ return result.toString();
+ }
+
+} //PropertyRuleImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/QualifiedNameImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/QualifiedNameImpl.java
index 55bd51a7b90..b1314ae7c35 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/QualifiedNameImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/QualifiedNameImpl.java
@@ -1,288 +1,260 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-
-import org.eclipse.uml2.uml.Namespace;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Qualified Name</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl#getPath <em>Path</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl#getRemaining <em>Remaining</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class QualifiedNameImpl extends MinimalEObjectImpl.Container implements QualifiedName
-{
- /**
- * The cached value of the '{@link #getPath() <em>Path</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getPath()
- * @generated
- * @ordered
- */
- protected Namespace path;
-
- /**
- * The cached value of the '{@link #getRemaining() <em>Remaining</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getRemaining()
- * @generated
- * @ordered
- */
- protected QualifiedName remaining;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected QualifiedNameImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPropertyPackage.Literals.QUALIFIED_NAME;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Namespace getPath()
- {
- if (path != null && path.eIsProxy())
- {
- InternalEObject oldPath = (InternalEObject) path;
- path = (Namespace) eResolveProxy(oldPath);
- if (path != oldPath)
- {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPropertyPackage.QUALIFIED_NAME__PATH, oldPath, path));
- }
- }
- }
- return path;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Namespace basicGetPath()
- {
- return path;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setPath(Namespace newPath)
- {
- Namespace oldPath = path;
- path = newPath;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.QUALIFIED_NAME__PATH, oldPath, path));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public QualifiedName getRemaining()
- {
- return remaining;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetRemaining(QualifiedName newRemaining, NotificationChain msgs)
- {
- QualifiedName oldRemaining = remaining;
- remaining = newRemaining;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.QUALIFIED_NAME__REMAINING, oldRemaining, newRemaining);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setRemaining(QualifiedName newRemaining)
- {
- if (newRemaining != remaining)
- {
- NotificationChain msgs = null;
- if (remaining != null) {
- msgs = ((InternalEObject) remaining).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.QUALIFIED_NAME__REMAINING, null, msgs);
- }
- if (newRemaining != null) {
- msgs = ((InternalEObject) newRemaining).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.QUALIFIED_NAME__REMAINING, null, msgs);
- }
- msgs = basicSetRemaining(newRemaining, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.QUALIFIED_NAME__REMAINING, newRemaining, newRemaining));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.QUALIFIED_NAME__REMAINING:
- return basicSetRemaining(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.QUALIFIED_NAME__PATH:
- if (resolve) {
- return getPath();
- }
- return basicGetPath();
- case UmlPropertyPackage.QUALIFIED_NAME__REMAINING:
- return getRemaining();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.QUALIFIED_NAME__PATH:
- setPath((Namespace) newValue);
- return;
- case UmlPropertyPackage.QUALIFIED_NAME__REMAINING:
- setRemaining((QualifiedName) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.QUALIFIED_NAME__PATH:
- setPath((Namespace) null);
- return;
- case UmlPropertyPackage.QUALIFIED_NAME__REMAINING:
- setRemaining((QualifiedName) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.QUALIFIED_NAME__PATH:
- return path != null;
- case UmlPropertyPackage.QUALIFIED_NAME__REMAINING:
- return remaining != null;
- }
- return super.eIsSet(featureID);
- }
-
-} // QualifiedNameImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+
+import org.eclipse.uml2.uml.Namespace;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Qualified Name</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl#getPath <em>Path</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.QualifiedNameImpl#getRemaining <em>Remaining</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class QualifiedNameImpl extends MinimalEObjectImpl.Container implements QualifiedName
+{
+ /**
+ * The cached value of the '{@link #getPath() <em>Path</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPath()
+ * @generated
+ * @ordered
+ */
+ protected Namespace path;
+
+ /**
+ * The cached value of the '{@link #getRemaining() <em>Remaining</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRemaining()
+ * @generated
+ * @ordered
+ */
+ protected QualifiedName remaining;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected QualifiedNameImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPropertyPackage.Literals.QUALIFIED_NAME;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Namespace getPath()
+ {
+ if (path != null && path.eIsProxy())
+ {
+ InternalEObject oldPath = (InternalEObject)path;
+ path = (Namespace)eResolveProxy(oldPath);
+ if (path != oldPath)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPropertyPackage.QUALIFIED_NAME__PATH, oldPath, path));
+ }
+ }
+ return path;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Namespace basicGetPath()
+ {
+ return path;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPath(Namespace newPath)
+ {
+ Namespace oldPath = path;
+ path = newPath;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.QUALIFIED_NAME__PATH, oldPath, path));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public QualifiedName getRemaining()
+ {
+ return remaining;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetRemaining(QualifiedName newRemaining, NotificationChain msgs)
+ {
+ QualifiedName oldRemaining = remaining;
+ remaining = newRemaining;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.QUALIFIED_NAME__REMAINING, oldRemaining, newRemaining);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRemaining(QualifiedName newRemaining)
+ {
+ if (newRemaining != remaining)
+ {
+ NotificationChain msgs = null;
+ if (remaining != null)
+ msgs = ((InternalEObject)remaining).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.QUALIFIED_NAME__REMAINING, null, msgs);
+ if (newRemaining != null)
+ msgs = ((InternalEObject)newRemaining).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.QUALIFIED_NAME__REMAINING, null, msgs);
+ msgs = basicSetRemaining(newRemaining, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.QUALIFIED_NAME__REMAINING, newRemaining, newRemaining));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.QUALIFIED_NAME__REMAINING:
+ return basicSetRemaining(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.QUALIFIED_NAME__PATH:
+ if (resolve) return getPath();
+ return basicGetPath();
+ case UmlPropertyPackage.QUALIFIED_NAME__REMAINING:
+ return getRemaining();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.QUALIFIED_NAME__PATH:
+ setPath((Namespace)newValue);
+ return;
+ case UmlPropertyPackage.QUALIFIED_NAME__REMAINING:
+ setRemaining((QualifiedName)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.QUALIFIED_NAME__PATH:
+ setPath((Namespace)null);
+ return;
+ case UmlPropertyPackage.QUALIFIED_NAME__REMAINING:
+ setRemaining((QualifiedName)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.QUALIFIED_NAME__PATH:
+ return path != null;
+ case UmlPropertyPackage.QUALIFIED_NAME__REMAINING:
+ return remaining != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //QualifiedNameImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/RealValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/RealValueImpl.java
index b60f8dfb127..030020aea26 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/RealValueImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/RealValueImpl.java
@@ -1,251 +1,232 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Real Value</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl#getInteger <em>Integer</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl#getFraction <em>Fraction</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class RealValueImpl extends ValueImpl implements RealValue
-{
- /**
- * The default value of the '{@link #getInteger() <em>Integer</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getInteger()
- * @generated
- * @ordered
- */
- protected static final int INTEGER_EDEFAULT = 0;
-
- /**
- * The cached value of the '{@link #getInteger() <em>Integer</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getInteger()
- * @generated
- * @ordered
- */
- protected int integer = INTEGER_EDEFAULT;
-
- /**
- * The default value of the '{@link #getFraction() <em>Fraction</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getFraction()
- * @generated
- * @ordered
- */
- protected static final int FRACTION_EDEFAULT = 0;
-
- /**
- * The cached value of the '{@link #getFraction() <em>Fraction</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getFraction()
- * @generated
- * @ordered
- */
- protected int fraction = FRACTION_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected RealValueImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPropertyPackage.Literals.REAL_VALUE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public int getInteger()
- {
- return integer;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setInteger(int newInteger)
- {
- int oldInteger = integer;
- integer = newInteger;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.REAL_VALUE__INTEGER, oldInteger, integer));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public int getFraction()
- {
- return fraction;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setFraction(int newFraction)
- {
- int oldFraction = fraction;
- fraction = newFraction;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.REAL_VALUE__FRACTION, oldFraction, fraction));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.REAL_VALUE__INTEGER:
- return getInteger();
- case UmlPropertyPackage.REAL_VALUE__FRACTION:
- return getFraction();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.REAL_VALUE__INTEGER:
- setInteger((Integer) newValue);
- return;
- case UmlPropertyPackage.REAL_VALUE__FRACTION:
- setFraction((Integer) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.REAL_VALUE__INTEGER:
- setInteger(INTEGER_EDEFAULT);
- return;
- case UmlPropertyPackage.REAL_VALUE__FRACTION:
- setFraction(FRACTION_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.REAL_VALUE__INTEGER:
- return integer != INTEGER_EDEFAULT;
- case UmlPropertyPackage.REAL_VALUE__FRACTION:
- return fraction != FRACTION_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (integer: ");
- result.append(integer);
- result.append(", fraction: ");
- result.append(fraction);
- result.append(')');
- return result.toString();
- }
-
-} // RealValueImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Real Value</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl#getInteger <em>Integer</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RealValueImpl#getFraction <em>Fraction</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class RealValueImpl extends ValueImpl implements RealValue
+{
+ /**
+ * The default value of the '{@link #getInteger() <em>Integer</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getInteger()
+ * @generated
+ * @ordered
+ */
+ protected static final int INTEGER_EDEFAULT = 0;
+
+ /**
+ * The cached value of the '{@link #getInteger() <em>Integer</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getInteger()
+ * @generated
+ * @ordered
+ */
+ protected int integer = INTEGER_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getFraction() <em>Fraction</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFraction()
+ * @generated
+ * @ordered
+ */
+ protected static final int FRACTION_EDEFAULT = 0;
+
+ /**
+ * The cached value of the '{@link #getFraction() <em>Fraction</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFraction()
+ * @generated
+ * @ordered
+ */
+ protected int fraction = FRACTION_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected RealValueImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPropertyPackage.Literals.REAL_VALUE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getInteger()
+ {
+ return integer;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setInteger(int newInteger)
+ {
+ int oldInteger = integer;
+ integer = newInteger;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.REAL_VALUE__INTEGER, oldInteger, integer));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getFraction()
+ {
+ return fraction;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setFraction(int newFraction)
+ {
+ int oldFraction = fraction;
+ fraction = newFraction;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.REAL_VALUE__FRACTION, oldFraction, fraction));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.REAL_VALUE__INTEGER:
+ return getInteger();
+ case UmlPropertyPackage.REAL_VALUE__FRACTION:
+ return getFraction();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.REAL_VALUE__INTEGER:
+ setInteger((Integer)newValue);
+ return;
+ case UmlPropertyPackage.REAL_VALUE__FRACTION:
+ setFraction((Integer)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.REAL_VALUE__INTEGER:
+ setInteger(INTEGER_EDEFAULT);
+ return;
+ case UmlPropertyPackage.REAL_VALUE__FRACTION:
+ setFraction(FRACTION_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.REAL_VALUE__INTEGER:
+ return integer != INTEGER_EDEFAULT;
+ case UmlPropertyPackage.REAL_VALUE__FRACTION:
+ return fraction != FRACTION_EDEFAULT;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (integer: ");
+ result.append(integer);
+ result.append(", fraction: ");
+ result.append(fraction);
+ result.append(')');
+ return result.toString();
+ }
+
+} //RealValueImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/RedefinesRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/RedefinesRuleImpl.java
index d108d657f25..ed32773582a 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/RedefinesRuleImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/RedefinesRuleImpl.java
@@ -1,188 +1,174 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-
-import org.eclipse.uml2.uml.Property;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Redefines Rule</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl#getProperty <em>Property</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class RedefinesRuleImpl extends MinimalEObjectImpl.Container implements RedefinesRule
-{
- /**
- * The cached value of the '{@link #getProperty() <em>Property</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getProperty()
- * @generated
- * @ordered
- */
- protected Property property;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected RedefinesRuleImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPropertyPackage.Literals.REDEFINES_RULE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Property getProperty()
- {
- if (property != null && property.eIsProxy())
- {
- InternalEObject oldProperty = (InternalEObject) property;
- property = (Property) eResolveProxy(oldProperty);
- if (property != oldProperty)
- {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPropertyPackage.REDEFINES_RULE__PROPERTY, oldProperty, property));
- }
- }
- }
- return property;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Property basicGetProperty()
- {
- return property;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setProperty(Property newProperty)
- {
- Property oldProperty = property;
- property = newProperty;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.REDEFINES_RULE__PROPERTY, oldProperty, property));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.REDEFINES_RULE__PROPERTY:
- if (resolve) {
- return getProperty();
- }
- return basicGetProperty();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.REDEFINES_RULE__PROPERTY:
- setProperty((Property) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.REDEFINES_RULE__PROPERTY:
- setProperty((Property) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.REDEFINES_RULE__PROPERTY:
- return property != null;
- }
- return super.eIsSet(featureID);
- }
-
-} // RedefinesRuleImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+
+import org.eclipse.uml2.uml.Property;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Redefines Rule</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.RedefinesRuleImpl#getProperty <em>Property</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class RedefinesRuleImpl extends MinimalEObjectImpl.Container implements RedefinesRule
+{
+ /**
+ * The cached value of the '{@link #getProperty() <em>Property</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProperty()
+ * @generated
+ * @ordered
+ */
+ protected Property property;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected RedefinesRuleImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPropertyPackage.Literals.REDEFINES_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Property getProperty()
+ {
+ if (property != null && property.eIsProxy())
+ {
+ InternalEObject oldProperty = (InternalEObject)property;
+ property = (Property)eResolveProxy(oldProperty);
+ if (property != oldProperty)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPropertyPackage.REDEFINES_RULE__PROPERTY, oldProperty, property));
+ }
+ }
+ return property;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Property basicGetProperty()
+ {
+ return property;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setProperty(Property newProperty)
+ {
+ Property oldProperty = property;
+ property = newProperty;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.REDEFINES_RULE__PROPERTY, oldProperty, property));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.REDEFINES_RULE__PROPERTY:
+ if (resolve) return getProperty();
+ return basicGetProperty();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.REDEFINES_RULE__PROPERTY:
+ setProperty((Property)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.REDEFINES_RULE__PROPERTY:
+ setProperty((Property)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.REDEFINES_RULE__PROPERTY:
+ return property != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //RedefinesRuleImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/StringValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/StringValueImpl.java
index 3f9b0016d45..5c4df834ebd 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/StringValueImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/StringValueImpl.java
@@ -1,190 +1,176 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>String Value</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl#getLiteralString <em>Literal String</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class StringValueImpl extends ValueImpl implements StringValue
-{
- /**
- * The default value of the '{@link #getLiteralString() <em>Literal String</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getLiteralString()
- * @generated
- * @ordered
- */
- protected static final String LITERAL_STRING_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getLiteralString() <em>Literal String</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getLiteralString()
- * @generated
- * @ordered
- */
- protected String literalString = LITERAL_STRING_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected StringValueImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPropertyPackage.Literals.STRING_VALUE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String getLiteralString()
- {
- return literalString;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setLiteralString(String newLiteralString)
- {
- String oldLiteralString = literalString;
- literalString = newLiteralString;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.STRING_VALUE__LITERAL_STRING, oldLiteralString, literalString));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.STRING_VALUE__LITERAL_STRING:
- return getLiteralString();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.STRING_VALUE__LITERAL_STRING:
- setLiteralString((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.STRING_VALUE__LITERAL_STRING:
- setLiteralString(LITERAL_STRING_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.STRING_VALUE__LITERAL_STRING:
- return LITERAL_STRING_EDEFAULT == null ? literalString != null : !LITERAL_STRING_EDEFAULT.equals(literalString);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (literalString: ");
- result.append(literalString);
- result.append(')');
- return result.toString();
- }
-
-} // StringValueImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>String Value</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.StringValueImpl#getLiteralString <em>Literal String</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class StringValueImpl extends ValueImpl implements StringValue
+{
+ /**
+ * The default value of the '{@link #getLiteralString() <em>Literal String</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLiteralString()
+ * @generated
+ * @ordered
+ */
+ protected static final String LITERAL_STRING_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getLiteralString() <em>Literal String</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLiteralString()
+ * @generated
+ * @ordered
+ */
+ protected String literalString = LITERAL_STRING_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected StringValueImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPropertyPackage.Literals.STRING_VALUE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteralString()
+ {
+ return literalString;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setLiteralString(String newLiteralString)
+ {
+ String oldLiteralString = literalString;
+ literalString = newLiteralString;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.STRING_VALUE__LITERAL_STRING, oldLiteralString, literalString));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.STRING_VALUE__LITERAL_STRING:
+ return getLiteralString();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.STRING_VALUE__LITERAL_STRING:
+ setLiteralString((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.STRING_VALUE__LITERAL_STRING:
+ setLiteralString(LITERAL_STRING_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.STRING_VALUE__LITERAL_STRING:
+ return LITERAL_STRING_EDEFAULT == null ? literalString != null : !LITERAL_STRING_EDEFAULT.equals(literalString);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (literalString: ");
+ result.append(literalString);
+ result.append(')');
+ return result.toString();
+ }
+
+} //StringValueImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/SubsetsRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/SubsetsRuleImpl.java
index 72a92cf31f6..7048f9c5dd3 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/SubsetsRuleImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/SubsetsRuleImpl.java
@@ -1,188 +1,174 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-
-import org.eclipse.uml2.uml.Property;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Subsets Rule</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl#getProperty <em>Property</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class SubsetsRuleImpl extends MinimalEObjectImpl.Container implements SubsetsRule
-{
- /**
- * The cached value of the '{@link #getProperty() <em>Property</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getProperty()
- * @generated
- * @ordered
- */
- protected Property property;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected SubsetsRuleImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPropertyPackage.Literals.SUBSETS_RULE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Property getProperty()
- {
- if (property != null && property.eIsProxy())
- {
- InternalEObject oldProperty = (InternalEObject) property;
- property = (Property) eResolveProxy(oldProperty);
- if (property != oldProperty)
- {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPropertyPackage.SUBSETS_RULE__PROPERTY, oldProperty, property));
- }
- }
- }
- return property;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Property basicGetProperty()
- {
- return property;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setProperty(Property newProperty)
- {
- Property oldProperty = property;
- property = newProperty;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.SUBSETS_RULE__PROPERTY, oldProperty, property));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.SUBSETS_RULE__PROPERTY:
- if (resolve) {
- return getProperty();
- }
- return basicGetProperty();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.SUBSETS_RULE__PROPERTY:
- setProperty((Property) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.SUBSETS_RULE__PROPERTY:
- setProperty((Property) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.SUBSETS_RULE__PROPERTY:
- return property != null;
- }
- return super.eIsSet(featureID);
- }
-
-} // SubsetsRuleImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+
+import org.eclipse.uml2.uml.Property;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Subsets Rule</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.SubsetsRuleImpl#getProperty <em>Property</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class SubsetsRuleImpl extends MinimalEObjectImpl.Container implements SubsetsRule
+{
+ /**
+ * The cached value of the '{@link #getProperty() <em>Property</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProperty()
+ * @generated
+ * @ordered
+ */
+ protected Property property;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected SubsetsRuleImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPropertyPackage.Literals.SUBSETS_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Property getProperty()
+ {
+ if (property != null && property.eIsProxy())
+ {
+ InternalEObject oldProperty = (InternalEObject)property;
+ property = (Property)eResolveProxy(oldProperty);
+ if (property != oldProperty)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPropertyPackage.SUBSETS_RULE__PROPERTY, oldProperty, property));
+ }
+ }
+ return property;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Property basicGetProperty()
+ {
+ return property;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setProperty(Property newProperty)
+ {
+ Property oldProperty = property;
+ property = newProperty;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.SUBSETS_RULE__PROPERTY, oldProperty, property));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.SUBSETS_RULE__PROPERTY:
+ if (resolve) return getProperty();
+ return basicGetProperty();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.SUBSETS_RULE__PROPERTY:
+ setProperty((Property)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.SUBSETS_RULE__PROPERTY:
+ setProperty((Property)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.SUBSETS_RULE__PROPERTY:
+ return property != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //SubsetsRuleImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/TypeRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/TypeRuleImpl.java
index e58d5e2c68c..25392823729 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/TypeRuleImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/TypeRuleImpl.java
@@ -1,289 +1,261 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-
-import org.eclipse.uml2.uml.Classifier;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Type Rule</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl#getPath <em>Path</em>}</li>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl#getType <em>Type</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class TypeRuleImpl extends MinimalEObjectImpl.Container implements TypeRule
-{
- /**
- * The cached value of the '{@link #getPath() <em>Path</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getPath()
- * @generated
- * @ordered
- */
- protected QualifiedName path;
-
- /**
- * The cached value of the '{@link #getType() <em>Type</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getType()
- * @generated
- * @ordered
- */
- protected Classifier type;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected TypeRuleImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPropertyPackage.Literals.TYPE_RULE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public QualifiedName getPath()
- {
- return path;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetPath(QualifiedName newPath, NotificationChain msgs)
- {
- QualifiedName oldPath = path;
- path = newPath;
- if (eNotificationRequired())
- {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.TYPE_RULE__PATH, oldPath, newPath);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setPath(QualifiedName newPath)
- {
- if (newPath != path)
- {
- NotificationChain msgs = null;
- if (path != null) {
- msgs = ((InternalEObject) path).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.TYPE_RULE__PATH, null, msgs);
- }
- if (newPath != null) {
- msgs = ((InternalEObject) newPath).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.TYPE_RULE__PATH, null, msgs);
- }
- msgs = basicSetPath(newPath, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- }
- else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.TYPE_RULE__PATH, newPath, newPath));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Classifier getType()
- {
- if (type != null && type.eIsProxy())
- {
- InternalEObject oldType = (InternalEObject) type;
- type = (Classifier) eResolveProxy(oldType);
- if (type != oldType)
- {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPropertyPackage.TYPE_RULE__TYPE, oldType, type));
- }
- }
- }
- return type;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Classifier basicGetType()
- {
- return type;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setType(Classifier newType)
- {
- Classifier oldType = type;
- type = newType;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.TYPE_RULE__TYPE, oldType, type));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.TYPE_RULE__PATH:
- return basicSetPath(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.TYPE_RULE__PATH:
- return getPath();
- case UmlPropertyPackage.TYPE_RULE__TYPE:
- if (resolve) {
- return getType();
- }
- return basicGetType();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.TYPE_RULE__PATH:
- setPath((QualifiedName) newValue);
- return;
- case UmlPropertyPackage.TYPE_RULE__TYPE:
- setType((Classifier) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.TYPE_RULE__PATH:
- setPath((QualifiedName) null);
- return;
- case UmlPropertyPackage.TYPE_RULE__TYPE:
- setType((Classifier) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.TYPE_RULE__PATH:
- return path != null;
- case UmlPropertyPackage.TYPE_RULE__TYPE:
- return type != null;
- }
- return super.eIsSet(featureID);
- }
-
-} // TypeRuleImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+
+import org.eclipse.uml2.uml.Classifier;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Type Rule</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl#getPath <em>Path</em>}</li>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.TypeRuleImpl#getType <em>Type</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class TypeRuleImpl extends MinimalEObjectImpl.Container implements TypeRule
+{
+ /**
+ * The cached value of the '{@link #getPath() <em>Path</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPath()
+ * @generated
+ * @ordered
+ */
+ protected QualifiedName path;
+
+ /**
+ * The cached value of the '{@link #getType() <em>Type</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected Classifier type;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected TypeRuleImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPropertyPackage.Literals.TYPE_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public QualifiedName getPath()
+ {
+ return path;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetPath(QualifiedName newPath, NotificationChain msgs)
+ {
+ QualifiedName oldPath = path;
+ path = newPath;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.TYPE_RULE__PATH, oldPath, newPath);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPath(QualifiedName newPath)
+ {
+ if (newPath != path)
+ {
+ NotificationChain msgs = null;
+ if (path != null)
+ msgs = ((InternalEObject)path).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.TYPE_RULE__PATH, null, msgs);
+ if (newPath != null)
+ msgs = ((InternalEObject)newPath).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UmlPropertyPackage.TYPE_RULE__PATH, null, msgs);
+ msgs = basicSetPath(newPath, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.TYPE_RULE__PATH, newPath, newPath));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Classifier getType()
+ {
+ if (type != null && type.eIsProxy())
+ {
+ InternalEObject oldType = (InternalEObject)type;
+ type = (Classifier)eResolveProxy(oldType);
+ if (type != oldType)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, UmlPropertyPackage.TYPE_RULE__TYPE, oldType, type));
+ }
+ }
+ return type;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Classifier basicGetType()
+ {
+ return type;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setType(Classifier newType)
+ {
+ Classifier oldType = type;
+ type = newType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.TYPE_RULE__TYPE, oldType, type));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.TYPE_RULE__PATH:
+ return basicSetPath(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.TYPE_RULE__PATH:
+ return getPath();
+ case UmlPropertyPackage.TYPE_RULE__TYPE:
+ if (resolve) return getType();
+ return basicGetType();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.TYPE_RULE__PATH:
+ setPath((QualifiedName)newValue);
+ return;
+ case UmlPropertyPackage.TYPE_RULE__TYPE:
+ setType((Classifier)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.TYPE_RULE__PATH:
+ setPath((QualifiedName)null);
+ return;
+ case UmlPropertyPackage.TYPE_RULE__TYPE:
+ setType((Classifier)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.TYPE_RULE__PATH:
+ return path != null;
+ case UmlPropertyPackage.TYPE_RULE__TYPE:
+ return type != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //TypeRuleImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/UmlPropertyFactoryImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/UmlPropertyFactoryImpl.java
index d79d9dacecb..dbc76e179d6 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/UmlPropertyFactoryImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/UmlPropertyFactoryImpl.java
@@ -1,474 +1,419 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EDataType;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-
-import org.eclipse.emf.ecore.plugin.EcorePlugin;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.*;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class UmlPropertyFactoryImpl extends EFactoryImpl implements UmlPropertyFactory
-{
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static UmlPropertyFactory init()
- {
- try
- {
- UmlPropertyFactory theUmlPropertyFactory = (UmlPropertyFactory) EPackage.Registry.INSTANCE.getEFactory(UmlPropertyPackage.eNS_URI);
- if (theUmlPropertyFactory != null)
- {
- return theUmlPropertyFactory;
- }
- } catch (Exception exception)
- {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new UmlPropertyFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public UmlPropertyFactoryImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass)
- {
- switch (eClass.getClassifierID())
- {
- case UmlPropertyPackage.PROPERTY_RULE:
- return createPropertyRule();
- case UmlPropertyPackage.VISIBILITY_RULE:
- return createVisibilityRule();
- case UmlPropertyPackage.TYPE_RULE:
- return createTypeRule();
- case UmlPropertyPackage.QUALIFIED_NAME:
- return createQualifiedName();
- case UmlPropertyPackage.MULTIPLICITY_RULE:
- return createMultiplicityRule();
- case UmlPropertyPackage.BOUND_SPECIFICATION:
- return createBoundSpecification();
- case UmlPropertyPackage.MODIFIERS_RULE:
- return createModifiersRule();
- case UmlPropertyPackage.MODIFIER_SPECIFICATION:
- return createModifierSpecification();
- case UmlPropertyPackage.REDEFINES_RULE:
- return createRedefinesRule();
- case UmlPropertyPackage.SUBSETS_RULE:
- return createSubsetsRule();
- case UmlPropertyPackage.DEFAULT_VALUE_RULE:
- return createDefaultValueRule();
- case UmlPropertyPackage.VALUE:
- return createValue();
- case UmlPropertyPackage.INT_VALUE:
- return createIntValue();
- case UmlPropertyPackage.STRING_VALUE:
- return createStringValue();
- case UmlPropertyPackage.BOOLEAN_VALUE:
- return createBooleanValue();
- case UmlPropertyPackage.REAL_VALUE:
- return createRealValue();
- case UmlPropertyPackage.NULL_VALUE:
- return createNullValue();
- case UmlPropertyPackage.NO_VALUE:
- return createNoValue();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object createFromString(EDataType eDataType, String initialValue)
- {
- switch (eDataType.getClassifierID())
- {
- case UmlPropertyPackage.VISIBILITY_KIND:
- return createVisibilityKindFromString(eDataType, initialValue);
- case UmlPropertyPackage.MODIFIER_KIND:
- return createModifierKindFromString(eDataType, initialValue);
- case UmlPropertyPackage.BOOLEAN_LITERALS:
- return createBooleanLiteralsFromString(eDataType, initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String convertToString(EDataType eDataType, Object instanceValue)
- {
- switch (eDataType.getClassifierID())
- {
- case UmlPropertyPackage.VISIBILITY_KIND:
- return convertVisibilityKindToString(eDataType, instanceValue);
- case UmlPropertyPackage.MODIFIER_KIND:
- return convertModifierKindToString(eDataType, instanceValue);
- case UmlPropertyPackage.BOOLEAN_LITERALS:
- return convertBooleanLiteralsToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public PropertyRule createPropertyRule()
- {
- PropertyRuleImpl propertyRule = new PropertyRuleImpl();
- return propertyRule;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public VisibilityRule createVisibilityRule()
- {
- VisibilityRuleImpl visibilityRule = new VisibilityRuleImpl();
- return visibilityRule;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public TypeRule createTypeRule()
- {
- TypeRuleImpl typeRule = new TypeRuleImpl();
- return typeRule;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public QualifiedName createQualifiedName()
- {
- QualifiedNameImpl qualifiedName = new QualifiedNameImpl();
- return qualifiedName;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public MultiplicityRule createMultiplicityRule()
- {
- MultiplicityRuleImpl multiplicityRule = new MultiplicityRuleImpl();
- return multiplicityRule;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public BoundSpecification createBoundSpecification()
- {
- BoundSpecificationImpl boundSpecification = new BoundSpecificationImpl();
- return boundSpecification;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ModifiersRule createModifiersRule()
- {
- ModifiersRuleImpl modifiersRule = new ModifiersRuleImpl();
- return modifiersRule;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ModifierSpecification createModifierSpecification()
- {
- ModifierSpecificationImpl modifierSpecification = new ModifierSpecificationImpl();
- return modifierSpecification;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public RedefinesRule createRedefinesRule()
- {
- RedefinesRuleImpl redefinesRule = new RedefinesRuleImpl();
- return redefinesRule;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public SubsetsRule createSubsetsRule()
- {
- SubsetsRuleImpl subsetsRule = new SubsetsRuleImpl();
- return subsetsRule;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public DefaultValueRule createDefaultValueRule()
- {
- DefaultValueRuleImpl defaultValueRule = new DefaultValueRuleImpl();
- return defaultValueRule;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Value createValue()
- {
- ValueImpl value = new ValueImpl();
- return value;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public IntValue createIntValue()
- {
- IntValueImpl intValue = new IntValueImpl();
- return intValue;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public StringValue createStringValue()
- {
- StringValueImpl stringValue = new StringValueImpl();
- return stringValue;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public BooleanValue createBooleanValue()
- {
- BooleanValueImpl booleanValue = new BooleanValueImpl();
- return booleanValue;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public RealValue createRealValue()
- {
- RealValueImpl realValue = new RealValueImpl();
- return realValue;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NullValue createNullValue()
- {
- NullValueImpl nullValue = new NullValueImpl();
- return nullValue;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NoValue createNoValue()
- {
- NoValueImpl noValue = new NoValueImpl();
- return noValue;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public VisibilityKind createVisibilityKindFromString(EDataType eDataType, String initialValue)
- {
- VisibilityKind result = VisibilityKind.get(initialValue);
- if (result == null) {
- throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- }
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String convertVisibilityKindToString(EDataType eDataType, Object instanceValue)
- {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ModifierKind createModifierKindFromString(EDataType eDataType, String initialValue)
- {
- ModifierKind result = ModifierKind.get(initialValue);
- if (result == null) {
- throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- }
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String convertModifierKindToString(EDataType eDataType, Object instanceValue)
- {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public BooleanLiterals createBooleanLiteralsFromString(EDataType eDataType, String initialValue)
- {
- BooleanLiterals result = BooleanLiterals.get(initialValue);
- if (result == null) {
- throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
- }
- return result;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public String convertBooleanLiteralsToString(EDataType eDataType, Object instanceValue)
- {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public UmlPropertyPackage getUmlPropertyPackage()
- {
- return (UmlPropertyPackage) getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static UmlPropertyPackage getPackage()
- {
- return UmlPropertyPackage.eINSTANCE;
- }
-
-} // UmlPropertyFactoryImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class UmlPropertyFactoryImpl extends EFactoryImpl implements UmlPropertyFactory
+{
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static UmlPropertyFactory init()
+ {
+ try
+ {
+ UmlPropertyFactory theUmlPropertyFactory = (UmlPropertyFactory)EPackage.Registry.INSTANCE.getEFactory(UmlPropertyPackage.eNS_URI);
+ if (theUmlPropertyFactory != null)
+ {
+ return theUmlPropertyFactory;
+ }
+ }
+ catch (Exception exception)
+ {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new UmlPropertyFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public UmlPropertyFactoryImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass)
+ {
+ switch (eClass.getClassifierID())
+ {
+ case UmlPropertyPackage.PROPERTY_RULE: return createPropertyRule();
+ case UmlPropertyPackage.VISIBILITY_RULE: return createVisibilityRule();
+ case UmlPropertyPackage.TYPE_RULE: return createTypeRule();
+ case UmlPropertyPackage.QUALIFIED_NAME: return createQualifiedName();
+ case UmlPropertyPackage.MULTIPLICITY_RULE: return createMultiplicityRule();
+ case UmlPropertyPackage.BOUND_SPECIFICATION: return createBoundSpecification();
+ case UmlPropertyPackage.MODIFIERS_RULE: return createModifiersRule();
+ case UmlPropertyPackage.MODIFIER_SPECIFICATION: return createModifierSpecification();
+ case UmlPropertyPackage.REDEFINES_RULE: return createRedefinesRule();
+ case UmlPropertyPackage.SUBSETS_RULE: return createSubsetsRule();
+ case UmlPropertyPackage.DEFAULT_VALUE_RULE: return createDefaultValueRule();
+ case UmlPropertyPackage.VALUE: return createValue();
+ case UmlPropertyPackage.INT_VALUE: return createIntValue();
+ case UmlPropertyPackage.STRING_VALUE: return createStringValue();
+ case UmlPropertyPackage.BOOLEAN_VALUE: return createBooleanValue();
+ case UmlPropertyPackage.REAL_VALUE: return createRealValue();
+ case UmlPropertyPackage.NULL_VALUE: return createNullValue();
+ case UmlPropertyPackage.NO_VALUE: return createNoValue();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object createFromString(EDataType eDataType, String initialValue)
+ {
+ switch (eDataType.getClassifierID())
+ {
+ case UmlPropertyPackage.VISIBILITY_KIND:
+ return createVisibilityKindFromString(eDataType, initialValue);
+ case UmlPropertyPackage.MODIFIER_KIND:
+ return createModifierKindFromString(eDataType, initialValue);
+ case UmlPropertyPackage.BOOLEAN_LITERALS:
+ return createBooleanLiteralsFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String convertToString(EDataType eDataType, Object instanceValue)
+ {
+ switch (eDataType.getClassifierID())
+ {
+ case UmlPropertyPackage.VISIBILITY_KIND:
+ return convertVisibilityKindToString(eDataType, instanceValue);
+ case UmlPropertyPackage.MODIFIER_KIND:
+ return convertModifierKindToString(eDataType, instanceValue);
+ case UmlPropertyPackage.BOOLEAN_LITERALS:
+ return convertBooleanLiteralsToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public PropertyRule createPropertyRule()
+ {
+ PropertyRuleImpl propertyRule = new PropertyRuleImpl();
+ return propertyRule;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public VisibilityRule createVisibilityRule()
+ {
+ VisibilityRuleImpl visibilityRule = new VisibilityRuleImpl();
+ return visibilityRule;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public TypeRule createTypeRule()
+ {
+ TypeRuleImpl typeRule = new TypeRuleImpl();
+ return typeRule;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public QualifiedName createQualifiedName()
+ {
+ QualifiedNameImpl qualifiedName = new QualifiedNameImpl();
+ return qualifiedName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public MultiplicityRule createMultiplicityRule()
+ {
+ MultiplicityRuleImpl multiplicityRule = new MultiplicityRuleImpl();
+ return multiplicityRule;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public BoundSpecification createBoundSpecification()
+ {
+ BoundSpecificationImpl boundSpecification = new BoundSpecificationImpl();
+ return boundSpecification;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ModifiersRule createModifiersRule()
+ {
+ ModifiersRuleImpl modifiersRule = new ModifiersRuleImpl();
+ return modifiersRule;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ModifierSpecification createModifierSpecification()
+ {
+ ModifierSpecificationImpl modifierSpecification = new ModifierSpecificationImpl();
+ return modifierSpecification;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RedefinesRule createRedefinesRule()
+ {
+ RedefinesRuleImpl redefinesRule = new RedefinesRuleImpl();
+ return redefinesRule;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SubsetsRule createSubsetsRule()
+ {
+ SubsetsRuleImpl subsetsRule = new SubsetsRuleImpl();
+ return subsetsRule;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DefaultValueRule createDefaultValueRule()
+ {
+ DefaultValueRuleImpl defaultValueRule = new DefaultValueRuleImpl();
+ return defaultValueRule;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Value createValue()
+ {
+ ValueImpl value = new ValueImpl();
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IntValue createIntValue()
+ {
+ IntValueImpl intValue = new IntValueImpl();
+ return intValue;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public StringValue createStringValue()
+ {
+ StringValueImpl stringValue = new StringValueImpl();
+ return stringValue;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public BooleanValue createBooleanValue()
+ {
+ BooleanValueImpl booleanValue = new BooleanValueImpl();
+ return booleanValue;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RealValue createRealValue()
+ {
+ RealValueImpl realValue = new RealValueImpl();
+ return realValue;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NullValue createNullValue()
+ {
+ NullValueImpl nullValue = new NullValueImpl();
+ return nullValue;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NoValue createNoValue()
+ {
+ NoValueImpl noValue = new NoValueImpl();
+ return noValue;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public VisibilityKind createVisibilityKindFromString(EDataType eDataType, String initialValue)
+ {
+ VisibilityKind result = VisibilityKind.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertVisibilityKindToString(EDataType eDataType, Object instanceValue)
+ {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ModifierKind createModifierKindFromString(EDataType eDataType, String initialValue)
+ {
+ ModifierKind result = ModifierKind.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertModifierKindToString(EDataType eDataType, Object instanceValue)
+ {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public BooleanLiterals createBooleanLiteralsFromString(EDataType eDataType, String initialValue)
+ {
+ BooleanLiterals result = BooleanLiterals.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertBooleanLiteralsToString(EDataType eDataType, Object instanceValue)
+ {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public UmlPropertyPackage getUmlPropertyPackage()
+ {
+ return (UmlPropertyPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static UmlPropertyPackage getPackage()
+ {
+ return UmlPropertyPackage.eINSTANCE;
+ }
+
+} //UmlPropertyFactoryImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/UmlPropertyPackageImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/UmlPropertyPackageImpl.java
index f5d1968771e..3af3d3a76e9 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/UmlPropertyPackageImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/UmlPropertyPackageImpl.java
@@ -1,1049 +1,965 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EEnum;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.EcorePackage;
-
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyFactory;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule;
-
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class UmlPropertyPackageImpl extends EPackageImpl implements UmlPropertyPackage
-{
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass propertyRuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass visibilityRuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass typeRuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass qualifiedNameEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass multiplicityRuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass boundSpecificationEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass modifiersRuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass modifierSpecificationEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass redefinesRuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass subsetsRuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass defaultValueRuleEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass valueEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass intValueEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass stringValueEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass booleanValueEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass realValueEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass nullValueEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass noValueEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EEnum visibilityKindEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EEnum modifierKindEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EEnum booleanLiteralsEEnum = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
- * package URI value.
- * <p>
- * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also performs initialization of the package, or returns the registered package, if one already exists. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private UmlPropertyPackageImpl()
- {
- super(eNS_URI, UmlPropertyFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
- *
- * <p>
- * This method is used to initialize {@link UmlPropertyPackage#eINSTANCE} when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static UmlPropertyPackage init()
- {
- if (isInited) {
- return (UmlPropertyPackage) EPackage.Registry.INSTANCE.getEPackage(UmlPropertyPackage.eNS_URI);
- }
-
- // Obtain or create and register package
- UmlPropertyPackageImpl theUmlPropertyPackage = (UmlPropertyPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof UmlPropertyPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new UmlPropertyPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- UMLPackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- theUmlPropertyPackage.createPackageContents();
-
- // Initialize created meta-data
- theUmlPropertyPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theUmlPropertyPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(UmlPropertyPackage.eNS_URI, theUmlPropertyPackage);
- return theUmlPropertyPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getPropertyRule()
- {
- return propertyRuleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getPropertyRule_Visibility()
- {
- return (EReference) propertyRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getPropertyRule_Derived()
- {
- return (EAttribute) propertyRuleEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getPropertyRule_Name()
- {
- return (EAttribute) propertyRuleEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getPropertyRule_Type()
- {
- return (EReference) propertyRuleEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getPropertyRule_TypeUndefined()
- {
- return (EAttribute) propertyRuleEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getPropertyRule_Multiplicity()
- {
- return (EReference) propertyRuleEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getPropertyRule_Modifiers()
- {
- return (EReference) propertyRuleEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getPropertyRule_Default()
- {
- return (EReference) propertyRuleEClass.getEStructuralFeatures().get(7);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getVisibilityRule()
- {
- return visibilityRuleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getVisibilityRule_Visibility()
- {
- return (EAttribute) visibilityRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getTypeRule()
- {
- return typeRuleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getTypeRule_Path()
- {
- return (EReference) typeRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getTypeRule_Type()
- {
- return (EReference) typeRuleEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getQualifiedName()
- {
- return qualifiedNameEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getQualifiedName_Path()
- {
- return (EReference) qualifiedNameEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getQualifiedName_Remaining()
- {
- return (EReference) qualifiedNameEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getMultiplicityRule()
- {
- return multiplicityRuleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getMultiplicityRule_Bounds()
- {
- return (EReference) multiplicityRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getBoundSpecification()
- {
- return boundSpecificationEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getBoundSpecification_Value()
- {
- return (EAttribute) boundSpecificationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getModifiersRule()
- {
- return modifiersRuleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getModifiersRule_Values()
- {
- return (EReference) modifiersRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getModifierSpecification()
- {
- return modifierSpecificationEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getModifierSpecification_Value()
- {
- return (EAttribute) modifierSpecificationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getModifierSpecification_Redefines()
- {
- return (EReference) modifierSpecificationEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getModifierSpecification_Subsets()
- {
- return (EReference) modifierSpecificationEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getRedefinesRule()
- {
- return redefinesRuleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRedefinesRule_Property()
- {
- return (EReference) redefinesRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getSubsetsRule()
- {
- return subsetsRuleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getSubsetsRule_Property()
- {
- return (EReference) subsetsRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getDefaultValueRule()
- {
- return defaultValueRuleEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getDefaultValueRule_Default()
- {
- return (EReference) defaultValueRuleEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getValue()
- {
- return valueEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getIntValue()
- {
- return intValueEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getIntValue_LiteralInteger()
- {
- return (EAttribute) intValueEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getStringValue()
- {
- return stringValueEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getStringValue_LiteralString()
- {
- return (EAttribute) stringValueEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getBooleanValue()
- {
- return booleanValueEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getBooleanValue_LiteralBoolean()
- {
- return (EAttribute) booleanValueEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getRealValue()
- {
- return realValueEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getRealValue_Integer()
- {
- return (EAttribute) realValueEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getRealValue_Fraction()
- {
- return (EAttribute) realValueEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getNullValue()
- {
- return nullValueEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getNoValue()
- {
- return noValueEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EEnum getVisibilityKind()
- {
- return visibilityKindEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EEnum getModifierKind()
- {
- return modifierKindEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public EEnum getBooleanLiterals()
- {
- return booleanLiteralsEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public UmlPropertyFactory getUmlPropertyFactory()
- {
- return (UmlPropertyFactory) getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void createPackageContents()
- {
- if (isCreated) {
- return;
- }
- isCreated = true;
-
- // Create classes and their features
- propertyRuleEClass = createEClass(PROPERTY_RULE);
- createEReference(propertyRuleEClass, PROPERTY_RULE__VISIBILITY);
- createEAttribute(propertyRuleEClass, PROPERTY_RULE__DERIVED);
- createEAttribute(propertyRuleEClass, PROPERTY_RULE__NAME);
- createEReference(propertyRuleEClass, PROPERTY_RULE__TYPE);
- createEAttribute(propertyRuleEClass, PROPERTY_RULE__TYPE_UNDEFINED);
- createEReference(propertyRuleEClass, PROPERTY_RULE__MULTIPLICITY);
- createEReference(propertyRuleEClass, PROPERTY_RULE__MODIFIERS);
- createEReference(propertyRuleEClass, PROPERTY_RULE__DEFAULT);
-
- visibilityRuleEClass = createEClass(VISIBILITY_RULE);
- createEAttribute(visibilityRuleEClass, VISIBILITY_RULE__VISIBILITY);
-
- typeRuleEClass = createEClass(TYPE_RULE);
- createEReference(typeRuleEClass, TYPE_RULE__PATH);
- createEReference(typeRuleEClass, TYPE_RULE__TYPE);
-
- qualifiedNameEClass = createEClass(QUALIFIED_NAME);
- createEReference(qualifiedNameEClass, QUALIFIED_NAME__PATH);
- createEReference(qualifiedNameEClass, QUALIFIED_NAME__REMAINING);
-
- multiplicityRuleEClass = createEClass(MULTIPLICITY_RULE);
- createEReference(multiplicityRuleEClass, MULTIPLICITY_RULE__BOUNDS);
-
- boundSpecificationEClass = createEClass(BOUND_SPECIFICATION);
- createEAttribute(boundSpecificationEClass, BOUND_SPECIFICATION__VALUE);
-
- modifiersRuleEClass = createEClass(MODIFIERS_RULE);
- createEReference(modifiersRuleEClass, MODIFIERS_RULE__VALUES);
-
- modifierSpecificationEClass = createEClass(MODIFIER_SPECIFICATION);
- createEAttribute(modifierSpecificationEClass, MODIFIER_SPECIFICATION__VALUE);
- createEReference(modifierSpecificationEClass, MODIFIER_SPECIFICATION__REDEFINES);
- createEReference(modifierSpecificationEClass, MODIFIER_SPECIFICATION__SUBSETS);
-
- redefinesRuleEClass = createEClass(REDEFINES_RULE);
- createEReference(redefinesRuleEClass, REDEFINES_RULE__PROPERTY);
-
- subsetsRuleEClass = createEClass(SUBSETS_RULE);
- createEReference(subsetsRuleEClass, SUBSETS_RULE__PROPERTY);
-
- defaultValueRuleEClass = createEClass(DEFAULT_VALUE_RULE);
- createEReference(defaultValueRuleEClass, DEFAULT_VALUE_RULE__DEFAULT);
-
- valueEClass = createEClass(VALUE);
-
- intValueEClass = createEClass(INT_VALUE);
- createEAttribute(intValueEClass, INT_VALUE__LITERAL_INTEGER);
-
- stringValueEClass = createEClass(STRING_VALUE);
- createEAttribute(stringValueEClass, STRING_VALUE__LITERAL_STRING);
-
- booleanValueEClass = createEClass(BOOLEAN_VALUE);
- createEAttribute(booleanValueEClass, BOOLEAN_VALUE__LITERAL_BOOLEAN);
-
- realValueEClass = createEClass(REAL_VALUE);
- createEAttribute(realValueEClass, REAL_VALUE__INTEGER);
- createEAttribute(realValueEClass, REAL_VALUE__FRACTION);
-
- nullValueEClass = createEClass(NULL_VALUE);
-
- noValueEClass = createEClass(NO_VALUE);
-
- // Create enums
- visibilityKindEEnum = createEEnum(VISIBILITY_KIND);
- modifierKindEEnum = createEEnum(MODIFIER_KIND);
- booleanLiteralsEEnum = createEEnum(BOOLEAN_LITERALS);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void initializePackageContents()
- {
- if (isInitialized) {
- return;
- }
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Obtain other dependent packages
- EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
- UMLPackage theUMLPackage = (UMLPackage) EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- intValueEClass.getESuperTypes().add(this.getValue());
- stringValueEClass.getESuperTypes().add(this.getValue());
- booleanValueEClass.getESuperTypes().add(this.getValue());
- realValueEClass.getESuperTypes().add(this.getValue());
- nullValueEClass.getESuperTypes().add(this.getValue());
- noValueEClass.getESuperTypes().add(this.getValue());
-
- // Initialize classes and features; add operations and parameters
- initEClass(propertyRuleEClass, PropertyRule.class, "PropertyRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getPropertyRule_Visibility(), this.getVisibilityRule(), null, "visibility", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
- initEAttribute(getPropertyRule_Derived(), theEcorePackage.getEBoolean(), "derived", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPropertyRule_Name(), theEcorePackage.getEString(), "name", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getPropertyRule_Type(), this.getTypeRule(), null, "type", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getPropertyRule_TypeUndefined(), theEcorePackage.getEBoolean(), "typeUndefined", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getPropertyRule_Multiplicity(), this.getMultiplicityRule(), null, "multiplicity", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
- initEReference(getPropertyRule_Modifiers(), this.getModifiersRule(), null, "modifiers", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getPropertyRule_Default(), this.getDefaultValueRule(), null, "default", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(visibilityRuleEClass, VisibilityRule.class, "VisibilityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getVisibilityRule_Visibility(), this.getVisibilityKind(), "visibility", null, 0, 1, VisibilityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(typeRuleEClass, TypeRule.class, "TypeRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getTypeRule_Path(), this.getQualifiedName(), null, "path", null, 0, 1, TypeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTypeRule_Type(), theUMLPackage.getClassifier(), null, "type", null, 0, 1, TypeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(qualifiedNameEClass, QualifiedName.class, "QualifiedName", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getQualifiedName_Path(), theUMLPackage.getNamespace(), null, "path", null, 0, 1, QualifiedName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getQualifiedName_Remaining(), this.getQualifiedName(), null, "remaining", null, 0, 1, QualifiedName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(multiplicityRuleEClass, MultiplicityRule.class, "MultiplicityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getMultiplicityRule_Bounds(), this.getBoundSpecification(), null, "bounds", null, 0, -1, MultiplicityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
-
- initEClass(boundSpecificationEClass, BoundSpecification.class, "BoundSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getBoundSpecification_Value(), theEcorePackage.getEString(), "value", null, 0, 1, BoundSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(modifiersRuleEClass, ModifiersRule.class, "ModifiersRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getModifiersRule_Values(), this.getModifierSpecification(), null, "values", null, 0, -1, ModifiersRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
-
- initEClass(modifierSpecificationEClass, ModifierSpecification.class, "ModifierSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getModifierSpecification_Value(), this.getModifierKind(), "value", null, 0, 1, ModifierSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getModifierSpecification_Redefines(), this.getRedefinesRule(), null, "redefines", null, 0, 1, ModifierSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
- !IS_DERIVED, IS_ORDERED);
- initEReference(getModifierSpecification_Subsets(), this.getSubsetsRule(), null, "subsets", null, 0, 1, ModifierSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
-
- initEClass(redefinesRuleEClass, RedefinesRule.class, "RedefinesRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getRedefinesRule_Property(), theUMLPackage.getProperty(), null, "property", null, 0, 1, RedefinesRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
-
- initEClass(subsetsRuleEClass, SubsetsRule.class, "SubsetsRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getSubsetsRule_Property(), theUMLPackage.getProperty(), null, "property", null, 0, 1, SubsetsRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(defaultValueRuleEClass, DefaultValueRule.class, "DefaultValueRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getDefaultValueRule_Default(), this.getValue(), null, "default", null, 0, 1, DefaultValueRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(valueEClass, Value.class, "Value", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(intValueEClass, IntValue.class, "IntValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getIntValue_LiteralInteger(), theEcorePackage.getEInt(), "literalInteger", null, 0, 1, IntValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(stringValueEClass, StringValue.class, "StringValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getStringValue_LiteralString(), theEcorePackage.getEString(), "literalString", null, 0, 1, StringValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(booleanValueEClass, BooleanValue.class, "BooleanValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getBooleanValue_LiteralBoolean(), this.getBooleanLiterals(), "literalBoolean", null, 0, 1, BooleanValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(realValueEClass, RealValue.class, "RealValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getRealValue_Integer(), theEcorePackage.getEInt(), "integer", null, 0, 1, RealValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getRealValue_Fraction(), theEcorePackage.getEInt(), "fraction", null, 0, 1, RealValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(nullValueEClass, NullValue.class, "NullValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(noValueEClass, NoValue.class, "NoValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- // Initialize enums and add enum literals
- initEEnum(visibilityKindEEnum, VisibilityKind.class, "VisibilityKind");
- addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PUBLIC);
- addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PRIVATE);
- addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PROTECTED);
- addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PACKAGE);
-
- initEEnum(modifierKindEEnum, ModifierKind.class, "ModifierKind");
- addEEnumLiteral(modifierKindEEnum, ModifierKind.READ_ONLY);
- addEEnumLiteral(modifierKindEEnum, ModifierKind.UNION);
- addEEnumLiteral(modifierKindEEnum, ModifierKind.ORDERED);
- addEEnumLiteral(modifierKindEEnum, ModifierKind.UNIQUE);
-
- initEEnum(booleanLiteralsEEnum, BooleanLiterals.class, "BooleanLiterals");
- addEEnumLiteral(booleanLiteralsEEnum, BooleanLiterals.TRUE);
- addEEnumLiteral(booleanLiteralsEEnum, BooleanLiterals.FALSE);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} // UmlPropertyPackageImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.EcorePackage;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanLiterals;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierKind;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyFactory;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule;
+
+import org.eclipse.uml2.uml.UMLPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class UmlPropertyPackageImpl extends EPackageImpl implements UmlPropertyPackage
+{
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass propertyRuleEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass visibilityRuleEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass typeRuleEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass qualifiedNameEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass multiplicityRuleEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass boundSpecificationEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass modifiersRuleEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass modifierSpecificationEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass redefinesRuleEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass subsetsRuleEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass defaultValueRuleEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass valueEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass intValueEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass stringValueEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass booleanValueEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass realValueEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass nullValueEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass noValueEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum visibilityKindEEnum = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum modifierKindEEnum = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum booleanLiteralsEEnum = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ * <p>Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private UmlPropertyPackageImpl()
+ {
+ super(eNS_URI, UmlPropertyFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ *
+ * <p>This method is used to initialize {@link UmlPropertyPackage#eINSTANCE} when that field is accessed.
+ * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static UmlPropertyPackage init()
+ {
+ if (isInited) return (UmlPropertyPackage)EPackage.Registry.INSTANCE.getEPackage(UmlPropertyPackage.eNS_URI);
+
+ // Obtain or create and register package
+ UmlPropertyPackageImpl theUmlPropertyPackage = (UmlPropertyPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof UmlPropertyPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new UmlPropertyPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ UMLPackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ theUmlPropertyPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theUmlPropertyPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theUmlPropertyPackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(UmlPropertyPackage.eNS_URI, theUmlPropertyPackage);
+ return theUmlPropertyPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getPropertyRule()
+ {
+ return propertyRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getPropertyRule_Visibility()
+ {
+ return (EReference)propertyRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPropertyRule_Derived()
+ {
+ return (EAttribute)propertyRuleEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPropertyRule_Name()
+ {
+ return (EAttribute)propertyRuleEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getPropertyRule_Type()
+ {
+ return (EReference)propertyRuleEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getPropertyRule_TypeUndefined()
+ {
+ return (EAttribute)propertyRuleEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getPropertyRule_Multiplicity()
+ {
+ return (EReference)propertyRuleEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getPropertyRule_Modifiers()
+ {
+ return (EReference)propertyRuleEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getPropertyRule_Default()
+ {
+ return (EReference)propertyRuleEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getVisibilityRule()
+ {
+ return visibilityRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getVisibilityRule_Visibility()
+ {
+ return (EAttribute)visibilityRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getTypeRule()
+ {
+ return typeRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getTypeRule_Path()
+ {
+ return (EReference)typeRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getTypeRule_Type()
+ {
+ return (EReference)typeRuleEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getQualifiedName()
+ {
+ return qualifiedNameEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getQualifiedName_Path()
+ {
+ return (EReference)qualifiedNameEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getQualifiedName_Remaining()
+ {
+ return (EReference)qualifiedNameEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getMultiplicityRule()
+ {
+ return multiplicityRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getMultiplicityRule_Bounds()
+ {
+ return (EReference)multiplicityRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getBoundSpecification()
+ {
+ return boundSpecificationEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getBoundSpecification_Value()
+ {
+ return (EAttribute)boundSpecificationEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getModifiersRule()
+ {
+ return modifiersRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getModifiersRule_Values()
+ {
+ return (EReference)modifiersRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getModifierSpecification()
+ {
+ return modifierSpecificationEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getModifierSpecification_Value()
+ {
+ return (EAttribute)modifierSpecificationEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getModifierSpecification_Redefines()
+ {
+ return (EReference)modifierSpecificationEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getModifierSpecification_Subsets()
+ {
+ return (EReference)modifierSpecificationEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getRedefinesRule()
+ {
+ return redefinesRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getRedefinesRule_Property()
+ {
+ return (EReference)redefinesRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getSubsetsRule()
+ {
+ return subsetsRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getSubsetsRule_Property()
+ {
+ return (EReference)subsetsRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getDefaultValueRule()
+ {
+ return defaultValueRuleEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDefaultValueRule_Default()
+ {
+ return (EReference)defaultValueRuleEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getValue()
+ {
+ return valueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getIntValue()
+ {
+ return intValueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getIntValue_LiteralInteger()
+ {
+ return (EAttribute)intValueEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getStringValue()
+ {
+ return stringValueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getStringValue_LiteralString()
+ {
+ return (EAttribute)stringValueEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getBooleanValue()
+ {
+ return booleanValueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getBooleanValue_LiteralBoolean()
+ {
+ return (EAttribute)booleanValueEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getRealValue()
+ {
+ return realValueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRealValue_Integer()
+ {
+ return (EAttribute)realValueEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRealValue_Fraction()
+ {
+ return (EAttribute)realValueEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getNullValue()
+ {
+ return nullValueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getNoValue()
+ {
+ return noValueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getVisibilityKind()
+ {
+ return visibilityKindEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getModifierKind()
+ {
+ return modifierKindEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getBooleanLiterals()
+ {
+ return booleanLiteralsEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public UmlPropertyFactory getUmlPropertyFactory()
+ {
+ return (UmlPropertyFactory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void createPackageContents()
+ {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create classes and their features
+ propertyRuleEClass = createEClass(PROPERTY_RULE);
+ createEReference(propertyRuleEClass, PROPERTY_RULE__VISIBILITY);
+ createEAttribute(propertyRuleEClass, PROPERTY_RULE__DERIVED);
+ createEAttribute(propertyRuleEClass, PROPERTY_RULE__NAME);
+ createEReference(propertyRuleEClass, PROPERTY_RULE__TYPE);
+ createEAttribute(propertyRuleEClass, PROPERTY_RULE__TYPE_UNDEFINED);
+ createEReference(propertyRuleEClass, PROPERTY_RULE__MULTIPLICITY);
+ createEReference(propertyRuleEClass, PROPERTY_RULE__MODIFIERS);
+ createEReference(propertyRuleEClass, PROPERTY_RULE__DEFAULT);
+
+ visibilityRuleEClass = createEClass(VISIBILITY_RULE);
+ createEAttribute(visibilityRuleEClass, VISIBILITY_RULE__VISIBILITY);
+
+ typeRuleEClass = createEClass(TYPE_RULE);
+ createEReference(typeRuleEClass, TYPE_RULE__PATH);
+ createEReference(typeRuleEClass, TYPE_RULE__TYPE);
+
+ qualifiedNameEClass = createEClass(QUALIFIED_NAME);
+ createEReference(qualifiedNameEClass, QUALIFIED_NAME__PATH);
+ createEReference(qualifiedNameEClass, QUALIFIED_NAME__REMAINING);
+
+ multiplicityRuleEClass = createEClass(MULTIPLICITY_RULE);
+ createEReference(multiplicityRuleEClass, MULTIPLICITY_RULE__BOUNDS);
+
+ boundSpecificationEClass = createEClass(BOUND_SPECIFICATION);
+ createEAttribute(boundSpecificationEClass, BOUND_SPECIFICATION__VALUE);
+
+ modifiersRuleEClass = createEClass(MODIFIERS_RULE);
+ createEReference(modifiersRuleEClass, MODIFIERS_RULE__VALUES);
+
+ modifierSpecificationEClass = createEClass(MODIFIER_SPECIFICATION);
+ createEAttribute(modifierSpecificationEClass, MODIFIER_SPECIFICATION__VALUE);
+ createEReference(modifierSpecificationEClass, MODIFIER_SPECIFICATION__REDEFINES);
+ createEReference(modifierSpecificationEClass, MODIFIER_SPECIFICATION__SUBSETS);
+
+ redefinesRuleEClass = createEClass(REDEFINES_RULE);
+ createEReference(redefinesRuleEClass, REDEFINES_RULE__PROPERTY);
+
+ subsetsRuleEClass = createEClass(SUBSETS_RULE);
+ createEReference(subsetsRuleEClass, SUBSETS_RULE__PROPERTY);
+
+ defaultValueRuleEClass = createEClass(DEFAULT_VALUE_RULE);
+ createEReference(defaultValueRuleEClass, DEFAULT_VALUE_RULE__DEFAULT);
+
+ valueEClass = createEClass(VALUE);
+
+ intValueEClass = createEClass(INT_VALUE);
+ createEAttribute(intValueEClass, INT_VALUE__LITERAL_INTEGER);
+
+ stringValueEClass = createEClass(STRING_VALUE);
+ createEAttribute(stringValueEClass, STRING_VALUE__LITERAL_STRING);
+
+ booleanValueEClass = createEClass(BOOLEAN_VALUE);
+ createEAttribute(booleanValueEClass, BOOLEAN_VALUE__LITERAL_BOOLEAN);
+
+ realValueEClass = createEClass(REAL_VALUE);
+ createEAttribute(realValueEClass, REAL_VALUE__INTEGER);
+ createEAttribute(realValueEClass, REAL_VALUE__FRACTION);
+
+ nullValueEClass = createEClass(NULL_VALUE);
+
+ noValueEClass = createEClass(NO_VALUE);
+
+ // Create enums
+ visibilityKindEEnum = createEEnum(VISIBILITY_KIND);
+ modifierKindEEnum = createEEnum(MODIFIER_KIND);
+ booleanLiteralsEEnum = createEEnum(BOOLEAN_LITERALS);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void initializePackageContents()
+ {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
+ UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ intValueEClass.getESuperTypes().add(this.getValue());
+ stringValueEClass.getESuperTypes().add(this.getValue());
+ booleanValueEClass.getESuperTypes().add(this.getValue());
+ realValueEClass.getESuperTypes().add(this.getValue());
+ nullValueEClass.getESuperTypes().add(this.getValue());
+ noValueEClass.getESuperTypes().add(this.getValue());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(propertyRuleEClass, PropertyRule.class, "PropertyRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getPropertyRule_Visibility(), this.getVisibilityRule(), null, "visibility", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPropertyRule_Derived(), theEcorePackage.getEBoolean(), "derived", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPropertyRule_Name(), theEcorePackage.getEString(), "name", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getPropertyRule_Type(), this.getTypeRule(), null, "type", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getPropertyRule_TypeUndefined(), theEcorePackage.getEBoolean(), "typeUndefined", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getPropertyRule_Multiplicity(), this.getMultiplicityRule(), null, "multiplicity", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getPropertyRule_Modifiers(), this.getModifiersRule(), null, "modifiers", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getPropertyRule_Default(), this.getDefaultValueRule(), null, "default", null, 0, 1, PropertyRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(visibilityRuleEClass, VisibilityRule.class, "VisibilityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getVisibilityRule_Visibility(), this.getVisibilityKind(), "visibility", null, 0, 1, VisibilityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(typeRuleEClass, TypeRule.class, "TypeRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getTypeRule_Path(), this.getQualifiedName(), null, "path", null, 0, 1, TypeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getTypeRule_Type(), theUMLPackage.getClassifier(), null, "type", null, 0, 1, TypeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(qualifiedNameEClass, QualifiedName.class, "QualifiedName", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getQualifiedName_Path(), theUMLPackage.getNamespace(), null, "path", null, 0, 1, QualifiedName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getQualifiedName_Remaining(), this.getQualifiedName(), null, "remaining", null, 0, 1, QualifiedName.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(multiplicityRuleEClass, MultiplicityRule.class, "MultiplicityRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getMultiplicityRule_Bounds(), this.getBoundSpecification(), null, "bounds", null, 0, -1, MultiplicityRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(boundSpecificationEClass, BoundSpecification.class, "BoundSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getBoundSpecification_Value(), theEcorePackage.getEString(), "value", null, 0, 1, BoundSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(modifiersRuleEClass, ModifiersRule.class, "ModifiersRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getModifiersRule_Values(), this.getModifierSpecification(), null, "values", null, 0, -1, ModifiersRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(modifierSpecificationEClass, ModifierSpecification.class, "ModifierSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getModifierSpecification_Value(), this.getModifierKind(), "value", null, 0, 1, ModifierSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getModifierSpecification_Redefines(), this.getRedefinesRule(), null, "redefines", null, 0, 1, ModifierSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getModifierSpecification_Subsets(), this.getSubsetsRule(), null, "subsets", null, 0, 1, ModifierSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(redefinesRuleEClass, RedefinesRule.class, "RedefinesRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRedefinesRule_Property(), theUMLPackage.getProperty(), null, "property", null, 0, 1, RedefinesRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(subsetsRuleEClass, SubsetsRule.class, "SubsetsRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getSubsetsRule_Property(), theUMLPackage.getProperty(), null, "property", null, 0, 1, SubsetsRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(defaultValueRuleEClass, DefaultValueRule.class, "DefaultValueRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getDefaultValueRule_Default(), this.getValue(), null, "default", null, 0, 1, DefaultValueRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(valueEClass, Value.class, "Value", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(intValueEClass, IntValue.class, "IntValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getIntValue_LiteralInteger(), theEcorePackage.getEInt(), "literalInteger", null, 0, 1, IntValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(stringValueEClass, StringValue.class, "StringValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getStringValue_LiteralString(), theEcorePackage.getEString(), "literalString", null, 0, 1, StringValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(booleanValueEClass, BooleanValue.class, "BooleanValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getBooleanValue_LiteralBoolean(), this.getBooleanLiterals(), "literalBoolean", null, 0, 1, BooleanValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(realValueEClass, RealValue.class, "RealValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getRealValue_Integer(), theEcorePackage.getEInt(), "integer", null, 0, 1, RealValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRealValue_Fraction(), theEcorePackage.getEInt(), "fraction", null, 0, 1, RealValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(nullValueEClass, NullValue.class, "NullValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(noValueEClass, NoValue.class, "NoValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ // Initialize enums and add enum literals
+ initEEnum(visibilityKindEEnum, VisibilityKind.class, "VisibilityKind");
+ addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PUBLIC);
+ addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PRIVATE);
+ addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PROTECTED);
+ addEEnumLiteral(visibilityKindEEnum, VisibilityKind.PACKAGE);
+
+ initEEnum(modifierKindEEnum, ModifierKind.class, "ModifierKind");
+ addEEnumLiteral(modifierKindEEnum, ModifierKind.READ_ONLY);
+ addEEnumLiteral(modifierKindEEnum, ModifierKind.UNION);
+ addEEnumLiteral(modifierKindEEnum, ModifierKind.ORDERED);
+ addEEnumLiteral(modifierKindEEnum, ModifierKind.UNIQUE);
+
+ initEEnum(booleanLiteralsEEnum, BooleanLiterals.class, "BooleanLiterals");
+ addEEnumLiteral(booleanLiteralsEEnum, BooleanLiterals.TRUE);
+ addEEnumLiteral(booleanLiteralsEEnum, BooleanLiterals.FALSE);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} //UmlPropertyPackageImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ValueImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ValueImpl.java
index c8467d466db..d5db6058160 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ValueImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/ValueImpl.java
@@ -1,46 +1,42 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Value</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class ValueImpl extends MinimalEObjectImpl.Container implements Value
-{
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected ValueImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPropertyPackage.Literals.VALUE;
- }
-
-} // ValueImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class ValueImpl extends MinimalEObjectImpl.Container implements Value
+{
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ValueImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPropertyPackage.Literals.VALUE;
+ }
+
+} //ValueImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/VisibilityRuleImpl.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/VisibilityRuleImpl.java
index c7ca3ed2c2e..a896967bb29 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/VisibilityRuleImpl.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/impl/VisibilityRuleImpl.java
@@ -1,192 +1,178 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind;
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Visibility Rule</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl#getVisibility <em>Visibility</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class VisibilityRuleImpl extends MinimalEObjectImpl.Container implements VisibilityRule
-{
- /**
- * The default value of the '{@link #getVisibility() <em>Visibility</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getVisibility()
- * @generated
- * @ordered
- */
- protected static final VisibilityKind VISIBILITY_EDEFAULT = VisibilityKind.PUBLIC;
-
- /**
- * The cached value of the '{@link #getVisibility() <em>Visibility</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getVisibility()
- * @generated
- * @ordered
- */
- protected VisibilityKind visibility = VISIBILITY_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected VisibilityRuleImpl()
- {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return UmlPropertyPackage.Literals.VISIBILITY_RULE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public VisibilityKind getVisibility()
- {
- return visibility;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void setVisibility(VisibilityKind newVisibility)
- {
- VisibilityKind oldVisibility = visibility;
- visibility = newVisibility == null ? VISIBILITY_EDEFAULT : newVisibility;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY, oldVisibility, visibility));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY:
- return getVisibility();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY:
- setVisibility((VisibilityKind) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY:
- setVisibility(VISIBILITY_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID)
- {
- switch (featureID)
- {
- case UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY:
- return visibility != VISIBILITY_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString()
- {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (visibility: ");
- result.append(visibility);
- result.append(')');
- return result.toString();
- }
-
-} // VisibilityRuleImpl
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityKind;
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Visibility Rule</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.impl.VisibilityRuleImpl#getVisibility <em>Visibility</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class VisibilityRuleImpl extends MinimalEObjectImpl.Container implements VisibilityRule
+{
+ /**
+ * The default value of the '{@link #getVisibility() <em>Visibility</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getVisibility()
+ * @generated
+ * @ordered
+ */
+ protected static final VisibilityKind VISIBILITY_EDEFAULT = VisibilityKind.PUBLIC;
+
+ /**
+ * The cached value of the '{@link #getVisibility() <em>Visibility</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getVisibility()
+ * @generated
+ * @ordered
+ */
+ protected VisibilityKind visibility = VISIBILITY_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected VisibilityRuleImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return UmlPropertyPackage.Literals.VISIBILITY_RULE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public VisibilityKind getVisibility()
+ {
+ return visibility;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setVisibility(VisibilityKind newVisibility)
+ {
+ VisibilityKind oldVisibility = visibility;
+ visibility = newVisibility == null ? VISIBILITY_EDEFAULT : newVisibility;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY, oldVisibility, visibility));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY:
+ return getVisibility();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY:
+ setVisibility((VisibilityKind)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY:
+ setVisibility(VISIBILITY_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case UmlPropertyPackage.VISIBILITY_RULE__VISIBILITY:
+ return visibility != VISIBILITY_EDEFAULT;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (visibility: ");
+ result.append(visibility);
+ result.append(')');
+ return result.toString();
+ }
+
+} //VisibilityRuleImpl
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/util/UmlPropertyAdapterFactory.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/util/UmlPropertyAdapterFactory.java
index 57562bd31bf..81c371a4a9b 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/util/UmlPropertyAdapterFactory.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/util/UmlPropertyAdapterFactory.java
@@ -1,516 +1,472 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.util;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Adapter Factory</b> for the model.
- * It provides an adapter <code>createXXX</code> method for each class of the model.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage
- * @generated
- */
-public class UmlPropertyAdapterFactory extends AdapterFactoryImpl
-{
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static UmlPropertyPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public UmlPropertyAdapterFactory()
- {
- if (modelPackage == null)
- {
- modelPackage = UmlPropertyPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- * <!-- begin-user-doc -->
- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
- * <!-- end-user-doc -->
- *
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object)
- {
- if (object == modelPackage)
- {
- return true;
- }
- if (object instanceof EObject)
- {
- return ((EObject) object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the <code>createXXX</code> methods.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected UmlPropertySwitch<Adapter> modelSwitch =
- new UmlPropertySwitch<Adapter>()
- {
- @Override
- public Adapter casePropertyRule(PropertyRule object)
- {
- return createPropertyRuleAdapter();
- }
-
- @Override
- public Adapter caseVisibilityRule(VisibilityRule object)
- {
- return createVisibilityRuleAdapter();
- }
-
- @Override
- public Adapter caseTypeRule(TypeRule object)
- {
- return createTypeRuleAdapter();
- }
-
- @Override
- public Adapter caseQualifiedName(QualifiedName object)
- {
- return createQualifiedNameAdapter();
- }
-
- @Override
- public Adapter caseMultiplicityRule(MultiplicityRule object)
- {
- return createMultiplicityRuleAdapter();
- }
-
- @Override
- public Adapter caseBoundSpecification(BoundSpecification object)
- {
- return createBoundSpecificationAdapter();
- }
-
- @Override
- public Adapter caseModifiersRule(ModifiersRule object)
- {
- return createModifiersRuleAdapter();
- }
-
- @Override
- public Adapter caseModifierSpecification(ModifierSpecification object)
- {
- return createModifierSpecificationAdapter();
- }
-
- @Override
- public Adapter caseRedefinesRule(RedefinesRule object)
- {
- return createRedefinesRuleAdapter();
- }
-
- @Override
- public Adapter caseSubsetsRule(SubsetsRule object)
- {
- return createSubsetsRuleAdapter();
- }
-
- @Override
- public Adapter caseDefaultValueRule(DefaultValueRule object)
- {
- return createDefaultValueRuleAdapter();
- }
-
- @Override
- public Adapter caseValue(Value object)
- {
- return createValueAdapter();
- }
-
- @Override
- public Adapter caseIntValue(IntValue object)
- {
- return createIntValueAdapter();
- }
-
- @Override
- public Adapter caseStringValue(StringValue object)
- {
- return createStringValueAdapter();
- }
-
- @Override
- public Adapter caseBooleanValue(BooleanValue object)
- {
- return createBooleanValueAdapter();
- }
-
- @Override
- public Adapter caseRealValue(RealValue object)
- {
- return createRealValueAdapter();
- }
-
- @Override
- public Adapter caseNullValue(NullValue object)
- {
- return createNullValueAdapter();
- }
-
- @Override
- public Adapter caseNoValue(NoValue object)
- {
- return createNoValueAdapter();
- }
-
- @Override
- public Adapter defaultCase(EObject object)
- {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the <code>target</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param target
- * the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target)
- {
- return modelSwitch.doSwitch((EObject) target);
- }
-
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule <em>Property Rule</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule
- * @generated
- */
- public Adapter createPropertyRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule <em>Visibility Rule</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule
- * @generated
- */
- public Adapter createVisibilityRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule <em>Type Rule</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule
- * @generated
- */
- public Adapter createTypeRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName <em>Qualified Name</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName
- * @generated
- */
- public Adapter createQualifiedNameAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule <em>Multiplicity Rule</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule
- * @generated
- */
- public Adapter createMultiplicityRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification <em>Bound Specification</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification
- * @generated
- */
- public Adapter createBoundSpecificationAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule <em>Modifiers Rule</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule
- * @generated
- */
- public Adapter createModifiersRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification <em>Modifier Specification</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification
- * @generated
- */
- public Adapter createModifierSpecificationAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule <em>Redefines Rule</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule
- * @generated
- */
- public Adapter createRedefinesRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule <em>Subsets Rule</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule
- * @generated
- */
- public Adapter createSubsetsRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule <em>Default Value Rule</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule
- * @generated
- */
- public Adapter createDefaultValueRuleAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value <em>Value</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value
- * @generated
- */
- public Adapter createValueAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue <em>Int Value</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue
- * @generated
- */
- public Adapter createIntValueAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue <em>String Value</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue
- * @generated
- */
- public Adapter createStringValueAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue <em>Boolean Value</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue
- * @generated
- */
- public Adapter createBooleanValueAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue <em>Real Value</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue
- * @generated
- */
- public Adapter createRealValueAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue <em>Null Value</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue
- * @generated
- */
- public Adapter createNullValueAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue <em>No Value</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue
- * @generated
- */
- public Adapter createNoValueAdapter()
- {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- * <!-- begin-user-doc -->
- * This default implementation returns null.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter()
- {
- return null;
- }
-
-} // UmlPropertyAdapterFactory
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.util;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the model.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage
+ * @generated
+ */
+public class UmlPropertyAdapterFactory extends AdapterFactoryImpl
+{
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static UmlPropertyPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public UmlPropertyAdapterFactory()
+ {
+ if (modelPackage == null)
+ {
+ modelPackage = UmlPropertyPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ * <!-- begin-user-doc -->
+ * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
+ * <!-- end-user-doc -->
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object)
+ {
+ if (object == modelPackage)
+ {
+ return true;
+ }
+ if (object instanceof EObject)
+ {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the <code>createXXX</code> methods.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected UmlPropertySwitch<Adapter> modelSwitch =
+ new UmlPropertySwitch<Adapter>()
+ {
+ @Override
+ public Adapter casePropertyRule(PropertyRule object)
+ {
+ return createPropertyRuleAdapter();
+ }
+ @Override
+ public Adapter caseVisibilityRule(VisibilityRule object)
+ {
+ return createVisibilityRuleAdapter();
+ }
+ @Override
+ public Adapter caseTypeRule(TypeRule object)
+ {
+ return createTypeRuleAdapter();
+ }
+ @Override
+ public Adapter caseQualifiedName(QualifiedName object)
+ {
+ return createQualifiedNameAdapter();
+ }
+ @Override
+ public Adapter caseMultiplicityRule(MultiplicityRule object)
+ {
+ return createMultiplicityRuleAdapter();
+ }
+ @Override
+ public Adapter caseBoundSpecification(BoundSpecification object)
+ {
+ return createBoundSpecificationAdapter();
+ }
+ @Override
+ public Adapter caseModifiersRule(ModifiersRule object)
+ {
+ return createModifiersRuleAdapter();
+ }
+ @Override
+ public Adapter caseModifierSpecification(ModifierSpecification object)
+ {
+ return createModifierSpecificationAdapter();
+ }
+ @Override
+ public Adapter caseRedefinesRule(RedefinesRule object)
+ {
+ return createRedefinesRuleAdapter();
+ }
+ @Override
+ public Adapter caseSubsetsRule(SubsetsRule object)
+ {
+ return createSubsetsRuleAdapter();
+ }
+ @Override
+ public Adapter caseDefaultValueRule(DefaultValueRule object)
+ {
+ return createDefaultValueRuleAdapter();
+ }
+ @Override
+ public Adapter caseValue(Value object)
+ {
+ return createValueAdapter();
+ }
+ @Override
+ public Adapter caseIntValue(IntValue object)
+ {
+ return createIntValueAdapter();
+ }
+ @Override
+ public Adapter caseStringValue(StringValue object)
+ {
+ return createStringValueAdapter();
+ }
+ @Override
+ public Adapter caseBooleanValue(BooleanValue object)
+ {
+ return createBooleanValueAdapter();
+ }
+ @Override
+ public Adapter caseRealValue(RealValue object)
+ {
+ return createRealValueAdapter();
+ }
+ @Override
+ public Adapter caseNullValue(NullValue object)
+ {
+ return createNullValueAdapter();
+ }
+ @Override
+ public Adapter caseNoValue(NoValue object)
+ {
+ return createNoValueAdapter();
+ }
+ @Override
+ public Adapter defaultCase(EObject object)
+ {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param target the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target)
+ {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule <em>Property Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.PropertyRule
+ * @generated
+ */
+ public Adapter createPropertyRuleAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule <em>Visibility Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.VisibilityRule
+ * @generated
+ */
+ public Adapter createVisibilityRuleAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule <em>Type Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.TypeRule
+ * @generated
+ */
+ public Adapter createTypeRuleAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName <em>Qualified Name</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.QualifiedName
+ * @generated
+ */
+ public Adapter createQualifiedNameAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule <em>Multiplicity Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.MultiplicityRule
+ * @generated
+ */
+ public Adapter createMultiplicityRuleAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification <em>Bound Specification</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BoundSpecification
+ * @generated
+ */
+ public Adapter createBoundSpecificationAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule <em>Modifiers Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifiersRule
+ * @generated
+ */
+ public Adapter createModifiersRuleAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification <em>Modifier Specification</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.ModifierSpecification
+ * @generated
+ */
+ public Adapter createModifierSpecificationAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule <em>Redefines Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RedefinesRule
+ * @generated
+ */
+ public Adapter createRedefinesRuleAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule <em>Subsets Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.SubsetsRule
+ * @generated
+ */
+ public Adapter createSubsetsRuleAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule <em>Default Value Rule</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.DefaultValueRule
+ * @generated
+ */
+ public Adapter createDefaultValueRuleAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value <em>Value</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.Value
+ * @generated
+ */
+ public Adapter createValueAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue <em>Int Value</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.IntValue
+ * @generated
+ */
+ public Adapter createIntValueAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue <em>String Value</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.StringValue
+ * @generated
+ */
+ public Adapter createStringValueAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue <em>Boolean Value</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.BooleanValue
+ * @generated
+ */
+ public Adapter createBooleanValueAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue <em>Real Value</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.RealValue
+ * @generated
+ */
+ public Adapter createRealValueAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue <em>Null Value</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NullValue
+ * @generated
+ */
+ public Adapter createNullValueAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue <em>No Value</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.NoValue
+ * @generated
+ */
+ public Adapter createNoValueAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter()
+ {
+ return null;
+ }
+
+} //UmlPropertyAdapterFactory
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/util/UmlPropertySwitch.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/util/UmlPropertySwitch.java
index 96d2dbc877a..a9f7639cfcc 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/util/UmlPropertySwitch.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/umlProperty/util/UmlPropertySwitch.java
@@ -1,589 +1,516 @@
-/**
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.util;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.util.Switch;
-
-import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage
- * @generated
- */
-public class UmlPropertySwitch<T> extends Switch<T>
-{
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static UmlPropertyPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public UmlPropertySwitch()
- {
- if (modelPackage == null)
- {
- modelPackage = UmlPropertyPackage.eINSTANCE;
- }
- }
-
- /**
- * Checks whether this is a switch for the given package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @parameter ePackage the package in question.
- * @return whether this is a switch for the given package.
- * @generated
- */
- @Override
- protected boolean isSwitchFor(EPackage ePackage)
- {
- return ePackage == modelPackage;
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- @Override
- protected T doSwitch(int classifierID, EObject theEObject)
- {
- switch (classifierID)
- {
- case UmlPropertyPackage.PROPERTY_RULE: {
- PropertyRule propertyRule = (PropertyRule) theEObject;
- T result = casePropertyRule(propertyRule);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPropertyPackage.VISIBILITY_RULE: {
- VisibilityRule visibilityRule = (VisibilityRule) theEObject;
- T result = caseVisibilityRule(visibilityRule);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPropertyPackage.TYPE_RULE: {
- TypeRule typeRule = (TypeRule) theEObject;
- T result = caseTypeRule(typeRule);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPropertyPackage.QUALIFIED_NAME: {
- QualifiedName qualifiedName = (QualifiedName) theEObject;
- T result = caseQualifiedName(qualifiedName);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPropertyPackage.MULTIPLICITY_RULE: {
- MultiplicityRule multiplicityRule = (MultiplicityRule) theEObject;
- T result = caseMultiplicityRule(multiplicityRule);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPropertyPackage.BOUND_SPECIFICATION: {
- BoundSpecification boundSpecification = (BoundSpecification) theEObject;
- T result = caseBoundSpecification(boundSpecification);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPropertyPackage.MODIFIERS_RULE: {
- ModifiersRule modifiersRule = (ModifiersRule) theEObject;
- T result = caseModifiersRule(modifiersRule);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPropertyPackage.MODIFIER_SPECIFICATION: {
- ModifierSpecification modifierSpecification = (ModifierSpecification) theEObject;
- T result = caseModifierSpecification(modifierSpecification);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPropertyPackage.REDEFINES_RULE: {
- RedefinesRule redefinesRule = (RedefinesRule) theEObject;
- T result = caseRedefinesRule(redefinesRule);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPropertyPackage.SUBSETS_RULE: {
- SubsetsRule subsetsRule = (SubsetsRule) theEObject;
- T result = caseSubsetsRule(subsetsRule);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPropertyPackage.DEFAULT_VALUE_RULE: {
- DefaultValueRule defaultValueRule = (DefaultValueRule) theEObject;
- T result = caseDefaultValueRule(defaultValueRule);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPropertyPackage.VALUE: {
- Value value = (Value) theEObject;
- T result = caseValue(value);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPropertyPackage.INT_VALUE: {
- IntValue intValue = (IntValue) theEObject;
- T result = caseIntValue(intValue);
- if (result == null) {
- result = caseValue(intValue);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPropertyPackage.STRING_VALUE: {
- StringValue stringValue = (StringValue) theEObject;
- T result = caseStringValue(stringValue);
- if (result == null) {
- result = caseValue(stringValue);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPropertyPackage.BOOLEAN_VALUE: {
- BooleanValue booleanValue = (BooleanValue) theEObject;
- T result = caseBooleanValue(booleanValue);
- if (result == null) {
- result = caseValue(booleanValue);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPropertyPackage.REAL_VALUE: {
- RealValue realValue = (RealValue) theEObject;
- T result = caseRealValue(realValue);
- if (result == null) {
- result = caseValue(realValue);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPropertyPackage.NULL_VALUE: {
- NullValue nullValue = (NullValue) theEObject;
- T result = caseNullValue(nullValue);
- if (result == null) {
- result = caseValue(nullValue);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case UmlPropertyPackage.NO_VALUE: {
- NoValue noValue = (NoValue) theEObject;
- T result = caseNoValue(noValue);
- if (result == null) {
- result = caseValue(noValue);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- default:
- return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Property Rule</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Property Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T casePropertyRule(PropertyRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Visibility Rule</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Visibility Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseVisibilityRule(VisibilityRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Type Rule</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Type Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseTypeRule(TypeRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Qualified Name</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Qualified Name</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseQualifiedName(QualifiedName object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Multiplicity Rule</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Multiplicity Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseMultiplicityRule(MultiplicityRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Bound Specification</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Bound Specification</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseBoundSpecification(BoundSpecification object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Modifiers Rule</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Modifiers Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseModifiersRule(ModifiersRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Modifier Specification</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Modifier Specification</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseModifierSpecification(ModifierSpecification object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Redefines Rule</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Redefines Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRedefinesRule(RedefinesRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Subsets Rule</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Subsets Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseSubsetsRule(SubsetsRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Default Value Rule</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Default Value Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDefaultValueRule(DefaultValueRule object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Value</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Value</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseValue(Value object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Int Value</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Int Value</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseIntValue(IntValue object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>String Value</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>String Value</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseStringValue(StringValue object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Boolean Value</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Boolean Value</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseBooleanValue(BooleanValue object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Real Value</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Real Value</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRealValue(RealValue object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Null Value</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Null Value</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseNullValue(NullValue object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>No Value</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>No Value</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseNoValue(NoValue object)
- {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- * <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- @Override
- public T defaultCase(EObject object)
- {
- return null;
- }
-
-} // UmlPropertySwitch
+/**
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.util;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.util.Switch;
+
+import org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage
+ * @generated
+ */
+public class UmlPropertySwitch<T> extends Switch<T>
+{
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static UmlPropertyPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public UmlPropertySwitch()
+ {
+ if (modelPackage == null)
+ {
+ modelPackage = UmlPropertyPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Checks whether this is a switch for the given package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param ePackage the package in question.
+ * @return whether this is a switch for the given package.
+ * @generated
+ */
+ @Override
+ protected boolean isSwitchFor(EPackage ePackage)
+ {
+ return ePackage == modelPackage;
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject)
+ {
+ switch (classifierID)
+ {
+ case UmlPropertyPackage.PROPERTY_RULE:
+ {
+ PropertyRule propertyRule = (PropertyRule)theEObject;
+ T result = casePropertyRule(propertyRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPropertyPackage.VISIBILITY_RULE:
+ {
+ VisibilityRule visibilityRule = (VisibilityRule)theEObject;
+ T result = caseVisibilityRule(visibilityRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPropertyPackage.TYPE_RULE:
+ {
+ TypeRule typeRule = (TypeRule)theEObject;
+ T result = caseTypeRule(typeRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPropertyPackage.QUALIFIED_NAME:
+ {
+ QualifiedName qualifiedName = (QualifiedName)theEObject;
+ T result = caseQualifiedName(qualifiedName);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPropertyPackage.MULTIPLICITY_RULE:
+ {
+ MultiplicityRule multiplicityRule = (MultiplicityRule)theEObject;
+ T result = caseMultiplicityRule(multiplicityRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPropertyPackage.BOUND_SPECIFICATION:
+ {
+ BoundSpecification boundSpecification = (BoundSpecification)theEObject;
+ T result = caseBoundSpecification(boundSpecification);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPropertyPackage.MODIFIERS_RULE:
+ {
+ ModifiersRule modifiersRule = (ModifiersRule)theEObject;
+ T result = caseModifiersRule(modifiersRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPropertyPackage.MODIFIER_SPECIFICATION:
+ {
+ ModifierSpecification modifierSpecification = (ModifierSpecification)theEObject;
+ T result = caseModifierSpecification(modifierSpecification);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPropertyPackage.REDEFINES_RULE:
+ {
+ RedefinesRule redefinesRule = (RedefinesRule)theEObject;
+ T result = caseRedefinesRule(redefinesRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPropertyPackage.SUBSETS_RULE:
+ {
+ SubsetsRule subsetsRule = (SubsetsRule)theEObject;
+ T result = caseSubsetsRule(subsetsRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPropertyPackage.DEFAULT_VALUE_RULE:
+ {
+ DefaultValueRule defaultValueRule = (DefaultValueRule)theEObject;
+ T result = caseDefaultValueRule(defaultValueRule);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPropertyPackage.VALUE:
+ {
+ Value value = (Value)theEObject;
+ T result = caseValue(value);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPropertyPackage.INT_VALUE:
+ {
+ IntValue intValue = (IntValue)theEObject;
+ T result = caseIntValue(intValue);
+ if (result == null) result = caseValue(intValue);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPropertyPackage.STRING_VALUE:
+ {
+ StringValue stringValue = (StringValue)theEObject;
+ T result = caseStringValue(stringValue);
+ if (result == null) result = caseValue(stringValue);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPropertyPackage.BOOLEAN_VALUE:
+ {
+ BooleanValue booleanValue = (BooleanValue)theEObject;
+ T result = caseBooleanValue(booleanValue);
+ if (result == null) result = caseValue(booleanValue);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPropertyPackage.REAL_VALUE:
+ {
+ RealValue realValue = (RealValue)theEObject;
+ T result = caseRealValue(realValue);
+ if (result == null) result = caseValue(realValue);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPropertyPackage.NULL_VALUE:
+ {
+ NullValue nullValue = (NullValue)theEObject;
+ T result = caseNullValue(nullValue);
+ if (result == null) result = caseValue(nullValue);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlPropertyPackage.NO_VALUE:
+ {
+ NoValue noValue = (NoValue)theEObject;
+ T result = caseNoValue(noValue);
+ if (result == null) result = caseValue(noValue);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Property Rule</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Property Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T casePropertyRule(PropertyRule object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Visibility Rule</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Visibility Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseVisibilityRule(VisibilityRule object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Type Rule</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Type Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseTypeRule(TypeRule object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Qualified Name</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Qualified Name</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseQualifiedName(QualifiedName object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Multiplicity Rule</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Multiplicity Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMultiplicityRule(MultiplicityRule object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Bound Specification</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Bound Specification</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseBoundSpecification(BoundSpecification object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Modifiers Rule</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Modifiers Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseModifiersRule(ModifiersRule object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Modifier Specification</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Modifier Specification</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseModifierSpecification(ModifierSpecification object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Redefines Rule</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Redefines Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRedefinesRule(RedefinesRule object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Subsets Rule</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Subsets Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSubsetsRule(SubsetsRule object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Default Value Rule</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Default Value Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDefaultValueRule(DefaultValueRule object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Value</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseValue(Value object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Int Value</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Int Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseIntValue(IntValue object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>String Value</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>String Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseStringValue(StringValue object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Boolean Value</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Boolean Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseBooleanValue(BooleanValue object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Real Value</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Real Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRealValue(RealValue object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Null Value</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Null Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseNullValue(NullValue object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>No Value</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>No Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseNoValue(NoValue object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object)
+ {
+ return null;
+ }
+
+} //UmlPropertySwitch
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/validation/AbstractUmlPropertyJavaValidator.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/validation/AbstractUmlPropertyJavaValidator.java
index abab565fdd3..fef7c6bcb12 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/validation/AbstractUmlPropertyJavaValidator.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src-gen/org/eclipse/papyrus/uml/textedit/property/xtext/validation/AbstractUmlPropertyJavaValidator.java
@@ -1,22 +1,22 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.textedit.property.xtext.validation;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.xtext.validation.ComposedChecks;
-
-@ComposedChecks(validators = { org.eclipse.xtext.validation.ImportUriValidator.class, org.eclipse.xtext.validation.NamesAreUniqueValidator.class })
-public class AbstractUmlPropertyJavaValidator extends org.eclipse.papyrus.uml.alf.validation.CommonJavaValidator {
-
- @Override
- protected List<EPackage> getEPackages() {
- List<EPackage> result = new ArrayList<EPackage>();
- result.add(org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage.eINSTANCE);
- return result;
- }
-
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.textedit.property.xtext.validation;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.xtext.validation.ComposedChecks;
+
+@ComposedChecks(validators= {org.eclipse.xtext.validation.ImportUriValidator.class, org.eclipse.xtext.validation.NamesAreUniqueValidator.class})
+public class AbstractUmlPropertyJavaValidator extends org.eclipse.papyrus.uml.alf.validation.CommonJavaValidator {
+
+ @Override
+ protected List<EPackage> getEPackages() {
+ List<EPackage> result = new ArrayList<EPackage>();
+ result.add(org.eclipse.papyrus.uml.textedit.property.xtext.umlProperty.UmlPropertyPackage.eINSTANCE);
+ return result;
+ }
+
+}
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtext b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtext
index 4fc294acfa7..93beefd0c71 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtext
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext/src/org/eclipse/papyrus/uml/textedit/property/xtext/UmlProperty.xtext
@@ -49,11 +49,11 @@ MultiplicityRule:
"[" bounds+=BoundSpecification ('..' bounds+=BoundSpecification)? "]" ;
BoundSpecification:
- value = UnlimitedLiteral ;
-
+ value = (UnlimitedLiteral | StringLiteral) ;
UnlimitedLiteral : INT |'*';
+StringLiteral : STRING;
ModifiersRule:
{ModifiersRule}'{' (values += ModifierSpecification (',' values += ModifierSpecification)*)? '}';
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext/.launch/Generate Language Infrastructure (org.eclipse.papyrus.uml.textedit.port.xtext).launch b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext/.launch/Generate Language Infrastructure (org.eclipse.papyrus.uml.textedit.port.xtext).launch
index 2ec48489301..e5e4827f06e 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext/.launch/Generate Language Infrastructure (org.eclipse.papyrus.uml.textedit.port.xtext).launch
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext/.launch/Generate Language Infrastructure (org.eclipse.papyrus.uml.textedit.port.xtext).launch
@@ -7,10 +7,6 @@
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
-<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
-<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
-</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="src/UmlValueSpecification/GenerateUmlValueSpecification.mwe2"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.papyrus.uml.textedit.valuespecification.xtext"/>
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext/.launch/Launch Runtime Eclipse.launch b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext/.launch/Launch Runtime Eclipse.launch
index acc8823d435..c0945a10c68 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext/.launch/Launch Runtime Eclipse.launch
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext/.launch/Launch Runtime Eclipse.launch
@@ -14,10 +14,6 @@
<booleanAttribute key="default" value="true"/>
<booleanAttribute key="includeOptional" value="true"/>
<stringAttribute key="location" value="${workspace_loc}/../runtime-EclipseXtext"/>
-<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
-<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
-</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
diff --git a/plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/ICustomAppearance.java b/plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/ICustomAppearance.java
index ba020fb443d..56f05a899f4 100644
--- a/plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/ICustomAppearance.java
+++ b/plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/ICustomAppearance.java
@@ -58,6 +58,11 @@ public interface ICustomAppearance {
* Style constant for multiplicity display in labels.
*/
public final static String DISP_MULTIPLICITY = "multiplicity";
+
+ /**
+ * Style constant for multiplicity display without brackets in labels.
+ */
+ public final static String DISP_MULTIPLICITY_NO_BRACKETS = "multiplicityNoBrackets";
/**
* Style constant for default value display in labels.
diff --git a/plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/MultiplicityElementUtil.java b/plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/MultiplicityElementUtil.java
index f28631652a4..2ef4511892a 100644
--- a/plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/MultiplicityElementUtil.java
+++ b/plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/MultiplicityElementUtil.java
@@ -14,6 +14,7 @@
package org.eclipse.papyrus.uml.tools.utils;
import org.eclipse.uml2.uml.LiteralInteger;
+import org.eclipse.uml2.uml.LiteralString;
import org.eclipse.uml2.uml.LiteralUnlimitedNatural;
import org.eclipse.uml2.uml.MultiplicityElement;
import org.eclipse.uml2.uml.ValueSpecification;
@@ -24,22 +25,59 @@ import org.eclipse.uml2.uml.ValueSpecification;
public class MultiplicityElementUtil {
/**
+ * The quote character representation.
+ */
+ private static final String QUOTE = "\"";
+
+ /**
* The string representing the multiplicity with space " [x..y]"
* Clients should format the spaces at the calling side, but this method left here for backward compatibility
+ *
+ * @param element
+ * The multiplicity element to parse.
*/
@Deprecated
- public static String getMultiplicityAsString(MultiplicityElement element) {
- String multiplicity = formatMultiplicity(element);
+ public static String getMultiplicityAsString(final MultiplicityElement element) {
+ return getMultiplicityAsString(element, false);
+ }
+
+ /**
+ * The string representing the multiplicity with space " [x..y]"
+ * Clients should format the spaces at the calling side, but this method left here for backward compatibility (with quote edition for LiteralString).
+ *
+ * @param element
+ * The multiplicity element to parse.
+ * @param isEdition
+ * Boolean to determinate if the quote will be added for the LiteralString
+ */
+ @Deprecated
+ public static String getMultiplicityAsString(final MultiplicityElement element, final boolean isEdition) {
+ String multiplicity = formatMultiplicity(element, isEdition);
return multiplicity == null || multiplicity.isEmpty() ? "" : " " + multiplicity;
}
/**
* Return the multiplicity of the element "[x..y]"
*
+ * @param element
+ * The multiplicity element to parse.
* @return the string representing the multiplicity
*/
- public static String formatMultiplicity(MultiplicityElement element) {
- String multiplicityStr = formatMultiplicityNoBrackets(element);
+ public static String formatMultiplicity(final MultiplicityElement element) {
+ return formatMultiplicity(element, false);
+ }
+
+ /**
+ * Return the multiplicity of the element "[x..y]" (with quote edition for LiteralString).
+ *
+ * @param element
+ * The multiplicity element to parse.
+ * @param isEdition
+ * Boolean to determinate if the quote will be added for the LiteralString
+ * @return the string representing the multiplicity
+ */
+ public static String formatMultiplicity(final MultiplicityElement element, final boolean isEdition) {
+ String multiplicityStr = formatMultiplicityNoBrackets(element, isEdition);
if (multiplicityStr == null || multiplicityStr.isEmpty()) {
return "";
}
@@ -53,9 +91,24 @@ public class MultiplicityElementUtil {
/**
* Returns the String corresponding to the multiplicity without square brackets
*
+ * @param element
+ * The multiplicity element to parse.
+ * @return the string representing the multiplicity, without square brackets
+ */
+ public static String formatMultiplicityNoBrackets(final MultiplicityElement element) {
+ return formatMultiplicityNoBrackets(element, false);
+ }
+
+ /**
+ * Returns the String corresponding to the multiplicity without square brackets (with quote edition for LiteralString).
+ *
+ * @param element
+ * The multiplicity element to parse.
+ * @param isEdition
+ * Boolean to determinate if the quote will be added for the LiteralString
* @return the string representing the multiplicity, without square brackets
*/
- public static String formatMultiplicityNoBrackets(MultiplicityElement element) {
+ public static String formatMultiplicityNoBrackets(final MultiplicityElement element, final boolean isEdition) {
ValueSpecification lowerSpecification = element.getLowerValue();
ValueSpecification upperSpecification = element.getUpperValue();
if (lowerSpecification == null && upperSpecification == null) {
@@ -70,7 +123,7 @@ public class MultiplicityElementUtil {
if (lowerSpecification instanceof LiteralInteger && upperSpecification instanceof LiteralUnlimitedNatural) {
return setupMultiplicityAsInteger(((LiteralInteger) lowerSpecification).integerValue(), ((LiteralUnlimitedNatural) upperSpecification).unlimitedValue());
}
- return setupMultiplicityAsString(element, lowerSpecification, upperSpecification);
+ return setupMultiplicityAsString(element, lowerSpecification, upperSpecification, isEdition);
}
private static String setupMultiplicityAsInteger(int lower, int upper) {
@@ -86,12 +139,12 @@ public class MultiplicityElementUtil {
}
}
- private static String setupMultiplicityAsString(MultiplicityElement element, ValueSpecification lower, ValueSpecification upper) {
- String lowerStr = ValueSpecificationUtil.getSpecificationValue(lower);
+ private static String setupMultiplicityAsString(final MultiplicityElement element, final ValueSpecification lower, final ValueSpecification upper, final boolean isEdition) {
+ String lowerStr = getStringSpecificationValue(lower, isEdition);
if ("*".equals(lowerStr)) {
return "";
}
- String upperStr = ValueSpecificationUtil.getSpecificationValue(upper);
+ String upperStr = getStringSpecificationValue(upper, isEdition);
if (lowerStr != null && false == lowerStr.isEmpty() && lowerStr.equalsIgnoreCase(upperStr)) {
return lowerStr;
}
@@ -146,4 +199,25 @@ public class MultiplicityElementUtil {
return new int[] { lower, upper };
}
+ /**
+ * This allow to get the value specification (with the quote management for the edition mode).
+ *
+ * @param valueSpecification
+ * The value specification.
+ * @param isEdition
+ * Boolean to determinate if the quote will be added for the LiteralString
+ * @return The string representing the value specification
+ */
+ private static String getStringSpecificationValue(final ValueSpecification valueSpecification, final boolean isEdition) {
+ String boundStr = ValueSpecificationUtil.getSpecificationValue(valueSpecification);
+ if (isEdition && valueSpecification instanceof LiteralString) {
+ final StringBuffer buffer = new StringBuffer();
+ buffer.append(QUOTE);
+ buffer.append(boundStr);
+ buffer.append(QUOTE);
+ boundStr = buffer.toString();
+ }
+ return boundStr;
+ }
+
}
diff --git a/plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/PropertyUtil.java b/plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/PropertyUtil.java
index 7faaf3494fb..23458631060 100644
--- a/plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/PropertyUtil.java
+++ b/plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils/src/org/eclipse/papyrus/uml/tools/utils/PropertyUtil.java
@@ -254,6 +254,9 @@ public class PropertyUtil {
// multiplicity -> do not display [1]
String multiplicity = getNonNullString(MultiplicityElementUtil.getMultiplicityAsString(property));
buffer.append(multiplicity);
+ } else if (style.contains(ICustomAppearance.DISP_MULTIPLICITY_NO_BRACKETS)) {
+ String multiplicity = getNonNullString(MultiplicityElementUtil.formatMultiplicityNoBrackets(property));
+ buffer.append(multiplicity);
}
if (style.contains(ICustomAppearance.DISP_DEFAULT_VALUE)) {
diff --git a/plugins/uml/tools/org.eclipse.papyrus.uml.tools/src/org/eclipse/papyrus/uml/tools/providers/UMLLabelProvider.java b/plugins/uml/tools/org.eclipse.papyrus.uml.tools/src/org/eclipse/papyrus/uml/tools/providers/UMLLabelProvider.java
index b43d8a630f4..ade18424000 100644
--- a/plugins/uml/tools/org.eclipse.papyrus.uml.tools/src/org/eclipse/papyrus/uml/tools/providers/UMLLabelProvider.java
+++ b/plugins/uml/tools/org.eclipse.papyrus.uml.tools/src/org/eclipse/papyrus/uml/tools/providers/UMLLabelProvider.java
@@ -24,24 +24,34 @@ import org.eclipse.papyrus.infra.emf.utils.TextReferencesHelper;
import org.eclipse.papyrus.uml.tools.Activator;
import org.eclipse.papyrus.uml.tools.namereferences.NameReferencesHelper;
import org.eclipse.papyrus.uml.tools.utils.ImageUtil;
+import org.eclipse.papyrus.uml.tools.utils.MultiplicityElementUtil;
import org.eclipse.swt.graphics.Image;
+import org.eclipse.uml2.common.util.UML2Util;
import org.eclipse.uml2.uml.ClassifierTemplateParameter;
import org.eclipse.uml2.uml.Comment;
import org.eclipse.uml2.uml.Element;
import org.eclipse.uml2.uml.ElementImport;
+import org.eclipse.uml2.uml.ExtensionEnd;
import org.eclipse.uml2.uml.InstanceSpecification;
import org.eclipse.uml2.uml.InstanceValue;
import org.eclipse.uml2.uml.LiteralNull;
import org.eclipse.uml2.uml.LiteralString;
+import org.eclipse.uml2.uml.MultiplicityElement;
import org.eclipse.uml2.uml.NamedElement;
import org.eclipse.uml2.uml.Operation;
import org.eclipse.uml2.uml.OperationTemplateParameter;
import org.eclipse.uml2.uml.PackageImport;
import org.eclipse.uml2.uml.PackageMerge;
import org.eclipse.uml2.uml.Parameter;
+import org.eclipse.uml2.uml.Property;
+import org.eclipse.uml2.uml.Stereotype;
import org.eclipse.uml2.uml.TemplateParameter;
import org.eclipse.uml2.uml.TemplateParameterSubstitution;
+import org.eclipse.uml2.uml.Type;
+import org.eclipse.uml2.uml.UMLPackage;
import org.eclipse.uml2.uml.ValueSpecification;
+import org.eclipse.uml2.uml.edit.UMLEditPlugin;
+import org.eclipse.uml2.uml.edit.providers.MultiplicityElementItemProvider;
import org.eclipse.uml2.uml.util.UMLUtil;
/**
@@ -130,10 +140,107 @@ public class UMLLabelProvider extends EMFLabelProvider implements ILabelProvider
if ((!(eObject instanceof Element)) && UMLUtil.getBaseElement(eObject) instanceof Comment) {
return getText(eObject);
}
+
+ if(eObject instanceof Property){
+ return getText((Property) eObject);
+ }
return super.getText(element);
}
+ protected String getText(final Property property){
+ final StringBuffer text = new StringBuffer();
+
+ final Type type = property.getType();
+
+ if (property.isDerived()) {
+ appendString(text, "/"); //$NON-NLS-1$
+ }
+
+ final String label = property.getLabel(shouldTranslate());
+
+ if (!UML2Util.isEmpty(label)) {
+ appendString(text, label);
+ } else if (property.getAssociation() != null && type != null) {
+ final String typeName = type.getName();
+
+ if (!UML2Util.isEmpty(typeName)) {
+ if(property instanceof ExtensionEnd){
+ appendString(text, "extension_" + typeName);
+ }else{
+ appendString(text, Character.toLowerCase(typeName.charAt(0))
+ + typeName.substring(1));
+ }
+ }
+ }
+
+ if (type != null) {
+ final String typeLabel = type.getLabel(shouldTranslate());
+
+ if (!UMLUtil.isEmpty(typeLabel)) {
+ appendString(text, ": " + typeLabel); //$NON-NLS-1$
+ }
+ }
+
+ if (property.eIsSet(UMLPackage.Literals.MULTIPLICITY_ELEMENT__LOWER)
+ || property.eIsSet(UMLPackage.Literals.MULTIPLICITY_ELEMENT__UPPER)) {
+ final String multiplicityAsString = MultiplicityElementUtil.getMultiplicityAsString(property);
+ if(!multiplicityAsString.isEmpty()){
+ text.append(multiplicityAsString);
+ }
+ }
+
+ return text.toString();
+ }
+
+ protected StringBuffer appendString(StringBuffer text, String string) {
+ if (!UML2Util.isEmpty(string)) {
+ if (text.length() > 0) {
+ text.append(' ');
+ }
+ text.append(string);
+ }
+ return text;
+ }
+
+ protected StringBuffer appendKeywords(StringBuffer text, Property property) {
+ final Iterator<Stereotype> appliedStereotypes = property
+ .getAppliedStereotypes().iterator();
+ final Iterator<String> keywords = property.getKeywords().iterator();
+
+ if (appliedStereotypes.hasNext() || keywords.hasNext()) {
+ if (text.length() > 0) {
+ text.append(' ');
+ }
+ text.append("<<"); //$NON-NLS-1$
+
+ while (appliedStereotypes.hasNext()) {
+ text.append(appliedStereotypes.next().getKeyword(
+ shouldTranslate()));
+
+ if (appliedStereotypes.hasNext() || keywords.hasNext()) {
+ text.append(", "); //$NON-NLS-1$
+ }
+ }
+
+ while (keywords.hasNext()) {
+ text.append(keywords.next());
+
+ if (keywords.hasNext()) {
+ text.append(", "); //$NON-NLS-1$
+ }
+ }
+
+ text.append(">>"); //$NON-NLS-1$
+ }
+
+ return text;
+ }
+
+ protected boolean shouldTranslate() {
+ return UMLEditPlugin.INSTANCE.shouldTranslate();
+ }
+
/**
*
* @see org.eclipse.jface.viewers.ILabelProvider#getText(java.lang.Object)
diff --git a/plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.ui/META-INF/MANIFEST.MF b/plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.ui/META-INF/MANIFEST.MF
index 6b0a9ffaed4..cc916cfe93c 100644
--- a/plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.ui/META-INF/MANIFEST.MF
+++ b/plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.ui/META-INF/MANIFEST.MF
@@ -1,34 +1,35 @@
-Manifest-Version: 1.0
-Export-Package: org.eclipse.papyrus.uml.xtext.integration,
- org.eclipse.papyrus.uml.xtext.integration.job
-Require-Bundle: org.eclipse.gef;bundle-version="3.9.0",
- org.eclipse.core.runtime;bundle-version="3.9.0",
- org.eclipse.gmf.runtime.common.core;bundle-version="1.7.0",
- org.eclipse.gmf.runtime.diagram.ui;bundle-version="1.7.0",
- org.eclipse.xtext;bundle-version="2.4.2",
- org.eclipse.xtext.ui;bundle-version="2.4.2",
- org.eclipse.ui.ide;bundle-version="3.9.0",
- org.eclipse.papyrus.uml.xtext.integration.core;bundle-version="1.1.0";visibility:=reexport,
- org.eclipse.papyrus.extensionpoints.editors;bundle-version="1.1.0";visibility:=reexport,
- org.eclipse.uml2.uml;bundle-version="4.1.0",
- org.eclipse.papyrus.uml.tools.utils;bundle-version="1.1.0",
- org.eclipse.papyrus.infra.core.log;bundle-version="1.1.0",
- org.eclipse.papyrus.infra.core.sasheditor;bundle-version="1.1.0",
- org.eclipse.papyrus.infra.core;bundle-version="1.1.0",
- org.eclipse.papyrus.infra.gmfdiag.common;bundle-version="1.1.0",
- org.eclipse.papyrus.uml.service.validation;bundle-version="1.1.0",
- org.eclipse.papyrus.uml.extensionpoints;bundle-version="1.1.0"
-Bundle-Vendor: Eclipse Modeling Project
-Bundle-Version: 1.1.0.qualifier
-Bundle-Name: GMF Xtext Integration
-Bundle-Activator: org.eclipse.papyrus.uml.xtext.integration.ui.Activat
- or
-Bundle-ManifestVersion: 2
-Import-Package: org.eclipse.papyrus.infra.services.validation,
- org.eclipse.papyrus.infra.services.validation.commands,
- org.eclipse.papyrus.uml.extensionpoints.profile,
- org.eclipse.papyrus.uml.extensionpoints.standard
-Bundle-SymbolicName: org.eclipse.papyrus.uml.xtext.integration.ui;sing
- leton:=true
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-
+Manifest-Version: 1.0
+Export-Package: org.eclipse.papyrus.uml.xtext.integration,
+ org.eclipse.papyrus.uml.xtext.integration.job
+Require-Bundle: org.eclipse.gef;bundle-version="3.9.0",
+ org.eclipse.core.runtime;bundle-version="3.9.0",
+ org.eclipse.gmf.runtime.common.core;bundle-version="1.7.0",
+ org.eclipse.gmf.runtime.diagram.ui;bundle-version="1.7.0",
+ org.eclipse.xtext;bundle-version="2.4.2",
+ org.eclipse.xtext.ui;bundle-version="2.4.2",
+ org.eclipse.ui.ide;bundle-version="3.9.0",
+ org.eclipse.papyrus.uml.xtext.integration.core;bundle-version="1.1.0";visibility:=reexport,
+ org.eclipse.papyrus.extensionpoints.editors;bundle-version="1.1.0";visibility:=reexport,
+ org.eclipse.uml2.uml;bundle-version="4.1.0",
+ org.eclipse.papyrus.uml.tools.utils;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.core.log;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.core.sasheditor;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.core;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.gmfdiag.common;bundle-version="1.1.0",
+ org.eclipse.papyrus.uml.service.validation;bundle-version="1.1.0",
+ org.eclipse.papyrus.uml.extensionpoints;bundle-version="1.1.0",
+ org.eclipse.papyrus.infra.services.edit;bundle-version="1.1.0"
+Bundle-Vendor: Eclipse Modeling Project
+Bundle-Version: 1.1.0.qualifier
+Bundle-Name: GMF Xtext Integration
+Bundle-Activator: org.eclipse.papyrus.uml.xtext.integration.ui.Activat
+ or
+Bundle-ManifestVersion: 2
+Import-Package: org.eclipse.papyrus.infra.services.validation,
+ org.eclipse.papyrus.infra.services.validation.commands,
+ org.eclipse.papyrus.uml.extensionpoints.profile,
+ org.eclipse.papyrus.uml.extensionpoints.standard
+Bundle-SymbolicName: org.eclipse.papyrus.uml.xtext.integration.ui;sing
+ leton:=true
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+
diff --git a/plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.ui/src/org/eclipse/papyrus/uml/xtext/integration/MultiplicityXTextParserUtils.java b/plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.ui/src/org/eclipse/papyrus/uml/xtext/integration/MultiplicityXTextParserUtils.java
new file mode 100644
index 00000000000..34e6079283d
--- /dev/null
+++ b/plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.ui/src/org/eclipse/papyrus/uml/xtext/integration/MultiplicityXTextParserUtils.java
@@ -0,0 +1,239 @@
+/*****************************************************************************
+ * Copyright (c) 2015 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Nicolas FAUVERGUE (ALL4TEC) nicolas.fauvergue@all4tec.net - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.xtext.integration;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gmf.runtime.common.core.command.CompositeCommand;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
+import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
+import org.eclipse.uml2.uml.LiteralInteger;
+import org.eclipse.uml2.uml.LiteralString;
+import org.eclipse.uml2.uml.LiteralUnlimitedNatural;
+import org.eclipse.uml2.uml.UMLFactory;
+import org.eclipse.uml2.uml.UMLPackage;
+import org.eclipse.uml2.uml.ValueSpecification;
+
+/**
+ * This class allow to define the multiplicity XText parser util methods which create the commands.
+ */
+public class MultiplicityXTextParserUtils {
+
+ /**
+ * The character representing the unlimited number
+ */
+ private static final String UNLIMITED_KEYWORD = "*";
+
+ /**
+ * The quote character.
+ */
+ private static final String QUOTE = "\"";
+
+ /**
+ * This allow to create the command for one bound of multiplicity and add it in the composite command.
+ *
+ * @param provider
+ * The provider.
+ * @param eObject
+ * The object to update.
+ * @param bound
+ * The bound filled.
+ * @return The command to update the multiplicity.
+ */
+ public static ICommand updateOneMultiplicityCommand(final IElementEditService provider, final EObject eObject, final String bound) {
+ final CompositeCommand compositeCommand = new CompositeCommand("Multiplicity update");
+ if (UNLIMITED_KEYWORD.equals(bound)) {
+ // The bound filled is the '*' character
+ compositeCommand.add(updateLowerValueSpecificationMultiplicityCommand(provider, eObject, "0"));
+ compositeCommand.add(updateUpperValueSpecificationMultiplicityCommand(provider, eObject, "-1"));
+ } else {
+ compositeCommand.add(updateLowerValueSpecificationMultiplicityCommand(provider, eObject, bound));
+ compositeCommand.add(updateUpperValueSpecificationMultiplicityCommand(provider, eObject, bound));
+ }
+ return compositeCommand;
+ }
+
+ /**
+ * This allow to create the command for two bounds of multiplicity and add it in the composite command.
+ *
+ * @param provider
+ * The provider.Vc
+ * @param eObject
+ * The object to update.
+ * @param lowerBound
+ * The lower bound filled.
+ * @param upperBound
+ * The upper bound filled.
+ * @return The command to update the multiplicity.
+ */
+ public static ICommand updateTwoMultiplicityCommand(final IElementEditService provider, final EObject eObject, final String lowerBound, final String upperBound) {
+ final CompositeCommand compositeCommand = new CompositeCommand("Multiplicity update");
+
+ compositeCommand.add(updateLowerValueSpecificationMultiplicityCommand(provider, eObject, lowerBound));
+
+ if (UNLIMITED_KEYWORD.equals(upperBound)) {
+ // The upper bound filled is the '*' character
+ compositeCommand.add(updateUpperValueSpecificationMultiplicityCommand(provider, eObject, "-1"));
+ } else {
+ compositeCommand.add(updateUpperValueSpecificationMultiplicityCommand(provider, eObject, upperBound));
+ }
+ return compositeCommand;
+ }
+
+ /**
+ * This allow to update the lower value specification of the multiplicity.
+ *
+ * @param provider
+ * The provider.
+ * @param eObject
+ * The object to update.
+ * @param bound
+ * The bound string representation.
+ * @return The command to update the lower multiplicity.
+ */
+ private static ICommand updateLowerValueSpecificationMultiplicityCommand(final IElementEditService provider, final EObject eObject, final String bound) {
+ final CompositeCommand compositeCommand = new CompositeCommand("Lower Multiplicity update");
+
+ ValueSpecification newLowerValueSpecification = (ValueSpecification) eObject.eGet(UMLPackage.eINSTANCE.getMultiplicityElement_LowerValue());
+
+ try {
+ final int newBound = Integer.parseInt(bound);
+ // If the value specification exists and is a literal integer, just set the new value if different
+ if (newLowerValueSpecification instanceof LiteralInteger) {
+ if (newBound != ((LiteralInteger) newLowerValueSpecification).getValue()) {
+ compositeCommand.add(createSetCommand(provider, newLowerValueSpecification, UMLPackage.Literals.LITERAL_INTEGER__VALUE, newBound));
+ // Unset the lower value
+ compositeCommand.add(createSetCommand(provider, eObject, UMLPackage.eINSTANCE.getMultiplicityElement_LowerValue(), null));
+ // Reset the value specification
+ compositeCommand.add(createSetCommand(provider, eObject, UMLPackage.eINSTANCE.getMultiplicityElement_LowerValue(), newLowerValueSpecification));
+ }
+ } else {
+ // If the value specification is not a LiteralInteger, create the literal integer and set the value
+ newLowerValueSpecification = UMLFactory.eINSTANCE.createLiteralInteger();
+ ((LiteralInteger) newLowerValueSpecification).setValue(newBound);
+ compositeCommand.add(createSetCommand(provider, eObject, UMLPackage.eINSTANCE.getMultiplicityElement_LowerValue(), newLowerValueSpecification));
+ }
+ } catch (final NumberFormatException e) {
+ // Manage the literal String
+ compositeCommand.add(updateLiteralStringMultiplicityCommand(provider, eObject, newLowerValueSpecification, UMLPackage.eINSTANCE.getMultiplicityElement_LowerValue(), bound));
+ }
+ return compositeCommand;
+ }
+
+ /**
+ * This allow to update the upper value specification of the multiplicity.
+ *
+ * @param provider
+ * The provider.
+ * @param eObject
+ * The object to update.
+ * @param bound
+ * The bound string representation.
+ * @return The command to update the upper multiplicity.
+ */
+ private static ICommand updateUpperValueSpecificationMultiplicityCommand(final IElementEditService provider, final EObject eObject, final String bound) {
+ final CompositeCommand compositeCommand = new CompositeCommand("Upper Multiplicity update");
+
+ ValueSpecification newUpperValueSpecification = (ValueSpecification) eObject.eGet(UMLPackage.eINSTANCE.getMultiplicityElement_UpperValue());
+
+ try {
+ final int newBound = Integer.parseInt(bound);
+
+ // If the value specification exists and is a literal integer, just set the new value if different
+ if (newUpperValueSpecification instanceof LiteralUnlimitedNatural) {
+ if (newBound != ((LiteralUnlimitedNatural) newUpperValueSpecification).getValue()) {
+ compositeCommand.add(createSetCommand(provider, newUpperValueSpecification, UMLPackage.Literals.LITERAL_UNLIMITED_NATURAL__VALUE, newBound));
+ // Unset the upper value
+ compositeCommand.add(createSetCommand(provider, eObject, UMLPackage.eINSTANCE.getMultiplicityElement_UpperValue(), null));
+ // Set the upper value specification
+ compositeCommand.add(createSetCommand(provider, eObject, UMLPackage.eINSTANCE.getMultiplicityElement_UpperValue(), newUpperValueSpecification));
+ }
+ } else {
+ // If the value specification is not a LiteralInteger, create the literal integer and set the value
+ newUpperValueSpecification = UMLFactory.eINSTANCE.createLiteralUnlimitedNatural();
+ ((LiteralUnlimitedNatural) newUpperValueSpecification).setValue(newBound);
+ compositeCommand.add(createSetCommand(provider, eObject, UMLPackage.eINSTANCE.getMultiplicityElement_UpperValue(), newUpperValueSpecification));
+ }
+ } catch (final NumberFormatException e) {
+ // Manage the literal String
+ compositeCommand.add(updateLiteralStringMultiplicityCommand(provider, eObject, newUpperValueSpecification, UMLPackage.eINSTANCE.getMultiplicityElement_UpperValue(), bound));
+ }
+ return compositeCommand;
+ }
+
+ /**
+ * Update the literal String for the multiplicity Value Specification (lower or upper).
+ *
+ * @param provider
+ * The provider.
+ * @param eObject
+ * The object to update.
+ * @param initialValueSpecification
+ * The initial value specification.
+ * @param feature
+ * The feature to update.
+ * @param bound
+ * The new bound value.
+ * @return The command to update the string multiplicity.
+ */
+ private static ICommand updateLiteralStringMultiplicityCommand(final IElementEditService provider, final EObject eObject, final ValueSpecification initialValueSpecification, final EStructuralFeature feature,
+ final String bound) {
+ final CompositeCommand compositeCommand = new CompositeCommand("String Multiplicity update");
+
+ ValueSpecification newValueSpecification = initialValueSpecification;
+
+ // Extract the quote if exists
+ String newStringValue = null;
+ if (bound.startsWith(QUOTE) && bound.endsWith(QUOTE)) {
+ newStringValue = bound.substring(1, bound.length() - 1);
+ } else {
+ newStringValue = bound;
+ }
+
+ // If the value specification exists and is a literal integer, just set the new value if different
+ if (newValueSpecification instanceof LiteralString) {
+ if (!newStringValue.equals(((LiteralString) newValueSpecification).getValue())) {
+ compositeCommand.add(createSetCommand(provider, newValueSpecification, UMLPackage.Literals.LITERAL_STRING__VALUE, newStringValue));
+ // Unset the bound value
+ compositeCommand.add(createSetCommand(provider, eObject, feature, null));
+ // Reset the value specification
+ compositeCommand.add(createSetCommand(provider, eObject, feature, newValueSpecification));
+ }
+ } else {
+ // If the value specification is not a LiteralString, create the literal string and set the value
+ newValueSpecification = UMLFactory.eINSTANCE.createLiteralString();
+ ((LiteralString) newValueSpecification).setValue(newStringValue);
+ compositeCommand.add(createSetCommand(provider, eObject, feature, newValueSpecification));
+ }
+ return compositeCommand;
+ }
+
+ /**
+ * This allow to create the Set command and add it in the composite command.
+ *
+ * @param provider
+ * The provider.
+ * @param parent
+ * The parent object to update
+ * @param feature
+ * The feature to update.
+ * @param value
+ * The value to set.
+ * @return The created set command.
+ */
+ private static ICommand createSetCommand(final IElementEditService provider, final EObject parent, final EStructuralFeature feature, final Object value) {
+ final SetRequest setBoundRequest = new SetRequest(parent, feature, value);
+ return provider.getEditCommand(setBoundRequest);
+ }
+}
diff --git a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/RedoHandler.java b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/RedoHandler.java
index 1b31300de3b..c24f5432f14 100644
--- a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/RedoHandler.java
+++ b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/RedoHandler.java
@@ -16,6 +16,7 @@ package org.eclipse.papyrus.views.modelexplorer.handler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.emf.edit.domain.EditingDomain;
/**
* Handler for the Redo Action
@@ -35,7 +36,10 @@ public class RedoHandler extends AbstractModelExplorerHandler {
* @throws ExecutionException
*/
public Object execute(ExecutionEvent event) throws ExecutionException {
- getEditingDomain().getCommandStack().redo();
+ EditingDomain domain = getEditingDomain();
+ if (domain != null) {
+ domain.getCommandStack().redo();
+ }
return null;
}
@@ -46,7 +50,12 @@ public class RedoHandler extends AbstractModelExplorerHandler {
*/
@Override
public void setEnabled(Object evaluationContext) {
- setBaseEnabled(getEditingDomain().getCommandStack().canRedo());
+ EditingDomain domain = getEditingDomain();
+ if (domain != null) {
+ setBaseEnabled(domain.getCommandStack().canRedo());
+ } else {
+ setBaseEnabled(false);
+ }
}
}
diff --git a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/UndoHandler.java b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/UndoHandler.java
index fbb7e5ba696..3eb26e137a7 100644
--- a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/UndoHandler.java
+++ b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/UndoHandler.java
@@ -16,6 +16,7 @@ package org.eclipse.papyrus.views.modelexplorer.handler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.emf.edit.domain.EditingDomain;
/**
* Handler for the Undo Action
@@ -34,7 +35,10 @@ public class UndoHandler extends AbstractModelExplorerHandler {
* @throws ExecutionException
*/
public Object execute(ExecutionEvent event) throws ExecutionException {
- getEditingDomain().getCommandStack().undo();
+ EditingDomain domain = getEditingDomain();
+ if (domain != null) {
+ domain.getCommandStack().undo();
+ }
return null;
}
@@ -45,7 +49,12 @@ public class UndoHandler extends AbstractModelExplorerHandler {
*/
@Override
public void setEnabled(Object evaluationContext) {
- setBaseEnabled(getEditingDomain().getCommandStack().canUndo());
+ EditingDomain domain = getEditingDomain();
+ if (domain != null) {
+ setBaseEnabled(domain.getCommandStack().canUndo());
+ } else {
+ setBaseEnabled(false);
+ }
}
}
diff --git a/releng/extras/category.xml b/releng/extras/category.xml
index 3f81f3fd751..414c31f8826 100644
--- a/releng/extras/category.xml
+++ b/releng/extras/category.xml
@@ -66,12 +66,6 @@
<feature url="features/org.eclipse.papyrus.extra.moka.feature_1.1.0.qualifier.jar" id="org.eclipse.papyrus.extra.moka.feature" version="1.1.0.qualifier">
<category name="org.eclipse.papyrus.extra.others.category"/>
</feature>
- <feature url="features/org.eclipse.papyrus.extra.epf.richtext.feature_1.1.0.qualifier.jar" id="org.eclipse.papyrus.extra.epf.richtext.feature" version="1.1.0.qualifier">
- <category name="org.eclipse.papyrus.extra.others.category"/>
- </feature>
- <feature url="features/org.eclipse.papyrus.extra.epf.richtext.feature.source_1.1.0.qualifier.jar" id="org.eclipse.papyrus.extra.epf.richtext.feature.source" version="1.1.0.qualifier">
- <category name="org.eclipse.papyrus.extra.others.category"/>
- </feature>
<feature url="features/org.eclipse.papyrus.extra.eastadl.feature_1.1.0.qualifier.jar" id="org.eclipse.papyrus.extra.eastadl.feature" version="1.1.0.qualifier">
<category name="org.eclipse.papyrus.extra.others.category"/>
</feature>
@@ -140,7 +134,7 @@
</feature>
<feature url="features/org.eclipse.papyrus.sysml14.feature.source_0.7.0.qualifier.jar" id="org.eclipse.papyrus.sysml14.feature.source" version="0.7.0.qualifier">
<category name="org.eclipse.papyrus.extra.others.category"/>
- </feature>
+ </feature>
<feature url="features/org.eclipse.papyrus.extra.eastadl.feature.source_1.1.0.qualifier.jar" id="org.eclipse.papyrus.extra.eastadl.feature.source" version="1.1.0.qualifier">
<category name="org.eclipse.papyrus.extra.others.category"/>
</feature>
diff --git a/releng/org.eclipse.papyrus.oomph/setups/papyrus.setup b/releng/org.eclipse.papyrus.oomph/setups/papyrus.setup
index 87565d4b991..0651e98e267 100644
--- a/releng/org.eclipse.papyrus.oomph/setups/papyrus.setup
+++ b/releng/org.eclipse.papyrus.oomph/setups/papyrus.setup
@@ -1,3016 +1,3041 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<setup:Project
- xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:git="http://www.eclipse.org/oomph/setup/git/1.0"
- xmlns:jdt="http://www.eclipse.org/oomph/setup/jdt/1.0"
- xmlns:mylyn="http://www.eclipse.org/oomph/setup/mylyn/1.0"
- xmlns:predicates="http://www.eclipse.org/oomph/predicates/1.0"
- xmlns:projects="http://www.eclipse.org/oomph/setup/projects/1.0"
- xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
- xmlns:setup.p2="http://www.eclipse.org/oomph/setup/p2/1.0"
- xmlns:setup.targlets="http://www.eclipse.org/oomph/setup/targlets/1.0"
- xmlns:setup.workingsets="http://www.eclipse.org/oomph/setup/workingsets/1.0"
- xmlns:workingsets="http://www.eclipse.org/oomph/workingsets/1.0"
- xsi:schemaLocation="http://www.eclipse.org/oomph/setup/git/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Git.ecore http://www.eclipse.org/oomph/setup/jdt/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/JDT.ecore http://www.eclipse.org/oomph/setup/mylyn/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Mylyn.ecore http://www.eclipse.org/oomph/predicates/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Predicates.ecore http://www.eclipse.org/oomph/setup/projects/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Projects.ecore http://www.eclipse.org/oomph/setup/targlets/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/SetupTarglets.ecore http://www.eclipse.org/oomph/setup/workingsets/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/SetupWorkingSets.ecore http://www.eclipse.org/oomph/workingsets/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/WorkingSets.ecore"
- name="papyrus"
- label="Papyrus">
- <setupTask
- xsi:type="setup.p2:P2Task"
- label="Core Development Tools">
- <requirement
- name="org.eclipse.emf.sdk.feature.group"/>
- <requirement
- name="org.eclipse.gmf.runtime.notation.sdk.feature.group"/>
- <requirement
- name="org.eclipse.gmf.runtime.sdk.feature.group"/>
- <requirement
- name="org.eclipse.gmf.sdk.feature.group"/>
- <requirement
- name="org.eclipse.uml2.sdk.feature.group"/>
- <requirement
- name="org.eclipse.papyrus.sdk.feature.feature.group"/>
- <requirement
- name="org.eclipse.pde.api.tools.ee.feature.feature.group"/>
- <requirement
- name="org.eclipse.mylyn.ide_feature.feature.group"/>
- <requirement
- name="org.eclipse.mylyn.java_feature.feature.group"/>
- <requirement
- name="org.eclipse.mylyn.pde_feature.feature.group"/>
- <requirement
- name="org.eclipse.mylyn.team_feature.feature.group"/>
- <requirement
- name="org.eclipse.mylyn.gerrit.feature.feature.group"/>
- <requirement
- name="org.eclipse.mylyn_feature.feature.group"/>
- <requirement
- name="org.eclipse.mylyn.bugzilla_feature.feature.group"/>
- <requirement
- name="org.eclipse.mylyn.git.feature.group"/>
- <requirement
- name="org.eclipse.mylyn.hudson.feature.group"/>
- <requirement
- name="org.eclipse.mylyn.wikitext_feature.feature.group"/>
- <requirement
- name="org.eclipse.egit.feature.group"/>
- <requirement
- name="org.eclipse.egit.mylyn.feature.group"/>
- <requirement
- name="org.eclipse.swtbot.ide.feature.group"/>
- <requirement
- name="org.eclipse.swtbot.generator.feature.feature.group"/>
- <requirement
- name="org.eclipse.m2e.feature.feature.group"/>
- <repository
- url="http://download.eclipse.org/technology/swtbot/snapshots"/>
- </setupTask>
- <setupTask
- xsi:type="setup.p2:P2Task"
- label="Releng Tools">
- <requirement
- name="org.eclipse.oomph.projectconfig.feature.group"/>
- <requirement
- name="org.eclipse.oomph.projectcopy.feature.group"/>
- <requirement
- name="org.eclipse.oomph.workingsets.feature.group"/>
- <requirement
- name="org.sonatype.tycho.m2e.feature.feature.group"/>
- <repository
- url="http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-tycho/0.8.0/N/LATEST/"/>
- </setupTask>
- <setupTask
- xsi:type="setup.p2:P2Task"
- label="Code Quality Tools">
- <requirement
- name="com.mountainminds.eclemma.feature.feature.group"
- optional="true"/>
- <requirement
- name="net.sf.eclipsecs.feature.group"
- optional="true"/>
- <requirement
- name="edu.umd.cs.findbugs.plugin.eclipse.feature.group"
- optional="true"/>
- <repository
- url="http://update.eclemma.org/"/>
- <repository
- url="http://eclipse-cs.sourceforge.net/update/"/>
- <repository
- url="http://findbugs.cs.umd.edu/eclipse/"/>
- </setupTask>
- <setupTask
- xsi:type="setup:EclipseIniTask"
- option="-Xmx"
- value="2048m"
- vm="true"/>
- <setupTask
- xsi:type="setup:ResourceCreationTask"
- excludedTriggers="STARTUP MANUAL"
- content="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;section name=&quot;Workbench&quot;>&#xD;&#xA;&#x9;&lt;item value=&quot;${papyrus.git.clone.location}/doc/DevelopperDocuments/templates&quot; key=&quot;org.eclipse.jdt.ui.cleanup.loadpath&quot;/>&#xA;&#x9;&lt;item value=&quot;${papyrus.git.clone.location}/doc/DevelopperDocuments/templates&quot; key=&quot;org.eclipse.jdt.ui.codeformatter.loadpath&quot;/>&#xA;&#x9;&lt;item value=&quot;${papyrus.git.clone.location}/doc/DevelopperDocuments/templates&quot; key=&quot;org.eclipse.jdt.ui.importorder.loadpath&quot;/>&#xA;&#x9;&lt;section name=&quot;org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart&quot;>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;true&quot; key=&quot;group_libraries&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;false&quot; key=&quot;linkWithEditor&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;2&quot; key=&quot;layout&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;2&quot; key=&quot;rootMode&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;packageExplorer configured=&amp;quot;true&amp;quot; group_libraries=&amp;quot;1&amp;quot; layout=&amp;quot;2&amp;quot; linkWithEditor=&amp;quot;0&amp;quot; rootMode=&amp;quot;2&amp;quot; sortWorkingSets=&amp;quot;false&amp;quot; workingSetName=&amp;quot;&amp;quot;&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;localWorkingSetManager&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;workingSet editPageId=&amp;quot;org.eclipse.jdt.internal.ui.OthersWorkingSet&amp;quot; factoryID=&amp;quot;org.eclipse.ui.internal.WorkingSetFactory&amp;quot; id=&amp;quot;1382792884467_1&amp;quot; label=&amp;quot;Other Projects&amp;quot; name=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;/localWorkingSetManager&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;activeWorkingSet workingSetName=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;allWorkingSets workingSetName=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;/packageExplorer&amp;gt;&quot; key=&quot;memento&quot;/>&#xD;&#xA;&#x9;&lt;/section>&#xD;&#xA;&lt;/section>&#xD;&#xA;"
- targetURL="${workspace.location|uri}/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml"
- encoding="UTF-8"/>
- <setupTask
- xsi:type="setup:ResourceCreationTask"
- content="cleanup_profile=_Papyrus&#xA;cleanup_settings_version=2&#xA;eclipse.preferences.version=1&#xA;formatter_profile=_Papyrus Formatter Profile CDM&#xA;formatter_settings_version=12&#xA;org.eclipse.jdt.ui.cleanupprofiles=&lt;?xml version\=&quot;1.0&quot; encoding\=&quot;UTF-8&quot; standalone\=&quot;no&quot;?>\n&lt;profiles version\=&quot;2&quot;>\n&lt;profile kind\=&quot;CleanUpProfile&quot; name\=&quot;Papyrus&quot; version\=&quot;2&quot;>\n&lt;setting id\=&quot;cleanup.format_source_code&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.convert_functional_interfaces&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.add_missing_annotations&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.use_this_for_non_static_method_access_only_if_necessary&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.remove_unused_private_types&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.insert_inferred_type_arguments&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.qualify_static_member_accesses_through_instances_with_declaring_class&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.qualify_static_method_accesses_with_declaring_class&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.add_generated_serial_version_id&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.make_variable_declarations_final&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.add_missing_methods&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.always_use_this_for_non_static_field_access&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.use_type_arguments&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.remove_trailing_whitespaces_ignore_empty&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.correct_indentation&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.never_use_parentheses_in_expressions&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.add_serial_version_id&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.remove_unused_private_methods&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.use_this_for_non_static_field_access&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.use_blocks_only_for_return_and_throw&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.remove_unused_private_members&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.add_missing_override_annotations_interface_methods&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.remove_trailing_whitespaces_all&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.make_type_abstract_if_missing_method&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.always_use_this_for_non_static_method_access&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.remove_unnecessary_nls_tags&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.format_source_code_changes_only&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.qualify_static_field_accesses_with_declaring_class&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.add_missing_nls_tags&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.use_this_for_non_static_field_access_only_if_necessary&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.remove_unnecessary_casts&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.qualify_static_member_accesses_with_declaring_class&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.use_parentheses_in_expressions&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.remove_unused_private_fields&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.make_parameters_final&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.remove_redundant_type_arguments&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.remove_trailing_whitespaces&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.remove_unused_imports&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.use_anonymous_class_creation&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.organize_imports&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.sort_members&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.remove_private_constructors&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.convert_to_enhanced_for_loop&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.always_use_blocks&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.never_use_blocks&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.use_lambda&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.always_use_parentheses_in_expressions&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.use_this_for_non_static_method_access&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.remove_unused_local_variables&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.make_private_fields_final&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.add_missing_deprecated_annotations&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.add_default_serial_version_id&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.sort_members_all&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.use_blocks&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.add_missing_override_annotations&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.make_local_variable_final&quot; value\=&quot;true&quot;/>\n&lt;/profile>\n&lt;/profiles>\n&#xA;org.eclipse.jdt.ui.cleanupprofiles.version=2&#xA;org.eclipse.jdt.ui.formatterprofiles=&lt;?xml version\=&quot;1.0&quot; encoding\=&quot;UTF-8&quot; standalone\=&quot;no&quot;?>\n&lt;profiles version\=&quot;12&quot;>\n&lt;profile kind\=&quot;CodeFormatterProfile&quot; name\=&quot;Papyrus Formatter Profile CDM&quot; version\=&quot;12&quot;>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.disabling_tag&quot; value\=&quot;@formatter\:off&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_field&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.use_on_off_tags&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_ellipsis&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_multiple_fields&quot; value\=&quot;16&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_conditional_expression&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_binary_operator&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_array_initializer&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_after_package&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.continuation_indentation&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_binary_operator&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_package&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.source&quot; value\=&quot;1.8&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_line_comments&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.join_wrapped_lines&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_member_type&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.align_type_members_on_columns&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_unary_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.indent_parameter_description&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.lineSplit&quot; value\=&quot;200&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indentation.size&quot; value\=&quot;4&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.enabling_tag&quot; value\=&quot;@formatter\:on&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_assignment&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.problem.assertIdentifier&quot; value\=&quot;error&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.tabulation.char&quot; value\=&quot;tab&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_statements_compare_to_body&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_method&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_method_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_switch&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.problem.enumIdentifier&quot; value\=&quot;error&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_ellipsis&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_block&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_method_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.compact_else_if&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.indent_root_tags&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_enum_constant&quot; value\=&quot;next_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch&quot; value\=&quot;16&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.tabulation.size&quot; value\=&quot;4&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_empty_lines&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_block_in_case&quot; value\=&quot;next_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve&quot; value\=&quot;5&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.compliance&quot; value\=&quot;1.8&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_lambda_body&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_unary_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_binary_expression&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode&quot; value\=&quot;enabled&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_label&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_javadoc_comments&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.line_length&quot; value\=&quot;150&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_between_import_groups&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_semicolon&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.wrap_before_binary_operator&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_statements_compare_to_block&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.join_lines_in_comments&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_compact_if&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_imports&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_html&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_source_code&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.codegen.targetPlatform&quot; value\=&quot;1.8&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_resources_in_try&quot; value\=&quot;80&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_header&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_block_comments&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_enum_constants&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_type_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_after_imports&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line&quot; value\=&quot;false&quot;/>\n&lt;/profile>\n&lt;profile kind\=&quot;CodeFormatterProfile&quot; name\=&quot;Zero blank Papyrus Formatter Profile CDM&quot; version\=&quot;12&quot;>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.disabling_tag&quot; value\=&quot;@formatter\:off&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_field&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.use_on_off_tags&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_ellipsis&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_multiple_fields&quot; value\=&quot;16&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_conditional_expression&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_binary_operator&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_array_initializer&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_after_package&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.continuation_indentation&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_binary_operator&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_package&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.source&quot; value\=&quot;1.8&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_line_comments&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.join_wrapped_lines&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_member_type&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.align_type_members_on_columns&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_unary_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.indent_parameter_description&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.lineSplit&quot; value\=&quot;200&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indentation.size&quot; value\=&quot;4&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.enabling_tag&quot; value\=&quot;@formatter\:on&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_assignment&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.problem.assertIdentifier&quot; value\=&quot;error&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.tabulation.char&quot; value\=&quot;tab&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_statements_compare_to_body&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_method&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_method_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_switch&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.problem.enumIdentifier&quot; value\=&quot;error&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_ellipsis&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_block&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_method_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.compact_else_if&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.indent_root_tags&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_enum_constant&quot; value\=&quot;next_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch&quot; value\=&quot;16&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.tabulation.size&quot; value\=&quot;4&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_empty_lines&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_block_in_case&quot; value\=&quot;next_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.compliance&quot; value\=&quot;1.8&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_lambda_body&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_unary_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_binary_expression&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode&quot; value\=&quot;enabled&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_label&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_javadoc_comments&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.line_length&quot; value\=&quot;150&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_between_import_groups&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_semicolon&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.wrap_before_binary_operator&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_statements_compare_to_block&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.join_lines_in_comments&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_compact_if&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_imports&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_html&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_source_code&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.codegen.targetPlatform&quot; value\=&quot;1.8&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_resources_in_try&quot; value\=&quot;80&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_header&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_block_comments&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_enum_constants&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_type_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_after_imports&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line&quot; value\=&quot;false&quot;/>\n&lt;/profile>\n&lt;/profiles>\n&#xA;org.eclipse.jdt.ui.formatterprofiles.version=12&#xA;org.eclipse.jdt.ui.text.code_templates_migrated=true&#xA;org.eclipse.jdt.ui.text.custom_code_templates=&lt;?xml version\=&quot;1.0&quot; encoding\=&quot;UTF-8&quot; standalone\=&quot;no&quot;?>&lt;templates>&lt;template autoinsert\=&quot;false&quot; context\=&quot;constructorcomment_context&quot; deleted\=&quot;false&quot; description\=&quot;Comment for created constructors&quot; enabled\=&quot;true&quot; id\=&quot;org.eclipse.jdt.ui.text.codetemplates.constructorcomment&quot; name\=&quot;constructorcomment&quot;>/**\n * Constructor.\n *\n * $${tags}\n */&lt;/template>&lt;template autoinsert\=&quot;false&quot; context\=&quot;filecomment_context&quot; deleted\=&quot;false&quot; description\=&quot;Comment for created Java files&quot; enabled\=&quot;true&quot; id\=&quot;org.eclipse.jdt.ui.text.codetemplates.filecomment&quot; name\=&quot;filecomment&quot;>/*****************************************************************************\n * Copyright (c) $${year} CEA LIST and others.\n * \n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http\://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors\:\n * CEA LIST - Initial API and implementation\n * \n *****************************************************************************/\n&lt;/template>&lt;template autoinsert\=&quot;false&quot; context\=&quot;overridecomment_context&quot; deleted\=&quot;false&quot; description\=&quot;Comment for overriding methods&quot; enabled\=&quot;true&quot; id\=&quot;org.eclipse.jdt.ui.text.codetemplates.overridecomment&quot; name\=&quot;overridecomment&quot;>/**\n * $${see_to_overridden}\n *\n * $${tags}\n */&lt;/template>&lt;template autoinsert\=&quot;false&quot; context\=&quot;delegatecomment_context&quot; deleted\=&quot;false&quot; description\=&quot;Comment for delegate methods&quot; enabled\=&quot;true&quot; id\=&quot;org.eclipse.jdt.ui.text.codetemplates.delegatecomment&quot; name\=&quot;delegatecomment&quot;>/**\n * $${see_to_target}\n *\n * $${tags}\n */&lt;/template>&lt;/templates>&#xA;"
- targetURL="${workspace.location|uri}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs">
- <description>Code formatting and clean-up profiles for Papyrus.</description>
- </setupTask>
- <setupTask
- xsi:type="setup:CompoundTask"
- name="Compiler Preferences">
- <setupTask
- xsi:type="setup:PreferenceTask"
- key="instance/org.eclipse.jdt.launching/org.eclipse.jdt.launching.PREF_STRICTLY_COMPATIBLE_JRE_NOT_AVAILABLE"
- value="ignore"/>
- <setupTask
- xsi:type="setup:PreferenceTask"
- key="instance/org.eclipse.pde/compilers.f.unresolved-features"
- value="2"/>
- <setupTask
- xsi:type="setup:CompoundTask"
- name="org.eclipse.pde.api.tools">
- <setupTask
- xsi:type="setup:PreferenceTask"
- key="/instance/org.eclipse.pde.api.tools/missing_default_api_profile"
- value="Ignore"/>
- </setupTask>
- </setupTask>
- <setupTask
- xsi:type="setup:VariableTask"
- type="URI"
- name="base.downloads.url"
- value="http://download.eclipse.org"/>
- <setupTask
- xsi:type="setup:VariableTask"
- name="git.checkout.branch"
- value="${scope.project.stream.name}"/>
- <setupTask
- xsi:type="setup:VariableTask"
- name="eclipse.target.platform"
- defaultValue="Luna"
- storageURI="scope://Workspace"/>
- <setupTask
- xsi:type="git:GitCloneTask"
- id="papyrus.git.clone"
- remoteURI="papyrus/org.eclipse.papyrus"
- pushURI=""
- checkoutBranch="${git.checkout.branch}">
- <annotation
- source="http://www.eclipse.org/oomph/setup/InducedChoices">
- <detail
- key="inherit">
- <value>eclipse.git.gerrit.remoteURIs</value>
- </detail>
- <detail
- key="label">
- <value>Papyrus Git or Gerrit Repository</value>
- </detail>
- <detail
- key="target">
- <value>remoteURI</value>
- </detail>
- </annotation>
- <description>Papyrus</description>
- </setupTask>
- <setupTask
- xsi:type="setup.targlets:TargletTask">
- <targlet
- name="Papyrus Main Dependencies"
- activeRepositoryList="${eclipse.target.platform}">
- <requirement
- name="org.eclipse.sdk.feature.group"/>
- <requirement
- name="org.eclipse.uml2.sdk.feature.group"/>
- <requirement
- name="org.eclipse.emf.sdk.feature.group"/>
- <repositoryList
- name="Mars">
- <repository
- url="http://download.eclipse.org/eclipse/updates/4.5milestones/S-4.5M7-201504301445">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>Eclipse</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="${base.downloads.url}/tools/orbit/downloads/drops/R20140525021250/repository"/>
- <repository
- url="http://download.eclipse.org/modeling/emf/emf/updates/2.11milestones/">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>EMF (Core)</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/emf/transaction/updates/milestones/S201505060251">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>EMF TRANSACTION</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/emf/validation/updates/milestones/S201505060134/">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>EMF VALIDATION</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/tools/gef/updates/milestones">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>GEF</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/gmp/gmf-runtime/updates/milestones/S201505060429">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>GMF Runtime</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/gmp/gmf-notation/updates/milestones/S201505060039">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>GMF Notation</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/gmp/gmf-tooling/updates/milestones-3.3/M7">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>GMF Tooling</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505050723/mwe">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>EMFT MWE</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505050939/mwe2lang">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>EMFT MWE:1</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/mmt/qvto/updates/milestones/3.5.0/S201505050519">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>QVT Operational</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/acceleo/updates/milestones/3.6/S201505040910">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>M2T ACCELEO</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/6.0.0/S201505041438">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>MDT OCL 6.0</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/mdt/uml2/updates/5.1milestones">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>MDT UML2</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/m2t/xpand/updates/milestones/S201505051058/">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>M2T XPAND</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/tmf/xtext/updates/milestones/maintenance/S201505051043/">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>Xtext, Xtend</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/emf/compare/updates/milestones/3.1/S201505051321">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>EMF COMPARE</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/webtools/downloads/drops/R3.7.0/S-3.7.0M7-20150505000109/repository/">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>WebTools</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="${base.downloads.url}/nattable/releases/1.2.0/repository/"/>
- <repository
- url="http://download.eclipse.org/xwt/release-1.1.0">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>XWT</value>
- </detail>
- </annotation>
- </repository>
- </repositoryList>
- <repositoryList
- name="Luna">
- <repository
- url="http://download.eclipse.org/eclipse/updates/4.5milestones/S-4.5M6-201503200800/">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>Eclipse</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="${base.downloads.url}/tools/orbit/downloads/drops/R20140525021250/repository"/>
- <repository
- url="http://download.eclipse.org/modeling/emf/emf/updates/2.11milestones/">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>EMF (Core)</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/emf/transaction/updates/milestones/S201503250534">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>EMF TRANSACTION</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/emf/validation/updates/milestones/S201503250348">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>EMF VALIDATION</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="${base.downloads.url}/modeling/emf/query/updates/releases/R201405281426"/>
- <repository
- url="http://download.eclipse.org/tools/gef/updates/milestones">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>GEF</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/gmp/gmf-runtime/updates/milestones/S201502040533">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>GMF Runtime</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/gmp/gmf-notation/updates/milestones/S201503250354">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>GMF Notation</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/gmp/gmf-tooling/updates/milestones-3.3/M4">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>GMF Tooling</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201503240644/mwe">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>EMFT MWE</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/mmt/qvto/updates/milestones/3.5.0/S201503241740">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>QVT Operational</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/acceleo/updates/milestones/3.6/S201503131323">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>M2T ACCELEO</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/6.0.0/S201503240634">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>MDT OCL 6.0</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/mdt/uml2/updates/5.1milestones">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>MDT UML2</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/m2t/xpand/updates/milestones/S201503240650/">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>M2T XPAND</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.8.1/">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>Xtext, Xtend</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/modeling/emf/compare/updates/milestones/3.1/S201503131342">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>EMF COMPARE</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/webtools/downloads/drops/R3.7.0/S-3.7.0M6-20150324000117/repository/">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>WebTools</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="${base.downloads.url}/nattable/releases/1.2.0/repository/"/>
- </repositoryList>
- </targlet>
- <targlet
- name="Papyrus Test Dependencies"
- activeRepositoryList="${eclipse.target.platform}">
- <requirement
- name="org.eclipse.swtbot.feature.group"/>
- <requirement
- name="org.eclipse.swtbot.eclipse.feature.group"/>
- <requirement
- name="org.eclipse.swtbot.eclipse.gef.feature.group"/>
- <requirement
- name="org.eclipse.swtbot.forms.feature.group"/>
- <repositoryList
- name="Mars">
- <repository
- url="${base.downloads.url}/technology/swtbot/snapshots"/>
- </repositoryList>
- <repositoryList
- name="Luna">
- <repository
- url="${base.downloads.url}/technology/swtbot/snapshots"/>
- </repositoryList>
- </targlet>
- <targlet
- name="Papyrus Main Plug-ins"
- activeRepositoryList="${eclipse.target.platform}">
- <requirement
- name="org.eclipse.papyrus.sdk.feature.feature.group"/>
- <repositoryList
- name="Mars">
- <repository
- url="${base.downloads.url}/modeling/mdt/papyrus/updates/nightly/mars/main"/>
- </repositoryList>
- <repositoryList
- name="Luna">
- <repository
- url="${base.downloads.url}/modeling/mdt/papyrus/updates/nightly/luna"/>
- </repositoryList>
- </targlet>
- <targlet
- name="Diagnostic/Debug Tools"
- activeRepositoryList="${eclipse.target.platform}"
- includeSources="false">
- <requirement
- name="org.eclipse.swt.tools"
- optional="true"/>
- <repositoryList
- name="Mars">
- <repository
- url="http://www.eclipse.org/swt/updates/4.4"/>
- </repositoryList>
- <repositoryList
- name="Luna">
- <repository
- url="http://www.eclipse.org/swt/updates/4.4"/>
- </repositoryList>
- </targlet>
- </setupTask>
- <setupTask
- xsi:type="setup:CompoundTask"
- name="Mylyn Queries">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.repository"
- value="https://bugs.eclipse.org/bugs"/>
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.prefix"
- value="/buglist.cgi?classification=Modeling&amp;product=Papyrus"/>
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.open"
- value="bug_status=UNCONFIRMED&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED"/>
- <setupTask
- xsi:type="mylyn:MylynQueriesTask"
- repositoryURL="${papyrus.bugzilla.repository}">
- <query
- summary="Papyrus Flagged for Review"
- url="${papyrus.bugzilla.prefix}&amp;version=${papyrus.bugzilla.version}&amp;${papyrus.bugzilla.open}&amp;query_format=advanced&amp;field0-0-0=flagtypes.name&amp;type0-0-0=equals&amp;value0-0-0=review%3F"/>
- <query
- summary="Papyrus Open Bugs"
- url="${papyrus.bugzilla.prefix}&amp;version=${papyrus.bugzilla.version}&amp;${papyrus.bugzilla.open}&amp;bug_severity=blocker&amp;bug_severity=critical&amp;bug_severity=major&amp;bug_severity=normal&amp;bug_severity=minor&amp;bug_severity=trivial"/>
- <query
- summary="Papyrus Open Enhancement Requests"
- url="${papyrus.bugzilla.prefix}&amp;version=${papyrus.bugzilla.version}&amp;${papyrus.bugzilla.open}&amp;bug_severity=enhancement"/>
- <query
- summary="Papyrus Resolved Items"
- url="${papyrus.bugzilla.prefix}&amp;version=${papyrus.bugzilla.version}&amp;bug_status=RESOLVED&amp;resolution=FIXED"/>
- </setupTask>
- <setupTask
- xsi:type="mylyn:MylynQueriesTask"
- connectorKind="org.eclipse.mylyn.gerrit"
- repositoryURL="https://git.eclipse.org/r"
- userID="${bugzilla.id}"
- password="${eclipse.user.password}">
- <query
- summary="Papyrus Open Gerrit Reviews">
- <attribute
- key="gerrit query type"
- value="custom"/>
- <attribute
- key="gerrit query project"
- value="papyrus/org.eclipse.papyrus"/>
- <attribute
- key="gerrit query string"
- value="project:papyrus/org.eclipse.papyrus status:open branch:${git.checkout.branch}"/>
- </query>
- </setupTask>
- <setupTask
- xsi:type="mylyn:MylynBuildsTask"
- serverURL="https://hudson.eclipse.org/papyrus/"
- userID="${bugzilla.id}"
- password="${eclipse.user.password}">
- <buildPlan
- name="Papyrus-Master"/>
- <buildPlan
- name="Papyrus-Master-Tests"/>
- <buildPlan
- name="Papyrus-Master-Extra"/>
- <buildPlan
- name="Papyrus-Master-Extra-Tests"/>
- <buildPlan
- name="Papyrus-Luna"/>
- <buildPlan
- name="Papyrus-Luna-Tests"/>
- </setupTask>
- </setupTask>
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/tests/junit/plugins}">
- <predicate
- xsi:type="predicates:OrPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.junit\.framework"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.junit\.utils"/>
- </predicate>
- </sourceLocator>
- </setupTask>
- <project name="main"
- label="Main">
- <project
- name="infra"
- label="Infra">
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/plugins/infra}">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:OrPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.infra\..*"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.eclipse\.project\.editors"/>
- </operand>
- <operand
- xsi:type="predicates:NotPredicate">
- <operand
- xsi:type="predicates:OrPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.infra\.emf\.(?:embedded)?editor"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.infra\.emf\.facet\.queries"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.infra\.emf\.newchild"/>
- </operand>
- </operand>
- </predicate>
- </sourceLocator>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/plugins/editor}"/>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/tests/junit/plugins/infra}"/>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/tests/junit/plugins/core}">
- <predicate
- xsi:type="predicates:NotPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.tests"/>
- </predicate>
- </sourceLocator>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/features}">
- <predicate
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.(tests\.)?infra($|\..+)"/>
- </sourceLocator>
- </setupTask>
- <setupTask
- xsi:type="setup.workingsets:WorkingSetTask">
- <workingSet
- name="Papyrus Infra"
- id="papyrus-infra">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.infra.core"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:OrPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.infra\..*"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.editor($|\..+)"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.eclipse\.project\.editors"/>
- </operand>
- <operand
- xsi:type="workingsets:ExclusionPredicate"
- excludedWorkingSet="//@projects[name='main']/@projects[name='infra']/@setupTasks.1/@workingSets.1 //@projects[name='main']/@projects[name='infra']/@setupTasks.1/@workingSets.2 //@projects[name='main']/@projects[name='infra']/@setupTasks.1/@workingSets.3 //@projects[name='main']/@projects[name='infra']/@setupTasks.1/@workingSets.5 //@projects[name='main']/@projects[name='infra']/@setupTasks.1/@workingSets.4"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus Infra Diagram"
- id="papyrus-infra-diagram">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.infra.gmfdiag.common"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.infra\.gmfdiag($|\..+)"/>
- <operand
- xsi:type="workingsets:ExclusionPredicate"
- excludedWorkingSet="//@projects[name='main']/@projects[name='infra']/@setupTasks.1/@workingSets.5"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus Infra Nattable"
- id="papyrus-infra-nattable">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.infra.nattable"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.infra\.(?:emf\.)?nattable($|\..+)"/>
- <operand
- xsi:type="workingsets:ExclusionPredicate"
- excludedWorkingSet="//@projects[name='main']/@projects[name='infra']/@setupTasks.1/@workingSets.5"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus Infra Services"
- id="papyrus-infra-services">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.infra.services.labelprovider"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.infra\.services($|\..+)"/>
- <operand
- xsi:type="workingsets:ExclusionPredicate"
- excludedWorkingSet="//@projects[name='main']/@projects[name='infra']/@setupTasks.1/@workingSets.5"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus Infra Viewpoints"
- id="papyrus-infra-viewpoints">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.infra.viewpoints.policy"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.infra\.viewpoints($|\..+)"/>
- <operand
- xsi:type="workingsets:ExclusionPredicate"
- excludedWorkingSet="//@projects[name='main']/@projects[name='infra']/@setupTasks.1/@workingSets.5"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus Infra Tests"
- id="papyrus-infra-tests">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.infra.core.tests"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:OrPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.infra(\..+)?\.tests"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.editor\.integration\.tests"/>
- </operand>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus Infra Features"
- id="papyrus-infra-features">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.infra.core.feature"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.FeatureNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus(\.tests)?\.infra($|\..+)"/>
- </predicate>
- </workingSet>
- </setupTask>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- <setupTask
- xsi:type="setup.targlets:TargletTask">
- <targlet
- name="Papyrus Infra Dependencies"
- activeRepositoryList="${eclipse.target.platform}">
- <requirement
- name="org.eclipse.nebula.widgets.tablecombo.feature.feature.group"/>
- <repositoryList
- name="Mars">
- <repository
- url="${base.downloads.url}/technology/nebula/archives/Q12015/release"/>
- </repositoryList>
- <repositoryList
- name="Luna"/>
- </targlet>
- </setupTask>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- </project>
- <project
- name="views"
- label="Views">
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/plugins/views}"/>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/tests/junit/plugins/views}"/>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/features}">
- <predicate
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.(tests\.)?views($|\..+)"/>
- </sourceLocator>
- </setupTask>
- <setupTask
- xsi:type="setup.workingsets:WorkingSetTask">
- <workingSet
- name="Papyrus Views"
- id="papyrus-views">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.views.properties"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.views($|\..+)"/>
- <operand
- xsi:type="workingsets:ExclusionPredicate"
- excludedWorkingSet="//@projects[name='main']/@projects[name='views']/@setupTasks.1/@workingSets.1"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus Views Tests"
- id="papyrus-views-tests">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.views.modelexplorer.tests"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.views(\..+)?\.tests"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus Views Features"
- id="papyrus-views-features">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.views.properties.feature"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.FeatureNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.(tests\.)?views($|\..+)"/>
- </predicate>
- </workingSet>
- </setupTask>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/plugins/xwt}"/>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/features}">
- <predicate
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.(tests\.)?xwt($|\..+)"/>
- </sourceLocator>
- </setupTask>
- <setupTask
- xsi:type="setup.workingsets:WorkingSetTask">
- <workingSet
- name="Papyrus XWT"
- id="papyrus-xwt">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.views.properties"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.xwt($|\..+)"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus XWT Features"
- id="papyrus-xwt-features">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.views.properties.feature"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.FeatureNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.(tests\.)?xwt($|\..+)"/>
- </predicate>
- </workingSet>
- </setupTask>
- </stream>
- </project>
- <project
- name="uml"
- label="UML">
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/plugins/uml}">
- <predicate
- xsi:type="predicates:NotPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern=".*\.(alf|textedit|xtext)($|\..+)"/>
- </predicate>
- </sourceLocator>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/tests/junit/plugins/uml}">
- <predicate
- xsi:type="predicates:NotPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern=".*\.(alf|textedit|xtext)($|\..+)"/>
- </predicate>
- </sourceLocator>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/features}">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.(tests\.)?uml($|\..+)"/>
- <operand
- xsi:type="predicates:NotPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern=".*\.(alf|textedit|xtext)($|\..+)"/>
- </operand>
- </predicate>
- </sourceLocator>
- </setupTask>
- <setupTask
- xsi:type="setup.workingsets:WorkingSetTask">
- <workingSet
- name="Papyrus UML"
- id="papyrus-uml">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.uml.commands"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.uml($|\..+)"/>
- <operand
- xsi:type="predicates:NotPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern=".*\.(alf|textedit|xtext)($|\..+)"/>
- </operand>
- <operand
- xsi:type="workingsets:ExclusionPredicate"
- excludedWorkingSet="//@projects[name='main']/@projects[name='uml']/@setupTasks.1/@workingSets.1 //@projects[name='main']/@projects[name='uml']/@setupTasks.1/@workingSets.2 //@projects[name='main']/@projects[name='uml']/@setupTasks.1/@workingSets.3"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus UML Diagrams"
- id="papyrus-uml-diagram">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.uml.diagram.common"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.uml\.diagram.*"/>
- <operand
- xsi:type="predicates:NotPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern=".*\.(alf|textedit|xtext)($|\..+)"/>
- </operand>
- <operand
- xsi:type="workingsets:ExclusionPredicate"
- excludedWorkingSet="//@projects[name='main']/@projects[name='uml']/@setupTasks.1/@workingSets.3"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus UML Tables"
- id="papyrus-uml-table">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.uml.nattable"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.uml\.nattable.*"/>
- <operand
- xsi:type="predicates:NotPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern=".*\.(alf|textedit|xtext)($|\..+)"/>
- </operand>
- <operand
- xsi:type="workingsets:ExclusionPredicate"
- excludedWorkingSet="//@projects[name='main']/@projects[name='uml']/@setupTasks.1/@workingSets.3"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus UML Tests"
- id="papyrus-uml-tests">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.uml.diagram.common.tests"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.uml(\..+)?\.tests"/>
- <operand
- xsi:type="predicates:NotPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern=".*\.alf.*|.*\.uml\.textedit.*"/>
- </operand>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus UML Features"
- id="papyrus-uml-features">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.uml.feature"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.FeatureNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus(\.tests)?\.uml($|\..+)"/>
- <operand
- xsi:type="predicates:NotPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern=".*\.(alf|textedit|xtext)($|\..+)"/>
- </operand>
- </predicate>
- </workingSet>
- </setupTask>
- <setupTask
- xsi:type="setup.targlets:TargletTask">
- <targlet
- name="Additional UML Dependencies"
- activeRepositoryList="">
- <requirement
- name="org.eclipse.ocl.jdt.annotation7"
- optional="true"/>
- </targlet>
- </setupTask>
- <setupTask
- xsi:type="setup.p2:P2Task">
- <requirement
- name="org.eclipse.xtend.sdk.feature.group"/>
- </setupTask>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- </project>
- <project
- name="uml-alf"
- label="UML ALF">
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/plugins/uml}">
- <predicate
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.uml\.alf($|\..+)"/>
- </sourceLocator>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/tests/junit/plugins/uml}">
- <predicate
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.uml\.alf($|\..+)"/>
- </sourceLocator>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/features}">
- <predicate
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.(tests\.)?uml\.alf($|\..+)"/>
- </sourceLocator>
- </setupTask>
- <setupTask
- xsi:type="setup.workingsets:WorkingSetTask">
- <workingSet
- name="Papyrus UML ALF"
- id="papyrus-uml-alf">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.uml.alf.common"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.uml\.alf($|\..+)"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus UML ALF Features"
- id="papyrus-uml-alf-features">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.uml.alf.feature"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.FeatureNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.uml\.alf($|\..+)"/>
- </predicate>
- </workingSet>
- </setupTask>
- <setupTask
- xsi:type="setup.p2:P2Task">
- <requirement
- name="org.eclipse.xtend.sdk.feature.group"/>
- </setupTask>
- <setupTask
- xsi:type="setup.targlets:TargletTask">
- <targlet
- name="Papyrus ALF Dependencies"
- activeRepositoryList="${eclipse.target.platform}">
- <requirement
- name="org.eclipse.ocl.core.sdk.feature.group"/>
- <requirement
- name="org.eclipse.m2m.qvt.oml.runtime.feature.group"/>
- </targlet>
- </setupTask>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- </project>
- <project
- name="uml-text"
- label="UML Text Editors">
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/plugins/uml}">
- <predicate
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.uml\.(textedit|xtext)($|\..+)"/>
- </sourceLocator>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/tests/junit/plugins/uml}">
- <predicate
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.uml\.(textedit|xtext)($|\..+)"/>
- </sourceLocator>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/features}">
- <predicate
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.(tests\.)?uml\.(textedit|xtext)($|\..+)"/>
- </sourceLocator>
- </setupTask>
- <setupTask
- xsi:type="setup.workingsets:WorkingSetTask">
- <workingSet
- name="Papyrus UML Text Editors"
- id="papyrus-uml-text">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.uml.textedit.common.xtext"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.uml\.(textedit|xtext)($|\..+)"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus UML Text Editors Features"
- id="papyrus-uml-text-features">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.uml.textedit.feature"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.FeatureNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.uml\.(textedit|xtext)($|\..+)"/>
- </predicate>
- </workingSet>
- </setupTask>
- <setupTask
- xsi:type="setup.p2:P2Task">
- <requirement
- name="org.eclipse.xtend.sdk.feature.group"/>
- </setupTask>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- </project>
- <project
- name="sysml"
- label="SysML">
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/plugins/sysml}"/>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/tests/junit/plugins/sysml}"/>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/features}">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.(tests\.)?sysml($|\..+)"/>
- </predicate>
- </sourceLocator>
- </setupTask>
- <setupTask
- xsi:type="setup.workingsets:WorkingSetTask">
- <workingSet
- name="Papyrus SysML"
- id="papyrus-sysml">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.sysml"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.sysml($|\..+)"/>
- <operand
- xsi:type="workingsets:ExclusionPredicate"
- excludedWorkingSet="//@projects[name='main']/@projects[name='sysml']/@setupTasks.1/@workingSets.1 //@projects[name='main']/@projects[name='sysml']/@setupTasks.1/@workingSets.2 //@projects[name='main']/@projects[name='sysml']/@setupTasks.1/@workingSets.3"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus SysML Diagrams"
- id="papyrus-sysml-diagram">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.sysml.diagram.common"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.sysml\.diagram($|\..+)"/>
- <operand
- xsi:type="workingsets:ExclusionPredicate"
- excludedWorkingSet="//@projects[name='main']/@projects[name='sysml']/@setupTasks.1/@workingSets.3"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus SysML Tables"
- id="papyrus-sysml-table">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.sysml.nattable"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.sysml\.nattable($|\..+)"/>
- <operand
- xsi:type="workingsets:ExclusionPredicate"
- excludedWorkingSet="//@projects[name='main']/@projects[name='sysml']/@setupTasks.1/@workingSets.3"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus SysML Tests"
- id="papyrus-sysml-tests">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.sysml.tests"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.sysml(\..+)?\.tests"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus SysML Features"
- id="papyrus-sysml-features">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.sysml.feature"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.FeatureNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus(\.tests)?\.sysml($|\..+)"/>
- </predicate>
- </workingSet>
- </setupTask>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- </project>
- <project
- name="emffacet"
- label="EMF Facet">
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/plugins/facet}">
- <predicate
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.emf\.facet\..*"/>
- </sourceLocator>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/features}">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.(tests\.)?emf\.facet($|\..+)"/>
- </predicate>
- </sourceLocator>
- </setupTask>
- <setupTask
- xsi:type="setup.workingsets:WorkingSetTask">
- <workingSet
- name="Papyrus EMF Facet"
- id="papyrus-emffacet">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.emf.facet.common.core"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.emf\.facet($|\..+)"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus EMF Facet Features"
- id="papyrus-emffacet-features">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.emf.facet.feature"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.FeatureNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus(\.tests)?\.emf\.facet($|\..+)"/>
- </predicate>
- </workingSet>
- </setupTask>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- </project>
- <project
- name="customization"
- label="Customization">
- <setupTask
- xsi:type="setup.p2:P2Task">
- <requirement
- name="org.eclipse.m2m.qvt.oml.sdk.feature.group"/>
- </setupTask>
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/plugins/customization}"/>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/tests/junit/plugins/customization}"/>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/features}">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.(tests\.)?customization($|\..+)"/>
- </predicate>
- </sourceLocator>
- </setupTask>
- <setupTask
- xsi:type="setup.workingsets:WorkingSetTask">
- <workingSet
- name="Papyrus Customization"
- id="papyrus-customization">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.customization"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:OrPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.customization(?:$|\..+)"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.editor(?:$|\..+)"/>
- </operand>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus Customization Features"
- id="papyrus-customization-features">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.customization.feature"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.FeatureNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.customization(?:$|\..+)"/>
- </predicate>
- </workingSet>
- </setupTask>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- </project>
- <project
- name="doc"
- label="Documentation">
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/plugins/doc}"/>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/features}">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus(\..+)?\.doc($|\..+)"/>
- </predicate>
- </sourceLocator>
- </setupTask>
- <setupTask
- xsi:type="setup.workingsets:WorkingSetTask">
- <workingSet
- name="Papyrus Documentation"
- id="papyrus-doc">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.uml.doc"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus(\..+)?\.doc(umentation)?"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus Documentation Features"
- id="papyrus-doc-features">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.doc.feature"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.FeatureNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus(\..+)?\.doc($|\..+)"/>
- </predicate>
- </workingSet>
- </setupTask>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- </project>
- <project
- name="alltests"
- label="All Tests">
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/tests/junit/plugins}"/>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/features}">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.tests\..+"/>
- <operand
- xsi:type="predicates:NotPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern=".*\.extra\..*"/>
- </operand>
- </predicate>
- </sourceLocator>
- </setupTask>
- <setupTask
- xsi:type="setup.workingsets:WorkingSetTask">
- <workingSet
- name="Papyrus All Main Tests"
- id="papyrus-alltests">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.tests"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus(\..+)?\.tests"/>
- <operand
- xsi:type="predicates:NotPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern=".*\.extra\..*"/>
- </operand>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus Main Test Features"
- id="papyrus-alltests-features">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.tests.feature"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.FeatureNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.tests($|\..+)"/>
- <operand
- xsi:type="predicates:NotPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern=".*\.extra\..*"/>
- </operand>
- </predicate>
- </workingSet>
- </setupTask>
- <setupTask
- xsi:type="setup.targlets:TargletTask">
- <targlet
- name="Papyrus ALF Test Dependencies"
- activeRepositoryList="${eclipse.target.platform}">
- <requirement
- name="org.eclipse.ocl.all.feature.group"/>
- <requirement
- name="org.eclipse.m2m.qvt.oml.runtime.feature.group"/>
- </targlet>
- </setupTask>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- </project>
- <project
- name="misc"
- label="Others">
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/plugins/team}"/>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/features}">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.team($|\..+)"/>
- </predicate>
- </sourceLocator>
- </setupTask>
- <setupTask
- xsi:type="setup.workingsets:WorkingSetTask">
- <workingSet
- name="Papyrus Others"
- id="papyrus-others">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.team.svn"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.team\.svn"/>
- </predicate>
- </workingSet>
- <workingSet
- name="Papyrus Other Features"
- id="papyrus-others-features">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.team.feature"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.FeatureNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.team($|\..+)"/>
- </predicate>
- </workingSet>
- </setupTask>
- <setupTask
- xsi:type="setup.targlets:TargletTask">
- <targlet
- name="Papyrus Other Dependencies"
- activeRepositoryList="${eclipse.target.platform}">
- <requirement
- name="org.eclipse.team.svn.feature.group"/>
- <requirement
- name="org.polarion.eclipse.team.svn.connector.svnkit18.feature.group"/>
- <repositoryList
- name="Luna">
- <repository
- url="${base.downloads.url}/technology/subversive/2.0/luna-site/"/>
- <repository
- url="http://community.polarion.com/projects/subversive/download/eclipse/4.0/update-site/"/>
- </repositoryList>
- <repositoryList
- name="Mars">
- <repository
- url="http://download.eclipse.org/technology/subversive/3.0/mars-site/">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>Subversive</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://community.polarion.com/projects/subversive/download/eclipse/4.0/update-site/"/>
- </repositoryList>
- </targlet>
- <description>
- Additional dependencies, e.g. for Subversive (SVN team integration), including
- an SVN connector from Polarion to prevent the connector dialog appearing at
- run-time, especially as it interferes with JUnit test execution.
- </description>
- </setupTask>
- </stream>
- </project>
- <project
- name="releng"
- label="Releng">
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/releng}"
- locateNestedProjects="true">
- <excludedPath>emfgen</excludedPath>
- </sourceLocator>
- </setupTask>
- <setupTask
- xsi:type="setup.workingsets:WorkingSetTask">
- <workingSet
- name="Papyrus Releng"
- id="papyrus-releng">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="releng"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern=".*\.releng.*|.*\.oomph.*|releng"/>
- </predicate>
- </workingSet>
- </setupTask>
- <project
- name="maven"
- label="Maven Plug-ins">
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/releng/emfgen}"
- locateNestedProjects="true"/>
- </setupTask>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <description>Sources of Maven plug-ins for Papyrus custom build behaviours</description>
- </project>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- </project>
- <description>Tools, dependencies, and sources for development of the main Papyrus components. Required for any Papyrus development.</description>
- </project>
- <project name="extras"
- label="Extras">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extratests.folder"
- value="${papyrus.extraplugins.folder}"/>
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extrafeature"
- value="extra.${papyrus.extraplugins.folder}"/>
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extratestsfeature"
- value="tests.${papyrus.extrafeature}"/>
- <setupTask
- xsi:type="setup.targlets:TargletTask">
- <targlet
- name="${scope.project.label} Plug-ins"
- activeRepositoryList="${eclipse.target.platform}">
- <requirement
- name="org.eclipse.papyrus.${papyrus.extrafeature}.feature.feature.group"
- optional="true"/>
- <repositoryList
- name="Mars">
- <repository
- url="${base.downloads.url}/modeling/mdt/papyrus/updates/nightly/mars/extra"/>
- </repositoryList>
- <repositoryList
- name="Luna">
- <repository
- url="${base.downloads.url}/modeling/mdt/papyrus/updates/nightly/luna"/>
- </repositoryList>
- </targlet>
- </setupTask>
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/extraplugins}/${papyrus.extraplugins.folder}"/>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/tests/junit/extraplugins}/${papyrus.extratests.folder}"/>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/features/papyrus-extra-features}">
- <predicate
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.${papyrus.extrafeature}\.feature"/>
- </sourceLocator>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/features/papyrus-tests-extra-features}">
- <predicate
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.${papyrus.extratestsfeature}\.feature"/>
- </sourceLocator>
- </setupTask>
- <setupTask
- xsi:type="setup.workingsets:WorkingSetTask">
- <workingSet
- name="Papyrus ${scope.project.label}">
- <predicate
- xsi:type="predicates:OrPredicate">
- <operand
- xsi:type="predicates:LocationPredicate"
- pattern="\Q${papyrus.git.clone.location/extraplugins}\E[\\/]\Q${papyrus.extraplugins.folder}\E"/>
- <operand
- xsi:type="predicates:LocationPredicate"
- pattern="\Q${papyrus.git.clone.location/extraplugins}\E[\\/]\Q${papyrus.extraplugins.folder}\E[\\/].*"/>
- <operand
- xsi:type="predicates:LocationPredicate"
- pattern="\Q${papyrus.git.clone.location/tests/junit/extraplugins}\E[\\/]\Q${papyrus.extratests.folder}\E[\\/].*"/>
- <operand
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.FeatureNature"/>
- <operand
- xsi:type="predicates:OrPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.${papyrus.extrafeature}($|\..*)"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.${papyrus.extratestsfeature}($|\..*)"/>
- </operand>
- </operand>
- </predicate>
- </workingSet>
- </setupTask>
- <project
- name="cdo"
- label="CDO Integration">
- <setupTask
- xsi:type="setup.targlets:TargletTask">
- <targlet
- name="Papyrus CDO Dependencies"
- activeRepositoryList="${eclipse.target.platform}">
- <requirement
- name="org.eclipse.emf.cdo.sdk.feature.group"/>
- <repositoryList
- name="Mars">
- <repository
- url="http://download.eclipse.org/modeling/emf/cdo/updates/integration">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>EMF CDO</value>
- </detail>
- </annotation>
- </repository>
- </repositoryList>
- <repositoryList
- name="Luna">
- <repository
- url="${base.downloads.url}/modeling/emf/cdo/drops/R20140610-0212"/>
- </repositoryList>
- </targlet>
- </setupTask>
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extraplugins.folder"
- value="cdo"/>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- </project>
- <project
- name="cpp"
- label="C/C++ Codegen">
- <setupTask
- xsi:type="setup.targlets:TargletTask">
- <targlet
- name="Papyrus CPP Dependencies"
- activeRepositoryList="${eclipse.target.platform}">
- <requirement
- name="org.eclipse.cdt.feature.group"/>
- <requirement
- name="org.eclipse.emf.facet.sdk.feature.feature.group"/>
- <requirement
- name="org.eclipse.acceleo.feature.group"/>
- <repositoryList
- name="Mars">
- <repository
- url="http://download.eclipse.org/tools/cdt/builds/mars/milestones">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>CDT</value>
- </detail>
- </annotation>
- </repository>
- <repository
- url="http://download.eclipse.org/facet/updates/integration/1.0.0/I201504210911/">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>EMF Facet</value>
- </detail>
- </annotation>
- </repository>
- </repositoryList>
- <repositoryList
- name="Luna">
- <repository
- url="${base.downloads.url}/tools/cdt/builds/luna/milestones"/>
- <repository
- url="${base.downloads.url}/facet/updates/release/0.4.0"/>
- </repositoryList>
- </targlet>
- </setupTask>
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extraplugins.folder"
- value="codegen"/>
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extratests.folder"
- value="codegen"/>
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extrafeature"
- value="extra.cpp"/>
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extratestsfeature"
- value="tests.extra.codegen.cpp"/>
- <setupTask
- xsi:type="setup.p2:P2Task">
- <requirement
- name="org.eclipse.xtend.sdk.feature.group"/>
- <requirement
- name="org.eclipse.acceleo.feature.group"/>
- </setupTask>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- </project>
- <project
- name="diagramtemplate"
- label="Diagram Template">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extraplugins.folder"
- value="diagramtemplate"/>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- <description></description>
- </project>
- <project
- name="dsml.validation"
- label="DSML Validation">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extraplugins.folder"
- value="dsml.validation"/>
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/extraplugins}/codegen">
- <predicate
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.codegen\.base"/>
- </sourceLocator>
- </setupTask>
- <setupTask
- xsi:type="setup.p2:P2Task">
- <requirement
- name="org.eclipse.xtend.sdk.feature.group"/>
- </setupTask>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- <description></description>
- </project>
- <project
- name="eastadl"
- label="East-ADL">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extraplugins.folder"
- value="eastadl"/>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- <description></description>
- </project>
- <project
- name="java"
- label="Java">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extraplugins.folder"
- value="java"/>
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extrafeature"
- value="java\.(?:profile|generator|reverse)"/>
- <setupTask
- xsi:type="setup.targlets:TargletTask">
- <targlet
- name="Java Plug-ins"
- activeRepositoryList="${eclipse.target.platform}">
- <requirement
- name="org.eclipse.papyrus.java.profile.feature.feature.group"/>
- <requirement
- name="org.eclipse.papyrus.java.generator.feature.feature.group"/>
- <requirement
- name="org.eclipse.papyrus.java.reverse.feature.feature.group"/>
- <repositoryList
- name="Mars">
- <repository
- url="${base.downloads.url}/modeling/mdt/papyrus/updates/nightly/mars/extra"/>
- </repositoryList>
- <repositoryList
- name="Luna">
- <repository
- url="${base.downloads.url}/modeling/mdt/papyrus/updates/nightly/luna"/>
- </repositoryList>
- </targlet>
- </setupTask>
- <setupTask
- xsi:type="setup.workingsets:WorkingSetTask">
- <workingSet
- name="Papyrus Java">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.layers.stackmodel"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.java\..*"/>
- </predicate>
- </workingSet>
- <description>Projects related to Java code generation/reverse.</description>
- </setupTask>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- <description></description>
- </project>
- <project
- name="layers"
- label="Layers">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extraplugins.folder"
- value="layers"/>
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extrafeature"
- value="layers"/>
- <setupTask
- xsi:type="setup.workingsets:WorkingSetTask">
- <workingSet
- name="Papyrus Layers">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.layers.stackmodel"/>
- <operand
- xsi:type="predicates:NaturePredicate"
- nature="org.eclipse.pde.PluginNature"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.layers\..*"/>
- </predicate>
- </workingSet>
- <description>Projects related to Papyrus Layers.</description>
- </setupTask>
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/tests/integration/plugins}/org.eclipse.papyrus.integrationtests.editor"/>
- <description>Import plugin requested by Layers</description>
- </setupTask>
- <setupTask
- xsi:type="setup.targlets:TargletTask">
- <targlet
- name="Layers dependencies"
- activeRepositoryList="${eclipse.target.platform}">
- <requirement
- name="org.eclipse.emf.query.sdk.feature.group"/>
- <repositoryList
- name="Mars">
- <repository
- url="http://download.eclipse.org/modeling/emf/query/updates/releases/"/>
- </repositoryList>
- </targlet>
- </setupTask>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- <description></description>
- </project>
- <project
- name="marte"
- label="MARTE">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extraplugins.folder"
- value="marte"/>
- <setupTask
- xsi:type="setup.p2:P2Task">
- <requirement
- name="org.eclipse.xtend.sdk.feature.group"/>
- </setupTask>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- <description></description>
- </project>
- <project
- name="migration"
- label="Model Migration">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extraplugins.folder"
- value="migration"/>
- <setupTask
- xsi:type="setup.targlets:TargletTask">
- <targlet
- name="Papyrus Model Migration Dependencies">
- <requirement
- name="org.eclipse.papyrus.umlrt"/>
- </targlet>
- </setupTask>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- <description></description>
- </project>
- <project
- name="moka"
- label="Moka">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extraplugins.folder"
- value="moka"/>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- <description></description>
- </project>
- <project
- name="robotml"
- label="RobotML">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extraplugins.folder"
- value="robotml"/>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- <description></description>
- </project>
- <project
- name="tablemigration"
- label="Table Migration">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extraplugins.folder"
- value="tablemigration"/>
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extrafeature"
- value="tablemigration"/>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- <description></description>
- </project>
- <project
- name="umlcompare"
- label="UML Compare">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extraplugins.folder"
- value="uml/compare"/>
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extrafeature"
- value="extra.uml.compare"/>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- <description></description>
- </project>
- <project
- name="umlexport"
- label="UML Export">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extraplugins.folder"
- value="uml/org.eclipse.papyrus.uml.export"/>
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extrafeature"
- value="uml.export"/>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- <description></description>
- </project>
- <project
- name="umlrt"
- label="UML-RT">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.extraplugins.folder"
- value="umlrt"/>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- <description></description>
- </project>
- <description>Select sub-projects to import dependencies and sources for Papyrus extra components.</description>
- </project>
- <project name="dev"
- label="Developer">
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/plugins/developer}">
- <predicate
- xsi:type="predicates:NotPredicate">
- <operand
- xsi:type="predicates:OrPredicate">
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.sysml\.sysmloveruml\.codegen"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.infra\.extendedtypes\.elementtypeview"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.dev\.view\.services\.edit\.request"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.diagramdev\.modelexplorer"/>
- <operand
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.releng\.tools"/>
- </operand>
- </predicate>
- </sourceLocator>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/features/papyrus-dev-features}"/>
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/tests/junit/plugins/developer}"/>
- </setupTask>
- <setupTask
- xsi:type="setup.workingsets:WorkingSetTask">
- <workingSet
- name="Papyrus Developer Tools"
- id="papyrus-dev">
- <predicate
- xsi:type="predicates:AndPredicate">
- <operand
- xsi:type="predicates:RepositoryPredicate"
- project="org.eclipse.papyrus.codegen"/>
- <operand
- xsi:type="predicates:OrPredicate">
- <operand
- xsi:type="predicates:LocationPredicate"
- pattern="\Q${papyrus.git.clone.location/plugins/developer/}\E.+"/>
- <operand
- xsi:type="predicates:LocationPredicate"
- pattern="\Q${papyrus.git.clone.location/features/papyrus-dev-features/}\E.*"/>
- <operand
- xsi:type="predicates:LocationPredicate"
- pattern="\Q${papyrus.git.clone.location/tests/junit/plugins/developer/}\E.+"/>
- </operand>
- </predicate>
- </workingSet>
- </setupTask>
- <setupTask
- xsi:type="setup.targlets:TargletTask">
- <targlet
- name="Papyrus Developer Tools Dependencies">
- <requirement
- name="org.eclipse.gmf.tooling.codegen.xtend2.feature.group"/>
- <requirement
- name="org.eclipse.acceleo.feature.group"/>
- </targlet>
- </setupTask>
- <setupTask
- xsi:type="setup.p2:P2Task">
- <requirement
- name="org.eclipse.xtend.sdk.feature.group"/>
- <requirement
- name="org.eclipse.acceleo.feature.group"/>
- </setupTask>
- <project
- name="Oomph"
- label="Oomph Setup">
- <setupTask
- xsi:type="setup:EclipseIniTask"
- option="-Doomph.redirection.papyrussetups"
- value="=http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/plain/releng/org.eclipse.papyrus.oomph/setups/->${papyrus.git.clone.location|uri}/releng/org.eclipse.papyrus.oomph/setups/"
- vm="true"/>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <description>Additional configuration for developing and testing the Oomph setup model.</description>
- </project>
- <project
- name="relengtools"
- label="Releng Tools">
- <setupTask
- xsi:type="setup.targlets:TargletTask">
- <targlet
- name="Papyrus Releng Tools Dependencies">
- <requirement
- name="org.eclipse.oomph.setup.targlets.feature.group"
- optional="true"/>
- <requirement
- name="org.eclipse.oomph.setup.feature.group"
- optional="true"/>
- <requirement
- name="org.eclipse.b3.aggregator.engine.feature.feature.group"/>
- <repositoryList>
- <repository
- url="${oomph.update.url}"/>
- <repository
- url="http://download.eclipse.org/modeling/emft/b3/updates-4.3/"/>
- </repositoryList>
- </targlet>
- </setupTask>
- <setupTask
- xsi:type="projects:ProjectsImportTask">
- <sourceLocator
- rootFolder="${papyrus.git.clone.location/plugins/developer}"
- locateNestedProjects="true">
- <predicate
- xsi:type="predicates:NamePredicate"
- pattern="org\.eclipse\.papyrus\.releng\.tools"/>
- </sourceLocator>
- </setupTask>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <description>Release engineering tools, including the POM and Oomph Setup dependencies updater actions.</description>
- </project>
- <project
- name="devtools"
- label="Developer Tools">
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- <setupTask
- xsi:type="setup.p2:P2Task">
- <requirement
- name="org.eclipse.papyrus.dev.feature.feature.group"/>
- <requirement
- name="org.eclipse.b3.aggregator.engine.feature.feature.group"/>
- <repository
- url="https://hudson.eclipse.org/papyrus/job/Papyrus-Master-Developer/lastSuccessfulBuild/artifact/releng/dev/target/repository/"/>
- <repository
- url="${base.downloads.url}/modeling/mdt/papyrus/updates/nightly/mars/main"/>
- <repository
- url="http://download.eclipse.org/modeling/emft/b3/updates-4.3/"/>
- </setupTask>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- <setupTask
- xsi:type="setup.p2:P2Task">
- <requirement
- name="org.eclipse.papyrus.dev.feature.feature.group"/>
- <requirement
- name="org.eclipse.b3.aggregator.engine.feature.feature.group"/>
- <requirement
- name="org.eclipse.buckminster.core.feature.feature.group"/>
- <requirement
- name="org.eclipse.buckminster.git.feature.feature.group"/>
- <requirement
- name="org.eclipse.buckminster.pde.feature.feature.group"/>
- <repository
- url="https://hudson.eclipse.org/papyrus/job/Papyrus-Luna-Developer/lastSuccessfulBuild/artifact/releng/dev/target/repository/"/>
- <repository
- url="${base.downloads.url}/modeling/mdt/papyrus/updates/nightly/luna"/>
- <repository
- url="http://download.eclipse.org/modeling/emft/b3/updates-4.3/"/>
- <repository
- url="http://download.eclipse.org/tools/buckminster/updates-4.4"/>
- </setupTask>
- </stream>
- <description>Installs developer tools, including the code generator for Papyrus diagram plug-ins and various debugging aids such as &quot;spy&quot; views. Source code is not included.</description>
- </project>
- <stream
- name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- </stream>
- <stream
- name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- </stream>
- <description>Sources and tools required for working on the Papyrus developer tools (not part of the product). Does not install the developer tools in your IDE: use the Developer Tools sub-project for that.</description>
- </project>
- <stream name="master"
- label="master (Mars/1.1)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
- <setupTask
- xsi:type="jdt:JRETask"
- version="JavaSE-1.7"
- location="${jre.location-1.7}"/>
- <setupTask
- xsi:type="setup.p2:P2Task">
- <requirement
- name="org.eclipse.uml2.sdk.feature.group"/>
- <repository
- url="http://download.eclipse.org/modeling/mdt/uml2/updates/5.1-I-builds/"/>
- </setupTask>
- </stream>
- <stream name="streams/1.0-maintenance"
- label="streams/1.0-maintenance (Luna/1.0.x)">
- <setupTask
- xsi:type="setup:VariableTask"
- name="papyrus.bugzilla.version"
- value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
- <setupTask
- xsi:type="jdt:JRETask"
- version="JavaSE-1.6"
- location="${jre.location-1.6}"/>
- <setupTask
- xsi:type="setup.targlets:TargletTask">
- <targlet
- name="Papyrus Luna Dependencies"
- activeRepositoryList="${eclipse.target.platform}">
- <requirement
- name="org.eclipse.acceleo.feature.group"/>
- <repositoryList
- name="Mars">
- <repository
- url="http://download.eclipse.org/acceleo/updates/milestones/3.6/S201505040910">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>M2T ACCELEO</value>
- </detail>
- </annotation>
- </repository>
- </repositoryList>
- <repositoryList
- name="Luna">
- <repository
- url="http://download.eclipse.org/acceleo/updates/milestones/3.6/S201503131323">
- <annotation
- source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
- <detail
- key="updateFrom">
- <value>M2T ACCELEO</value>
- </detail>
- </annotation>
- </repository>
- </repositoryList>
- </targlet>
- </setupTask>
- </stream>
- <logicalProjectContainer
- xsi:type="setup:ProjectCatalog"
- href="index:/org.eclipse.setup#//@projectCatalogs[name='org.eclipse']"/>
- <description>Workbench and workspace configuration for development on Papyrus</description>
-</setup:Project>
+<?xml version="1.0" encoding="UTF-8"?>
+<setup:Project
+ xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:git="http://www.eclipse.org/oomph/setup/git/1.0"
+ xmlns:jdt="http://www.eclipse.org/oomph/setup/jdt/1.0"
+ xmlns:mylyn="http://www.eclipse.org/oomph/setup/mylyn/1.0"
+ xmlns:predicates="http://www.eclipse.org/oomph/predicates/1.0"
+ xmlns:projects="http://www.eclipse.org/oomph/setup/projects/1.0"
+ xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
+ xmlns:setup.p2="http://www.eclipse.org/oomph/setup/p2/1.0"
+ xmlns:setup.targlets="http://www.eclipse.org/oomph/setup/targlets/1.0"
+ xmlns:setup.workingsets="http://www.eclipse.org/oomph/setup/workingsets/1.0"
+ xmlns:workingsets="http://www.eclipse.org/oomph/workingsets/1.0"
+ xsi:schemaLocation="http://www.eclipse.org/oomph/setup/git/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Git.ecore http://www.eclipse.org/oomph/setup/jdt/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/JDT.ecore http://www.eclipse.org/oomph/setup/mylyn/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Mylyn.ecore http://www.eclipse.org/oomph/predicates/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Predicates.ecore http://www.eclipse.org/oomph/setup/projects/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Projects.ecore http://www.eclipse.org/oomph/setup/targlets/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/SetupTarglets.ecore http://www.eclipse.org/oomph/setup/workingsets/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/SetupWorkingSets.ecore http://www.eclipse.org/oomph/workingsets/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/WorkingSets.ecore"
+ name="papyrus"
+ label="Papyrus">
+ <setupTask
+ xsi:type="setup.p2:P2Task"
+ label="Core Development Tools">
+ <requirement
+ name="org.eclipse.emf.sdk.feature.group"/>
+ <requirement
+ name="org.eclipse.gmf.runtime.notation.sdk.feature.group"/>
+ <requirement
+ name="org.eclipse.gmf.runtime.sdk.feature.group"/>
+ <requirement
+ name="org.eclipse.gmf.sdk.feature.group"/>
+ <requirement
+ name="org.eclipse.uml2.sdk.feature.group"/>
+ <requirement
+ name="org.eclipse.papyrus.sdk.feature.feature.group"/>
+ <requirement
+ name="org.eclipse.pde.api.tools.ee.feature.feature.group"/>
+ <requirement
+ name="org.eclipse.mylyn.ide_feature.feature.group"/>
+ <requirement
+ name="org.eclipse.mylyn.java_feature.feature.group"/>
+ <requirement
+ name="org.eclipse.mylyn.pde_feature.feature.group"/>
+ <requirement
+ name="org.eclipse.mylyn.team_feature.feature.group"/>
+ <requirement
+ name="org.eclipse.mylyn.gerrit.feature.feature.group"/>
+ <requirement
+ name="org.eclipse.mylyn_feature.feature.group"/>
+ <requirement
+ name="org.eclipse.mylyn.bugzilla_feature.feature.group"/>
+ <requirement
+ name="org.eclipse.mylyn.git.feature.group"/>
+ <requirement
+ name="org.eclipse.mylyn.hudson.feature.group"/>
+ <requirement
+ name="org.eclipse.mylyn.wikitext_feature.feature.group"/>
+ <requirement
+ name="org.eclipse.egit.feature.group"/>
+ <requirement
+ name="org.eclipse.egit.mylyn.feature.group"/>
+ <requirement
+ name="org.eclipse.swtbot.ide.feature.group"/>
+ <requirement
+ name="org.eclipse.swtbot.generator.feature.feature.group"/>
+ <requirement
+ name="org.eclipse.m2e.feature.feature.group"/>
+ <repository
+ url="http://download.eclipse.org/technology/swtbot/snapshots"/>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.p2:P2Task"
+ label="Releng Tools">
+ <requirement
+ name="org.eclipse.oomph.projectconfig.feature.group"/>
+ <requirement
+ name="org.eclipse.oomph.projectcopy.feature.group"/>
+ <requirement
+ name="org.eclipse.oomph.workingsets.feature.group"/>
+ <requirement
+ name="org.sonatype.tycho.m2e.feature.feature.group"/>
+ <repository
+ url="http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-tycho/0.8.0/N/LATEST/"/>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.p2:P2Task"
+ label="Code Quality Tools">
+ <requirement
+ name="com.mountainminds.eclemma.feature.feature.group"
+ optional="true"/>
+ <requirement
+ name="net.sf.eclipsecs.feature.group"
+ optional="true"/>
+ <requirement
+ name="edu.umd.cs.findbugs.plugin.eclipse.feature.group"
+ optional="true"/>
+ <repository
+ url="http://update.eclemma.org/"/>
+ <repository
+ url="http://eclipse-cs.sourceforge.net/update/"/>
+ <repository
+ url="http://findbugs.cs.umd.edu/eclipse/"/>
+ </setupTask>
+ <setupTask
+ xsi:type="setup:EclipseIniTask"
+ option="-Xmx"
+ value="2048m"
+ vm="true"/>
+ <setupTask
+ xsi:type="setup:ResourceCreationTask"
+ excludedTriggers="STARTUP MANUAL"
+ content="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;section name=&quot;Workbench&quot;>&#xD;&#xA;&#x9;&lt;item value=&quot;${papyrus.git.clone.location}/doc/DevelopperDocuments/templates&quot; key=&quot;org.eclipse.jdt.ui.cleanup.loadpath&quot;/>&#xA;&#x9;&lt;item value=&quot;${papyrus.git.clone.location}/doc/DevelopperDocuments/templates&quot; key=&quot;org.eclipse.jdt.ui.codeformatter.loadpath&quot;/>&#xA;&#x9;&lt;item value=&quot;${papyrus.git.clone.location}/doc/DevelopperDocuments/templates&quot; key=&quot;org.eclipse.jdt.ui.importorder.loadpath&quot;/>&#xA;&#x9;&lt;section name=&quot;org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart&quot;>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;true&quot; key=&quot;group_libraries&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;false&quot; key=&quot;linkWithEditor&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;2&quot; key=&quot;layout&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;2&quot; key=&quot;rootMode&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;packageExplorer configured=&amp;quot;true&amp;quot; group_libraries=&amp;quot;1&amp;quot; layout=&amp;quot;2&amp;quot; linkWithEditor=&amp;quot;0&amp;quot; rootMode=&amp;quot;2&amp;quot; sortWorkingSets=&amp;quot;false&amp;quot; workingSetName=&amp;quot;&amp;quot;&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;localWorkingSetManager&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;workingSet editPageId=&amp;quot;org.eclipse.jdt.internal.ui.OthersWorkingSet&amp;quot; factoryID=&amp;quot;org.eclipse.ui.internal.WorkingSetFactory&amp;quot; id=&amp;quot;1382792884467_1&amp;quot; label=&amp;quot;Other Projects&amp;quot; name=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;/localWorkingSetManager&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;activeWorkingSet workingSetName=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;allWorkingSets workingSetName=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;/packageExplorer&amp;gt;&quot; key=&quot;memento&quot;/>&#xD;&#xA;&#x9;&lt;/section>&#xD;&#xA;&lt;/section>&#xD;&#xA;"
+ targetURL="${workspace.location|uri}/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml"
+ encoding="UTF-8"/>
+ <setupTask
+ xsi:type="setup:ResourceCreationTask"
+ content="cleanup_profile=_Papyrus&#xA;cleanup_settings_version=2&#xA;eclipse.preferences.version=1&#xA;formatter_profile=_Papyrus Formatter Profile CDM&#xA;formatter_settings_version=12&#xA;org.eclipse.jdt.ui.cleanupprofiles=&lt;?xml version\=&quot;1.0&quot; encoding\=&quot;UTF-8&quot; standalone\=&quot;no&quot;?>\n&lt;profiles version\=&quot;2&quot;>\n&lt;profile kind\=&quot;CleanUpProfile&quot; name\=&quot;Papyrus&quot; version\=&quot;2&quot;>\n&lt;setting id\=&quot;cleanup.format_source_code&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.convert_functional_interfaces&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.add_missing_annotations&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.use_this_for_non_static_method_access_only_if_necessary&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.remove_unused_private_types&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.insert_inferred_type_arguments&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.qualify_static_member_accesses_through_instances_with_declaring_class&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.qualify_static_method_accesses_with_declaring_class&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.add_generated_serial_version_id&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.make_variable_declarations_final&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.add_missing_methods&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.always_use_this_for_non_static_field_access&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.use_type_arguments&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.remove_trailing_whitespaces_ignore_empty&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.correct_indentation&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.never_use_parentheses_in_expressions&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.add_serial_version_id&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.remove_unused_private_methods&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.use_this_for_non_static_field_access&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.use_blocks_only_for_return_and_throw&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.remove_unused_private_members&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.add_missing_override_annotations_interface_methods&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.remove_trailing_whitespaces_all&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.make_type_abstract_if_missing_method&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.always_use_this_for_non_static_method_access&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.remove_unnecessary_nls_tags&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.format_source_code_changes_only&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.qualify_static_field_accesses_with_declaring_class&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.add_missing_nls_tags&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.use_this_for_non_static_field_access_only_if_necessary&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.remove_unnecessary_casts&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.qualify_static_member_accesses_with_declaring_class&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.use_parentheses_in_expressions&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.remove_unused_private_fields&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.make_parameters_final&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.remove_redundant_type_arguments&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.remove_trailing_whitespaces&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.remove_unused_imports&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.use_anonymous_class_creation&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.organize_imports&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.sort_members&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.remove_private_constructors&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.convert_to_enhanced_for_loop&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.always_use_blocks&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.never_use_blocks&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.use_lambda&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.always_use_parentheses_in_expressions&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.use_this_for_non_static_method_access&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.remove_unused_local_variables&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.make_private_fields_final&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.add_missing_deprecated_annotations&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.add_default_serial_version_id&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.sort_members_all&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;cleanup.use_blocks&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.add_missing_override_annotations&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;cleanup.make_local_variable_final&quot; value\=&quot;true&quot;/>\n&lt;/profile>\n&lt;/profiles>\n&#xA;org.eclipse.jdt.ui.cleanupprofiles.version=2&#xA;org.eclipse.jdt.ui.formatterprofiles=&lt;?xml version\=&quot;1.0&quot; encoding\=&quot;UTF-8&quot; standalone\=&quot;no&quot;?>\n&lt;profiles version\=&quot;12&quot;>\n&lt;profile kind\=&quot;CodeFormatterProfile&quot; name\=&quot;Papyrus Formatter Profile CDM&quot; version\=&quot;12&quot;>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.disabling_tag&quot; value\=&quot;@formatter\:off&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_field&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.use_on_off_tags&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_ellipsis&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_multiple_fields&quot; value\=&quot;16&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_conditional_expression&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_binary_operator&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_array_initializer&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_after_package&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.continuation_indentation&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_binary_operator&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_package&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.source&quot; value\=&quot;1.8&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_line_comments&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.join_wrapped_lines&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_member_type&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.align_type_members_on_columns&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_unary_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.indent_parameter_description&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.lineSplit&quot; value\=&quot;200&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indentation.size&quot; value\=&quot;4&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.enabling_tag&quot; value\=&quot;@formatter\:on&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_assignment&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.problem.assertIdentifier&quot; value\=&quot;error&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.tabulation.char&quot; value\=&quot;tab&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_statements_compare_to_body&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_method&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_method_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_switch&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.problem.enumIdentifier&quot; value\=&quot;error&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_ellipsis&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_block&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_method_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.compact_else_if&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.indent_root_tags&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_enum_constant&quot; value\=&quot;next_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch&quot; value\=&quot;16&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.tabulation.size&quot; value\=&quot;4&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_empty_lines&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_block_in_case&quot; value\=&quot;next_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve&quot; value\=&quot;5&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.compliance&quot; value\=&quot;1.8&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_lambda_body&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_unary_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_binary_expression&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode&quot; value\=&quot;enabled&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_label&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_javadoc_comments&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.line_length&quot; value\=&quot;150&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_between_import_groups&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_semicolon&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.wrap_before_binary_operator&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_statements_compare_to_block&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.join_lines_in_comments&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_compact_if&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_imports&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_html&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_source_code&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.codegen.targetPlatform&quot; value\=&quot;1.8&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_resources_in_try&quot; value\=&quot;80&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_header&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_block_comments&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_enum_constants&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_type_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_after_imports&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line&quot; value\=&quot;false&quot;/>\n&lt;/profile>\n&lt;profile kind\=&quot;CodeFormatterProfile&quot; name\=&quot;Zero blank Papyrus Formatter Profile CDM&quot; version\=&quot;12&quot;>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.disabling_tag&quot; value\=&quot;@formatter\:off&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_field&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.use_on_off_tags&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_ellipsis&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_multiple_fields&quot; value\=&quot;16&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_conditional_expression&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_binary_operator&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_array_initializer&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_after_package&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.continuation_indentation&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_binary_operator&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_package&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.source&quot; value\=&quot;1.8&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_line_comments&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.join_wrapped_lines&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_member_type&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.align_type_members_on_columns&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_unary_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.indent_parameter_description&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.lineSplit&quot; value\=&quot;200&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indentation.size&quot; value\=&quot;4&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.enabling_tag&quot; value\=&quot;@formatter\:on&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_assignment&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.problem.assertIdentifier&quot; value\=&quot;error&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.tabulation.char&quot; value\=&quot;tab&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_statements_compare_to_body&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_method&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_method_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_switch&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.problem.enumIdentifier&quot; value\=&quot;error&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_ellipsis&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_block&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_method_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.compact_else_if&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.indent_root_tags&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_enum_constant&quot; value\=&quot;next_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch&quot; value\=&quot;16&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.tabulation.size&quot; value\=&quot;4&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_empty_lines&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_block_in_case&quot; value\=&quot;next_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.compliance&quot; value\=&quot;1.8&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_lambda_body&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_unary_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_binary_expression&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode&quot; value\=&quot;enabled&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_label&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_javadoc_comments&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.line_length&quot; value\=&quot;150&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_between_import_groups&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_semicolon&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.wrap_before_binary_operator&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_statements_compare_to_block&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.join_lines_in_comments&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_compact_if&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_before_imports&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_html&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_source_code&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.compiler.codegen.targetPlatform&quot; value\=&quot;1.8&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_resources_in_try&quot; value\=&quot;80&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_header&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.format_block_comments&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.alignment_for_enum_constants&quot; value\=&quot;0&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.brace_position_for_type_declaration&quot; value\=&quot;end_of_line&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.blank_lines_after_imports&quot; value\=&quot;1&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header&quot; value\=&quot;true&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for&quot; value\=&quot;insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments&quot; value\=&quot;do not insert&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column&quot; value\=&quot;false&quot;/>\n&lt;setting id\=&quot;org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line&quot; value\=&quot;false&quot;/>\n&lt;/profile>\n&lt;/profiles>\n&#xA;org.eclipse.jdt.ui.formatterprofiles.version=12&#xA;org.eclipse.jdt.ui.text.code_templates_migrated=true&#xA;org.eclipse.jdt.ui.text.custom_code_templates=&lt;?xml version\=&quot;1.0&quot; encoding\=&quot;UTF-8&quot; standalone\=&quot;no&quot;?>&lt;templates>&lt;template autoinsert\=&quot;false&quot; context\=&quot;constructorcomment_context&quot; deleted\=&quot;false&quot; description\=&quot;Comment for created constructors&quot; enabled\=&quot;true&quot; id\=&quot;org.eclipse.jdt.ui.text.codetemplates.constructorcomment&quot; name\=&quot;constructorcomment&quot;>/**\n * Constructor.\n *\n * $${tags}\n */&lt;/template>&lt;template autoinsert\=&quot;false&quot; context\=&quot;filecomment_context&quot; deleted\=&quot;false&quot; description\=&quot;Comment for created Java files&quot; enabled\=&quot;true&quot; id\=&quot;org.eclipse.jdt.ui.text.codetemplates.filecomment&quot; name\=&quot;filecomment&quot;>/*****************************************************************************\n * Copyright (c) $${year} CEA LIST and others.\n * \n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http\://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors\:\n * CEA LIST - Initial API and implementation\n * \n *****************************************************************************/\n&lt;/template>&lt;template autoinsert\=&quot;false&quot; context\=&quot;overridecomment_context&quot; deleted\=&quot;false&quot; description\=&quot;Comment for overriding methods&quot; enabled\=&quot;true&quot; id\=&quot;org.eclipse.jdt.ui.text.codetemplates.overridecomment&quot; name\=&quot;overridecomment&quot;>/**\n * $${see_to_overridden}\n *\n * $${tags}\n */&lt;/template>&lt;template autoinsert\=&quot;false&quot; context\=&quot;delegatecomment_context&quot; deleted\=&quot;false&quot; description\=&quot;Comment for delegate methods&quot; enabled\=&quot;true&quot; id\=&quot;org.eclipse.jdt.ui.text.codetemplates.delegatecomment&quot; name\=&quot;delegatecomment&quot;>/**\n * $${see_to_target}\n *\n * $${tags}\n */&lt;/template>&lt;/templates>&#xA;"
+ targetURL="${workspace.location|uri}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs">
+ <description>Code formatting and clean-up profiles for Papyrus.</description>
+ </setupTask>
+ <setupTask
+ xsi:type="setup:CompoundTask"
+ name="Compiler Preferences">
+ <setupTask
+ xsi:type="setup:PreferenceTask"
+ key="instance/org.eclipse.jdt.launching/org.eclipse.jdt.launching.PREF_STRICTLY_COMPATIBLE_JRE_NOT_AVAILABLE"
+ value="ignore"/>
+ <setupTask
+ xsi:type="setup:PreferenceTask"
+ key="instance/org.eclipse.pde/compilers.f.unresolved-features"
+ value="2"/>
+ <setupTask
+ xsi:type="setup:CompoundTask"
+ name="org.eclipse.pde.api.tools">
+ <setupTask
+ xsi:type="setup:PreferenceTask"
+ key="/instance/org.eclipse.pde.api.tools/missing_default_api_profile"
+ value="Ignore"/>
+ </setupTask>
+ </setupTask>
+ <setupTask
+ xsi:type="setup:VariableTask"
+ type="URI"
+ name="base.downloads.url"
+ value="http://download.eclipse.org"/>
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="git.checkout.branch"
+ value="${scope.project.stream.name}"/>
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="eclipse.target.platform"
+ defaultValue="Luna"
+ storageURI="scope://Workspace"/>
+ <setupTask
+ xsi:type="git:GitCloneTask"
+ id="papyrus.git.clone"
+ remoteURI="papyrus/org.eclipse.papyrus"
+ pushURI=""
+ checkoutBranch="${git.checkout.branch}">
+ <annotation
+ source="http://www.eclipse.org/oomph/setup/InducedChoices">
+ <detail
+ key="inherit">
+ <value>eclipse.git.gerrit.remoteURIs</value>
+ </detail>
+ <detail
+ key="label">
+ <value>Papyrus Git or Gerrit Repository</value>
+ </detail>
+ <detail
+ key="target">
+ <value>remoteURI</value>
+ </detail>
+ </annotation>
+ <description>Papyrus</description>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.targlets:TargletTask">
+ <targlet
+ name="Papyrus Main Dependencies"
+ activeRepositoryList="${eclipse.target.platform}">
+ <requirement
+ name="org.eclipse.sdk.feature.group"/>
+ <requirement
+ name="org.eclipse.uml2.sdk.feature.group"/>
+ <requirement
+ name="org.eclipse.emf.sdk.feature.group"/>
+ <repositoryList
+ name="Mars">
+ <repository
+ url="http://download.eclipse.org/eclipse/updates/4.5milestones/S-4.5RC1-201505141000/">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>Eclipse</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="${base.downloads.url}/tools/orbit/downloads/drops/R20140525021250/repository"/>
+ <repository
+ url="http://download.eclipse.org/modeling/emf/emf/updates/2.11milestones/">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>EMF (Core)</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/emf/transaction/updates/milestones/S201505060251">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>EMF TRANSACTION</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/emf/validation/updates/milestones/S201505060134/">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>EMF VALIDATION</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/tools/gef/updates/milestones">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>GEF</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/gmp/gmf-runtime/updates/milestones/S201505060429">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>GMF Runtime</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/gmp/gmf-notation/updates/milestones/S201505060039">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>GMF Notation</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/gmp/gmf-tooling/updates/milestones-3.3/RC1">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>GMF Tooling</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505190324/mwe">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>EMFT MWE</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505190428/mwe2lang">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>EMFT MWE:1</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/mmt/qvto/updates/milestones/3.5.0/S201505190736">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>QVT Operational</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/acceleo/updates/milestones/3.6/S201505131324">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>M2T ACCELEO</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/6.0.0/S201505181553">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>MDT OCL 6.0</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/mdt/uml2/updates/5.1milestones">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>MDT UML2</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/m2t/xpand/updates/milestones/S201505190330/">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>M2T XPAND</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/tmf/xtext/updates/milestones/maintenance/S201505190403/">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>Xtext, Xtend</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/emf/compare/updates/milestones/3.1/S201505180755">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>EMF COMPARE</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/webtools/downloads/drops/R3.7.0/S-3.7.0RC1-20150519000109/repository/">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>WebTools</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="${base.downloads.url}/nattable/releases/1.2.0/repository/"/>
+ <repository
+ url="http://download.eclipse.org/xwt/release-1.1.0">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>XWT</value>
+ </detail>
+ </annotation>
+ </repository>
+ </repositoryList>
+ <repositoryList
+ name="Luna">
+ <repository
+ url="http://download.eclipse.org/eclipse/updates/4.5milestones/S-4.5M6-201503200800/">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>Eclipse</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="${base.downloads.url}/tools/orbit/downloads/drops/R20140525021250/repository"/>
+ <repository
+ url="http://download.eclipse.org/modeling/emf/emf/updates/2.11milestones/">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>EMF (Core)</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/emf/transaction/updates/milestones/S201503250534">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>EMF TRANSACTION</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/emf/validation/updates/milestones/S201503250348">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>EMF VALIDATION</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="${base.downloads.url}/modeling/emf/query/updates/releases/R201405281426"/>
+ <repository
+ url="http://download.eclipse.org/tools/gef/updates/milestones">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>GEF</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/gmp/gmf-runtime/updates/milestones/S201502040533">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>GMF Runtime</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/gmp/gmf-notation/updates/milestones/S201503250354">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>GMF Notation</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/gmp/gmf-tooling/updates/milestones-3.3/M4">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>GMF Tooling</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201503240644/mwe">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>EMFT MWE</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/mmt/qvto/updates/milestones/3.5.0/S201503241740">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>QVT Operational</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/acceleo/updates/milestones/3.6/S201503131323">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>M2T ACCELEO</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/6.0.0/S201503240634">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>MDT OCL 6.0</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/mdt/uml2/updates/5.1milestones">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>MDT UML2</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/m2t/xpand/updates/milestones/S201503240650/">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>M2T XPAND</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.8.1/">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>Xtext, Xtend</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/modeling/emf/compare/updates/milestones/3.1/S201503131342">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>EMF COMPARE</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/webtools/downloads/drops/R3.7.0/S-3.7.0M6-20150324000117/repository/">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>WebTools</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="${base.downloads.url}/nattable/releases/1.2.0/repository/"/>
+ </repositoryList>
+ </targlet>
+ <targlet
+ name="Papyrus Test Dependencies"
+ activeRepositoryList="${eclipse.target.platform}">
+ <requirement
+ name="org.eclipse.swtbot.feature.group"/>
+ <requirement
+ name="org.eclipse.swtbot.eclipse.feature.group"/>
+ <requirement
+ name="org.eclipse.swtbot.eclipse.gef.feature.group"/>
+ <requirement
+ name="org.eclipse.swtbot.forms.feature.group"/>
+ <repositoryList
+ name="Mars">
+ <repository
+ url="${base.downloads.url}/technology/swtbot/snapshots"/>
+ </repositoryList>
+ <repositoryList
+ name="Luna">
+ <repository
+ url="${base.downloads.url}/technology/swtbot/snapshots"/>
+ </repositoryList>
+ </targlet>
+ <targlet
+ name="Papyrus Main Plug-ins"
+ activeRepositoryList="${eclipse.target.platform}">
+ <requirement
+ name="org.eclipse.papyrus.sdk.feature.feature.group"/>
+ <repositoryList
+ name="Mars">
+ <repository
+ url="${base.downloads.url}/modeling/mdt/papyrus/updates/nightly/mars/main"/>
+ </repositoryList>
+ <repositoryList
+ name="Luna">
+ <repository
+ url="${base.downloads.url}/modeling/mdt/papyrus/updates/nightly/luna"/>
+ </repositoryList>
+ </targlet>
+ <targlet
+ name="Diagnostic/Debug Tools"
+ activeRepositoryList="${eclipse.target.platform}"
+ includeSources="false">
+ <requirement
+ name="org.eclipse.swt.tools"
+ optional="true"/>
+ <repositoryList
+ name="Mars">
+ <repository
+ url="http://www.eclipse.org/swt/updates/4.4"/>
+ </repositoryList>
+ <repositoryList
+ name="Luna">
+ <repository
+ url="http://www.eclipse.org/swt/updates/4.4"/>
+ </repositoryList>
+ </targlet>
+ </setupTask>
+ <setupTask
+ xsi:type="setup:CompoundTask"
+ name="Mylyn Queries">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.repository"
+ value="https://bugs.eclipse.org/bugs"/>
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.prefix"
+ value="/buglist.cgi?classification=Modeling&amp;product=Papyrus"/>
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.open"
+ value="bug_status=UNCONFIRMED&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED"/>
+ <setupTask
+ xsi:type="mylyn:MylynQueriesTask"
+ repositoryURL="${papyrus.bugzilla.repository}">
+ <query
+ summary="Papyrus Flagged for Review"
+ url="${papyrus.bugzilla.prefix}&amp;version=${papyrus.bugzilla.version}&amp;${papyrus.bugzilla.open}&amp;query_format=advanced&amp;field0-0-0=flagtypes.name&amp;type0-0-0=equals&amp;value0-0-0=review%3F"/>
+ <query
+ summary="Papyrus Open Bugs"
+ url="${papyrus.bugzilla.prefix}&amp;version=${papyrus.bugzilla.version}&amp;${papyrus.bugzilla.open}&amp;bug_severity=blocker&amp;bug_severity=critical&amp;bug_severity=major&amp;bug_severity=normal&amp;bug_severity=minor&amp;bug_severity=trivial"/>
+ <query
+ summary="Papyrus Open Enhancement Requests"
+ url="${papyrus.bugzilla.prefix}&amp;version=${papyrus.bugzilla.version}&amp;${papyrus.bugzilla.open}&amp;bug_severity=enhancement"/>
+ <query
+ summary="Papyrus Resolved Items"
+ url="${papyrus.bugzilla.prefix}&amp;version=${papyrus.bugzilla.version}&amp;bug_status=RESOLVED&amp;resolution=FIXED"/>
+ </setupTask>
+ <setupTask
+ xsi:type="mylyn:MylynQueriesTask"
+ connectorKind="org.eclipse.mylyn.gerrit"
+ repositoryURL="https://git.eclipse.org/r"
+ userID="${bugzilla.id}"
+ password="${eclipse.user.password}">
+ <query
+ summary="Papyrus Open Gerrit Reviews">
+ <attribute
+ key="gerrit query type"
+ value="custom"/>
+ <attribute
+ key="gerrit query project"
+ value="papyrus/org.eclipse.papyrus"/>
+ <attribute
+ key="gerrit query string"
+ value="project:papyrus/org.eclipse.papyrus status:open branch:${git.checkout.branch}"/>
+ </query>
+ </setupTask>
+ <setupTask
+ xsi:type="mylyn:MylynBuildsTask"
+ serverURL="https://hudson.eclipse.org/papyrus/"
+ userID="${bugzilla.id}"
+ password="${eclipse.user.password}">
+ <buildPlan
+ name="Papyrus-Master"/>
+ <buildPlan
+ name="Papyrus-Master-Tests"/>
+ <buildPlan
+ name="Papyrus-Master-Extra"/>
+ <buildPlan
+ name="Papyrus-Master-Extra-Tests"/>
+ <buildPlan
+ name="Papyrus-Luna"/>
+ <buildPlan
+ name="Papyrus-Luna-Tests"/>
+ </setupTask>
+ </setupTask>
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/tests/junit/plugins}">
+ <predicate
+ xsi:type="predicates:OrPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.junit\.framework"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.junit\.utils"/>
+ </predicate>
+ </sourceLocator>
+ </setupTask>
+ <project name="main"
+ label="Main">
+ <project
+ name="infra"
+ label="Infra">
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/plugins/infra}">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:OrPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.infra\..*"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.eclipse\.project\.editors"/>
+ </operand>
+ <operand
+ xsi:type="predicates:NotPredicate">
+ <operand
+ xsi:type="predicates:OrPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.infra\.emf\.(?:embedded)?editor"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.infra\.emf\.facet\.queries"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.infra\.emf\.newchild"/>
+ </operand>
+ </operand>
+ </predicate>
+ </sourceLocator>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/plugins/editor}"/>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/tests/junit/plugins/infra}"/>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/tests/junit/plugins/core}">
+ <predicate
+ xsi:type="predicates:NotPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.tests"/>
+ </predicate>
+ </sourceLocator>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/features}">
+ <predicate
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.(tests\.)?infra($|\..+)"/>
+ </sourceLocator>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.workingsets:WorkingSetTask">
+ <workingSet
+ name="Papyrus Infra"
+ id="papyrus-infra">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.infra.core"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:OrPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.infra\..*"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.editor($|\..+)"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.eclipse\.project\.editors"/>
+ </operand>
+ <operand
+ xsi:type="workingsets:ExclusionPredicate"
+ excludedWorkingSet="//@projects[name='main']/@projects[name='infra']/@setupTasks.1/@workingSets.1 //@projects[name='main']/@projects[name='infra']/@setupTasks.1/@workingSets.2 //@projects[name='main']/@projects[name='infra']/@setupTasks.1/@workingSets.3 //@projects[name='main']/@projects[name='infra']/@setupTasks.1/@workingSets.5 //@projects[name='main']/@projects[name='infra']/@setupTasks.1/@workingSets.4"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus Infra Diagram"
+ id="papyrus-infra-diagram">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.infra.gmfdiag.common"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.infra\.gmfdiag($|\..+)"/>
+ <operand
+ xsi:type="workingsets:ExclusionPredicate"
+ excludedWorkingSet="//@projects[name='main']/@projects[name='infra']/@setupTasks.1/@workingSets.5"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus Infra Nattable"
+ id="papyrus-infra-nattable">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.infra.nattable"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.infra\.(?:emf\.)?nattable($|\..+)"/>
+ <operand
+ xsi:type="workingsets:ExclusionPredicate"
+ excludedWorkingSet="//@projects[name='main']/@projects[name='infra']/@setupTasks.1/@workingSets.5"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus Infra Services"
+ id="papyrus-infra-services">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.infra.services.labelprovider"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.infra\.services($|\..+)"/>
+ <operand
+ xsi:type="workingsets:ExclusionPredicate"
+ excludedWorkingSet="//@projects[name='main']/@projects[name='infra']/@setupTasks.1/@workingSets.5"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus Infra Viewpoints"
+ id="papyrus-infra-viewpoints">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.infra.viewpoints.policy"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.infra\.viewpoints($|\..+)"/>
+ <operand
+ xsi:type="workingsets:ExclusionPredicate"
+ excludedWorkingSet="//@projects[name='main']/@projects[name='infra']/@setupTasks.1/@workingSets.5"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus Infra Tests"
+ id="papyrus-infra-tests">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.infra.core.tests"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:OrPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.infra(\..+)?\.tests"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.editor\.integration\.tests"/>
+ </operand>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus Infra Features"
+ id="papyrus-infra-features">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.infra.core.feature"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.FeatureNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus(\.tests)?\.infra($|\..+)"/>
+ </predicate>
+ </workingSet>
+ </setupTask>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ <setupTask
+ xsi:type="setup.targlets:TargletTask">
+ <targlet
+ name="Papyrus Infra Dependencies"
+ activeRepositoryList="${eclipse.target.platform}">
+ <requirement
+ name="org.eclipse.nebula.widgets.tablecombo.feature.feature.group"/>
+ <repositoryList
+ name="Mars">
+ <repository
+ url="${base.downloads.url}/technology/nebula/archives/Q12015/release"/>
+ </repositoryList>
+ <repositoryList
+ name="Luna"/>
+ </targlet>
+ </setupTask>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ </project>
+ <project
+ name="views"
+ label="Views">
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/plugins/views}"/>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/tests/junit/plugins/views}"/>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/features}">
+ <predicate
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.(tests\.)?views($|\..+)"/>
+ </sourceLocator>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.workingsets:WorkingSetTask">
+ <workingSet
+ name="Papyrus Views"
+ id="papyrus-views">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.views.properties"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.views($|\..+)"/>
+ <operand
+ xsi:type="workingsets:ExclusionPredicate"
+ excludedWorkingSet="//@projects[name='main']/@projects[name='views']/@setupTasks.1/@workingSets.1"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus Views Tests"
+ id="papyrus-views-tests">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.views.modelexplorer.tests"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.views(\..+)?\.tests"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus Views Features"
+ id="papyrus-views-features">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.views.properties.feature"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.FeatureNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.(tests\.)?views($|\..+)"/>
+ </predicate>
+ </workingSet>
+ </setupTask>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/plugins/xwt}"/>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/features}">
+ <predicate
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.(tests\.)?xwt($|\..+)"/>
+ </sourceLocator>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.workingsets:WorkingSetTask">
+ <workingSet
+ name="Papyrus XWT"
+ id="papyrus-xwt">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.views.properties"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.xwt($|\..+)"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus XWT Features"
+ id="papyrus-xwt-features">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.views.properties.feature"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.FeatureNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.(tests\.)?xwt($|\..+)"/>
+ </predicate>
+ </workingSet>
+ </setupTask>
+ </stream>
+ </project>
+ <project
+ name="uml"
+ label="UML">
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/plugins/uml}">
+ <predicate
+ xsi:type="predicates:NotPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern=".*\.(alf|textedit|xtext)($|\..+)"/>
+ </predicate>
+ </sourceLocator>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/tests/junit/plugins/uml}">
+ <predicate
+ xsi:type="predicates:NotPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern=".*\.(alf|textedit|xtext)($|\..+)"/>
+ </predicate>
+ </sourceLocator>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/features}">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.(tests\.)?uml($|\..+)"/>
+ <operand
+ xsi:type="predicates:NotPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern=".*\.(alf|textedit|xtext)($|\..+)"/>
+ </operand>
+ </predicate>
+ </sourceLocator>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.workingsets:WorkingSetTask">
+ <workingSet
+ name="Papyrus UML"
+ id="papyrus-uml">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.uml.commands"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.uml($|\..+)"/>
+ <operand
+ xsi:type="predicates:NotPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern=".*\.(alf|textedit|xtext)($|\..+)"/>
+ </operand>
+ <operand
+ xsi:type="workingsets:ExclusionPredicate"
+ excludedWorkingSet="//@projects[name='main']/@projects[name='uml']/@setupTasks.1/@workingSets.1 //@projects[name='main']/@projects[name='uml']/@setupTasks.1/@workingSets.2 //@projects[name='main']/@projects[name='uml']/@setupTasks.1/@workingSets.3"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus UML Diagrams"
+ id="papyrus-uml-diagram">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.uml.diagram.common"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.uml\.diagram.*"/>
+ <operand
+ xsi:type="predicates:NotPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern=".*\.(alf|textedit|xtext)($|\..+)"/>
+ </operand>
+ <operand
+ xsi:type="workingsets:ExclusionPredicate"
+ excludedWorkingSet="//@projects[name='main']/@projects[name='uml']/@setupTasks.1/@workingSets.3"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus UML Tables"
+ id="papyrus-uml-table">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.uml.nattable"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.uml\.nattable.*"/>
+ <operand
+ xsi:type="predicates:NotPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern=".*\.(alf|textedit|xtext)($|\..+)"/>
+ </operand>
+ <operand
+ xsi:type="workingsets:ExclusionPredicate"
+ excludedWorkingSet="//@projects[name='main']/@projects[name='uml']/@setupTasks.1/@workingSets.3"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus UML Tests"
+ id="papyrus-uml-tests">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.uml.diagram.common.tests"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.uml(\..+)?\.tests"/>
+ <operand
+ xsi:type="predicates:NotPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern=".*\.alf.*|.*\.uml\.textedit.*"/>
+ </operand>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus UML Features"
+ id="papyrus-uml-features">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.uml.feature"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.FeatureNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus(\.tests)?\.uml($|\..+)"/>
+ <operand
+ xsi:type="predicates:NotPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern=".*\.(alf|textedit|xtext)($|\..+)"/>
+ </operand>
+ </predicate>
+ </workingSet>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.targlets:TargletTask">
+ <targlet
+ name="Additional UML Dependencies"
+ activeRepositoryList="">
+ <requirement
+ name="org.eclipse.ocl.jdt.annotation7"
+ optional="true"/>
+ </targlet>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.p2:P2Task">
+ <requirement
+ name="org.eclipse.xtend.sdk.feature.group"/>
+ </setupTask>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ </project>
+ <project
+ name="uml-alf"
+ label="UML ALF">
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/plugins/uml}">
+ <predicate
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.uml\.alf($|\..+)"/>
+ </sourceLocator>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/tests/junit/plugins/uml}">
+ <predicate
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.uml\.alf($|\..+)"/>
+ </sourceLocator>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/features}">
+ <predicate
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.(tests\.)?uml\.alf($|\..+)"/>
+ </sourceLocator>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.workingsets:WorkingSetTask">
+ <workingSet
+ name="Papyrus UML ALF"
+ id="papyrus-uml-alf">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.uml.alf.common"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.uml\.alf($|\..+)"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus UML ALF Features"
+ id="papyrus-uml-alf-features">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.uml.alf.feature"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.FeatureNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.uml\.alf($|\..+)"/>
+ </predicate>
+ </workingSet>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.p2:P2Task">
+ <requirement
+ name="org.eclipse.xtend.sdk.feature.group"/>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.targlets:TargletTask">
+ <targlet
+ name="Papyrus ALF Dependencies"
+ activeRepositoryList="${eclipse.target.platform}">
+ <requirement
+ name="org.eclipse.ocl.core.sdk.feature.group"/>
+ <requirement
+ name="org.eclipse.m2m.qvt.oml.runtime.feature.group"/>
+ </targlet>
+ </setupTask>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ </project>
+ <project
+ name="uml-text"
+ label="UML Text Editors">
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/plugins/uml}">
+ <predicate
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.uml\.(textedit|xtext)($|\..+)"/>
+ </sourceLocator>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/tests/junit/plugins/uml}">
+ <predicate
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.uml\.(textedit|xtext)($|\..+)"/>
+ </sourceLocator>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/features}">
+ <predicate
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.(tests\.)?uml\.(textedit|xtext)($|\..+)"/>
+ </sourceLocator>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.workingsets:WorkingSetTask">
+ <workingSet
+ name="Papyrus UML Text Editors"
+ id="papyrus-uml-text">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.uml.textedit.common.xtext"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.uml\.(textedit|xtext)($|\..+)"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus UML Text Editors Features"
+ id="papyrus-uml-text-features">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.uml.textedit.feature"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.FeatureNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.uml\.(textedit|xtext)($|\..+)"/>
+ </predicate>
+ </workingSet>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.p2:P2Task">
+ <requirement
+ name="org.eclipse.xtend.sdk.feature.group"/>
+ </setupTask>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ </project>
+ <project
+ name="sysml"
+ label="SysML">
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/plugins/sysml}"/>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/tests/junit/plugins/sysml}"/>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/features}">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.(tests\.)?sysml($|\..+)"/>
+ </predicate>
+ </sourceLocator>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.workingsets:WorkingSetTask">
+ <workingSet
+ name="Papyrus SysML"
+ id="papyrus-sysml">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.sysml"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.sysml($|\..+)"/>
+ <operand
+ xsi:type="workingsets:ExclusionPredicate"
+ excludedWorkingSet="//@projects[name='main']/@projects[name='sysml']/@setupTasks.1/@workingSets.1 //@projects[name='main']/@projects[name='sysml']/@setupTasks.1/@workingSets.2 //@projects[name='main']/@projects[name='sysml']/@setupTasks.1/@workingSets.3"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus SysML Diagrams"
+ id="papyrus-sysml-diagram">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.sysml.diagram.common"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.sysml\.diagram($|\..+)"/>
+ <operand
+ xsi:type="workingsets:ExclusionPredicate"
+ excludedWorkingSet="//@projects[name='main']/@projects[name='sysml']/@setupTasks.1/@workingSets.3"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus SysML Tables"
+ id="papyrus-sysml-table">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.sysml.nattable"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.sysml\.nattable($|\..+)"/>
+ <operand
+ xsi:type="workingsets:ExclusionPredicate"
+ excludedWorkingSet="//@projects[name='main']/@projects[name='sysml']/@setupTasks.1/@workingSets.3"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus SysML Tests"
+ id="papyrus-sysml-tests">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.sysml.tests"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.sysml(\..+)?\.tests"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus SysML Features"
+ id="papyrus-sysml-features">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.sysml.feature"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.FeatureNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus(\.tests)?\.sysml($|\..+)"/>
+ </predicate>
+ </workingSet>
+ </setupTask>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ </project>
+ <project
+ name="emffacet"
+ label="EMF Facet">
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/plugins/facet}">
+ <predicate
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.emf\.facet\..*"/>
+ </sourceLocator>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/features}">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.(tests\.)?emf\.facet($|\..+)"/>
+ </predicate>
+ </sourceLocator>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.workingsets:WorkingSetTask">
+ <workingSet
+ name="Papyrus EMF Facet"
+ id="papyrus-emffacet">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.emf.facet.common.core"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.emf\.facet($|\..+)"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus EMF Facet Features"
+ id="papyrus-emffacet-features">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.emf.facet.feature"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.FeatureNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus(\.tests)?\.emf\.facet($|\..+)"/>
+ </predicate>
+ </workingSet>
+ </setupTask>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ </project>
+ <project
+ name="customization"
+ label="Customization">
+ <setupTask
+ xsi:type="setup.p2:P2Task">
+ <requirement
+ name="org.eclipse.m2m.qvt.oml.sdk.feature.group"/>
+ </setupTask>
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/plugins/customization}"/>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/tests/junit/plugins/customization}"/>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/features}">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.(tests\.)?customization($|\..+)"/>
+ </predicate>
+ </sourceLocator>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.workingsets:WorkingSetTask">
+ <workingSet
+ name="Papyrus Customization"
+ id="papyrus-customization">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.customization"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:OrPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.customization(?:$|\..+)"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.editor(?:$|\..+)"/>
+ </operand>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus Customization Features"
+ id="papyrus-customization-features">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.customization.feature"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.FeatureNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.customization(?:$|\..+)"/>
+ </predicate>
+ </workingSet>
+ </setupTask>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ </project>
+ <project
+ name="doc"
+ label="Documentation">
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/plugins/doc}"/>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/features}">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus(\..+)?\.doc($|\..+)"/>
+ </predicate>
+ </sourceLocator>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.workingsets:WorkingSetTask">
+ <workingSet
+ name="Papyrus Documentation"
+ id="papyrus-doc">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.uml.doc"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus(\..+)?\.doc(umentation)?"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus Documentation Features"
+ id="papyrus-doc-features">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.doc.feature"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.FeatureNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus(\..+)?\.doc($|\..+)"/>
+ </predicate>
+ </workingSet>
+ </setupTask>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ </project>
+ <project
+ name="alltests"
+ label="All Tests">
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/tests/junit/plugins}"/>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/features}">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.tests\..+"/>
+ <operand
+ xsi:type="predicates:NotPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern=".*\.extra\..*"/>
+ </operand>
+ </predicate>
+ </sourceLocator>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.workingsets:WorkingSetTask">
+ <workingSet
+ name="Papyrus All Main Tests"
+ id="papyrus-alltests">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.tests"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus(\..+)?\.tests"/>
+ <operand
+ xsi:type="predicates:NotPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern=".*\.extra\..*"/>
+ </operand>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus Main Test Features"
+ id="papyrus-alltests-features">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.tests.feature"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.FeatureNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.tests($|\..+)"/>
+ <operand
+ xsi:type="predicates:NotPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern=".*\.extra\..*"/>
+ </operand>
+ </predicate>
+ </workingSet>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.targlets:TargletTask">
+ <targlet
+ name="Papyrus ALF Test Dependencies"
+ activeRepositoryList="${eclipse.target.platform}">
+ <requirement
+ name="org.eclipse.ocl.all.feature.group"/>
+ <requirement
+ name="org.eclipse.m2m.qvt.oml.runtime.feature.group"/>
+ </targlet>
+ </setupTask>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ </project>
+ <project
+ name="misc"
+ label="Others">
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/plugins/team}"/>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/features}">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.team($|\..+)"/>
+ </predicate>
+ </sourceLocator>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.workingsets:WorkingSetTask">
+ <workingSet
+ name="Papyrus Others"
+ id="papyrus-others">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.team.svn"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.team\.svn"/>
+ </predicate>
+ </workingSet>
+ <workingSet
+ name="Papyrus Other Features"
+ id="papyrus-others-features">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.team.feature"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.FeatureNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.team($|\..+)"/>
+ </predicate>
+ </workingSet>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.targlets:TargletTask">
+ <targlet
+ name="Papyrus Other Dependencies"
+ activeRepositoryList="${eclipse.target.platform}">
+ <requirement
+ name="org.eclipse.team.svn.feature.group"/>
+ <requirement
+ name="org.polarion.eclipse.team.svn.connector.svnkit18.feature.group"/>
+ <repositoryList
+ name="Luna">
+ <repository
+ url="${base.downloads.url}/technology/subversive/2.0/luna-site/"/>
+ <repository
+ url="http://community.polarion.com/projects/subversive/download/eclipse/4.0/update-site/"/>
+ </repositoryList>
+ <repositoryList
+ name="Mars">
+ <repository
+ url="http://download.eclipse.org/technology/subversive/3.0/mars-site/">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>Subversive</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://community.polarion.com/projects/subversive/download/eclipse/4.0/update-site/"/>
+ </repositoryList>
+ </targlet>
+ <description>
+ Additional dependencies, e.g. for Subversive (SVN team integration), including
+ an SVN connector from Polarion to prevent the connector dialog appearing at
+ run-time, especially as it interferes with JUnit test execution.
+ </description>
+ </setupTask>
+ </stream>
+ </project>
+ <project
+ name="releng"
+ label="Releng">
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/releng}"
+ locateNestedProjects="true">
+ <excludedPath>emfgen</excludedPath>
+ </sourceLocator>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.workingsets:WorkingSetTask">
+ <workingSet
+ name="Papyrus Releng"
+ id="papyrus-releng">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="releng"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern=".*\.releng.*|.*\.oomph.*|releng"/>
+ </predicate>
+ </workingSet>
+ </setupTask>
+ <project
+ name="maven"
+ label="Maven Plug-ins">
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/releng/emfgen}"
+ locateNestedProjects="true"/>
+ </setupTask>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <description>Sources of Maven plug-ins for Papyrus custom build behaviours</description>
+ </project>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ </project>
+ <description>Tools, dependencies, and sources for development of the main Papyrus components. Required for any Papyrus development.</description>
+ </project>
+ <project name="extras"
+ label="Extras">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extratests.folder"
+ value="${papyrus.extraplugins.folder}"/>
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extrafeature"
+ value="extra.${papyrus.extraplugins.folder}"/>
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extratestsfeature"
+ value="tests.${papyrus.extrafeature}"/>
+ <setupTask
+ xsi:type="setup.targlets:TargletTask">
+ <targlet
+ name="${scope.project.label} Plug-ins"
+ activeRepositoryList="${eclipse.target.platform}">
+ <requirement
+ name="org.eclipse.papyrus.${papyrus.extrafeature}.feature.feature.group"
+ optional="true"/>
+ <repositoryList
+ name="Mars">
+ <repository
+ url="${base.downloads.url}/modeling/mdt/papyrus/updates/nightly/mars/extra"/>
+ </repositoryList>
+ <repositoryList
+ name="Luna">
+ <repository
+ url="${base.downloads.url}/modeling/mdt/papyrus/updates/nightly/luna"/>
+ </repositoryList>
+ </targlet>
+ </setupTask>
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/extraplugins}/${papyrus.extraplugins.folder}"/>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/tests/junit/extraplugins}/${papyrus.extratests.folder}"/>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/features/papyrus-extra-features}">
+ <predicate
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.${papyrus.extrafeature}\.feature"/>
+ </sourceLocator>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/features/papyrus-tests-extra-features}">
+ <predicate
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.${papyrus.extratestsfeature}\.feature"/>
+ </sourceLocator>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.workingsets:WorkingSetTask">
+ <workingSet
+ name="Papyrus ${scope.project.label}">
+ <predicate
+ xsi:type="predicates:OrPredicate">
+ <operand
+ xsi:type="predicates:LocationPredicate"
+ pattern="\Q${papyrus.git.clone.location/extraplugins}\E[\\/]\Q${papyrus.extraplugins.folder}\E"/>
+ <operand
+ xsi:type="predicates:LocationPredicate"
+ pattern="\Q${papyrus.git.clone.location/extraplugins}\E[\\/]\Q${papyrus.extraplugins.folder}\E[\\/].*"/>
+ <operand
+ xsi:type="predicates:LocationPredicate"
+ pattern="\Q${papyrus.git.clone.location/tests/junit/extraplugins}\E[\\/]\Q${papyrus.extratests.folder}\E[\\/].*"/>
+ <operand
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.FeatureNature"/>
+ <operand
+ xsi:type="predicates:OrPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.${papyrus.extrafeature}($|\..*)"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.${papyrus.extratestsfeature}($|\..*)"/>
+ </operand>
+ </operand>
+ </predicate>
+ </workingSet>
+ </setupTask>
+ <project
+ name="cdo"
+ label="CDO Integration">
+ <setupTask
+ xsi:type="setup.targlets:TargletTask">
+ <targlet
+ name="Papyrus CDO Dependencies"
+ activeRepositoryList="${eclipse.target.platform}">
+ <requirement
+ name="org.eclipse.emf.cdo.sdk.feature.group"/>
+ <repositoryList
+ name="Mars">
+ <repository
+ url="http://download.eclipse.org/modeling/emf/cdo/drops/S20150520-0916">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>EMF CDO</value>
+ </detail>
+ </annotation>
+ </repository>
+ </repositoryList>
+ <repositoryList
+ name="Luna">
+ <repository
+ url="${base.downloads.url}/modeling/emf/cdo/drops/R20140610-0212"/>
+ </repositoryList>
+ </targlet>
+ </setupTask>
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extraplugins.folder"
+ value="cdo"/>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ </project>
+ <project
+ name="cpp"
+ label="C/C++ Codegen">
+ <setupTask
+ xsi:type="setup.targlets:TargletTask">
+ <targlet
+ name="Papyrus CPP Dependencies"
+ activeRepositoryList="${eclipse.target.platform}">
+ <requirement
+ name="org.eclipse.cdt.feature.group"/>
+ <requirement
+ name="org.eclipse.emf.facet.sdk.feature.feature.group"/>
+ <requirement
+ name="org.eclipse.acceleo.feature.group"/>
+ <repositoryList
+ name="Mars">
+ <repository
+ url="http://download.eclipse.org/tools/cdt/builds/mars/milestones">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>CDT</value>
+ </detail>
+ </annotation>
+ </repository>
+ <repository
+ url="http://download.eclipse.org/facet/updates/integration/1.0.0/I201505181340/">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>EMF Facet</value>
+ </detail>
+ </annotation>
+ </repository>
+ </repositoryList>
+ <repositoryList
+ name="Luna">
+ <repository
+ url="${base.downloads.url}/tools/cdt/builds/luna/milestones"/>
+ <repository
+ url="${base.downloads.url}/facet/updates/release/0.4.0"/>
+ </repositoryList>
+ </targlet>
+ </setupTask>
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extraplugins.folder"
+ value="codegen"/>
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extratests.folder"
+ value="codegen"/>
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extrafeature"
+ value="extra.cpp"/>
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extratestsfeature"
+ value="tests.extra.codegen.cpp"/>
+ <setupTask
+ xsi:type="setup.p2:P2Task">
+ <requirement
+ name="org.eclipse.xtend.sdk.feature.group"/>
+ <requirement
+ name="org.eclipse.acceleo.feature.group"/>
+ </setupTask>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ </project>
+ <project
+ name="diagramtemplate"
+ label="Diagram Template">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extraplugins.folder"
+ value="diagramtemplate"/>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ <description></description>
+ </project>
+ <project
+ name="dsml.validation"
+ label="DSML Validation">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extraplugins.folder"
+ value="dsml.validation"/>
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/extraplugins}/codegen">
+ <predicate
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.codegen\.base"/>
+ </sourceLocator>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.p2:P2Task">
+ <requirement
+ name="org.eclipse.xtend.sdk.feature.group"/>
+ </setupTask>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ <description></description>
+ </project>
+ <project
+ name="eastadl"
+ label="East-ADL">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extraplugins.folder"
+ value="eastadl"/>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ <description></description>
+ </project>
+ <project
+ name="java"
+ label="Java">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extraplugins.folder"
+ value="java"/>
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extrafeature"
+ value="java\.(?:profile|generator|reverse)"/>
+ <setupTask
+ xsi:type="setup.targlets:TargletTask">
+ <targlet
+ name="Java Plug-ins"
+ activeRepositoryList="${eclipse.target.platform}">
+ <requirement
+ name="org.eclipse.papyrus.java.profile.feature.feature.group"/>
+ <requirement
+ name="org.eclipse.papyrus.java.generator.feature.feature.group"/>
+ <requirement
+ name="org.eclipse.papyrus.java.reverse.feature.feature.group"/>
+ <repositoryList
+ name="Mars">
+ <repository
+ url="${base.downloads.url}/modeling/mdt/papyrus/updates/nightly/mars/extra"/>
+ </repositoryList>
+ <repositoryList
+ name="Luna">
+ <repository
+ url="${base.downloads.url}/modeling/mdt/papyrus/updates/nightly/luna"/>
+ </repositoryList>
+ </targlet>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.workingsets:WorkingSetTask">
+ <workingSet
+ name="Papyrus Java">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.layers.stackmodel"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.java\..*"/>
+ </predicate>
+ </workingSet>
+ <description>Projects related to Java code generation/reverse.</description>
+ </setupTask>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ <description></description>
+ </project>
+ <project
+ name="layers"
+ label="Layers">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extraplugins.folder"
+ value="layers"/>
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extrafeature"
+ value="layers"/>
+ <setupTask
+ xsi:type="setup.workingsets:WorkingSetTask">
+ <workingSet
+ name="Papyrus Layers">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.layers.stackmodel"/>
+ <operand
+ xsi:type="predicates:NaturePredicate"
+ nature="org.eclipse.pde.PluginNature"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.layers\..*"/>
+ </predicate>
+ </workingSet>
+ <description>Projects related to Papyrus Layers.</description>
+ </setupTask>
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/tests/integration/plugins}/org.eclipse.papyrus.integrationtests.editor"/>
+ <description>Import plugin requested by Layers</description>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.targlets:TargletTask">
+ <targlet
+ name="Layers dependencies"
+ activeRepositoryList="${eclipse.target.platform}">
+ <requirement
+ name="org.eclipse.emf.query.sdk.feature.group"/>
+ <repositoryList
+ name="Mars">
+ <repository
+ url="http://download.eclipse.org/modeling/emf/query/updates/releases/"/>
+ </repositoryList>
+ </targlet>
+ </setupTask>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ <description></description>
+ </project>
+ <project
+ name="marte"
+ label="MARTE">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extraplugins.folder"
+ value="marte"/>
+ <setupTask
+ xsi:type="setup.p2:P2Task">
+ <requirement
+ name="org.eclipse.xtend.sdk.feature.group"/>
+ </setupTask>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ <description></description>
+ </project>
+ <project
+ name="migration"
+ label="Model Migration">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extraplugins.folder"
+ value="migration"/>
+ <setupTask
+ xsi:type="setup.targlets:TargletTask">
+ <targlet
+ name="Papyrus Model Migration Dependencies">
+ <requirement
+ name="org.eclipse.papyrus.umlrt"/>
+ </targlet>
+ </setupTask>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ <description></description>
+ </project>
+ <project
+ name="moka"
+ label="Moka">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extraplugins.folder"
+ value="moka"/>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ <description></description>
+ </project>
+ <project
+ name="robotml"
+ label="RobotML">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extraplugins.folder"
+ value="robotml"/>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ <description></description>
+ </project>
+ <project
+ name="tablemigration"
+ label="Table Migration">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extraplugins.folder"
+ value="tablemigration"/>
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extrafeature"
+ value="tablemigration"/>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ <description></description>
+ </project>
+ <project
+ name="umlcompare"
+ label="UML Compare">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extraplugins.folder"
+ value="uml/compare"/>
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extrafeature"
+ value="extra.uml.compare"/>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ <description></description>
+ </project>
+ <project
+ name="umlexport"
+ label="UML Export">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extraplugins.folder"
+ value="uml/org.eclipse.papyrus.uml.export"/>
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extrafeature"
+ value="uml.export"/>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ <description></description>
+ </project>
+ <project
+ name="umlrt"
+ label="UML-RT">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extraplugins.folder"
+ value="umlrt"/>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ <description></description>
+ </project>
+ <project
+ name="sysml14"
+ label="SysML 1.4">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.extraplugins.folder"
+ value="sysml14"/>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ <description></description>
+ </project>
+ <description>Select sub-projects to import dependencies and sources for Papyrus extra components.</description>
+ </project>
+ <project name="dev"
+ label="Developer">
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/plugins/developer}">
+ <predicate
+ xsi:type="predicates:NotPredicate">
+ <operand
+ xsi:type="predicates:OrPredicate">
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.sysml\.sysmloveruml\.codegen"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.infra\.extendedtypes\.elementtypeview"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.dev\.view\.services\.edit\.request"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.diagramdev\.modelexplorer"/>
+ <operand
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.releng\.tools"/>
+ </operand>
+ </predicate>
+ </sourceLocator>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/features/papyrus-dev-features}"/>
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/tests/junit/plugins/developer}"/>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.workingsets:WorkingSetTask">
+ <workingSet
+ name="Papyrus Developer Tools"
+ id="papyrus-dev">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.papyrus.codegen"/>
+ <operand
+ xsi:type="predicates:OrPredicate">
+ <operand
+ xsi:type="predicates:LocationPredicate"
+ pattern="\Q${papyrus.git.clone.location/plugins/developer/}\E.+"/>
+ <operand
+ xsi:type="predicates:LocationPredicate"
+ pattern="\Q${papyrus.git.clone.location/features/papyrus-dev-features/}\E.*"/>
+ <operand
+ xsi:type="predicates:LocationPredicate"
+ pattern="\Q${papyrus.git.clone.location/tests/junit/plugins/developer/}\E.+"/>
+ </operand>
+ </predicate>
+ </workingSet>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.targlets:TargletTask">
+ <targlet
+ name="Papyrus Developer Tools Dependencies">
+ <requirement
+ name="org.eclipse.gmf.tooling.codegen.xtend2.feature.group"/>
+ <requirement
+ name="org.eclipse.acceleo.feature.group"/>
+ </targlet>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.p2:P2Task">
+ <requirement
+ name="org.eclipse.xtend.sdk.feature.group"/>
+ <requirement
+ name="org.eclipse.acceleo.feature.group"/>
+ </setupTask>
+ <project
+ name="Oomph"
+ label="Oomph Setup">
+ <setupTask
+ xsi:type="setup:EclipseIniTask"
+ option="-Doomph.redirection.papyrussetups"
+ value="=http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/plain/releng/org.eclipse.papyrus.oomph/setups/->${papyrus.git.clone.location|uri}/releng/org.eclipse.papyrus.oomph/setups/"
+ vm="true"/>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <description>Additional configuration for developing and testing the Oomph setup model.</description>
+ </project>
+ <project
+ name="relengtools"
+ label="Releng Tools">
+ <setupTask
+ xsi:type="setup.targlets:TargletTask">
+ <targlet
+ name="Papyrus Releng Tools Dependencies">
+ <requirement
+ name="org.eclipse.oomph.setup.targlets.feature.group"
+ optional="true"/>
+ <requirement
+ name="org.eclipse.oomph.setup.feature.group"
+ optional="true"/>
+ <requirement
+ name="org.eclipse.b3.aggregator.engine.feature.feature.group"/>
+ <repositoryList>
+ <repository
+ url="${oomph.update.url}"/>
+ <repository
+ url="http://download.eclipse.org/modeling/emft/b3/updates-4.3/"/>
+ </repositoryList>
+ </targlet>
+ </setupTask>
+ <setupTask
+ xsi:type="projects:ProjectsImportTask">
+ <sourceLocator
+ rootFolder="${papyrus.git.clone.location/plugins/developer}"
+ locateNestedProjects="true">
+ <predicate
+ xsi:type="predicates:NamePredicate"
+ pattern="org\.eclipse\.papyrus\.releng\.tools"/>
+ </sourceLocator>
+ </setupTask>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <description>Release engineering tools, including the POM and Oomph Setup dependencies updater actions.</description>
+ </project>
+ <project
+ name="devtools"
+ label="Developer Tools">
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ <setupTask
+ xsi:type="setup.p2:P2Task">
+ <requirement
+ name="org.eclipse.papyrus.dev.feature.feature.group"/>
+ <requirement
+ name="org.eclipse.b3.aggregator.engine.feature.feature.group"/>
+ <repository
+ url="https://hudson.eclipse.org/papyrus/job/Papyrus-Master-Developer/lastSuccessfulBuild/artifact/releng/dev/target/repository/"/>
+ <repository
+ url="${base.downloads.url}/modeling/mdt/papyrus/updates/nightly/mars/main"/>
+ <repository
+ url="http://download.eclipse.org/modeling/emft/b3/updates-4.3/"/>
+ </setupTask>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ <setupTask
+ xsi:type="setup.p2:P2Task">
+ <requirement
+ name="org.eclipse.papyrus.dev.feature.feature.group"/>
+ <requirement
+ name="org.eclipse.b3.aggregator.engine.feature.feature.group"/>
+ <requirement
+ name="org.eclipse.buckminster.core.feature.feature.group"/>
+ <requirement
+ name="org.eclipse.buckminster.git.feature.feature.group"/>
+ <requirement
+ name="org.eclipse.buckminster.pde.feature.feature.group"/>
+ <repository
+ url="https://hudson.eclipse.org/papyrus/job/Papyrus-Luna-Developer/lastSuccessfulBuild/artifact/releng/dev/target/repository/"/>
+ <repository
+ url="${base.downloads.url}/modeling/mdt/papyrus/updates/nightly/luna"/>
+ <repository
+ url="http://download.eclipse.org/modeling/emft/b3/updates-4.3/"/>
+ <repository
+ url="http://download.eclipse.org/tools/buckminster/updates-4.4"/>
+ </setupTask>
+ </stream>
+ <description>Installs developer tools, including the code generator for Papyrus diagram plug-ins and various debugging aids such as &quot;spy&quot; views. Source code is not included.</description>
+ </project>
+ <stream
+ name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ </stream>
+ <stream
+ name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ </stream>
+ <description>Sources and tools required for working on the Papyrus developer tools (not part of the product). Does not install the developer tools in your IDE: use the Developer Tools sub-project for that.</description>
+ </project>
+ <stream name="master"
+ label="master (Mars/1.1)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2&amp;version=1.1.0"/>
+ <setupTask
+ xsi:type="jdt:JRETask"
+ version="JavaSE-1.7"
+ location="${jre.location-1.7}"/>
+ <setupTask
+ xsi:type="setup.p2:P2Task">
+ <requirement
+ name="org.eclipse.uml2.sdk.feature.group"/>
+ <repository
+ url="http://download.eclipse.org/modeling/mdt/uml2/updates/5.1-I-builds/"/>
+ </setupTask>
+ </stream>
+ <stream name="streams/1.0-maintenance"
+ label="streams/1.0-maintenance (Luna/1.0.x)">
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="papyrus.bugzilla.version"
+ value="1.0.0&amp;version=1.0.1&amp;version=1.0.2"/>
+ <setupTask
+ xsi:type="jdt:JRETask"
+ version="JavaSE-1.6"
+ location="${jre.location-1.6}"/>
+ <setupTask
+ xsi:type="setup.targlets:TargletTask">
+ <targlet
+ name="Papyrus Luna Dependencies"
+ activeRepositoryList="${eclipse.target.platform}">
+ <requirement
+ name="org.eclipse.acceleo.feature.group"/>
+ <repositoryList
+ name="Mars">
+ <repository
+ url="http://download.eclipse.org/acceleo/updates/milestones/3.6/S201505131324">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>M2T ACCELEO</value>
+ </detail>
+ </annotation>
+ </repository>
+ </repositoryList>
+ <repositoryList
+ name="Luna">
+ <repository
+ url="http://download.eclipse.org/acceleo/updates/milestones/3.6/S201503131323">
+ <annotation
+ source="http://www.eclipse.org/Papyrus/2014/releng/dependencytools">
+ <detail
+ key="updateFrom">
+ <value>M2T ACCELEO</value>
+ </detail>
+ </annotation>
+ </repository>
+ </repositoryList>
+ </targlet>
+ </setupTask>
+ </stream>
+ <logicalProjectContainer
+ xsi:type="setup:ProjectCatalog"
+ href="index:/org.eclipse.setup#//@projectCatalogs[name='org.eclipse']"/>
+ <description>Workbench and workspace configuration for development on Papyrus</description>
+</setup:Project>
diff --git a/releng/top-pom-dev.xml b/releng/top-pom-dev.xml
index 753d3e61963..aca6c5ca261 100644
--- a/releng/top-pom-dev.xml
+++ b/releng/top-pom-dev.xml
@@ -47,13 +47,13 @@
<id>emft-mwe[0]</id>
<layout>p2</layout>
<!-- updateFrom("EMFT MWE",0) -->
- <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505050723/mwe</url>
+ <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505190324/mwe</url>
</repository>
<repository>
<id>emft-mwe[1]</id>
<layout>p2</layout>
<!-- updateFrom("EMFT MWE",1) -->
- <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505050939/mwe2lang</url>
+ <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505190428/mwe2lang</url>
</repository>
<repository>
<id>emf-transaction</id>
@@ -71,7 +71,7 @@
<id>ep</id>
<layout>p2</layout>
<!-- updateFrom("Eclipse",0) -->
- <url>http://download.eclipse.org/eclipse/updates/4.5milestones/S-4.5M7-201504301445</url>
+ <url>http://download.eclipse.org/eclipse/updates/4.5milestones/S-4.5RC1-201505141000/</url>
</repository>
<repository>
<id>gef</id>
@@ -95,19 +95,19 @@
<id>gmf-tooling</id>
<layout>p2</layout>
<!-- updateFrom("GMF Tooling",0) -->
- <url>http://download.eclipse.org/modeling/gmp/gmf-tooling/updates/milestones-3.3/M7</url>
+ <url>http://download.eclipse.org/modeling/gmp/gmf-tooling/updates/milestones-3.3/RC1</url>
</repository>
<repository>
<id>m2t-xpand</id>
<layout>p2</layout>
<!-- updateFrom("M2T XPAND",0) -->
- <url>http://download.eclipse.org/modeling/m2t/xpand/updates/milestones/S201505051058/</url>
+ <url>http://download.eclipse.org/modeling/m2t/xpand/updates/milestones/S201505190330/</url>
</repository>
<repository>
<id>mdt-ocl</id>
<layout>p2</layout>
<!-- updateFrom("MDT OCL 6.0",0) -->
- <url>http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/6.0.0/S201505041438</url>
+ <url>http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/6.0.0/S201505181553</url>
</repository>
<repository>
<id>mdt-uml2</id>
@@ -119,7 +119,7 @@
<id>mmt-qvto</id>
<layout>p2</layout>
<!-- updateFrom("QVT Operational",0) -->
- <url>http://download.eclipse.org/mmt/qvto/updates/milestones/3.5.0/S201505050519</url>
+ <url>http://download.eclipse.org/mmt/qvto/updates/milestones/3.5.0/S201505190736</url>
</repository>
<repository>
<id>nattable</id>
@@ -140,13 +140,13 @@
<id>tmf-xtext</id>
<layout>p2</layout>
<!-- updateFrom("Xtext, Xtend",0) -->
- <url>http://download.eclipse.org/modeling/tmf/xtext/updates/milestones/maintenance/S201505051043/</url>
+ <url>http://download.eclipse.org/modeling/tmf/xtext/updates/milestones/maintenance/S201505190403/</url>
</repository>
<repository>
<id>webtools</id>
<layout>p2</layout>
<!-- updateFrom("WebTools",0) -->
- <url>http://download.eclipse.org/webtools/downloads/drops/R3.7.0/S-3.7.0M7-20150505000109/repository/</url>
+ <url>http://download.eclipse.org/webtools/downloads/drops/R3.7.0/S-3.7.0RC1-20150519000109/repository/</url>
</repository>
<repository>
<id>XWT</id>
@@ -164,7 +164,7 @@
<id>m2t-acceleo</id>
<layout>p2</layout>
<!-- updateFrom("M2T ACCELEO",0) -->
- <url>http://download.eclipse.org/acceleo/updates/milestones/3.6/S201505040910</url>
+ <url>http://download.eclipse.org/acceleo/updates/milestones/3.6/S201505131324</url>
</repository>
<repository>
<id>b3</id>
@@ -176,7 +176,7 @@
<id>oomph</id>
<layout>p2</layout>
<!-- updateFrom("Oomph",0) -->
- <url>http://download.eclipse.org/oomph/updates/latest</url>
+ <url>http://download.eclipse.org/oomph/drops/milestone/S20150520-134307-1.1.0-RC1</url>
</repository>
<repository>
<id>papyrus-main</id>
diff --git a/releng/top-pom-extra-tests.xml b/releng/top-pom-extra-tests.xml
index 0200fbc8c1f..aeb55e14d51 100644
--- a/releng/top-pom-extra-tests.xml
+++ b/releng/top-pom-extra-tests.xml
@@ -1,308 +1,308 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.eclipse.papyrus</groupId>
- <artifactId>org.eclipse.papyrus</artifactId>
- <version>1.1.0-SNAPSHOT</version>
- <packaging>pom</packaging>
- <modules>
- <!-- Shared modules with main tests -->
- <module>../tests/junit/plugins/developer/org.eclipse.papyrus.bundles.tests</module>
- <module>../tests/junit/plugins/junit/org.eclipse.papyrus.junit.framework</module>
- <module>../tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils</module>
- <!-- Extra-tests modules -->
- <module>../tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.core.tests</module>
- <module>../tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.tests</module>
- <module>../tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.ui.tests</module>
- <module>../tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.uml.search.ui.tests</module>
- <module>../tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.uml.ui.tests</module>
- <module>../tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.validation.problems.tests</module>
- <module>../tests/junit/extraplugins/codegen/org.eclipse.papyrus.cpp.codegen.tests</module>
- <module>../tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests</module>
- <module>../tests/junit/extraplugins/org.eclipse.papyrus.tests.extra</module>
- <module>../tests/junit/extraplugins/migration/org.eclipse.papyrus.migration.rsa.tests</module>
- <!-- Tests for umlrt -->
- <module>../tests/junit/extraplugins/umlrt/org.eclipse.papyrus.umlrt.validation.tests</module>
- </modules>
- <properties>
- <tycho-version>0.21.0</tycho-version>
- <tychoExtrasVersion>0.21.0</tychoExtrasVersion>
- </properties>
- <repositories>
- <repository>
- <id>papyrus-main</id>
- <layout>p2</layout>
- <url>${papyrus.repo.main}</url>
- </repository>
- <repository>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.eclipse.papyrus</groupId>
+ <artifactId>org.eclipse.papyrus</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <modules>
+ <!-- Shared modules with main tests -->
+ <module>../tests/junit/plugins/developer/org.eclipse.papyrus.bundles.tests</module>
+ <module>../tests/junit/plugins/junit/org.eclipse.papyrus.junit.framework</module>
+ <module>../tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils</module>
+ <!-- Extra-tests modules -->
+ <module>../tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.core.tests</module>
+ <module>../tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.tests</module>
+ <module>../tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.ui.tests</module>
+ <module>../tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.uml.search.ui.tests</module>
+ <module>../tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.uml.ui.tests</module>
+ <module>../tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.validation.problems.tests</module>
+ <module>../tests/junit/extraplugins/codegen/org.eclipse.papyrus.cpp.codegen.tests</module>
+ <module>../tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests</module>
+ <module>../tests/junit/extraplugins/org.eclipse.papyrus.tests.extra</module>
+ <module>../tests/junit/extraplugins/migration/org.eclipse.papyrus.migration.rsa.tests</module>
+ <!-- Tests for umlrt -->
+ <module>../tests/junit/extraplugins/umlrt/org.eclipse.papyrus.umlrt.validation.tests</module>
+ </modules>
+ <properties>
+ <tycho-version>0.21.0</tycho-version>
+ <tychoExtrasVersion>0.21.0</tychoExtrasVersion>
+ </properties>
+ <repositories>
+ <repository>
+ <id>papyrus-main</id>
+ <layout>p2</layout>
+ <url>${papyrus.repo.main}</url>
+ </repository>
+ <!-- <repository>
<id>org.eclipse.epf.richtext_1.5.1.6-update-site</id>
<layout>p2</layout>
<url>http://download.eclipse.org/modeling/mdt/papyrus/updates/epf/main</url>
- </repository>
- <repository>
- <id>papyrus-extra</id>
- <layout>p2</layout>
- <url>${papyrus.repo.extra}</url>
- </repository>
- <repository>
- <id>birt</id>
- <layout>p2</layout>
- <!-- updateFrom("BIRT",0) -->
- <url>http://download.eclipse.org/birt/update-site/mars-interim/</url>
- </repository>
- <repository>
- <id>cdt</id>
- <layout>p2</layout>
- <!-- updateFrom("CDT",0) -->
- <url>http://download.eclipse.org/tools/cdt/builds/mars/milestones</url>
- </repository>
- <repository>
- <id>emft-emffacet</id>
- <layout>p2</layout>
- <!-- updateFrom("EMF Facet",0) -->
- <url>http://download.eclipse.org/facet/updates/integration/1.0.0/I201504210911/</url>
- </repository>
- <repository>
- <id>emf-cdo</id>
- <layout>p2</layout>
- <!-- updateFrom("EMF CDO",0) -->
- <url>http://download.eclipse.org/modeling/emf/cdo/updates/integration</url>
- </repository>
- <repository>
- <id>emf-compare</id>
- <layout>p2</layout>
- <!-- updateFrom("EMF COMPARE",0) -->
- <url>http://download.eclipse.org/modeling/emf/compare/updates/milestones/3.1/S201505051321</url>
- </repository>
- <repository>
- <id>emf-emf</id>
- <layout>p2</layout>
- <!-- updateFrom("EMF (Core)",0) -->
- <url>http://download.eclipse.org/modeling/emf/emf/updates/2.11milestones/</url>
- </repository>
- <repository>
- <id>emft-mwe[0]</id>
- <layout>p2</layout>
- <!-- updateFrom("EMFT MWE",0) -->
- <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505050723/mwe</url>
- </repository>
- <repository>
- <id>emft-mwe[1]</id>
- <layout>p2</layout>
- <!-- updateFrom("EMFT MWE",1) -->
- <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505050939/mwe2lang</url>
- </repository>
- <repository>
- <id>emf-query</id>
- <layout>p2</layout>
- <!-- updateFrom("EMF Query",0) -->
- <url>http://download.eclipse.org/modeling/emf/query/updates/milestones/S201505060133</url>
- </repository>
- <repository>
- <id>emf-transaction</id>
- <layout>p2</layout>
- <!-- updateFrom("EMF TRANSACTION",0) -->
- <url>http://download.eclipse.org/modeling/emf/transaction/updates/milestones/S201505060251</url>
- </repository>
- <repository>
- <id>emf-validation</id>
- <layout>p2</layout>
- <!-- updateFrom("EMF VALIDATION",0) -->
- <url>http://download.eclipse.org/modeling/emf/validation/updates/milestones/S201505060134/</url>
- </repository>
- <repository>
- <id>ep</id>
- <layout>p2</layout>
- <!-- updateFrom("Eclipse",0) -->
- <url>http://download.eclipse.org/eclipse/updates/4.5milestones/S-4.5M7-201504301445</url>
- </repository>
- <repository>
- <id>gef</id>
- <layout>p2</layout>
- <!-- updateFrom("GEF",0) -->
- <url>http://download.eclipse.org/tools/gef/updates/milestones</url>
- </repository>
- <repository>
- <id>gmp-gmf-notation</id>
- <layout>p2</layout>
- <!-- updateFrom("GMF Notation",0) -->
- <url>http://download.eclipse.org/modeling/gmp/gmf-notation/updates/milestones/S201505060039</url>
- </repository>
- <repository>
- <id>gmp-gmf-runtime</id>
- <layout>p2</layout>
- <!-- updateFrom("GMF Runtime",0) -->
- <url>http://download.eclipse.org/modeling/gmp/gmf-runtime/updates/milestones/S201505060429</url>
- </repository>
- <repository>
- <id>gmf-tooling</id>
- <layout>p2</layout>
- <!-- updateFrom("GMF Tooling",0) -->
- <url>http://download.eclipse.org/modeling/gmp/gmf-tooling/updates/milestones-3.3/M7</url>
- </repository>
- <repository>
- <id>m2t-acceleo</id>
- <layout>p2</layout>
- <!-- updateFrom("M2T ACCELEO",0) -->
- <url>http://download.eclipse.org/acceleo/updates/milestones/3.6/S201505040910</url>
- </repository>
- <repository>
- <id>m2t-xpand</id>
- <layout>p2</layout>
- <!-- updateFrom("M2T XPAND",0) -->
- <url>http://download.eclipse.org/modeling/m2t/xpand/updates/milestones/S201505051058/</url>
- </repository>
- <repository>
- <id>mdt-ocl</id>
- <layout>p2</layout>
- <!-- updateFrom("MDT OCL 6.0",0) -->
- <url>http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/6.0.0/S201505041438</url>
- </repository>
- <repository>
- <id>mdt-uml2</id>
- <layout>p2</layout>
- <!-- updateFrom("MDT UML2",0) -->
- <url>http://download.eclipse.org/modeling/mdt/uml2/updates/5.1milestones</url>
- </repository>
- <repository>
- <id>mmt-qvto</id>
- <layout>p2</layout>
- <!-- updateFrom("QVT Operational",0) -->
- <url>http://download.eclipse.org/mmt/qvto/updates/milestones/3.5.0/S201505050519</url>
- </repository>
- <repository>
- <id>nattable</id>
- <layout>p2</layout>
- <url>http://download.eclipse.org/nattable/releases/1.2.0/repository/</url>
- </repository>
- <repository>
- <id>orbit</id>
- <layout>p2</layout>
- <url>http://download.eclipse.org/tools/orbit/downloads/drops/R20150124073747/repository</url>
- </repository>
- <repository>
- <id>subversive</id>
- <layout>p2</layout>
- <!-- updateFrom("Subversive",0) -->
- <url>http://download.eclipse.org/technology/subversive/3.0/mars-site/</url>
- </repository>
- <repository>
- <id>tmf-xtext</id>
- <layout>p2</layout>
- <!-- updateFrom("Xtext, Xtend",0) -->
- <url>http://download.eclipse.org/modeling/tmf/xtext/updates/milestones/maintenance/S201505051043/</url>
- </repository>
- <repository>
- <id>webtools</id>
- <layout>p2</layout>
- <!-- updateFrom("WebTools",0) -->
- <url>http://download.eclipse.org/webtools/downloads/drops/R3.7.0/S-3.7.0M7-20150505000109/repository/</url>
- </repository>
- <repository>
- <id>XWT</id>
- <layout>p2</layout>
- <!-- updateFrom("XWT",0) -->
- <url>http://download.eclipse.org/xwt/release-1.1.0</url>
- </repository>
- </repositories>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.6</version>
- <configuration>
- <encoding>UTF-8</encoding>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-compiler-plugin</artifactId>
- <version>${tycho-version}</version>
- <configuration>
- <source>1.6</source>
- <target>1.6</target>
- <optimize>true</optimize>
- <showWarnings>true</showWarnings>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-maven-plugin</artifactId>
- <version>${tycho-version}</version>
- <extensions>true</extensions>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>target-platform-configuration</artifactId>
- <version>${tycho-version}</version>
- <configuration>
- <environments>
- <environment>
- <os>win32</os>
- <ws>win32</ws>
- <arch>x86</arch>
- </environment>
- <environment>
- <os>win32</os>
- <ws>win32</ws>
- <arch>x86_64</arch>
- </environment>
- <environment>
- <os>linux</os>
- <ws>gtk</ws>
- <arch>x86</arch>
- </environment>
- <environment>
- <os>linux</os>
- <ws>gtk</ws>
- <arch>x86_64</arch>
- </environment>
- <environment>
- <os>macosx</os>
- <ws>cocoa</ws>
- <arch>x86_64</arch>
- </environment>
- </environments>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-p2-repository-plugin</artifactId>
- <version>${tycho-version}</version>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-surefire-plugin</artifactId>
- <version>${tycho-version}</version>
- <configuration>
- <testSuite>org.eclipse.papyrus.tests.extra</testSuite>
- <testClass>org.eclipse.papyrus.tests.extra.AllTests</testClass>
- <useUIHarness>true</useUIHarness>
- <useUIThread>true</useUIThread>
- <testFailureIgnore>true</testFailureIgnore>
- <argLine>-Xms512m -Xmx2048m -XX:MaxPermSize=512M</argLine>
- <product>org.eclipse.sdk.ide</product>
-
- <dependencies>
- <dependency>
- <type>p2-installable-unit</type>
- <artifactId>org.eclipse.sdk.feature.group</artifactId>
- <version>0.0.0</version>
- </dependency>
- <dependency>
- <type>p2-installable-unit</type>
- <artifactId>org.eclipse.papyrus.sdk.feature.feature.group</artifactId>
- <version>0.0.0</version>
- </dependency>
- <dependency>
- <type>p2-installable-unit</type>
- <artifactId>org.eclipse.papyrus.extra.feature.feature.group</artifactId>
- <version>0.0.0</version>
- </dependency>
- </dependencies>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
+ </repository>-->
+ <repository>
+ <id>papyrus-extra</id>
+ <layout>p2</layout>
+ <url>${papyrus.repo.extra}</url>
+ </repository>
+ <repository>
+ <id>birt</id>
+ <layout>p2</layout>
+ <!-- updateFrom("BIRT",0) -->
+ <url>http://download.eclipse.org/birt/update-site/mars-interim/</url>
+ </repository>
+ <repository>
+ <id>cdt</id>
+ <layout>p2</layout>
+ <!-- updateFrom("CDT",0) -->
+ <url>http://download.eclipse.org/tools/cdt/builds/mars/milestones</url>
+ </repository>
+ <repository>
+ <id>emft-emffacet</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMF Facet",0) -->
+ <url>http://download.eclipse.org/facet/updates/integration/1.0.0/I201505181340/</url>
+ </repository>
+ <repository>
+ <id>emf-cdo</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMF CDO",0) -->
+ <url>http://download.eclipse.org/modeling/emf/cdo/drops/S20150520-0916</url>
+ </repository>
+ <repository>
+ <id>emf-compare</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMF COMPARE",0) -->
+ <url>http://download.eclipse.org/modeling/emf/compare/updates/milestones/3.1/S201505180755</url>
+ </repository>
+ <repository>
+ <id>emf-emf</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMF (Core)",0) -->
+ <url>http://download.eclipse.org/modeling/emf/emf/updates/2.11milestones/</url>
+ </repository>
+ <repository>
+ <id>emft-mwe[0]</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMFT MWE",0) -->
+ <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505190324/mwe</url>
+ </repository>
+ <repository>
+ <id>emft-mwe[1]</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMFT MWE",1) -->
+ <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505190428/mwe2lang</url>
+ </repository>
+ <repository>
+ <id>emf-query</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMF Query",0) -->
+ <url>http://download.eclipse.org/modeling/emf/query/updates/milestones/S201505060133</url>
+ </repository>
+ <repository>
+ <id>emf-transaction</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMF TRANSACTION",0) -->
+ <url>http://download.eclipse.org/modeling/emf/transaction/updates/milestones/S201505060251</url>
+ </repository>
+ <repository>
+ <id>emf-validation</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMF VALIDATION",0) -->
+ <url>http://download.eclipse.org/modeling/emf/validation/updates/milestones/S201505060134/</url>
+ </repository>
+ <repository>
+ <id>ep</id>
+ <layout>p2</layout>
+ <!-- updateFrom("Eclipse",0) -->
+ <url>http://download.eclipse.org/eclipse/updates/4.5milestones/S-4.5RC1-201505141000/</url>
+ </repository>
+ <repository>
+ <id>gef</id>
+ <layout>p2</layout>
+ <!-- updateFrom("GEF",0) -->
+ <url>http://download.eclipse.org/tools/gef/updates/milestones</url>
+ </repository>
+ <repository>
+ <id>gmp-gmf-notation</id>
+ <layout>p2</layout>
+ <!-- updateFrom("GMF Notation",0) -->
+ <url>http://download.eclipse.org/modeling/gmp/gmf-notation/updates/milestones/S201505060039</url>
+ </repository>
+ <repository>
+ <id>gmp-gmf-runtime</id>
+ <layout>p2</layout>
+ <!-- updateFrom("GMF Runtime",0) -->
+ <url>http://download.eclipse.org/modeling/gmp/gmf-runtime/updates/milestones/S201505060429</url>
+ </repository>
+ <repository>
+ <id>gmf-tooling</id>
+ <layout>p2</layout>
+ <!-- updateFrom("GMF Tooling",0) -->
+ <url>http://download.eclipse.org/modeling/gmp/gmf-tooling/updates/milestones-3.3/RC1</url>
+ </repository>
+ <repository>
+ <id>m2t-acceleo</id>
+ <layout>p2</layout>
+ <!-- updateFrom("M2T ACCELEO",0) -->
+ <url>http://download.eclipse.org/acceleo/updates/milestones/3.6/S201505131324</url>
+ </repository>
+ <repository>
+ <id>m2t-xpand</id>
+ <layout>p2</layout>
+ <!-- updateFrom("M2T XPAND",0) -->
+ <url>http://download.eclipse.org/modeling/m2t/xpand/updates/milestones/S201505190330/</url>
+ </repository>
+ <repository>
+ <id>mdt-ocl</id>
+ <layout>p2</layout>
+ <!-- updateFrom("MDT OCL 6.0",0) -->
+ <url>http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/6.0.0/S201505181553</url>
+ </repository>
+ <repository>
+ <id>mdt-uml2</id>
+ <layout>p2</layout>
+ <!-- updateFrom("MDT UML2",0) -->
+ <url>http://download.eclipse.org/modeling/mdt/uml2/updates/5.1milestones</url>
+ </repository>
+ <repository>
+ <id>mmt-qvto</id>
+ <layout>p2</layout>
+ <!-- updateFrom("QVT Operational",0) -->
+ <url>http://download.eclipse.org/mmt/qvto/updates/milestones/3.5.0/S201505190736</url>
+ </repository>
+ <repository>
+ <id>nattable</id>
+ <layout>p2</layout>
+ <url>http://download.eclipse.org/nattable/releases/1.2.0/repository/</url>
+ </repository>
+ <repository>
+ <id>orbit</id>
+ <layout>p2</layout>
+ <url>http://download.eclipse.org/tools/orbit/downloads/drops/R20150124073747/repository</url>
+ </repository>
+ <repository>
+ <id>subversive</id>
+ <layout>p2</layout>
+ <!-- updateFrom("Subversive",0) -->
+ <url>http://download.eclipse.org/technology/subversive/3.0/mars-site/</url>
+ </repository>
+ <repository>
+ <id>tmf-xtext</id>
+ <layout>p2</layout>
+ <!-- updateFrom("Xtext, Xtend",0) -->
+ <url>http://download.eclipse.org/modeling/tmf/xtext/updates/milestones/maintenance/S201505190403/</url>
+ </repository>
+ <repository>
+ <id>webtools</id>
+ <layout>p2</layout>
+ <!-- updateFrom("WebTools",0) -->
+ <url>http://download.eclipse.org/webtools/downloads/drops/R3.7.0/S-3.7.0RC1-20150519000109/repository/</url>
+ </repository>
+ <repository>
+ <id>XWT</id>
+ <layout>p2</layout>
+ <!-- updateFrom("XWT",0) -->
+ <url>http://download.eclipse.org/xwt/release-1.1.0</url>
+ </repository>
+ </repositories>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.6</version>
+ <configuration>
+ <encoding>UTF-8</encoding>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-compiler-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ <optimize>true</optimize>
+ <showWarnings>true</showWarnings>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-maven-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>target-platform-configuration</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <environments>
+ <environment>
+ <os>win32</os>
+ <ws>win32</ws>
+ <arch>x86</arch>
+ </environment>
+ <environment>
+ <os>win32</os>
+ <ws>win32</ws>
+ <arch>x86_64</arch>
+ </environment>
+ <environment>
+ <os>linux</os>
+ <ws>gtk</ws>
+ <arch>x86</arch>
+ </environment>
+ <environment>
+ <os>linux</os>
+ <ws>gtk</ws>
+ <arch>x86_64</arch>
+ </environment>
+ <environment>
+ <os>macosx</os>
+ <ws>cocoa</ws>
+ <arch>x86_64</arch>
+ </environment>
+ </environments>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-p2-repository-plugin</artifactId>
+ <version>${tycho-version}</version>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-surefire-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <testSuite>org.eclipse.papyrus.tests.extra</testSuite>
+ <testClass>org.eclipse.papyrus.tests.extra.AllTests</testClass>
+ <useUIHarness>true</useUIHarness>
+ <useUIThread>true</useUIThread>
+ <testFailureIgnore>true</testFailureIgnore>
+ <argLine>-Xms512m -Xmx2048m -XX:MaxPermSize=512M</argLine>
+ <product>org.eclipse.sdk.ide</product>
+
+ <dependencies>
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.eclipse.sdk.feature.group</artifactId>
+ <version>0.0.0</version>
+ </dependency>
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.eclipse.papyrus.sdk.feature.feature.group</artifactId>
+ <version>0.0.0</version>
+ </dependency>
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.eclipse.papyrus.extra.feature.feature.group</artifactId>
+ <version>0.0.0</version>
+ </dependency>
+ </dependencies>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/releng/top-pom-extras.xml b/releng/top-pom-extras.xml
index bf7908c23c6..d3061646a73 100644
--- a/releng/top-pom-extras.xml
+++ b/releng/top-pom-extras.xml
@@ -158,578 +158,578 @@
<!-- Module EPF -->
<module>../extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension</module>
<module>../features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature</module>
-
- <module>../extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipse.profile</module>
- <module>../extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant</module>
- <module>../extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.table</module>
- <module>../extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool</module>
- <module>../extraplugins/adl4eclipse/org.eclipse.papyrus.osgi.profile</module>
- <!-- Missing org.eclipse.xtext.gmf.glue 0.8.0' <module>../extraplugins/alf/org.eclipse.papyrus.operation.editor.xtext.ui</module>
- <module>../extraplugins/alf/org.eclipse.papyrus.operation.editor.xtext</module>-->
-
- <module>../extraplugins/design/org.eclipse.papyrus.design.profile.architecture</module>
- <module>../extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit</module>
- <module>../extraplugins/design/org.eclipse.papyrus.design.profile.architecture.editor</module>
- <module>../extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit</module>
- <module>../extraplugins/diagram-definition/org.eclipse.papyrus.dd.editor</module>
- <module>../extraplugins/diagram-definition/org.eclipse.papyrus.dd.qvt</module>
- <module>../extraplugins/diagram-definition/org.eclipse.papyrus.dd</module>
- <module>../extraplugins/diagram-definition/org.eclipse.papyrus.notation.export</module>
- <!-- Compilation failure <module>../extraplugins/diagram-definition/org.eclipse.papyrus.notation.qvt</module> -->
- <module>../extraplugins/diagram-definition/org.eclipse.papyrus.notation2umldi</module>
- <module>../extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit</module>
- <module>../extraplugins/diagram-definition/org.eclipse.papyrus.umldi.editor</module>
- <module>../extraplugins/diagram-definition/org.eclipse.papyrus.umldi</module>
- <module>../extraplugins/diagram-definition/org.eclipse.papyrus.umldi2dg</module>
- <module>../extraplugins/facade/org.eclipse.papyrus.facade.codegen</module>
- <module>../extraplugins/facade/org.eclipse.papyrus.facade.definition.editor</module>
- <module>../extraplugins/facade/org.eclipse.papyrus.facade.edit</module>
- <module>../extraplugins/facade/org.eclipse.papyrus.facade.editor</module>
- <module>../extraplugins/facade/org.eclipse.papyrus.facade.utils</module>
- <module>../extraplugins/facade/org.eclipse.papyrus.facade</module>
- <module>../extraplugins/layout/org.eclipse.papyrus.layout</module>
- <module>../extraplugins/layout/org.eclipse.papyrus.layout.algorithms.gridAlgorithm</module>
- <module>../extraplugins/layout/org.eclipse.papyrus.layout.algorithms.horizontalAlgorithm</module>
- <module>../extraplugins/layout/org.eclipse.papyrus.layout.algorithms.horizontalSymmetryAlgorithm</module>
- <module>../extraplugins/layout/org.eclipse.papyrus.layout.algorithms.horizontalTreeAlgorithm</module>
- <module>../extraplugins/layout/org.eclipse.papyrus.layout.algorithms.radialAlgorithm</module>
- <module>../extraplugins/layout/org.eclipse.papyrus.layout.algorithms.springAlgorithm</module>
- <module>../extraplugins/layout/org.eclipse.papyrus.layout.algorithms.treeAlgorithm</module>
- <module>../extraplugins/layout/org.eclipse.papyrus.layout.algorithms.verticalAlgorithm</module>
- <module>../extraplugins/layout/org.eclipse.papyrus.layout.algorithms.verticalSymmetryAlgorithm</module>
- <module>../extraplugins/layout/org.eclipse.papyrus.layout.subeditor.gmf</module>
-
- <module>../extraplugins/revision/org.eclipse.papyrus.revisiontool</module>
- <module>../extraplugins/spem2/org.eclipse.papyrus.spem2.profile</module>
-
- <!-- Papyrus Sysml 1.4 -->
- <module>../extraplugins/sysml14/org.eclipse.papyrus.sysml14</module>
- <module>../extraplugins/sysml14/org.eclipse.papyrus.sysml14.ui</module>
- <module>../extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.common</module>
- <module>../extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition</module>
- <module>../extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock</module>
- <module>../extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric</module>
- <module>../extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement</module>
- <module>../extraplugins/sysml14/org.eclipse.papyrus.sysml14.edit</module>
- <module>../extraplugins/sysml14/org.eclipse.papyrus.sysml14.service.types</module>
-
- <module>extras</module>
- </modules>
- <properties>
- <tycho-version>0.22.0</tycho-version>
- <tychoExtrasVersion>0.22.0</tychoExtrasVersion>
- <xtext.version>2.7.3</xtext.version>
- <java.source.version>1.6</java.source.version>
- <java.target.version>1.6</java.target.version>
- <papyrus.eclipse.target>mars</papyrus.eclipse.target>
- <papyrus.repo.main>http://download.eclipse.org/modeling/mdt/papyrus/updates/nightly/${papyrus.eclipse.target}</papyrus.repo.main>
- </properties>
- <repositories>
- <repository>
+ <module>../extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipse.profile</module>
+ <module>../extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant</module>
+ <module>../extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.table</module>
+ <module>../extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool</module>
+ <module>../extraplugins/adl4eclipse/org.eclipse.papyrus.osgi.profile</module>
+ <!-- Missing org.eclipse.xtext.gmf.glue 0.8.0' <module>../extraplugins/alf/org.eclipse.papyrus.operation.editor.xtext.ui</module>
+ <module>../extraplugins/alf/org.eclipse.papyrus.operation.editor.xtext</module>-->
+
+ <module>../extraplugins/design/org.eclipse.papyrus.design.profile.architecture</module>
+ <module>../extraplugins/design/org.eclipse.papyrus.design.profile.architecture.edit</module>
+ <module>../extraplugins/design/org.eclipse.papyrus.design.profile.architecture.editor</module>
+
+ <module>../extraplugins/diagram-definition/org.eclipse.papyrus.dd.edit</module>
+ <module>../extraplugins/diagram-definition/org.eclipse.papyrus.dd.editor</module>
+ <module>../extraplugins/diagram-definition/org.eclipse.papyrus.dd.qvt</module>
+ <module>../extraplugins/diagram-definition/org.eclipse.papyrus.dd</module>
+ <module>../extraplugins/diagram-definition/org.eclipse.papyrus.notation.export</module>
+ <!-- Compilation failure <module>../extraplugins/diagram-definition/org.eclipse.papyrus.notation.qvt</module> -->
+ <module>../extraplugins/diagram-definition/org.eclipse.papyrus.notation2umldi</module>
+ <module>../extraplugins/diagram-definition/org.eclipse.papyrus.umldi.edit</module>
+ <module>../extraplugins/diagram-definition/org.eclipse.papyrus.umldi.editor</module>
+ <module>../extraplugins/diagram-definition/org.eclipse.papyrus.umldi</module>
+ <module>../extraplugins/diagram-definition/org.eclipse.papyrus.umldi2dg</module>
+ <module>../extraplugins/facade/org.eclipse.papyrus.facade.codegen</module>
+ <module>../extraplugins/facade/org.eclipse.papyrus.facade.definition.editor</module>
+ <module>../extraplugins/facade/org.eclipse.papyrus.facade.edit</module>
+ <module>../extraplugins/facade/org.eclipse.papyrus.facade.editor</module>
+ <module>../extraplugins/facade/org.eclipse.papyrus.facade.utils</module>
+ <module>../extraplugins/facade/org.eclipse.papyrus.facade</module>
+ <module>../extraplugins/layout/org.eclipse.papyrus.layout</module>
+ <module>../extraplugins/layout/org.eclipse.papyrus.layout.algorithms.gridAlgorithm</module>
+ <module>../extraplugins/layout/org.eclipse.papyrus.layout.algorithms.horizontalAlgorithm</module>
+ <module>../extraplugins/layout/org.eclipse.papyrus.layout.algorithms.horizontalSymmetryAlgorithm</module>
+ <module>../extraplugins/layout/org.eclipse.papyrus.layout.algorithms.horizontalTreeAlgorithm</module>
+ <module>../extraplugins/layout/org.eclipse.papyrus.layout.algorithms.radialAlgorithm</module>
+ <module>../extraplugins/layout/org.eclipse.papyrus.layout.algorithms.springAlgorithm</module>
+ <module>../extraplugins/layout/org.eclipse.papyrus.layout.algorithms.treeAlgorithm</module>
+ <module>../extraplugins/layout/org.eclipse.papyrus.layout.algorithms.verticalAlgorithm</module>
+ <module>../extraplugins/layout/org.eclipse.papyrus.layout.algorithms.verticalSymmetryAlgorithm</module>
+ <module>../extraplugins/layout/org.eclipse.papyrus.layout.subeditor.gmf</module>
+
+ <module>../extraplugins/revision/org.eclipse.papyrus.revisiontool</module>
+ <module>../extraplugins/spem2/org.eclipse.papyrus.spem2.profile</module>
+
+ <!-- Papyrus Sysml 1.4 -->
+ <module>../extraplugins/sysml14/org.eclipse.papyrus.sysml14</module>
+ <module>../extraplugins/sysml14/org.eclipse.papyrus.sysml14.ui</module>
+ <module>../extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.common</module>
+ <module>../extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.blockdefinition</module>
+ <module>../extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.internalblock</module>
+ <module>../extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.parametric</module>
+ <module>../extraplugins/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement</module>
+ <module>../extraplugins/sysml14/org.eclipse.papyrus.sysml14.edit</module>
+ <module>../extraplugins/sysml14/org.eclipse.papyrus.sysml14.service.types</module>
+
+ <module>extras</module>
+ </modules>
+ <properties>
+ <tycho-version>0.22.0</tycho-version>
+ <tychoExtrasVersion>0.22.0</tychoExtrasVersion>
+ <xtext.version>2.7.3</xtext.version>
+ <java.source.version>1.6</java.source.version>
+ <java.target.version>1.6</java.target.version>
+ <papyrus.eclipse.target>mars</papyrus.eclipse.target>
+ <papyrus.repo.main>http://download.eclipse.org/modeling/mdt/papyrus/updates/nightly/${papyrus.eclipse.target}</papyrus.repo.main>
+ </properties>
+ <repositories>
+ <!-- <repository>
<id>org.eclipse.epf.richtext_1.5.1.6-update-site</id>
<layout>p2</layout>
<url>http://download.eclipse.org/modeling/mdt/papyrus/updates/epf/main</url>
- </repository>
- <repository>
- <id>papyrus-main</id>
- <layout>p2</layout>
- <url>${papyrus.repo.main}</url>
- </repository>
- <repository>
- <id>cdt</id>
- <layout>p2</layout>
- <!-- updateFrom("CDT",0) -->
- <url>http://download.eclipse.org/tools/cdt/builds/mars/milestones</url>
- </repository>
- <repository>
- <id>emft-emffacet</id>
- <layout>p2</layout>
- <!-- updateFrom("EMF Facet",0) -->
- <url>http://download.eclipse.org/facet/updates/integration/1.0.0/I201504210911/</url>
- </repository>
- <repository>
- <id>emf-cdo</id>
- <layout>p2</layout>
- <!-- updateFrom("EMF CDO",0) -->
- <url>http://download.eclipse.org/modeling/emf/cdo/updates/integration</url>
- </repository>
- <repository>
- <id>emf-compare</id>
- <layout>p2</layout>
- <!-- updateFrom("EMF COMPARE",0) -->
- <url>http://download.eclipse.org/modeling/emf/compare/updates/milestones/3.1/S201505051321</url>
- </repository>
- <repository>
- <id>emf-emf</id>
- <layout>p2</layout>
- <!-- updateFrom("EMF (Core)",0) -->
- <url>http://download.eclipse.org/modeling/emf/emf/updates/2.11milestones/</url>
- </repository>
- <repository>
- <id>emft-mwe[0]</id>
- <layout>p2</layout>
- <!-- updateFrom("EMFT MWE",0) -->
- <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505050723/mwe</url>
- </repository>
- <repository>
- <id>emft-mwe[1]</id>
- <layout>p2</layout>
- <!-- updateFrom("EMFT MWE",1) -->
- <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505050939/mwe2lang</url>
- </repository>
- <repository>
- <id>emf-query</id>
- <layout>p2</layout>
- <!-- updateFrom("EMF Query",0) -->
- <url>http://download.eclipse.org/modeling/emf/query/updates/milestones/S201505060133</url>
- </repository>
- <repository>
- <id>emf-transaction</id>
- <layout>p2</layout>
- <!-- updateFrom("EMF TRANSACTION",0) -->
- <url>http://download.eclipse.org/modeling/emf/transaction/updates/milestones/S201505060251</url>
- </repository>
- <repository>
- <id>emf-validation</id>
- <layout>p2</layout>
- <!-- updateFrom("EMF VALIDATION",0) -->
- <url>http://download.eclipse.org/modeling/emf/validation/updates/milestones/S201505060134/</url>
- </repository>
- <repository>
- <id>ep</id>
- <layout>p2</layout>
- <!-- updateFrom("Eclipse",0) -->
- <url>http://download.eclipse.org/eclipse/updates/4.5milestones/S-4.5M7-201504301445</url>
- </repository>
- <repository>
- <id>gef</id>
- <layout>p2</layout>
- <!-- updateFrom("GEF",0) -->
- <url>http://download.eclipse.org/tools/gef/updates/milestones</url>
- </repository>
- <repository>
- <id>gmp-gmf-notation</id>
- <layout>p2</layout>
- <!-- updateFrom("GMF Notation",0) -->
- <url>http://download.eclipse.org/modeling/gmp/gmf-notation/updates/milestones/S201505060039</url>
- </repository>
- <repository>
- <id>gmp-gmf-runtime</id>
- <layout>p2</layout>
- <!-- updateFrom("GMF Runtime",0) -->
- <url>http://download.eclipse.org/modeling/gmp/gmf-runtime/updates/milestones/S201505060429</url>
- </repository>
- <repository>
- <id>gmf-tooling</id>
- <layout>p2</layout>
- <!-- updateFrom("GMF Tooling",0) -->
- <url>http://download.eclipse.org/modeling/gmp/gmf-tooling/updates/milestones-3.3/M7</url>
- </repository>
- <repository>
- <id>m2t-acceleo</id>
- <layout>p2</layout>
- <!-- updateFrom("M2T ACCELEO",0) -->
- <url>http://download.eclipse.org/acceleo/updates/milestones/3.6/S201505040910</url>
- </repository>
- <repository>
- <id>m2t-xpand</id>
- <layout>p2</layout>
- <!-- updateFrom("M2T XPAND",0) -->
- <url>http://download.eclipse.org/modeling/m2t/xpand/updates/milestones/S201505051058/</url>
- </repository>
- <repository>
- <id>mdt-ocl</id>
- <layout>p2</layout>
- <!-- updateFrom("MDT OCL 6.0",0) -->
- <url>http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/6.0.0/S201505041438</url>
- </repository>
- <repository>
- <id>mdt-uml2</id>
- <layout>p2</layout>
- <!-- updateFrom("MDT UML2",0) -->
- <url>http://download.eclipse.org/modeling/mdt/uml2/updates/5.1milestones</url>
- </repository>
- <repository>
- <id>mmt-qvto</id>
- <layout>p2</layout>
- <!-- updateFrom("QVT Operational",0) -->
- <url>http://download.eclipse.org/mmt/qvto/updates/milestones/3.5.0/S201505050519</url>
- </repository>
- <repository>
- <id>nattable</id>
- <layout>p2</layout>
- <url>http://download.eclipse.org/nattable/releases/1.2.0/repository/</url>
- </repository>
- <repository>
- <id>orbit</id>
- <layout>p2</layout>
- <url>http://download.eclipse.org/tools/orbit/downloads/drops/R20150124073747/repository</url>
- </repository>
- <repository>
- <id>subversive</id>
- <layout>p2</layout>
- <!-- updateFrom("Subversive",0) -->
- <url>http://download.eclipse.org/technology/subversive/3.0/mars-site/</url>
- </repository>
- <repository>
- <id>tmf-xtext</id>
- <layout>p2</layout>
- <!-- updateFrom("Xtext, Xtend",0) -->
- <url>http://download.eclipse.org/modeling/tmf/xtext/updates/milestones/maintenance/S201505051043/</url>
- </repository>
- <repository>
- <id>webtools</id>
- <layout>p2</layout>
- <!-- updateFrom("WebTools",0) -->
- <url>http://download.eclipse.org/webtools/downloads/drops/R3.7.0/S-3.7.0M7-20150505000109/repository/</url>
- </repository>
- <repository>
- <id>XWT</id>
- <layout>p2</layout>
- <!-- updateFrom("XWT",0) -->
- <url>http://download.eclipse.org/xwt/release-1.1.0</url>
- </repository>
- <repository>
- <id>EEF</id>
- <layout>p2</layout>
- <url>http://download.eclipse.org/modeling/emft/eef/updates/releases/1.2/</url>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>org.eclipse.cbi.maven.plugins</id>
- <name>Eclipse CBI</name>
- <url>https://repo.eclipse.org/content/repositories/cbi-releases/</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </pluginRepository>
- </pluginRepositories>
- <build>
-
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.2</version>
- <configuration>
- <source>${java.source.version}</source>
- <target>${java.target.version}</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-clean-plugin</artifactId>
- <version>2.6</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>1.9.1</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.2.1</version>
- </plugin>
- <plugin>
- <groupId>org.eclipse.xtend</groupId>
- <artifactId>xtend-maven-plugin</artifactId>
- <version>${xtext.version}</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.6</version>
- <configuration>
- <encoding>UTF-8</encoding>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-compiler-plugin</artifactId>
- <version>${tycho-version}</version>
- <configuration>
- <optimize>true</optimize>
- <showWarnings>true</showWarnings>
- <!-- Tycho build using the project's JDT settings. -->
- <useProjectSettings>true</useProjectSettings>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-maven-plugin</artifactId>
- <version>${tycho-version}</version>
- <extensions>true</extensions>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>target-platform-configuration</artifactId>
- <version>${tycho-version}</version>
- <configuration>
- <environments>
- <environment>
- <os>win32</os>
- <ws>win32</ws>
- <arch>x86_64</arch>
- </environment>
- </environments>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
-
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-compiler-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>target-platform-configuration</artifactId>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-p2-repository-plugin</artifactId>
- <version>${tycho-version}</version>
- </plugin>
- <!-- Sources -->
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-source-plugin</artifactId>
- <version>${tycho-version}</version>
- <executions>
- <execution>
- <id>plugin-source</id>
- <goals>
- <goal>plugin-source</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho.extras</groupId>
- <artifactId>tycho-source-feature-plugin</artifactId>
- <version>${tychoExtrasVersion}</version>
- <executions>
- <execution>
- <id>source-feature</id>
- <phase>package</phase>
- <goals>
- <goal>source-feature</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <version>2.9</version>
- <executions>
- <execution>
- <id>purge-local-dependencies</id>
- <phase>process-sources</phase>
- <goals>
- <goal>purge-local-repository</goal>
- </goals>
- <configuration>
- <includes>
- <include>org.eclipse.papyrus</include>
- </includes>
- <verbose>true</verbose>
- <resolutionFuzziness>groupId</resolutionFuzziness>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
-
- <profiles>
-
- <profile>
- <id>defaultProfile</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-p2-plugin</artifactId>
- <version>${tycho-version}</version>
- <executions>
- <execution>
- <id>attach-p2-metadata</id>
- <phase>package</phase>
- <goals>
- <goal>p2-metadata</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- </profile>
-
- <profile>
- <id>packAndSign</id> <!-- Stable release profile. Takes +30min. Eclipse servers only -->
- <!-- Pack200 -->
- <build>
- <plugins>
- <plugin>
- <groupId>org.eclipse.tycho.extras</groupId>
- <artifactId>tycho-pack200a-plugin</artifactId>
- <version>${tychoExtrasVersion}</version>
- <executions>
- <execution>
- <id>pack200-normalize</id>
- <goals>
- <goal>normalize</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.eclipse.cbi.maven.plugins</groupId>
- <artifactId>eclipse-jarsigner-plugin</artifactId>
- <version>1.0.5</version>
- <executions>
- <execution>
- <id>sign</id>
- <goals>
- <goal>sign</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho.extras</groupId>
- <artifactId>tycho-pack200b-plugin</artifactId>
- <version>${tychoExtrasVersion}</version>
- <executions>
- <execution>
- <id>pack200-pack</id>
- <goals>
- <goal>pack</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-p2-plugin</artifactId>
- <version>${tycho-version}</version>
- <executions>
- <execution>
- <id>attach-p2-metadata</id>
- <phase>package</phase>
- <goals>
- <goal>p2-metadata</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <defaultP2Metadata>false</defaultP2Metadata>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <activation>
- <property>
- <name>SIGN</name>
- <value>true</value>
- </property>
- </activation>
- </profile>
-
-
- <profile>
- <id>pack</id> <!-- Nightly profile. Artifacts can be consumed, but are not signed -->
- <build>
- <plugins>
- <!-- Pack200 -->
- <plugin>
- <groupId>org.eclipse.tycho.extras</groupId>
- <artifactId>tycho-pack200b-plugin</artifactId>
- <version>${tychoExtrasVersion}</version>
- <executions>
- <execution>
- <id>pack200-pack</id>
- <goals>
- <goal>pack</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-p2-plugin</artifactId>
- <version>${tycho-version}</version>
- <executions>
- <execution>
- <id>attach-p2-metadata</id>
- <phase>package</phase>
- <goals>
- <goal>p2-metadata</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <defaultP2Metadata>false</defaultP2Metadata>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <activation>
- <property>
- <name>SIGN</name>
- <value>false</value>
- </property>
- </activation>
- </profile>
-
- <!-- profile dedicated to activate the repository linked to nightly artifacts, useful for daily life of developers -->
- <profile>
- <id>nightly</id>
- <repositories>
- <repository>
- <id>papyrus</id>
- <layout>p2</layout>
- <url>${papyrus.repo.main}</url>
- <releases>
- <enabled>true</enabled>
- <updatePolicy>daily</updatePolicy>
- <checksumPolicy>warn</checksumPolicy>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>daily</updatePolicy>
- <checksumPolicy>fail</checksumPolicy>
- </snapshots>
- </repository>
- </repositories>
- <activation>
- <property>
- <name>env</name>
- <value>devnightly</value>
- </property>
- <activeByDefault>false</activeByDefault>
- </activation>
- </profile>
- </profiles>
-</project>
+ </repository>-->
+ <repository>
+ <id>papyrus-main</id>
+ <layout>p2</layout>
+ <url>${papyrus.repo.main}</url>
+ </repository>
+ <repository>
+ <id>cdt</id>
+ <layout>p2</layout>
+ <!-- updateFrom("CDT",0) -->
+ <url>http://download.eclipse.org/tools/cdt/builds/mars/milestones</url>
+ </repository>
+ <repository>
+ <id>emft-emffacet</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMF Facet",0) -->
+ <url>http://download.eclipse.org/facet/updates/integration/1.0.0/I201505181340/</url>
+ </repository>
+ <repository>
+ <id>emf-cdo</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMF CDO",0) -->
+ <url>http://download.eclipse.org/modeling/emf/cdo/drops/S20150520-0916</url>
+ </repository>
+ <repository>
+ <id>emf-compare</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMF COMPARE",0) -->
+ <url>http://download.eclipse.org/modeling/emf/compare/updates/milestones/3.1/S201505180755</url>
+ </repository>
+ <repository>
+ <id>emf-emf</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMF (Core)",0) -->
+ <url>http://download.eclipse.org/modeling/emf/emf/updates/2.11milestones/</url>
+ </repository>
+ <repository>
+ <id>emft-mwe[0]</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMFT MWE",0) -->
+ <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505190324/mwe</url>
+ </repository>
+ <repository>
+ <id>emft-mwe[1]</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMFT MWE",1) -->
+ <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505190428/mwe2lang</url>
+ </repository>
+ <repository>
+ <id>emf-query</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMF Query",0) -->
+ <url>http://download.eclipse.org/modeling/emf/query/updates/milestones/S201505060133</url>
+ </repository>
+ <repository>
+ <id>emf-transaction</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMF TRANSACTION",0) -->
+ <url>http://download.eclipse.org/modeling/emf/transaction/updates/milestones/S201505060251</url>
+ </repository>
+ <repository>
+ <id>emf-validation</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMF VALIDATION",0) -->
+ <url>http://download.eclipse.org/modeling/emf/validation/updates/milestones/S201505060134/</url>
+ </repository>
+ <repository>
+ <id>ep</id>
+ <layout>p2</layout>
+ <!-- updateFrom("Eclipse",0) -->
+ <url>http://download.eclipse.org/eclipse/updates/4.5milestones/S-4.5RC1-201505141000/</url>
+ </repository>
+ <repository>
+ <id>gef</id>
+ <layout>p2</layout>
+ <!-- updateFrom("GEF",0) -->
+ <url>http://download.eclipse.org/tools/gef/updates/milestones</url>
+ </repository>
+ <repository>
+ <id>gmp-gmf-notation</id>
+ <layout>p2</layout>
+ <!-- updateFrom("GMF Notation",0) -->
+ <url>http://download.eclipse.org/modeling/gmp/gmf-notation/updates/milestones/S201505060039</url>
+ </repository>
+ <repository>
+ <id>gmp-gmf-runtime</id>
+ <layout>p2</layout>
+ <!-- updateFrom("GMF Runtime",0) -->
+ <url>http://download.eclipse.org/modeling/gmp/gmf-runtime/updates/milestones/S201505060429</url>
+ </repository>
+ <repository>
+ <id>gmf-tooling</id>
+ <layout>p2</layout>
+ <!-- updateFrom("GMF Tooling",0) -->
+ <url>http://download.eclipse.org/modeling/gmp/gmf-tooling/updates/milestones-3.3/RC1</url>
+ </repository>
+ <repository>
+ <id>m2t-acceleo</id>
+ <layout>p2</layout>
+ <!-- updateFrom("M2T ACCELEO",0) -->
+ <url>http://download.eclipse.org/acceleo/updates/milestones/3.6/S201505131324</url>
+ </repository>
+ <repository>
+ <id>m2t-xpand</id>
+ <layout>p2</layout>
+ <!-- updateFrom("M2T XPAND",0) -->
+ <url>http://download.eclipse.org/modeling/m2t/xpand/updates/milestones/S201505190330/</url>
+ </repository>
+ <repository>
+ <id>mdt-ocl</id>
+ <layout>p2</layout>
+ <!-- updateFrom("MDT OCL 6.0",0) -->
+ <url>http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/6.0.0/S201505181553</url>
+ </repository>
+ <repository>
+ <id>mdt-uml2</id>
+ <layout>p2</layout>
+ <!-- updateFrom("MDT UML2",0) -->
+ <url>http://download.eclipse.org/modeling/mdt/uml2/updates/5.1milestones</url>
+ </repository>
+ <repository>
+ <id>mmt-qvto</id>
+ <layout>p2</layout>
+ <!-- updateFrom("QVT Operational",0) -->
+ <url>http://download.eclipse.org/mmt/qvto/updates/milestones/3.5.0/S201505190736</url>
+ </repository>
+ <repository>
+ <id>nattable</id>
+ <layout>p2</layout>
+ <url>http://download.eclipse.org/nattable/releases/1.2.0/repository/</url>
+ </repository>
+ <repository>
+ <id>orbit</id>
+ <layout>p2</layout>
+ <url>http://download.eclipse.org/tools/orbit/downloads/drops/R20150124073747/repository</url>
+ </repository>
+ <repository>
+ <id>subversive</id>
+ <layout>p2</layout>
+ <!-- updateFrom("Subversive",0) -->
+ <url>http://download.eclipse.org/technology/subversive/3.0/mars-site/</url>
+ </repository>
+ <repository>
+ <id>tmf-xtext</id>
+ <layout>p2</layout>
+ <!-- updateFrom("Xtext, Xtend",0) -->
+ <url>http://download.eclipse.org/modeling/tmf/xtext/updates/milestones/maintenance/S201505190403/</url>
+ </repository>
+ <repository>
+ <id>webtools</id>
+ <layout>p2</layout>
+ <!-- updateFrom("WebTools",0) -->
+ <url>http://download.eclipse.org/webtools/downloads/drops/R3.7.0/S-3.7.0RC1-20150519000109/repository/</url>
+ </repository>
+ <repository>
+ <id>XWT</id>
+ <layout>p2</layout>
+ <!-- updateFrom("XWT",0) -->
+ <url>http://download.eclipse.org/xwt/release-1.1.0</url>
+ </repository>
+ <repository>
+ <id>EEF</id>
+ <layout>p2</layout>
+ <url>http://download.eclipse.org/modeling/emft/eef/updates/releases/1.2/</url>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>org.eclipse.cbi.maven.plugins</id>
+ <name>Eclipse CBI</name>
+ <url>https://repo.eclipse.org/content/repositories/cbi-releases/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+ <build>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.2</version>
+ <configuration>
+ <source>${java.source.version}</source>
+ <target>${java.target.version}</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>2.6</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.9.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.xtend</groupId>
+ <artifactId>xtend-maven-plugin</artifactId>
+ <version>${xtext.version}</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.6</version>
+ <configuration>
+ <encoding>UTF-8</encoding>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-compiler-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <optimize>true</optimize>
+ <showWarnings>true</showWarnings>
+ <!-- Tycho build using the project's JDT settings. -->
+ <useProjectSettings>true</useProjectSettings>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-maven-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>target-platform-configuration</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <environments>
+ <environment>
+ <os>win32</os>
+ <ws>win32</ws>
+ <arch>x86_64</arch>
+ </environment>
+ </environments>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-compiler-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>target-platform-configuration</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-p2-repository-plugin</artifactId>
+ <version>${tycho-version}</version>
+ </plugin>
+ <!-- Sources -->
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-source-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <executions>
+ <execution>
+ <id>plugin-source</id>
+ <goals>
+ <goal>plugin-source</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho.extras</groupId>
+ <artifactId>tycho-source-feature-plugin</artifactId>
+ <version>${tychoExtrasVersion}</version>
+ <executions>
+ <execution>
+ <id>source-feature</id>
+ <phase>package</phase>
+ <goals>
+ <goal>source-feature</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.9</version>
+ <executions>
+ <execution>
+ <id>purge-local-dependencies</id>
+ <phase>process-sources</phase>
+ <goals>
+ <goal>purge-local-repository</goal>
+ </goals>
+ <configuration>
+ <includes>
+ <include>org.eclipse.papyrus</include>
+ </includes>
+ <verbose>true</verbose>
+ <resolutionFuzziness>groupId</resolutionFuzziness>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+
+ <profiles>
+
+ <profile>
+ <id>defaultProfile</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-p2-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <executions>
+ <execution>
+ <id>attach-p2-metadata</id>
+ <phase>package</phase>
+ <goals>
+ <goal>p2-metadata</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ </profile>
+
+ <profile>
+ <id>packAndSign</id> <!-- Stable release profile. Takes +30min. Eclipse servers only -->
+ <!-- Pack200 -->
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho.extras</groupId>
+ <artifactId>tycho-pack200a-plugin</artifactId>
+ <version>${tychoExtrasVersion}</version>
+ <executions>
+ <execution>
+ <id>pack200-normalize</id>
+ <goals>
+ <goal>normalize</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.cbi.maven.plugins</groupId>
+ <artifactId>eclipse-jarsigner-plugin</artifactId>
+ <version>1.0.5</version>
+ <executions>
+ <execution>
+ <id>sign</id>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho.extras</groupId>
+ <artifactId>tycho-pack200b-plugin</artifactId>
+ <version>${tychoExtrasVersion}</version>
+ <executions>
+ <execution>
+ <id>pack200-pack</id>
+ <goals>
+ <goal>pack</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-p2-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <executions>
+ <execution>
+ <id>attach-p2-metadata</id>
+ <phase>package</phase>
+ <goals>
+ <goal>p2-metadata</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <defaultP2Metadata>false</defaultP2Metadata>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <activation>
+ <property>
+ <name>SIGN</name>
+ <value>true</value>
+ </property>
+ </activation>
+ </profile>
+
+
+ <profile>
+ <id>pack</id> <!-- Nightly profile. Artifacts can be consumed, but are not signed -->
+ <build>
+ <plugins>
+ <!-- Pack200 -->
+ <plugin>
+ <groupId>org.eclipse.tycho.extras</groupId>
+ <artifactId>tycho-pack200b-plugin</artifactId>
+ <version>${tychoExtrasVersion}</version>
+ <executions>
+ <execution>
+ <id>pack200-pack</id>
+ <goals>
+ <goal>pack</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-p2-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <executions>
+ <execution>
+ <id>attach-p2-metadata</id>
+ <phase>package</phase>
+ <goals>
+ <goal>p2-metadata</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <defaultP2Metadata>false</defaultP2Metadata>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <activation>
+ <property>
+ <name>SIGN</name>
+ <value>false</value>
+ </property>
+ </activation>
+ </profile>
+
+ <!-- profile dedicated to activate the repository linked to nightly artifacts, useful for daily life of developers -->
+ <profile>
+ <id>nightly</id>
+ <repositories>
+ <repository>
+ <id>papyrus</id>
+ <layout>p2</layout>
+ <url>${papyrus.repo.main}</url>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>daily</updatePolicy>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>daily</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ </repository>
+ </repositories>
+ <activation>
+ <property>
+ <name>env</name>
+ <value>devnightly</value>
+ </property>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ </profile>
+ </profiles>
+</project>
diff --git a/releng/top-pom-main-tests.xml b/releng/top-pom-main-tests.xml
index 049954e3942..326c246b97f 100644..100755
--- a/releng/top-pom-main-tests.xml
+++ b/releng/top-pom-main-tests.xml
@@ -125,7 +125,7 @@
<id>emf-compare</id>
<layout>p2</layout>
<!-- updateFrom("EMF COMPARE",0) -->
- <url>http://download.eclipse.org/modeling/emf/compare/updates/milestones/3.1/S201505051321</url>
+ <url>http://download.eclipse.org/modeling/emf/compare/updates/milestones/3.1/S201505180755</url>
</repository>
<repository>
<id>emf-emf</id>
@@ -137,13 +137,13 @@
<id>emft-mwe[0]</id>
<layout>p2</layout>
<!-- updateFrom("EMFT MWE",0) -->
- <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505050723/mwe</url>
+ <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505190324/mwe</url>
</repository>
<repository>
<id>emft-mwe[1]</id>
<layout>p2</layout>
<!-- updateFrom("EMFT MWE",1) -->
- <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505050939/mwe2lang</url>
+ <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505190428/mwe2lang</url>
</repository>
<repository>
<id>emf-transaction</id>
@@ -161,7 +161,7 @@
<id>ep</id>
<layout>p2</layout>
<!-- updateFrom("Eclipse",0) -->
- <url>http://download.eclipse.org/eclipse/updates/4.5milestones/S-4.5M7-201504301445</url>
+ <url>http://download.eclipse.org/eclipse/updates/4.5milestones/S-4.5RC1-201505141000/</url>
</repository>
<repository>
<id>gef</id>
@@ -185,25 +185,25 @@
<id>gmf-tooling</id>
<layout>p2</layout>
<!-- updateFrom("GMF Tooling",0) -->
- <url>http://download.eclipse.org/modeling/gmp/gmf-tooling/updates/milestones-3.3/M7</url>
+ <url>http://download.eclipse.org/modeling/gmp/gmf-tooling/updates/milestones-3.3/RC1</url>
</repository>
<repository>
<id>m2t-acceleo</id>
<layout>p2</layout>
<!-- updateFrom("M2T ACCELEO",0) -->
- <url>http://download.eclipse.org/acceleo/updates/milestones/3.6/S201505040910</url>
+ <url>http://download.eclipse.org/acceleo/updates/milestones/3.6/S201505131324</url>
</repository>
<repository>
<id>m2t-xpand</id>
<layout>p2</layout>
<!-- updateFrom("M2T XPAND",0) -->
- <url>http://download.eclipse.org/modeling/m2t/xpand/updates/milestones/S201505051058/</url>
+ <url>http://download.eclipse.org/modeling/m2t/xpand/updates/milestones/S201505190330/</url>
</repository>
<repository>
<id>mdt-ocl</id>
<layout>p2</layout>
<!-- updateFrom("MDT OCL 6.0",0) -->
- <url>http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/6.0.0/S201505041438</url>
+ <url>http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/6.0.0/S201505181553</url>
</repository>
<repository>
<id>mdt-uml2</id>
@@ -215,7 +215,7 @@
<id>mmt-qvto</id>
<layout>p2</layout>
<!-- updateFrom("QVT Operational",0) -->
- <url>http://download.eclipse.org/mmt/qvto/updates/milestones/3.5.0/S201505050519</url>
+ <url>http://download.eclipse.org/mmt/qvto/updates/milestones/3.5.0/S201505190736</url>
</repository>
<repository>
<id>nattable</id>
@@ -237,7 +237,7 @@
<id>tmf-xtext</id>
<layout>p2</layout>
<!-- updateFrom("Xtext, Xtend",0) -->
- <url>http://download.eclipse.org/modeling/tmf/xtext/updates/milestones/maintenance/S201505051043/</url>
+ <url>http://download.eclipse.org/modeling/tmf/xtext/updates/milestones/maintenance/S201505190403/</url>
</repository>
<repository>
<id>swtbot</id>
@@ -248,7 +248,7 @@
<id>webtools</id>
<layout>p2</layout>
<!-- updateFrom("WebTools",0) -->
- <url>http://download.eclipse.org/webtools/downloads/drops/R3.7.0/S-3.7.0M7-20150505000109/repository/</url>
+ <url>http://download.eclipse.org/webtools/downloads/drops/R3.7.0/S-3.7.0RC1-20150519000109/repository/</url>
</repository>
<repository>
<id>XWT</id>
diff --git a/releng/top-pom-main.xml b/releng/top-pom-main.xml
index 230978f6217..91a0a71288d 100644..100755
--- a/releng/top-pom-main.xml
+++ b/releng/top-pom-main.xml
@@ -1,887 +1,887 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<project>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.eclipse.papyrus</groupId>
- <artifactId>org.eclipse.papyrus</artifactId>
- <version>1.1.0-SNAPSHOT</version>
- <packaging>pom</packaging>
- <modules>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.customization.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.doc.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.editor.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.emf.facet.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.core.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.discovery.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.emf.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.gmfdiag.css.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.gmfdiag.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.nattable.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.services.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.viewpoints.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.widget.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.sdk.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.sysml.diagram.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.sysml.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.sysml.modelexplorer.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.sysml.nattable.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.sysml.properties.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.alf.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.assistants.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.decoratormodel.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.diagram.css.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.diagram.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.modelexplorer.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.nattable.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.properties.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.search.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.textedit.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.tools.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.xtext.integration.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.views.modelexplorer.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.views.properties.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.views.search.feature</module>
- <module>../features/papyrus-main-features/org.eclipse.papyrus.views.validation.feature</module>
- <module>../plugins/doc</module>
- <module>../plugins/customization/org.eclipse.papyrus.customization.palette</module>
- <module>../plugins/customization/org.eclipse.papyrus.customization.paletteconfiguration</module>
- <module>../plugins/customization/org.eclipse.papyrus.customization.properties</module>
- <module>../plugins/customization/org.eclipse.papyrus.customization.properties.generation</module>
- <module>../plugins/customization/org.eclipse.papyrus.customization.properties.model.xwt</module>
- <module>../plugins/editor/org.eclipse.papyrus.editor</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.aggregate.doc</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.common.core</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.common.sdk.core</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.common.ui</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.custom.core</module>
- <module>../plugins/facet/editor/org.eclipse.papyrus.emf.facet.custom.doc</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit</module>
- <module>../plugins/facet/editor/org.eclipse.papyrus.emf.facet.custom.metamodel.editor.doc</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui</module>
- <module>../plugins/facet/editor/org.eclipse.papyrus.emf.facet.doc</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet.catalog</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet.core</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet.doc</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet.edit</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet.editor</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel.edit</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet.sdk.ui</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.query.java</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.query.java.core</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.query.java.metamodel</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.query.java.sdk.ui</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.core</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.sdk.ui</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.util.core</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.catalog</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.core</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.doc</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.ui</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.util.jface.ui</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.util.pde.core</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.util.swt</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.util.ui</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.widgets</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.widgets.celleditors</module>
- <module>../plugins/facet/org.eclipse.papyrus.emf.facet.widgets.celleditors.ecore</module>
- <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.extensionpoints.editors</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.ui</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.constraints</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.constraints.edit</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.constraints.editor</module>
- <module>../plugins/infra/core/org.eclipse.papyrus.infra.core</module>
- <module>../plugins/infra/core/org.eclipse.papyrus.infra.core.log</module>
- <module>../plugins/infra/core/org.eclipse.papyrus.infra.core.pluginexplorer</module>
- <module>../plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor</module>
- <module>../plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor.di</module>
- <module>../plugins/infra/discovery/org.eclipse.papyrus.infra.discovery</module>
- <module>../plugins/infra/discovery/org.eclipse.papyrus.infra.discovery.ui</module>
- <module>../plugins/infra/discovery/org.eclipse.papyrus.infra.discovery.ui.menu</module>
- <module>../plugins/infra/emf/org.eclipse.papyrus.infra.emf</module>
- <module>../plugins/infra/emf/org.eclipse.papyrus.infra.emf.appearance</module>
- <module>../plugins/infra/emf/org.eclipse.papyrus.infra.emf.diagram.common</module>
- <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.emf.nattable</module>
- <module>../plugins/infra/emf/org.eclipse.papyrus.infra.emf.readonly</module>
- <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.export</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.extendedtypes</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.extendedtypes.edit</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.extendedtypes.emf</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.filters</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.filters.edit</module>
- <module>../plugins/uml/tools/org.eclipse.papyrus.uml.tools.elementtypesconfigurations</module>
- <module>../plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant</module>
- <module>../plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.edit</module>
- <module>../plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.editor</module>
- <module>../plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.ui</module>
- <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.commands</module>
- <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common</module>
- <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.controlmode</module>
- <module>../plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css</module>
- <module>../plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.configuration</module>
- <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.model</module>
- <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.palette</module>
- <module>../plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties</module>
- <module>../plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.theme</module>
- <module>../plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext</module>
- <module>../plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext.ui</module>
- <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical</module>
- <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.dnd</module>
- <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.gmfmenu.filter</module>
- <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.hyperlink</module>
- <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.menu</module>
- <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.modelexplorer</module>
- <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.navigation</module>
- <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.outline</module>
- <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.preferences</module>
- <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.properties</module>
- <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.viewersearcher</module>
- <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.widgets</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.hyperlink</module>
- <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable</module>
- <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common</module>
- <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.controlmode</module>
- <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.model</module>
- <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.model.edit</module>
- <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.model.editor</module>
- <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.modelexplorer</module>
- <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.properties</module>
- <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.views.config</module>
- <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.views.editor</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.newchild</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.newchild.edit</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.onefile</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.psf</module>
- <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.controlmode</module>
- <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.controlmode.history</module>
- <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.decoration</module>
- <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.edit</module>
- <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.labelprovider</module>
- <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.localizer</module>
- <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.markerlistener</module>
- <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.navigation</module>
- <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.openelement</module>
- <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.resourceloading</module>
- <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.resourceloading.preferences</module>
- <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.semantic</module>
- <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.validation</module>
- <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.viewersearch</module>
- <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.viewlabelprovider</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.sync</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.tools</module>
- <module>../plugins/infra/org.eclipse.papyrus.infra.ui.resources</module>
- <module>../plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.configuration</module>
- <module>../plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.configuration.edit</module>
- <module>../plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.configuration.editor</module>
- <module>../plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.iso42010</module>
- <module>../plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.iso42010.edit</module>
- <module>../plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy</module>
- <module>../plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.preferences</module>
- <module>../plugins/infra/widget/org.eclipse.papyrus.infra.widgets</module>
- <module>../plugins/infra/widget/org.eclipse.papyrus.infra.widgets.toolbox</module>
- <module>../plugins/sysml/org.eclipse.papyrus.sysml</module>
- <module>../plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition</module>
- <module>../plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common</module>
- <module>../plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.css</module>
- <module>../plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock</module>
- <module>../plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.parametric</module>
- <module>../plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.requirement</module>
- <module>../plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui</module>
- <module>../plugins/sysml/org.eclipse.papyrus.sysml.edit</module>
- <module>../plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer</module>
- <module>../plugins/sysml/nattable/org.eclipse.papyrus.sysml.nattable</module>
- <module>../plugins/sysml/nattable/org.eclipse.papyrus.sysml.nattable.allocation</module>
- <module>../plugins/sysml/nattable/org.eclipse.papyrus.sysml.nattable.allocation.config</module>
- <module>../plugins/sysml/nattable/org.eclipse.papyrus.sysml.nattable.menu</module>
- <module>../plugins/sysml/nattable/org.eclipse.papyrus.sysml.nattable.requirement</module>
- <module>../plugins/sysml/nattable/org.eclipse.papyrus.sysml.nattable.requirement.config</module>
- <module>../plugins/sysml/properties/org.eclipse.papyrus.sysml.properties</module>
- <module>../plugins/sysml/org.eclipse.papyrus.sysml.service.types</module>
-
- <!-- ALF core plugins -->
- <module>../plugins/uml/alf/org.eclipse.papyrus.uml.alf.libraries</module>
- <module>../plugins/uml/alf/org.eclipse.papyrus.uml.alf.to.fuml</module>
- <module>../plugins/uml/alf/org.eclipse.papyrus.uml.alf</module>
- <module>../plugins/uml/alf/org.eclipse.papyrus.uml.alf.ui</module>
-
- <!-- ALF deprecated plugins -->
- <module>../plugins/uml/alf/org.eclipse.papyrus.uml.alf.common</module>
- <module>../plugins/uml/alf/org.eclipse.papyrus.uml.alf.common.ui</module>
-
- <module>../plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator</module>
- <module>../plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.ui</module>
- <module>../plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator</module>
- <module>../plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui</module>
- <module>../plugins/uml/newchild/org.eclipse.papyrus.uml.profile.newchildmenu.generator</module>
- <module>../plugins/uml/newchild/org.eclipse.papyrus.uml.profile.newchildmenu.generator.ui</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.appearance</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.commands</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.controlmode.profile</module>
- <module>../plugins/uml/decoratormodel/org.eclipse.papyrus.uml.decoratormodel</module>
- <module>../plugins/uml/decoratormodel/org.eclipse.papyrus.uml.decoratormodel.controlmode</module>
- <module>../plugins/uml/decoratormodel/org.eclipse.papyrus.uml.decoratormodel.properties</module>
- <module>../plugins/uml/decoratormodel/org.eclipse.papyrus.uml.decoratormodel.ui</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common.groups</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common.palette.customaction</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.dnd</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.icons</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.menu</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.modelexplorer</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.navigation</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration.edit</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotype.edition</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols.properties</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.timing</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase</module>
- <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.documentation.profile</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.extensionpoints</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.filters</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.filters.edit</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.icons</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.import</module>
- <module>../plugins/uml/modelexplorer/org.eclipse.papyrus.uml.modelexplorer</module>
- <module>../plugins/uml/modelexplorer/org.eclipse.papyrus.uml.modelexplorer.widgets</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.modelrepair</module>
- <module>../plugins/uml/nattable/org.eclipse.papyrus.uml.nattable</module>
- <module>../plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic</module>
- <module>../plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.config</module>
- <module>../plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config</module>
- <module>../plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.menu</module>
- <module>../plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.xtext.integration</module>
- <module>../plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.xtext.valuespecification</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.navigation</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.oclconstraintevaluation</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.perspective</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.profile</module>
- <module>../plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter</module>
- <module>../plugins/uml/properties/org.eclipse.papyrus.uml.properties</module>
- <module>../plugins/uml/properties/org.eclipse.papyrus.uml.properties.xtext</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.resourceloading.profile</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.search.ui</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.service.types</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.service.validation</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.services.decoration</module>
- <module>../plugins/uml/org.eclipse.papyrus.uml.templaterepository</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.ui</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext.ui</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.constraintwithessentialocl.xtext</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.javaconstraint</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext.ui</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext.ui</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext.ui</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.ui</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext.ui</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext.utils</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.transition.xtext</module>
- <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.transition.xtext.ui</module>
- <module>../plugins/uml/tools/org.eclipse.papyrus.uml.tools</module>
- <module>../plugins/uml/tools/org.eclipse.papyrus.uml.tools.extendedtypes</module>
- <module>../plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils</module>
- <module>../plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.core</module>
- <module>../plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.ui</module>
- <module>../plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.validation</module>
- <module>../plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer</module>
- <module>../plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer.newchild</module>
- <module>../plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer.resourceloading</module>
- <module>../plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer.widgets</module>
- <module>../plugins/views/properties/org.eclipse.papyrus.views.properties</module>
- <module>../plugins/views/properties/org.eclipse.papyrus.views.properties.model</module>
- <module>../plugins/views/properties/org.eclipse.papyrus.views.properties.model.edit</module>
- <module>../plugins/views/properties/org.eclipse.papyrus.views.properties.model.editor</module>
- <module>../plugins/views/org.eclipse.papyrus.views.search</module>
- <module>../plugins/views/validation/org.eclipse.papyrus.views.validation</module>
- <module>../plugins/team/org.eclipse.papyrus.team.svn</module>
- <module>main</module>
- <!-- Papyrus examples -->
- <module>../examples/core/org.eclipse.papyrus.example.core.lifecycleevents</module>
- <module>../examples/core/org.eclipse.papyrus.example.core.sashwindows.fulleditor</module>
- <module>../examples/core/org.eclipse.papyrus.example.core.sashwindows.simpleeditor</module>
- <module>../examples/infra/org.eclipse.papyrus.example.infra.servicesregistry.retrieval</module>
- <module>../examples/org.eclipse.papyrus.example.text.instance</module>
- <module>../examples/org.eclipse.papyrus.example.uml.comment.editor.newresource</module>
- <module>../examples/org.eclipse.papyrus.example.uml.comment.editor.sharedresource</module>
- <module>../examples/infra/org.eclipse.papyrus.infra.gmfdiag.connectionpoint.preferences</module>
- <module>../examples/emf/org.eclipse.papyrus.outline.emftree</module>
- <module>../examples/uml/org.eclipse.papyrus.thousandcreation</module>
- <module>../examples/uml/org.eclipse.papyrus.uml.diagram.example.programmaticcreation</module>
- <module>../examples/uml/org.eclipse.papyrus.uml.textual.editors.example</module>
-
-
- </modules>
- <properties>
- <tycho-version>0.22.0</tycho-version>
- <tychoExtrasVersion>0.22.0</tychoExtrasVersion>
- <findbugs.version>2.5.3</findbugs.version>
- <xtext.version>2.7.3</xtext.version>
- <java.source.version>1.6</java.source.version>
- <java.target.version>1.6</java.target.version>
- <papyrus.eclipse.target>mars</papyrus.eclipse.target>
- <mylyn.wikitext.version>2.4.0-SNAPSHOT</mylyn.wikitext.version>
- </properties>
- <repositories>
- <repository>
- <id>emf-emf</id>
- <layout>p2</layout>
- <!-- updateFrom("EMF (Core)",0) -->
- <url>http://download.eclipse.org/modeling/emf/emf/updates/2.11milestones/</url>
- </repository>
- <repository>
- <id>emft-mwe[0]</id>
- <layout>p2</layout>
- <!-- updateFrom("EMFT MWE",0) -->
- <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505050723/mwe</url>
- </repository>
- <repository>
- <id>emft-mwe[1]</id>
- <layout>p2</layout>
- <!-- updateFrom("EMFT MWE",1) -->
- <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505050939/mwe2lang</url>
- </repository>
- <repository>
- <id>emf-transaction</id>
- <layout>p2</layout>
- <!-- updateFrom("EMF TRANSACTION",0) -->
- <url>http://download.eclipse.org/modeling/emf/transaction/updates/milestones/S201505060251</url>
- </repository>
- <repository>
- <id>emf-validation</id>
- <layout>p2</layout>
- <!-- updateFrom("EMF VALIDATION",0) -->
- <url>http://download.eclipse.org/modeling/emf/validation/updates/milestones/S201505060134/</url>
- </repository>
- <repository>
- <id>ep</id>
- <layout>p2</layout>
- <!-- updateFrom("Eclipse",0) -->
- <url>http://download.eclipse.org/eclipse/updates/4.5milestones/S-4.5M7-201504301445</url>
- </repository>
- <repository>
- <id>gef</id>
- <layout>p2</layout>
- <!-- updateFrom("GEF",0) -->
- <url>http://download.eclipse.org/tools/gef/updates/milestones</url>
- </repository>
- <repository>
- <id>gmp-gmf-notation</id>
- <layout>p2</layout>
- <!-- updateFrom("GMF Notation",0) -->
- <url>http://download.eclipse.org/modeling/gmp/gmf-notation/updates/milestones/S201505060039</url>
- </repository>
- <repository>
- <id>gmp-gmf-runtime</id>
- <layout>p2</layout>
- <!-- updateFrom("GMF Runtime",0) -->
- <url>http://download.eclipse.org/modeling/gmp/gmf-runtime/updates/milestones/S201505060429</url>
- </repository>
- <repository>
- <id>gmf-tooling</id>
- <layout>p2</layout>
- <!-- updateFrom("GMF Tooling",0) -->
- <url>http://download.eclipse.org/modeling/gmp/gmf-tooling/updates/milestones-3.3/M7</url>
- </repository>
- <repository>
- <id>m2t-xpand</id>
- <layout>p2</layout>
- <!-- updateFrom("M2T XPAND",0) -->
- <url>http://download.eclipse.org/modeling/m2t/xpand/updates/milestones/S201505051058/</url>
- </repository>
- <repository>
- <id>mdt-ocl</id>
- <layout>p2</layout>
- <!-- updateFrom("MDT OCL 6.0",0) -->
- <url>http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/6.0.0/S201505041438</url>
- </repository>
- <repository>
- <id>mdt-uml2</id>
- <layout>p2</layout>
- <!-- updateFrom("MDT UML2",0) -->
- <url>http://download.eclipse.org/modeling/mdt/uml2/updates/5.1milestones</url>
- </repository>
- <repository>
- <id>mmt-qvto</id>
- <layout>p2</layout>
- <!-- updateFrom("QVT Operational",0) -->
- <url>http://download.eclipse.org/mmt/qvto/updates/milestones/3.5.0/S201505050519</url>
- </repository>
- <repository>
- <id>nattable</id>
- <layout>p2</layout>
- <url>http://download.eclipse.org/nattable/releases/1.2.0/repository/</url>
- </repository>
- <repository>
- <id>nebula-tablecombo</id>
- <layout>p2</layout>
- <url>http://download.eclipse.org/technology/nebula/archives/Q12015/release/</url>
- </repository>
- <repository>
- <id>orbit</id>
- <layout>p2</layout>
- <url>http://download.eclipse.org/tools/orbit/downloads/drops/R20150124073747/repository</url>
- </repository>
- <repository>
- <id>tmf-xtext</id>
- <layout>p2</layout>
- <!-- updateFrom("Xtext, Xtend",0) -->
- <url>http://download.eclipse.org/modeling/tmf/xtext/updates/milestones/maintenance/S201505051043/</url>
- </repository>
- <repository>
- <id>webtools</id>
- <layout>p2</layout>
- <!-- updateFrom("WebTools",0) -->
- <url>http://download.eclipse.org/webtools/downloads/drops/R3.7.0/S-3.7.0M7-20150505000109/repository/</url>
- </repository>
- <repository>
- <id>XWT</id>
- <layout>p2</layout>
- <!-- updateFrom("XWT",0) -->
- <url>http://download.eclipse.org/xwt/release-1.1.0</url>
- </repository>
- <repository>
- <id>subversive</id>
- <layout>p2</layout>
- <!-- updateFrom("Subversive",0) -->
- <url>http://download.eclipse.org/technology/subversive/3.0/mars-site/</url>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>org.eclipse.cbi.maven.plugins</id>
- <name>Eclipse CBI</name>
- <url>https://repo.eclipse.org/content/repositories/cbi-releases/</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </pluginRepository>
- <pluginRepository>
- <id>eclipse.org-mylyn</id>
- <!-- url>https://repo.eclipse.org/content/repositories/mylyn-releases/</url -->
- <url>https://repo.eclipse.org/content/repositories/mylyn/</url>
- </pluginRepository>
- </pluginRepositories>
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.2</version>
- <configuration>
- <source>${java.source.version}</source>
- <target>${java.target.version}</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-clean-plugin</artifactId>
- <version>2.6</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>1.9.1</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.2.1</version>
- </plugin>
- <plugin>
- <groupId>org.eclipse.xtend</groupId>
- <artifactId>xtend-maven-plugin</artifactId>
- <version>${xtext.version}</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.6</version>
- <configuration>
- <encoding>UTF-8</encoding>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-compiler-plugin</artifactId>
- <version>${tycho-version}</version>
- <configuration>
- <optimize>true</optimize>
- <showWarnings>true</showWarnings>
- <!-- Tycho build using the project's JDT settings. -->
- <useProjectSettings>true</useProjectSettings>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-maven-plugin</artifactId>
- <version>${tycho-version}</version>
- <extensions>true</extensions>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>target-platform-configuration</artifactId>
- <version>${tycho-version}</version>
- <configuration>
- <environments>
- <environment>
- <os>win32</os>
- <ws>win32</ws>
- <arch>x86_64</arch>
- </environment>
- </environments>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.eclipse.mylyn.docs</groupId>
- <artifactId>org.eclipse.mylyn.wikitext.core.maven</artifactId>
- <version>${mylyn.wikitext.version}</version>
- </plugin>
- <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
- <plugin>
- <groupId>org.eclipse.m2e</groupId>
- <artifactId>lifecycle-mapping</artifactId>
- <version>1.0.0</version>
- <configuration>
- <lifecycleMappingMetadata>
- <pluginExecutions>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>
- org.eclipse.mylyn.docs
- </groupId>
- <artifactId>
- org.eclipse.mylyn.wikitext.core.maven
- </artifactId>
- <versionRange>
- [2.4.0-SNAPSHOT,)
- </versionRange>
- <goals>
- <goal>eclipse-help</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <execute/>
- </action>
- </pluginExecution>
- </pluginExecutions>
- </lifecycleMappingMetadata>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-compiler-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>target-platform-configuration</artifactId>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-p2-repository-plugin</artifactId>
- <version>${tycho-version}</version>
- </plugin>
- <!-- Sources -->
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-source-plugin</artifactId>
- <version>${tycho-version}</version>
- <executions>
- <execution>
- <id>plugin-source</id>
- <goals>
- <goal>plugin-source</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho.extras</groupId>
- <artifactId>tycho-source-feature-plugin</artifactId>
- <version>${tychoExtrasVersion}</version>
- <executions>
- <execution>
- <id>source-feature</id>
- <phase>package</phase>
- <goals>
- <goal>source-feature</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.eclipse.papyrus</groupId>
+ <artifactId>org.eclipse.papyrus</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <modules>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.customization.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.doc.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.editor.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.emf.facet.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.core.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.discovery.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.emf.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.gmfdiag.css.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.gmfdiag.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.nattable.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.services.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.viewpoints.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.infra.widget.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.sdk.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.sysml.diagram.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.sysml.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.sysml.modelexplorer.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.sysml.nattable.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.sysml.properties.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.alf.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.assistants.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.decoratormodel.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.diagram.css.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.diagram.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.modelexplorer.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.nattable.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.properties.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.search.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.textedit.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.tools.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.uml.xtext.integration.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.views.modelexplorer.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.views.properties.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.views.search.feature</module>
+ <module>../features/papyrus-main-features/org.eclipse.papyrus.views.validation.feature</module>
+ <module>../plugins/doc</module>
+ <module>../plugins/customization/org.eclipse.papyrus.customization.palette</module>
+ <module>../plugins/customization/org.eclipse.papyrus.customization.paletteconfiguration</module>
+ <module>../plugins/customization/org.eclipse.papyrus.customization.properties</module>
+ <module>../plugins/customization/org.eclipse.papyrus.customization.properties.generation</module>
+ <module>../plugins/customization/org.eclipse.papyrus.customization.properties.model.xwt</module>
+ <module>../plugins/editor/org.eclipse.papyrus.editor</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.aggregate.doc</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.common.core</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.common.sdk.core</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.common.ui</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.custom.core</module>
+ <module>../plugins/facet/editor/org.eclipse.papyrus.emf.facet.custom.doc</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.custom.metamodel.edit</module>
+ <module>../plugins/facet/editor/org.eclipse.papyrus.emf.facet.custom.metamodel.editor.doc</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.core</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.custom.sdk.ui</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.custom.ui</module>
+ <module>../plugins/facet/editor/org.eclipse.papyrus.emf.facet.doc</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet.catalog</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet.core</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet.doc</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet.edit</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet.editor</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet.metamodel.edit</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet.sdk.ui</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.efacet.ui</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.query.java</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.query.java.core</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.query.java.metamodel</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.query.java.sdk.ui</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.core</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.metamodel</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.query.ocl.sdk.ui</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.util.core</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.catalog</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.core</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.doc</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.util.emf.ui</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.util.jface.ui</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.util.pde.core</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.util.swt</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.util.ui</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.widgets</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.widgets.celleditors</module>
+ <module>../plugins/facet/org.eclipse.papyrus.emf.facet.widgets.celleditors.ecore</module>
+ <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.extensionpoints.editors</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.ui</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.constraints</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.constraints.edit</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.constraints.editor</module>
+ <module>../plugins/infra/core/org.eclipse.papyrus.infra.core</module>
+ <module>../plugins/infra/core/org.eclipse.papyrus.infra.core.log</module>
+ <module>../plugins/infra/core/org.eclipse.papyrus.infra.core.pluginexplorer</module>
+ <module>../plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor</module>
+ <module>../plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor.di</module>
+ <module>../plugins/infra/discovery/org.eclipse.papyrus.infra.discovery</module>
+ <module>../plugins/infra/discovery/org.eclipse.papyrus.infra.discovery.ui</module>
+ <module>../plugins/infra/discovery/org.eclipse.papyrus.infra.discovery.ui.menu</module>
+ <module>../plugins/infra/emf/org.eclipse.papyrus.infra.emf</module>
+ <module>../plugins/infra/emf/org.eclipse.papyrus.infra.emf.appearance</module>
+ <module>../plugins/infra/emf/org.eclipse.papyrus.infra.emf.diagram.common</module>
+ <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.emf.nattable</module>
+ <module>../plugins/infra/emf/org.eclipse.papyrus.infra.emf.readonly</module>
+ <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.export</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.extendedtypes</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.extendedtypes.edit</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.extendedtypes.emf</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.edit</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.editor</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.emf</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.filters</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.filters.edit</module>
+ <module>../plugins/uml/tools/org.eclipse.papyrus.uml.tools.elementtypesconfigurations</module>
+ <module>../plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant</module>
+ <module>../plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.edit</module>
+ <module>../plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.editor</module>
+ <module>../plugins/infra/gmfdiag/assistant/org.eclipse.papyrus.infra.gmfdiag.assistant.ui</module>
+ <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.commands</module>
+ <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common</module>
+ <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.controlmode</module>
+ <module>../plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css</module>
+ <module>../plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.configuration</module>
+ <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.model</module>
+ <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.palette</module>
+ <module>../plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.properties</module>
+ <module>../plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.theme</module>
+ <module>../plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext</module>
+ <module>../plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css3.xtext.ui</module>
+ <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical</module>
+ <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.dnd</module>
+ <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.gmfmenu.filter</module>
+ <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.hyperlink</module>
+ <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.menu</module>
+ <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.modelexplorer</module>
+ <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.navigation</module>
+ <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.outline</module>
+ <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.preferences</module>
+ <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.properties</module>
+ <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.viewersearcher</module>
+ <module>../plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.widgets</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.hyperlink</module>
+ <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable</module>
+ <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.common</module>
+ <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.controlmode</module>
+ <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.model</module>
+ <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.model.edit</module>
+ <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.model.editor</module>
+ <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.modelexplorer</module>
+ <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.properties</module>
+ <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.views.config</module>
+ <module>../plugins/infra/nattable/org.eclipse.papyrus.infra.nattable.views.editor</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.newchild</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.newchild.edit</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.onefile</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.psf</module>
+ <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.controlmode</module>
+ <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.controlmode.history</module>
+ <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.decoration</module>
+ <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.edit</module>
+ <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.labelprovider</module>
+ <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.localizer</module>
+ <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.markerlistener</module>
+ <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.navigation</module>
+ <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.openelement</module>
+ <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.resourceloading</module>
+ <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.resourceloading.preferences</module>
+ <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.semantic</module>
+ <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.validation</module>
+ <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.viewersearch</module>
+ <module>../plugins/infra/services/org.eclipse.papyrus.infra.services.viewlabelprovider</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.sync</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.tools</module>
+ <module>../plugins/infra/org.eclipse.papyrus.infra.ui.resources</module>
+ <module>../plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.configuration</module>
+ <module>../plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.configuration.edit</module>
+ <module>../plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.configuration.editor</module>
+ <module>../plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.iso42010</module>
+ <module>../plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.iso42010.edit</module>
+ <module>../plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy</module>
+ <module>../plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.preferences</module>
+ <module>../plugins/infra/widget/org.eclipse.papyrus.infra.widgets</module>
+ <module>../plugins/infra/widget/org.eclipse.papyrus.infra.widgets.toolbox</module>
+ <module>../plugins/sysml/org.eclipse.papyrus.sysml</module>
+ <module>../plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition</module>
+ <module>../plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common</module>
+ <module>../plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.css</module>
+ <module>../plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock</module>
+ <module>../plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.parametric</module>
+ <module>../plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.requirement</module>
+ <module>../plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.ui</module>
+ <module>../plugins/sysml/org.eclipse.papyrus.sysml.edit</module>
+ <module>../plugins/sysml/modelexplorer/org.eclipse.papyrus.sysml.modelexplorer</module>
+ <module>../plugins/sysml/nattable/org.eclipse.papyrus.sysml.nattable</module>
+ <module>../plugins/sysml/nattable/org.eclipse.papyrus.sysml.nattable.allocation</module>
+ <module>../plugins/sysml/nattable/org.eclipse.papyrus.sysml.nattable.allocation.config</module>
+ <module>../plugins/sysml/nattable/org.eclipse.papyrus.sysml.nattable.menu</module>
+ <module>../plugins/sysml/nattable/org.eclipse.papyrus.sysml.nattable.requirement</module>
+ <module>../plugins/sysml/nattable/org.eclipse.papyrus.sysml.nattable.requirement.config</module>
+ <module>../plugins/sysml/properties/org.eclipse.papyrus.sysml.properties</module>
+ <module>../plugins/sysml/org.eclipse.papyrus.sysml.service.types</module>
+
+ <!-- ALF core plugins -->
+ <module>../plugins/uml/alf/org.eclipse.papyrus.uml.alf.libraries</module>
+ <module>../plugins/uml/alf/org.eclipse.papyrus.uml.alf.to.fuml</module>
+ <module>../plugins/uml/alf/org.eclipse.papyrus.uml.alf</module>
+ <module>../plugins/uml/alf/org.eclipse.papyrus.uml.alf.ui</module>
+
+ <!-- ALF deprecated plugins -->
+ <module>../plugins/uml/alf/org.eclipse.papyrus.uml.alf.common</module>
+ <module>../plugins/uml/alf/org.eclipse.papyrus.uml.alf.common.ui</module>
+
+ <module>../plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator</module>
+ <module>../plugins/uml/assistants/org.eclipse.papyrus.uml.profile.assistants.generator.ui</module>
+ <module>../plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator</module>
+ <module>../plugins/uml/assistants/org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui</module>
+ <module>../plugins/uml/newchild/org.eclipse.papyrus.uml.profile.newchildmenu.generator</module>
+ <module>../plugins/uml/newchild/org.eclipse.papyrus.uml.profile.newchildmenu.generator.ui</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.appearance</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.commands</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.controlmode.profile</module>
+ <module>../plugins/uml/decoratormodel/org.eclipse.papyrus.uml.decoratormodel</module>
+ <module>../plugins/uml/decoratormodel/org.eclipse.papyrus.uml.decoratormodel.controlmode</module>
+ <module>../plugins/uml/decoratormodel/org.eclipse.papyrus.uml.decoratormodel.properties</module>
+ <module>../plugins/uml/decoratormodel/org.eclipse.papyrus.uml.decoratormodel.ui</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common.groups</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common.palette.customaction</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.communication</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.composite</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.css</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.dnd</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.icons</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.menu</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.modelexplorer</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.navigation</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.paletteconfiguration.edit</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotype.edition</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.symbols.properties</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.timing</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.usecase</module>
+ <module>../plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.wizards</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.documentation.profile</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.extensionpoints</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.filters</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.filters.edit</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.icons</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.import</module>
+ <module>../plugins/uml/modelexplorer/org.eclipse.papyrus.uml.modelexplorer</module>
+ <module>../plugins/uml/modelexplorer/org.eclipse.papyrus.uml.modelexplorer.widgets</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.modelrepair</module>
+ <module>../plugins/uml/nattable/org.eclipse.papyrus.uml.nattable</module>
+ <module>../plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic</module>
+ <module>../plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.generic.config</module>
+ <module>../plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config</module>
+ <module>../plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.menu</module>
+ <module>../plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.xtext.integration</module>
+ <module>../plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.xtext.valuespecification</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.navigation</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.oclconstraintevaluation</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.perspective</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.profile</module>
+ <module>../plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter</module>
+ <module>../plugins/uml/properties/org.eclipse.papyrus.uml.properties</module>
+ <module>../plugins/uml/properties/org.eclipse.papyrus.uml.properties.xtext</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.resourceloading.profile</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.search.ui</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.service.types</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.service.validation</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.services.decoration</module>
+ <module>../plugins/uml/org.eclipse.papyrus.uml.templaterepository</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.ui</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.common.xtext.ui</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.constraintwithessentialocl.xtext</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.javaconstraint</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.message.xtext.ui</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.parameter.xtext.ui</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.xtext.ui</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.xtext.ui</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.state.xtext.ui</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.ui</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext.ui</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext.utils</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.transition.xtext</module>
+ <module>../plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.transition.xtext.ui</module>
+ <module>../plugins/uml/tools/org.eclipse.papyrus.uml.tools</module>
+ <module>../plugins/uml/tools/org.eclipse.papyrus.uml.tools.extendedtypes</module>
+ <module>../plugins/uml/tools/org.eclipse.papyrus.uml.tools.utils</module>
+ <module>../plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.core</module>
+ <module>../plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.ui</module>
+ <module>../plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.validation</module>
+ <module>../plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer</module>
+ <module>../plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer.newchild</module>
+ <module>../plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer.resourceloading</module>
+ <module>../plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer.widgets</module>
+ <module>../plugins/views/properties/org.eclipse.papyrus.views.properties</module>
+ <module>../plugins/views/properties/org.eclipse.papyrus.views.properties.model</module>
+ <module>../plugins/views/properties/org.eclipse.papyrus.views.properties.model.edit</module>
+ <module>../plugins/views/properties/org.eclipse.papyrus.views.properties.model.editor</module>
+ <module>../plugins/views/org.eclipse.papyrus.views.search</module>
+ <module>../plugins/views/validation/org.eclipse.papyrus.views.validation</module>
+ <module>../plugins/team/org.eclipse.papyrus.team.svn</module>
+ <module>main</module>
+ <!-- Papyrus examples -->
+ <module>../examples/core/org.eclipse.papyrus.example.core.lifecycleevents</module>
+ <module>../examples/core/org.eclipse.papyrus.example.core.sashwindows.fulleditor</module>
+ <module>../examples/core/org.eclipse.papyrus.example.core.sashwindows.simpleeditor</module>
+ <module>../examples/infra/org.eclipse.papyrus.example.infra.servicesregistry.retrieval</module>
+ <module>../examples/org.eclipse.papyrus.example.text.instance</module>
+ <module>../examples/org.eclipse.papyrus.example.uml.comment.editor.newresource</module>
+ <module>../examples/org.eclipse.papyrus.example.uml.comment.editor.sharedresource</module>
+ <module>../examples/infra/org.eclipse.papyrus.infra.gmfdiag.connectionpoint.preferences</module>
+ <module>../examples/emf/org.eclipse.papyrus.outline.emftree</module>
+ <module>../examples/uml/org.eclipse.papyrus.thousandcreation</module>
+ <module>../examples/uml/org.eclipse.papyrus.uml.diagram.example.programmaticcreation</module>
+ <module>../examples/uml/org.eclipse.papyrus.uml.textual.editors.example</module>
+
+
+ </modules>
+ <properties>
+ <tycho-version>0.22.0</tycho-version>
+ <tychoExtrasVersion>0.22.0</tychoExtrasVersion>
+ <findbugs.version>2.5.3</findbugs.version>
+ <xtext.version>2.7.3</xtext.version>
+ <java.source.version>1.6</java.source.version>
+ <java.target.version>1.6</java.target.version>
+ <papyrus.eclipse.target>mars</papyrus.eclipse.target>
+ <mylyn.wikitext.version>2.4.0-SNAPSHOT</mylyn.wikitext.version>
+ </properties>
+ <repositories>
+ <repository>
+ <id>emf-emf</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMF (Core)",0) -->
+ <url>http://download.eclipse.org/modeling/emf/emf/updates/2.11milestones/</url>
+ </repository>
+ <repository>
+ <id>emft-mwe[0]</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMFT MWE",0) -->
+ <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505190324/mwe</url>
+ </repository>
+ <repository>
+ <id>emft-mwe[1]</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMFT MWE",1) -->
+ <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505190428/mwe2lang</url>
+ </repository>
+ <repository>
+ <id>emf-transaction</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMF TRANSACTION",0) -->
+ <url>http://download.eclipse.org/modeling/emf/transaction/updates/milestones/S201505060251</url>
+ </repository>
+ <repository>
+ <id>emf-validation</id>
+ <layout>p2</layout>
+ <!-- updateFrom("EMF VALIDATION",0) -->
+ <url>http://download.eclipse.org/modeling/emf/validation/updates/milestones/S201505060134/</url>
+ </repository>
+ <repository>
+ <id>ep</id>
+ <layout>p2</layout>
+ <!-- updateFrom("Eclipse",0) -->
+ <url>http://download.eclipse.org/eclipse/updates/4.5milestones/S-4.5RC1-201505141000/</url>
+ </repository>
+ <repository>
+ <id>gef</id>
+ <layout>p2</layout>
+ <!-- updateFrom("GEF",0) -->
+ <url>http://download.eclipse.org/tools/gef/updates/milestones</url>
+ </repository>
+ <repository>
+ <id>gmp-gmf-notation</id>
+ <layout>p2</layout>
+ <!-- updateFrom("GMF Notation",0) -->
+ <url>http://download.eclipse.org/modeling/gmp/gmf-notation/updates/milestones/S201505060039</url>
+ </repository>
+ <repository>
+ <id>gmp-gmf-runtime</id>
+ <layout>p2</layout>
+ <!-- updateFrom("GMF Runtime",0) -->
+ <url>http://download.eclipse.org/modeling/gmp/gmf-runtime/updates/milestones/S201505060429</url>
+ </repository>
+ <repository>
+ <id>gmf-tooling</id>
+ <layout>p2</layout>
+ <!-- updateFrom("GMF Tooling",0) -->
+ <url>http://download.eclipse.org/modeling/gmp/gmf-tooling/updates/milestones-3.3/RC1</url>
+ </repository>
+ <repository>
+ <id>m2t-xpand</id>
+ <layout>p2</layout>
+ <!-- updateFrom("M2T XPAND",0) -->
+ <url>http://download.eclipse.org/modeling/m2t/xpand/updates/milestones/S201505190330/</url>
+ </repository>
+ <repository>
+ <id>mdt-ocl</id>
+ <layout>p2</layout>
+ <!-- updateFrom("MDT OCL 6.0",0) -->
+ <url>http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/6.0.0/S201505181553</url>
+ </repository>
+ <repository>
+ <id>mdt-uml2</id>
+ <layout>p2</layout>
+ <!-- updateFrom("MDT UML2",0) -->
+ <url>http://download.eclipse.org/modeling/mdt/uml2/updates/5.1milestones</url>
+ </repository>
+ <repository>
+ <id>mmt-qvto</id>
+ <layout>p2</layout>
+ <!-- updateFrom("QVT Operational",0) -->
+ <url>http://download.eclipse.org/mmt/qvto/updates/milestones/3.5.0/S201505190736</url>
+ </repository>
+ <repository>
+ <id>nattable</id>
+ <layout>p2</layout>
+ <url>http://download.eclipse.org/nattable/releases/1.2.0/repository/</url>
+ </repository>
+ <repository>
+ <id>nebula-tablecombo</id>
+ <layout>p2</layout>
+ <url>http://download.eclipse.org/technology/nebula/archives/Q12015/release/</url>
+ </repository>
+ <repository>
+ <id>orbit</id>
+ <layout>p2</layout>
+ <url>http://download.eclipse.org/tools/orbit/downloads/drops/R20150124073747/repository</url>
+ </repository>
+ <repository>
+ <id>tmf-xtext</id>
+ <layout>p2</layout>
+ <!-- updateFrom("Xtext, Xtend",0) -->
+ <url>http://download.eclipse.org/modeling/tmf/xtext/updates/milestones/maintenance/S201505190403/</url>
+ </repository>
+ <repository>
+ <id>webtools</id>
+ <layout>p2</layout>
+ <!-- updateFrom("WebTools",0) -->
+ <url>http://download.eclipse.org/webtools/downloads/drops/R3.7.0/S-3.7.0RC1-20150519000109/repository/</url>
+ </repository>
+ <repository>
+ <id>XWT</id>
+ <layout>p2</layout>
+ <!-- updateFrom("XWT",0) -->
+ <url>http://download.eclipse.org/xwt/release-1.1.0</url>
+ </repository>
+ <repository>
+ <id>subversive</id>
+ <layout>p2</layout>
+ <!-- updateFrom("Subversive",0) -->
+ <url>http://download.eclipse.org/technology/subversive/3.0/mars-site/</url>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>org.eclipse.cbi.maven.plugins</id>
+ <name>Eclipse CBI</name>
+ <url>https://repo.eclipse.org/content/repositories/cbi-releases/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </pluginRepository>
+ <pluginRepository>
+ <id>eclipse.org-mylyn</id>
+ <!-- url>https://repo.eclipse.org/content/repositories/mylyn-releases/</url -->
+ <url>https://repo.eclipse.org/content/repositories/mylyn/</url>
+ </pluginRepository>
+ </pluginRepositories>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.2</version>
+ <configuration>
+ <source>${java.source.version}</source>
+ <target>${java.target.version}</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>2.6</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.9.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.xtend</groupId>
+ <artifactId>xtend-maven-plugin</artifactId>
+ <version>${xtext.version}</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.6</version>
+ <configuration>
+ <encoding>UTF-8</encoding>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-compiler-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <optimize>true</optimize>
+ <showWarnings>true</showWarnings>
+ <!-- Tycho build using the project's JDT settings. -->
+ <useProjectSettings>true</useProjectSettings>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-maven-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>target-platform-configuration</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <environments>
+ <environment>
+ <os>win32</os>
+ <ws>win32</ws>
+ <arch>x86_64</arch>
+ </environment>
+ </environments>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.mylyn.docs</groupId>
+ <artifactId>org.eclipse.mylyn.wikitext.core.maven</artifactId>
+ <version>${mylyn.wikitext.version}</version>
+ </plugin>
+ <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
+ <plugin>
+ <groupId>org.eclipse.m2e</groupId>
+ <artifactId>lifecycle-mapping</artifactId>
+ <version>1.0.0</version>
+ <configuration>
+ <lifecycleMappingMetadata>
+ <pluginExecutions>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>
+ org.eclipse.mylyn.docs
+ </groupId>
+ <artifactId>
+ org.eclipse.mylyn.wikitext.core.maven
+ </artifactId>
+ <versionRange>
+ [2.4.0-SNAPSHOT,)
+ </versionRange>
+ <goals>
+ <goal>eclipse-help</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <execute/>
+ </action>
+ </pluginExecution>
+ </pluginExecutions>
+ </lifecycleMappingMetadata>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-compiler-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-maven-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>target-platform-configuration</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-p2-repository-plugin</artifactId>
+ <version>${tycho-version}</version>
+ </plugin>
+ <!-- Sources -->
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-source-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <executions>
+ <execution>
+ <id>plugin-source</id>
+ <goals>
+ <goal>plugin-source</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho.extras</groupId>
+ <artifactId>tycho-source-feature-plugin</artifactId>
+ <version>${tychoExtrasVersion}</version>
+ <executions>
+ <execution>
+ <id>source-feature</id>
+ <phase>package</phase>
+ <goals>
+ <goal>source-feature</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
<!--
No profile: Don't produce any artifact (update site). Used by Gerrit
findBugs: produce analysis reports. Activation: explicit ("Profiles")
packAndSign: produce a stable update site (Packed & signed). Used for releases (+ milestones) only. Activation: SIGN=true
pack: produce a simple update site (Packed). Used for nightly or feature branch builds. Activation: SIGN=false
- -->
- <profiles>
-
- <profile>
- <id>defaultProfile</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-p2-plugin</artifactId>
- <version>${tycho-version}</version>
- <executions>
- <execution>
- <id>attach-p2-metadata</id>
- <phase>package</phase>
- <goals>
- <goal>p2-metadata</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- </profile>
-
- <profile>
- <id>findBugs</id> <!-- Analysis profile. Takes +1h -->
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
- <version>${findbugs.version}</version>
- <configuration>
- <findbugsXmlOutput>true</findbugsXmlOutput>
- <failOnError>false</failOnError>
- <maxHeap>1024</maxHeap>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>check</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-p2-plugin</artifactId>
- <version>${tycho-version}</version>
- <executions>
- <execution>
- <id>attach-p2-metadata</id>
- <phase>package</phase>
- <goals>
- <goal>p2-metadata</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
-
-
- <profile>
- <id>packAndSign</id> <!-- Stable release profile. Takes +30min. Eclipse servers only -->
- <!-- Pack200 -->
- <build>
- <plugins>
- <plugin>
- <groupId>org.eclipse.tycho.extras</groupId>
- <artifactId>tycho-pack200a-plugin</artifactId>
- <version>${tychoExtrasVersion}</version>
- <executions>
- <execution>
- <id>pack200-normalize</id>
- <goals>
- <goal>normalize</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.eclipse.cbi.maven.plugins</groupId>
- <artifactId>eclipse-jarsigner-plugin</artifactId>
- <version>1.0.5</version>
- <executions>
- <execution>
- <id>sign</id>
- <goals>
- <goal>sign</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho.extras</groupId>
- <artifactId>tycho-pack200b-plugin</artifactId>
- <version>${tychoExtrasVersion}</version>
- <executions>
- <execution>
- <id>pack200-pack</id>
- <goals>
- <goal>pack</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-p2-plugin</artifactId>
- <version>${tycho-version}</version>
- <executions>
- <execution>
- <id>attach-p2-metadata</id>
- <phase>package</phase>
- <goals>
- <goal>p2-metadata</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <defaultP2Metadata>false</defaultP2Metadata>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <activation>
- <property>
- <name>SIGN</name>
- <value>true</value>
- </property>
- </activation>
- </profile>
-
-
- <profile>
- <id>pack</id> <!-- Nightly profile. Artifacts can be consumed, but are not signed -->
- <build>
- <plugins>
- <!-- Pack200 -->
- <plugin>
- <groupId>org.eclipse.tycho.extras</groupId>
- <artifactId>tycho-pack200b-plugin</artifactId>
- <version>${tychoExtrasVersion}</version>
- <executions>
- <execution>
- <id>pack200-pack</id>
- <goals>
- <goal>pack</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.eclipse.tycho</groupId>
- <artifactId>tycho-p2-plugin</artifactId>
- <version>${tycho-version}</version>
- <executions>
- <execution>
- <id>attach-p2-metadata</id>
- <phase>package</phase>
- <goals>
- <goal>p2-metadata</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <defaultP2Metadata>false</defaultP2Metadata>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <activation>
- <property>
- <name>SIGN</name>
- <value>false</value>
- </property>
- </activation>
- </profile>
-
- <!-- nightly profile is useful for developers that want to link to nightly build -->
- <profile>
- <id>nightly</id>
- <repositories>
- <repository>
- <id>papyrus-nightly</id>
- <layout>p2</layout>
- <url>http://download.eclipse.org/modeling/mdt/papyrus/updates/nightly/${papyrus.eclipse.target}/
- </url>
- <releases>
- <enabled>true</enabled>
- <updatePolicy>daily</updatePolicy>
- <checksumPolicy>warn</checksumPolicy>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>daily</updatePolicy>
- <checksumPolicy>fail</checksumPolicy>
- </snapshots>
- </repository>
- </repositories>
- <activation>
- <property>
- <name>env</name>
- <value>devnightly</value>
- </property>
- <activeByDefault>false</activeByDefault>
- </activation>
- </profile>
- </profiles>
-</project>
+ -->
+ <profiles>
+
+ <profile>
+ <id>defaultProfile</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-p2-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <executions>
+ <execution>
+ <id>attach-p2-metadata</id>
+ <phase>package</phase>
+ <goals>
+ <goal>p2-metadata</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ </profile>
+
+ <profile>
+ <id>findBugs</id> <!-- Analysis profile. Takes +1h -->
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ <version>${findbugs.version}</version>
+ <configuration>
+ <findbugsXmlOutput>true</findbugsXmlOutput>
+ <failOnError>false</failOnError>
+ <maxHeap>1024</maxHeap>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-p2-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <executions>
+ <execution>
+ <id>attach-p2-metadata</id>
+ <phase>package</phase>
+ <goals>
+ <goal>p2-metadata</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+
+ <profile>
+ <id>packAndSign</id> <!-- Stable release profile. Takes +30min. Eclipse servers only -->
+ <!-- Pack200 -->
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho.extras</groupId>
+ <artifactId>tycho-pack200a-plugin</artifactId>
+ <version>${tychoExtrasVersion}</version>
+ <executions>
+ <execution>
+ <id>pack200-normalize</id>
+ <goals>
+ <goal>normalize</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.cbi.maven.plugins</groupId>
+ <artifactId>eclipse-jarsigner-plugin</artifactId>
+ <version>1.0.5</version>
+ <executions>
+ <execution>
+ <id>sign</id>
+ <goals>
+ <goal>sign</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho.extras</groupId>
+ <artifactId>tycho-pack200b-plugin</artifactId>
+ <version>${tychoExtrasVersion}</version>
+ <executions>
+ <execution>
+ <id>pack200-pack</id>
+ <goals>
+ <goal>pack</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-p2-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <executions>
+ <execution>
+ <id>attach-p2-metadata</id>
+ <phase>package</phase>
+ <goals>
+ <goal>p2-metadata</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <defaultP2Metadata>false</defaultP2Metadata>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <activation>
+ <property>
+ <name>SIGN</name>
+ <value>true</value>
+ </property>
+ </activation>
+ </profile>
+
+
+ <profile>
+ <id>pack</id> <!-- Nightly profile. Artifacts can be consumed, but are not signed -->
+ <build>
+ <plugins>
+ <!-- Pack200 -->
+ <plugin>
+ <groupId>org.eclipse.tycho.extras</groupId>
+ <artifactId>tycho-pack200b-plugin</artifactId>
+ <version>${tychoExtrasVersion}</version>
+ <executions>
+ <execution>
+ <id>pack200-pack</id>
+ <goals>
+ <goal>pack</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-p2-plugin</artifactId>
+ <version>${tycho-version}</version>
+ <executions>
+ <execution>
+ <id>attach-p2-metadata</id>
+ <phase>package</phase>
+ <goals>
+ <goal>p2-metadata</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <defaultP2Metadata>false</defaultP2Metadata>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <activation>
+ <property>
+ <name>SIGN</name>
+ <value>false</value>
+ </property>
+ </activation>
+ </profile>
+
+ <!-- nightly profile is useful for developers that want to link to nightly build -->
+ <profile>
+ <id>nightly</id>
+ <repositories>
+ <repository>
+ <id>papyrus-nightly</id>
+ <layout>p2</layout>
+ <url>http://download.eclipse.org/modeling/mdt/papyrus/updates/nightly/${papyrus.eclipse.target}/
+ </url>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>daily</updatePolicy>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>daily</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ </repository>
+ </repositories>
+ <activation>
+ <property>
+ <name>env</name>
+ <value>devnightly</value>
+ </property>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ </profile>
+ </profiles>
+</project>
diff --git a/releng/top-pom-rcp.xml b/releng/top-pom-rcp.xml
index 5b6fcbd0257..5b793e0877a 100755
--- a/releng/top-pom-rcp.xml
+++ b/releng/top-pom-rcp.xml
@@ -25,13 +25,13 @@
<id>emft-mwe[0]</id>
<layout>p2</layout>
<!-- updateFrom("EMFT MWE",0) -->
- <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505050723/mwe</url>
+ <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505190324/mwe</url>
</repository>
<repository>
<id>emft-mwe[1]</id>
<layout>p2</layout>
<!-- updateFrom("EMFT MWE",1) -->
- <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505050939/mwe2lang</url>
+ <url>http://download.eclipse.org/modeling/emft/mwe/updates/milestones/S201505190428/mwe2lang</url>
</repository>
<repository>
<id>emf-transaction</id>
@@ -49,7 +49,7 @@
<id>ep</id>
<layout>p2</layout>
<!-- updateFrom("Eclipse",0) -->
- <url>http://download.eclipse.org/eclipse/updates/4.5milestones/S-4.5M7-201504301445</url>
+ <url>http://download.eclipse.org/eclipse/updates/4.5milestones/S-4.5RC1-201505141000/</url>
</repository>
<repository>
<id>gef</id>
@@ -73,19 +73,19 @@
<id>gmf-tooling</id>
<layout>p2</layout>
<!-- updateFrom("GMF Tooling",0) -->
- <url>http://download.eclipse.org/modeling/gmp/gmf-tooling/updates/milestones-3.3/M7</url>
+ <url>http://download.eclipse.org/modeling/gmp/gmf-tooling/updates/milestones-3.3/RC1</url>
</repository>
<repository>
<id>m2t-xpand</id>
<layout>p2</layout>
<!-- updateFrom("M2T XPAND",0) -->
- <url>http://download.eclipse.org/modeling/m2t/xpand/updates/milestones/S201505051058/</url>
+ <url>http://download.eclipse.org/modeling/m2t/xpand/updates/milestones/S201505190330/</url>
</repository>
<repository>
<id>mdt-ocl</id>
<layout>p2</layout>
<!-- updateFrom("MDT OCL 6.0",0) -->
- <url>http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/6.0.0/S201505041438</url>
+ <url>http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/6.0.0/S201505181553</url>
</repository>
<repository>
<id>mdt-uml2</id>
@@ -97,7 +97,7 @@
<id>mmt-qvto</id>
<layout>p2</layout>
<!-- updateFrom("QVT Operational",0) -->
- <url>http://download.eclipse.org/mmt/qvto/updates/milestones/3.5.0/S201505050519</url>
+ <url>http://download.eclipse.org/mmt/qvto/updates/milestones/3.5.0/S201505190736</url>
</repository>
<repository>
<id>nattable</id>
@@ -113,13 +113,13 @@
<id>tmf-xtext</id>
<layout>p2</layout>
<!-- updateFrom("Xtext, Xtend",0) -->
- <url>http://download.eclipse.org/modeling/tmf/xtext/updates/milestones/maintenance/S201505051043/</url>
+ <url>http://download.eclipse.org/modeling/tmf/xtext/updates/milestones/maintenance/S201505190403/</url>
</repository>
<repository>
<id>webtools</id>
<layout>p2</layout>
<!-- updateFrom("WebTools",0) -->
- <url>http://download.eclipse.org/webtools/downloads/drops/R3.7.0/S-3.7.0M7-20150505000109/repository/</url>
+ <url>http://download.eclipse.org/webtools/downloads/drops/R3.7.0/S-3.7.0RC1-20150519000109/repository/</url>
</repository>
<repository>
<id>XWT</id>
diff --git a/tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.core.tests/src/org/eclipse/papyrus/cdo/internal/core/importer/tests/ModelImporterTest.java b/tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.core.tests/src/org/eclipse/papyrus/cdo/internal/core/importer/tests/ModelImporterTest.java
index e5f7d4be0b6..ff1239c14b1 100644
--- a/tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.core.tests/src/org/eclipse/papyrus/cdo/internal/core/importer/tests/ModelImporterTest.java
+++ b/tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.core.tests/src/org/eclipse/papyrus/cdo/internal/core/importer/tests/ModelImporterTest.java
@@ -147,7 +147,7 @@ public class ModelImporterTest extends AbstractPapyrusCDOTest {
reader.close();
assertThat(text, not(containsString("href=\"../has_dependents/Datatypes.uml")));
- assertThat(text, containsString("href=\"cdo.checkout://1/1/has_dependents/Datatypes.uml"));
+ assertThat(text, containsString("href=\"cdo.checkout://1/has_dependents/Datatypes.uml"));
}
//
diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical.tests/src/org/eclipse/papyrus/infra/gmfdiag/canonical/tests/CSSCanonicalStateInClassDiagramTest.java b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical.tests/src/org/eclipse/papyrus/infra/gmfdiag/canonical/tests/CSSCanonicalStateInClassDiagramTest.java
index c3e648612b9..17d246a25e4 100644
--- a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical.tests/src/org/eclipse/papyrus/infra/gmfdiag/canonical/tests/CSSCanonicalStateInClassDiagramTest.java
+++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical.tests/src/org/eclipse/papyrus/infra/gmfdiag/canonical/tests/CSSCanonicalStateInClassDiagramTest.java
@@ -126,6 +126,7 @@ public class CSSCanonicalStateInClassDiagramTest extends AbstractCSSCanonicalTes
}
@StylesheetRef("canonical_styles")
+ @NeedsUIEvents
@Scenario({ "execute", "undo", "redo" })
public void addStyleClass() {
addStyleClass(requireView(types), "synch");
@@ -163,6 +164,7 @@ public class CSSCanonicalStateInClassDiagramTest extends AbstractCSSCanonicalTes
}
@StylesheetRef("canonical_styles")
+ @NeedsUIEvents
@Test
public void overrideSelectorRule() {
// Override the canonical style
@@ -178,6 +180,7 @@ public class CSSCanonicalStateInClassDiagramTest extends AbstractCSSCanonicalTes
}
@StylesheetRef("canonical_styles")
+ @NeedsUIEvents
@Test
public void overrideExplicitClassRule() {
addStyleClass(requireView(types), "synch");
diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical.tests/src/org/eclipse/papyrus/infra/gmfdiag/canonical/tests/CSSExternalStylesheetInClassDiagramTest.java b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical.tests/src/org/eclipse/papyrus/infra/gmfdiag/canonical/tests/CSSExternalStylesheetInClassDiagramTest.java
index 2476e6c4cc2..bbe3c7b5398 100644
--- a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical.tests/src/org/eclipse/papyrus/infra/gmfdiag/canonical/tests/CSSExternalStylesheetInClassDiagramTest.java
+++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical.tests/src/org/eclipse/papyrus/infra/gmfdiag/canonical/tests/CSSExternalStylesheetInClassDiagramTest.java
@@ -59,6 +59,7 @@ public class CSSExternalStylesheetInClassDiagramTest extends AbstractCSSCanonica
super();
}
+ @NeedsUIEvents
@Scenario({ "initial", "non-canonical", "canonical", "undo", "redo" })
public void editStylesheetRefresh() {
// The classes are canonical
diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/fragment.xml b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/fragment.xml
index f4836a50ec1..4760815ced0 100644
--- a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/fragment.xml
+++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/fragment.xml
@@ -8,5 +8,11 @@
path="models/TestExpansionDiagram.elementtypesconfigurations">
</elementTypeSet>
</extension>
+ <extension
+ point="org.eclipse.papyrus.infra.sync.triggers">
+ <syncTrigger
+ class="org.eclipse.papyrus.infra.gmfdiag.common.sync.tests.TestSyncFixture$TestClassDiagramSyncTrigger">
+ </syncTrigger>
+ </extension>
</fragment>
diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/models/sync/sync-test.di b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/models/sync/sync-test.di
new file mode 100644
index 00000000000..bf9abab340f
--- /dev/null
+++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/models/sync/sync-test.di
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/models/sync/sync-test.notation b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/models/sync/sync-test.notation
new file mode 100644
index 00000000000..3da2a18ea38
--- /dev/null
+++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/models/sync/sync-test.notation
@@ -0,0 +1,193 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:css="http://www.eclipse.org/papyrus/infra/gmfdiag/css" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/papyrus/infra/viewpoints/policy/style" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML">
+ <notation:Diagram xmi:id="_SUe9MP4pEeSWkpIORzCK6w" type="PapyrusUMLClassDiagram" name="master" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_dtgq8P4pEeSWkpIORzCK6w" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_dtmKgP4pEeSWkpIORzCK6w" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_dtmKgf4pEeSWkpIORzCK6w" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_dtmKgv4pEeSWkpIORzCK6w" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_dtrDAP4pEeSWkpIORzCK6w" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_dtrDAf4pEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_dtrDAv4pEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_dtrDA_4pEeSWkpIORzCK6w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_dtrDBP4pEeSWkpIORzCK6w"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_dtrDBf4pEeSWkpIORzCK6w" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_dtrDBv4pEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_dtrDB_4pEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_dtrDCP4pEeSWkpIORzCK6w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_dtrDCf4pEeSWkpIORzCK6w"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_dtrDCv4pEeSWkpIORzCK6w" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_dtrDC_4pEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_dtrDDP4pEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_dtrDDf4pEeSWkpIORzCK6w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_dtrDDv4pEeSWkpIORzCK6w"/>
+ </children>
+ <element xmi:type="uml:Class" href="sync-test.uml#_dtT2oP4pEeSWkpIORzCK6w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_dthSAP4pEeSWkpIORzCK6w" x="76" y="79"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_e3LowP4pEeSWkpIORzCK6w" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_e3Lowv4pEeSWkpIORzCK6w" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_e3Low_4pEeSWkpIORzCK6w" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_e3LoxP4pEeSWkpIORzCK6w" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_e3MP0P4pEeSWkpIORzCK6w" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_e3MP0f4pEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_e3MP0v4pEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_e3MP0_4pEeSWkpIORzCK6w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_e3MP1P4pEeSWkpIORzCK6w"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_e3MP1f4pEeSWkpIORzCK6w" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_e3MP1v4pEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_e3MP1_4pEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_e3MP2P4pEeSWkpIORzCK6w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_e3MP2f4pEeSWkpIORzCK6w"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_e3MP2v4pEeSWkpIORzCK6w" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_e3MP2_4pEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_e3MP3P4pEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_e3MP3f4pEeSWkpIORzCK6w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_e3MP3v4pEeSWkpIORzCK6w"/>
+ </children>
+ <element xmi:type="uml:Class" href="sync-test.uml#_e3FiIP4pEeSWkpIORzCK6w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_e3Lowf4pEeSWkpIORzCK6w" x="216" y="289"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_SUe9Mf4pEeSWkpIORzCK6w" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_SUe9Mv4pEeSWkpIORzCK6w"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_SUe9M_4pEeSWkpIORzCK6w">
+ <owner xmi:type="uml:Model" href="sync-test.uml#_SNfkYP4pEeSWkpIORzCK6w"/>
+ </styles>
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_LjlbsP4qEeSWkpIORzCK6w" name="cssClass">
+ <stringListValue>syncmaster</stringListValue>
+ </styles>
+ <element xmi:type="uml:Model" href="sync-test.uml#_SNfkYP4pEeSWkpIORzCK6w"/>
+ <edges xmi:type="notation:Connector" xmi:id="_jKtTcP4pEeSWkpIORzCK6w" type="4001" source="_dtgq8P4pEeSWkpIORzCK6w" target="_e3LowP4pEeSWkpIORzCK6w">
+ <children xmi:type="notation:DecorationNode" xmi:id="_jKt6gP4pEeSWkpIORzCK6w" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jKt6gf4pEeSWkpIORzCK6w" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_jKt6gv4pEeSWkpIORzCK6w" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jKt6g_4pEeSWkpIORzCK6w" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_jKuhkP4pEeSWkpIORzCK6w" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jKuhkf4pEeSWkpIORzCK6w" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_jKuhkv4pEeSWkpIORzCK6w" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jKuhk_4pEeSWkpIORzCK6w" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_jKuhlP4pEeSWkpIORzCK6w" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jKuhlf4pEeSWkpIORzCK6w" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_jKuhlv4pEeSWkpIORzCK6w" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jKuhl_4pEeSWkpIORzCK6w" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_jKtTcf4pEeSWkpIORzCK6w"/>
+ <element xmi:type="uml:Association" href="sync-test.uml#_jKWHEP4pEeSWkpIORzCK6w"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_jKtTcv4pEeSWkpIORzCK6w" points="[31, 50, -109, -160]$[90, 162, -50, -48]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_jMFMcP4pEeSWkpIORzCK6w" id="(0.78,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_jMFzgP4pEeSWkpIORzCK6w" id="(0.09,0.0)"/>
+ </edges>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_yVolgP4pEeSWkpIORzCK6w" type="PapyrusUMLClassDiagram" name="slave1" measurementUnit="Pixel">
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_yVolgf4pEeSWkpIORzCK6w" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_yVolgv4pEeSWkpIORzCK6w"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_yVolg_4pEeSWkpIORzCK6w">
+ <owner xmi:type="uml:Model" href="sync-test.uml#_SNfkYP4pEeSWkpIORzCK6w"/>
+ </styles>
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_OgLvsP4qEeSWkpIORzCK6w" name="cssClass">
+ <stringListValue>syncslave</stringListValue>
+ </styles>
+ <element xmi:type="uml:Model" href="sync-test.uml#_SNfkYP4pEeSWkpIORzCK6w"/>
+ </notation:Diagram>
+ <notation:Diagram xmi:id="_ytSpAP5UEeSWkpIORzCK6w" type="PapyrusUMLClassDiagram" name="slave2" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_ytSpAf5UEeSWkpIORzCK6w" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ytSpAv5UEeSWkpIORzCK6w" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ytSpA_5UEeSWkpIORzCK6w" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ytSpBP5UEeSWkpIORzCK6w" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ytSpBf5UEeSWkpIORzCK6w" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ytSpBv5UEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ytSpB_5UEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ytSpCP5UEeSWkpIORzCK6w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ytSpCf5UEeSWkpIORzCK6w"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ytSpCv5UEeSWkpIORzCK6w" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ytSpC_5UEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ytSpDP5UEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ytSpDf5UEeSWkpIORzCK6w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ytSpDv5UEeSWkpIORzCK6w"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ytSpD_5UEeSWkpIORzCK6w" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ytSpEP5UEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ytSpEf5UEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ytSpEv5UEeSWkpIORzCK6w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ytSpE_5UEeSWkpIORzCK6w"/>
+ </children>
+ <element xmi:type="uml:Class" href="sync-test.uml#_dtT2oP4pEeSWkpIORzCK6w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ytSpFP5UEeSWkpIORzCK6w" x="76" y="79"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ytSpFf5UEeSWkpIORzCK6w" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ytSpFv5UEeSWkpIORzCK6w" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ytSpF_5UEeSWkpIORzCK6w" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ytSpGP5UEeSWkpIORzCK6w" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ytSpGf5UEeSWkpIORzCK6w" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ytSpGv5UEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ytSpG_5UEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ytSpHP5UEeSWkpIORzCK6w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ytSpHf5UEeSWkpIORzCK6w"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ytSpHv5UEeSWkpIORzCK6w" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ytSpH_5UEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ytSpIP5UEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ytSpIf5UEeSWkpIORzCK6w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ytSpIv5UEeSWkpIORzCK6w"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ytSpI_5UEeSWkpIORzCK6w" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ytSpJP5UEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ytSpJf5UEeSWkpIORzCK6w"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ytSpJv5UEeSWkpIORzCK6w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ytSpJ_5UEeSWkpIORzCK6w"/>
+ </children>
+ <element xmi:type="uml:Class" href="sync-test.uml#_e3FiIP4pEeSWkpIORzCK6w"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ytSpKP5UEeSWkpIORzCK6w" x="216" y="289"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_ytSpKf5UEeSWkpIORzCK6w" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_ytSpKv5UEeSWkpIORzCK6w"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_ytSpK_5UEeSWkpIORzCK6w">
+ <owner xmi:type="uml:Model" href="sync-test.uml#_SNfkYP4pEeSWkpIORzCK6w"/>
+ </styles>
+ <styles xmi:type="notation:StringListValueStyle" xmi:id="_ytSpLP5UEeSWkpIORzCK6w" name="cssClass">
+ <stringListValue>syncslave</stringListValue>
+ </styles>
+ <element xmi:type="uml:Model" href="sync-test.uml#_SNfkYP4pEeSWkpIORzCK6w"/>
+ <edges xmi:type="notation:Connector" xmi:id="_ytSpLf5UEeSWkpIORzCK6w" type="4001" source="_ytSpAf5UEeSWkpIORzCK6w" target="_ytSpFf5UEeSWkpIORzCK6w">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ytSpLv5UEeSWkpIORzCK6w" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ytSpL_5UEeSWkpIORzCK6w" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ytSpMP5UEeSWkpIORzCK6w" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ytSpMf5UEeSWkpIORzCK6w" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ytSpMv5UEeSWkpIORzCK6w" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ytSpM_5UEeSWkpIORzCK6w" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ytSpNP5UEeSWkpIORzCK6w" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ytSpNf5UEeSWkpIORzCK6w" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ytSpNv5UEeSWkpIORzCK6w" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ytSpN_5UEeSWkpIORzCK6w" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ytSpOP5UEeSWkpIORzCK6w" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ytSpOf5UEeSWkpIORzCK6w" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_ytSpOv5UEeSWkpIORzCK6w"/>
+ <element xmi:type="uml:Association" href="sync-test.uml#_jKWHEP4pEeSWkpIORzCK6w"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_ytSpO_5UEeSWkpIORzCK6w" points="[31, 50, -109, -160]$[90, 162, -50, -48]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ytSpPP5UEeSWkpIORzCK6w" id="(0.78,1.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ytSpPf5UEeSWkpIORzCK6w" id="(0.09,0.0)"/>
+ </edges>
+ </notation:Diagram>
+ <css:ModelStyleSheets xmi:id="_zI4AUP4pEeSWkpIORzCK6w">
+ <stylesheets xmi:type="css:EmbeddedStyleSheet" xmi:id="_KD808P4qEeSWkpIORzCK6w" label="sync_styles" content=".syncmaster { papyrus-diagram-sync: master }&#xA;.syncslave { papyrus-diagram-sync: slave }"/>
+ </css:ModelStyleSheets>
+</xmi:XMI>
diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/models/sync/sync-test.uml b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/models/sync/sync-test.uml
new file mode 100644
index 00000000000..89eab689fbc
--- /dev/null
+++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/models/sync/sync-test.uml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<uml:Model xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="_SNfkYP4pEeSWkpIORzCK6w" name="sync-test">
+ <packageImport xmi:id="_Smmn8P4pEeSWkpIORzCK6w">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Class" xmi:id="_dtT2oP4pEeSWkpIORzCK6w" name="Class1">
+ <ownedAttribute xmi:id="_jKaYgP4pEeSWkpIORzCK6w" name="class2" type="_e3FiIP4pEeSWkpIORzCK6w" association="_jKWHEP4pEeSWkpIORzCK6w"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_e3FiIP4pEeSWkpIORzCK6w" name="Class2"/>
+ <packagedElement xmi:type="uml:Association" xmi:id="_jKWHEP4pEeSWkpIORzCK6w" name="A_class2_class1" memberEnd="_jKaYgP4pEeSWkpIORzCK6w _jKaYgf4pEeSWkpIORzCK6w">
+ <eAnnotations xmi:id="_jKZKYP4pEeSWkpIORzCK6w" source="org.eclipse.papyrus">
+ <details xmi:id="_jKZxcP4pEeSWkpIORzCK6w" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:id="_jKaYgf4pEeSWkpIORzCK6w" name="class1" type="_dtT2oP4pEeSWkpIORzCK6w" association="_jKWHEP4pEeSWkpIORzCK6w"/>
+ </packagedElement>
+</uml:Model>
diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/org.eclipse.papyrus.infra.gmfdiag.common.tests.launch b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/org.eclipse.papyrus.infra.gmfdiag.common.tests.launch
index b88d6a5e441..13fe8b0d635 100644
--- a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/org.eclipse.papyrus.infra.gmfdiag.common.tests.launch
+++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/org.eclipse.papyrus.infra.gmfdiag.common.tests.launch
@@ -1,46 +1,46 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
-<booleanAttribute key="append.args" value="true"/>
-<booleanAttribute key="askclear" value="false"/>
-<booleanAttribute key="automaticAdd" value="true"/>
-<booleanAttribute key="automaticValidate" value="false"/>
-<stringAttribute key="bootstrap" value=""/>
-<stringAttribute key="checked" value="org.eclipse.papyrus.infra.gmfdiag.common"/>
-<booleanAttribute key="clearConfig" value="true"/>
-<booleanAttribute key="clearws" value="true"/>
-<booleanAttribute key="clearwslog" value="false"/>
-<listAttribute key="com.mountainminds.eclemma.core.SCOPE_IDS">
-<listEntry value="=org.eclipse.papyrus.infra.gmfdiag.dnd/src"/>
-<listEntry value="=org.eclipse.papyrus.infra.gmfdiag.common/src"/>
-</listAttribute>
-<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
-<booleanAttribute key="default" value="true"/>
-<booleanAttribute key="includeOptional" value="true"/>
-<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
-<listEntry value="/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/tests/AllTests.java"/>
-</listAttribute>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
-<listEntry value="1"/>
-</listAttribute>
-<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
-<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
-<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
-<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
-<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
-<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
-<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.papyrus.infra.gmfdiag.common.tests.AllTests"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.papyrus.infra.gmfdiag.common.tests"/>
-<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx1024m -XX:PermSize=256M -XX:MaxPermSize=512M"/>
-<stringAttribute key="pde.version" value="3.3"/>
-<stringAttribute key="product" value="org.eclipse.platform.ide"/>
-<booleanAttribute key="run_in_ui_thread" value="true"/>
-<booleanAttribute key="show_selected_only" value="false"/>
-<booleanAttribute key="tracing" value="true"/>
-<booleanAttribute key="useCustomFeatures" value="false"/>
-<booleanAttribute key="useDefaultConfig" value="true"/>
-<booleanAttribute key="useDefaultConfigArea" value="false"/>
-<booleanAttribute key="useProduct" value="true"/>
-</launchConfiguration>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
+<booleanAttribute key="append.args" value="true"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="org.eclipse.papyrus.infra.gmfdiag.common"/>
+<booleanAttribute key="clearConfig" value="true"/>
+<booleanAttribute key="clearws" value="true"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<listAttribute key="com.mountainminds.eclemma.core.SCOPE_IDS">
+<listEntry value="=org.eclipse.papyrus.infra.gmfdiag.dnd/src"/>
+<listEntry value="=org.eclipse.papyrus.infra.gmfdiag.common/src"/>
+</listAttribute>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
+<booleanAttribute key="default" value="true"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/tests/AllTests.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
+<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.papyrus.infra.gmfdiag.common.tests.AllTests"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.papyrus.infra.gmfdiag.common.tests"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx1024m -XX:PermSize=256M -XX:MaxPermSize=512M&#10;-Doomph.setup.skip=true"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="org.eclipse.platform.ide"/>
+<booleanAttribute key="run_in_ui_thread" value="true"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<booleanAttribute key="tracing" value="true"/>
+<booleanAttribute key="useCustomFeatures" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="true"/>
+</launchConfiguration>
diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/tests/MasterSlaveNotationSyncTest.java b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/tests/MasterSlaveNotationSyncTest.java
new file mode 100644
index 00000000000..1f5e77d73af
--- /dev/null
+++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/tests/MasterSlaveNotationSyncTest.java
@@ -0,0 +1,290 @@
+/*****************************************************************************
+ * Copyright (c) 2015 Christian W. Damus and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Christian W. Damus - Initial API and implementation
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.infra.gmfdiag.common.sync.tests;
+
+import static org.eclipse.papyrus.junit.framework.runner.ScenarioRunner.verificationPoint;
+import static org.hamcrest.CoreMatchers.is;
+import static org.hamcrest.CoreMatchers.notNullValue;
+import static org.hamcrest.CoreMatchers.nullValue;
+import static org.hamcrest.MatcherAssert.assertThat;
+
+import java.util.Collections;
+
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.emf.edit.command.AddCommand;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gef.RequestConstants;
+import org.eclipse.gef.requests.GroupRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.requests.DropObjectsRequest;
+import org.eclipse.papyrus.infra.tools.util.TypeUtils;
+import org.eclipse.papyrus.junit.framework.runner.Scenario;
+import org.eclipse.papyrus.junit.framework.runner.ScenarioRunner;
+import org.eclipse.papyrus.junit.utils.rules.ActiveDiagram;
+import org.eclipse.papyrus.junit.utils.rules.HouseKeeper;
+import org.eclipse.papyrus.junit.utils.rules.PapyrusEditorFixture;
+import org.eclipse.papyrus.junit.utils.rules.PluginResource;
+import org.eclipse.uml2.uml.Association;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Package;
+import org.eclipse.uml2.uml.UMLFactory;
+import org.eclipse.uml2.uml.UMLPackage;
+import org.junit.Before;
+import org.junit.Rule;
+import org.junit.Test;
+import org.junit.rules.TestRule;
+import org.junit.runner.RunWith;
+
+/**
+ * Test suite for master/slave notation synchronization.
+ */
+@RunWith(ScenarioRunner.class)
+@PluginResource("models/sync/sync-test.di")
+@ActiveDiagram("master")
+public class MasterSlaveNotationSyncTest {
+
+ @Rule
+ public final HouseKeeper houseKeeper = new HouseKeeper();
+
+ final PapyrusEditorFixture editor = new PapyrusEditorFixture();
+
+ @Rule
+ public final TestRule sync = TestSyncFixture.compose(editor);
+
+ private Package rootPackage;
+
+ private Class class1;
+
+ private Class class2;
+
+ private Association class1_class2;
+
+ private DiagramEditPart master;
+
+ private EditPart class1EP;
+
+ private EditPart class2EP;
+
+ public MasterSlaveNotationSyncTest() {
+ super();
+ }
+
+ @Test
+ public void initialSyncOfEmptyDiagram() {
+ DiagramEditPart slave = activate("slave1");
+
+ EditPart class1Slave = editor.requireEditPart(slave, class1);
+ assertThat(getBounds(class1Slave), is(getBounds(class1EP)));
+ EditPart class2Slave = editor.requireEditPart(slave, class2);
+ assertThat(getBounds(class2Slave), is(getBounds(class2EP)));
+
+ assertThat(editor.findEditPart(class1Slave, class1_class2), notNullValue());
+
+ // The editor is not marked dirty by this synchronization (it is effected by unprotected writes)
+ assertThat(editor.getEditor().isDirty(), is(false));
+ }
+
+ @Scenario({ "move", "undo", "redo" })
+ public void syncNodeLocation() {
+ // Open the slave diagram and return to the master
+ DiagramEditPart slave = activate("slave2");
+ editor.activateDiagram(master);
+
+ // Compute and actuate a move of Class2 in the master diagram
+ final Rectangle oldBounds = getBounds(class2EP);
+ final Rectangle newBounds = oldBounds.getTranslated(20, 20);
+
+ editor.move(class2EP, newBounds.getLocation());
+
+ EditPart class2Slave = editor.requireEditPart(slave, class2);
+
+ if (verificationPoint()) {
+ assertThat(getBounds(class2Slave), is(newBounds));
+ }
+
+ editor.undo();
+
+ if (verificationPoint()) {
+ assertThat(getBounds(class2Slave), is(oldBounds));
+ }
+
+ editor.redo();
+
+ if (verificationPoint()) {
+ assertThat(getBounds(class2Slave), is(newBounds));
+ }
+ }
+
+ @Scenario({ "resize", "undo", "redo" })
+ public void syncNodeSize() {
+ // Open the slave diagram and return to the master
+ DiagramEditPart slave = activate("slave2");
+ editor.activateDiagram(master);
+
+ // Compute and actuate a resize of Class2 in the master diagram
+ final Rectangle oldBounds = getBounds(class2EP);
+ final Rectangle newBounds = oldBounds.getResized(oldBounds.width / 2, oldBounds.height / 2);
+
+ editor.resize(class2EP, newBounds.getSize());
+
+ EditPart class2Slave = editor.requireEditPart(slave, class2);
+
+ if (verificationPoint()) {
+ assertThat(getBounds(class2Slave), is(newBounds));
+ }
+
+ editor.undo();
+
+ if (verificationPoint()) {
+ assertThat(getBounds(class2Slave), is(oldBounds));
+ }
+
+ editor.redo();
+
+ if (verificationPoint()) {
+ assertThat(getBounds(class2Slave), is(newBounds));
+ }
+ }
+
+ @Scenario({ "create", "undo", "redo" })
+ public void createNewNode() {
+ // Open the slave diagram and return to the master
+ DiagramEditPart slave = activate("slave2");
+ editor.activateDiagram(master);
+
+ // Create a new Class
+ Class newClass = UMLFactory.eINSTANCE.createClass();
+ newClass.setName("NewClass");
+ editor.execute(AddCommand.create(editor.getEditingDomain(), rootPackage, UMLPackage.Literals.PACKAGE__PACKAGED_ELEMENT, newClass));
+
+ // Create a view of the class, as a new command, to ensure that undo/redo
+ // doesn't affect the creation of the new class in the model (only the diagram)
+ DropObjectsRequest drop = new DropObjectsRequest();
+ drop.setObjects(Collections.singletonList(newClass));
+ drop.setLocation(new Point(90, 30));
+ editor.execute(master.getCommand(drop));
+
+ Rectangle initialBounds = getBounds(editor.requireEditPart(master, newClass));
+
+ if (verificationPoint()) {
+ EditPart newClassSlave = editor.requireEditPart(slave, newClass);
+ assertThat(getBounds(newClassSlave), is(initialBounds));
+ }
+
+ editor.undo();
+
+ if (verificationPoint()) {
+ EditPart newClassSlave = editor.findEditPart(slave, newClass);
+ assertThat(newClassSlave, nullValue());
+ }
+
+ editor.redo();
+
+ if (verificationPoint()) {
+ EditPart newClassSlave = editor.requireEditPart(slave, newClass);
+ assertThat(getBounds(newClassSlave), is(initialBounds));
+ }
+ }
+
+ @Test
+ public void newNodeOfWrongMetaclassNotSynchronized() {
+ // Open the slave diagram and return to the master
+ DiagramEditPart slave = activate("slave2");
+ editor.activateDiagram(master);
+
+ // Create a new Package
+ Package newPackage = UMLFactory.eINSTANCE.createPackage();
+ newPackage.setName("NewPackage");
+ editor.execute(AddCommand.create(editor.getEditingDomain(), rootPackage, UMLPackage.Literals.PACKAGE__PACKAGED_ELEMENT, newPackage));
+
+ // Create a view of the package
+ DropObjectsRequest drop = new DropObjectsRequest();
+ drop.setObjects(Collections.singletonList(newPackage));
+ drop.setLocation(new Point(90, 30));
+ editor.execute(master.getCommand(drop));
+
+ EditPart newPackageSlave = editor.findEditPart(slave, newPackage);
+ assertThat(newPackageSlave, nullValue());
+ }
+
+ @Scenario({ "deleteView", "undo", "redo" })
+ public void deleteNode() {
+ // Open the slave diagram and return to the master
+ DiagramEditPart slave = activate("slave2");
+ editor.activateDiagram(master);
+
+ // Hide the view of Class2 in the master diagram
+ GroupRequest request = new GroupRequest(RequestConstants.REQ_DELETE);
+ editor.execute(class2EP.getCommand(request));
+
+ if (verificationPoint()) {
+ assertThat(editor.findEditPart(slave, class2), nullValue());
+ assertThat("Class2 deleted from semantic model, also", class2.eResource(), is(editor.getModelResource()));
+
+ // Of course, the connected edges would be removed, anyways
+ assertThat(editor.findEditPart(editor.requireEditPart(slave, class1), class1_class2), nullValue());
+ }
+
+ editor.undo();
+
+ if (verificationPoint()) {
+ EditPart class2Slave = editor.requireEditPart(slave, class2);
+ editor.requireEditPart(class2Slave, class1_class2); // connections must also be restored
+ }
+
+ editor.redo();
+
+ if (verificationPoint()) {
+ assertThat(editor.findEditPart(slave, class2), nullValue());
+ assertThat(editor.findEditPart(editor.requireEditPart(slave, class1), class1_class2), nullValue());
+ }
+ }
+
+ //
+ // Test framework
+ //
+
+ @Before
+ public void gatherReferences() {
+ rootPackage = editor.getModel();
+
+ class1 = (Class) rootPackage.getOwnedType("Class1");
+ class2 = (Class) rootPackage.getOwnedType("Class2");
+ class1_class2 = class1.getOwnedAttribute(null, class2).getAssociation();
+
+ master = editor.getActiveDiagramEditor().getDiagramEditPart();
+ class1EP = editor.requireEditPart(master, class1);
+ class2EP = editor.requireEditPart(master, class2);
+ }
+
+ DiagramEditPart activate(String diagramName) {
+ DiagramEditPart result = editor.getDiagram(diagramName);
+ if (result == null) {
+ editor.openDiagram(diagramName);
+ result = editor.getActiveDiagram();
+ } else {
+ editor.activateDiagram(diagramName);
+ }
+ return result;
+ }
+
+ Rectangle getBounds(EditPart editPart) {
+ GraphicalEditPart graphical = TypeUtils.as(editPart, GraphicalEditPart.class);
+ assertThat("Edit-part is not a GraphicalEditPart", graphical, notNullValue());
+
+ return graphical.getFigure().getBounds();
+ }
+}
diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/tests/NotationSyncOverrideTest.java b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/tests/NotationSyncOverrideTest.java
new file mode 100644
index 00000000000..269fa55d580
--- /dev/null
+++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/tests/NotationSyncOverrideTest.java
@@ -0,0 +1,200 @@
+/*****************************************************************************
+ * Copyright (c) 2015 Christian W. Damus and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Christian W. Damus - Initial API and implementation
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.infra.gmfdiag.common.sync.tests;
+
+import static org.eclipse.papyrus.junit.framework.runner.ScenarioRunner.verificationPoint;
+import static org.hamcrest.CoreMatchers.is;
+import static org.hamcrest.CoreMatchers.notNullValue;
+import static org.hamcrest.MatcherAssert.assertThat;
+
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart;
+import org.eclipse.papyrus.infra.tools.util.TypeUtils;
+import org.eclipse.papyrus.junit.framework.runner.Scenario;
+import org.eclipse.papyrus.junit.framework.runner.ScenarioRunner;
+import org.eclipse.papyrus.junit.utils.rules.ActiveDiagram;
+import org.eclipse.papyrus.junit.utils.rules.HouseKeeper;
+import org.eclipse.papyrus.junit.utils.rules.PapyrusEditorFixture;
+import org.eclipse.papyrus.junit.utils.rules.PluginResource;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Package;
+import org.junit.Before;
+import org.junit.Rule;
+import org.junit.rules.TestRule;
+import org.junit.runner.RunWith;
+
+/**
+ * Test suite for master/slave notation synchronization overrides.
+ */
+@RunWith(ScenarioRunner.class)
+@PluginResource("models/sync/sync-test.di")
+@ActiveDiagram("master")
+public class NotationSyncOverrideTest {
+
+ @Rule
+ public final HouseKeeper houseKeeper = new HouseKeeper();
+
+ final PapyrusEditorFixture editor = new PapyrusEditorFixture();
+
+ @Rule
+ public final TestRule sync = TestSyncFixture.compose(editor);
+
+ private Package rootPackage;
+
+ private Class class2;
+
+ private DiagramEditPart master;
+
+ private EditPart class2EP;
+
+ public NotationSyncOverrideTest() {
+ super();
+ }
+
+ @Scenario({ "move", "override", "undo", "redo" })
+ public void overrideSyncNodeLocation() {
+ // Open the slave diagram and return to the master
+ DiagramEditPart slave = activate("slave2");
+ editor.activateDiagram(master);
+
+ // Compute and actuate a resize of Class2 in the master diagram
+ final Rectangle oldBounds = getBounds(class2EP);
+ final Rectangle newBounds = oldBounds.getTranslated(20, 20);
+
+ editor.move(class2EP, newBounds.getLocation());
+
+ EditPart class2Slave = editor.requireEditPart(slave, class2);
+
+ if (verificationPoint()) {
+ assertThat(getBounds(class2Slave), is(newBounds));
+ }
+
+ // Now, in the slave diagram, move its class2
+ editor.activateDiagram(slave);
+
+ final Rectangle override = newBounds.getTranslated(-40, 40);
+ editor.move(class2Slave, override.getLocation());
+
+ // And move the shape in the master diagram again
+ editor.activateDiagram(master);
+ editor.move(class2EP, oldBounds.getLocation());
+ editor.activateDiagram(slave);
+
+ if (verificationPoint()) {
+ assertThat(getBounds(class2EP), is(oldBounds)); // The master is, indeed, moved
+ assertThat(getBounds(class2Slave), is(override)); // But the slave is overridden
+ }
+
+ editor.undo(); // Undo master move
+ editor.undo(); // Undo slave override
+ editor.undo(); // Undo master move before that
+
+ if (verificationPoint()) {
+ assertThat(getBounds(class2Slave), is(oldBounds));
+ }
+
+ editor.redo(); // Redo first master move
+ editor.redo(); // Redo slave override
+ editor.redo(); // Redo master move
+
+ if (verificationPoint()) {
+ assertThat(getBounds(class2Slave), is(override));
+ }
+ }
+
+ @Scenario({ "move", "override", "undo", "redo" })
+ public void overrideSyncNodeSize() {
+ // Open the slave diagram and return to the master
+ DiagramEditPart slave = activate("slave2");
+ editor.activateDiagram(master);
+
+ // Compute and actuate a move of Class2 in the master diagram
+ final Rectangle oldBounds = getBounds(class2EP);
+ final Rectangle newBounds = oldBounds.getResized(oldBounds.width / 2, oldBounds.height / 2);
+
+ editor.resize(class2EP, newBounds.getSize());
+
+ EditPart class2Slave = editor.requireEditPart(slave, class2);
+
+ if (verificationPoint()) {
+ assertThat(getBounds(class2Slave), is(newBounds));
+ }
+
+ // Now, in the slave diagram, resize its class2
+ editor.activateDiagram(slave);
+
+ final Rectangle override = newBounds.getResized(-oldBounds.width / 3, -oldBounds.height / 3);
+ editor.resize(class2Slave, override.getSize());
+
+ // And resize the shape in the master diagram again
+ editor.activateDiagram(master);
+ editor.resize(class2EP, oldBounds.getSize());
+ editor.activateDiagram(slave);
+
+ if (verificationPoint()) {
+ assertThat(getBounds(class2EP), is(oldBounds)); // The master is, indeed, resized
+ assertThat(getBounds(class2Slave), is(override)); // But the slave is overridden
+ }
+
+ editor.undo(); // Undo master resize
+ editor.undo(); // Undo slave override
+ editor.undo(); // Undo master resize before that
+
+ if (verificationPoint()) {
+ assertThat(getBounds(class2Slave), is(oldBounds));
+ }
+
+ editor.redo(); // Redo first master resize
+ editor.redo(); // Redo slave override
+ editor.redo(); // Redo master resize
+
+ if (verificationPoint()) {
+ assertThat(getBounds(class2Slave), is(override));
+ }
+ }
+
+ //
+ // Test framework
+ //
+
+ @Before
+ public void gatherReferences() {
+ rootPackage = editor.getModel();
+
+ class2 = (Class) rootPackage.getOwnedType("Class2");
+
+ master = editor.getActiveDiagramEditor().getDiagramEditPart();
+ class2EP = editor.requireEditPart(master, class2);
+ }
+
+ DiagramEditPart activate(String diagramName) {
+ DiagramEditPart result = editor.getDiagram(diagramName);
+ if (result == null) {
+ editor.openDiagram(diagramName);
+ result = editor.getActiveDiagram();
+ } else {
+ editor.activateDiagram(diagramName);
+ }
+ return result;
+ }
+
+ Rectangle getBounds(EditPart editPart) {
+ GraphicalEditPart graphical = TypeUtils.as(editPart, GraphicalEditPart.class);
+ assertThat("Edit-part is not a GraphicalEditPart", graphical, notNullValue());
+
+ return graphical.getFigure().getBounds();
+ }
+}
diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/tests/SyncTests.java b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/tests/SyncTests.java
new file mode 100644
index 00000000000..a4d626df09b
--- /dev/null
+++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/tests/SyncTests.java
@@ -0,0 +1,34 @@
+/*****************************************************************************
+ * Copyright (c) 2015 Christian W. Damus and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Christian W. Damus - Initial API and implementation
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.infra.gmfdiag.common.sync.tests;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+import org.junit.runners.Suite.SuiteClasses;
+
+/**
+ * Diagram-to-diagram synchronization framework test suite.
+ */
+@RunWith(Suite.class)
+@SuiteClasses({
+ MasterSlaveNotationSyncTest.class,
+ NotationSyncOverrideTest.class,
+})
+public class SyncTests {
+
+ public SyncTests() {
+ super();
+ }
+
+}
diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/tests/TestSyncFixture.java b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/tests/TestSyncFixture.java
new file mode 100644
index 00000000000..6b64d23425c
--- /dev/null
+++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/sync/tests/TestSyncFixture.java
@@ -0,0 +1,212 @@
+/*****************************************************************************
+ * Copyright (c) 2015 Christian W. Damus and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Christian W. Damus - Initial API and implementation
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.infra.gmfdiag.common.sync.tests;
+
+import static org.junit.Assert.fail;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.emf.common.command.Command;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
+import org.eclipse.papyrus.infra.gmfdiag.common.sync.ContainerChildrenSyncFeature;
+import org.eclipse.papyrus.infra.gmfdiag.common.sync.DiagramEdgesSyncFeature;
+import org.eclipse.papyrus.infra.gmfdiag.common.sync.EditPartMasterSlaveSyncBucket;
+import org.eclipse.papyrus.infra.gmfdiag.common.sync.EditPartSyncRegistry;
+import org.eclipse.papyrus.infra.gmfdiag.common.sync.NodePositionSyncFeature;
+import org.eclipse.papyrus.infra.gmfdiag.common.sync.NodeSizeSyncFeature;
+import org.eclipse.papyrus.infra.gmfdiag.common.sync.SyncStyles;
+import org.eclipse.papyrus.infra.sync.SyncBucket;
+import org.eclipse.papyrus.infra.sync.SyncItem;
+import org.eclipse.papyrus.infra.sync.SyncRegistry;
+import org.eclipse.papyrus.infra.sync.service.ISyncAction;
+import org.eclipse.papyrus.infra.sync.service.ISyncService;
+import org.eclipse.papyrus.infra.sync.service.ISyncTrigger;
+import org.eclipse.papyrus.junit.utils.rules.PapyrusEditorFixture;
+import org.eclipse.uml2.uml.Association;
+import org.eclipse.uml2.uml.Package;
+import org.junit.rules.RuleChain;
+import org.junit.rules.TestRule;
+import org.junit.rules.TestWatcher;
+import org.junit.runner.Description;
+
+/**
+ * A container of synchronization configurations for the test suite.
+ */
+public class TestSyncFixture extends TestWatcher {
+ private final PapyrusEditorFixture editor;
+
+ private static PapyrusEditorFixture current;
+
+ private TestSyncFixture(PapyrusEditorFixture editor) {
+ super();
+
+ this.editor = editor;
+ }
+
+ static TestRule compose(PapyrusEditorFixture editor) {
+ return RuleChain.outerRule(new TestSyncFixture(editor)).around(editor);
+ }
+
+ @Override
+ protected void starting(Description description) {
+ current = editor;
+ }
+
+ @Override
+ protected void finished(Description description) {
+ current = null;
+ }
+
+ public static class TestClassDiagramSyncTrigger implements ISyncTrigger {
+ public TestClassDiagramSyncTrigger() {
+ super();
+ }
+
+ public boolean isTriggeredOn(Object object) {
+ boolean result = false;
+
+ if ((current != null) && (object instanceof DiagramEditPart)) {
+ DiagramEditPart diagramEP = (DiagramEditPart) object;
+ Diagram diagram = (Diagram) diagramEP.getModel();
+ if (diagram.getElement() instanceof org.eclipse.uml2.uml.Package) {
+ Resource resource = diagram.eResource();
+ result = resource.getResourceSet() == current.getResourceSet();
+ }
+ }
+
+ return result;
+ }
+
+ public ISyncAction trigger(ISyncService syncService, Object object) {
+ return new ISyncAction() {
+
+ public IStatus perform(ISyncService syncService, Object object) {
+ DiagramEditPart diagram = (DiagramEditPart) object;
+ org.eclipse.uml2.uml.Package package_ = (org.eclipse.uml2.uml.Package) EMFHelper.getEObject(diagram);
+
+ TestDiagramSyncRegistry registry = syncService.getSyncRegistry(TestDiagramSyncRegistry.class);
+
+ switch (SyncStyles.getSyncKind((View) diagram.getModel())) {
+ case MASTER:
+ SyncBucket<org.eclipse.uml2.uml.Package, EditPart, Notification> bucket = registry.getBucket(package_);
+ if (bucket == null) {
+ bucket = new TestPackageSyncBucket(package_, diagram);
+ registry.register(bucket);
+ }
+ break;
+ case SLAVE:
+ registry.synchronize(diagram);
+ break;
+ case NONE:
+ // Pass
+ break;
+ default:
+ fail("Unsupported synchronization kind in test model");
+ }
+ return null;
+ }
+ };
+ }
+ }
+
+ public static class TestDiagramSyncRegistry extends EditPartSyncRegistry<org.eclipse.uml2.uml.Package, EditPart> {
+ public TestDiagramSyncRegistry() {
+ super();
+ }
+ }
+
+ static class TestPackageSyncBucket extends EditPartMasterSlaveSyncBucket<org.eclipse.uml2.uml.Package, EditPart> {
+ public TestPackageSyncBucket(org.eclipse.uml2.uml.Package model, DiagramEditPart master) {
+ super(model, master);
+
+ add(new ClassNodesSyncFeature(this));
+ add(new AssociationEdgesSyncFeature(this));
+ }
+ }
+
+ static class ClassNodesSyncFeature extends ContainerChildrenSyncFeature<org.eclipse.uml2.uml.Package, org.eclipse.uml2.uml.Class, EditPart> {
+ public ClassNodesSyncFeature(SyncBucket<Package, EditPart, Notification> bucket) {
+ super(bucket);
+ }
+
+ @Override
+ protected Class<? extends SyncRegistry<org.eclipse.uml2.uml.Class, EditPart, Notification>> getNestedSyncRegistryType() {
+ return ClassNodeSyncRegistry.class;
+ }
+
+ @Override
+ protected Command onTargetAdded(SyncItem<Package, EditPart> from, EObject source, SyncItem<Package, EditPart> to, final EditPart target) {
+ org.eclipse.uml2.uml.Class class_ = (org.eclipse.uml2.uml.Class) source;
+
+ final SyncRegistry<org.eclipse.uml2.uml.Class, EditPart, Notification> registry = getNestedSyncRegistry();
+ SyncBucket<org.eclipse.uml2.uml.Class, EditPart, Notification> bucket = registry.getBucket(class_);
+ if (bucket == null) {
+ EditPart master = findChild(from.getBackend(), source);
+ bucket = new ClassNodeSyncBucket(class_, master);
+ registry.register(bucket);
+ }
+
+ return synchronizingWrapper(registry, target, null);
+ }
+
+ @Override
+ protected Command onTargetRemoved(SyncItem<Package, EditPart> to, EditPart target) {
+ SyncRegistry<org.eclipse.uml2.uml.Class, EditPart, Notification> registry = getNestedSyncRegistry();
+
+ // De-synchronize this edit-part
+ registry.desynchronize(target);
+
+ return null;
+ }
+ }
+
+ public static class ClassNodeSyncRegistry extends EditPartSyncRegistry<org.eclipse.uml2.uml.Class, EditPart> {
+ public ClassNodeSyncRegistry() {
+ super();
+ }
+ }
+
+ static class ClassNodeSyncBucket extends EditPartMasterSlaveSyncBucket<org.eclipse.uml2.uml.Class, EditPart> {
+ public ClassNodeSyncBucket(org.eclipse.uml2.uml.Class model, EditPart master) {
+ super(model, master);
+
+ add(new NodePositionSyncFeature<org.eclipse.uml2.uml.Class, EditPart>(this));
+ add(new NodeSizeSyncFeature<org.eclipse.uml2.uml.Class, EditPart>(this));
+ }
+ }
+
+ static class AssociationEdgesSyncFeature extends DiagramEdgesSyncFeature<org.eclipse.uml2.uml.Package, Association, EditPart> {
+ public AssociationEdgesSyncFeature(SyncBucket<Package, EditPart, Notification> bucket) {
+ super(bucket);
+ }
+
+ @Override
+ protected Class<? extends SyncRegistry<Association, EditPart, Notification>> getNestedSyncRegistryType() {
+ return AssociationEdgeSyncRegistry.class;
+ }
+ }
+
+ public static class AssociationEdgeSyncRegistry extends EditPartSyncRegistry<Association, EditPart> {
+ public AssociationEdgeSyncRegistry() {
+ super();
+ }
+ }
+
+}
diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/tests/AllTests.java b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/tests/AllTests.java
index 44bde73b587..9cfcdab0cc4 100644
--- a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/tests/AllTests.java
+++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common.tests/src/org/eclipse/papyrus/infra/gmfdiag/common/tests/AllTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014 CEA LIST and others.
+ * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -8,9 +8,11 @@
*
* Contributors:
* Christian W. Damus (CEA) - initial API and implementation
+ * Christian W. Damus - bug 465416
*/
package org.eclipse.papyrus.infra.gmfdiag.common.tests;
+import org.eclipse.papyrus.infra.gmfdiag.common.sync.tests.SyncTests;
import org.eclipse.papyrus.infra.gmfdiag.common.utils.GMFUnsafeTest;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@@ -22,18 +24,18 @@ import org.junit.runners.Suite.SuiteClasses;
*/
@RunWith(Suite.class)
@SuiteClasses({
-// {oep.commands}
-LoadExpansionModel.class,
-ExpansionAddCompartment.class,
-ExpansionAddChildLabel.class,
-ExpansionAddBorderItem.class,
-ExpansionAddCompartmentWithKind.class,
-ExpansionAddLink.class,
-ExpansionDropElements.class,
-AssistantUsage.class,
-GMFUnsafeTest.class
-}
-)
+ // {oep.commands}
+ LoadExpansionModel.class,
+ ExpansionAddCompartment.class,
+ ExpansionAddChildLabel.class,
+ ExpansionAddBorderItem.class,
+ ExpansionAddCompartmentWithKind.class,
+ ExpansionAddLink.class,
+ ExpansionDropElements.class,
+ AssistantUsage.class,
+ GMFUnsafeTest.class,
+ SyncTests.class
+})
public class AllTests {
}
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/resource/model.di b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/resources/model/namedElementsTest/model.di
index 8634d4c00e0..8634d4c00e0 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.canonical/resource/model.di
+++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/resources/model/namedElementsTest/model.di
diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/resources/model/namedElementsTest/model.notation b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/resources/model/namedElementsTest/model.notation
new file mode 100644
index 00000000000..0bd30352cd8
--- /dev/null
+++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/resources/model/namedElementsTest/model.notation
@@ -0,0 +1,194 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:css="http://www.eclipse.org/papyrus/infra/gmfdiag/css" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/papyrus/infra/viewpoints/policy/style" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML">
+ <notation:Diagram xmi:id="_bzQ40P76EeSxqMY0na5WMQ" type="PapyrusUMLClassDiagram" name="Class Diagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_QVnUUP77EeSStPeINaOwzA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_QV7dYP77EeSStPeINaOwzA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_QV7dYf77EeSStPeINaOwzA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_QV7dYv77EeSStPeINaOwzA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_QV7dY_77EeSStPeINaOwzA" type="7017">
+ <children xmi:type="notation:Shape" xmi:id="_hxeHMP77EeSStPeINaOwzA" type="3012">
+ <element xmi:type="uml:Property" href="model.uml#_hxLMQP77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_hxeHMf77EeSStPeINaOwzA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_i3vywP77EeSStPeINaOwzA" type="3012">
+ <element xmi:type="uml:Property" href="model.uml#_i3mBwP77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_i3vywf77EeSStPeINaOwzA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_jiy64P77EeSStPeINaOwzA" type="3012">
+ <element xmi:type="uml:Property" href="model.uml#_jiyT0P77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_jiy64f77EeSStPeINaOwzA"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_uff5AP77EeSStPeINaOwzA" type="3012">
+ <element xmi:type="uml:Property" href="model.uml#_ufWvEP77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_uff5Af77EeSStPeINaOwzA"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_QV7dZP77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_QV7dZf77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_QV7dZv77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QV7dZ_77EeSStPeINaOwzA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_QV7daP77EeSStPeINaOwzA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_QV7daf77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_QV7dav77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_QV7da_77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QV7dbP77EeSStPeINaOwzA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_QV7dbf77EeSStPeINaOwzA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_QV7dbv77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_QV7db_77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_QV7dcP77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QV7dcf77EeSStPeINaOwzA"/>
+ </children>
+ <element xmi:type="uml:Class" href="model.uml#_QTkF4P77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_QVnUUf77EeSStPeINaOwzA" x="262" y="70"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_lXyGkP77EeSStPeINaOwzA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_lXyGkv77EeSStPeINaOwzA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lXyGk_77EeSStPeINaOwzA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lXyGlP77EeSStPeINaOwzA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_lXyGlf77EeSStPeINaOwzA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_lXyGlv77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_lXyGl_77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_lXyGmP77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lXyGmf77EeSStPeINaOwzA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_lXyGmv77EeSStPeINaOwzA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_lXyGm_77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_lXyGnP77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_lXyGnf77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lXyGnv77EeSStPeINaOwzA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_lXyGn_77EeSStPeINaOwzA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_lXyGoP77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_lXyGof77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_lXyGov77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lXyGo_77EeSStPeINaOwzA"/>
+ </children>
+ <element xmi:type="uml:Class" href="model.uml#_lXoVkP77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lXyGkf77EeSStPeINaOwzA" x="711" y="70"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_lkV74f77EeSStPeINaOwzA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_lkV74_77EeSStPeINaOwzA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_lkWi8P77EeSStPeINaOwzA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_lkWi8f77EeSStPeINaOwzA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_lkWi8v77EeSStPeINaOwzA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_lkWi8_77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_lkWi9P77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_lkWi9f77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lkWi9v77EeSStPeINaOwzA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_lkWi9_77EeSStPeINaOwzA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_lkWi-P77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_lkWi-f77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_lkWi-v77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lkWi-_77EeSStPeINaOwzA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_lkWi_P77EeSStPeINaOwzA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_lkWi_f77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_lkWi_v77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_lkWi__77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lkWjAP77EeSStPeINaOwzA"/>
+ </children>
+ <element xmi:type="uml:Class" href="model.uml#_lkV74P77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_lkV74v77EeSStPeINaOwzA" x="711" y="208"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_xZT-wf77EeSStPeINaOwzA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_xZT-w_77EeSStPeINaOwzA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_xZT-xP77EeSStPeINaOwzA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_xZT-xf77EeSStPeINaOwzA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_xZT-xv77EeSStPeINaOwzA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_xZT-x_77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_xZT-yP77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_xZT-yf77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xZT-yv77EeSStPeINaOwzA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_xZT-y_77EeSStPeINaOwzA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_xZT-zP77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_xZT-zf77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_xZT-zv77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xZT-z_77EeSStPeINaOwzA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_xZT-0P77EeSStPeINaOwzA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_xZT-0f77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_xZT-0v77EeSStPeINaOwzA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_xZT-0_77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xZT-1P77EeSStPeINaOwzA"/>
+ </children>
+ <element xmi:type="uml:Class" href="model.uml#_xZT-wP77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xZT-wv77EeSStPeINaOwzA" x="711" y="349"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_9x2owP77EeSStPeINaOwzA" type="2012">
+ <children xmi:type="notation:DecorationNode" xmi:id="_9x2owv77EeSStPeINaOwzA" type="5038"/>
+ <element xmi:type="uml:Comment" href="model.uml#_9xte0P77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_9x2owf77EeSStPeINaOwzA" x="888" y="236" height="22"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_-BeZIP77EeSStPeINaOwzA" type="2012">
+ <children xmi:type="notation:DecorationNode" xmi:id="_-BeZIv77EeSStPeINaOwzA" type="5038"/>
+ <element xmi:type="uml:Comment" href="model.uml#_-BdyEP77EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_-BeZIf77EeSStPeINaOwzA" x="888" y="373" height="22"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_APMN4P78EeSStPeINaOwzA" type="2012">
+ <children xmi:type="notation:DecorationNode" xmi:id="_APMN4v78EeSStPeINaOwzA" type="5038"/>
+ <element xmi:type="uml:Comment" href="model.uml#_APDD8P78EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_APMN4f78EeSStPeINaOwzA" x="888" y="97" height="22"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_FlpVMf78EeSStPeINaOwzA" type="2012">
+ <children xmi:type="notation:DecorationNode" xmi:id="_FlzGMP78EeSStPeINaOwzA" type="5038"/>
+ <element xmi:type="uml:Comment" href="model.uml#_FlpVMP78EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_FlpVMv78EeSStPeINaOwzA" x="42" y="102"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_N7EIAf78EeSStPeINaOwzA" type="2012">
+ <children xmi:type="notation:DecorationNode" xmi:id="_N7EIA_78EeSStPeINaOwzA" type="5038"/>
+ <element xmi:type="uml:Comment" href="model.uml#_N7EIAP78EeSStPeINaOwzA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_N7EIAv78EeSStPeINaOwzA" x="60" y="236"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_bzQ40f76EeSxqMY0na5WMQ" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_bzQ40v76EeSxqMY0na5WMQ"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_bzQ40_76EeSxqMY0na5WMQ">
+ <owner xmi:type="uml:Model" href="model.uml#_bx7cEP76EeSxqMY0na5WMQ"/>
+ </styles>
+ <styles xmi:type="notation:EObjectListValueStyle" xmi:id="_3yJwIP77EeSStPeINaOwzA" name="css_stylesheets" eObjectListValue="_3yK-QP77EeSStPeINaOwzA"/>
+ <element xmi:type="uml:Model" href="model.uml#_bx7cEP76EeSxqMY0na5WMQ"/>
+ <edges xmi:type="notation:Connector" xmi:id="_DwbgAP78EeSStPeINaOwzA" type="4013" source="_APMN4P78EeSStPeINaOwzA" target="_lXyGkP77EeSStPeINaOwzA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_DwbgAf78EeSStPeINaOwzA"/>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_DwbgAv78EeSStPeINaOwzA" points="[-70, 6, 135, -20]$[-198, -24, 7, -50]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_DxCkAP78EeSStPeINaOwzA" id="(0.0,0.3333333333333333)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_DxCkAf78EeSStPeINaOwzA" id="(1.0,0.36)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_ELIfAP78EeSStPeINaOwzA" type="4013" source="_9x2owP77EeSStPeINaOwzA" target="_lkV74f77EeSStPeINaOwzA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_ELIfAf78EeSStPeINaOwzA"/>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_ELIfAv78EeSStPeINaOwzA" points="[-50, 4, 128, -12]$[-228, 16, -50, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ELS3EP78EeSStPeINaOwzA" id="(0.0,0.6666666666666666)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ELS3Ef78EeSStPeINaOwzA" id="(1.0,0.46)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_EbkHsP78EeSStPeINaOwzA" type="4013" source="_-BeZIP77EeSStPeINaOwzA" target="_xZT-wf77EeSStPeINaOwzA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_EbkHsf78EeSStPeINaOwzA"/>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_EbkHsv78EeSStPeINaOwzA" points="[-50, 8, 127, -5]$[-127, 8, 50, -5]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Ebt4sP78EeSStPeINaOwzA" id="(0.0,0.4444444444444444)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Ebt4sf78EeSStPeINaOwzA" id="(1.0,0.42)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_F_rl0P78EeSStPeINaOwzA" type="4013" source="_FlpVMf78EeSStPeINaOwzA" target="_QVnUUP77EeSStPeINaOwzA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_F_rl0f78EeSStPeINaOwzA"/>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_F_rl0v78EeSStPeINaOwzA" points="[37, 6, -162, 0]$[150, 0, -49, -6]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_GAT38P78EeSStPeINaOwzA" id="(1.0,0.4444444444444444)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_GAT38f78EeSStPeINaOwzA" id="(0.0,0.4444444444444444)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_OSphkP78EeSStPeINaOwzA" type="4013" source="_N7EIAf78EeSStPeINaOwzA" target="_QVnUUP77EeSStPeINaOwzA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_OSphkf78EeSStPeINaOwzA"/>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_OSphkv78EeSStPeINaOwzA" points="[0, 0, -133, 53]$[133, 0, 0, 53]$[133, -53, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_OSz5oP78EeSStPeINaOwzA" id="(1.0,0.5166666666666667)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_OSz5of78EeSStPeINaOwzA" id="(0.16080402010050251,1.0)"/>
+ </edges>
+ </notation:Diagram>
+ <css:ModelStyleSheets xmi:id="_1QY-AP77EeSStPeINaOwzA"/>
+ <css:EmbeddedStyleSheet xmi:id="_3yK-QP77EeSStPeINaOwzA" label="" content="Property[type] {&#xD;&#xA;&#x9;bold: true;&#xD;&#xA;}&#xD;&#xA;&#xD;&#xA;[type=NamedClass]{&#xD;&#xA;&#x9;fontColor: red;&#x9;&#xD;&#xA;}&#xD;&#xA;"/>
+</xmi:XMI>
diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/resources/model/namedElementsTest/model.uml b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/resources/model/namedElementsTest/model.uml
new file mode 100644
index 00000000000..fb950fbbc96
--- /dev/null
+++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/resources/model/namedElementsTest/model.uml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<uml:Model xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="_bx7cEP76EeSxqMY0na5WMQ" name="RootElement">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_9xte0P77EeSStPeINaOwzA" annotatedElement="_lkV74P77EeSStPeINaOwzA">
+ <body>name = null</body>
+ </ownedComment>
+ <ownedComment xmi:type="uml:Comment" xmi:id="_-BdyEP77EeSStPeINaOwzA" annotatedElement="_xZT-wP77EeSStPeINaOwzA">
+ <body>name = &quot;&quot;</body>
+ </ownedComment>
+ <ownedComment xmi:type="uml:Comment" xmi:id="_APDD8P78EeSStPeINaOwzA" annotatedElement="_lXoVkP77EeSStPeINaOwzA">
+ <body>name = &quot;NamedClass&quot;</body>
+ </ownedComment>
+ <ownedComment xmi:type="uml:Comment" xmi:id="_FlpVMP78EeSStPeINaOwzA" annotatedElement="_QTkF4P77EeSStPeINaOwzA">
+ <body>Untyped: not bold&#xD;
+unnamedType: bold&#xD;
+namedType: bold&#xD;
+emptyNameType: bold</body>
+ </ownedComment>
+ <ownedComment xmi:type="uml:Comment" xmi:id="_N7EIAP78EeSStPeINaOwzA" annotatedElement="_QTkF4P77EeSStPeINaOwzA">
+ <body>namedType: red</body>
+ </ownedComment>
+ <packagedElement xmi:type="uml:Class" xmi:id="_QTkF4P77EeSStPeINaOwzA" name="Class1">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_hxLMQP77EeSStPeINaOwzA" name="untyped"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_i3mBwP77EeSStPeINaOwzA" name="unnamedType" type="_lkV74P77EeSStPeINaOwzA"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_jiyT0P77EeSStPeINaOwzA" name="namedType" type="_lXoVkP77EeSStPeINaOwzA"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_ufWvEP77EeSStPeINaOwzA" name="emptyNameType" type="_xZT-wP77EeSStPeINaOwzA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_lXoVkP77EeSStPeINaOwzA" name="NamedClass"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_lkV74P77EeSStPeINaOwzA"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_xZT-wP77EeSStPeINaOwzA" name=""/>
+</uml:Model>
diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/src/org/eclipse/papyrus/infra/gmfdiag/css/tests/tests/AllTests.java b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/src/org/eclipse/papyrus/infra/gmfdiag/css/tests/tests/AllTests.java
index 3b32fb8c435..9ae277ec07a 100644
--- a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/src/org/eclipse/papyrus/infra/gmfdiag/css/tests/tests/AllTests.java
+++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/src/org/eclipse/papyrus/infra/gmfdiag/css/tests/tests/AllTests.java
@@ -26,7 +26,8 @@ import org.junit.runners.Suite.SuiteClasses;
CSSSupportTest.class,
CSSProjectStylesheetsTest.class,
CSSWorkspaceThemeTest.class,
- InferredNotationStylesTest.class
+ InferredNotationStylesTest.class,
+ CSSNamedElementsTest.class
})
public class AllTests {
// Test suite
diff --git a/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/src/org/eclipse/papyrus/infra/gmfdiag/css/tests/tests/CSSNamedElementsTest.java b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/src/org/eclipse/papyrus/infra/gmfdiag/css/tests/tests/CSSNamedElementsTest.java
new file mode 100644
index 00000000000..61dc7ed7265
--- /dev/null
+++ b/tests/junit/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.css.tests/src/org/eclipse/papyrus/infra/gmfdiag/css/tests/tests/CSSNamedElementsTest.java
@@ -0,0 +1,120 @@
+/*****************************************************************************
+ * Copyright (c) 2015 CEA LIST and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.infra.gmfdiag.css.tests.tests;
+
+import java.util.Iterator;
+
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.gmf.runtime.notation.Shape;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
+import org.eclipse.papyrus.infra.gmfdiag.css.engine.WorkspaceCSSEngine;
+import org.eclipse.papyrus.infra.gmfdiag.css.helper.CSSHelper;
+import org.eclipse.papyrus.infra.gmfdiag.css.notation.CSSDiagram;
+import org.eclipse.papyrus.infra.gmfdiag.css.preferences.ThemePreferences;
+import org.eclipse.papyrus.infra.gmfdiag.css.tests.Activator;
+import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest;
+import org.eclipse.papyrus.junit.utils.rules.HouseKeeper;
+import org.eclipse.uml2.uml.NamedElement;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Rule;
+import org.junit.Test;
+
+/**
+ * @author Camille Letavernier
+ *
+ */
+public class CSSNamedElementsTest extends AbstractPapyrusTest {
+
+ @Rule
+ public final HouseKeeper houseKeeper = new HouseKeeper();
+
+ private CSSDiagram diagram;
+
+ @BeforeClass
+ public static void initCSSTheme() {
+ IPreferenceStore cssThemePreferences = org.eclipse.papyrus.infra.gmfdiag.css.Activator.getDefault().getPreferenceStore();
+ cssThemePreferences.setValue(ThemePreferences.CURRENT_THEME, "org.eclipse.papyrus.css.papyrus_theme");
+ WorkspaceCSSEngine.instance.reset();
+ }
+
+ @Before
+ public void init() throws Exception {
+ ResourceSet resourceSet = houseKeeper.createResourceSet();
+ CSSHelper.installCSSSupport(resourceSet);
+
+ URI modelURI = URI.createPlatformPluginURI(Activator.PLUGIN_ID + "/resources/model/namedElementsTest/model.notation", true);
+
+ Diagram diagram = (Diagram) EMFHelper.loadEMFModel(resourceSet, modelURI);
+ Assert.assertNotNull("Cannot find the model", diagram);
+ Assert.assertTrue("CSS are not activated on this resource", diagram instanceof CSSDiagram);
+ this.diagram = (CSSDiagram) diagram;
+ }
+
+ @Test
+ public void testNamedReference() {
+ Shape namedType = findShape("namedType");
+ Assert.assertEquals("The color should be red", 255, namedType.getFontColor());
+ Assert.assertTrue("The property should be bold", namedType.isBold());
+ }
+
+ @Test
+ public void testUnnamedReference() {
+ Shape namedType = findShape("unnamedType");
+ Assert.assertNotEquals("The color should not be red", 255, namedType.getFontColor());
+ Assert.assertTrue("The property should be bold", namedType.isBold());
+ }
+
+ @Test
+ public void testEmptyNameReference() {
+ Shape namedType = findShape("emptyNameType");
+ Assert.assertNotEquals("The color should not be red", 255, namedType.getFontColor());
+ Assert.assertTrue("The property should be bold", namedType.isBold());
+ }
+
+ @Test
+ public void testUntypedReference() {
+ Shape namedType = findShape("untyped");
+ Assert.assertNotEquals("The color should not be red", 255, namedType.getFontColor());
+ Assert.assertFalse("The property should not be bold", namedType.isBold());
+ }
+
+
+
+ protected Shape findShape(String elementName) {
+ Iterator<EObject> allElements = diagram.eAllContents();
+ while (allElements.hasNext()) {
+ EObject viewObject = allElements.next();
+ if (!(viewObject instanceof Shape)) {
+ continue;
+ }
+
+ Shape view = (Shape) viewObject;
+ if (view.getElement() instanceof NamedElement) {
+ NamedElement element = (NamedElement) view.getElement();
+ if (elementName.equals(element.getName())) {
+ return view;
+ }
+ }
+ }
+
+ Assert.fail("Cannot find the view associated to " + elementName);
+ return null;
+ }
+}
diff --git a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/rules/PapyrusEditorFixture.java b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/rules/PapyrusEditorFixture.java
index 912f0d9504d..41921996135 100644
--- a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/rules/PapyrusEditorFixture.java
+++ b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.utils/src/org/eclipse/papyrus/junit/utils/rules/PapyrusEditorFixture.java
@@ -9,11 +9,13 @@
* Contributors:
* Christian W. Damus (CEA) - Initial API and implementation
* Christian W. Damus - bug 433206
+ * Christian W. Damus - bug 465416
*
*/
package org.eclipse.papyrus.junit.utils.rules;
import static org.hamcrest.CoreMatchers.instanceOf;
+import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.fail;
@@ -23,12 +25,20 @@ import java.util.Collection;
import java.util.Iterator;
import java.util.List;
+import org.eclipse.core.commands.operations.IOperationHistoryListener;
+import org.eclipse.core.commands.operations.IUndoContext;
+import org.eclipse.core.commands.operations.IUndoableOperation;
+import org.eclipse.core.commands.operations.OperationHistoryEvent;
import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
import org.eclipse.e4.ui.model.application.ui.MUIElement;
import org.eclipse.e4.ui.model.application.ui.advanced.MPlaceholder;
import org.eclipse.e4.ui.model.application.ui.basic.MPart;
@@ -36,15 +46,22 @@ import org.eclipse.e4.ui.model.application.ui.basic.MPartSashContainerElement;
import org.eclipse.e4.ui.model.application.ui.basic.MPartStack;
import org.eclipse.e4.ui.model.application.ui.basic.MStackElement;
import org.eclipse.e4.ui.workbench.modeling.EModelService;
+import org.eclipse.emf.common.command.Command;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.emf.workspace.IWorkspaceCommandStack;
import org.eclipse.gef.EditPart;
import org.eclipse.gef.GraphicalEditPart;
import org.eclipse.gef.RootEditPart;
import org.eclipse.gef.ui.palette.PaletteViewer;
import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
+import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
+import org.eclipse.gmf.runtime.diagram.ui.commands.SetBoundsCommand;
import org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editparts.IDiagramPreferenceSupport;
import org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor;
@@ -66,6 +83,7 @@ import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
import org.eclipse.papyrus.infra.core.utils.AdapterUtils;
import org.eclipse.papyrus.infra.core.utils.ServiceUtils;
import org.eclipse.papyrus.infra.gmfdiag.common.model.NotationModel;
+import org.eclipse.papyrus.infra.tools.util.TypeUtils;
import org.eclipse.papyrus.junit.utils.EditorUtils;
import org.eclipse.papyrus.junit.utils.JUnitUtils;
import org.eclipse.papyrus.junit.utils.tests.AbstractEditorTest;
@@ -165,6 +183,24 @@ public class PapyrusEditorFixture extends AbstractModelFixture<TransactionalEdit
}
super.starting(description);
+
+ // Ensure consistency of undo/redo with EMF operations
+ final IWorkspaceCommandStack stack = (IWorkspaceCommandStack) getEditingDomain().getCommandStack();
+ final IUndoContext emfContext = stack.getDefaultUndoContext();
+ stack.getOperationHistory().addOperationHistoryListener(new IOperationHistoryListener() {
+ @Override
+ public void historyNotification(OperationHistoryEvent event) {
+ if ((event.getEventType() == OperationHistoryEvent.DONE) && (activeDiagramEditor != null)) {
+ IUndoContext diagramContext = activeDiagramEditor.getDiagramEditDomain().getDiagramCommandStack().getUndoContext();
+ if (diagramContext != null) {
+ IUndoableOperation undo = event.getOperation();
+ if ((undo != null) && !undo.hasContext(emfContext)) {
+ undo.addContext(emfContext);
+ }
+ }
+ }
+ }
+ });
}
@Override
@@ -455,7 +491,46 @@ public class PapyrusEditorFixture extends AbstractModelFixture<TransactionalEdit
public void accept(IEditorPage page) {
if (name.equals(page.getPageTitle()) && (page.getIEditorPart() instanceof DiagramEditorWithFlyOutPalette)) {
select[0] = page;
- activeDiagramEditor = (DiagramEditorWithFlyOutPalette) page.getIEditorPart();
+ setActiveDiagramEditor((DiagramEditorWithFlyOutPalette) page.getIEditorPart());
+ }
+ }
+
+ @Override
+ public void accept(IComponentPage page) {
+ // Pass
+ }
+ });
+
+ if (select[0] != null) {
+ sashContainer.selectPage(select[0]);
+ flushDisplayEvents();
+ }
+
+ return this;
+ }
+
+ private void setActiveDiagramEditor(DiagramEditorWithFlyOutPalette editor) {
+ activeDiagramEditor = editor;
+ }
+
+ public PapyrusEditorFixture activateDiagram(DiagramEditPart diagram) {
+ return activateDiagram(editor, diagram);
+ }
+
+ public PapyrusEditorFixture activateDiagram(IMultiDiagramEditor editor, final DiagramEditPart diagram) {
+ activate(editor);
+
+ final ISashWindowsContainer sashContainer = AdapterUtils.adapt(editor, ISashWindowsContainer.class, null);
+ final org.eclipse.papyrus.infra.core.sasheditor.editor.IPage[] select = { null };
+
+ sashContainer.visit(new IPageVisitor() {
+
+ @Override
+ public void accept(IEditorPage page) {
+ DiagramEditorWithFlyOutPalette nested = TypeUtils.as(page.getIEditorPart(), DiagramEditorWithFlyOutPalette.class);
+ if ((nested != null) && (nested.getDiagramEditPart() == diagram)) {
+ select[0] = page;
+ setActiveDiagramEditor(nested);
}
}
@@ -486,6 +561,8 @@ public class PapyrusEditorFixture extends AbstractModelFixture<TransactionalEdit
Diagram diagram = notation.getDiagram(name);
ServiceUtils.getInstance().getIPageManager(editor.getServicesRegistry()).openPage(diagram);
flushDisplayEvents();
+
+ activateDiagram(editor, name);
} catch (Exception e) {
throw new IllegalStateException("Cannot initialize test", e);
}
@@ -530,6 +607,7 @@ public class PapyrusEditorFixture extends AbstractModelFixture<TransactionalEdit
activeEditor = ((IMultiDiagramEditor) activeEditor).getActiveEditor();
if (activeEditor instanceof DiagramEditorWithFlyOutPalette) {
result = (DiagramEditorWithFlyOutPalette) activeEditor;
+ setActiveDiagramEditor(result);
}
}
}
@@ -539,6 +617,38 @@ public class PapyrusEditorFixture extends AbstractModelFixture<TransactionalEdit
return result;
}
+ public DiagramEditPart getActiveDiagram() {
+ return getActiveDiagramEditor().getDiagramEditPart();
+ }
+
+ public DiagramEditPart getDiagram(String name) {
+ return getDiagram(editor, name);
+ }
+
+ public DiagramEditPart getDiagram(IMultiDiagramEditor editor, final String name) {
+ final ISashWindowsContainer sashContainer = AdapterUtils.adapt(editor, ISashWindowsContainer.class, null);
+ final org.eclipse.papyrus.infra.core.sasheditor.editor.IPage[] matchedPage = { null };
+
+ sashContainer.visit(new IPageVisitor() {
+
+ @Override
+ public void accept(IEditorPage page) {
+ if (name.equals(page.getPageTitle()) && (page.getIEditorPart() instanceof DiagramEditorWithFlyOutPalette)) {
+ matchedPage[0] = page;
+ }
+ }
+
+ @Override
+ public void accept(IComponentPage page) {
+ // Pass
+ }
+ });
+
+ IEditorPage editorPage = TypeUtils.as(matchedPage[0], IEditorPage.class);
+ IDiagramWorkbenchPart diagramPart = (editorPage == null) ? null : TypeUtils.as(editorPage.getIEditorPart(), IDiagramWorkbenchPart.class);
+ return (diagramPart == null) ? null : diagramPart.getDiagramEditPart();
+ }
+
public EditPart findEditPart(EObject modelElement) {
return findEditPart(getActiveDiagramEditor(), modelElement);
}
@@ -602,26 +712,85 @@ public class PapyrusEditorFixture extends AbstractModelFixture<TransactionalEdit
}
- private EditPart findEditPart(EditPart editPart, EObject modelElement) {
+ /**
+ * Find an edit-part for a model element in a particular {@code scope}.
+ *
+ * @param scope
+ * an edit part in which to search (its children) for an edit-part
+ * @param modelElement
+ * the model element visualized by the edit-part to search for
+ *
+ * @return the matching edit-part, or {@code null} if none is found in the {@code scope}
+ */
+ public EditPart findEditPart(EditPart scope, EObject modelElement) {
EditPart result = null;
- Optional<View> view = AdapterUtils.adapt(editPart, View.class);
+ Optional<View> view = AdapterUtils.adapt(scope, View.class);
if (view.isPresent() && (view.get().getElement() == modelElement)) {
- result = editPart;
+ result = scope;
}
if (result == null) {
// Search children
- for (Iterator<?> iter = editPart.getChildren().iterator(); (result == null) && iter.hasNext();) {
+ for (Iterator<?> iter = scope.getChildren().iterator(); (result == null) && iter.hasNext();) {
result = findEditPart((EditPart) iter.next(), modelElement);
}
}
- if ((result == null) && (editPart instanceof GraphicalEditPart)) {
+ if ((result == null) && (scope instanceof GraphicalEditPart)) {
// Search edges
- for (Iterator<?> iter = ((GraphicalEditPart) editPart).getSourceConnections().iterator(); (result == null) && iter.hasNext();) {
+ for (Iterator<?> iter = ((GraphicalEditPart) scope).getSourceConnections().iterator(); (result == null) && iter.hasNext();) {
result = findEditPart((EditPart) iter.next(), modelElement);
}
+ if (result == null) {
+ for (Iterator<?> iter = ((GraphicalEditPart) scope).getTargetConnections().iterator(); (result == null) && iter.hasNext();) {
+ result = findEditPart((EditPart) iter.next(), modelElement);
+ }
+ }
+ }
+
+ return result;
+ }
+
+ /**
+ * Require an edit-part for a model element in a particular {@code scope}.
+ *
+ * @param scope
+ * an edit part in which to search (its children) for an edit-part
+ * @param modelElement
+ * the model element visualized by the edit-part to search for
+ *
+ * @return the matching edit-part
+ *
+ * @throws AssertionError
+ * if the required edit-part is found in the {@code scope}
+ */
+ public EditPart requireEditPart(EditPart scope, EObject modelElement) {
+ EditPart result = findEditPart(scope, modelElement);
+ if (result == null) {
+ String label = getLabel(modelElement);
+ fail(String.format("No edit-part found for \"%s\" in %s", label, scope));
+ }
+ return result;
+ }
+
+ public String getLabel(EObject object) {
+ String result = null;
+
+ try {
+ EditingDomain domain = ServiceUtils.getInstance().getTransactionalEditingDomain(editor.getServicesRegistry());
+ if (domain instanceof AdapterFactoryEditingDomain) {
+ IItemLabelProvider labels = (IItemLabelProvider) ((AdapterFactoryEditingDomain) domain).getAdapterFactory().adapt(object, IItemLabelProvider.class);
+ if (labels != null) {
+ result = labels.getText(object);
+ }
+ }
+ } catch (ServiceException e) {
+ // Doesn't matter
+ }
+
+ if (result == null) {
+ result = String.valueOf(object);
}
return result;
@@ -660,6 +829,45 @@ public class PapyrusEditorFixture extends AbstractModelFixture<TransactionalEdit
editPart.getViewer().getSelectionManager().deselect(editPart);
}
+ public void move(EditPart editPart, Point newLocation) {
+ execute(new ICommandProxy(new SetBoundsCommand(getEditingDomain(), "Move Node", editPart, newLocation)));
+ }
+
+ public void resize(EditPart editPart, Dimension newSize) {
+ execute(new ICommandProxy(new SetBoundsCommand(getEditingDomain(), "Resize Node", editPart, newSize)));
+ }
+
+ public void execute(org.eclipse.gef.commands.Command command) {
+ assertThat("Command not executable", command.canExecute(), is(true));
+ getActiveDiagramEditor().getDiagramEditDomain().getDiagramCommandStack().execute(command);
+ flushDisplayEvents();
+ }
+
+ @Override
+ public void execute(Command command) {
+ super.execute(command);
+ flushDisplayEvents();
+ }
+
+ @Override
+ public IStatus execute(IUndoableOperation operation, IProgressMonitor monitor, IAdaptable info) {
+ IStatus result = super.execute(operation, monitor, info);
+ flushDisplayEvents();
+ return result;
+ }
+
+ @Override
+ public void undo() {
+ super.undo();
+ flushDisplayEvents();
+ }
+
+ @Override
+ public void redo() {
+ super.redo();
+ flushDisplayEvents();
+ }
+
public PaletteViewer getPalette() {
return getPalette(getActiveDiagramEditor());
}
diff --git a/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests.launch b/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests.launch
index 3625fbbeb45..2e76a5f4eff 100644
--- a/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests.launch
+++ b/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests.launch
@@ -1,45 +1,42 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
-<booleanAttribute key="append.args" value="true"/>
-<booleanAttribute key="askclear" value="false"/>
-<booleanAttribute key="automaticAdd" value="true"/>
-<booleanAttribute key="automaticValidate" value="false"/>
-<stringAttribute key="bootstrap" value=""/>
-<stringAttribute key="checked" value="[NONE]"/>
-<booleanAttribute key="clearConfig" value="true"/>
-<booleanAttribute key="clearws" value="true"/>
-<booleanAttribute key="clearwslog" value="false"/>
-<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
-<booleanAttribute key="default" value="true"/>
-<booleanAttribute key="includeOptional" value="true"/>
-<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
-<listEntry value="/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/suites/AllTests.java"/>
-</listAttribute>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
-<listEntry value="1"/>
-</listAttribute>
-<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
-</listAttribute>
-<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
-<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
-<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
-<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
-<stringAttribute key="org.eclipse.jdt.launching.JAVA_COMMAND" value="java"/>
-<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
-<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.papyrus.sysml.diagram.blockdefinition.tests.suites.AllTests"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.papyrus.sysml.diagram.blockdefinition.tests"/>
-<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-ea -XX:PermSize=512M -XX:MaxPermSize=512M -Xms40m -Xmx4096m&#13;&#10;-XX:+CMSClassUnloadingEnabled"/>
-<stringAttribute key="pde.version" value="3.3"/>
-<stringAttribute key="product" value="org.eclipse.sdk.ide"/>
-<booleanAttribute key="run_in_ui_thread" value="true"/>
-<booleanAttribute key="show_selected_only" value="false"/>
-<booleanAttribute key="tracing" value="false"/>
-<booleanAttribute key="useCustomFeatures" value="false"/>
-<booleanAttribute key="useDefaultConfig" value="true"/>
-<booleanAttribute key="useDefaultConfigArea" value="false"/>
-<booleanAttribute key="useProduct" value="true"/>
-</launchConfiguration>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
+<booleanAttribute key="append.args" value="true"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="true"/>
+<booleanAttribute key="clearws" value="true"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
+<booleanAttribute key="default" value="true"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.eclipse.papyrus.sysml.diagram.blockdefinition.tests/src/org/eclipse/papyrus/sysml/diagram/blockdefinition/tests/suites/AllTests.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
+<stringAttribute key="org.eclipse.jdt.launching.JAVA_COMMAND" value="java"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.papyrus.sysml.diagram.blockdefinition.tests.suites.AllTests"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.papyrus.sysml.diagram.blockdefinition.tests"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-ea -XX:PermSize=512M -XX:MaxPermSize=512M -Xms40m -Xmx4096m&#13;&#10;-XX:+CMSClassUnloadingEnabled"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="org.eclipse.sdk.ide"/>
+<booleanAttribute key="run_in_ui_thread" value="true"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useCustomFeatures" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="true"/>
+</launchConfiguration>
diff --git a/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock.tests/org.eclipse.papyrus.sysml.diagram.internalblock.tests.launch b/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock.tests/org.eclipse.papyrus.sysml.diagram.internalblock.tests.launch
index 97e3fb9cb78..5688bdd4d8c 100644
--- a/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock.tests/org.eclipse.papyrus.sysml.diagram.internalblock.tests.launch
+++ b/tests/junit/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock.tests/org.eclipse.papyrus.sysml.diagram.internalblock.tests.launch
@@ -1,45 +1,42 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
-<booleanAttribute key="append.args" value="true"/>
-<booleanAttribute key="askclear" value="false"/>
-<booleanAttribute key="automaticAdd" value="true"/>
-<booleanAttribute key="automaticValidate" value="false"/>
-<stringAttribute key="bootstrap" value=""/>
-<stringAttribute key="checked" value="[NONE]"/>
-<booleanAttribute key="clearConfig" value="true"/>
-<booleanAttribute key="clearws" value="true"/>
-<booleanAttribute key="clearwslog" value="false"/>
-<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
-<booleanAttribute key="default" value="true"/>
-<booleanAttribute key="includeOptional" value="true"/>
-<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
-<listEntry value="/org.eclipse.papyrus.sysml.diagram.internalblock.tests/src/org/eclipse/papyrus/sysml/diagram/internalblock/tests/suites/AllTests.java"/>
-</listAttribute>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
-<listEntry value="1"/>
-</listAttribute>
-<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
-</listAttribute>
-<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
-<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
-<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
-<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
-<stringAttribute key="org.eclipse.jdt.launching.JAVA_COMMAND" value="java"/>
-<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
-<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.papyrus.sysml.diagram.internalblock.tests.suites.AllTests"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.papyrus.sysml.diagram.internalblock.tests"/>
-<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-ea -XX:PermSize=512M -XX:MaxPermSize=512M -Xms40m -Xmx4096m&#13;&#10;-XX:+CMSClassUnloadingEnabled"/>
-<stringAttribute key="pde.version" value="3.3"/>
-<stringAttribute key="product" value="org.eclipse.sdk.ide"/>
-<booleanAttribute key="run_in_ui_thread" value="true"/>
-<booleanAttribute key="show_selected_only" value="false"/>
-<booleanAttribute key="tracing" value="false"/>
-<booleanAttribute key="useCustomFeatures" value="false"/>
-<booleanAttribute key="useDefaultConfig" value="true"/>
-<booleanAttribute key="useDefaultConfigArea" value="false"/>
-<booleanAttribute key="useProduct" value="true"/>
-</launchConfiguration>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
+<booleanAttribute key="append.args" value="true"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="true"/>
+<booleanAttribute key="clearws" value="true"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
+<booleanAttribute key="default" value="true"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.eclipse.papyrus.sysml.diagram.internalblock.tests/src/org/eclipse/papyrus/sysml/diagram/internalblock/tests/suites/AllTests.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
+<stringAttribute key="org.eclipse.jdt.launching.JAVA_COMMAND" value="java"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.papyrus.sysml.diagram.internalblock.tests.suites.AllTests"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.papyrus.sysml.diagram.internalblock.tests"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-ea -XX:PermSize=512M -XX:MaxPermSize=512M -Xms40m -Xmx4096m&#13;&#10;-XX:+CMSClassUnloadingEnabled"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="org.eclipse.sdk.ide"/>
+<booleanAttribute key="run_in_ui_thread" value="true"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useCustomFeatures" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="true"/>
+</launchConfiguration>
diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/src/org/eclipse/papyrus/uml/alf/tests/generator/GenerationTest.xtend b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/src/org/eclipse/papyrus/uml/alf/tests/generator/GenerationTest.xtend
index 7ee3e7148e5..2cbb93a086d 100644
--- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/src/org/eclipse/papyrus/uml/alf/tests/generator/GenerationTest.xtend
+++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/src/org/eclipse/papyrus/uml/alf/tests/generator/GenerationTest.xtend
@@ -23,6 +23,7 @@ import org.eclipse.papyrus.uml.alf.MappingError
import org.eclipse.papyrus.uml.alf.tests.ParserTest
import org.eclipse.xtext.junit4.XtextRunner
import org.junit.BeforeClass
+import org.junit.Ignore
import org.junit.Test
import org.junit.runner.RunWith
@@ -44,7 +45,7 @@ class GenerationTest extends ParserTest {
}
@Test
- //@Ignore("Doesn't run on Maven - Bug 464026")
+ @Ignore("Doesn't run on Maven - Bug 464026")
def void testGeneration() {
var failures = 0;
System.out.println("[GenerationTest] Directory " + umlDirectory + ":")
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity.tests/src/org/eclipse/papyrus/uml/diagram/activity/tests/canonical/AbstractPapyrusTestCase.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity.tests/src/org/eclipse/papyrus/uml/diagram/activity/tests/canonical/AbstractPapyrusTestCase.java
index dd9146a1d53..f75029ee6aa 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity.tests/src/org/eclipse/papyrus/uml/diagram/activity/tests/canonical/AbstractPapyrusTestCase.java
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity.tests/src/org/eclipse/papyrus/uml/diagram/activity/tests/canonical/AbstractPapyrusTestCase.java
@@ -13,49 +13,33 @@
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.activity.tests.canonical;
-import org.eclipse.draw2d.geometry.Dimension;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.gef.commands.Command;
import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequestFactory;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.commands.ICreationCommand;
import org.eclipse.papyrus.uml.diagram.activity.CreateActivityDiagramCommand;
import org.eclipse.papyrus.uml.diagram.activity.edit.parts.ActivityActivityContentCompartmentEditPart;
import org.eclipse.papyrus.uml.diagram.activity.edit.parts.ActivityEditPart;
import org.eclipse.papyrus.uml.diagram.activity.providers.UMLElementTypes;
-import org.junit.Assert;
+import org.eclipse.papyrus.uml.diagram.tests.canonical.AbstractPapyrusSemanticTestCase;
/**
* The Class AbstractPapyrusTestCase.
*/
-public abstract class AbstractPapyrusTestCase extends org.eclipse.papyrus.uml.diagram.tests.canonical.AbstractPapyrusTestCase {
+public abstract class AbstractPapyrusTestCase extends AbstractPapyrusSemanticTestCase{
@Override
protected ICreationCommand getDiagramCommandCreation() {
return new CreateActivityDiagramCommand();
}
- protected IGraphicalEditPart createChild(int childVID, IGraphicalEditPart container) {
- final IElementType childType = UMLElementTypes.getElementType(childVID);
- final CreateViewRequest requestcreation = CreateViewRequestFactory.getCreateShapeRequest(childType, container.getDiagramPreferencesHint());
- requestcreation.setSize(new Dimension(1, 1));
- requestcreation.setLocation(new Point(10, 10));
- Command cmd = container.getCommand(requestcreation);
- executeOnUIThread(cmd);
- return findChildBySemanticHint(container, childVID);
- }
-
- protected IGraphicalEditPart findChildBySemanticHint(IGraphicalEditPart parent, int vid) {
- IGraphicalEditPart childEP = parent.getChildBySemanticHint(Integer.toString(vid));
- Assert.assertNotNull("Parent " + parent + ", type " + parent.getNotationView() + " looking for: " + vid, childEP);
- return childEP;
- }
-
protected IGraphicalEditPart getActivityCompartmentEditPart() {
IGraphicalEditPart activityEP = findChildBySemanticHint(getDiagramEditPart(), ActivityEditPart.VISUAL_ID);
return findChildBySemanticHint(activityEP, ActivityActivityContentCompartmentEditPart.VISUAL_ID);
}
+
+ @Override
+ protected IElementType getTypeByID(int vid) {
+ return UMLElementTypes.getElementType(vid);
+ }
}
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity.tests/src/org/eclipse/papyrus/uml/diagram/activity/tests/canonical/TestSemanticContainerFeature.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity.tests/src/org/eclipse/papyrus/uml/diagram/activity/tests/canonical/TestSemanticContainerFeature.java
index c153bd5edf1..5c038dc48f2 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity.tests/src/org/eclipse/papyrus/uml/diagram/activity/tests/canonical/TestSemanticContainerFeature.java
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity.tests/src/org/eclipse/papyrus/uml/diagram/activity/tests/canonical/TestSemanticContainerFeature.java
@@ -13,12 +13,7 @@
package org.eclipse.papyrus.uml.diagram.activity.tests.canonical;
-import static org.junit.Assert.assertNotNull;
-
-import java.util.List;
-
import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EReference;
import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
import org.eclipse.papyrus.junit.framework.classification.InteractiveTest;
import org.eclipse.papyrus.uml.diagram.activity.edit.parts.*;
@@ -1216,33 +1211,4 @@ public class TestSemanticContainerFeature extends AbstractPapyrusTestCase {
EObject valuePin = getSemanticElement(pinEP);
Assert.assertSame(valuePin.eClass(), UMLPackage.eINSTANCE.getValuePin());
}
-
- public void checkListElementReferenceSemantic(IGraphicalEditPart childEP, IGraphicalEditPart parentEP, EReference... expectedFeature) {
- EObject child = getSemanticElement(childEP);
- EObject parent = getSemanticElement(parentEP);
- for (EReference feature: expectedFeature) {
- Object objectList = parent.eGet(feature);
- Assert.assertTrue("Feature result should be list", objectList instanceof List<?>);
- List<?> children = (List<?>) objectList;
- Assert.assertTrue(getAssertMasageForContainChild(parent, child, feature), children.contains(child));
- }
- }
-
- public void checkOneElementReferenceSemantic(IGraphicalEditPart childEP, IGraphicalEditPart parentEP, EReference feature) {
- EObject child = getSemanticElement(childEP);
- EObject parent = getSemanticElement(parentEP);
-
- Object objectChildElement = parent.eGet(feature);
- Assert.assertEquals(getAssertMasageForContainChild(child, parent, feature), child, objectChildElement);
- }
-
- protected EObject getSemanticElement(IGraphicalEditPart ep) {
- EObject activityNode = ep.resolveSemanticElement();
- assertNotNull("Primary view of " + ep.getNotationView() + " must have EObject element", activityNode);
- return activityNode;
- }
-
- private String getAssertMasageForContainChild(EObject child, EObject parent, EReference feature) {
- return "Element:" + parent.getClass().getSimpleName() + "should contein child:" + child.getClass().getSimpleName() + " in feature: " + feature.getName();
- }
}
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/org.eclipse.papyrus.diagram.clazz.test.launch b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/org.eclipse.papyrus.uml.diagram.clazz.tests.launch
index f5cf5a57bad..c9d11d83655 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/org.eclipse.papyrus.diagram.clazz.test.launch
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/org.eclipse.papyrus.uml.diagram.clazz.tests.launch
@@ -1,47 +1,48 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
-<booleanAttribute key="append.args" value="true"/>
-<booleanAttribute key="askclear" value="false"/>
-<booleanAttribute key="automaticAdd" value="true"/>
-<booleanAttribute key="automaticValidate" value="false"/>
-<stringAttribute key="bootstrap" value=""/>
-<stringAttribute key="checked" value="[NONE]"/>
-<booleanAttribute key="clearConfig" value="true"/>
-<booleanAttribute key="clearws" value="true"/>
-<booleanAttribute key="clearwslog" value="false"/>
-<listAttribute key="com.mountainminds.eclemma.core.SCOPE_IDS">
-<listEntry value="=org.eclipse.papyrus.uml.diagram.clazz/custom-src"/>
-<listEntry value="=org.eclipse.papyrus.uml.diagram.clazz/src"/>
-<listEntry value="=org.eclipse.papyrus.uml.diagram.common/src"/>
-<listEntry value="=org.eclipse.papyrus.infra.gmfdiag.common/src"/>
-</listAttribute>
-<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
-<booleanAttribute key="default" value="true"/>
-<booleanAttribute key="includeOptional" value="true"/>
-<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
-<listEntry value="/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/test/AllTests.java"/>
-</listAttribute>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
-<listEntry value="1"/>
-</listAttribute>
-<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
-<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
-<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
-<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
-<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
-<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.papyrus.uml.diagram.clazz.test.AllTests"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.papyrus.uml.diagram.clazz.tests"/>
-<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dosgi.requiredJavaVersion=1.5 -Xms256m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=256m"/>
-<stringAttribute key="pde.version" value="3.3"/>
-<stringAttribute key="product" value="org.eclipse.platform.ide"/>
-<booleanAttribute key="run_in_ui_thread" value="true"/>
-<booleanAttribute key="show_selected_only" value="false"/>
-<booleanAttribute key="tracing" value="false"/>
-<booleanAttribute key="useCustomFeatures" value="false"/>
-<booleanAttribute key="useDefaultConfig" value="true"/>
-<booleanAttribute key="useDefaultConfigArea" value="false"/>
-<booleanAttribute key="useProduct" value="true"/>
-</launchConfiguration>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
+<booleanAttribute key="append.args" value="true"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="true"/>
+<booleanAttribute key="clearws" value="true"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<listAttribute key="com.mountainminds.eclemma.core.SCOPE_IDS">
+<listEntry value="=org.eclipse.papyrus.uml.diagram.clazz/custom-src"/>
+<listEntry value="=org.eclipse.papyrus.uml.diagram.clazz/src"/>
+<listEntry value="=org.eclipse.papyrus.uml.diagram.common/src"/>
+<listEntry value="=org.eclipse.papyrus.infra.gmfdiag.common/src"/>
+</listAttribute>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
+<booleanAttribute key="default" value="true"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/test/AllTests.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
+<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.papyrus.uml.diagram.clazz.test.AllTests"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.papyrus.uml.diagram.clazz.tests"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dosgi.requiredJavaVersion=1.5 -Xms256m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=256m"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="org.eclipse.platform.ide"/>
+<booleanAttribute key="run_in_ui_thread" value="true"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useCustomFeatures" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="true"/>
+</launchConfiguration>
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/test/canonical/TestListCompartmentNodesChildDuplicates.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/test/canonical/TestListCompartmentNodesChildDuplicates.java
index a5ed9472b9e..91b0bac7dd5 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/test/canonical/TestListCompartmentNodesChildDuplicates.java
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/test/canonical/TestListCompartmentNodesChildDuplicates.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2014 CEA LIST and others.
+ * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -8,6 +8,7 @@
*
* Contributors:
* CEA LIST - Initial API and implementation
+ * Christian W. Damus - bug 450944
*
*****************************************************************************/
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common.tests/resources/418509/model.notation b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common.tests/resources/418509/model.notation
index dd56141ec1a..d65fa202288 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common.tests/resources/418509/model.notation
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common.tests/resources/418509/model.notation
@@ -405,4 +405,202 @@
<targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Wsx-UVB-EeSgfPW5hKItRA" id="(1.0,0.5228758169934641)"/>
</edges>
</notation:Diagram>
+ <notation:Diagram xmi:id="__kQ4UPiqEeS1mqTIM9bodA" type="BlockDefinition" name="BDD 446668" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_Ad4n8PirEeS1mqTIM9bodA" type="shape_sysml_block_as_classifier">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Ad52EPirEeS1mqTIM9bodA" type="label_sysml_block_name"/>
+ <children xmi:type="notation:ListCompartment" xmi:id="_Ad52EfirEeS1mqTIM9bodA" type="compartment_sysml_property_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_Ad52EvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Ad52E_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Ad52FPirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Ad52FfirEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_Ad52FvirEeS1mqTIM9bodA" type="compartment_sysml_part_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_Ad52F_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Ad52GPirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Ad52GfirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Ad52GvirEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_Ad6dIPirEeS1mqTIM9bodA" type="compartment_sysml_reference_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_Ad6dIfirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Ad6dIvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Ad6dI_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Ad6dJPirEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_Ad6dJfirEeS1mqTIM9bodA" type="compartment_uml_port_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_Ad6dJvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Ad6dJ_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Ad6dKPirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Ad6dKfirEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_Ad6dKvirEeS1mqTIM9bodA" type="compartment_sysml_flowport_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_Ad6dK_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Ad6dLPirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Ad6dLfirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Ad6dLvirEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_Ad6dL_irEeS1mqTIM9bodA" type="compartment_uml_operation_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_Ad6dMPirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Ad6dMfirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Ad6dMvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Ad6dM_irEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_Ad6dNPirEeS1mqTIM9bodA" type="compartment_sysml_constraint_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_Ad6dNfirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Ad6dNvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Ad6dN_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Ad6dOPirEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_Ad6dOfirEeS1mqTIM9bodA" type="compartment_sysml_value_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_Ad6dOvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Ad6dO_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Ad6dPPirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Ad6dPfirEeS1mqTIM9bodA"/>
+ </children>
+ <element xmi:type="uml:Class" href="model.uml#_AdMrcPirEeS1mqTIM9bodA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Ad4n8firEeS1mqTIM9bodA" x="148" y="155" width="135" height="134"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_BiQ2EPirEeS1mqTIM9bodA" type="shape_sysml_block_as_classifier">
+ <children xmi:type="notation:DecorationNode" xmi:id="_BiRdIPirEeS1mqTIM9bodA" type="label_sysml_block_name"/>
+ <children xmi:type="notation:ListCompartment" xmi:id="_BiRdIfirEeS1mqTIM9bodA" type="compartment_sysml_property_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_BiRdIvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_BiRdI_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_BiRdJPirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_BiRdJfirEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_BiSEMPirEeS1mqTIM9bodA" type="compartment_sysml_part_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_BiSEMfirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_BiSEMvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_BiSEM_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_BiSENPirEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_BiSENfirEeS1mqTIM9bodA" type="compartment_sysml_reference_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_BiSENvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_BiSEN_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_BiSEOPirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_BiSEOfirEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_BiSrQPirEeS1mqTIM9bodA" type="compartment_uml_port_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_BiSrQfirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_BiSrQvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_BiSrQ_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_BiSrRPirEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_BiSrRfirEeS1mqTIM9bodA" type="compartment_sysml_flowport_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_BiSrRvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_BiSrR_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_BiSrSPirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_BiSrSfirEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_BiTSUPirEeS1mqTIM9bodA" type="compartment_uml_operation_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_BiTSUfirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_BiTSUvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_BiTSU_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_BiTSVPirEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_BiTSVfirEeS1mqTIM9bodA" type="compartment_sysml_constraint_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_BiTSVvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_BiTSV_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_BiTSWPirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_BiTSWfirEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_BiVHgPirEeS1mqTIM9bodA" type="compartment_sysml_value_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_BiVHgfirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_BiVHgvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_BiVHg_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_BiVHhPirEeS1mqTIM9bodA"/>
+ </children>
+ <element xmi:type="uml:Class" href="model.uml#_BiNywPirEeS1mqTIM9bodA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_BiQ2EfirEeS1mqTIM9bodA" x="423" y="163" width="120" height="123"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_Che3YPirEeS1mqTIM9bodA" type="shape_sysml_block_as_classifier">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ChfecPirEeS1mqTIM9bodA" type="label_sysml_block_name"/>
+ <children xmi:type="notation:ListCompartment" xmi:id="_ChfecfirEeS1mqTIM9bodA" type="compartment_sysml_property_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_ChfecvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Chfec_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ChfedPirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ChfedfirEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_ChfedvirEeS1mqTIM9bodA" type="compartment_sysml_part_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_Chfed_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ChfeePirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ChfeefirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ChfeevirEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_ChgFgPirEeS1mqTIM9bodA" type="compartment_sysml_reference_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_ChgFgfirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ChgFgvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ChgFg_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ChgFhPirEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_ChgFhfirEeS1mqTIM9bodA" type="compartment_uml_port_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_ChgFhvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ChgFh_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ChgFiPirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ChgFifirEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_ChgFivirEeS1mqTIM9bodA" type="compartment_sysml_flowport_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_ChgFi_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ChgFjPirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ChgFjfirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ChgFjvirEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_ChgFj_irEeS1mqTIM9bodA" type="compartment_uml_operation_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_ChgFkPirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ChgFkfirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ChgFkvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ChgFk_irEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_ChgFlPirEeS1mqTIM9bodA" type="compartment_sysml_constraint_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_ChgFlfirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ChgFlvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ChgFl_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ChgFmPirEeS1mqTIM9bodA"/>
+ </children>
+ <children xmi:type="notation:ListCompartment" xmi:id="_ChgFmfirEeS1mqTIM9bodA" type="compartment_sysml_value_as_list">
+ <styles xmi:type="notation:DrawerStyle" xmi:id="_ChgFmvirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ChgFm_irEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ChgFnPirEeS1mqTIM9bodA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ChgFnfirEeS1mqTIM9bodA"/>
+ </children>
+ <element xmi:type="uml:Class" href="model.uml#_ChdCMPirEeS1mqTIM9bodA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Che3YfirEeS1mqTIM9bodA" x="418" y="345" width="131" height="146"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="__kQ4UfiqEeS1mqTIM9bodA"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="__kQ4UviqEeS1mqTIM9bodA">
+ <owner xmi:type="uml:Model" href="model.uml#_y15mME-vEeSh_JAKhK0MSw"/>
+ </styles>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="__kwAgPiqEeS1mqTIM9bodA" name="diagram_compatibility_version" stringValue="1.0.0"/>
+ <element xmi:type="uml:Model" href="model.uml#_y15mME-vEeSh_JAKhK0MSw"/>
+ <edges xmi:type="notation:Connector" xmi:id="_D_V8gPirEeS1mqTIM9bodA" type="link_sysml_association" source="_Ad4n8PirEeS1mqTIM9bodA" target="_BiQ2EPirEeS1mqTIM9bodA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_D_WjkPirEeS1mqTIM9bodA" type="linklabel_uml_appliedstereotype">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_D_WjkfirEeS1mqTIM9bodA" y="-30"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_D_WjkvirEeS1mqTIM9bodA" type="linklabel_uml_namedelement_name">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_D_Wjk_irEeS1mqTIM9bodA" y="-10"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_D_XKoPirEeS1mqTIM9bodA" type="linklabel_uml_association_source_role">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_D_XKofirEeS1mqTIM9bodA" y="-10"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_D_XKovirEeS1mqTIM9bodA" type="linklabel_uml_association_source_multiplicity">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_D_XKo_irEeS1mqTIM9bodA" y="10"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_D_XKpPirEeS1mqTIM9bodA" type="linklabel_uml_association_target_role">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_D_XKpfirEeS1mqTIM9bodA" y="-10"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_D_XKpvirEeS1mqTIM9bodA" type="linklabel_uml_association_target_multiplicity">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_D_XKp_irEeS1mqTIM9bodA" y="10"/>
+ </children>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_D_V8gfirEeS1mqTIM9bodA" name="semantic_source_end">
+ <eObjectValue xmi:type="uml:Property" href="model.uml#_D_PO0virEeS1mqTIM9bodA"/>
+ </styles>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_D_V8gvirEeS1mqTIM9bodA" name="semantic_target_end">
+ <eObjectValue xmi:type="uml:Property" href="model.uml#_D_P14PirEeS1mqTIM9bodA"/>
+ </styles>
+ <styles xmi:type="notation:FontStyle" xmi:id="_D_V8g_irEeS1mqTIM9bodA"/>
+ <element xmi:type="uml:Association" href="model.uml#_D_OnwPirEeS1mqTIM9bodA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_D_V8hPirEeS1mqTIM9bodA" points="[26, 4, -90, 0]$[113, 3, -3, -1]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_D_zPgPirEeS1mqTIM9bodA" id="(1.0,0.4552238805970149)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_D_z2kPirEeS1mqTIM9bodA" id="(0.0,0.43089430894308944)"/>
+ </edges>
+ </notation:Diagram>
</xmi:XMI>
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common.tests/resources/418509/model.uml b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common.tests/resources/418509/model.uml
index edf41691fc3..a93a903e4c8 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common.tests/resources/418509/model.uml
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common.tests/resources/418509/model.uml
@@ -19,6 +19,17 @@
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_RPZvo1B-EeSgfPW5hKItRA" value="1"/>
</ownedEnd>
</packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_AdMrcPirEeS1mqTIM9bodA" name="B1">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_D_PO0virEeS1mqTIM9bodA" name="b2_1" type="_BiNywPirEeS1mqTIM9bodA" aggregation="composite" association="_D_OnwPirEeS1mqTIM9bodA"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_BiNywPirEeS1mqTIM9bodA" name="B2"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_ChdCMPirEeS1mqTIM9bodA" name="B3"/>
+ <packagedElement xmi:type="uml:Association" xmi:id="_D_OnwPirEeS1mqTIM9bodA" name="Directed Composition" memberEnd="_D_PO0virEeS1mqTIM9bodA _D_P14PirEeS1mqTIM9bodA">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_D_PO0PirEeS1mqTIM9bodA" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_D_PO0firEeS1mqTIM9bodA" key="nature" value="SysML_Nature"/>
+ </eAnnotations>
+ <ownedEnd xmi:type="uml:Property" xmi:id="_D_P14PirEeS1mqTIM9bodA" name="b1_1" type="_AdMrcPirEeS1mqTIM9bodA" association="_D_OnwPirEeS1mqTIM9bodA"/>
+ </packagedElement>
<profileApplication xmi:type="uml:ProfileApplication" xmi:id="_YctE0FBzEeSwHc1gAhe1OQ">
<eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_YdP3YFBzEeSwHc1gAhe1OQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//blocks"/>
@@ -42,4 +53,7 @@
<Blocks:Block xmi:id="_bpAowFBzEeSwHc1gAhe1OQ" base_Class="_8kS-IE-vEeSh_JAKhK0MSw"/>
<Blocks:Block xmi:id="_caRGkFBzEeSwHc1gAhe1OQ" base_Class="_--7NgE-vEeSh_JAKhK0MSw"/>
<Blocks:Block xmi:id="_c7uN0FBzEeSwHc1gAhe1OQ" base_Class="_BEJNkE-wEeSh_JAKhK0MSw"/>
+ <Blocks:Block xmi:id="_AdPuwPirEeS1mqTIM9bodA" base_Class="_AdMrcPirEeS1mqTIM9bodA"/>
+ <Blocks:Block xmi:id="_BiOZ0PirEeS1mqTIM9bodA" base_Class="_BiNywPirEeS1mqTIM9bodA"/>
+ <Blocks:Block xmi:id="_ChdpQPirEeS1mqTIM9bodA" base_Class="_ChdCMPirEeS1mqTIM9bodA"/>
</xmi:XMI>
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common.tests/src/org/eclipse/papyrus/uml/diagram/common/tests/tests/Bug418509_ReorientationAssociation.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common.tests/src/org/eclipse/papyrus/uml/diagram/common/tests/tests/Bug418509_ReorientationAssociation.java
index 501ca334dff..ace51513f42 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common.tests/src/org/eclipse/papyrus/uml/diagram/common/tests/tests/Bug418509_ReorientationAssociation.java
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common.tests/src/org/eclipse/papyrus/uml/diagram/common/tests/tests/Bug418509_ReorientationAssociation.java
@@ -329,6 +329,37 @@ public class Bug418509_ReorientationAssociation extends AbstractPapyrusTest {
}
/**
+ * Case of an Directed Composition association between B1 and B2, end B2 is owned by Block B1 and end B2 is owned by Association. Test changes B2 to B3.
+ */
+ @Test
+ @PluginResource("/resources/418509/model.di")
+ public void testSysMLCase5() {
+
+ // Get data test
+ Association association = (Association) modelSetFixture.getModel().getMember("Directed Composition");
+ StructuredClassifier target = (StructuredClassifier) modelSetFixture.getModel().getMember("B3");
+ StructuredClassifier source = (StructuredClassifier) modelSetFixture.getModel().getMember("B2");
+ StructuredClassifier targetAssiociation = (StructuredClassifier) modelSetFixture.getModel().getMember("B1");
+
+ assertEquals(1, association.getOwnedEnds().size());
+
+ Diagram diagram = DiagramUtils.getNotationDiagram((ModelSet) modelSetFixture.getResourceSet(), "BDD 446668");
+ EditPart targetEP = getEditPart(target, diagram);
+
+ // Build a request and execute it
+ ReorientRelationshipRequest request = new ReorientRelationshipRequest(association, target, source, ReorientRequest.REORIENT_TARGET);
+ Command command = targetEP.getCommand(new EditCommandRequestWrapper(request));
+ modelSetFixture.getEditingDomain().getCommandStack().execute(GEFtoEMFCommandWrapper.wrap(command));
+
+ assertEquals(1, association.getOwnedEnds().size());
+ assertNotNull(association.getOwnedEnd("b1_1", targetAssiociation));
+ assertNotNull(targetAssiociation.getOwnedAttribute("b2_1", target));
+
+
+ }
+
+
+ /**
* Gets the edits the part.
*
* @param semanticElement
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component.tests/src/org/eclipse/papyrus/uml/diagram/component/test/canonical/TestComponentDiagramCommentLink.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component.tests/src/org/eclipse/papyrus/uml/diagram/component/test/canonical/TestComponentDiagramCommentLink.java
index b40097e750d..00653ce3a45 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component.tests/src/org/eclipse/papyrus/uml/diagram/component/test/canonical/TestComponentDiagramCommentLink.java
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component.tests/src/org/eclipse/papyrus/uml/diagram/component/test/canonical/TestComponentDiagramCommentLink.java
@@ -14,7 +14,6 @@ package org.eclipse.papyrus.uml.diagram.component.test.canonical;
import org.eclipse.gmf.tooling.runtime.update.DiagramUpdater;
import org.eclipse.papyrus.commands.ICreationCommand;
-import org.eclipse.papyrus.junit.framework.classification.FailingTest;
import org.eclipse.papyrus.uml.diagram.component.CreateComponentDiagramCommand;
import org.eclipse.papyrus.uml.diagram.component.part.UMLDiagramUpdater;
import org.eclipse.papyrus.uml.diagram.component.providers.UMLElementTypes;
@@ -46,7 +45,6 @@ public class TestComponentDiagramCommentLink extends TestCommentLink {
/**
* Test to manage Comment
*/
- @FailingTest
@Test
public void testToManageComment() {
testToManageLink(UMLElementTypes.Comment_3201, UMLElementTypes.Package_3200, UMLElementTypes.CommentAnnotatedElement_4015, UMLElementTypes.Package_3200, true);
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component.tests/src/org/eclipse/papyrus/uml/diagram/component/test/canonical/TestComponentDiagramConstraintLink.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component.tests/src/org/eclipse/papyrus/uml/diagram/component/test/canonical/TestComponentDiagramConstraintLink.java
index 1c55b0b6d4f..6a44341c6a0 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component.tests/src/org/eclipse/papyrus/uml/diagram/component/test/canonical/TestComponentDiagramConstraintLink.java
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component.tests/src/org/eclipse/papyrus/uml/diagram/component/test/canonical/TestComponentDiagramConstraintLink.java
@@ -14,7 +14,6 @@ package org.eclipse.papyrus.uml.diagram.component.test.canonical;
import org.eclipse.gmf.tooling.runtime.update.DiagramUpdater;
import org.eclipse.papyrus.commands.ICreationCommand;
-import org.eclipse.papyrus.junit.framework.classification.FailingTest;
import org.eclipse.papyrus.uml.diagram.component.CreateComponentDiagramCommand;
import org.eclipse.papyrus.uml.diagram.component.part.UMLDiagramUpdater;
import org.eclipse.papyrus.uml.diagram.component.providers.UMLElementTypes;
@@ -46,7 +45,6 @@ public class TestComponentDiagramConstraintLink extends TestConstraintLink {
/**
* Test to manage Constraint
*/
- @FailingTest
@Test
public void testToManageConstraint() {
testToManageLink(UMLElementTypes.Constraint_3199, UMLElementTypes.Package_3200, UMLElementTypes.ConstraintConstrainedElement_4009, UMLElementTypes.Package_3200, true);
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component.tests/src/org/eclipse/papyrus/uml/diagram/component/test/canonical/TestListCompartmentNodeChildDuplicates.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component.tests/src/org/eclipse/papyrus/uml/diagram/component/test/canonical/TestListCompartmentNodeChildDuplicates.java
index fc932dde6b3..b57c9202253 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component.tests/src/org/eclipse/papyrus/uml/diagram/component/test/canonical/TestListCompartmentNodeChildDuplicates.java
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component.tests/src/org/eclipse/papyrus/uml/diagram/component/test/canonical/TestListCompartmentNodeChildDuplicates.java
@@ -1,6 +1,5 @@
package org.eclipse.papyrus.uml.diagram.component.test.canonical;
-import org.eclipse.papyrus.junit.framework.classification.FailingTest;
import org.eclipse.papyrus.uml.diagram.component.edit.parts.InterfaceAttributeCompartmentEditPart;
import org.eclipse.papyrus.uml.diagram.component.edit.parts.InterfaceOperationCompartmentEditPart;
import org.eclipse.papyrus.uml.diagram.component.edit.parts.OperationForInterfaceEditPart;
@@ -38,20 +37,16 @@ public class TestListCompartmentNodeChildDuplicates extends AbstractPapyrusTestC
return IComponentDiagramTestsConstants.FILE_NAME;
}
- @FailingTest
@Test
public void testInterfaceVsOperation() throws Exception {
getHelper().checkDuplicate(RectangleInterfaceEditPart.VISUAL_ID, InterfaceOperationCompartmentEditPart.VISUAL_ID, OperationForInterfaceEditPart.VISUAL_ID);
}
- @FailingTest
@Test
public void testInterfaceVsProperty() throws Exception {
getHelper().checkDuplicate(RectangleInterfaceEditPart.VISUAL_ID, InterfaceAttributeCompartmentEditPart.VISUAL_ID, PropertyForInterfaceEditPart.VISUAL_ID);
}
-
- @FailingTest
@Test
public void testInterfaceVsReception() throws Exception {
getHelper().checkDuplicate(RectangleInterfaceEditPart.VISUAL_ID, InterfaceOperationCompartmentEditPart.VISUAL_ID, ReceptionInInterfaceEditPart.VISUAL_ID);
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment.tests/src/org/eclipse/papyrus/uml/diagram/deployment/test/canonical/AbstractPapyrusTestCase.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment.tests/src/org/eclipse/papyrus/uml/diagram/deployment/test/canonical/AbstractPapyrusTestCase.java
index 903a603cf51..214801f6710 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment.tests/src/org/eclipse/papyrus/uml/diagram/deployment/test/canonical/AbstractPapyrusTestCase.java
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment.tests/src/org/eclipse/papyrus/uml/diagram/deployment/test/canonical/AbstractPapyrusTestCase.java
@@ -12,17 +12,24 @@
/*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.deployment.test.canonical;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.commands.ICreationCommand;
import org.eclipse.papyrus.uml.diagram.deployment.CreateDeploymentDiagramCommand;
+import org.eclipse.papyrus.uml.diagram.deployment.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.tests.canonical.AbstractPapyrusSemanticTestCase;
/**
* The Class AbstractPapyrusTestCase.
*/
-public abstract class AbstractPapyrusTestCase extends org.eclipse.papyrus.uml.diagram.tests.canonical.AbstractPapyrusTestCase {
+public abstract class AbstractPapyrusTestCase extends AbstractPapyrusSemanticTestCase {
@Override
protected ICreationCommand getDiagramCommandCreation() {
return new CreateDeploymentDiagramCommand();
}
+ @Override
+ protected IElementType getTypeByID(int vid) {
+ return UMLElementTypes.getElementType(vid);
+ }
}
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment.tests/src/org/eclipse/papyrus/uml/diagram/deployment/test/canonical/AllCanonicalTests.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment.tests/src/org/eclipse/papyrus/uml/diagram/deployment/test/canonical/AllCanonicalTests.java
index 98c7bd48b81..1a20130a4e2 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment.tests/src/org/eclipse/papyrus/uml/diagram/deployment/test/canonical/AllCanonicalTests.java
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment.tests/src/org/eclipse/papyrus/uml/diagram/deployment/test/canonical/AllCanonicalTests.java
@@ -38,7 +38,8 @@ TestDeploymentDiagramConstraintLink.class,
TestDeploymentDiagramManifestationLink.class,
// Others Link
TestDeploymentDiagramLink.class,
-
+//
+TestSemantics.class
// End
})
public class AllCanonicalTests {
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment.tests/src/org/eclipse/papyrus/uml/diagram/deployment/test/canonical/TestDeploymentDiagramForNodeChildNode.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment.tests/src/org/eclipse/papyrus/uml/diagram/deployment/test/canonical/TestDeploymentDiagramForNodeChildNode.java
index 6da4c508099..174f6d6324c 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment.tests/src/org/eclipse/papyrus/uml/diagram/deployment/test/canonical/TestDeploymentDiagramForNodeChildNode.java
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment.tests/src/org/eclipse/papyrus/uml/diagram/deployment/test/canonical/TestDeploymentDiagramForNodeChildNode.java
@@ -59,7 +59,6 @@ public class TestDeploymentDiagramForNodeChildNode extends TestChildNode {
* Test to manage Device.
*/
@Test
-
public void testToDevice() {
testToManageNode(UMLElementTypes.Device_16, UMLPackage.eINSTANCE.getDevice(), UMLElementTypes.Node_23, false);
}
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment.tests/src/org/eclipse/papyrus/uml/diagram/deployment/test/canonical/TestSemantics.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment.tests/src/org/eclipse/papyrus/uml/diagram/deployment/test/canonical/TestSemantics.java
new file mode 100644
index 00000000000..6ef2fd14c02
--- /dev/null
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.deployment.tests/src/org/eclipse/papyrus/uml/diagram/deployment/test/canonical/TestSemantics.java
@@ -0,0 +1,584 @@
+/*****************************************************************************
+ * Copyright (c) 2015 CEA LIST and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.uml.diagram.deployment.test.canonical;
+
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPartACN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactCompositeCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartACN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ArtifactEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.CommentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ConstraintEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceCompositeCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceCompositeCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.DeviceEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentCompositeCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentCompositeCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ExecutionEnvironmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelPackageableElementCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.ModelPackageableElementCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedArtifactNodeEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedDeviceEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedExecutionEnvironmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NestedNodeEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeCompositeCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeCompositeCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.NodeEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackageEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackagePackageableElementCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.deployment.edit.parts.PackagePackageableElementCompartmentEditPartCN;
+import org.eclipse.papyrus.uml.diagram.deployment.test.IDeploymentDiagramTestsConstants;
+import org.eclipse.uml2.uml.UMLPackage;
+import org.junit.Test;
+
+public class TestSemantics extends AbstractPapyrusTestCase {
+
+ @Override
+ protected String getProjectName() {
+ return IDeploymentDiagramTestsConstants.PROJECT_NAME;
+ }
+
+ @Override
+ protected String getFileName() {
+ return IDeploymentDiagramTestsConstants.FILE_NAME;
+ }
+
+ @Test
+ public void testPackageCNInPackage() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childPackageEP = createChild(PackageEditPartCN.VISUAL_ID, packageCompEP);
+
+ checkListElementReferenceSemantic(childPackageEP, packageEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testModelCNInPackage() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childModelEP = createChild(ModelEditPartCN.VISUAL_ID, packageCompEP);
+
+ checkListElementReferenceSemantic(childModelEP, packageEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testNestedDeviceCNInPackage() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childNestedDeviceEP = createChild(NestedDeviceEditPartCN.VISUAL_ID, packageCompEP);
+
+ checkListElementReferenceSemantic(childNestedDeviceEP, packageEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testNestedExecEnviromentCNInPackage() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childNestedExecEnvirEP = createChild(NestedExecutionEnvironmentEditPartCN.VISUAL_ID, packageCompEP);
+
+ checkListElementReferenceSemantic(childNestedExecEnvirEP, packageEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testNestedArtifactCNInPackage() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childNestedArtifactEP = createChild(NestedArtifactNodeEditPartCN.VISUAL_ID, packageCompEP);
+
+ checkListElementReferenceSemantic(childNestedArtifactEP, packageEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testNestedNodeCNInPackage() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childNodeEP = createChild(NestedNodeEditPartCN.VISUAL_ID, packageCompEP);
+
+ checkListElementReferenceSemantic(childNodeEP, packageEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testCommentCNInPackage() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childCommentEP = createChild(CommentEditPartCN.VISUAL_ID, packageCompEP);
+
+ checkListElementReferenceSemantic(childCommentEP, packageEP, UMLPackage.eINSTANCE.getElement_OwnedComment());
+ }
+
+ @Test
+ public void testConstraintCNInPackage() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childConstraintEP = createChild(ConstraintEditPartCN.VISUAL_ID, packageCompEP);
+
+ checkListElementReferenceSemantic(childConstraintEP, packageEP, UMLPackage.eINSTANCE.getNamespace_OwnedRule());
+ }
+
+ @Test
+ public void testPackageCNInModel() {
+ IGraphicalEditPart modelEP = createChild(ModelEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart modelCompEP = findChildBySemanticHint(modelEP, ModelPackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childPackageEP = createChild(PackageEditPartCN.VISUAL_ID, modelCompEP);
+
+ checkListElementReferenceSemantic(childPackageEP, modelEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testModelCNInModel() {
+ IGraphicalEditPart modelEP = createChild(ModelEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart modelCompEP = findChildBySemanticHint(modelEP, ModelPackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childModelEP = createChild(ModelEditPartCN.VISUAL_ID, modelCompEP);
+
+ checkListElementReferenceSemantic(childModelEP, modelEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testNestedDeviceCNInModel() {
+ IGraphicalEditPart modelEP = createChild(ModelEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart modelCompEP = findChildBySemanticHint(modelEP, ModelPackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childNestedDeviceEP = createChild(NestedDeviceEditPartCN.VISUAL_ID, modelCompEP);
+
+ checkListElementReferenceSemantic(childNestedDeviceEP, modelEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testNestedExecEnviromentCNInModel() {
+ IGraphicalEditPart modelEP = createChild(ModelEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart modelCompEP = findChildBySemanticHint(modelEP, ModelPackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childNestedExecEnvirEP = createChild(NestedExecutionEnvironmentEditPartCN.VISUAL_ID, modelCompEP);
+
+ checkListElementReferenceSemantic(childNestedExecEnvirEP, modelEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testNestedArtifactCNInModel() {
+ IGraphicalEditPart modelEP = createChild(ModelEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart modelCompEP = findChildBySemanticHint(modelEP, ModelPackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childNestedArtifactEP = createChild(NestedArtifactNodeEditPartCN.VISUAL_ID, modelCompEP);
+
+ checkListElementReferenceSemantic(childNestedArtifactEP, modelEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testNestedNodeCNInModel() {
+ IGraphicalEditPart modelEP = createChild(ModelEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart modelCompEP = findChildBySemanticHint(modelEP, ModelPackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childNodeEP = createChild(NestedNodeEditPartCN.VISUAL_ID, modelCompEP);
+
+ checkListElementReferenceSemantic(childNodeEP, modelEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testCommentCNInModel() {
+ IGraphicalEditPart modelEP = createChild(ModelEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart modelCompEP = findChildBySemanticHint(modelEP, ModelPackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childCommentEP = createChild(CommentEditPartCN.VISUAL_ID, modelCompEP);
+
+ checkListElementReferenceSemantic(childCommentEP, modelEP, UMLPackage.eINSTANCE.getElement_OwnedComment());
+ }
+
+ @Test
+ public void testConstraintCNInModel() {
+ IGraphicalEditPart modelEP = createChild(ModelEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart modelCompEP = findChildBySemanticHint(modelEP, ModelPackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childConstraintEP = createChild(ConstraintEditPartCN.VISUAL_ID, modelCompEP);
+
+ checkListElementReferenceSemantic(childConstraintEP, modelEP, UMLPackage.eINSTANCE.getNamespace_OwnedRule());
+ }
+
+ @Test
+ public void testExecEnvirCNInExecEnvir() {
+ IGraphicalEditPart execEnvirEP = createChild(ExecutionEnvironmentEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart execEnvirCompEP = findChildBySemanticHint(execEnvirEP, ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childExecEnvirEP = createChild(ExecutionEnvironmentEditPartCN.VISUAL_ID, execEnvirCompEP);
+
+ checkListElementReferenceSemantic(childExecEnvirEP, execEnvirEP, UMLPackage.eINSTANCE.getNode_NestedNode());
+ }
+
+ @Test
+ public void testArtifactCNInExecEnvir() {
+ IGraphicalEditPart execEnvirEP = createChild(ExecutionEnvironmentEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart execEnvirCompEP = findChildBySemanticHint(execEnvirEP, ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childArtifactEP = createChild(ArtifactEditPartCN.VISUAL_ID, execEnvirCompEP);
+
+ checkListElementReferenceSemantic(childArtifactEP, execEnvirEP, UMLPackage.eINSTANCE.getClass_NestedClassifier());
+ }
+
+ @Test
+ public void testExecEnvirCNInDevice() {
+ IGraphicalEditPart deviceEP = createChild(DeviceEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart deviceCompEP = findChildBySemanticHint(deviceEP, DeviceCompositeCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childExecEnvirEP = createChild(ExecutionEnvironmentEditPartCN.VISUAL_ID, deviceCompEP);
+
+ checkListElementReferenceSemantic(childExecEnvirEP, deviceEP, UMLPackage.eINSTANCE.getNode_NestedNode());
+ }
+
+ @Test
+ public void testDeviceCNInDevice() {
+ IGraphicalEditPart deviceEP = createChild(DeviceEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart deviceCompEP = findChildBySemanticHint(deviceEP, DeviceCompositeCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childDeviceEP = createChild(DeviceEditPartCN.VISUAL_ID, deviceCompEP);
+
+ checkListElementReferenceSemantic(childDeviceEP, deviceEP, UMLPackage.eINSTANCE.getNode_NestedNode());
+ }
+
+ @Test
+ public void testNodeCNInDevice() {
+ IGraphicalEditPart deviceEP = createChild(DeviceEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart deviceCompEP = findChildBySemanticHint(deviceEP, DeviceCompositeCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childNodeEP = createChild(NodeEditPartCN.VISUAL_ID, deviceCompEP);
+
+ checkListElementReferenceSemantic(childNodeEP, deviceEP, UMLPackage.eINSTANCE.getNode_NestedNode());
+ }
+
+ @Test
+ public void testArtifactACNInDevice() {
+ IGraphicalEditPart artifactEP = createChild(ArtifactEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart artifactCompEP = findChildBySemanticHint(artifactEP, ArtifactCompositeCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childArtifactEP = createChild(ArtifactEditPartACN.VISUAL_ID, artifactCompEP);
+
+ checkListElementReferenceSemantic(childArtifactEP, artifactEP, UMLPackage.eINSTANCE.getArtifact_NestedArtifact());
+ }
+
+ @Test
+ public void testExecEnvirCNInNode() {
+ IGraphicalEditPart nodeEP = createChild(NodeEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart nodeCompEP = findChildBySemanticHint(nodeEP, NodeCompositeCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childExecEnvirEP = createChild(ExecutionEnvironmentEditPartCN.VISUAL_ID, nodeCompEP);
+
+ checkListElementReferenceSemantic(childExecEnvirEP, nodeEP, UMLPackage.eINSTANCE.getNode_NestedNode());
+ }
+
+ @Test
+ public void testDeviceCNInNode() {
+ IGraphicalEditPart nodeEP = createChild(NodeEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart nodeCompEP = findChildBySemanticHint(nodeEP, NodeCompositeCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childDeviceEP = createChild(DeviceEditPartCN.VISUAL_ID, nodeCompEP);
+
+ checkListElementReferenceSemantic(childDeviceEP, nodeEP, UMLPackage.eINSTANCE.getNode_NestedNode());
+ }
+
+ @Test
+ public void testNodeCNInNode() {
+ IGraphicalEditPart nodeEP = createChild(NodeEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart nodeCompEP = findChildBySemanticHint(nodeEP, NodeCompositeCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childNodeEP = createChild(NodeEditPartCN.VISUAL_ID, nodeCompEP);
+
+ checkListElementReferenceSemantic(childNodeEP, nodeEP, UMLPackage.eINSTANCE.getNode_NestedNode());
+ }
+
+ @Test
+ public void testArtifactCNInNode() {
+ IGraphicalEditPart nodeEP = createChild(NodeEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart nodeCompEP = findChildBySemanticHint(nodeEP, NodeCompositeCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childArtifactEP = createChild(ArtifactEditPartCN.VISUAL_ID, nodeCompEP);
+
+ checkListElementReferenceSemantic(childArtifactEP, nodeEP, UMLPackage.eINSTANCE.getClass_NestedClassifier());
+ }
+
+ @Test
+ public void testPackageCNInPackageCN() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart firstLevelChidPackageEP = createChild(PackageEditPartCN.VISUAL_ID, packageCompEP);
+ IGraphicalEditPart firstLevelChildPackageCompEP = findChildBySemanticHint(firstLevelChidPackageEP, PackagePackageableElementCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart secondLevelChidPackageEP = createChild(PackageEditPartCN.VISUAL_ID, firstLevelChildPackageCompEP);
+
+ checkListElementReferenceSemantic(secondLevelChidPackageEP, firstLevelChidPackageEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testNestedDeviceCNInPackageCN() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart firstLevelChidPackageEP = createChild(PackageEditPartCN.VISUAL_ID, packageCompEP);
+ IGraphicalEditPart firstLevelChildPackageCompEP = findChildBySemanticHint(firstLevelChidPackageEP, PackagePackageableElementCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart nestedDeviceCNEP = createChild(NestedDeviceEditPartCN.VISUAL_ID, firstLevelChildPackageCompEP);
+
+ checkListElementReferenceSemantic(nestedDeviceCNEP, firstLevelChidPackageEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testNestedExecEnviromentCNInPackageCN() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart firstLevelChidPackageEP = createChild(PackageEditPartCN.VISUAL_ID, packageCompEP);
+ IGraphicalEditPart firstLevelChildPackageCompEP = findChildBySemanticHint(firstLevelChidPackageEP, PackagePackageableElementCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart nestedExecEnvirEP = createChild(NestedExecutionEnvironmentEditPartCN.VISUAL_ID, firstLevelChildPackageCompEP);
+
+ checkListElementReferenceSemantic(nestedExecEnvirEP, firstLevelChidPackageEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testNestedArtifactCNInPackageCN() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart firstLevelChidPackageEP = createChild(PackageEditPartCN.VISUAL_ID, packageCompEP);
+ IGraphicalEditPart firstLevelChildPackageCompEP = findChildBySemanticHint(firstLevelChidPackageEP, PackagePackageableElementCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart nestedArtifactCNEP = createChild(NestedArtifactNodeEditPartCN.VISUAL_ID, firstLevelChildPackageCompEP);
+
+ checkListElementReferenceSemantic(nestedArtifactCNEP, firstLevelChidPackageEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testNestedNodeCNInPackageCN() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart firstLevelChidPackageEP = createChild(PackageEditPartCN.VISUAL_ID, packageCompEP);
+ IGraphicalEditPart firstLevelChildPackageCompEP = findChildBySemanticHint(firstLevelChidPackageEP, PackagePackageableElementCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart nestedNodeEP = createChild(NestedNodeEditPartCN.VISUAL_ID, firstLevelChildPackageCompEP);
+
+ checkListElementReferenceSemantic(nestedNodeEP, firstLevelChidPackageEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testCommentCNInPackageCN() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart firstLevelChidPackageEP = createChild(PackageEditPartCN.VISUAL_ID, packageCompEP);
+ IGraphicalEditPart firstLevelChildPackageCompEP = findChildBySemanticHint(firstLevelChidPackageEP, PackagePackageableElementCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart commentCNEP = createChild(CommentEditPartCN.VISUAL_ID, firstLevelChildPackageCompEP);
+
+ checkListElementReferenceSemantic(commentCNEP, firstLevelChidPackageEP, UMLPackage.eINSTANCE.getElement_OwnedComment());
+ }
+
+ @Test
+ public void testConstraintCNInPackageCN() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart firstLevelChidPackageEP = createChild(PackageEditPartCN.VISUAL_ID, packageCompEP);
+ IGraphicalEditPart firstLevelChildPackageCompEP = findChildBySemanticHint(firstLevelChidPackageEP, PackagePackageableElementCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart constraintCNEP = createChild(ConstraintEditPartCN.VISUAL_ID, firstLevelChildPackageCompEP);
+
+ checkListElementReferenceSemantic(constraintCNEP, firstLevelChidPackageEP, UMLPackage.eINSTANCE.getNamespace_OwnedRule());
+ }
+
+ @Test
+ public void testPackageCNInModelCN() {
+ IGraphicalEditPart modelEP = createChild(ModelEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart modelCompEP = findChildBySemanticHint(modelEP, ModelPackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart firstLevelChidModelEP = createChild(ModelEditPartCN.VISUAL_ID, modelCompEP);
+ IGraphicalEditPart firstLevelChildModelCompEP = findChildBySemanticHint(firstLevelChidModelEP, ModelPackageableElementCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart secondLevelChidPackageEP = createChild(PackageEditPartCN.VISUAL_ID, firstLevelChildModelCompEP);
+
+ checkListElementReferenceSemantic(secondLevelChidPackageEP, firstLevelChidModelEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testModelCNInModelCN() {
+ IGraphicalEditPart modelEP = createChild(ModelEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart modelCompEP = findChildBySemanticHint(modelEP, ModelPackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart firstLevelChidModelEP = createChild(ModelEditPartCN.VISUAL_ID, modelCompEP);
+ IGraphicalEditPart firstLevelChildModelCompEP = findChildBySemanticHint(firstLevelChidModelEP, ModelPackageableElementCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart modelCNEP = createChild(ModelEditPartCN.VISUAL_ID, firstLevelChildModelCompEP);
+
+ checkListElementReferenceSemantic(modelCNEP, firstLevelChildModelCompEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testNestedDeviceCNInModelCN() {
+ IGraphicalEditPart modelEP = createChild(ModelEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart modelCompEP = findChildBySemanticHint(modelEP, ModelPackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart firstLevelChidModelEP = createChild(ModelEditPartCN.VISUAL_ID, modelCompEP);
+ IGraphicalEditPart firstLevelChildModelCompEP = findChildBySemanticHint(firstLevelChidModelEP, ModelPackageableElementCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart nestedDeviceCNEP = createChild(NestedDeviceEditPartCN.VISUAL_ID, firstLevelChildModelCompEP);
+
+ checkListElementReferenceSemantic(nestedDeviceCNEP, firstLevelChidModelEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testNestedExecEnviromentCNInModelCN() {
+ IGraphicalEditPart modelEP = createChild(ModelEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart modelCompEP = findChildBySemanticHint(modelEP, ModelPackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart firstLevelChidModelEP = createChild(ModelEditPartCN.VISUAL_ID, modelCompEP);
+ IGraphicalEditPart firstLevelChildModelCompEP = findChildBySemanticHint(firstLevelChidModelEP, ModelPackageableElementCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart nestedExecEnvirEP = createChild(NestedExecutionEnvironmentEditPartCN.VISUAL_ID, firstLevelChildModelCompEP);
+
+ checkListElementReferenceSemantic(nestedExecEnvirEP, firstLevelChidModelEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testNestedArtifactCNInModelCN() {
+ IGraphicalEditPart modelEP = createChild(ModelEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart modelCompEP = findChildBySemanticHint(modelEP, ModelPackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart firstLevelChidModelEP = createChild(ModelEditPartCN.VISUAL_ID, modelCompEP);
+ IGraphicalEditPart firstLevelChildModelCompEP = findChildBySemanticHint(firstLevelChidModelEP, ModelPackageableElementCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart nestedArtifactCNEP = createChild(NestedArtifactNodeEditPartCN.VISUAL_ID, firstLevelChildModelCompEP);
+
+ checkListElementReferenceSemantic(nestedArtifactCNEP, firstLevelChidModelEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testNestedNodeCNInModelCN() {
+ IGraphicalEditPart modelEP = createChild(ModelEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart modelCompEP = findChildBySemanticHint(modelEP, ModelPackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart firstLevelChidModelEP = createChild(ModelEditPartCN.VISUAL_ID, modelCompEP);
+ IGraphicalEditPart firstLevelChildModelCompEP = findChildBySemanticHint(firstLevelChidModelEP, ModelPackageableElementCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart nestedNodeEP = createChild(NestedNodeEditPartCN.VISUAL_ID, firstLevelChildModelCompEP);
+
+ checkListElementReferenceSemantic(nestedNodeEP, firstLevelChidModelEP, UMLPackage.eINSTANCE.getPackage_PackagedElement());
+ }
+
+ @Test
+ public void testCommentCNInModelCN() {
+ IGraphicalEditPart modelEP = createChild(ModelEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart modelCompEP = findChildBySemanticHint(modelEP, ModelPackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart firstLevelChidModelEP = createChild(ModelEditPartCN.VISUAL_ID, modelCompEP);
+ IGraphicalEditPart firstLevelChildModelCompEP = findChildBySemanticHint(firstLevelChidModelEP, ModelPackageableElementCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart commentCNEP = createChild(CommentEditPartCN.VISUAL_ID, firstLevelChildModelCompEP);
+
+ checkListElementReferenceSemantic(commentCNEP, firstLevelChidModelEP, UMLPackage.eINSTANCE.getElement_OwnedComment());
+ }
+
+ @Test
+ public void testConstraintCNInModelCN() {
+ IGraphicalEditPart modelEP = createChild(ModelEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart modelCompEP = findChildBySemanticHint(modelEP, ModelPackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart firstLevelChidModelEP = createChild(ModelEditPartCN.VISUAL_ID, modelCompEP);
+ IGraphicalEditPart firstLevelChildModelCompEP = findChildBySemanticHint(firstLevelChidModelEP, ModelPackageableElementCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart constraintCNEP = createChild(ConstraintEditPartCN.VISUAL_ID, firstLevelChildModelCompEP);
+
+ checkListElementReferenceSemantic(constraintCNEP, firstLevelChidModelEP, UMLPackage.eINSTANCE.getNamespace_OwnedRule());
+ }
+
+ @Test
+ public void testExecEnvirCNInNestedDeviceCN() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childNestedDeviceEP = createChild(NestedDeviceEditPartCN.VISUAL_ID, packageCompEP);
+ IGraphicalEditPart nestedDeviceCompEP = findChildBySemanticHint(childNestedDeviceEP, DeviceCompositeCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart childExecEnvirEP = createChild(ExecutionEnvironmentEditPartCN.VISUAL_ID, nestedDeviceCompEP);
+
+ checkListElementReferenceSemantic(childExecEnvirEP, childNestedDeviceEP, UMLPackage.eINSTANCE.getNode_NestedNode());
+ }
+
+ @Test
+ public void testDeviceCNInNestedDeviceCN() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childNestedDeviceEP = createChild(NestedDeviceEditPartCN.VISUAL_ID, packageCompEP);
+ IGraphicalEditPart nestedDeviceCompEP = findChildBySemanticHint(childNestedDeviceEP, DeviceCompositeCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart secondLevelChidDeviceEP = createChild(DeviceEditPartCN.VISUAL_ID, nestedDeviceCompEP);
+
+ checkListElementReferenceSemantic(secondLevelChidDeviceEP, childNestedDeviceEP, UMLPackage.eINSTANCE.getNode_NestedNode());
+ }
+
+ @Test
+ public void testNodeCNInNestedDeviceCN() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childNestedDeviceEP = createChild(NestedDeviceEditPartCN.VISUAL_ID, packageCompEP);
+ IGraphicalEditPart nestedDeviceCompEP = findChildBySemanticHint(childNestedDeviceEP, DeviceCompositeCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart childNodeEP = createChild(NodeEditPartCN.VISUAL_ID, nestedDeviceCompEP);
+
+ checkListElementReferenceSemantic(childNodeEP, childNestedDeviceEP, UMLPackage.eINSTANCE.getNode_NestedNode());
+ }
+
+ @Test
+ public void testExecEnvirCNInNestedExecEnvirCN() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart nestedExecEnvirEP = createChild(NestedExecutionEnvironmentEditPartCN.VISUAL_ID, packageCompEP);
+ IGraphicalEditPart nestedExecEnvirCompEP = findChildBySemanticHint(nestedExecEnvirEP, ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart secondLevelExecEnvCNEP = createChild(ExecutionEnvironmentEditPartCN.VISUAL_ID, nestedExecEnvirCompEP);
+
+ checkListElementReferenceSemantic(secondLevelExecEnvCNEP, nestedExecEnvirEP, UMLPackage.eINSTANCE.getNode_NestedNode());
+ }
+
+ @Test
+ public void testArtifactCNInNestedExecEnvirCN() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart nestedExecEnvirEP = createChild(NestedExecutionEnvironmentEditPartCN.VISUAL_ID, packageCompEP);
+ IGraphicalEditPart nestedExecEnvirCompEP = findChildBySemanticHint(nestedExecEnvirEP, ExecutionEnvironmentCompositeCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart secondLevelArtifactCNEP = createChild(ArtifactEditPartCN.VISUAL_ID, nestedExecEnvirCompEP);
+
+ checkListElementReferenceSemantic(secondLevelArtifactCNEP, nestedExecEnvirEP, UMLPackage.eINSTANCE.getClass_NestedClassifier());
+ }
+
+ @Test
+ public void testArtifactACNInArtifactACN() {
+ IGraphicalEditPart artifactEP = createChild(ArtifactEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart artifactCompEP = findChildBySemanticHint(artifactEP, ArtifactCompositeCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childArtifactACNEP = createChild(ArtifactEditPartACN.VISUAL_ID, artifactCompEP);
+ IGraphicalEditPart childArtifactCompACNEP = findChildBySemanticHint(childArtifactACNEP, ArtifactCompositeCompartmentEditPartACN.VISUAL_ID);
+ IGraphicalEditPart secondLevelChidArtifactACN = createChild(ArtifactEditPartACN.VISUAL_ID, childArtifactCompACNEP);
+
+ checkListElementReferenceSemantic(secondLevelChidArtifactACN, childArtifactACNEP, UMLPackage.eINSTANCE.getArtifact_NestedArtifact());
+ }
+
+ @Test
+ public void testArtifactACNInArtifactCN() {
+ IGraphicalEditPart execEnvirEP = createChild(ExecutionEnvironmentEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart execEnvirCompEP = findChildBySemanticHint(execEnvirEP, ExecutionEnvironmentCompositeCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart childArtifactEP = createChild(ArtifactEditPartCN.VISUAL_ID, execEnvirCompEP);
+ IGraphicalEditPart childArtifactCompEP = findChildBySemanticHint(childArtifactEP, ArtifactCompositeCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart secondLevelChidArtifactACN = createChild(ArtifactEditPartACN.VISUAL_ID, childArtifactCompEP);
+
+ checkListElementReferenceSemantic(secondLevelChidArtifactACN, childArtifactEP, UMLPackage.eINSTANCE.getArtifact_NestedArtifact());
+ }
+
+ @Test
+ public void testExecEnvirCNInNestedNodeCN() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart nestedNodeEP = createChild(NestedNodeEditPartCN.VISUAL_ID, packageCompEP);
+ IGraphicalEditPart nestedNodeCompEP = findChildBySemanticHint(nestedNodeEP, NodeCompositeCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart childExecEnvirEP = createChild(ExecutionEnvironmentEditPartCN.VISUAL_ID, nestedNodeCompEP);
+
+ checkListElementReferenceSemantic(childExecEnvirEP, nestedNodeEP, UMLPackage.eINSTANCE.getNode_NestedNode());
+ }
+
+ @Test
+ public void testDeviceCNInNestedNodeCN() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart nestedNodeEP = createChild(NestedNodeEditPartCN.VISUAL_ID, packageCompEP);
+ IGraphicalEditPart nestedNodeCompEP = findChildBySemanticHint(nestedNodeEP, NodeCompositeCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart childDeviceCNEP = createChild(DeviceEditPartCN.VISUAL_ID, nestedNodeCompEP);
+
+ checkListElementReferenceSemantic(childDeviceCNEP, nestedNodeEP, UMLPackage.eINSTANCE.getNode_NestedNode());
+ }
+
+ @Test
+ public void testNodeCNInNestedNodeCN() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart nestedNodeEP = createChild(NestedNodeEditPartCN.VISUAL_ID, packageCompEP);
+ IGraphicalEditPart nestedNodeCompEP = findChildBySemanticHint(nestedNodeEP, NodeCompositeCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart secondLevelNodeCNEP = createChild(NodeEditPartCN.VISUAL_ID, nestedNodeCompEP);
+
+ checkListElementReferenceSemantic(secondLevelNodeCNEP, nestedNodeEP, UMLPackage.eINSTANCE.getNode_NestedNode());
+ }
+
+ @Test
+ public void testArtifactCNInNestedNodeCN() {
+ IGraphicalEditPart packageEP = createChild(PackageEditPart.VISUAL_ID, getDiagramEditPart());
+ IGraphicalEditPart packageCompEP = findChildBySemanticHint(packageEP, PackagePackageableElementCompartmentEditPart.VISUAL_ID);
+ IGraphicalEditPart nestedNodeEP = createChild(NestedNodeEditPartCN.VISUAL_ID, packageCompEP);
+ IGraphicalEditPart nestedNodeCompEP = findChildBySemanticHint(nestedNodeEP, NodeCompositeCompartmentEditPartCN.VISUAL_ID);
+ IGraphicalEditPart childExecEnvirEP = createChild(ArtifactEditPartCN.VISUAL_ID, nestedNodeCompEP);
+
+ checkListElementReferenceSemantic(childExecEnvirEP, nestedNodeEP, UMLPackage.eINSTANCE.getClass_NestedClassifier());
+ }
+}
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview.tests/org.eclipse.papyrus.uml.diagram.interactionoverview.tests.launch b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview.tests/org.eclipse.papyrus.uml.diagram.interactionoverview.tests.launch
index 2445de96c37..d20acbb0a13 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview.tests/org.eclipse.papyrus.uml.diagram.interactionoverview.tests.launch
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview.tests/org.eclipse.papyrus.uml.diagram.interactionoverview.tests.launch
@@ -23,9 +23,6 @@
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
</listAttribute>
-<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
-</listAttribute>
<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/tests/canonical/AllCanonicalTests.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/tests/canonical/AllCanonicalTests.java
index d479644a76c..82cf7cd87cf 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/tests/canonical/AllCanonicalTests.java
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/tests/canonical/AllCanonicalTests.java
@@ -16,6 +16,6 @@ import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
-@Suite.SuiteClasses({ TestProfileDiagramTopNode.class, TestProfileDiagramChildNode.class, TestProfileDiagramLink.class })
+@Suite.SuiteClasses({ TestProfileDiagramTopNode.class, TestProfileDiagramChildNode.class, TestProfileDiagramLink.class, TestImportMetaClass.class, TestProfileDiagramExtension.class })
public class AllCanonicalTests {
}
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/tests/canonical/TestImportMetaClass.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/tests/canonical/TestImportMetaClass.java
new file mode 100644
index 00000000000..d207ef85756
--- /dev/null
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/tests/canonical/TestImportMetaClass.java
@@ -0,0 +1,134 @@
+package org.eclipse.papyrus.uml.diagram.profile.tests.canonical;
+
+
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.RequestConstants;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gef.requests.GroupRequest;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.requests.CreateConnectionViewRequest;
+import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
+import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequestFactory;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.tooling.runtime.update.DiagramUpdater;
+import org.eclipse.papyrus.commands.ICreationCommand;
+import org.eclipse.papyrus.uml.diagram.profile.CreateProfileDiagramCommand;
+import org.eclipse.papyrus.uml.diagram.profile.custom.helper.MetaclassHelper;
+import org.eclipse.papyrus.uml.diagram.profile.part.UMLDiagramUpdater;
+import org.eclipse.papyrus.uml.diagram.profile.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.tests.canonical.TestTopNode;
+import org.eclipse.papyrus.uml.tools.providers.UMLMetaclassContentProvider;
+import org.eclipse.uml2.uml.Profile;
+import org.junit.Assert;
+import org.junit.Test;
+
+public class TestImportMetaClass extends TestTopNode {
+
+ @Override
+ public DiagramUpdater getDiagramUpdater() {
+ return UMLDiagramUpdater.INSTANCE;
+ }
+
+ @Override
+ protected CreateViewRequest createViewRequestShapeContainer() {
+ return CreateViewRequestFactory.getCreateShapeRequest(UMLElementTypes.Package_2007, getDiagramEditPart().getDiagramPreferencesHint());
+ }
+
+ @Override
+ protected ICreationCommand getDiagramCommandCreation() {
+ return (ICreationCommand) new CreateProfileDiagramCommand();
+ }
+
+ @Override
+ protected String getProjectName() {
+ return "ProfileDiagramTestProject";
+ }
+
+ @Override
+ protected String getFileName() {
+ return "ProfileDiagramTest.profile.di";
+ }
+
+ @Test
+ public void testImportMetaClass() {
+ // create Stereotype
+ GraphicalEditPart stereotypeEditPart = createNodeOnDiagram(UMLElementTypes.Stereotype_1026, new Point(100, 100), 1);
+ // import metaclass
+ GraphicalEditPart metaClassEditPart = createMetaclassOnDiagram(new Point(100, 300), 2);
+ // create a extension link between stereotype and metaclass
+ createALink(UMLElementTypes.Extension_1013, stereotypeEditPart, metaClassEditPart);
+ // test enable for delete metaclass from model
+ testEnableForDeleteFromModel(metaClassEditPart);
+ // delete metaclass from diagram
+ deleteView(metaClassEditPart);
+ // re-import metaclass
+ metaClassEditPart = createMetaclassOnDiagram(new Point(100, 300), 2);
+ assertNotNull("Expected not null MetaclassEditPart.", metaClassEditPart);
+ }
+
+ private void deleteView(GraphicalEditPart deletedEditPart) {
+ // Delete view from diagram
+ Request deleteViewRequest = new GroupRequest(RequestConstants.REQ_DELETE);
+ Command command = deletedEditPart.getCommand(deleteViewRequest);
+ assertNotNull(VIEW_DELETION + COMMAND_NULL, command);
+ assertTrue(VIEW_DELETION + TEST_IF_THE_COMMAND_IS_CREATED, command != UnexecutableCommand.INSTANCE);
+ assertTrue(VIEW_DELETION + TEST_IF_THE_COMMAND_CAN_BE_EXECUTED, command.canExecute());
+ diagramEditor.getDiagramEditDomain().getDiagramCommandStack().execute(command);
+ }
+
+ private GraphicalEditPart createMetaclassOnDiagram(Point loc, int childrenDiagramEditPartId) {
+ CreateViewRequest requestcreation = CreateViewRequestFactory.getCreateShapeRequest(UMLElementTypes.Class_1031, getDiagramEditPart().getDiagramPreferencesHint());
+ Profile parentProfile = MetaclassHelper.getParentProfile(getDiagramEditPart());
+ List<Object> importedElements = Arrays.asList(new UMLMetaclassContentProvider(parentProfile).getElements());
+ List<Object> forDialogSetup = new ArrayList<Object>();
+ forDialogSetup.add(importedElements.get(0));
+ MetaclassHelper.setupSuppressDialogRequest(requestcreation, forDialogSetup);
+ assertTrue("Metaclass selection dialog should be supressed.", MetaclassHelper.shouldSuppressDialog(requestcreation));
+ return createNodeOnDiagram(requestcreation, loc, childrenDiagramEditPartId);
+ }
+
+ private GraphicalEditPart createNodeOnDiagram(IElementType nodeType, Point loc, int childrenDiagramEditPartId) {
+ CreateViewRequest requestcreation = CreateViewRequestFactory.getCreateShapeRequest(nodeType, getDiagramEditPart().getDiagramPreferencesHint());
+ return createNodeOnDiagram(requestcreation, loc, childrenDiagramEditPartId);
+ }
+
+ private GraphicalEditPart createNodeOnDiagram(CreateViewRequest request, Point loc, int childrenDiagramEditPartId) {
+ request.setLocation(loc);
+ Command command = getDiagramEditPart().getCommand(request);
+ assertNotNull(CREATION + COMMAND_NULL, command);
+ assertTrue(CREATION + TEST_IF_THE_COMMAND_IS_CREATED, command != UnexecutableCommand.INSTANCE);
+ assertTrue("CREATION: " + TEST_IF_THE_COMMAND_CAN_BE_EXECUTED, command.canExecute() == true); //$NON-NLS-1$
+ diagramEditor.getDiagramEditDomain().getDiagramCommandStack().execute(command);
+ return (GraphicalEditPart) getDiagramEditPart().getChildren().get(childrenDiagramEditPartId - 1);
+ }
+
+ private void createALink(IElementType linkType, GraphicalEditPart source, GraphicalEditPart target) {
+ Command command = target.getCommand(createConnectionViewRequest(linkType, source, target));
+ Assert.assertNotNull(CREATION + COMMAND_NULL, command);
+ Assert.assertTrue(CONTAINER_CREATION + TEST_IF_THE_COMMAND_CAN_BE_EXECUTED, command.canExecute() == true);
+ diagramEditor.getDiagramEditDomain().getDiagramCommandStack().execute(command);
+ }
+
+ private CreateConnectionViewRequest createConnectionViewRequest(IElementType type, EditPart source, EditPart target) {
+ CreateConnectionViewRequest connectionRequest = CreateViewRequestFactory.getCreateConnectionRequest(type, ((IGraphicalEditPart) getDiagramEditPart()).getDiagramPreferencesHint());
+ connectionRequest.setSourceEditPart(null);
+ connectionRequest.setTargetEditPart(source);
+ connectionRequest.setType(RequestConstants.REQ_CONNECTION_START);
+ source.getCommand(connectionRequest);
+ connectionRequest.setSourceEditPart(source);
+ connectionRequest.setTargetEditPart(target);
+ connectionRequest.setType(RequestConstants.REQ_CONNECTION_END);
+ return connectionRequest;
+ }
+}
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/tests/canonical/TestProfileDiagramExtension.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/tests/canonical/TestProfileDiagramExtension.java
new file mode 100644
index 00000000000..2d76ac0bcd1
--- /dev/null
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/tests/canonical/TestProfileDiagramExtension.java
@@ -0,0 +1,164 @@
+package org.eclipse.papyrus.uml.diagram.profile.tests.canonical;
+
+
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gef.EditPart;
+import org.eclipse.gef.Request;
+import org.eclipse.gef.RequestConstants;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gef.commands.UnexecutableCommand;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.requests.CreateConnectionViewRequest;
+import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
+import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequestFactory;
+import org.eclipse.gmf.runtime.diagram.ui.requests.EditCommandRequestWrapper;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
+import org.eclipse.gmf.runtime.notation.Diagram;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.papyrus.commands.ICreationCommand;
+import org.eclipse.papyrus.uml.diagram.common.commands.ShowHideElementsRequest;
+import org.eclipse.papyrus.uml.diagram.profile.CreateProfileDiagramCommand;
+import org.eclipse.papyrus.uml.diagram.profile.custom.edit.parts.CustomUMLDiagramUpdater;
+import org.eclipse.papyrus.uml.diagram.profile.custom.helper.MetaclassHelper;
+import org.eclipse.papyrus.uml.diagram.profile.edit.parts.StereotypeAttributeCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.profile.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.tests.canonical.AbstractPapyrusTestCase;
+import org.eclipse.papyrus.uml.tools.providers.UMLMetaclassContentProvider;
+import org.eclipse.uml2.uml.Profile;
+import org.eclipse.uml2.uml.Property;
+import org.eclipse.uml2.uml.Stereotype;
+import org.junit.Assert;
+import org.junit.Test;
+
+public class TestProfileDiagramExtension extends AbstractPapyrusTestCase {
+
+ @Override
+ protected ICreationCommand getDiagramCommandCreation() {
+ return new CreateProfileDiagramCommand();
+ }
+
+ @Override
+ protected String getProjectName() {
+ return "ProfileDiagramTestProject";
+ }
+
+ @Override
+ protected String getFileName() {
+ return "ProfileDiagramTest.profile.di";
+ }
+
+ @Test
+ public void testDestroyExtensionProperty() {
+ // create Stereotype
+ GraphicalEditPart stereotypeEditPart = createNodeOnDiagram(UMLElementTypes.Stereotype_1026, new Point(100, 100), 1);
+ EObject stereotypeObject = ((View) stereotypeEditPart.getModel()).getElement();
+ Assert.assertTrue("Expected StereotypeImpl.", stereotypeObject instanceof Stereotype);
+ Stereotype stereotypeElement = (Stereotype) stereotypeObject;
+ Assert.assertTrue("Stereotype owned attr list should be empty at this step.", stereotypeElement.getOwnedAttributes().isEmpty());
+ IGraphicalEditPart propertyCompartment = findChildBySemanticHint(stereotypeEditPart, StereotypeAttributeCompartmentEditPart.VISUAL_ID);
+ GraphicalEditPart metaClassEditPart = createMetaclassOnDiagram(new Point(100, 300), 2);
+ // expected CSSConnectorImpl@6a2d9ede (type: StereotypeCommentLink) after the MetaclassEditPart creating
+ int linksAtStart = 1;
+ checkLinksCount(linksAtStart);
+ // create a extension link between stereotype and metaclass
+ createLink(UMLElementTypes.Extension_1013, stereotypeEditPart, metaClassEditPart);
+ checkLinksCount(linksAtStart + 1);
+ Assert.assertEquals("Expected just one stereotype owned attr.", 1, stereotypeElement.getOwnedAttributes().size());
+ Property extensionProperty = stereotypeElement.getOwnedAttributes().get(0);
+ showStereotypePropertyView(stereotypeEditPart, propertyCompartment.getNotationView(), extensionProperty);
+ Assert.assertEquals("Expected just one stereotype property attr.", 1, propertyCompartment.getChildren().size());
+ IGraphicalEditPart stereotypePropertyEP = (IGraphicalEditPart) propertyCompartment.getChildren().get(0);
+ Assert.assertTrue("stereotype property attr should be Property", ((View) stereotypePropertyEP.getModel()).getElement() instanceof Property);
+ destroyEditPart(stereotypePropertyEP);
+ Assert.assertTrue("We had removed stereotype property so owned attributes list should be empty.", stereotypeElement.getOwnedAttributes().isEmpty());
+ checkLinksCount(linksAtStart);
+ }
+
+ private void checkLinksCount(int expected) {
+ Assert.assertEquals("Diagram updater must detect that no link has been created", expected, CustomUMLDiagramUpdater.INSTANCE.getContainedLinks(getRootView()).size()); //$NON-NLS-1$
+ Assert.assertEquals(CREATION + INITIALIZATION_TEST, expected, ((Diagram) getRootView()).getEdges().size());
+ }
+
+ private void showStereotypePropertyView(EditPart parentEP, View compartmentView, Property property) {
+ ShowHideElementsRequest req = new ShowHideElementsRequest(compartmentView, property);
+ Command cmd = parentEP.getCommand(req);
+ assertNotNull(CREATION + COMMAND_NULL, cmd);
+ assertTrue(CREATION + TEST_IF_THE_COMMAND_IS_CREATED, cmd != UnexecutableCommand.INSTANCE);
+ assertTrue("CREATION: " + TEST_IF_THE_COMMAND_CAN_BE_EXECUTED, cmd.canExecute()); //$NON-NLS-1$
+ diagramEditor.getDiagramEditDomain().getDiagramCommandStack().execute(cmd);
+ }
+
+ private IGraphicalEditPart findChildBySemanticHint(IGraphicalEditPart parent, int vid) {
+ return findChildBySemanticHint(parent, Integer.toString(vid));
+ }
+
+ private IGraphicalEditPart findChildBySemanticHint(IGraphicalEditPart parent, String vid) {
+ IGraphicalEditPart childEP = parent.getChildBySemanticHint(vid);
+ assertNotNull("Parent " + parent + ", type " + parent.getNotationView() + " looking for: " + vid, childEP);
+ return childEP;
+ }
+
+ private void destroyEditPart(EditPart currentEditPart) {
+ Request deleteViewRequest = new EditCommandRequestWrapper(new DestroyElementRequest(false));
+ Command command = currentEditPart.getCommand(deleteViewRequest);
+ assertNotNull(DESTROY_DELETION + COMMAND_NULL, command);
+ assertTrue(DESTROY_DELETION + TEST_IF_THE_COMMAND_IS_CREATED, command != UnexecutableCommand.INSTANCE);
+ assertTrue(DESTROY_DELETION + TEST_IF_THE_COMMAND_CAN_BE_EXECUTED, command.canExecute());
+ executeOnUIThread(command);
+ }
+
+ private GraphicalEditPart createMetaclassOnDiagram(Point loc, int childrensCount) {
+ CreateViewRequest requestcreation = CreateViewRequestFactory.getCreateShapeRequest(UMLElementTypes.Class_1031, getDiagramEditPart().getDiagramPreferencesHint());
+ Profile parentProfile = MetaclassHelper.getParentProfile(getDiagramEditPart());
+ List<Object> importedElements = Arrays.asList(new UMLMetaclassContentProvider(parentProfile).getElements());
+ List<Object> forDialogSetup = new ArrayList<Object>();
+ forDialogSetup.add(importedElements.get(0));
+ MetaclassHelper.setupSuppressDialogRequest(requestcreation, forDialogSetup);
+ assertTrue("Metaclass selection dialog should be supressed.", MetaclassHelper.shouldSuppressDialog(requestcreation));
+ return createNodeOnDiagram(requestcreation, loc, childrensCount);
+ }
+
+ private GraphicalEditPart createNodeOnDiagram(IElementType nodeType, Point loc, int childrensCount) {
+ CreateViewRequest requestcreation = CreateViewRequestFactory.getCreateShapeRequest(nodeType, getDiagramEditPart().getDiagramPreferencesHint());
+ return createNodeOnDiagram(requestcreation, loc, childrensCount);
+ }
+
+ private GraphicalEditPart createNodeOnDiagram(CreateViewRequest request, Point loc, int childrensCount) {
+ request.setLocation(loc);
+ Command command = getDiagramEditPart().getCommand(request);
+ assertNotNull(CREATION + COMMAND_NULL, command);
+ assertTrue(CREATION + TEST_IF_THE_COMMAND_IS_CREATED, command != UnexecutableCommand.INSTANCE);
+ assertTrue("CREATION: " + TEST_IF_THE_COMMAND_CAN_BE_EXECUTED, command.canExecute()); //$NON-NLS-1$
+ diagramEditor.getDiagramEditDomain().getDiagramCommandStack().execute(command);
+ return (GraphicalEditPart) getDiagramEditPart().getChildren().get(childrensCount - 1);
+ }
+
+ private void createLink(IElementType linkType, GraphicalEditPart source, GraphicalEditPart target) {
+ Command command = target.getCommand(createConnectionViewRequest(linkType, source, target));
+ Assert.assertNotNull(CREATION + COMMAND_NULL, command);
+ Assert.assertTrue(CONTAINER_CREATION + TEST_IF_THE_COMMAND_CAN_BE_EXECUTED, command.canExecute());
+ diagramEditor.getDiagramEditDomain().getDiagramCommandStack().execute(command);
+ }
+
+ private CreateConnectionViewRequest createConnectionViewRequest(IElementType type, EditPart source, EditPart target) {
+ CreateConnectionViewRequest connectionRequest = CreateViewRequestFactory.getCreateConnectionRequest(type, ((IGraphicalEditPart) getDiagramEditPart()).getDiagramPreferencesHint());
+ connectionRequest.setSourceEditPart(null);
+ connectionRequest.setTargetEditPart(source);
+ connectionRequest.setType(RequestConstants.REQ_CONNECTION_START);
+ source.getCommand(connectionRequest);
+ connectionRequest.setSourceEditPart(source);
+ connectionRequest.setTargetEditPart(target);
+ connectionRequest.setType(RequestConstants.REQ_CONNECTION_END);
+ return connectionRequest;
+ }
+}
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine.tests/src/org/eclipse/papyrus/uml/diagram/statemachine/tests/canonical/BaseTestCase.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine.tests/src/org/eclipse/papyrus/uml/diagram/statemachine/tests/canonical/BaseTestCase.java
index 94c5a4ccb89..7bd5575ffff 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine.tests/src/org/eclipse/papyrus/uml/diagram/statemachine/tests/canonical/BaseTestCase.java
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine.tests/src/org/eclipse/papyrus/uml/diagram/statemachine/tests/canonical/BaseTestCase.java
@@ -13,14 +13,7 @@
package org.eclipse.papyrus.uml.diagram.statemachine.tests.canonical;
-import static org.junit.Assert.assertNotNull;
-
-import org.eclipse.draw2d.geometry.Dimension;
-import org.eclipse.draw2d.geometry.Point;
-import org.eclipse.gef.commands.Command;
import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
-import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequestFactory;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.papyrus.commands.ICreationCommand;
import org.eclipse.papyrus.uml.diagram.statemachine.CreateStateMachineDiagramCommand;
@@ -30,9 +23,9 @@ import org.eclipse.papyrus.uml.diagram.statemachine.edit.parts.StateMachineCompa
import org.eclipse.papyrus.uml.diagram.statemachine.edit.parts.StateMachineEditPart;
import org.eclipse.papyrus.uml.diagram.statemachine.providers.UMLElementTypes;
import org.eclipse.papyrus.uml.diagram.statemachine.tests.IStateMachineDiagramTestsConstants;
-import org.eclipse.papyrus.uml.diagram.tests.canonical.AbstractPapyrusTestCase;
+import org.eclipse.papyrus.uml.diagram.tests.canonical.AbstractPapyrusSemanticTestCase;
-public class BaseTestCase extends AbstractPapyrusTestCase {
+public class BaseTestCase extends AbstractPapyrusSemanticTestCase {
@Override
protected ICreationCommand getDiagramCommandCreation() {
@@ -49,34 +42,15 @@ public class BaseTestCase extends AbstractPapyrusTestCase {
return IStateMachineDiagramTestsConstants.FILE_NAME;
}
- /**
- * create childNodeEditPart in parentEditPart
- */
- protected IGraphicalEditPart createChild(int childVID, IGraphicalEditPart container) {
- final CreateViewRequest requestcreation = createRequest(childVID, container);
- Command cmd = container.getCommand(requestcreation);
- executeOnUIThread(cmd);
- return findChildBySemanticHint(container, childVID);
- }
-
- protected CreateViewRequest createRequest(int childVID, IGraphicalEditPart container) {
- final IElementType childType = UMLElementTypes.getElementType(childVID);
- final CreateViewRequest requestcreation = CreateViewRequestFactory.getCreateShapeRequest(childType, container.getDiagramPreferencesHint());
- requestcreation.setSize(new Dimension(1, 1));
- requestcreation.setLocation(new Point(10, 10));
- return requestcreation;
- }
-
- protected IGraphicalEditPart findChildBySemanticHint(IGraphicalEditPart parent, int vid) {
- IGraphicalEditPart childEP = parent.getChildBySemanticHint(Integer.toString(vid));
- assertNotNull("Parent " + parent + ", type " + parent.getNotationView() + " looking for: " + vid, childEP);
- return childEP;
- }
-
protected IGraphicalEditPart getRegionCompartmentEditPart() {
IGraphicalEditPart sm = findChildBySemanticHint(getDiagramEditPart(), StateMachineEditPart.VISUAL_ID);
IGraphicalEditPart smCompartment = findChildBySemanticHint(sm, StateMachineCompartmentEditPart.VISUAL_ID);
IGraphicalEditPart region = findChildBySemanticHint(smCompartment, RegionEditPart.VISUAL_ID);
return findChildBySemanticHint(region, RegionCompartmentEditPart.VISUAL_ID);
}
+
+ @Override
+ protected IElementType getTypeByID(int vid) {
+ return UMLElementTypes.getElementType(vid);
+ }
}
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine.tests/src/org/eclipse/papyrus/uml/diagram/statemachine/tests/canonical/TestSemantic.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine.tests/src/org/eclipse/papyrus/uml/diagram/statemachine/tests/canonical/TestSemantic.java
index b4632e4d575..01e030febaf 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine.tests/src/org/eclipse/papyrus/uml/diagram/statemachine/tests/canonical/TestSemantic.java
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine.tests/src/org/eclipse/papyrus/uml/diagram/statemachine/tests/canonical/TestSemantic.java
@@ -16,7 +16,6 @@ package org.eclipse.papyrus.uml.diagram.statemachine.tests.canonical;
import java.util.LinkedList;
import java.util.List;
-import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.gef.Request;
import org.eclipse.gef.commands.Command;
@@ -50,11 +49,7 @@ import org.eclipse.papyrus.uml.diagram.statemachine.edit.parts.StateCompartmentE
import org.eclipse.papyrus.uml.diagram.statemachine.edit.parts.StateEditPart;
import org.eclipse.papyrus.uml.diagram.statemachine.edit.parts.StateMachineEditPart;
import org.eclipse.papyrus.uml.diagram.statemachine.providers.UMLElementTypes;
-import org.eclipse.uml2.uml.Behavior;
-import org.eclipse.uml2.uml.Comment;
-import org.eclipse.uml2.uml.ConnectionPointReference;
import org.eclipse.uml2.uml.Constraint;
-import org.eclipse.uml2.uml.FinalState;
import org.eclipse.uml2.uml.Package;
import org.eclipse.uml2.uml.Pseudostate;
import org.eclipse.uml2.uml.PseudostateKind;
@@ -72,12 +67,9 @@ public class TestSemantic extends BaseTestCase {
public void testCommentInRegion() {
IGraphicalEditPart commentEP = createChild(CommentEditPart.VISUAL_ID, getRegionCompartmentEditPart());
- Comment comment = (Comment) commentEP.resolveSemanticElement();
- Region region = (Region) getRegionCompartmentEditPart().resolveSemanticElement();
-
EReference expectedFeature = UMLPackage.eINSTANCE.getElement_OwnedComment();
- checkContainsChildren(region, comment, expectedFeature);
+ checkListElementReferenceSemantic(commentEP, getRegionCompartmentEditPart(), expectedFeature);
}
@Test
@@ -88,9 +80,7 @@ public class TestSemantic extends BaseTestCase {
Region region = (Region) getRegionCompartmentEditPart().resolveSemanticElement();
Package packageElement = region.getNearestPackage();
- EReference expectedFeature = UMLPackage.eINSTANCE.getPackage_PackagedElement();
-
- checkContainsChildren(packageElement, constraint, expectedFeature);
+ Assert.assertTrue("Package shoud contain constraint as packageableElement",packageElement.getPackagedElements().contains(constraint));
}
@Test
@@ -106,11 +96,10 @@ public class TestSemantic extends BaseTestCase {
executeOnUIThread(new GMFtoGEFCommandWrapper(setValueCmd));
IGraphicalEditPart connectionPointReferenceEP = createChild(ConnectionPointReferenceEditPart.VISUAL_ID, stateEP);
- ConnectionPointReference point = (ConnectionPointReference) connectionPointReferenceEP.resolveSemanticElement();
EReference expectedFeature = UMLPackage.eINSTANCE.getState_Connection();
- checkContainsChildren(state, point, expectedFeature);
+ checkListElementReferenceSemantic(connectionPointReferenceEP, stateEP, expectedFeature);
}
@Test
@@ -131,12 +120,9 @@ public class TestSemantic extends BaseTestCase {
IGraphicalEditPart stateEP = createChild(StateEditPart.VISUAL_ID, getRegionCompartmentEditPart());
IGraphicalEditPart doActivityEP = createChild(DoActivityStateBehaviorStateEditPart.VISUAL_ID, stateEP);
- Behavior doActivity = (Behavior) doActivityEP.resolveSemanticElement();
- State state = (State) stateEP.resolveSemanticElement();
-
EReference expectedFeature = UMLPackage.eINSTANCE.getState_DoActivity();
- checkContainChild(state, doActivity, expectedFeature);
+ checkOneElementReferenceSemantic(doActivityEP, stateEP, expectedFeature);
}
@Test
@@ -145,12 +131,9 @@ public class TestSemantic extends BaseTestCase {
IGraphicalEditPart stateEP = createChild(StateEditPart.VISUAL_ID, getRegionCompartmentEditPart());
IGraphicalEditPart entryEP = createChild(EntryStateBehaviorEditPart.VISUAL_ID, stateEP);
- Behavior entry = (Behavior) entryEP.resolveSemanticElement();
- State state = (State) stateEP.resolveSemanticElement();
-
EReference expectedFeature = UMLPackage.eINSTANCE.getState_Entry();
- checkContainChild(state, entry, expectedFeature);
+ checkOneElementReferenceSemantic(entryEP, stateEP, expectedFeature);
}
@Test
@@ -159,24 +142,18 @@ public class TestSemantic extends BaseTestCase {
IGraphicalEditPart stateEP = createChild(StateEditPart.VISUAL_ID, getRegionCompartmentEditPart());
IGraphicalEditPart exitEP = createChild(ExitStateBehaviorEditPart.VISUAL_ID, stateEP);
- Behavior exit = (Behavior) exitEP.resolveSemanticElement();
- State state = (State) stateEP.resolveSemanticElement();
-
EReference expectedFeature = UMLPackage.eINSTANCE.getState_Exit();
- checkContainChild(state, exit, expectedFeature);
+ checkOneElementReferenceSemantic(exitEP, stateEP, expectedFeature);
}
@Test
public void testFinalStateInRegino() {
IGraphicalEditPart finalStateEP = createChild(FinalStateEditPart.VISUAL_ID, getRegionCompartmentEditPart());
- FinalState state = (FinalState) finalStateEP.resolveSemanticElement();
- Region region = (Region) getRegionCompartmentEditPart().resolveSemanticElement();
-
EReference expectedFeature = UMLPackage.eINSTANCE.getRegion_Subvertex();
- checkContainsChildren(region, state, expectedFeature);
+ checkListElementReferenceSemantic(finalStateEP, getRegionCompartmentEditPart(), expectedFeature);
}
@Test
@@ -222,10 +199,7 @@ public class TestSemantic extends BaseTestCase {
public void checkPseudostate(int VID) {
IGraphicalEditPart stateEP = createChild(VID, getRegionCompartmentEditPart());
- Pseudostate pseudostate = (Pseudostate) stateEP.resolveSemanticElement();
- Region region = (Region) getRegionCompartmentEditPart().resolveSemanticElement();
-
- checkContainsChildren(region, pseudostate, UMLPackage.eINSTANCE.getRegion_Subvertex());
+ checkListElementReferenceSemantic(stateEP, getRegionCompartmentEditPart(), UMLPackage.eINSTANCE.getRegion_Subvertex());
}
@Test
@@ -299,10 +273,7 @@ public class TestSemantic extends BaseTestCase {
IGraphicalEditPart stateMachineEP = findChildBySemanticHint(getDiagramEditPart(), StateMachineEditPart.VISUAL_ID);
IGraphicalEditPart pseudostateEP = createChild(VID, stateMachineEP);
- Pseudostate pseudostate = (Pseudostate) pseudostateEP.resolveSemanticElement();
- StateMachine stateMachine = (StateMachine) stateMachineEP.resolveSemanticElement();
-
- checkContainsChildren(stateMachine, pseudostate, UMLPackage.eINSTANCE.getStateMachine_ConnectionPoint());
+ checkListElementReferenceSemantic(pseudostateEP, stateMachineEP, UMLPackage.eINSTANCE.getStateMachine_ConnectionPoint());
}
@Test
@@ -324,10 +295,7 @@ public class TestSemantic extends BaseTestCase {
IGraphicalEditPart stateMachineEP = findChildBySemanticHint(getDiagramEditPart(), StateMachineEditPart.VISUAL_ID);
IGraphicalEditPart pseudostateEP = findChildBySemanticHint(stateMachineEP, VID);
- StateMachine stateMachine = (StateMachine) stateMachineEP.resolveSemanticElement();
- Pseudostate pseudostate = (Pseudostate) pseudostateEP.resolveSemanticElement();
-
- checkContainsChildren(stateMachine, pseudostate, UMLPackage.eINSTANCE.getStateMachine_ConnectionPoint());
+ checkListElementReferenceSemantic(pseudostateEP, stateMachineEP, UMLPackage.eINSTANCE.getStateMachine_ConnectionPoint());
}
@Test
@@ -344,13 +312,8 @@ public class TestSemantic extends BaseTestCase {
Assert.assertNotEquals(firstRegionEP, secondRegionEP);
- StateMachine stateMachine = (StateMachine)getRegionCompartmentEditPart().resolveSemanticElement().eContainer();
-
- Region region_1 = (Region) firstRegionEP.resolveSemanticElement();
- Region region_2 = (Region) secondRegionEP.resolveSemanticElement();
-
- checkContainsChildren(stateMachine, region_1, UMLPackage.eINSTANCE.getStateMachine_Region());
- checkContainsChildren(stateMachine, region_2, UMLPackage.eINSTANCE.getStateMachine_Region());
+ checkListElementReferenceSemantic(firstRegionEP, stateMachineComp, UMLPackage.eINSTANCE.getStateMachine_Region());
+ checkListElementReferenceSemantic(secondRegionEP, stateMachineComp, UMLPackage.eINSTANCE.getStateMachine_Region());
}
@Test
@@ -358,10 +321,7 @@ public class TestSemantic extends BaseTestCase {
IGraphicalEditPart stateMachineComp = (IGraphicalEditPart)getRegionCompartmentEditPart().getParent().getParent();
IGraphicalEditPart regionEP = createChild(RegionEditPart.VISUAL_ID, stateMachineComp);
- StateMachine stateMachine = (StateMachine)stateMachineComp.resolveSemanticElement();
- Region region = (Region) regionEP.resolveSemanticElement();
-
- checkContainsChildren(stateMachine, region, UMLPackage.eINSTANCE.getStateMachine_Region());
+ checkListElementReferenceSemantic(regionEP, stateMachineComp, UMLPackage.eINSTANCE.getStateMachine_Region());
}
@Test
@@ -369,10 +329,7 @@ public class TestSemantic extends BaseTestCase {
IGraphicalEditPart stateEP = createChild(StateEditPart.VISUAL_ID, getRegionCompartmentEditPart());
IGraphicalEditPart regionEP = createChild(RegionEditPart.VISUAL_ID, stateEP);
- State stateMachine = (State)stateEP.resolveSemanticElement();
- Region region = (Region) regionEP.resolveSemanticElement();
-
- checkContainsChildren(stateMachine, region, UMLPackage.eINSTANCE.getState_Region());
+ checkListElementReferenceSemantic(regionEP, stateEP, UMLPackage.eINSTANCE.getState_Region());
}
@Test
@@ -381,20 +338,14 @@ public class TestSemantic extends BaseTestCase {
IGraphicalEditPart stateComp = findChildBySemanticHint(stateEP, StateCompartmentEditPart.VISUAL_ID);
IGraphicalEditPart regionEP = createChild(RegionEditPart.VISUAL_ID, stateComp);
- State state = (State)stateEP.resolveSemanticElement();
- Region region = (Region) regionEP.resolveSemanticElement();
-
- checkContainsChildren(state, region, UMLPackage.eINSTANCE.getState_Region());
+ checkListElementReferenceSemantic(regionEP, stateEP, UMLPackage.eINSTANCE.getState_Region());
}
@Test
public void testStateInRegion() {
IGraphicalEditPart stateEP = createChild(StateEditPart.VISUAL_ID, getRegionCompartmentEditPart());
- State state = (State)stateEP.resolveSemanticElement();
- Region region = (Region) getRegionCompartmentEditPart().resolveSemanticElement();
-
- checkContainsChildren(region, state, UMLPackage.eINSTANCE.getRegion_Subvertex());
+ checkListElementReferenceSemantic(stateEP, getRegionCompartmentEditPart(), UMLPackage.eINSTANCE.getRegion_Subvertex());
}
protected Request createUnspecifiedToolRequest(int VID) {
@@ -406,16 +357,4 @@ public class TestSemantic extends BaseTestCase {
new AspectUnspecifiedTypeCreationTool(types).new CreateAspectUnspecifiedTypeRequest(types, getRegionCompartmentEditPart().getDiagramPreferencesHint());
return req;
}
-
- protected void checkContainsChildren(EObject parent, EObject child, EReference feature) {
- List<?> containmentList = (List<?>)parent.eGet(feature);
- String message = "Element [" + parent + "] don't contain [" + child +"] whith feature:" + feature.getName();
- Assert.assertTrue(message, containmentList.contains(child));
- }
-
- protected void checkContainChild(EObject parent, EObject child, EReference feature) {
- Object containmentElement = parent.eGet(feature);
- String message = "Element [" + parent + "] don't contain [" + child +"] whith feature:" + feature.getName();
- Assert.assertTrue(message, child.equals(containmentElement));
- }
}
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.tests/src/org/eclipse/papyrus/uml/diagram/tests/canonical/AbstractPapyrusSemanticTestCase.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.tests/src/org/eclipse/papyrus/uml/diagram/tests/canonical/AbstractPapyrusSemanticTestCase.java
new file mode 100644
index 00000000000..4ddb9afc7d8
--- /dev/null
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.tests/src/org/eclipse/papyrus/uml/diagram/tests/canonical/AbstractPapyrusSemanticTestCase.java
@@ -0,0 +1,87 @@
+/*****************************************************************************
+ * Copyright (c) 2015 CEA LIST and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.uml.diagram.tests.canonical;
+
+import static org.junit.Assert.assertNotNull;
+
+import java.util.List;
+
+import org.eclipse.draw2d.geometry.Dimension;
+import org.eclipse.draw2d.geometry.Point;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.gef.commands.Command;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
+import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
+import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequestFactory;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.junit.Assert;
+
+public abstract class AbstractPapyrusSemanticTestCase extends AbstractPapyrusTestCase {
+
+ /**
+ * create childNodeEditPart in parentEditPart
+ */
+ protected IGraphicalEditPart createChild(int childVID, IGraphicalEditPart container) {
+ final CreateViewRequest requestcreation = createRequest(childVID, container);
+ Command cmd = container.getCommand(requestcreation);
+ executeOnUIThread(cmd);
+ return findChildBySemanticHint(container, childVID);
+ }
+
+ protected CreateViewRequest createRequest(int childVID, IGraphicalEditPart container) {
+ final IElementType childType = getTypeByID(childVID);
+ final CreateViewRequest requestcreation = CreateViewRequestFactory.getCreateShapeRequest(childType, container.getDiagramPreferencesHint());
+ requestcreation.setSize(new Dimension(1, 1));
+ requestcreation.setLocation(new Point(10, 10));
+ return requestcreation;
+ }
+
+ protected abstract IElementType getTypeByID(int vid);
+
+ protected IGraphicalEditPart findChildBySemanticHint(IGraphicalEditPart parent, int vid) {
+ IGraphicalEditPart childEP = parent.getChildBySemanticHint(Integer.toString(vid));
+ Assert.assertNotNull("Parent " + parent + ", type " + parent.getNotationView() + " looking for: " + vid, childEP);
+ return childEP;
+ }
+
+ public void checkListElementReferenceSemantic(IGraphicalEditPart childEP, IGraphicalEditPart parentEP, EReference... expectedFeature) {
+ EObject child = getSemanticElement(childEP);
+ EObject parent = getSemanticElement(parentEP);
+ for (EReference feature: expectedFeature) {
+ Object objectList = parent.eGet(feature);
+ Assert.assertTrue("Feature result should be list", objectList instanceof List<?>);
+ List<?> children = (List<?>) objectList;
+ Assert.assertTrue(getAssertMasageForContainChild(parent, child, feature), children.contains(child));
+ }
+ }
+
+ public void checkOneElementReferenceSemantic(IGraphicalEditPart childEP, IGraphicalEditPart parentEP, EReference feature) {
+ EObject child = getSemanticElement(childEP);
+ EObject parent = getSemanticElement(parentEP);
+
+ Object objectChildElement = parent.eGet(feature);
+ Assert.assertEquals(getAssertMasageForContainChild(child, parent, feature), child, objectChildElement);
+ }
+
+ protected EObject getSemanticElement(IGraphicalEditPart ep) {
+ EObject activityNode = ep.resolveSemanticElement();
+ assertNotNull("Primary view of " + ep.getNotationView() + " must have EObject element", activityNode);
+ return activityNode;
+ }
+
+ protected String getAssertMasageForContainChild(EObject child, EObject parent, EReference feature) {
+ return "Element:" + parent.getClass().getSimpleName() + "should contein child:" + child.getClass().getSimpleName() + " in feature: " + feature.getName();
+ }
+}
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.tests/src/org/eclipse/papyrus/uml/diagram/tests/canonical/TestCommentLink.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.tests/src/org/eclipse/papyrus/uml/diagram/tests/canonical/TestCommentLink.java
index b2e02595204..2d183dd98b0 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.tests/src/org/eclipse/papyrus/uml/diagram/tests/canonical/TestCommentLink.java
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.tests/src/org/eclipse/papyrus/uml/diagram/tests/canonical/TestCommentLink.java
@@ -26,9 +26,7 @@ import org.eclipse.gef.requests.ReconnectRequest;
import org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart;
import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequestFactory;
-import org.eclipse.gmf.runtime.diagram.ui.requests.EditCommandRequestWrapper;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
import org.eclipse.gmf.runtime.notation.Diagram;
import org.eclipse.uml2.uml.Element;
@@ -77,7 +75,7 @@ public abstract class TestCommentLink extends TestLink {
assertTrue(DESTROY_DELETION + INITIALIZATION_TEST, source.getSourceConnections().size() == 1);
assertTrue(DESTROY_DELETION + INITIALIZATION_TEST, getRootSemanticModel().getOwnedElements().size() == 4);
assertTrue(DESTROY_DELETION + INITIALIZATION_TEST, ((Element)source.resolveSemanticElement()).getOwnedElements().size() == 0);//1
- Request deleteViewRequest = new EditCommandRequestWrapper(new DestroyElementRequest(false));
+ Request deleteViewRequest = new GroupRequest(RequestConstants.REQ_DELETE);
Command command = ((ConnectionEditPart)source.getSourceConnections().get(0)).getCommand(deleteViewRequest);
assertNotNull(DESTROY_DELETION + COMMAND_NULL, command);
assertTrue(DESTROY_DELETION + TEST_IF_THE_COMMAND_IS_CREATED, command != UnexecutableCommand.INSTANCE);
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.tests/src/org/eclipse/papyrus/uml/diagram/tests/canonical/TestConstraintLink.java b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.tests/src/org/eclipse/papyrus/uml/diagram/tests/canonical/TestConstraintLink.java
index d8915bd868a..640a20bf97a 100644
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.tests/src/org/eclipse/papyrus/uml/diagram/tests/canonical/TestConstraintLink.java
+++ b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.tests/src/org/eclipse/papyrus/uml/diagram/tests/canonical/TestConstraintLink.java
@@ -26,9 +26,7 @@ import org.eclipse.gef.requests.ReconnectRequest;
import org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart;
import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequest;
import org.eclipse.gmf.runtime.diagram.ui.requests.CreateViewRequestFactory;
-import org.eclipse.gmf.runtime.diagram.ui.requests.EditCommandRequestWrapper;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
-import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
import org.eclipse.gmf.runtime.notation.Diagram;
import org.eclipse.uml2.uml.Element;
@@ -77,7 +75,7 @@ public abstract class TestConstraintLink extends TestLink {
assertTrue(DESTROY_DELETION + INITIALIZATION_TEST, source.getSourceConnections().size() == 1);
assertTrue(DESTROY_DELETION + INITIALIZATION_TEST, getRootSemanticModel().getOwnedElements().size() == 4);
assertTrue(DESTROY_DELETION + INITIALIZATION_TEST, ((Element)source.resolveSemanticElement()).getOwnedElements().size() == 1);
- Request deleteViewRequest = new EditCommandRequestWrapper(new DestroyElementRequest(false));
+ Request deleteViewRequest = new GroupRequest(RequestConstants.REQ_DELETE);
Command command = ((ConnectionEditPart)source.getSourceConnections().get(0)).getCommand(deleteViewRequest);
assertNotNull(DESTROY_DELETION + COMMAND_NULL, command);
assertTrue(DESTROY_DELETION + TEST_IF_THE_COMMAND_IS_CREATED, command != UnexecutableCommand.INSTANCE);
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config.tests/src/org/eclipse/papyrus/uml/nattable/clazz/config/tests/tests/AllTests.java b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config.tests/src/org/eclipse/papyrus/uml/nattable/clazz/config/tests/tests/AllTests.java
index 91596212132..5a0a6a5449f 100644
--- a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config.tests/src/org/eclipse/papyrus/uml/nattable/clazz/config/tests/tests/AllTests.java
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config.tests/src/org/eclipse/papyrus/uml/nattable/clazz/config/tests/tests/AllTests.java
@@ -1,61 +1,61 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- * Quentin Le Menez (CEA LIST) quentin.lemenez@cea.fr
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.nattable.clazz.config.tests.tests;
-
-import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_Empty_H1_H1_MultiColumns_Test;
-import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_Empty_H1_V1_MultiColumns_Test;
-import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_Empty_H3_V1_MultiColumns_Test;
-import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_Empty_V3_H1_MultiColumns_Test;
-import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_Empty_V3_V1_MultiColumns_Test;
-import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_H1_H1_H1_MultiColumns_Test;
-import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_H1_H1_V1_MultiColumns_Test;
-import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_H1_H3_H1_MultiColumns_Test;
-import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_H1_V3_H1_MultiColumns_Test;
-import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_H1_V3_V1_MultiColumns_Test;
-import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_V1_H1_H1_MultiColumns_Test;
-import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_V1_H1_V1_MultiColumns_Test;
-import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_V1_V3_H1_MultiColumns_Test;
-import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_V1_V3_V1_MultiColumns_Test;
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-import org.junit.runners.Suite.SuiteClasses;
-
-@RunWith(Suite.class)
-@SuiteClasses({
- OpenTableTest.class,
- ContentsAndExpandWithCategories_0_1_2_Tests.class,
- ContentsAndExpandWithoutCategories_H0_H1_H2_Tests.class,
- PasteWithCategories_Empty_H1_H1_MultiColumns_Test.class,
- PasteWithCategories_Empty_H1_V1_MultiColumns_Test.class,
- PasteWithCategories_Empty_H3_V1_MultiColumns_Test.class,
- PasteWithCategories_Empty_V3_H1_MultiColumns_Test.class,
- PasteWithCategories_Empty_V3_V1_MultiColumns_Test.class,
-
- PasteWithCategories_H1_H1_H1_MultiColumns_Test.class,
- PasteWithCategories_H1_H1_V1_MultiColumns_Test.class,
- PasteWithCategories_H1_H3_H1_MultiColumns_Test.class,
- PasteWithCategories_H1_V3_H1_MultiColumns_Test.class,
- PasteWithCategories_H1_V3_V1_MultiColumns_Test.class,
-
- PasteWithCategories_V1_H1_H1_MultiColumns_Test.class,
- PasteWithCategories_V1_H1_V1_MultiColumns_Test.class,
- PasteWithCategories_V1_V3_H1_MultiColumns_Test.class,
-
-
- PasteWithCategories_V1_V3_V1_MultiColumns_Test.class, })
-public class AllTests {
- // JUnit 4 test suite
-
-}
+/*****************************************************************************
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ * Quentin Le Menez (CEA LIST) quentin.lemenez@cea.fr
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.nattable.clazz.config.tests.tests;
+
+import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_Empty_H1_H1_MultiColumns_Test;
+import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_Empty_H1_V1_MultiColumns_Test;
+import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_Empty_H3_V1_MultiColumns_Test;
+import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_Empty_V3_H1_MultiColumns_Test;
+import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_Empty_V3_V1_MultiColumns_Test;
+import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_H1_H1_H1_MultiColumns_Test;
+import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_H1_H1_V1_MultiColumns_Test;
+import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_H1_H3_H1_MultiColumns_Test;
+import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_H1_V3_H1_MultiColumns_Test;
+import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_H1_V3_V1_MultiColumns_Test;
+import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_V1_H1_H1_MultiColumns_Test;
+import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_V1_H1_V1_MultiColumns_Test;
+import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_V1_V3_H1_MultiColumns_Test;
+import org.eclipse.papyrus.uml.nattable.clazz.config.tests.paste.tests.PasteWithCategories_V1_V3_V1_MultiColumns_Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+import org.junit.runners.Suite.SuiteClasses;
+
+@RunWith(Suite.class)
+@SuiteClasses({
+ OpenTableTest.class,
+ ContentsAndExpandWithCategories_0_1_2_Tests.class,
+ ContentsAndExpandWithoutCategories_H0_H1_H2_Tests.class,
+ PasteWithCategories_Empty_H1_H1_MultiColumns_Test.class,
+ PasteWithCategories_Empty_H1_V1_MultiColumns_Test.class,
+ PasteWithCategories_Empty_H3_V1_MultiColumns_Test.class,
+ PasteWithCategories_Empty_V3_H1_MultiColumns_Test.class,
+ PasteWithCategories_Empty_V3_V1_MultiColumns_Test.class,
+
+ PasteWithCategories_H1_H1_H1_MultiColumns_Test.class,
+ PasteWithCategories_H1_H1_V1_MultiColumns_Test.class,
+ PasteWithCategories_H1_H3_H1_MultiColumns_Test.class,
+ PasteWithCategories_H1_V3_H1_MultiColumns_Test.class,
+ PasteWithCategories_H1_V3_V1_MultiColumns_Test.class,
+
+ PasteWithCategories_V1_H1_H1_MultiColumns_Test.class,
+ PasteWithCategories_V1_H1_V1_MultiColumns_Test.class,
+ PasteWithCategories_V1_V3_H1_MultiColumns_Test.class,
+
+
+ PasteWithCategories_V1_V3_V1_MultiColumns_Test.class, })
+public class AllTests {
+ // JUnit 4 test suite
+
+}
diff --git a/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/META-INF/MANIFEST.MF b/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/META-INF/MANIFEST.MF
index bb7271f7de4..1d0ffa431b6 100644
--- a/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/META-INF/MANIFEST.MF
+++ b/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/META-INF/MANIFEST.MF
@@ -6,7 +6,8 @@ Bundle-Version: 1.1.0.qualifier
Fragment-Host: org.eclipse.papyrus.uml.profile.drafter;bundle-version="1.1.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Require-Bundle: org.eclipse.papyrus.infra.gmfdiag.common;bundle-version="1.1.0",
- org.eclipse.papyrus.junit.framework;bundle-version="1.1.0"
+ org.eclipse.papyrus.junit.framework;bundle-version="1.1.0",
+ org.eclipse.papyrus.junit.utils;bundle-version="1.1.0"
Export-Package: org.eclipse.papyrus.uml.profile.drafter.tests,
org.eclipse.papyrus.uml.profile.drafter.tests.exception
Bundle-Vendor: %providerName
diff --git a/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/build.properties b/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/build.properties
index bf365ddb9d7..91b8a30e11e 100644
--- a/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/build.properties
+++ b/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/build.properties
@@ -3,6 +3,6 @@ bin.includes = META-INF/,\
about.html,\
plugin.properties,\
models/
-src.includes = about.html
+src.includes = about.html,,META-INF/MANIFEST.MF
source..=src/,test/
output..=bin/
diff --git a/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/src/org/eclipse/papyrus/uml/profile/drafter/tests/EclipseProject.java b/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/src/org/eclipse/papyrus/uml/profile/drafter/tests/EclipseProject.java
index f5a6ff6afe6..9ddedc51c0c 100644
--- a/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/src/org/eclipse/papyrus/uml/profile/drafter/tests/EclipseProject.java
+++ b/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/src/org/eclipse/papyrus/uml/profile/drafter/tests/EclipseProject.java
@@ -14,6 +14,7 @@ package org.eclipse.papyrus.uml.profile.drafter.tests;
*****************************************************************************/
+import java.io.IOException;
import java.net.URL;
import org.eclipse.core.resources.IFile;
@@ -28,6 +29,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
+import org.eclipse.papyrus.junit.utils.PapyrusProjectUtils;
import org.eclipse.papyrus.uml.profile.drafter.tests.exception.ExecutionException;
@@ -110,29 +112,14 @@ public class EclipseProject {
* @return
* @throws ExecutionException
*/
- // FIXME does not work on Maven
public IFile copyResource(String fromBundle, String fromResourceName, String toResourceName) throws ExecutionException {
try {
- Path toURL = new Path(toResourceName);
- // System.out.println(toURL);
-
- IFile file = project.getFile(toResourceName);
- // link all the models resources
- if (!file.exists()) {
- // Create intermediate folders
- ensureFolders(file);
-
- URL url = FileLocator.find(Platform.getBundle(fromBundle), new Path(fromResourceName), null);
- URL newFile = FileLocator.resolve(url);
-
- // encode the URI for spaces in the path
- // And then create a link to the file
- file.createLink(new URL(newFile.toString().replaceAll(" ", "%20")).toURI(), IResource.REPLACE, monitor);
- }
- return file;
- } catch (Exception e) {
- throw new ExecutionException("Can't copy resource '" + toResourceName + "'.", e);
+ return PapyrusProjectUtils.copyIFile(fromResourceName, Platform.getBundle(fromBundle), project, toResourceName);
+ } catch (CoreException e1) {
+ throw new ExecutionException("Can't copy core resource '" + toResourceName + "'.", e1);
+ } catch (IOException e1) {
+ throw new ExecutionException("Can't copy resource '" + toResourceName + "'.", e1);
}
}
diff --git a/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/src/org/eclipse/papyrus/uml/profile/drafter/tests/TracesRecorder.java b/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/src/org/eclipse/papyrus/uml/profile/drafter/tests/TracesRecorder.java
index 7d796e9b190..0f07076c9a2 100644
--- a/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/src/org/eclipse/papyrus/uml/profile/drafter/tests/TracesRecorder.java
+++ b/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/src/org/eclipse/papyrus/uml/profile/drafter/tests/TracesRecorder.java
@@ -13,9 +13,6 @@ package org.eclipse.papyrus.uml.profile.drafter.tests;
import java.util.ArrayList;
import java.util.List;
-import org.eclipse.emf.common.notify.Notification;
-
-
/**
* This class is used to record a list of traces.
* Traces are for event triggered by a method.
diff --git a/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/AbstractDrafterTest.java b/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/AbstractDrafterTest.java
new file mode 100644
index 00000000000..8daff8e7862
--- /dev/null
+++ b/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/AbstractDrafterTest.java
@@ -0,0 +1,70 @@
+/*****************************************************************************
+ * Copyright (c) 2015 CEA.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Francois Le Fevre francois.le-fevre@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.uml.profile.drafter.tests;
+
+import java.io.IOException;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest;
+import org.eclipse.papyrus.junit.utils.PapyrusProjectUtils;
+import org.eclipse.papyrus.junit.utils.ProjectUtils;
+import org.osgi.framework.Bundle;
+
+
+/**
+ * @author Francois Le Fevre
+ *
+ */
+public abstract class AbstractDrafterTest extends AbstractPapyrusTest {
+
+ public static final String FROM_BUNDLE_NAME = "org.eclipse.papyrus.uml.profile.drafter";
+
+ /**
+ * Created project.
+ */
+ protected IProject project;
+ protected IFile diModelFile;
+
+ /**
+ * Inits this.editor
+ * Fails or throws an exception if an error occurs
+ *
+ * @param bundle
+ * the source bundle where the model is store
+ * @param projectName
+ * the project that will created at runtime to execute test
+ * @param modelName
+ * the model that will be copied and test executed on.
+ * @throws IOException
+ */
+ protected void initModel(String projectName, String modelName, Bundle bundle) throws CoreException, IOException {
+ project = ProjectUtils.createProject(projectName);
+ diModelFile = PapyrusProjectUtils.copyPapyrusModel(project, bundle, getSourcePath(), modelName);
+ }
+
+
+ protected String getSourcePath() {
+ return "models/";
+ }
+
+
+ protected Bundle getBundle() {
+ return org.eclipse.papyrus.uml.profile.drafter.Activator.getDefault().getBundle();
+ }
+
+
+}
diff --git a/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/AllTests.java b/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/AllTests.java
index 7f91ac01b48..29ac7e988ef 100644
--- a/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/AllTests.java
+++ b/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/AllTests.java
@@ -14,7 +14,6 @@
package org.eclipse.papyrus.uml.profile.drafter.tests;
-import org.eclipse.papyrus.uml.profile.drafter.ProfileCatalogTest;
import org.eclipse.papyrus.uml.profile.drafter.tests.utils.UMLModelCreatorTest;
import org.eclipse.papyrus.uml.profile.drafter.ui.model.CompoundTypeProviderTest;
import org.eclipse.papyrus.uml.profile.drafter.ui.model.SimpleModelVisitorTest;
diff --git a/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/EclipseProjectTest.java b/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/EclipseProjectTest.java
index 67eb00fbf01..2e80632ffdb 100644
--- a/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/EclipseProjectTest.java
+++ b/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/EclipseProjectTest.java
@@ -17,8 +17,6 @@ package org.eclipse.papyrus.uml.profile.drafter.tests;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
-import org.eclipse.papyrus.junit.framework.classification.InvalidTest;
-import org.eclipse.papyrus.junit.framework.classification.tests.AbstractPapyrusTest;
import org.eclipse.papyrus.uml.profile.drafter.tests.exception.ExecutionException;
import org.junit.After;
import org.junit.Before;
@@ -29,10 +27,9 @@ import org.junit.Test;
* @author cedric dumoulin
*
*/
-public class EclipseProjectTest extends AbstractPapyrusTest {
+public class EclipseProjectTest extends AbstractDrafterTest {
private static final String PROJECT_NAME = "org.eclipse.papyrus.uml.profile.drafter.teststemp";
- private static final String FROM_BUNDLE_NAME = "org.eclipse.papyrus.uml.profile.drafter.tests";
/**
* @throws java.lang.Exception
@@ -79,7 +76,6 @@ public class EclipseProjectTest extends AbstractPapyrusTest {
* @throws ExecutionException
*/
@Test
- @InvalidTest("Fails on Maven")
public void testCopyResource() throws ExecutionException {
String fromFile = "META-INF/MANIFEST.MF";
@@ -98,7 +94,6 @@ public class EclipseProjectTest extends AbstractPapyrusTest {
* @throws ExecutionException
*/
@Test
- @InvalidTest("Fails on Maven")
public void testCopyResources() throws ExecutionException {
String fromFile1 = "META-INF/MANIFEST.MF";
diff --git a/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/ModelSetManagerTest.java b/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/ModelSetManagerTest.java
index b61b190f377..6dd45cd2d9e 100644
--- a/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/ModelSetManagerTest.java
+++ b/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/ModelSetManagerTest.java
@@ -14,14 +14,18 @@
package org.eclipse.papyrus.uml.profile.drafter.tests;
+import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
+import java.io.IOException;
import java.util.List;
-import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.CoreException;
import org.eclipse.emf.common.util.URI;
+import org.eclipse.papyrus.junit.framework.classification.InvalidTest;
+import org.eclipse.papyrus.junit.utils.PapyrusProjectUtils;
import org.eclipse.papyrus.uml.profile.drafter.exceptions.DraftProfileException;
import org.eclipse.papyrus.uml.profile.drafter.tests.exception.ExecutionException;
import org.eclipse.papyrus.uml.profile.drafter.tests.exception.NotFoundException;
@@ -40,8 +44,7 @@ import org.junit.Test;
* @author cedric dumoulin
*
*/
-@Ignore("Fails during BeforeClass with Maven - Can't be Annotated with @InvalidTest")
-public class ModelSetManagerTest {
+public class ModelSetManagerTest extends AbstractDrafterTest {
/**
* Name of the project that is created.
@@ -56,12 +59,12 @@ public class ModelSetManagerTest {
/**
* Prefix name of the resources
*/
- static protected String TEST_MODEL_1 = "models/testProfile1";
+ static protected String TEST_MODEL_1 = "testProfile1";
/**
* Prefix name of the resources
*/
- static protected String PROFILE1_MODEL = "models/house.profile";
+ static protected String PROFILE1_MODEL = "house.profile";
/**
* Full name of the di resource, in project.
@@ -69,21 +72,11 @@ public class ModelSetManagerTest {
static protected String MODEL_1_FULLPATH = "/" + PROJECT_NAME + "/" + TEST_MODEL_1 + ".di";
/**
- * Created project.
- */
- static protected EclipseProject project;
-
- /**
* @throws java.lang.Exception
*/
@BeforeClass
public static void setUpBeforeClass() throws Exception {
- // Copy resources from plugin to a new project
- project = new EclipseProject(PROJECT_NAME);
- project.copyResources(FROM_PROJECT_NAME, TEST_MODEL_1 + ".di", TEST_MODEL_1 + ".uml", TEST_MODEL_1 + ".notation");
- // Copy sterotype.
- project.copyResources(FROM_PROJECT_NAME, PROFILE1_MODEL + ".di", PROFILE1_MODEL + ".uml", PROFILE1_MODEL + ".notation");
}
/**
@@ -99,9 +92,6 @@ public class ModelSetManagerTest {
*/
@Before
public void setUp() throws Exception {
- // Copy resources from plugin to a new project
- // EclipseProject project = new EclipseProject(PROJECT_NAME);
- // project.copyResources(FROM_PROJECT_NAME, TEST_MODEL_1 + ".di", TEST_MODEL_1 + ".uml", TEST_MODEL_1 + ".notation" );
}
@@ -175,15 +165,18 @@ public class ModelSetManagerTest {
*
* @throws NotFoundException
* @throws org.eclipse.papyrus.infra.core.resource.NotFoundException
+ * @throws IOException
+ * @throws CoreException
* @throws DraftProfileException
* @throws ExecutionException
*
*/
@Test
- public void testGetUmlModel() throws TestUtilsException, org.eclipse.papyrus.infra.core.resource.NotFoundException {
+ public void testGetUmlModel() throws TestUtilsException, org.eclipse.papyrus.infra.core.resource.NotFoundException, CoreException, IOException {
+ initModel(PROJECT_NAME, TEST_MODEL_1, getBundle());
+
+ assertTrue("file exists", diModelFile.exists());
- EclipseProject project = new EclipseProject(PROJECT_NAME);
- project.copyResources(FROM_PROJECT_NAME, TEST_MODEL_1 + ".di", TEST_MODEL_1 + ".uml", TEST_MODEL_1 + ".notation");
ModelSetManager modelSetManager = new ModelSetManager("/" + PROJECT_NAME + "/" + TEST_MODEL_1 + ".di");
@@ -200,21 +193,23 @@ public class ModelSetManagerTest {
*
* @throws NotFoundException
* @throws org.eclipse.papyrus.infra.core.resource.NotFoundException
+ * @throws IOException
+ * @throws CoreException
* @throws DraftProfileException
* @throws ExecutionException
*
*/
@Test
- public void testGetUmlModelWithIFile() throws TestUtilsException, org.eclipse.papyrus.infra.core.resource.NotFoundException {
-
- EclipseProject project = new EclipseProject(PROJECT_NAME);
- project.copyResources(FROM_PROJECT_NAME, TEST_MODEL_1 + ".di", TEST_MODEL_1 + ".uml", TEST_MODEL_1 + ".notation");
+ public void testGetUmlModelWithIFile() throws TestUtilsException, org.eclipse.papyrus.infra.core.resource.NotFoundException, CoreException, IOException {
+ initModel(PROJECT_NAME, TEST_MODEL_1, getBundle());
- IFile file = project.getProject().getFile(TEST_MODEL_1 + ".di");
+ PapyrusProjectUtils.copyIFile(getSourcePath()+PROFILE1_MODEL + ".di", getBundle(), project, PROFILE1_MODEL + ".di");
+ PapyrusProjectUtils.copyIFile(getSourcePath()+PROFILE1_MODEL + ".uml", getBundle(), project, PROFILE1_MODEL + ".uml");
+ PapyrusProjectUtils.copyIFile(getSourcePath()+PROFILE1_MODEL + ".notation", getBundle(), project, PROFILE1_MODEL + ".notation");
- assertTrue("file exists", file.exists());
- ModelSetManager modelSetManager = new ModelSetManager(file);
+ assertTrue("file exists", diModelFile.exists());
+ ModelSetManager modelSetManager = new ModelSetManager(diModelFile);
// asserts
assertNotNull("object created", modelSetManager);
@@ -252,6 +247,10 @@ public class ModelSetManagerTest {
* @throws TestUtilsException
*/
@Test
+ @InvalidTest
+ //there is no code that load the profile, need to be improve
+ //need to use PapyrusProjectUtils.copyIFile(getSourcePath()+PROFILE1_MODEL + ".di", getBundle(), project, PROFILE1_MODEL + ".di");
+ //but requiere a prelaoded model...
public void testGetNamedElementByNameWithSterotype() throws TestUtilsException {
ModelSetManager modelSetManager = new ModelSetManager(MODEL_1_FULLPATH);
@@ -259,11 +258,10 @@ public class ModelSetManagerTest {
NamedElement namedElement = modelSetManager.getNamedElementByName(qualifiedName);
assertNotNull("Class found", namedElement);
assertTrue("Right Class found", namedElement instanceof org.eclipse.uml2.uml.Class);
-
- // Chack sterotype
- List<Stereotype> stereotypes = namedElement.getAppliedStereotypes();
- assertTrue("Stereotype applied", !stereotypes.isEmpty());
- assertNotNull("Stereotype found", namedElement.getAppliedStereotype("house::Building"));
+ // Check stereotype
+ List<Stereotype> stereotypes = namedElement.getApplicableStereotypes();
+ assertFalse("No Stereotype applied", stereotypes.isEmpty());
+ assertNotNull("Stereotype not found", namedElement.getAppliedStereotype("house::Building"));
}
}
diff --git a/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/ProfileCatalogTest.java b/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/ProfileCatalogTest.java
index 167cc1e5efb..3d2db77e4a6 100644
--- a/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/ProfileCatalogTest.java
+++ b/tests/junit/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter.tests/test/org/eclipse/papyrus/uml/profile/drafter/tests/ProfileCatalogTest.java
@@ -12,17 +12,24 @@
*
*****************************************************************************/
-package org.eclipse.papyrus.uml.profile.drafter;
+package org.eclipse.papyrus.uml.profile.drafter.tests;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
+import java.io.IOException;
import java.util.List;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.papyrus.junit.utils.PapyrusProjectUtils;
+import org.eclipse.papyrus.junit.utils.ProjectUtils;
+import org.eclipse.papyrus.uml.profile.drafter.Activator;
+import org.eclipse.papyrus.uml.profile.drafter.ProfileCatalog;
import org.eclipse.papyrus.uml.profile.drafter.exceptions.NotFoundException;
-import org.eclipse.papyrus.uml.profile.drafter.tests.EclipseProject;
import org.eclipse.papyrus.uml.profile.drafter.tests.ModelSetManager;
import org.eclipse.papyrus.uml.profile.drafter.tests.exception.TestUtilsException;
import org.eclipse.uml2.uml.NamedElement;
@@ -34,14 +41,14 @@ import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
+import org.osgi.framework.Bundle;
/**
* @author cedric dumoulin
*
*/
-@Ignore("Fails during BeforeClass with Maven - Can't be Annotated with @InvalidTest")
-public class ProfileCatalogTest {
+public class ProfileCatalogTest extends AbstractDrafterTest{
/**
* Name of the project that is created.
@@ -56,13 +63,13 @@ public class ProfileCatalogTest {
/**
* Prefix name of the resources
*/
- static protected String TEST_MODEL_1 = "models/testProfile1";
+ static protected String TEST_MODEL_1 = "testProfile1";
/**
* Prefix name of the resources
*/
- static protected String PROFILE1_MODEL = "models/house.profile";
- static protected String PROFILE2_MODEL = "models/pets.profile";
+ static protected String PROFILE1_MODEL = "house.profile";
+ static protected String PROFILE2_MODEL = "pets.profile";
/**
* Full name of the di resource, in project.
@@ -83,21 +90,7 @@ public class ProfileCatalogTest {
/**
* Created project.
*/
- static protected EclipseProject project;
-
- /**
- * @throws java.lang.Exception
- */
- @BeforeClass
- public static void setUpBeforeClass() throws Exception {
- // Copy resources from plugin to a new project
- project = new EclipseProject(PROJECT_NAME);
- project.copyResources(FROM_PROJECT_NAME, TEST_MODEL_1 + ".di", TEST_MODEL_1 + ".uml", TEST_MODEL_1 + ".notation");
-
- // Copy sterotype.
- project.copyResources(FROM_PROJECT_NAME, PROFILE1_MODEL + ".di", PROFILE1_MODEL + ".uml", PROFILE1_MODEL + ".notation");
- project.copyResources(FROM_PROJECT_NAME, PROFILE2_MODEL + ".di", PROFILE2_MODEL + ".uml", PROFILE2_MODEL + ".notation");
- }
+ protected IFile diProfile1File;
/**
* @throws java.lang.Exception
@@ -108,10 +101,31 @@ public class ProfileCatalogTest {
/**
+ * @throws IOException
+ * @throws CoreException
* @throws java.lang.Exception
*/
@Before
- public void setUp() throws Exception {
+ public void setUp() throws CoreException, IOException {
+ initModel(PROJECT_NAME, TEST_MODEL_1, getBundle());
+ diProfile1File= PapyrusProjectUtils.copyIFile(getSourcePath()+PROFILE1_MODEL + ".di", getBundle(), project, PROFILE1_MODEL + ".di");
+
+ // Copy resources from plugin to a new project
+ PapyrusProjectUtils.copyIFile(getSourcePath()+PROFILE1_MODEL + ".uml", getBundle(), project, PROFILE1_MODEL + ".uml");
+ PapyrusProjectUtils.copyIFile(getSourcePath()+PROFILE1_MODEL + ".notation", getBundle(), project, PROFILE1_MODEL + ".notation");
+ PapyrusProjectUtils.copyIFile(getSourcePath()+PROFILE2_MODEL + ".di", getBundle(), project, PROFILE2_MODEL + ".di");
+ PapyrusProjectUtils.copyIFile(getSourcePath()+PROFILE2_MODEL + ".uml", getBundle(), project, PROFILE2_MODEL + ".uml");
+ PapyrusProjectUtils.copyIFile(getSourcePath()+PROFILE2_MODEL + ".notation", getBundle(), project, PROFILE2_MODEL + ".notation");
+
+ }
+
+ /**
+ *
+ * @throws TestUtilsException
+ */
+ @Test
+ public void testProfileCopy() throws TestUtilsException {
+ assertNotNull(diProfile1File);
}
/**
@@ -336,11 +350,10 @@ public class ProfileCatalogTest {
assertNotNull("Class found", namedElement);
assertTrue("Right Class found", namedElement instanceof org.eclipse.uml2.uml.Class);
- // Chack sterotype
+ // Check sterotype
List<Stereotype> stereotypes = namedElement.getAppliedStereotypes();
assertTrue("Stereotype applied", !stereotypes.isEmpty());
assertNotNull("Stereotype found", namedElement.getAppliedStereotype("house::Building"));
}
-
}
diff --git a/tests/junit/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.tests/src/org/eclipse/papyrus/uml/textedit/port/tests/suites/PortGrammarTests.java b/tests/junit/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.tests/src/org/eclipse/papyrus/uml/textedit/port/tests/suites/PortGrammarTests.java
index e0a45488452..402ea11ea3d 100644
--- a/tests/junit/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.tests/src/org/eclipse/papyrus/uml/textedit/port/tests/suites/PortGrammarTests.java
+++ b/tests/junit/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.port.tests/src/org/eclipse/papyrus/uml/textedit/port/tests/suites/PortGrammarTests.java
@@ -1,102 +1,150 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.uml.textedit.port.tests.suites;
-
-
-import org.eclipse.papyrus.junit.utils.rules.PluginResource;
-import org.eclipse.papyrus.uml.textedit.port.xtext.ui.contribution.PortXtextDirectEditorConfiguration;
-import org.eclipse.papyrus.uml.textedit.tests.AbstractGrammarTest;
-import org.eclipse.papyrus.uml.xtext.integration.DefaultXtextDirectEditorConfiguration;
-import org.eclipse.uml2.uml.Component;
-import org.eclipse.uml2.uml.DataType;
-import org.eclipse.uml2.uml.LiteralReal;
-import org.eclipse.uml2.uml.Model;
-import org.eclipse.uml2.uml.Port;
-import org.eclipse.uml2.uml.PrimitiveType;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-import org.eclipse.uml2.uml.VisibilityKind;
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.Test;
-
-@PluginResource("/model/xtextPortModel.uml")
-public class PortGrammarTests extends AbstractGrammarTest<Port> {
-
- protected PrimitiveType type2; /* QName = model::Package1::type2 */
-
- protected DataType type1; /* QName = model::type1 */
-
- protected Model rootModel;
-
- protected Port testedPort;
-
- @Before
- public void loadTestModel() {
- type2 = findElement(PrimitiveType.class, "type2");
- type1 = findElement(DataType.class, "type1");
- rootModel = findElement(Model.class, "model");
-
- Component component = (Component) rootModel.createPackagedElement("Component1", UMLPackage.eINSTANCE.getComponent());
- testedPort = (Port) component.createOwnedAttribute("p1", null, UMLPackage.eINSTANCE.getPort());
- }
-
- @Test
- public void testParser() throws Exception {
- tester.parseText(testedPort, "~/p1: <Undefined>");
- Assert.assertTrue(testedPort.isDerived());
- Assert.assertEquals(VisibilityKind.PACKAGE_LITERAL, testedPort.getVisibility());
-
- tester.parseText(testedPort, "p2");
- Assert.assertTrue(!testedPort.isDerived()); /* Derived is mandatory, so typing "p2" means it shouldn't be derived anymore */
- Assert.assertEquals(VisibilityKind.PACKAGE_LITERAL, testedPort.getVisibility()); /* Visibility is optional; not typing it means it shouldn't change */
- Assert.assertEquals("p2", testedPort.getName());
-
- tester.parseText(testedPort, "p2: ~<Undefined>");
- Assert.assertTrue(testedPort.isConjugated());
- }
-
- @Test
- public void testInitialText() {
- Assert.assertEquals("+ p1 : <Undefined> {unique}", tester.getInitialText(testedPort));
-
- testedPort.setIsUnique(false);
- Assert.assertEquals("+ p1 : <Undefined>", tester.getInitialText(testedPort));
-
- testedPort.setIsDerived(true);
- testedPort.setVisibility(VisibilityKind.PROTECTED_LITERAL);
- testedPort.setType(type1);
- Assert.assertEquals("# /p1 : model::type1", tester.getInitialText(testedPort));
-
- testedPort.setIsConjugated(true);
- Assert.assertEquals("# /p1 : ~model::type1", tester.getInitialText(testedPort));
- }
-
- @Test
- public void testDefaultValues() throws Exception {
- testedPort.setIsUnique(false);
-
- LiteralReal defaultRealValue = UMLFactory.eINSTANCE.createLiteralReal();
- defaultRealValue.setValue(123.54);
- testedPort.setDefaultValue(defaultRealValue);
-
- Assert.assertEquals("+ p1 : <Undefined> = 123.54", tester.getInitialText(testedPort));
- tester.parseText(testedPort, "p1 = .2");
- Assert.assertEquals("The instance of ValueSpecification should not change when compatible types are used", defaultRealValue, testedPort.getDefaultValue());
- Assert.assertEquals(.2, defaultRealValue.getValue(), 0.001);
- }
-
- @Override
- public DefaultXtextDirectEditorConfiguration getEditor() {
- return new PortXtextDirectEditorConfiguration();
- }
-}
+/*****************************************************************************
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.textedit.port.tests.suites;
+
+
+import org.eclipse.papyrus.junit.utils.rules.PluginResource;
+import org.eclipse.papyrus.uml.textedit.port.xtext.ui.contribution.PortXtextDirectEditorConfiguration;
+import org.eclipse.papyrus.uml.textedit.tests.AbstractGrammarTest;
+import org.eclipse.papyrus.uml.xtext.integration.DefaultXtextDirectEditorConfiguration;
+import org.eclipse.uml2.uml.Component;
+import org.eclipse.uml2.uml.DataType;
+import org.eclipse.uml2.uml.LiteralInteger;
+import org.eclipse.uml2.uml.LiteralReal;
+import org.eclipse.uml2.uml.LiteralString;
+import org.eclipse.uml2.uml.LiteralUnlimitedNatural;
+import org.eclipse.uml2.uml.Model;
+import org.eclipse.uml2.uml.Port;
+import org.eclipse.uml2.uml.PrimitiveType;
+import org.eclipse.uml2.uml.UMLFactory;
+import org.eclipse.uml2.uml.UMLPackage;
+import org.eclipse.uml2.uml.VisibilityKind;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.Test;
+
+@PluginResource("/model/xtextPortModel.uml")
+public class PortGrammarTests extends AbstractGrammarTest<Port> {
+
+ protected PrimitiveType type2; /* QName = model::Package1::type2 */
+
+ protected DataType type1; /* QName = model::type1 */
+
+ protected Model rootModel;
+
+ protected Port testedPort;
+
+ @Before
+ public void loadTestModel() {
+ type2 = findElement(PrimitiveType.class, "type2");
+ type1 = findElement(DataType.class, "type1");
+ rootModel = findElement(Model.class, "model");
+
+ Component component = (Component) rootModel.createPackagedElement("Component1", UMLPackage.eINSTANCE.getComponent());
+ testedPort = (Port) component.createOwnedAttribute("p1", null, UMLPackage.eINSTANCE.getPort());
+ }
+
+ @Test
+ public void testParser() throws Exception {
+ tester.parseText(testedPort, "~/p1: <Undefined>");
+ Assert.assertTrue(testedPort.isDerived());
+ Assert.assertEquals(VisibilityKind.PACKAGE_LITERAL, testedPort.getVisibility());
+
+ tester.parseText(testedPort, "p2");
+ Assert.assertTrue(!testedPort.isDerived()); /* Derived is mandatory, so typing "p2" means it shouldn't be derived anymore */
+ Assert.assertEquals(VisibilityKind.PACKAGE_LITERAL, testedPort.getVisibility()); /* Visibility is optional; not typing it means it shouldn't change */
+ Assert.assertEquals("p2", testedPort.getName());
+
+ tester.parseText(testedPort, "p2: ~<Undefined>");
+ Assert.assertTrue(testedPort.isConjugated());
+ }
+
+ @Test
+ public void testInitialText() {
+ Assert.assertEquals("+ p1 : <Undefined> {unique}", tester.getInitialText(testedPort));
+
+ testedPort.setIsUnique(false);
+ Assert.assertEquals("+ p1 : <Undefined>", tester.getInitialText(testedPort));
+
+ testedPort.setIsDerived(true);
+ testedPort.setVisibility(VisibilityKind.PROTECTED_LITERAL);
+ testedPort.setType(type1);
+ Assert.assertEquals("# /p1 : model::type1", tester.getInitialText(testedPort));
+
+ testedPort.setIsConjugated(true);
+ Assert.assertEquals("# /p1 : ~model::type1", tester.getInitialText(testedPort));
+ }
+
+ @Test
+ public void testDefaultValues() throws Exception {
+ testedPort.setIsUnique(false);
+
+ LiteralReal defaultRealValue = UMLFactory.eINSTANCE.createLiteralReal();
+ defaultRealValue.setValue(123.54);
+ testedPort.setDefaultValue(defaultRealValue);
+
+ Assert.assertEquals("+ p1 : <Undefined> = 123.54", tester.getInitialText(testedPort));
+ tester.parseText(testedPort, "p1 = .2");
+ Assert.assertEquals("The instance of ValueSpecification should not change when compatible types are used", defaultRealValue, testedPort.getDefaultValue());
+ Assert.assertEquals(.2, defaultRealValue.getValue(), 0.001);
+ }
+
+ @Test
+ public void testMultiplicity() throws Exception {
+ // Manage two bounds (integer and unlimited natural) display
+ final LiteralInteger lowerBound = UMLFactory.eINSTANCE.createLiteralInteger();
+ lowerBound.setValue(2);
+ testedPort.setLowerValue(lowerBound);
+
+ final LiteralUnlimitedNatural upperBound = UMLFactory.eINSTANCE.createLiteralUnlimitedNatural();
+ upperBound.setValue(4);
+ testedPort.setUpperValue(upperBound);
+
+ Assert.assertEquals("+ p1 : <Undefined> [2..4] {unique}", tester.getInitialText(testedPort));
+
+ // Parse Integer and UnlimitedNatural
+ tester.parseText(testedPort, "p1 : <Undefined> [1..*] {unique}");
+ Assert.assertEquals("The instance of lower ValueSpecification should not change when compatible types are used", lowerBound, testedPort.getLowerValue());
+ Assert.assertEquals("The instance of upper ValueSpecification should not change when compatible types are used", upperBound, testedPort.getUpperValue());
+ Assert.assertEquals(1, lowerBound.getValue());
+ Assert.assertEquals(-1, upperBound.getValue());
+
+ // Manage only one bound display
+ lowerBound.setValue(0);
+ Assert.assertEquals("+ p1 : <Undefined> [*] {unique}", tester.getInitialText(testedPort));
+
+ // Parse one String
+ tester.parseText(testedPort, "p1 : <Undefined> [\"TEN\"] {unique}");
+ Assert.assertTrue("The created lower ValueSpecification must be a LiteralString", testedPort.getLowerValue() instanceof LiteralString);
+ Assert.assertTrue("The created upper ValueSpecification must be a LiteralString", testedPort.getUpperValue() instanceof LiteralString);
+ Assert.assertEquals("TEN", ((LiteralString)testedPort.getLowerValue()).getValue());
+ LiteralString upperStringBound = (LiteralString)testedPort.getUpperValue();
+ Assert.assertEquals("TEN", upperStringBound.getValue());
+
+ // Manage Integer and String
+ lowerBound.setValue(3);
+ testedPort.setLowerValue(lowerBound);
+ Assert.assertEquals("+ p1 : <Undefined> [3..\"TEN\"] {unique}", tester.getInitialText(testedPort));
+
+ // Parse Integer and String
+ tester.parseText(testedPort, "p1 : <Undefined> [\"MIN\"..\"MAX\"] {unique}");
+ Assert.assertTrue("The created lower ValueSpecification must be a LiteralString", testedPort.getLowerValue() instanceof LiteralString);
+ Assert.assertEquals("The instance of upper ValueSpecification should not change when compatible types are used", upperStringBound, testedPort.getUpperValue());
+ Assert.assertEquals("MIN", ((LiteralString)testedPort.getLowerValue()).getValue());
+ Assert.assertEquals("MAX", upperStringBound.getValue());
+ }
+
+ @Override
+ public DefaultXtextDirectEditorConfiguration getEditor() {
+ return new PortXtextDirectEditorConfiguration();
+ }
+}
diff --git a/tests/junit/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.tests/PropertyGrammarTests.launch b/tests/junit/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.tests/PropertyGrammarTests.launch
index 9f6e28d3f24..d6cdd1ef073 100644
--- a/tests/junit/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.tests/PropertyGrammarTests.launch
+++ b/tests/junit/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.tests/PropertyGrammarTests.launch
@@ -1,43 +1,45 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
-<booleanAttribute key="append.args" value="true"/>
-<booleanAttribute key="askclear" value="false"/>
-<booleanAttribute key="automaticAdd" value="true"/>
-<booleanAttribute key="automaticValidate" value="false"/>
-<stringAttribute key="bootstrap" value=""/>
-<stringAttribute key="checked" value="[NONE]"/>
-<booleanAttribute key="clearConfig" value="true"/>
-<booleanAttribute key="clearws" value="true"/>
-<booleanAttribute key="clearwslog" value="false"/>
-<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
-<booleanAttribute key="default" value="true"/>
-<booleanAttribute key="includeOptional" value="true"/>
-<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
-<listEntry value="/org.eclipse.papyrus.uml.textedit.property.tests/src/org/eclipse/papyrus/uml/textedit/property/tests/suites/AllTests.java"/>
-</listAttribute>
-<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
-<listEntry value="1"/>
-</listAttribute>
-<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
-<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
-<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
-<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
-<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
-<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
-<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.papyrus.uml.textedit.property.tests.suites.AllTests"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
-<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.papyrus.uml.textedit.property.tests"/>
-<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
-<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dosgi.requiredJavaVersion=1.6 -Xms40m -Xmx2048m -XX:MaxPermSize=512m"/>
-<stringAttribute key="pde.version" value="3.3"/>
-<stringAttribute key="product" value="org.eclipse.platform.ide"/>
-<booleanAttribute key="run_in_ui_thread" value="true"/>
-<booleanAttribute key="show_selected_only" value="false"/>
-<stringAttribute key="templateConfig" value="${target_home}\configuration\config.ini"/>
-<booleanAttribute key="tracing" value="false"/>
-<booleanAttribute key="useCustomFeatures" value="false"/>
-<booleanAttribute key="useDefaultConfig" value="true"/>
-<booleanAttribute key="useDefaultConfigArea" value="false"/>
-<booleanAttribute key="useProduct" value="true"/>
-</launchConfiguration>
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
+<booleanAttribute key="append.args" value="true"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="true"/>
+<booleanAttribute key="clearws" value="true"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
+<booleanAttribute key="default" value="true"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.eclipse.papyrus.uml.textedit.property.tests/src/org/eclipse/papyrus/uml/textedit/property/tests/suites/AllTests.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
+<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.papyrus.uml.textedit.property.tests.suites.AllTests"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.papyrus.uml.textedit.property.tests"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dosgi.requiredJavaVersion=1.6 -Xms40m -Xmx2048m -XX:MaxPermSize=512m"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="org.eclipse.platform.ide"/>
+<booleanAttribute key="run_in_ui_thread" value="true"/>
+<stringAttribute key="selected_target_plugins" value="ca.odell.glazedlists@default:default,ch.qos.logback.classic@default:default,ch.qos.logback.core@default:default,ch.qos.logback.slf4j@default:false,com.google.gerrit.common@default:default,com.google.gerrit.prettify@default:default,com.google.gerrit.reviewdb@default:default,com.google.gson@default:default,com.google.guava@default:default,com.google.gwt.servlet@default:default,com.google.gwtjsonrpc@default:default,com.google.gwtorm@default:default,com.google.inject.multibindings@default:false,com.google.inject@default:default,com.ibm.icu@default:default,com.jcraft.jsch@default:default,com.mountainminds.eclemma.asm@default:default,com.mountainminds.eclemma.core@default:default,com.mountainminds.eclemma.debug.ui.compatibility@default:default,com.mountainminds.eclemma.doc@default:default,com.mountainminds.eclemma.ui@default:default,com.sun.el@default:default,edu.umd.cs.findbugs.plugin.eclipse@default:default,javaewah@default:default,javax.annotation@default:default,javax.el@default:default,javax.inject@default:default,javax.servlet*3.0.0.v201112011016@default:default,javax.servlet*3.1.0.v201410161800@default:default,javax.servlet.jsp@default:default,javax.xml@default:default,lpg.runtime.java@default:default,net.sf.eclipsecs.branding@default:default,net.sf.eclipsecs.checkstyle@default:default,net.sf.eclipsecs.core@default:default,net.sf.eclipsecs.doc@default:default,net.sf.eclipsecs.ui@default:default,org.antlr.runtime@default:default,org.apache.ant*1.9.4.v201410062020@default:default,org.apache.ant*1.9.4.v201504302020@default:default,org.apache.batik.bridge@default:default,org.apache.batik.css*1.6.0.v201011041432@default:default,org.apache.batik.css*1.7.0.v201011041433@default:default,org.apache.batik.dom.svg@default:default,org.apache.batik.dom@default:default,org.apache.batik.ext.awt@default:default,org.apache.batik.parser@default:default,org.apache.batik.pdf@default:default,org.apache.batik.svggen@default:default,org.apache.batik.transcoder@default:default,org.apache.batik.util*1.6.0.v201011041432@default:default,org.apache.batik.util*1.7.0.v201011041433@default:default,org.apache.batik.util.gui*1.6.0.v201011041432@default:default,org.apache.batik.util.gui*1.7.0.v200903091627@default:default,org.apache.batik.xml@default:default,org.apache.commons.cli@default:default,org.apache.commons.codec@default:default,org.apache.commons.compress@default:default,org.apache.commons.httpclient@default:default,org.apache.commons.io@default:default,org.apache.commons.jxpath@default:default,org.apache.commons.lang3@default:default,org.apache.commons.lang@default:default,org.apache.commons.logging@default:default,org.apache.commons.math@default:default,org.apache.commons.pool@default:default,org.apache.felix.gogo.command@default:default,org.apache.felix.gogo.runtime@default:default,org.apache.felix.gogo.shell@default:default,org.apache.httpcomponents.httpclient@default:default,org.apache.httpcomponents.httpcore@default:default,org.apache.jasper.glassfish@default:default,org.apache.log4j@default:default,org.apache.lucene.analysis@default:default,org.apache.lucene.core@default:default,org.apache.solr.client.solrj@default:default,org.apache.ws.commons.util@default:default,org.apache.xerces@default:default,org.apache.xml.resolver@default:default,org.apache.xml.serializer@default:default,org.apache.xmlrpc@default:default,org.eclipse.aether.api@default:default,org.eclipse.aether.connector.basic@default:default,org.eclipse.aether.impl@default:default,org.eclipse.aether.maven@default:default,org.eclipse.aether.spi@default:default,org.eclipse.aether.transport.file@default:default,org.eclipse.aether.transport.http@default:default,org.eclipse.aether.util@default:default,org.eclipse.ant.core*3.4.0.v20150304-0921@default:default,org.eclipse.ant.core*3.4.0.v20150428-1928@default:default,org.eclipse.ant.launching@default:default,org.eclipse.ant.ui@default:default,org.eclipse.buckminster.ant@default:default,org.eclipse.buckminster.cmdline@default:default,org.eclipse.buckminster.core@default:default,org.eclipse.buckminster.download@default:default,org.eclipse.buckminster.executor@default:default,org.eclipse.buckminster.fetcher@default:default,org.eclipse.buckminster.generic.ui@default:default,org.eclipse.buckminster.generic@default:default,org.eclipse.buckminster.git@default:default,org.eclipse.buckminster.installer@default:default,org.eclipse.buckminster.jarprocessor@default:default,org.eclipse.buckminster.jdt@default:default,org.eclipse.buckminster.junit@default:default,org.eclipse.buckminster.model.common.edit@default:default,org.eclipse.buckminster.model.common@default:default,org.eclipse.buckminster.mspec.edit@default:default,org.eclipse.buckminster.mspec.editor@default:default,org.eclipse.buckminster.mspec@default:default,org.eclipse.buckminster.osgi.filter@default:default,org.eclipse.buckminster.pde.ui@default:default,org.eclipse.buckminster.pde@default:default,org.eclipse.buckminster.rmap.edit@default:default,org.eclipse.buckminster.rmap.editor@default:default,org.eclipse.buckminster.rmap.pde.edit@default:default,org.eclipse.buckminster.rmap.pde@default:default,org.eclipse.buckminster.rmap@default:default,org.eclipse.buckminster.runtime@default:default,org.eclipse.buckminster.sax@default:default,org.eclipse.buckminster.ui.dependency.visualizer@default:default,org.eclipse.buckminster.ui@default:default,org.eclipse.compare*3.5.600.v20141216-1556@default:default,org.eclipse.compare*3.5.600.v20150420-1449@default:default,org.eclipse.compare.core*3.5.500.v20141202-1337@default:default,org.eclipse.compare.core*3.5.500.v20150505-1058@default:default,org.eclipse.compare.win32@default:default,org.eclipse.core.commands*3.6.100.v20150311-0214@default:default,org.eclipse.core.commands*3.7.0.v20150422-0725@default:default,org.eclipse.core.contenttype*3.4.200.v20150316-1243@default:default,org.eclipse.core.contenttype*3.5.0.v20150421-2214@default:default,org.eclipse.core.databinding*1.4.100.v20150311-0216@default:default,org.eclipse.core.databinding*1.5.0.v20150422-0725@default:default,org.eclipse.core.databinding.beans*1.2.200.v20150311-0217@default:default,org.eclipse.core.databinding.beans*1.3.0.v20150422-0725@default:default,org.eclipse.core.databinding.observable*1.4.1.v20150311-0218@default:default,org.eclipse.core.databinding.observable*1.5.0.v20150422-0725@default:default,org.eclipse.core.databinding.property*1.4.200.v20150311-0218@default:default,org.eclipse.core.databinding.property*1.5.0.v20150422-0725@default:default,org.eclipse.core.expressions*3.4.600.v20150316-1244@default:default,org.eclipse.core.expressions*3.5.0.v20150421-2214@default:default,org.eclipse.core.externaltools@default:default,org.eclipse.core.filebuffers@default:default,org.eclipse.core.filesystem*1.5.0.v20150313-1707@default:default,org.eclipse.core.filesystem*1.5.0.v20150421-0713@default:default,org.eclipse.core.filesystem.java7*1.0.0.v20150304-0027@default:false,org.eclipse.core.filesystem.java7*1.0.100.v20150423-0754@default:false,org.eclipse.core.filesystem.win32.x86_64@default:false,org.eclipse.core.jobs*3.7.0.v20150316-1238@default:default,org.eclipse.core.jobs*3.7.0.v20150330-2103@default:default,org.eclipse.core.net.win32.x86_64@default:false,org.eclipse.core.net@default:default,org.eclipse.core.resources*3.10.0.v20150423-0755@default:default,org.eclipse.core.resources*3.9.100.v20150313-1707@default:default,org.eclipse.core.resources.win32.x86_64@default:false,org.eclipse.core.runtime*3.11.0.v20150316-1241@default:true,org.eclipse.core.runtime*3.11.0.v20150405-1723@default:true,org.eclipse.core.runtime.compatibility*3.2.200.v20150218-1001@default:default,org.eclipse.core.runtime.compatibility*3.2.300.v20150423-0821@default:default,org.eclipse.core.runtime.compatibility.registry@default:false,org.eclipse.core.variables@default:default,org.eclipse.cvs*1.4.200.v20150430-1445@default:default,org.eclipse.cvs*1.4.200.v20150514-1000@default:default,org.eclipse.debug.core@default:default,org.eclipse.debug.ui*3.11.0.v20150303-1130@default:default,org.eclipse.debug.ui*3.11.0.v20150514-0917@default:default,org.eclipse.draw2d*3.10.0.201505040206@default:default,org.eclipse.draw2d*3.10.0.201505170205@default:default,org.eclipse.draw2d.doc.isv@default:default,org.eclipse.e4.core.commands*0.10.2.v20150313-1340@default:default,org.eclipse.e4.core.commands*0.11.0.v20150422-0725@default:default,org.eclipse.e4.core.contexts*1.3.100.v20150316-1240@default:default,org.eclipse.e4.core.contexts*1.4.0.v20150421-2214@default:default,org.eclipse.e4.core.di*1.4.0.v20150316-1236@default:default,org.eclipse.e4.core.di*1.5.0.v20150421-2214@default:default,org.eclipse.e4.core.di.annotations@default:default,org.eclipse.e4.core.di.extensions*0.12.0.v20150316-1245@default:default,org.eclipse.e4.core.di.extensions*0.13.0.v20150421-2214@default:default,org.eclipse.e4.core.services*2.0.0.v20150316-1145@default:default,org.eclipse.e4.core.services*2.0.0.v20150403-1912@default:default,org.eclipse.e4.emf.xpath@default:default,org.eclipse.e4.ui.bindings*0.10.200.v20150313-1340@default:default,org.eclipse.e4.ui.bindings*0.11.0.v20150422-0725@default:default,org.eclipse.e4.ui.css.core*0.10.200.v20150223-1335@default:default,org.eclipse.e4.ui.css.core*0.11.0.v20150511-1937@default:default,org.eclipse.e4.ui.css.swt*0.11.200.v20150313-1341@default:default,org.eclipse.e4.ui.css.swt*0.12.0.v20150511-1003@default:default,org.eclipse.e4.ui.css.swt.theme*0.10.0.v20150422-0725@default:default,org.eclipse.e4.ui.css.swt.theme*0.9.300.v20150313-1341@default:default,org.eclipse.e4.ui.di*1.0.0.v20150309-0906@default:default,org.eclipse.e4.ui.di*1.1.0.v20150422-0725@default:default,org.eclipse.e4.ui.dialogs*1.0.0.v20150218-0943@default:default,org.eclipse.e4.ui.dialogs*1.0.0.v20150513-0856@default:default,org.eclipse.e4.ui.model.workbench*1.1.100.v20150311-1601@default:default,org.eclipse.e4.ui.model.workbench*1.1.100.v20150407-1430@default:default,org.eclipse.e4.ui.services*1.1.0.v20150315-0658@default:default,org.eclipse.e4.ui.services*1.2.0.v20150422-0725@default:default,org.eclipse.e4.ui.widgets*1.0.0.v20150315-0658@default:default,org.eclipse.e4.ui.widgets*1.1.0.v20150427-1751@default:default,org.eclipse.e4.ui.workbench*1.3.0.v20150316-1403@default:default,org.eclipse.e4.ui.workbench*1.3.0.v20150429-1329@default:default,org.eclipse.e4.ui.workbench.addons.swt*1.2.0.v20150315-0701@default:default,org.eclipse.e4.ui.workbench.addons.swt*1.2.0.v20150512-1414@default:default,org.eclipse.e4.ui.workbench.renderers.swt*0.12.100.v20150312-1938@default:default,org.eclipse.e4.ui.workbench.renderers.swt*0.13.0.v20150512-1850@default:default,org.eclipse.e4.ui.workbench.swt*0.12.100.v20150316-1403@default:default,org.eclipse.e4.ui.workbench.swt*0.13.0.v20150504-0621@default:default,org.eclipse.e4.ui.workbench3*0.12.0.v20150316-1403@default:default,org.eclipse.e4.ui.workbench3*0.13.0.v20150422-0725@default:default,org.eclipse.ecf*3.4.0.v20150506-1752@default:default,org.eclipse.ecf*3.4.0.v20150512-1727@default:default,org.eclipse.ecf.filetransfer*5.0.0.v20150506-1752@default:default,org.eclipse.ecf.filetransfer*5.0.0.v20150512-1727@default:default,org.eclipse.ecf.identity*3.5.0.v20150506-1752@default:default,org.eclipse.ecf.identity*3.5.0.v20150512-1727@default:default,org.eclipse.ecf.provider.filetransfer*3.2.200.v20150506-1752@default:default,org.eclipse.ecf.provider.filetransfer*3.2.200.v20150512-1727@default:default,org.eclipse.ecf.provider.filetransfer.httpclient4*1.0.1043.v20150506-1752@default:default,org.eclipse.ecf.provider.filetransfer.httpclient4*1.0.1043.v20150512-1727@default:default,org.eclipse.ecf.provider.filetransfer.httpclient4.ssl*1.0.0.v20150506-1752@default:false,org.eclipse.ecf.provider.filetransfer.httpclient4.ssl*1.0.0.v20150512-1727@default:false,org.eclipse.ecf.provider.filetransfer.ssl*1.0.0.v20150506-1752@default:false,org.eclipse.ecf.provider.filetransfer.ssl*1.0.0.v20150512-1727@default:false,org.eclipse.ecf.ssl*1.1.0.v20150506-1752@default:false,org.eclipse.ecf.ssl*1.1.0.v20150512-1727@default:false,org.eclipse.egit.core@default:default,org.eclipse.egit.doc@default:default,org.eclipse.egit.fetchfactory@default:default,org.eclipse.egit.mylyn.ui@default:default,org.eclipse.egit.ui@default:default,org.eclipse.egit@default:default,org.eclipse.emf*2.6.0.v20150504-0831@default:default,org.eclipse.emf*2.6.0.v20150518-0831@default:default,org.eclipse.emf.ant*2.8.0.v20150504-0831@default:default,org.eclipse.emf.ant*2.8.0.v20150518-0831@default:default,org.eclipse.emf.cheatsheets*2.5.0.v20150504-0831@default:default,org.eclipse.emf.cheatsheets*2.5.0.v20150518-0831@default:default,org.eclipse.emf.codegen*2.11.0.v20150504-0831@default:default,org.eclipse.emf.codegen*2.11.0.v20150518-0831@default:default,org.eclipse.emf.codegen.ecore*2.11.0.v20150504-0831@default:default,org.eclipse.emf.codegen.ecore*2.11.0.v20150518-0831@default:default,org.eclipse.emf.codegen.ecore.ui*2.11.0.v20150504-0831@default:default,org.eclipse.emf.codegen.ecore.ui*2.11.0.v20150518-0831@default:default,org.eclipse.emf.codegen.ui*2.6.0.v20150504-0831@default:default,org.eclipse.emf.codegen.ui*2.6.0.v20150518-0831@default:default,org.eclipse.emf.common*2.11.0.v20150428-0315@default:default,org.eclipse.emf.common*2.11.0.v20150512-0501@default:default,org.eclipse.emf.common.ui*2.10.0.v20150504-0831@default:default,org.eclipse.emf.common.ui*2.10.0.v20150518-0831@default:default,org.eclipse.emf.converter*2.7.0.v20150504-0831@default:default,org.eclipse.emf.converter*2.7.0.v20150518-0831@default:default,org.eclipse.emf.databinding*1.3.0.v20150504-0831@default:default,org.eclipse.emf.databinding*1.3.0.v20150518-0831@default:default,org.eclipse.emf.databinding.edit*1.3.0.v20150504-0831@default:default,org.eclipse.emf.databinding.edit*1.3.0.v20150518-0831@default:default,org.eclipse.emf.doc*2.8.0.v20150504-0831@default:default,org.eclipse.emf.doc*2.8.0.v20150518-0831@default:default,org.eclipse.emf.ecore*2.11.0.v20150428-0315@default:default,org.eclipse.emf.ecore*2.11.0.v20150512-0501@default:default,org.eclipse.emf.ecore.change*2.11.0.v20150428-0315@default:default,org.eclipse.emf.ecore.change*2.11.0.v20150512-0501@default:default,org.eclipse.emf.ecore.change.edit*2.6.0.v20150504-0831@default:default,org.eclipse.emf.ecore.change.edit*2.6.0.v20150518-0831@default:default,org.eclipse.emf.ecore.edit*2.9.0.v20150504-0831@default:default,org.eclipse.emf.ecore.edit*2.9.0.v20150518-0831@default:default,org.eclipse.emf.ecore.editor*2.11.0.v20150504-0831@default:default,org.eclipse.emf.ecore.editor*2.11.0.v20150518-0831@default:default,org.eclipse.emf.ecore.xmi*2.11.0.v20150428-0315@default:default,org.eclipse.emf.ecore.xmi*2.11.0.v20150512-0501@default:default,org.eclipse.emf.edit*2.11.0.v20150504-0831@default:default,org.eclipse.emf.edit*2.11.0.v20150518-0831@default:default,org.eclipse.emf.edit.ui*2.11.0.v20150504-0831@default:default,org.eclipse.emf.edit.ui*2.11.0.v20150518-0831@default:default,org.eclipse.emf.example.installer*1.4.0.v20150504-0831@default:default,org.eclipse.emf.example.installer*1.4.0.v20150518-0831@default:default,org.eclipse.emf.exporter*2.7.0.v20150504-0831@default:default,org.eclipse.emf.exporter*2.7.0.v20150518-0831@default:default,org.eclipse.emf.importer*2.9.0.v20150504-0831@default:default,org.eclipse.emf.importer*2.9.0.v20150518-0831@default:default,org.eclipse.emf.importer.ecore*2.8.0.v20150504-0831@default:default,org.eclipse.emf.importer.ecore*2.8.0.v20150518-0831@default:default,org.eclipse.emf.importer.java*2.7.0.v20150504-0831@default:default,org.eclipse.emf.importer.java*2.7.0.v20150518-0831@default:default,org.eclipse.emf.importer.rose*2.8.0.v20150504-0831@default:default,org.eclipse.emf.importer.rose*2.8.0.v20150518-0831@default:default,org.eclipse.emf.mapping*2.9.0.v20150504-0831@default:default,org.eclipse.emf.mapping*2.9.0.v20150518-0831@default:default,org.eclipse.emf.mapping.ecore*2.6.0.v20150504-0831@default:default,org.eclipse.emf.mapping.ecore*2.6.0.v20150518-0831@default:default,org.eclipse.emf.mapping.ecore.editor*2.6.0.v20150504-0831@default:default,org.eclipse.emf.mapping.ecore.editor*2.6.0.v20150518-0831@default:default,org.eclipse.emf.mapping.ecore2ecore*2.9.0.v20150504-0831@default:default,org.eclipse.emf.mapping.ecore2ecore*2.9.0.v20150518-0831@default:default,org.eclipse.emf.mapping.ecore2ecore.editor*2.7.0.v20150504-0831@default:default,org.eclipse.emf.mapping.ecore2ecore.editor*2.7.0.v20150518-0831@default:default,org.eclipse.emf.mapping.ecore2xml*2.9.0.v20150504-0831@default:default,org.eclipse.emf.mapping.ecore2xml*2.9.0.v20150518-0831@default:default,org.eclipse.emf.mapping.ecore2xml.ui*2.8.0.v20150504-0831@default:default,org.eclipse.emf.mapping.ecore2xml.ui*2.8.0.v20150518-0831@default:default,org.eclipse.emf.mapping.ui*2.7.0.v20150504-0831@default:default,org.eclipse.emf.mapping.ui*2.7.0.v20150518-0831@default:default,org.eclipse.emf.mwe.core*1.3.10.v201503240644@default:default,org.eclipse.emf.mwe.core*1.3.10.v201505050723@default:default,org.eclipse.emf.mwe.utils*1.3.10.v201503240644@default:default,org.eclipse.emf.mwe.utils*1.3.10.v201505050723@default:default,org.eclipse.emf.mwe2.language*2.8.0.v201503240833@default:default,org.eclipse.emf.mwe2.language*2.8.0.v201505050939@default:default,org.eclipse.emf.mwe2.language.ui@default:default,org.eclipse.emf.mwe2.launch*2.8.0.v201503240833@default:default,org.eclipse.emf.mwe2.launch*2.8.0.v201505050939@default:default,org.eclipse.emf.mwe2.lib*2.8.0.v201503240644@default:default,org.eclipse.emf.mwe2.lib*2.8.0.v201505050723@default:default,org.eclipse.emf.mwe2.runtime*2.8.0.v201503240644@default:default,org.eclipse.emf.mwe2.runtime*2.8.0.v201505050723@default:default,org.eclipse.emf.query.doc@default:default,org.eclipse.emf.query.examples@default:default,org.eclipse.emf.query.ocl@default:default,org.eclipse.emf.query@default:default,org.eclipse.emf.transaction*1.9.0.201503250534@default:default,org.eclipse.emf.transaction*1.9.0.201505060251@default:default,org.eclipse.emf.transaction.doc@default:default,org.eclipse.emf.transaction.examples@default:default,org.eclipse.emf.transaction.ui*1.4.0.201503250534@default:default,org.eclipse.emf.transaction.ui*1.4.0.201505060251@default:default,org.eclipse.emf.validation*1.8.0.201503250348@default:default,org.eclipse.emf.validation*1.8.0.201505060134@default:default,org.eclipse.emf.validation.doc@default:default,org.eclipse.emf.validation.examples@default:default,org.eclipse.emf.validation.ocl*1.4.0.201503250348@default:default,org.eclipse.emf.validation.ocl*1.4.0.201505060134@default:default,org.eclipse.emf.validation.ui*1.7.0.201503250348@default:default,org.eclipse.emf.validation.ui*1.7.0.201505060134@default:default,org.eclipse.emf.validation.ui.ide@default:default,org.eclipse.emf.workspace*1.5.1.201503250534@default:default,org.eclipse.emf.workspace*1.5.1.201505060251@default:default,org.eclipse.emf.workspace.doc@default:default,org.eclipse.emf.workspace.ui*1.3.0.201503250534@default:default,org.eclipse.emf.workspace.ui*1.3.0.201505060251@default:default,org.eclipse.epp.logging.aeri.ui@default:default,org.eclipse.epp.mpc.core@default:default,org.eclipse.epp.mpc.help.ui@default:default,org.eclipse.epp.mpc.ui@default:default,org.eclipse.epp.package.committers@default:default,org.eclipse.equinox.app*1.3.200.v20130910-1609@default:default,org.eclipse.equinox.app*1.3.300.v20150423-1356@default:default,org.eclipse.equinox.bidi@default:default,org.eclipse.equinox.common*3.7.0.v20150318-1503@2:true,org.eclipse.equinox.common*3.7.0.v20150402-1709@2:true,org.eclipse.equinox.concurrent@default:default,org.eclipse.equinox.console@default:default,org.eclipse.equinox.ds*1.4.200.v20131126-2331@1:true,org.eclipse.equinox.ds*1.4.300.v20150423-1356@1:true,org.eclipse.equinox.event@default:default,org.eclipse.equinox.frameworkadmin*2.0.100.v20131209-2144@default:default,org.eclipse.equinox.frameworkadmin*2.0.200.v20150423-1455@default:default,org.eclipse.equinox.frameworkadmin.equinox*1.0.500.v20150304-1709@default:default,org.eclipse.equinox.frameworkadmin.equinox*1.0.600.v20150427-1907@default:default,org.eclipse.equinox.http.jetty*3.1.0.v20150319-1742@default:default,org.eclipse.equinox.http.jetty*3.1.0.v20150323-1312@default:default,org.eclipse.equinox.http.registry@default:default,org.eclipse.equinox.http.servlet*1.2.0.v20150319-1742@default:default,org.eclipse.equinox.http.servlet*1.2.0.v20150428-1940@default:default,org.eclipse.equinox.jsp.jasper.registry@default:default,org.eclipse.equinox.jsp.jasper@default:default,org.eclipse.equinox.launcher*1.3.0.v20140415-2008@default:default,org.eclipse.equinox.launcher*1.3.100.v20150511-1540@default:default,org.eclipse.equinox.launcher.win32.win32.x86_64*1.1.200.v20150320-0346@default:false,org.eclipse.equinox.launcher.win32.win32.x86_64*1.1.300.v20150513-1722@default:false,org.eclipse.equinox.p2.artifact.repository*1.1.300.v20150226-1713@default:default,org.eclipse.equinox.p2.artifact.repository*1.1.400.v20150513-2116@default:default,org.eclipse.equinox.p2.console*1.0.300.v20150226-1713@default:default,org.eclipse.equinox.p2.console*1.0.400.v20150423-1455@default:default,org.eclipse.equinox.p2.core*2.4.0.v20150226-1713@default:default,org.eclipse.equinox.p2.core*2.4.0.v20150424-1429@default:default,org.eclipse.equinox.p2.director*2.3.100.v20150226-1713@default:default,org.eclipse.equinox.p2.director*2.3.200.v20150423-1455@default:default,org.eclipse.equinox.p2.director.app*1.0.300.v20150308-0324@default:default,org.eclipse.equinox.p2.director.app*1.0.400.v20150423-1455@default:default,org.eclipse.equinox.p2.directorywatcher*1.1.0.v20150226-1713@default:default,org.eclipse.equinox.p2.directorywatcher*1.1.100.v20150423-1455@default:default,org.eclipse.equinox.p2.discovery.compatibility@default:default,org.eclipse.equinox.p2.discovery@default:default,org.eclipse.equinox.p2.engine*2.3.0.v20150226-1713@default:default,org.eclipse.equinox.p2.engine*2.4.0.v20150511-1532@default:default,org.eclipse.equinox.p2.extensionlocation*1.2.100.v20150226-1713@default:default,org.eclipse.equinox.p2.extensionlocation*1.2.200.v20150423-1455@default:default,org.eclipse.equinox.p2.garbagecollector@default:default,org.eclipse.equinox.p2.jarprocessor*1.0.300.v20131211-1531@default:default,org.eclipse.equinox.p2.jarprocessor*1.0.400.v20150430-1836@default:default,org.eclipse.equinox.p2.metadata*2.2.0.v20150216-2211@default:default,org.eclipse.equinox.p2.metadata*2.3.0.v20150511-1532@default:default,org.eclipse.equinox.p2.metadata.repository*1.2.100.v20150226-1713@default:default,org.eclipse.equinox.p2.metadata.repository*1.2.200.v20150428-1613@default:default,org.eclipse.equinox.p2.operations*2.4.0.v20150226-1713@default:default,org.eclipse.equinox.p2.operations*2.4.100.v20150423-1455@default:default,org.eclipse.equinox.p2.publisher.eclipse*1.1.200.v20150319-1551@default:default,org.eclipse.equinox.p2.publisher.eclipse*1.1.300.v20150423-1455@default:default,org.eclipse.equinox.p2.publisher@default:default,org.eclipse.equinox.p2.reconciler.dropins*1.1.200.v20150226-1713@default:default,org.eclipse.equinox.p2.reconciler.dropins*1.1.300.v20150423-1455@default:default,org.eclipse.equinox.p2.repository*2.3.0.v20150311-0407@default:default,org.eclipse.equinox.p2.repository*2.3.100.v20150428-1613@default:default,org.eclipse.equinox.p2.repository.tools*2.1.0.v20150226-1713@default:default,org.eclipse.equinox.p2.repository.tools*2.1.100.v20150423-1455@default:default,org.eclipse.equinox.p2.touchpoint.eclipse*2.1.200.v20150304-1709@default:default,org.eclipse.equinox.p2.touchpoint.eclipse*2.1.300.v20150423-1455@default:default,org.eclipse.equinox.p2.touchpoint.natives*1.2.0.v20150226-1713@default:default,org.eclipse.equinox.p2.touchpoint.natives*1.2.0.v20150424-1456@default:default,org.eclipse.equinox.p2.transport.ecf*1.1.0.v20150226-1713@default:default,org.eclipse.equinox.p2.transport.ecf*1.1.100.v20150423-1455@default:default,org.eclipse.equinox.p2.ui*2.4.0.v20150226-1713@default:default,org.eclipse.equinox.p2.ui*2.4.0.v20150425-0422@default:default,org.eclipse.equinox.p2.ui.discovery@default:default,org.eclipse.equinox.p2.ui.importexport*1.1.0.v20150226-1713@default:default,org.eclipse.equinox.p2.ui.importexport*1.1.100.v20150423-1455@default:default,org.eclipse.equinox.p2.ui.sdk*1.0.300.v20140407-1803@default:default,org.eclipse.equinox.p2.ui.sdk*1.0.400.v20150423-1455@default:default,org.eclipse.equinox.p2.ui.sdk.scheduler*1.2.0.v20150226-1713@default:default,org.eclipse.equinox.p2.ui.sdk.scheduler*1.2.100.v20150423-1455@default:default,org.eclipse.equinox.p2.updatechecker@default:default,org.eclipse.equinox.p2.updatesite*1.0.400.v20150224-1702@default:default,org.eclipse.equinox.p2.updatesite*1.0.500.v20150423-1455@default:default,org.eclipse.equinox.preferences*3.5.300.v20150313-2125@default:default,org.eclipse.equinox.preferences*3.5.300.v20150408-1437@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.equinox.security*1.2.0.v20150223-1455@default:default,org.eclipse.equinox.security*1.2.100.v20150423-1356@default:default,org.eclipse.equinox.security.ui@default:default,org.eclipse.equinox.security.win32.x86_64@default:false,org.eclipse.equinox.simpleconfigurator*1.1.0.v20131217-1203@1:true,org.eclipse.equinox.simpleconfigurator*1.1.100.v20150423-1455@1:true,org.eclipse.equinox.simpleconfigurator.manipulator*2.0.0.v20150121-1551@default:default,org.eclipse.equinox.simpleconfigurator.manipulator*2.0.100.v20150423-1455@default:default,org.eclipse.equinox.util@default:default,org.eclipse.gef*3.10.0.201505040206@default:default,org.eclipse.gef*3.10.0.201505170205@default:default,org.eclipse.gef.doc.isv@default:default,org.eclipse.gef.examples.ui.pde@default:default,org.eclipse.gmf.bridge.trace@default:default,org.eclipse.gmf.bridge.ui.dashboard@default:default,org.eclipse.gmf.bridge.ui@default:default,org.eclipse.gmf.bridge@default:default,org.eclipse.gmf.codegen.edit@default:default,org.eclipse.gmf.codegen.ui@default:default,org.eclipse.gmf.codegen@default:default,org.eclipse.gmf.common@default:default,org.eclipse.gmf.doc.ui@default:default,org.eclipse.gmf.doc@default:default,org.eclipse.gmf.ecore.editor@default:default,org.eclipse.gmf.examples.runtime.ui.pde@default:default,org.eclipse.gmf.graphdef.codegen.ui@default:default,org.eclipse.gmf.graphdef.codegen@default:default,org.eclipse.gmf.graphdef.edit@default:default,org.eclipse.gmf.graphdef@default:default,org.eclipse.gmf.map.edit@default:default,org.eclipse.gmf.map@default:default,org.eclipse.gmf.runtime.common.core*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.common.core*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.common.ui*1.8.1.201503261653@default:default,org.eclipse.gmf.runtime.common.ui*1.8.1.201505060429@default:default,org.eclipse.gmf.runtime.common.ui.action*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.common.ui.action*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.common.ui.action.ide*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.common.ui.action.ide*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.common.ui.printing*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.common.ui.printing*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.common.ui.printing.win32@default:false,org.eclipse.gmf.runtime.common.ui.services*1.9.0.201503261653@default:default,org.eclipse.gmf.runtime.common.ui.services*1.9.0.201505060429@default:default,org.eclipse.gmf.runtime.common.ui.services.action*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.common.ui.services.action*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.common.ui.services.dnd.ide@default:default,org.eclipse.gmf.runtime.common.ui.services.dnd@default:default,org.eclipse.gmf.runtime.common.ui.services.properties*1.9.0.201503261653@default:default,org.eclipse.gmf.runtime.common.ui.services.properties*1.9.0.201505060429@default:default,org.eclipse.gmf.runtime.diagram.core*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.diagram.core*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.diagram.ui*1.8.0.201503261653@default:default,org.eclipse.gmf.runtime.diagram.ui*1.8.0.201505060429@default:default,org.eclipse.gmf.runtime.diagram.ui.actions*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.diagram.ui.actions*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.diagram.ui.dnd@default:default,org.eclipse.gmf.runtime.diagram.ui.geoshapes@default:default,org.eclipse.gmf.runtime.diagram.ui.printing*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.diagram.ui.printing*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.diagram.ui.printing.render*1.8.0.201503261653@default:default,org.eclipse.gmf.runtime.diagram.ui.printing.render*1.8.0.201505060429@default:default,org.eclipse.gmf.runtime.diagram.ui.properties*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.diagram.ui.properties*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.diagram.ui.providers*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.diagram.ui.providers*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.diagram.ui.providers.ide*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.diagram.ui.providers.ide*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.diagram.ui.render*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.diagram.ui.render*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.diagram.ui.resources.editor*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.diagram.ui.resources.editor*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.diagram.ui.resources.editor.ide*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.draw2d.ui*1.9.0.201503261653@default:default,org.eclipse.gmf.runtime.draw2d.ui*1.9.0.201505060429@default:default,org.eclipse.gmf.runtime.draw2d.ui.render*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.draw2d.ui.render*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.draw2d.ui.render.awt*1.8.0.201503261653@default:default,org.eclipse.gmf.runtime.draw2d.ui.render.awt*1.8.0.201505060429@default:default,org.eclipse.gmf.runtime.emf.clipboard.core*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.emf.clipboard.core*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.emf.commands.core*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.emf.commands.core*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.emf.core*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.emf.core*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.emf.type.core*1.9.0.201503261653@default:default,org.eclipse.gmf.runtime.emf.type.core*1.9.0.201505060429@default:default,org.eclipse.gmf.runtime.emf.type.ui@default:default,org.eclipse.gmf.runtime.emf.ui*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.emf.ui*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.emf.ui.properties*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.emf.ui.properties*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.gef.ui*1.7.0.201503261653@default:default,org.eclipse.gmf.runtime.gef.ui*1.7.0.201505060429@default:default,org.eclipse.gmf.runtime.lite.svg@default:default,org.eclipse.gmf.runtime.notation*1.8.0.201503250354@default:default,org.eclipse.gmf.runtime.notation*1.8.0.201505060039@default:default,org.eclipse.gmf.runtime.notation.edit*1.7.0.201503250354@default:default,org.eclipse.gmf.runtime.notation.edit*1.7.0.201505060039@default:default,org.eclipse.gmf.runtime.notation.providers@default:default,org.eclipse.gmf.runtime.notation.sdk@default:default,org.eclipse.gmf.runtime.sdk@default:default,org.eclipse.gmf.sdk@default:default,org.eclipse.gmf.tooldef.edit@default:default,org.eclipse.gmf.tooldef@default:default,org.eclipse.gmf.tooling.runtime*3.2.0.201412171959@default:default,org.eclipse.gmf.tooling.runtime*3.2.0.201505032108@default:default,org.eclipse.gmf.tooling@default:default,org.eclipse.gmf.validate@default:default,org.eclipse.gmf.xpand.editor@default:default,org.eclipse.gmf.xpand.qvtlibrary@default:default,org.eclipse.gmf.xpand@default:default,org.eclipse.gmf@default:default,org.eclipse.help.base*4.0.300.v20150320-0800@default:default,org.eclipse.help.base*4.0.300.v20150514-1000@default:default,org.eclipse.help.ui@default:default,org.eclipse.help.webapp*3.7.0.v20150226-2129@default:default,org.eclipse.help.webapp*3.7.0.v20150425-0643@default:default,org.eclipse.help@default:default,org.eclipse.jdt*3.11.0.v20150430-1445@default:default,org.eclipse.jdt*3.11.0.v20150514-1000@default:default,org.eclipse.jdt.annotation*1.1.100.v20140704-0625@default:default,org.eclipse.jdt.annotation*2.0.100.v20150311-1658@default:default,org.eclipse.jdt.apt.core@default:default,org.eclipse.jdt.apt.pluggable.core@default:default,org.eclipse.jdt.apt.ui@default:default,org.eclipse.jdt.compiler.apt*1.2.0.v20150424-1830@default:false,org.eclipse.jdt.compiler.apt*1.2.0.v20150514-0146@default:false,org.eclipse.jdt.compiler.tool*1.1.0.v20150423-0947@default:false,org.eclipse.jdt.compiler.tool*1.1.0.v20150513-2007@default:false,org.eclipse.jdt.core*3.11.0.v20150429-0810@default:default,org.eclipse.jdt.core*3.11.0.v20150513-2030@default:default,org.eclipse.jdt.core.manipulation@default:default,org.eclipse.jdt.debug.ui*3.7.0.v20150414-0909@default:default,org.eclipse.jdt.debug.ui*3.7.0.v20150505-1916@default:default,org.eclipse.jdt.debug@default:default,org.eclipse.jdt.doc.isv*3.11.0.v20150401-1527@default:default,org.eclipse.jdt.doc.isv*3.11.0.v20150513-1616@default:default,org.eclipse.jdt.doc.user*3.11.0.v20150429-1030@default:default,org.eclipse.jdt.doc.user*3.11.0.v20150513-1723@default:default,org.eclipse.jdt.junit.core@default:default,org.eclipse.jdt.junit.runtime@default:default,org.eclipse.jdt.junit4.runtime@default:default,org.eclipse.jdt.junit@default:default,org.eclipse.jdt.launching@default:default,org.eclipse.jdt.ui*3.11.0.v20150428-1805@default:default,org.eclipse.jdt.ui*3.11.0.v20150513-1857@default:default,org.eclipse.jem.util@default:default,org.eclipse.jetty.continuation@default:default,org.eclipse.jetty.http@default:default,org.eclipse.jetty.io@default:default,org.eclipse.jetty.security@default:default,org.eclipse.jetty.server@default:default,org.eclipse.jetty.servlet@default:default,org.eclipse.jetty.util@default:default,org.eclipse.jface*3.11.0.v20150313-1544@default:default,org.eclipse.jface*3.11.0.v20150511-1340@default:default,org.eclipse.jface.databinding*1.7.0.v20150315-0701@default:default,org.eclipse.jface.databinding*1.7.0.v20150406-2148@default:default,org.eclipse.jface.text*3.10.0.v20150112-1146@default:default,org.eclipse.jface.text*3.10.0.v20150428-1301@default:default,org.eclipse.jgit.archive@default:default,org.eclipse.jgit.java7@default:false,org.eclipse.jgit@default:default,org.eclipse.jsch.core@default:default,org.eclipse.jsch.ui@default:default,org.eclipse.ltk.core.refactoring@default:default,org.eclipse.ltk.ui.refactoring@default:default,org.eclipse.m2e.archetype.common@default:default,org.eclipse.m2e.core.ui@default:default,org.eclipse.m2e.core@default:default,org.eclipse.m2e.discovery@default:default,org.eclipse.m2e.editor.xml@default:default,org.eclipse.m2e.editor@default:default,org.eclipse.m2e.jdt.ui@default:false,org.eclipse.m2e.jdt@default:default,org.eclipse.m2e.launching@default:default,org.eclipse.m2e.lifecyclemapping.defaults@default:default,org.eclipse.m2e.maven.indexer@default:default,org.eclipse.m2e.maven.runtime.slf4j.simple@default:default,org.eclipse.m2e.maven.runtime@default:default,org.eclipse.m2e.model.edit@default:default,org.eclipse.m2e.profiles.core@default:default,org.eclipse.m2e.profiles.ui@default:default,org.eclipse.m2e.refactoring@default:default,org.eclipse.m2e.scm@default:default,org.eclipse.m2e.workspace.cli@default:default,org.eclipse.m2m.qvt.oml*3.5.0.v20150324-1740@default:default,org.eclipse.m2m.qvt.oml*3.5.0.v20150505-0519@default:default,org.eclipse.m2m.qvt.oml.common*3.5.0.v20150224-1209@default:default,org.eclipse.m2m.qvt.oml.common*3.5.0.v20150429-1352@default:default,org.eclipse.m2m.qvt.oml.cst.parser@default:default,org.eclipse.m2m.qvt.oml.ecore.imperativeocl@default:default,org.eclipse.m2m.qvt.oml.emf.util*3.5.0.v20150129-1251@default:default,org.eclipse.m2m.qvt.oml.emf.util*3.5.0.v20150419-1233@default:default,org.eclipse.m2m.qvt.oml.project@default:default,org.eclipse.m2m.qvt.oml.runtime*3.5.0.v20150324-1740@default:default,org.eclipse.m2m.qvt.oml.runtime*3.5.0.v20150505-0519@default:default,org.eclipse.mylyn.bugzilla.core@default:default,org.eclipse.mylyn.bugzilla.ide@default:default,org.eclipse.mylyn.bugzilla.ui@default:default,org.eclipse.mylyn.builds.core@default:default,org.eclipse.mylyn.builds.ui@default:default,org.eclipse.mylyn.commons.core@default:default,org.eclipse.mylyn.commons.identity.core@default:default,org.eclipse.mylyn.commons.net@default:default,org.eclipse.mylyn.commons.notifications.core@default:default,org.eclipse.mylyn.commons.notifications.feed@default:default,org.eclipse.mylyn.commons.notifications.ui@default:default,org.eclipse.mylyn.commons.repositories.core@default:default,org.eclipse.mylyn.commons.repositories.http.core@default:default,org.eclipse.mylyn.commons.repositories.ui@default:default,org.eclipse.mylyn.commons.screenshots@default:default,org.eclipse.mylyn.commons.ui@default:default,org.eclipse.mylyn.commons.workbench@default:default,org.eclipse.mylyn.commons.xmlrpc@default:default,org.eclipse.mylyn.context.core@default:default,org.eclipse.mylyn.context.tasks.ui@default:default,org.eclipse.mylyn.context.ui@default:default,org.eclipse.mylyn.debug.ui@default:default,org.eclipse.mylyn.discovery.core@default:default,org.eclipse.mylyn.discovery.ui@default:default,org.eclipse.mylyn.gerrit.core@default:default,org.eclipse.mylyn.gerrit.ui@default:default,org.eclipse.mylyn.git.core@default:default,org.eclipse.mylyn.git.ui@default:default,org.eclipse.mylyn.help.ui@default:default,org.eclipse.mylyn.hudson.core@default:default,org.eclipse.mylyn.hudson.ui@default:default,org.eclipse.mylyn.ide.ant@default:default,org.eclipse.mylyn.ide.ui@default:default,org.eclipse.mylyn.java.tasks@default:default,org.eclipse.mylyn.java.ui@default:default,org.eclipse.mylyn.monitor.core@default:default,org.eclipse.mylyn.monitor.ui@default:default,org.eclipse.mylyn.pde.ui@default:default,org.eclipse.mylyn.resources.ui@default:default,org.eclipse.mylyn.reviews.core@default:default,org.eclipse.mylyn.reviews.edit@default:default,org.eclipse.mylyn.reviews.ui@default:default,org.eclipse.mylyn.tasks.bugs@default:default,org.eclipse.mylyn.tasks.core@default:default,org.eclipse.mylyn.tasks.index.core@default:default,org.eclipse.mylyn.tasks.index.ui@default:default,org.eclipse.mylyn.tasks.search@default:default,org.eclipse.mylyn.tasks.ui@default:default,org.eclipse.mylyn.team.ui@default:default,org.eclipse.mylyn.versions.core@default:default,org.eclipse.mylyn.versions.ui@default:default,org.eclipse.mylyn.wikitext.confluence.core@default:default,org.eclipse.mylyn.wikitext.confluence.ui@default:default,org.eclipse.mylyn.wikitext.context.ui@default:default,org.eclipse.mylyn.wikitext.core.ant@default:default,org.eclipse.mylyn.wikitext.core.osgi@default:default,org.eclipse.mylyn.wikitext.core@default:default,org.eclipse.mylyn.wikitext.help.ui@default:default,org.eclipse.mylyn.wikitext.html.core@default:default,org.eclipse.mylyn.wikitext.markdown.core@default:default,org.eclipse.mylyn.wikitext.markdown.ui@default:default,org.eclipse.mylyn.wikitext.mediawiki.core@default:default,org.eclipse.mylyn.wikitext.mediawiki.ui@default:default,org.eclipse.mylyn.wikitext.tasks.ui@default:default,org.eclipse.mylyn.wikitext.textile.core@default:default,org.eclipse.mylyn.wikitext.textile.ui@default:default,org.eclipse.mylyn.wikitext.tracwiki.core@default:default,org.eclipse.mylyn.wikitext.tracwiki.ui@default:default,org.eclipse.mylyn.wikitext.twiki.core@default:default,org.eclipse.mylyn.wikitext.twiki.ui@default:default,org.eclipse.mylyn.wikitext.ui@default:default,org.eclipse.nebula.widgets.nattable.core@default:default,org.eclipse.nebula.widgets.nattable.extension.glazedlists@default:default,org.eclipse.nebula.widgets.tablecombo@default:default,org.eclipse.ocl*3.5.0.v20150321-0925@default:default,org.eclipse.ocl*3.5.0.v20150410-1135@default:default,org.eclipse.ocl.common.ui*1.2.0.v20140819-1517@default:default,org.eclipse.ocl.common.ui*1.2.0.v20150410-1119@default:default,org.eclipse.ocl.common@default:default,org.eclipse.ocl.ecore*3.3.200.v20150110-2335@default:default,org.eclipse.ocl.ecore*3.3.200.v20150330-1704@default:default,org.eclipse.ocl.examples.debug*2.0.0.v20150208-1848@default:default,org.eclipse.ocl.examples.debug*2.0.0.v20150410-1125@default:default,org.eclipse.ocl.examples.debug.vm*2.0.0.v20150208-2149@default:default,org.eclipse.ocl.examples.debug.vm*2.0.0.v20150410-1125@default:default,org.eclipse.ocl.examples.ui*1.3.0.v20141108-1747@default:default,org.eclipse.ocl.examples.ui*1.3.0.v20150410-1125@default:default,org.eclipse.ocl.examples.xtext.console*4.0.0.v20150208-1844@default:default,org.eclipse.ocl.examples.xtext.console*4.0.0.v20150424-1841@default:default,org.eclipse.ocl.jdt.annotation7@default:default,org.eclipse.ocl.pivot*1.0.0.v20150323-1850@default:default,org.eclipse.ocl.pivot*1.0.0.v20150504-1704@default:default,org.eclipse.ocl.pivot.ui*1.0.0.v20150122-1254@default:default,org.eclipse.ocl.pivot.ui*1.0.0.v20150410-1125@default:default,org.eclipse.ocl.pivot.uml*1.0.0.v20150317-1133@default:default,org.eclipse.ocl.pivot.uml*1.0.0.v20150416-1648@default:default,org.eclipse.ocl.xtext.base*1.0.0.v20150320-1757@default:default,org.eclipse.ocl.xtext.base*1.0.0.v20150503-1711@default:default,org.eclipse.ocl.xtext.base.ui*1.0.0.v20150323-1849@default:default,org.eclipse.ocl.xtext.base.ui*1.0.0.v20150503-2043@default:default,org.eclipse.ocl.xtext.completeocl*1.0.0.v20150323-1849@default:default,org.eclipse.ocl.xtext.completeocl*1.0.0.v20150503-1711@default:default,org.eclipse.ocl.xtext.completeocl.ui*1.0.0.v20150323-1849@default:default,org.eclipse.ocl.xtext.completeocl.ui*1.0.0.v20150424-1832@default:default,org.eclipse.ocl.xtext.essentialocl*1.0.0.v20150323-1849@default:default,org.eclipse.ocl.xtext.essentialocl*1.0.0.v20150503-1711@default:default,org.eclipse.ocl.xtext.essentialocl.ui*1.0.0.v20150323-1849@default:default,org.eclipse.ocl.xtext.essentialocl.ui*1.0.0.v20150410-1232@default:default,org.eclipse.ocl.xtext.markup*1.0.0.v20150320-1757@default:default,org.eclipse.ocl.xtext.markup*1.0.0.v20150429-2115@default:default,org.eclipse.ocl.xtext.markup.ui*1.0.0.v20150226-1501@default:default,org.eclipse.ocl.xtext.markup.ui*1.0.0.v20150410-1125@default:default,org.eclipse.ocl.xtext.oclinecore*1.0.0.v20150323-1849@default:default,org.eclipse.ocl.xtext.oclinecore*1.0.0.v20150429-2115@default:default,org.eclipse.ocl.xtext.oclinecore.ui*1.0.0.v20150323-1849@default:default,org.eclipse.ocl.xtext.oclinecore.ui*1.0.0.v20150503-1711@default:default,org.eclipse.ocl.xtext.oclstdlib*1.0.0.v20150323-1849@default:default,org.eclipse.ocl.xtext.oclstdlib*1.0.0.v20150429-2115@default:default,org.eclipse.ocl.xtext.oclstdlib.ui*1.0.0.v20150323-1849@default:default,org.eclipse.ocl.xtext.oclstdlib.ui*1.0.0.v20150424-1832@default:default,org.eclipse.oomph.base.edit@default:default,org.eclipse.oomph.base@default:default,org.eclipse.oomph.extractor.lib@default:default,org.eclipse.oomph.jreinfo.ui@default:default,org.eclipse.oomph.jreinfo.win32.x86_64@default:false,org.eclipse.oomph.jreinfo@default:default,org.eclipse.oomph.p2.core@default:default,org.eclipse.oomph.p2.doc@default:default,org.eclipse.oomph.p2.edit@default:default,org.eclipse.oomph.p2.ui@default:default,org.eclipse.oomph.p2@default:default,org.eclipse.oomph.predicates.edit@default:default,org.eclipse.oomph.predicates@default:default,org.eclipse.oomph.preferences.edit@default:default,org.eclipse.oomph.preferences.editor@default:default,org.eclipse.oomph.preferences@default:default,org.eclipse.oomph.projectconfig.edit@default:default,org.eclipse.oomph.projectconfig.editor@default:default,org.eclipse.oomph.projectconfig@default:default,org.eclipse.oomph.projectcopy@default:default,org.eclipse.oomph.resources.edit@default:default,org.eclipse.oomph.resources@default:default,org.eclipse.oomph.setup.core@default:default,org.eclipse.oomph.setup.doc@default:default,org.eclipse.oomph.setup.edit@default:default,org.eclipse.oomph.setup.editor@default:default,org.eclipse.oomph.setup.git.edit@default:default,org.eclipse.oomph.setup.git@default:default,org.eclipse.oomph.setup.jdt.edit@default:default,org.eclipse.oomph.setup.jdt@default:default,org.eclipse.oomph.setup.mylyn.edit@default:default,org.eclipse.oomph.setup.mylyn@default:default,org.eclipse.oomph.setup.p2.edit@default:default,org.eclipse.oomph.setup.p2@default:default,org.eclipse.oomph.setup.projects.edit@default:default,org.eclipse.oomph.setup.projects@default:default,org.eclipse.oomph.setup.targlets.edit@default:default,org.eclipse.oomph.setup.targlets@default:default,org.eclipse.oomph.setup.ui.questionnaire@default:default,org.eclipse.oomph.setup.ui@default:default,org.eclipse.oomph.setup@default:default,org.eclipse.oomph.targlets.core@default:default,org.eclipse.oomph.targlets.doc@default:default,org.eclipse.oomph.targlets.edit@default:default,org.eclipse.oomph.targlets.editor@default:default,org.eclipse.oomph.targlets.ui@default:default,org.eclipse.oomph.targlets@default:default,org.eclipse.oomph.ui@default:default,org.eclipse.oomph.util.pde@default:default,org.eclipse.oomph.util@default:default,org.eclipse.oomph.workingsets.edit@default:default,org.eclipse.oomph.workingsets.editor@default:default,org.eclipse.oomph.workingsets@default:default,org.eclipse.osgi*3.10.100.v20150318-0312@-1:true,org.eclipse.osgi*3.10.100.v20150420-1253@-1:true,org.eclipse.osgi.compatibility.state*1.0.100.v20140702-1948@default:false,org.eclipse.osgi.compatibility.state*1.0.100.v20150402-1551@default:false,org.eclipse.osgi.services*3.5.0.v20150225-1427@default:default,org.eclipse.osgi.services*3.5.0.v20150428-1938@default:default,org.eclipse.osgi.util*3.3.0.v20131023-1243@default:default,org.eclipse.osgi.util*3.3.100.v20150423-1351@default:default,org.eclipse.papyrus.cdo.ui.doc@default:default,org.eclipse.papyrus.cdo.ui.doc@default:default,org.eclipse.papyrus.copypaste.ui.doc@default:default,org.eclipse.papyrus.copypaste.ui.doc@default:default,org.eclipse.papyrus.customization.palette@default:default,org.eclipse.papyrus.customization.palette@default:default,org.eclipse.papyrus.customization.paletteconfiguration@default:default,org.eclipse.papyrus.customization.paletteconfiguration@default:default,org.eclipse.papyrus.customization.properties.generation@default:default,org.eclipse.papyrus.customization.properties.generation@default:default,org.eclipse.papyrus.customization.properties.model.xwt@default:default,org.eclipse.papyrus.customization.properties.model.xwt@default:default,org.eclipse.papyrus.customization.properties@default:default,org.eclipse.papyrus.customization.properties@default:default,org.eclipse.papyrus.dsml.validation.doc@default:default,org.eclipse.papyrus.dsml.validation.doc@default:default,org.eclipse.papyrus.editor@default:default,org.eclipse.papyrus.editor@default:default,org.eclipse.papyrus.emf.facet.aggregate.doc*1.1.0.201505061653@default:default,org.eclipse.papyrus.emf.facet.aggregate.doc*1.1.0.201505201124@default:default,org.eclipse.papyrus.emf.facet.common.core@default:default,org.eclipse.papyrus.emf.facet.common.core@default:default,org.eclipse.papyrus.emf.facet.common.sdk.core@default:default,org.eclipse.papyrus.emf.facet.common.sdk.core@default:default,org.eclipse.papyrus.emf.facet.common.ui@default:default,org.eclipse.papyrus.emf.facet.common.ui@default:default,org.eclipse.papyrus.emf.facet.custom.core@default:default,org.eclipse.papyrus.emf.facet.custom.core@default:default,org.eclipse.papyrus.emf.facet.custom.doc@default:default,org.eclipse.papyrus.emf.facet.custom.doc@default:default,org.eclipse.papyrus.emf.facet.custom.metamodel.edit@default:default,org.eclipse.papyrus.emf.facet.custom.metamodel.edit@default:default,org.eclipse.papyrus.emf.facet.custom.metamodel.editor.doc@default:default,org.eclipse.papyrus.emf.facet.custom.metamodel.editor.doc@default:default,org.eclipse.papyrus.emf.facet.custom.metamodel@default:default,org.eclipse.papyrus.emf.facet.custom.metamodel@default:default,org.eclipse.papyrus.emf.facet.custom.sdk.core@default:default,org.eclipse.papyrus.emf.facet.custom.sdk.core@default:default,org.eclipse.papyrus.emf.facet.custom.sdk.ui@default:default,org.eclipse.papyrus.emf.facet.custom.sdk.ui@default:default,org.eclipse.papyrus.emf.facet.custom.ui@default:default,org.eclipse.papyrus.emf.facet.custom.ui@default:default,org.eclipse.papyrus.emf.facet.doc@default:default,org.eclipse.papyrus.emf.facet.doc@default:default,org.eclipse.papyrus.emf.facet.efacet.catalog@default:default,org.eclipse.papyrus.emf.facet.efacet.catalog@default:default,org.eclipse.papyrus.emf.facet.efacet.core@default:default,org.eclipse.papyrus.emf.facet.efacet.core@default:default,org.eclipse.papyrus.emf.facet.efacet.doc*1.1.0.201505061653@default:default,org.eclipse.papyrus.emf.facet.efacet.doc*1.1.0.201505201124@default:default,org.eclipse.papyrus.emf.facet.efacet.edit@default:default,org.eclipse.papyrus.emf.facet.efacet.edit@default:default,org.eclipse.papyrus.emf.facet.efacet.editor@default:default,org.eclipse.papyrus.emf.facet.efacet.editor@default:default,org.eclipse.papyrus.emf.facet.efacet.metamodel.edit@default:default,org.eclipse.papyrus.emf.facet.efacet.metamodel.edit@default:default,org.eclipse.papyrus.emf.facet.efacet.metamodel@default:default,org.eclipse.papyrus.emf.facet.efacet.metamodel@default:default,org.eclipse.papyrus.emf.facet.efacet.sdk.ui@default:default,org.eclipse.papyrus.emf.facet.efacet.sdk.ui@default:default,org.eclipse.papyrus.emf.facet.efacet.ui@default:default,org.eclipse.papyrus.emf.facet.efacet.ui@default:default,org.eclipse.papyrus.emf.facet.efacet@default:default,org.eclipse.papyrus.emf.facet.efacet@default:default,org.eclipse.papyrus.emf.facet.query.java.core@default:default,org.eclipse.papyrus.emf.facet.query.java.core@default:default,org.eclipse.papyrus.emf.facet.query.java.metamodel@default:default,org.eclipse.papyrus.emf.facet.query.java.metamodel@default:default,org.eclipse.papyrus.emf.facet.query.java.sdk.ui@default:default,org.eclipse.papyrus.emf.facet.query.java.sdk.ui@default:default,org.eclipse.papyrus.emf.facet.query.java@default:default,org.eclipse.papyrus.emf.facet.query.java@default:default,org.eclipse.papyrus.emf.facet.query.ocl.core@default:default,org.eclipse.papyrus.emf.facet.query.ocl.core@default:default,org.eclipse.papyrus.emf.facet.query.ocl.metamodel@default:default,org.eclipse.papyrus.emf.facet.query.ocl.metamodel@default:default,org.eclipse.papyrus.emf.facet.query.ocl.sdk.ui@default:default,org.eclipse.papyrus.emf.facet.query.ocl.sdk.ui@default:default,org.eclipse.papyrus.emf.facet.util.core@default:default,org.eclipse.papyrus.emf.facet.util.core@default:default,org.eclipse.papyrus.emf.facet.util.emf.catalog@default:default,org.eclipse.papyrus.emf.facet.util.emf.catalog@default:default,org.eclipse.papyrus.emf.facet.util.emf.core@default:default,org.eclipse.papyrus.emf.facet.util.emf.core@default:default,org.eclipse.papyrus.emf.facet.util.emf.doc*1.1.0.201505061653@default:default,org.eclipse.papyrus.emf.facet.util.emf.doc*1.1.0.201505201124@default:default,org.eclipse.papyrus.emf.facet.util.emf.ui@default:default,org.eclipse.papyrus.emf.facet.util.emf.ui@default:default,org.eclipse.papyrus.emf.facet.util.jface.ui@default:default,org.eclipse.papyrus.emf.facet.util.jface.ui@default:default,org.eclipse.papyrus.emf.facet.util.pde.core@default:default,org.eclipse.papyrus.emf.facet.util.pde.core@default:default,org.eclipse.papyrus.emf.facet.util.swt@default:default,org.eclipse.papyrus.emf.facet.util.swt@default:default,org.eclipse.papyrus.emf.facet.util.ui@default:default,org.eclipse.papyrus.emf.facet.util.ui@default:default,org.eclipse.papyrus.emf.facet.widgets.celleditors.ecore@default:default,org.eclipse.papyrus.emf.facet.widgets.celleditors.ecore@default:default,org.eclipse.papyrus.emf.facet.widgets.celleditors@default:default,org.eclipse.papyrus.emf.facet.widgets.celleditors@default:default,org.eclipse.papyrus.emf.facet.widgets@default:default,org.eclipse.papyrus.emf.facet.widgets@default:default,org.eclipse.papyrus.extensionpoints.editors@default:default,org.eclipse.papyrus.extensionpoints.editors@default:default,org.eclipse.papyrus.infra.constraints.edit@default:default,org.eclipse.papyrus.infra.constraints.edit@default:default,org.eclipse.papyrus.infra.constraints.editor@default:default,org.eclipse.papyrus.infra.constraints.editor@default:default,org.eclipse.papyrus.infra.constraints@default:default,org.eclipse.papyrus.infra.constraints@default:default,org.eclipse.papyrus.infra.core.log@default:default,org.eclipse.papyrus.infra.core.log@default:default,org.eclipse.papyrus.infra.core.pluginexplorer@default:default,org.eclipse.papyrus.infra.core.pluginexplorer@default:default,org.eclipse.papyrus.infra.core.sasheditor.di@default:default,org.eclipse.papyrus.infra.core.sasheditor.di@default:default,org.eclipse.papyrus.infra.core.sasheditor@default:default,org.eclipse.papyrus.infra.core.sasheditor@default:default,org.eclipse.papyrus.infra.core@default:default,org.eclipse.papyrus.infra.core@default:default,org.eclipse.papyrus.infra.discovery.ui.menu@default:default,org.eclipse.papyrus.infra.discovery.ui.menu@default:default,org.eclipse.papyrus.infra.discovery.ui@default:default,org.eclipse.papyrus.infra.discovery.ui@default:default,org.eclipse.papyrus.infra.discovery@default:default,org.eclipse.papyrus.infra.discovery@default:default,org.eclipse.papyrus.infra.doc@default:default,org.eclipse.papyrus.infra.doc@default:default,org.eclipse.papyrus.infra.elementtypesconfigurations.edit@default:default,org.eclipse.papyrus.infra.elementtypesconfigurations.edit@default:default,org.eclipse.papyrus.infra.elementtypesconfigurations.emf@default:default,org.eclipse.papyrus.infra.elementtypesconfigurations.emf@default:default,org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes@default:default,org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes@default:default,org.eclipse.papyrus.infra.elementtypesconfigurations@default:default,org.eclipse.papyrus.infra.elementtypesconfigurations@default:default,org.eclipse.papyrus.infra.emf.appearance@default:default,org.eclipse.papyrus.infra.emf.appearance@default:default,org.eclipse.papyrus.infra.emf.diagram.common@default:default,org.eclipse.papyrus.infra.emf.diagram.common@default:default,org.eclipse.papyrus.infra.emf.nattable@default:default,org.eclipse.papyrus.infra.emf.nattable@default:default,org.eclipse.papyrus.infra.emf.readonly@default:default,org.eclipse.papyrus.infra.emf.readonly@default:default,org.eclipse.papyrus.infra.emf@default:default,org.eclipse.papyrus.infra.emf@default:default,org.eclipse.papyrus.infra.extendedtypes.edit@default:default,org.eclipse.papyrus.infra.extendedtypes.edit@default:default,org.eclipse.papyrus.infra.extendedtypes.emf@default:default,org.eclipse.papyrus.infra.extendedtypes.emf@default:default,org.eclipse.papyrus.infra.extendedtypes@default:default,org.eclipse.papyrus.infra.extendedtypes@default:default,org.eclipse.papyrus.infra.filters.edit@default:default,org.eclipse.papyrus.infra.filters.edit@default:default,org.eclipse.papyrus.infra.filters@default:default,org.eclipse.papyrus.infra.filters@default:default,org.eclipse.papyrus.infra.gmfdiag.assistant.edit@default:default,org.eclipse.papyrus.infra.gmfdiag.assistant.edit@default:default,org.eclipse.papyrus.infra.gmfdiag.assistant.editor@default:default,org.eclipse.papyrus.infra.gmfdiag.assistant.editor@default:default,org.eclipse.papyrus.infra.gmfdiag.assistant.ui@default:default,org.eclipse.papyrus.infra.gmfdiag.assistant.ui@default:default,org.eclipse.papyrus.infra.gmfdiag.assistant@default:default,org.eclipse.papyrus.infra.gmfdiag.assistant@default:default,org.eclipse.papyrus.infra.gmfdiag.canonical*1.1.0.201505061653@default:default,org.eclipse.papyrus.infra.gmfdiag.canonical*1.1.0.201505201124@default:default,org.eclipse.papyrus.infra.gmfdiag.commands@default:default,org.eclipse.papyrus.infra.gmfdiag.commands@default:default,org.eclipse.papyrus.infra.gmfdiag.common.doc@default:default,org.eclipse.papyrus.infra.gmfdiag.common.doc@default:default,org.eclipse.papyrus.infra.gmfdiag.common@default:default,org.eclipse.papyrus.infra.gmfdiag.common@default:default,org.eclipse.papyrus.infra.gmfdiag.controlmode@default:default,org.eclipse.papyrus.infra.gmfdiag.controlmode@default:default,org.eclipse.papyrus.infra.gmfdiag.css.configuration@default:default,org.eclipse.papyrus.infra.gmfdiag.css.configuration@default:default,org.eclipse.papyrus.infra.gmfdiag.css.doc@default:default,org.eclipse.papyrus.infra.gmfdiag.css.doc@default:default,org.eclipse.papyrus.infra.gmfdiag.css.model@default:default,org.eclipse.papyrus.infra.gmfdiag.css.model@default:default,org.eclipse.papyrus.infra.gmfdiag.css.palette@default:default,org.eclipse.papyrus.infra.gmfdiag.css.palette@default:default,org.eclipse.papyrus.infra.gmfdiag.css.properties@default:default,org.eclipse.papyrus.infra.gmfdiag.css.properties@default:default,org.eclipse.papyrus.infra.gmfdiag.css.theme@default:default,org.eclipse.papyrus.infra.gmfdiag.css.theme@default:default,org.eclipse.papyrus.infra.gmfdiag.css3.xtext*1.1.0.201505061653@default:default,org.eclipse.papyrus.infra.gmfdiag.css3.xtext*1.1.0.201505201124@default:default,org.eclipse.papyrus.infra.gmfdiag.css3.xtext.ui*1.1.0.201505061653@default:default,org.eclipse.papyrus.infra.gmfdiag.css3.xtext.ui*1.1.0.201505201124@default:default,org.eclipse.papyrus.infra.gmfdiag.css@default:default,org.eclipse.papyrus.infra.gmfdiag.css@default:default,org.eclipse.papyrus.infra.gmfdiag.dnd@default:default,org.eclipse.papyrus.infra.gmfdiag.dnd@default:default,org.eclipse.papyrus.infra.gmfdiag.export@default:default,org.eclipse.papyrus.infra.gmfdiag.export@default:default,org.eclipse.papyrus.infra.gmfdiag.gmfmenu.filter@default:default,org.eclipse.papyrus.infra.gmfdiag.gmfmenu.filter@default:default,org.eclipse.papyrus.infra.gmfdiag.hyperlink@default:default,org.eclipse.papyrus.infra.gmfdiag.hyperlink@default:default,org.eclipse.papyrus.infra.gmfdiag.menu@default:default,org.eclipse.papyrus.infra.gmfdiag.menu@default:default,org.eclipse.papyrus.infra.gmfdiag.modelexplorer@default:default,org.eclipse.papyrus.infra.gmfdiag.modelexplorer@default:default,org.eclipse.papyrus.infra.gmfdiag.navigation@default:default,org.eclipse.papyrus.infra.gmfdiag.navigation@default:default,org.eclipse.papyrus.infra.gmfdiag.outline@default:default,org.eclipse.papyrus.infra.gmfdiag.outline@default:default,org.eclipse.papyrus.infra.gmfdiag.preferences@default:default,org.eclipse.papyrus.infra.gmfdiag.preferences@default:default,org.eclipse.papyrus.infra.gmfdiag.properties@default:default,org.eclipse.papyrus.infra.gmfdiag.properties@default:default,org.eclipse.papyrus.infra.gmfdiag.viewersearcher@default:default,org.eclipse.papyrus.infra.gmfdiag.viewersearcher@default:default,org.eclipse.papyrus.infra.gmfdiag.widgets@default:default,org.eclipse.papyrus.infra.gmfdiag.widgets@default:default,org.eclipse.papyrus.infra.hyperlink@default:default,org.eclipse.papyrus.infra.hyperlink@default:default,org.eclipse.papyrus.infra.nattable.common@default:default,org.eclipse.papyrus.infra.nattable.common@default:default,org.eclipse.papyrus.infra.nattable.controlmode@default:default,org.eclipse.papyrus.infra.nattable.controlmode@default:default,org.eclipse.papyrus.infra.nattable.doc@default:default,org.eclipse.papyrus.infra.nattable.doc@default:default,org.eclipse.papyrus.infra.nattable.model.edit@default:default,org.eclipse.papyrus.infra.nattable.model.edit@default:default,org.eclipse.papyrus.infra.nattable.model.editor@default:default,org.eclipse.papyrus.infra.nattable.model.editor@default:default,org.eclipse.papyrus.infra.nattable.model@default:default,org.eclipse.papyrus.infra.nattable.model@default:default,org.eclipse.papyrus.infra.nattable.modelexplorer@default:default,org.eclipse.papyrus.infra.nattable.modelexplorer@default:default,org.eclipse.papyrus.infra.nattable.properties@default:default,org.eclipse.papyrus.infra.nattable.properties@default:default,org.eclipse.papyrus.infra.nattable.views.config@default:default,org.eclipse.papyrus.infra.nattable.views.config@default:default,org.eclipse.papyrus.infra.nattable.views.editor@default:default,org.eclipse.papyrus.infra.nattable.views.editor@default:default,org.eclipse.papyrus.infra.nattable@default:default,org.eclipse.papyrus.infra.nattable@default:default,org.eclipse.papyrus.infra.newchild.doc@default:default,org.eclipse.papyrus.infra.newchild.doc@default:default,org.eclipse.papyrus.infra.newchild.edit@default:default,org.eclipse.papyrus.infra.newchild.edit@default:default,org.eclipse.papyrus.infra.newchild@default:default,org.eclipse.papyrus.infra.newchild@default:default,org.eclipse.papyrus.infra.onefile@default:default,org.eclipse.papyrus.infra.onefile@default:default,org.eclipse.papyrus.infra.psf@default:default,org.eclipse.papyrus.infra.psf@default:default,org.eclipse.papyrus.infra.services.controlmode.doc@default:default,org.eclipse.papyrus.infra.services.controlmode.doc@default:default,org.eclipse.papyrus.infra.services.controlmode.history@default:default,org.eclipse.papyrus.infra.services.controlmode.history@default:default,org.eclipse.papyrus.infra.services.controlmode@default:default,org.eclipse.papyrus.infra.services.controlmode@default:default,org.eclipse.papyrus.infra.services.decoration@default:default,org.eclipse.papyrus.infra.services.decoration@default:default,org.eclipse.papyrus.infra.services.edit@default:default,org.eclipse.papyrus.infra.services.edit@default:default,org.eclipse.papyrus.infra.services.labelprovider@default:default,org.eclipse.papyrus.infra.services.labelprovider@default:default,org.eclipse.papyrus.infra.services.localizer@default:default,org.eclipse.papyrus.infra.services.localizer@default:default,org.eclipse.papyrus.infra.services.markerlistener@default:default,org.eclipse.papyrus.infra.services.markerlistener@default:default,org.eclipse.papyrus.infra.services.navigation@default:default,org.eclipse.papyrus.infra.services.navigation@default:default,org.eclipse.papyrus.infra.services.openelement@default:default,org.eclipse.papyrus.infra.services.openelement@default:default,org.eclipse.papyrus.infra.services.resourceloading.preferences@default:default,org.eclipse.papyrus.infra.services.resourceloading.preferences@default:default,org.eclipse.papyrus.infra.services.resourceloading@default:default,org.eclipse.papyrus.infra.services.resourceloading@default:default,org.eclipse.papyrus.infra.services.semantic@default:default,org.eclipse.papyrus.infra.services.semantic@default:default,org.eclipse.papyrus.infra.services.validation@default:default,org.eclipse.papyrus.infra.services.validation@default:default,org.eclipse.papyrus.infra.services.viewersearch@default:default,org.eclipse.papyrus.infra.services.viewersearch@default:default,org.eclipse.papyrus.infra.services.viewlabelprovider@default:default,org.eclipse.papyrus.infra.services.viewlabelprovider@default:default,org.eclipse.papyrus.infra.sync*1.1.0.201505061653@default:default,org.eclipse.papyrus.infra.sync*1.1.0.201505201124@default:default,org.eclipse.papyrus.infra.tools@default:default,org.eclipse.papyrus.infra.tools@default:default,org.eclipse.papyrus.infra.ui.resources@default:default,org.eclipse.papyrus.infra.ui.resources@default:default,org.eclipse.papyrus.infra.ui@default:default,org.eclipse.papyrus.infra.ui@default:default,org.eclipse.papyrus.infra.viewpoints.configuration.edit@default:default,org.eclipse.papyrus.infra.viewpoints.configuration.edit@default:default,org.eclipse.papyrus.infra.viewpoints.configuration.editor@default:default,org.eclipse.papyrus.infra.viewpoints.configuration.editor@default:default,org.eclipse.papyrus.infra.viewpoints.configuration@default:default,org.eclipse.papyrus.infra.viewpoints.configuration@default:default,org.eclipse.papyrus.infra.viewpoints.doc@default:default,org.eclipse.papyrus.infra.viewpoints.doc@default:default,org.eclipse.papyrus.infra.viewpoints.iso42010.edit@default:default,org.eclipse.papyrus.infra.viewpoints.iso42010.edit@default:default,org.eclipse.papyrus.infra.viewpoints.iso42010@default:default,org.eclipse.papyrus.infra.viewpoints.iso42010@default:default,org.eclipse.papyrus.infra.viewpoints.policy@default:default,org.eclipse.papyrus.infra.viewpoints.policy@default:default,org.eclipse.papyrus.infra.viewpoints.preferences@default:default,org.eclipse.papyrus.infra.viewpoints.preferences@default:default,org.eclipse.papyrus.infra.widgets.toolbox@default:default,org.eclipse.papyrus.infra.widgets.toolbox@default:default,org.eclipse.papyrus.infra.widgets@default:default,org.eclipse.papyrus.infra.widgets@default:default,org.eclipse.papyrus.layers.documentation@default:default,org.eclipse.papyrus.layers.documentation@default:default,org.eclipse.papyrus.moka.doc@default:default,org.eclipse.papyrus.moka.doc@default:default,org.eclipse.papyrus.req.reqif.doc@default:default,org.eclipse.papyrus.req.reqif.doc@default:default,org.eclipse.papyrus.sysml.diagram.blockdefinition@default:default,org.eclipse.papyrus.sysml.diagram.blockdefinition@default:default,org.eclipse.papyrus.sysml.diagram.common@default:default,org.eclipse.papyrus.sysml.diagram.common@default:default,org.eclipse.papyrus.sysml.diagram.css@default:default,org.eclipse.papyrus.sysml.diagram.css@default:default,org.eclipse.papyrus.sysml.diagram.internalblock@default:default,org.eclipse.papyrus.sysml.diagram.internalblock@default:default,org.eclipse.papyrus.sysml.diagram.parametric@default:default,org.eclipse.papyrus.sysml.diagram.parametric@default:default,org.eclipse.papyrus.sysml.diagram.requirement@default:default,org.eclipse.papyrus.sysml.diagram.requirement@default:default,org.eclipse.papyrus.sysml.diagram.ui@default:default,org.eclipse.papyrus.sysml.diagram.ui@default:default,org.eclipse.papyrus.sysml.edit@default:default,org.eclipse.papyrus.sysml.edit@default:default,org.eclipse.papyrus.sysml.modelexplorer@default:default,org.eclipse.papyrus.sysml.modelexplorer@default:default,org.eclipse.papyrus.sysml.nattable.allocation.config@default:default,org.eclipse.papyrus.sysml.nattable.allocation.config@default:default,org.eclipse.papyrus.sysml.nattable.allocation@default:default,org.eclipse.papyrus.sysml.nattable.allocation@default:default,org.eclipse.papyrus.sysml.nattable.menu@default:default,org.eclipse.papyrus.sysml.nattable.menu@default:default,org.eclipse.papyrus.sysml.nattable.requirement.config@default:default,org.eclipse.papyrus.sysml.nattable.requirement.config@default:default,org.eclipse.papyrus.sysml.nattable.requirement@default:default,org.eclipse.papyrus.sysml.nattable.requirement@default:default,org.eclipse.papyrus.sysml.nattable@default:default,org.eclipse.papyrus.sysml.nattable@default:default,org.eclipse.papyrus.sysml.properties@default:default,org.eclipse.papyrus.sysml.properties@default:default,org.eclipse.papyrus.sysml.service.types@default:default,org.eclipse.papyrus.sysml.service.types@default:default,org.eclipse.papyrus.sysml@default:default,org.eclipse.papyrus.sysml@default:default,org.eclipse.papyrus.uml.alf.common.ui@default:default,org.eclipse.papyrus.uml.alf.common.ui@default:default,org.eclipse.papyrus.uml.alf.common@default:default,org.eclipse.papyrus.uml.alf.common@default:default,org.eclipse.papyrus.uml.alf.libraries*1.1.0.201505061653@default:default,org.eclipse.papyrus.uml.alf.libraries*1.1.0.201505201124@default:default,org.eclipse.papyrus.uml.alf.to.fuml*1.1.0.201505061653@default:default,org.eclipse.papyrus.uml.alf.to.fuml*1.1.0.201505201124@default:default,org.eclipse.papyrus.uml.alf.ui@default:default,org.eclipse.papyrus.uml.alf.ui@default:default,org.eclipse.papyrus.uml.alf@default:default,org.eclipse.papyrus.uml.alf@default:default,org.eclipse.papyrus.uml.appearance@default:default,org.eclipse.papyrus.uml.appearance@default:default,org.eclipse.papyrus.uml.commands@default:default,org.eclipse.papyrus.uml.commands@default:default,org.eclipse.papyrus.uml.controlmode.profile@default:default,org.eclipse.papyrus.uml.controlmode.profile@default:default,org.eclipse.papyrus.uml.decoratormodel.controlmode@default:default,org.eclipse.papyrus.uml.decoratormodel.controlmode@default:default,org.eclipse.papyrus.uml.decoratormodel.doc@default:default,org.eclipse.papyrus.uml.decoratormodel.doc@default:default,org.eclipse.papyrus.uml.decoratormodel.properties@default:default,org.eclipse.papyrus.uml.decoratormodel.properties@default:default,org.eclipse.papyrus.uml.decoratormodel.ui@default:default,org.eclipse.papyrus.uml.decoratormodel.ui@default:default,org.eclipse.papyrus.uml.decoratormodel@default:default,org.eclipse.papyrus.uml.decoratormodel@default:default,org.eclipse.papyrus.uml.diagram.activity@default:default,org.eclipse.papyrus.uml.diagram.activity@default:default,org.eclipse.papyrus.uml.diagram.clazz@default:default,org.eclipse.papyrus.uml.diagram.clazz@default:default,org.eclipse.papyrus.uml.diagram.common.doc@default:default,org.eclipse.papyrus.uml.diagram.common.doc@default:default,org.eclipse.papyrus.uml.diagram.common.groups@default:default,org.eclipse.papyrus.uml.diagram.common.groups@default:default,org.eclipse.papyrus.uml.diagram.common.palette.customaction@default:default,org.eclipse.papyrus.uml.diagram.common.palette.customaction@default:default,org.eclipse.papyrus.uml.diagram.common@default:default,org.eclipse.papyrus.uml.diagram.common@default:default,org.eclipse.papyrus.uml.diagram.communication@default:default,org.eclipse.papyrus.uml.diagram.communication@default:default,org.eclipse.papyrus.uml.diagram.component@default:default,org.eclipse.papyrus.uml.diagram.component@default:default,org.eclipse.papyrus.uml.diagram.composite@default:default,org.eclipse.papyrus.uml.diagram.composite@default:default,org.eclipse.papyrus.uml.diagram.css@default:default,org.eclipse.papyrus.uml.diagram.css@default:default,org.eclipse.papyrus.uml.diagram.deployment@default:default,org.eclipse.papyrus.uml.diagram.deployment@default:default,org.eclipse.papyrus.uml.diagram.dnd@default:default,org.eclipse.papyrus.uml.diagram.dnd@default:default,org.eclipse.papyrus.uml.diagram.icons@default:default,org.eclipse.papyrus.uml.diagram.icons@default:default,org.eclipse.papyrus.uml.diagram.interactionoverview@default:default,org.eclipse.papyrus.uml.diagram.interactionoverview@default:default,org.eclipse.papyrus.uml.diagram.menu@default:default,org.eclipse.papyrus.uml.diagram.menu@default:default,org.eclipse.papyrus.uml.diagram.modelexplorer@default:default,org.eclipse.papyrus.uml.diagram.modelexplorer@default:default,org.eclipse.papyrus.uml.diagram.navigation@default:default,org.eclipse.papyrus.uml.diagram.navigation@default:default,org.eclipse.papyrus.uml.diagram.paletteconfiguration.edit@default:default,org.eclipse.papyrus.uml.diagram.paletteconfiguration.edit@default:default,org.eclipse.papyrus.uml.diagram.paletteconfiguration@default:default,org.eclipse.papyrus.uml.diagram.paletteconfiguration@default:default,org.eclipse.papyrus.uml.diagram.profile.doc@default:default,org.eclipse.papyrus.uml.diagram.profile.doc@default:default,org.eclipse.papyrus.uml.diagram.profile@default:default,org.eclipse.papyrus.uml.diagram.profile@default:default,org.eclipse.papyrus.uml.diagram.sequence@default:default,org.eclipse.papyrus.uml.diagram.sequence@default:default,org.eclipse.papyrus.uml.diagram.statemachine@default:default,org.eclipse.papyrus.uml.diagram.statemachine@default:default,org.eclipse.papyrus.uml.diagram.stereotype.edition@default:default,org.eclipse.papyrus.uml.diagram.stereotype.edition@default:default,org.eclipse.papyrus.uml.diagram.symbols.properties@default:default,org.eclipse.papyrus.uml.diagram.symbols.properties@default:default,org.eclipse.papyrus.uml.diagram.symbols@default:default,org.eclipse.papyrus.uml.diagram.symbols@default:default,org.eclipse.papyrus.uml.diagram.timing@default:default,org.eclipse.papyrus.uml.diagram.timing@default:default,org.eclipse.papyrus.uml.diagram.usecase@default:default,org.eclipse.papyrus.uml.diagram.usecase@default:default,org.eclipse.papyrus.uml.diagram.wizards@default:default,org.eclipse.papyrus.uml.diagram.wizards@default:default,org.eclipse.papyrus.uml.doc@default:default,org.eclipse.papyrus.uml.doc@default:default,org.eclipse.papyrus.uml.documentation.profile@default:default,org.eclipse.papyrus.uml.documentation.profile@default:default,org.eclipse.papyrus.uml.extensionpoints@default:default,org.eclipse.papyrus.uml.extensionpoints@default:default,org.eclipse.papyrus.uml.filters.edit@default:default,org.eclipse.papyrus.uml.filters.edit@default:default,org.eclipse.papyrus.uml.filters@default:default,org.eclipse.papyrus.uml.filters@default:default,org.eclipse.papyrus.uml.icons@default:default,org.eclipse.papyrus.uml.icons@default:default,org.eclipse.papyrus.uml.import@default:default,org.eclipse.papyrus.uml.import@default:default,org.eclipse.papyrus.uml.modelexplorer.widgets@default:default,org.eclipse.papyrus.uml.modelexplorer.widgets@default:default,org.eclipse.papyrus.uml.modelexplorer@default:default,org.eclipse.papyrus.uml.modelexplorer@default:default,org.eclipse.papyrus.uml.modelrepair.doc@default:default,org.eclipse.papyrus.uml.modelrepair.doc@default:default,org.eclipse.papyrus.uml.modelrepair@default:default,org.eclipse.papyrus.uml.modelrepair@default:default,org.eclipse.papyrus.uml.nattable.clazz.config@default:default,org.eclipse.papyrus.uml.nattable.clazz.config@default:default,org.eclipse.papyrus.uml.nattable.generic.config@default:default,org.eclipse.papyrus.uml.nattable.generic.config@default:default,org.eclipse.papyrus.uml.nattable.generic@default:default,org.eclipse.papyrus.uml.nattable.generic@default:default,org.eclipse.papyrus.uml.nattable.menu@default:default,org.eclipse.papyrus.uml.nattable.menu@default:default,org.eclipse.papyrus.uml.nattable.xtext.integration@default:default,org.eclipse.papyrus.uml.nattable.xtext.integration@default:default,org.eclipse.papyrus.uml.nattable.xtext.valuespecification@default:default,org.eclipse.papyrus.uml.nattable.xtext.valuespecification@default:default,org.eclipse.papyrus.uml.nattable@default:default,org.eclipse.papyrus.uml.nattable@default:default,org.eclipse.papyrus.uml.navigation@default:default,org.eclipse.papyrus.uml.navigation@default:default,org.eclipse.papyrus.uml.oclconstraintevaluation@default:default,org.eclipse.papyrus.uml.oclconstraintevaluation@default:default,org.eclipse.papyrus.uml.perspective@default:default,org.eclipse.papyrus.uml.perspective@default:default,org.eclipse.papyrus.uml.profile.assistants.doc@default:default,org.eclipse.papyrus.uml.profile.assistants.doc@default:default,org.eclipse.papyrus.uml.profile.assistants.generator.ui@default:default,org.eclipse.papyrus.uml.profile.assistants.generator.ui@default:default,org.eclipse.papyrus.uml.profile.assistants.generator@default:default,org.eclipse.papyrus.uml.profile.assistants.generator@default:default,org.eclipse.papyrus.uml.profile.drafter@default:default,org.eclipse.papyrus.uml.profile.drafter@default:default,org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui@default:default,org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui@default:default,org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator@default:default,org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator@default:default,org.eclipse.papyrus.uml.profile@default:default,org.eclipse.papyrus.uml.profile@default:default,org.eclipse.papyrus.uml.properties.xtext@default:default,org.eclipse.papyrus.uml.properties.xtext@default:default,org.eclipse.papyrus.uml.properties@default:default,org.eclipse.papyrus.uml.properties@default:default,org.eclipse.papyrus.uml.resourceloading.profile@default:default,org.eclipse.papyrus.uml.resourceloading.profile@default:default,org.eclipse.papyrus.uml.search.ui.doc@default:default,org.eclipse.papyrus.uml.search.ui.doc@default:default,org.eclipse.papyrus.uml.search.ui@default:default,org.eclipse.papyrus.uml.search.ui@default:default,org.eclipse.papyrus.uml.service.types@default:default,org.eclipse.papyrus.uml.service.types@default:default,org.eclipse.papyrus.uml.service.validation@default:default,org.eclipse.papyrus.uml.service.validation@default:default,org.eclipse.papyrus.uml.services.decoration@default:default,org.eclipse.papyrus.uml.services.decoration@default:default,org.eclipse.papyrus.uml.templaterepository@default:default,org.eclipse.papyrus.uml.templaterepository@default:default,org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.collaborationuse.xtext@default:default,org.eclipse.papyrus.uml.textedit.collaborationuse.xtext@default:default,org.eclipse.papyrus.uml.textedit.common.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.common.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.common.xtext@default:default,org.eclipse.papyrus.uml.textedit.common.xtext@default:default,org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext@default:default,org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext@default:default,org.eclipse.papyrus.uml.textedit.constraintwithessentialocl.xtext@default:default,org.eclipse.papyrus.uml.textedit.constraintwithessentialocl.xtext@default:default,org.eclipse.papyrus.uml.textedit.javaconstraint@default:default,org.eclipse.papyrus.uml.textedit.javaconstraint@default:default,org.eclipse.papyrus.uml.textedit.message.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.message.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.message.xtext@default:default,org.eclipse.papyrus.uml.textedit.message.xtext@default:default,org.eclipse.papyrus.uml.textedit.parameter.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.parameter.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.parameter.xtext@default:default,org.eclipse.papyrus.uml.textedit.parameter.xtext@default:default,org.eclipse.papyrus.uml.textedit.port.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.port.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.port.xtext@default:default,org.eclipse.papyrus.uml.textedit.port.xtext@default:default,org.eclipse.papyrus.uml.textedit.property.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.property.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.property.xtext@default:default,org.eclipse.papyrus.uml.textedit.property.xtext@default:default,org.eclipse.papyrus.uml.textedit.state.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.state.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.state.xtext@default:default,org.eclipse.papyrus.uml.textedit.state.xtext@default:default,org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext@default:default,org.eclipse.papyrus.uml.textedit.transition.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.transition.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.transition.xtext@default:default,org.eclipse.papyrus.uml.textedit.transition.xtext@default:default,org.eclipse.papyrus.uml.textedit.valuespecification.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.valuespecification.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.valuespecification.xtext.utils@default:default,org.eclipse.papyrus.uml.textedit.valuespecification.xtext.utils@default:default,org.eclipse.papyrus.uml.textedit.valuespecification.xtext@default:default,org.eclipse.papyrus.uml.textedit.valuespecification.xtext@default:default,org.eclipse.papyrus.uml.tools.elementtypesconfigurations@default:default,org.eclipse.papyrus.uml.tools.elementtypesconfigurations@default:default,org.eclipse.papyrus.uml.tools.extendedtypes@default:default,org.eclipse.papyrus.uml.tools.extendedtypes@default:default,org.eclipse.papyrus.uml.tools.utils@default:default,org.eclipse.papyrus.uml.tools.utils@default:default,org.eclipse.papyrus.uml.tools@default:default,org.eclipse.papyrus.uml.tools@default:default,org.eclipse.papyrus.uml.xtext.integration.core@default:default,org.eclipse.papyrus.uml.xtext.integration.core@default:default,org.eclipse.papyrus.uml.xtext.integration.ui@default:default,org.eclipse.papyrus.uml.xtext.integration.ui@default:default,org.eclipse.papyrus.uml.xtext.integration.validation@default:default,org.eclipse.papyrus.uml.xtext.integration.validation@default:default,org.eclipse.papyrus.views.modelexplorer.newchild@default:default,org.eclipse.papyrus.views.modelexplorer.newchild@default:default,org.eclipse.papyrus.views.modelexplorer.resourceloading@default:default,org.eclipse.papyrus.views.modelexplorer.resourceloading@default:default,org.eclipse.papyrus.views.modelexplorer.widgets@default:default,org.eclipse.papyrus.views.modelexplorer.widgets@default:default,org.eclipse.papyrus.views.modelexplorer@default:default,org.eclipse.papyrus.views.modelexplorer@default:default,org.eclipse.papyrus.views.properties.doc@default:default,org.eclipse.papyrus.views.properties.doc@default:default,org.eclipse.papyrus.views.properties.model.edit@default:default,org.eclipse.papyrus.views.properties.model.edit@default:default,org.eclipse.papyrus.views.properties.model.editor@default:default,org.eclipse.papyrus.views.properties.model.editor@default:default,org.eclipse.papyrus.views.properties.model@default:default,org.eclipse.papyrus.views.properties.model@default:default,org.eclipse.papyrus.views.properties@default:default,org.eclipse.papyrus.views.properties@default:default,org.eclipse.papyrus.views.search@default:default,org.eclipse.papyrus.views.search@default:default,org.eclipse.papyrus.views.validation@default:default,org.eclipse.papyrus.views.validation@default:default,org.eclipse.pde*3.11.0.v20150430-1445@default:default,org.eclipse.pde*3.11.0.v20150514-1000@default:default,org.eclipse.pde.api.tools*1.0.700.v20150424-1421@default:default,org.eclipse.pde.api.tools*1.0.700.v20150513-0819@default:default,org.eclipse.pde.api.tools.annotations@default:default,org.eclipse.pde.api.tools.ee.cdcfoundation10@default:false,org.eclipse.pde.api.tools.ee.cdcfoundation11@default:false,org.eclipse.pde.api.tools.ee.j2se12@default:false,org.eclipse.pde.api.tools.ee.j2se13@default:false,org.eclipse.pde.api.tools.ee.j2se14@default:false,org.eclipse.pde.api.tools.ee.j2se15@default:false,org.eclipse.pde.api.tools.ee.javase16@default:false,org.eclipse.pde.api.tools.ee.javase17@default:false,org.eclipse.pde.api.tools.ee.javase18@default:false,org.eclipse.pde.api.tools.ee.jre11@default:false,org.eclipse.pde.api.tools.ee.osgiminimum10@default:false,org.eclipse.pde.api.tools.ee.osgiminimum11@default:false,org.eclipse.pde.api.tools.ee.osgiminimum12@default:false,org.eclipse.pde.api.tools.ui*1.0.600.v20150428-1008@default:default,org.eclipse.pde.api.tools.ui*1.0.600.v20150513-0819@default:default,org.eclipse.pde.build@default:default,org.eclipse.pde.core@default:default,org.eclipse.pde.doc.user*3.11.0.v20150401-1527@default:default,org.eclipse.pde.doc.user*3.11.0.v20150513-1616@default:default,org.eclipse.pde.ds.core@default:default,org.eclipse.pde.ds.ui*1.0.400.v20150428-1008@default:default,org.eclipse.pde.ds.ui*1.0.400.v20150506-1709@default:default,org.eclipse.pde.junit.runtime@default:default,org.eclipse.pde.launching@default:default,org.eclipse.pde.runtime@default:default,org.eclipse.pde.ua.core@default:default,org.eclipse.pde.ua.ui*1.0.400.v20150427-1238@default:default,org.eclipse.pde.ua.ui*1.0.400.v20150513-1136@default:default,org.eclipse.pde.ui*3.8.200.v20150428-1042@default:default,org.eclipse.pde.ui*3.8.200.v20150513-0844@default:default,org.eclipse.pde.ui.templates*3.5.0.v20150421-1428@default:default,org.eclipse.pde.ui.templates*3.5.0.v20150506-2103@default:default,org.eclipse.platform*4.5.0.v20150320-0800@default:default,org.eclipse.platform*4.5.0.v20150514-1000@default:default,org.eclipse.platform.doc.isv*4.5.0.v20150318-1609@default:default,org.eclipse.platform.doc.isv*4.5.0.v20150513-1616@default:default,org.eclipse.platform.doc.user*4.5.0.v20150213-0817@default:default,org.eclipse.platform.doc.user*4.5.0.v20150324-0903@default:default,org.eclipse.rcp*4.5.0.v20150320-0800@default:default,org.eclipse.rcp*4.5.0.v20150514-1000@default:default,org.eclipse.recommenders.apidocs.rcp@default:default,org.eclipse.recommenders.apidocs@default:default,org.eclipse.recommenders.calls.rcp@default:default,org.eclipse.recommenders.calls@default:default,org.eclipse.recommenders.chain.rcp@default:default,org.eclipse.recommenders.completion.rcp@default:default,org.eclipse.recommenders.coordinates.rcp@default:default,org.eclipse.recommenders.coordinates@default:default,org.eclipse.recommenders.injection@default:default,org.eclipse.recommenders.jayes.io@default:default,org.eclipse.recommenders.jayes@default:default,org.eclipse.recommenders.jdt@default:default,org.eclipse.recommenders.models.rcp@default:default,org.eclipse.recommenders.models@default:default,org.eclipse.recommenders.mylyn.rcp@default:default,org.eclipse.recommenders.net@default:default,org.eclipse.recommenders.overrides.rcp@default:default,org.eclipse.recommenders.overrides@default:default,org.eclipse.recommenders.rcp@default:default,org.eclipse.recommenders.snipmatch.rcp@default:default,org.eclipse.recommenders.snipmatch@default:default,org.eclipse.recommenders.subwords.rcp@default:default,org.eclipse.recommenders.types.rcp@default:default,org.eclipse.recommenders.utils@default:default,org.eclipse.sdk@default:default,org.eclipse.search@default:default,org.eclipse.swt*3.104.0.v20150319-1901@default:default,org.eclipse.swt*3.104.0.v20150513-1901@default:default,org.eclipse.swt.tools@default:default,org.eclipse.swt.win32.win32.x86_64*3.104.0.v20150319-1901@default:false,org.eclipse.swt.win32.win32.x86_64*3.104.0.v20150513-1901@default:false,org.eclipse.swtbot.e4.finder@default:default,org.eclipse.swtbot.eclipse.core@default:default,org.eclipse.swtbot.eclipse.finder@default:default,org.eclipse.swtbot.eclipse.gef.finder@default:default,org.eclipse.swtbot.eclipse.spy@default:default,org.eclipse.swtbot.eclipse.ui@default:default,org.eclipse.swtbot.forms.finder@default:default,org.eclipse.swtbot.generator.jdt@default:default,org.eclipse.swtbot.generator.rules.workbench@default:default,org.eclipse.swtbot.generator.ui@default:default,org.eclipse.swtbot.generator@default:default,org.eclipse.swtbot.go@default:default,org.eclipse.swtbot.junit4_x@default:default,org.eclipse.swtbot.swt.finder@default:default,org.eclipse.team.core@default:default,org.eclipse.team.cvs.core@default:default,org.eclipse.team.cvs.ssh2@default:default,org.eclipse.team.cvs.ui@default:default,org.eclipse.team.ui@default:default,org.eclipse.text*3.5.400.v20140915-2351@default:default,org.eclipse.text*3.5.400.v20150505-1044@default:default,org.eclipse.ui*3.107.0.v20150315-0703@default:default,org.eclipse.ui*3.107.0.v20150507-1945@default:default,org.eclipse.ui.browser*3.4.300.v20150315-1252@default:default,org.eclipse.ui.browser*3.4.300.v20150429-0602@default:default,org.eclipse.ui.cheatsheets@default:default,org.eclipse.ui.console*3.6.0.v20150310-1028@default:default,org.eclipse.ui.console*3.6.0.v20150512-1341@default:default,org.eclipse.ui.editors@default:default,org.eclipse.ui.externaltools@default:default,org.eclipse.ui.forms*3.6.200.v20150315-1254@default:default,org.eclipse.ui.forms*3.6.200.v20150506-2029@default:default,org.eclipse.ui.ide*3.11.0.v20150309-2044@default:default,org.eclipse.ui.ide*3.11.0.v20150510-1749@default:default,org.eclipse.ui.ide.application*1.0.600.v20150315-1254@default:default,org.eclipse.ui.ide.application*1.1.0.v20150422-0725@default:default,org.eclipse.ui.intro.universal*3.2.800.v20150317-1532@default:default,org.eclipse.ui.intro.universal*3.2.800.v20150325-0952@default:default,org.eclipse.ui.intro@default:default,org.eclipse.ui.monitoring*1.0.0.v20150228-1728@default:default,org.eclipse.ui.monitoring*1.0.0.v20150512-1436@default:default,org.eclipse.ui.navigator*3.5.500.v20150315-1254@default:default,org.eclipse.ui.navigator*3.6.0.v20150422-0725@default:default,org.eclipse.ui.navigator.resources*3.4.800.v20150315-1254@default:default,org.eclipse.ui.navigator.resources*3.5.0.v20150422-0725@default:default,org.eclipse.ui.net@default:default,org.eclipse.ui.themes*1.1.0.v20150313-1033@default:default,org.eclipse.ui.themes*1.1.0.v20150511-0913@default:default,org.eclipse.ui.trace@default:default,org.eclipse.ui.views*3.7.100.v20150316-1432@default:default,org.eclipse.ui.views*3.8.0.v20150422-0725@default:default,org.eclipse.ui.views.log*1.0.600.v20141222-0829@default:default,org.eclipse.ui.views.log*1.0.600.v20150513-1840@default:default,org.eclipse.ui.views.properties.tabbed*3.6.0.v20150315-1254@default:default,org.eclipse.ui.views.properties.tabbed*3.6.100.v20150423-0822@default:default,org.eclipse.ui.win32*3.2.400.v20150315-1253@default:false,org.eclipse.ui.win32*3.2.500.v20150423-0822@default:false,org.eclipse.ui.workbench*3.107.0.v20150318-2200@default:default,org.eclipse.ui.workbench*3.107.0.v20150510-1732@default:default,org.eclipse.ui.workbench.texteditor@default:default,org.eclipse.uml2*5.0.0.v20150504-0916@default:default,org.eclipse.uml2*5.0.0.v20150518-2047@default:default,org.eclipse.uml2.ant*1.0.0.v20150504-0916@default:default,org.eclipse.uml2.ant*1.0.0.v20150518-2047@default:default,org.eclipse.uml2.codegen.ecore*2.1.0.v20150504-0916@default:default,org.eclipse.uml2.codegen.ecore*2.1.0.v20150518-2047@default:default,org.eclipse.uml2.codegen.ecore.ui*2.1.0.v20150504-0916@default:default,org.eclipse.uml2.codegen.ecore.ui*2.1.0.v20150518-2047@default:default,org.eclipse.uml2.common*2.1.0.v20150504-0916@default:default,org.eclipse.uml2.common*2.1.0.v20150518-2047@default:default,org.eclipse.uml2.common.edit*2.1.0.v20150504-0916@default:default,org.eclipse.uml2.common.edit*2.1.0.v20150518-2047@default:default,org.eclipse.uml2.doc*5.0.0.v20150504-0916@default:default,org.eclipse.uml2.doc*5.0.0.v20150518-2047@default:default,org.eclipse.uml2.examples*5.0.0.v20150504-0916@default:default,org.eclipse.uml2.examples*5.0.0.v20150518-2047@default:default,org.eclipse.uml2.examples.uml.ui*5.0.0.v20150504-0916@default:default,org.eclipse.uml2.examples.uml.ui*5.0.0.v20150518-2047@default:default,org.eclipse.uml2.types*2.0.0.v20150504-0916@default:default,org.eclipse.uml2.types*2.0.0.v20150518-2047@default:default,org.eclipse.uml2.uml*5.1.0.v20150504-0916@default:default,org.eclipse.uml2.uml*5.1.0.v20150518-2047@default:default,org.eclipse.uml2.uml.ecore.exporter*3.0.0.v20150504-0916@default:default,org.eclipse.uml2.uml.ecore.exporter*3.0.0.v20150518-2047@default:default,org.eclipse.uml2.uml.ecore.importer*3.0.0.v20150504-0916@default:default,org.eclipse.uml2.uml.ecore.importer*3.0.0.v20150518-2047@default:default,org.eclipse.uml2.uml.edit*5.1.0.v20150504-0916@default:default,org.eclipse.uml2.uml.edit*5.1.0.v20150518-2047@default:default,org.eclipse.uml2.uml.editor*5.1.0.v20150504-0916@default:default,org.eclipse.uml2.uml.editor*5.1.0.v20150518-2047@default:default,org.eclipse.uml2.uml.profile.standard*1.0.100.v20150504-0916@default:default,org.eclipse.uml2.uml.profile.standard*1.0.100.v20150518-2047@default:default,org.eclipse.uml2.uml.resources*5.1.0.v20150504-0916@default:default,org.eclipse.uml2.uml.resources*5.1.0.v20150518-2047@default:default,org.eclipse.uml2.uml.validation*5.0.0.v20150504-0916@default:default,org.eclipse.uml2.uml.validation*5.0.0.v20150518-2047@default:default,org.eclipse.update.configurator@3:true,org.eclipse.wst.common.core@default:default,org.eclipse.wst.common.emf@default:default,org.eclipse.wst.common.environment@default:default,org.eclipse.wst.common.frameworks.ui@default:default,org.eclipse.wst.common.frameworks@default:default,org.eclipse.wst.common.project.facet.core@default:default,org.eclipse.wst.common.ui@default:default,org.eclipse.wst.common.uriresolver*1.2.100.v201305141634@default:default,org.eclipse.wst.common.uriresolver*1.2.100.v201504151458@default:default,org.eclipse.wst.sse.core@default:default,org.eclipse.wst.sse.ui@default:default,org.eclipse.wst.validation.ui@default:default,org.eclipse.wst.validation@default:default,org.eclipse.wst.xml.core@default:default,org.eclipse.wst.xml.ui@default:default,org.eclipse.wst.xsd.core@default:default,org.eclipse.xpand*2.1.0.v201503240650@default:default,org.eclipse.xpand*2.1.0.v201505051058@default:default,org.eclipse.xsd@default:default,org.eclipse.xtend*2.1.0.v201503240650@default:default,org.eclipse.xtend*2.1.0.v201505051058@default:default,org.eclipse.xtend.core@default:default,org.eclipse.xtend.doc@default:default,org.eclipse.xtend.examples@default:default,org.eclipse.xtend.ide.common@default:default,org.eclipse.xtend.ide@default:default,org.eclipse.xtend.lib.macro@default:default,org.eclipse.xtend.lib@default:default,org.eclipse.xtend.m2e@default:default,org.eclipse.xtend.standalone@default:default,org.eclipse.xtend.typesystem.emf*2.1.0.v201503240650@default:default,org.eclipse.xtend.typesystem.emf*2.1.0.v201505051058@default:default,org.eclipse.xtend2.lib@default:default,org.eclipse.xtext.activities@default:default,org.eclipse.xtext.builder.standalone@default:default,org.eclipse.xtext.builder@default:default,org.eclipse.xtext.common.types.edit@default:default,org.eclipse.xtext.common.types.shared.jdt38@default:false,org.eclipse.xtext.common.types.shared@default:default,org.eclipse.xtext.common.types.ui@default:default,org.eclipse.xtext.common.types@default:default,org.eclipse.xtext.doc@default:default,org.eclipse.xtext.ecore@default:default,org.eclipse.xtext.generator@default:default,org.eclipse.xtext.ide@default:default,org.eclipse.xtext.idea.generator@default:default,org.eclipse.xtext.junit4@default:default,org.eclipse.xtext.junit@default:default,org.eclipse.xtext.logging@default:false,org.eclipse.xtext.m2e@default:default,org.eclipse.xtext.purexbase.ui@default:default,org.eclipse.xtext.purexbase@default:default,org.eclipse.xtext.smap@default:default,org.eclipse.xtext.ui.codetemplates.ui@default:default,org.eclipse.xtext.ui.codetemplates@default:default,org.eclipse.xtext.ui.ecore@default:default,org.eclipse.xtext.ui.junit@default:default,org.eclipse.xtext.ui.shared@default:default,org.eclipse.xtext.ui@default:default,org.eclipse.xtext.util@default:default,org.eclipse.xtext.xbase.junit@default:default,org.eclipse.xtext.xbase.lib@default:default,org.eclipse.xtext.xbase.ui@default:default,org.eclipse.xtext.xbase@default:default,org.eclipse.xtext.xtext.ui.examples@default:default,org.eclipse.xtext.xtext.ui.graph@default:default,org.eclipse.xtext.xtext.ui@default:default,org.eclipse.xtext@default:default,org.eclipse.xwt@default:default,org.eclipse.zest.core@default:default,org.eclipse.zest.layouts@default:default,org.hamcrest.core@default:default,org.hamcrest.library@default:default,org.jacoco.agent@default:default,org.jacoco.core@default:default,org.jacoco.report@default:default,org.jsoup@default:default,org.junit@default:default,org.objectweb.asm.tree@default:default,org.objectweb.asm@default:default,org.sat4j.core@default:default,org.sat4j.pb@default:default,org.slf4j.api@default:default,org.slf4j.impl.log4j12@default:false,org.sonatype.tycho.m2e@default:default,org.tukaani.xz@default:default,org.w3c.css.sac@default:default,org.w3c.dom.events@default:default,org.w3c.dom.smil@default:default,org.w3c.dom.svg@default:default"/>
+<stringAttribute key="selected_workspace_plugins" value="org.eclipse.papyrus.bundles.tests@default:default,org.eclipse.papyrus.cdo.ui.doc@default:default,org.eclipse.papyrus.codegen@default:default,org.eclipse.papyrus.copypaste.ui.doc@default:default,org.eclipse.papyrus.customization.extendedtypes.emf@default:default,org.eclipse.papyrus.customization.extendedtypes.uml@default:default,org.eclipse.papyrus.customization.extendedtypes@default:default,org.eclipse.papyrus.customization.palette@default:default,org.eclipse.papyrus.customization.paletteconfiguration@default:default,org.eclipse.papyrus.customization.properties.generation@default:default,org.eclipse.papyrus.customization.properties.model.xwt@default:default,org.eclipse.papyrus.customization.properties.tests@default:default,org.eclipse.papyrus.customization.properties@default:default,org.eclipse.papyrus.customization@default:default,org.eclipse.papyrus.def@default:default,org.eclipse.papyrus.dev.assistants.codegen@default:default,org.eclipse.papyrus.dev.java.utils@default:default,org.eclipse.papyrus.dev.project.management@default:default,org.eclipse.papyrus.dev.view.services.edit.request@default:default,org.eclipse.papyrus.developer.profile@default:default,org.eclipse.papyrus.doc@default:default,org.eclipse.papyrus.domaincodegen.ui@default:default,org.eclipse.papyrus.domaincontextcodegen.edit@default:default,org.eclipse.papyrus.domaincontextcodegen.editor@default:default,org.eclipse.papyrus.domaincontextcodegen@default:default,org.eclipse.papyrus.dsml.validation.doc@default:default,org.eclipse.papyrus.eclipse.project.editors@default:default,org.eclipse.papyrus.editor.integration.tests@default:default,org.eclipse.papyrus.editor.perspectiveconfiguration@default:default,org.eclipse.papyrus.editor@default:default,org.eclipse.papyrus.elementtypesconfigurations.developer@default:default,org.eclipse.papyrus.emf.facet.common.core@default:default,org.eclipse.papyrus.emf.facet.common.sdk.core@default:default,org.eclipse.papyrus.emf.facet.common.ui@default:default,org.eclipse.papyrus.emf.facet.custom.core@default:default,org.eclipse.papyrus.emf.facet.custom.doc@default:default,org.eclipse.papyrus.emf.facet.custom.metamodel.edit@default:default,org.eclipse.papyrus.emf.facet.custom.metamodel.editor.doc@default:default,org.eclipse.papyrus.emf.facet.custom.metamodel.editor@default:default,org.eclipse.papyrus.emf.facet.custom.metamodel@default:default,org.eclipse.papyrus.emf.facet.custom.sdk.core@default:default,org.eclipse.papyrus.emf.facet.custom.sdk.ui@default:default,org.eclipse.papyrus.emf.facet.custom.ui@default:default,org.eclipse.papyrus.emf.facet.doc@default:default,org.eclipse.papyrus.emf.facet.efacet.catalog@default:default,org.eclipse.papyrus.emf.facet.efacet.core@default:default,org.eclipse.papyrus.emf.facet.efacet.edit@default:default,org.eclipse.papyrus.emf.facet.efacet.editor@default:default,org.eclipse.papyrus.emf.facet.efacet.metamodel.edit@default:default,org.eclipse.papyrus.emf.facet.efacet.metamodel@default:default,org.eclipse.papyrus.emf.facet.efacet.sdk.ui@default:default,org.eclipse.papyrus.emf.facet.efacet.ui@default:default,org.eclipse.papyrus.emf.facet.efacet@default:default,org.eclipse.papyrus.emf.facet.query.java.core@default:default,org.eclipse.papyrus.emf.facet.query.java.metamodel@default:default,org.eclipse.papyrus.emf.facet.query.java.sdk.ui@default:default,org.eclipse.papyrus.emf.facet.query.java@default:default,org.eclipse.papyrus.emf.facet.query.ocl.core@default:default,org.eclipse.papyrus.emf.facet.query.ocl.metamodel@default:default,org.eclipse.papyrus.emf.facet.query.ocl.sdk.ui@default:default,org.eclipse.papyrus.emf.facet.util.core@default:default,org.eclipse.papyrus.emf.facet.util.emf.catalog@default:default,org.eclipse.papyrus.emf.facet.util.emf.core@default:default,org.eclipse.papyrus.emf.facet.util.emf.ui@default:default,org.eclipse.papyrus.emf.facet.util.jface.ui@default:default,org.eclipse.papyrus.emf.facet.util.pde.core@default:default,org.eclipse.papyrus.emf.facet.util.swt@default:default,org.eclipse.papyrus.emf.facet.util.ui@default:default,org.eclipse.papyrus.emf.facet.widgets.celleditors.ecore@default:default,org.eclipse.papyrus.emf.facet.widgets.celleditors@default:default,org.eclipse.papyrus.emf.facet.widgets@default:default,org.eclipse.papyrus.extensionpoints.editors@default:default,org.eclipse.papyrus.gmf.editpartview@default:default,org.eclipse.papyrus.gmf.editpoliciesstates@default:default,org.eclipse.papyrus.gmf.figureview@default:default,org.eclipse.papyrus.gmfgenextension@default:default,org.eclipse.papyrus.infra.constraints.edit@default:default,org.eclipse.papyrus.infra.constraints.editor@default:default,org.eclipse.papyrus.infra.constraints@default:default,org.eclipse.papyrus.infra.core.log@default:default,org.eclipse.papyrus.infra.core.pluginexplorer@default:default,org.eclipse.papyrus.infra.core.sasheditor.di.tests@default:false,org.eclipse.papyrus.infra.core.sasheditor.di@default:default,org.eclipse.papyrus.infra.core.sasheditor.tests@default:false,org.eclipse.papyrus.infra.core.sasheditor@default:default,org.eclipse.papyrus.infra.core.serviceregistry.edit@default:default,org.eclipse.papyrus.infra.core.serviceregistry.editor@default:default,org.eclipse.papyrus.infra.core.serviceregistry.tests@default:false,org.eclipse.papyrus.infra.core.serviceregistry@default:default,org.eclipse.papyrus.infra.core.tests@default:false,org.eclipse.papyrus.infra.core@default:default,org.eclipse.papyrus.infra.discovery.ui.menu@default:default,org.eclipse.papyrus.infra.discovery.ui@default:default,org.eclipse.papyrus.infra.discovery@default:default,org.eclipse.papyrus.infra.doc@default:default,org.eclipse.papyrus.infra.elementtypesconfigurations.edit@default:default,org.eclipse.papyrus.infra.elementtypesconfigurations.editor@default:default,org.eclipse.papyrus.infra.elementtypesconfigurations.emf@default:default,org.eclipse.papyrus.infra.elementtypesconfigurations.invarianttypes@default:default,org.eclipse.papyrus.infra.elementtypesconfigurations.tests@default:default,org.eclipse.papyrus.infra.elementtypesconfigurations@default:default,org.eclipse.papyrus.infra.emf.appearance@default:default,org.eclipse.papyrus.infra.emf.commandstack@default:default,org.eclipse.papyrus.infra.emf.diagram.common@default:default,org.eclipse.papyrus.infra.emf.editor@default:default,org.eclipse.papyrus.infra.emf.embeddededitor@default:default,org.eclipse.papyrus.infra.emf.facet.queries@default:default,org.eclipse.papyrus.infra.emf.nattable@default:default,org.eclipse.papyrus.infra.emf.newchild@default:default,org.eclipse.papyrus.infra.emf.readonly.tests@default:false,org.eclipse.papyrus.infra.emf.readonly@default:default,org.eclipse.papyrus.infra.emf.tests@default:false,org.eclipse.papyrus.infra.emf@default:default,org.eclipse.papyrus.infra.extendedtypes.edit@default:default,org.eclipse.papyrus.infra.extendedtypes.editor@default:default,org.eclipse.papyrus.infra.extendedtypes.elementtypeview@default:default,org.eclipse.papyrus.infra.extendedtypes.emf@default:default,org.eclipse.papyrus.infra.extendedtypes.tests@default:default,org.eclipse.papyrus.infra.extendedtypes@default:default,org.eclipse.papyrus.infra.filters.edit@default:default,org.eclipse.papyrus.infra.filters.tests@default:default,org.eclipse.papyrus.infra.filters@default:default,org.eclipse.papyrus.infra.gmfdiag.assistant.edit@default:default,org.eclipse.papyrus.infra.gmfdiag.assistant.editor@default:default,org.eclipse.papyrus.infra.gmfdiag.assistant.tests@default:default,org.eclipse.papyrus.infra.gmfdiag.assistant.ui@default:default,org.eclipse.papyrus.infra.gmfdiag.assistant@default:default,org.eclipse.papyrus.infra.gmfdiag.canonical.tests@default:default,org.eclipse.papyrus.infra.gmfdiag.commands.tests@default:false,org.eclipse.papyrus.infra.gmfdiag.commands@default:default,org.eclipse.papyrus.infra.gmfdiag.common.doc@default:default,org.eclipse.papyrus.infra.gmfdiag.common.tests@default:false,org.eclipse.papyrus.infra.gmfdiag.common@default:default,org.eclipse.papyrus.infra.gmfdiag.controlmode@default:default,org.eclipse.papyrus.infra.gmfdiag.css.configuration@default:default,org.eclipse.papyrus.infra.gmfdiag.css.debug@default:default,org.eclipse.papyrus.infra.gmfdiag.css.doc@default:default,org.eclipse.papyrus.infra.gmfdiag.css.model@default:default,org.eclipse.papyrus.infra.gmfdiag.css.palette@default:default,org.eclipse.papyrus.infra.gmfdiag.css.properties@default:default,org.eclipse.papyrus.infra.gmfdiag.css.tests@default:default,org.eclipse.papyrus.infra.gmfdiag.css.theme@default:default,org.eclipse.papyrus.infra.gmfdiag.css@default:default,org.eclipse.papyrus.infra.gmfdiag.dnd@default:default,org.eclipse.papyrus.infra.gmfdiag.export@default:default,org.eclipse.papyrus.infra.gmfdiag.gmfmenu.filter@default:default,org.eclipse.papyrus.infra.gmfdiag.hyperlink@default:default,org.eclipse.papyrus.infra.gmfdiag.menu.tests@default:default,org.eclipse.papyrus.infra.gmfdiag.menu@default:default,org.eclipse.papyrus.infra.gmfdiag.modelexplorer@default:default,org.eclipse.papyrus.infra.gmfdiag.navigation@default:default,org.eclipse.papyrus.infra.gmfdiag.outline@default:default,org.eclipse.papyrus.infra.gmfdiag.preferences@default:default,org.eclipse.papyrus.infra.gmfdiag.properties@default:default,org.eclipse.papyrus.infra.gmfdiag.viewersearcher@default:default,org.eclipse.papyrus.infra.gmfdiag.widgets@default:default,org.eclipse.papyrus.infra.hyperlink@default:default,org.eclipse.papyrus.infra.nattable.common@default:default,org.eclipse.papyrus.infra.nattable.controlmode@default:default,org.eclipse.papyrus.infra.nattable.doc@default:default,org.eclipse.papyrus.infra.nattable.model.edit@default:default,org.eclipse.papyrus.infra.nattable.model.editor.tests@default:default,org.eclipse.papyrus.infra.nattable.model.editor@default:default,org.eclipse.papyrus.infra.nattable.model.tests@default:default,org.eclipse.papyrus.infra.nattable.model@default:default,org.eclipse.papyrus.infra.nattable.modelexplorer@default:default,org.eclipse.papyrus.infra.nattable.properties@default:default,org.eclipse.papyrus.infra.nattable.tests@default:default,org.eclipse.papyrus.infra.nattable.views.config@default:default,org.eclipse.papyrus.infra.nattable.views.editor@default:default,org.eclipse.papyrus.infra.nattable.views.tests@default:default,org.eclipse.papyrus.infra.nattable@default:default,org.eclipse.papyrus.infra.newchild.doc@default:default,org.eclipse.papyrus.infra.newchild.edit@default:default,org.eclipse.papyrus.infra.newchild.editor@default:default,org.eclipse.papyrus.infra.newchild@default:default,org.eclipse.papyrus.infra.onefile@default:default,org.eclipse.papyrus.infra.psf@default:default,org.eclipse.papyrus.infra.services.controlmode.doc@default:default,org.eclipse.papyrus.infra.services.controlmode.history@default:default,org.eclipse.papyrus.infra.services.controlmode.tests@default:default,org.eclipse.papyrus.infra.services.controlmode@default:default,org.eclipse.papyrus.infra.services.decoration@default:default,org.eclipse.papyrus.infra.services.edit.tests@default:false,org.eclipse.papyrus.infra.services.edit@default:default,org.eclipse.papyrus.infra.services.labelprovider.tests@default:default,org.eclipse.papyrus.infra.services.labelprovider@default:default,org.eclipse.papyrus.infra.services.localizer@default:default,org.eclipse.papyrus.infra.services.markerlistener@default:default,org.eclipse.papyrus.infra.services.navigation@default:default,org.eclipse.papyrus.infra.services.openelement@default:default,org.eclipse.papyrus.infra.services.resourceloading.preferences@default:default,org.eclipse.papyrus.infra.services.resourceloading.tests@default:false,org.eclipse.papyrus.infra.services.resourceloading@default:default,org.eclipse.papyrus.infra.services.semantic@default:default,org.eclipse.papyrus.infra.services.validation@default:default,org.eclipse.papyrus.infra.services.viewersearch@default:default,org.eclipse.papyrus.infra.services.viewlabelprovider@default:default,org.eclipse.papyrus.infra.tools.tests@default:default,org.eclipse.papyrus.infra.tools@default:default,org.eclipse.papyrus.infra.ui.resources@default:default,org.eclipse.papyrus.infra.ui@default:default,org.eclipse.papyrus.infra.viewpoints.configuration.edit@default:default,org.eclipse.papyrus.infra.viewpoints.configuration.editor@default:default,org.eclipse.papyrus.infra.viewpoints.configuration@default:default,org.eclipse.papyrus.infra.viewpoints.doc@default:default,org.eclipse.papyrus.infra.viewpoints.iso42010.edit@default:default,org.eclipse.papyrus.infra.viewpoints.iso42010@default:default,org.eclipse.papyrus.infra.viewpoints.policy@default:default,org.eclipse.papyrus.infra.viewpoints.preferences@default:default,org.eclipse.papyrus.infra.widgets.toolbox@default:default,org.eclipse.papyrus.infra.widgets@default:default,org.eclipse.papyrus.junit.framework@default:default,org.eclipse.papyrus.junit.utils@default:default,org.eclipse.papyrus.layers.documentation@default:default,org.eclipse.papyrus.moka.doc@default:default,org.eclipse.papyrus.mwe2.utils@default:default,org.eclipse.papyrus.releng.tools@default:default,org.eclipse.papyrus.req.reqif.doc@default:default,org.eclipse.papyrus.search.tests@default:default,org.eclipse.papyrus.sysml.diagram.blockdefinition.tests@default:false,org.eclipse.papyrus.sysml.diagram.blockdefinition@default:default,org.eclipse.papyrus.sysml.diagram.common@default:default,org.eclipse.papyrus.sysml.diagram.css@default:default,org.eclipse.papyrus.sysml.diagram.internalblock.tests@default:false,org.eclipse.papyrus.sysml.diagram.internalblock@default:default,org.eclipse.papyrus.sysml.diagram.parametric.tests@default:false,org.eclipse.papyrus.sysml.diagram.parametric@default:default,org.eclipse.papyrus.sysml.diagram.requirement.tests@default:default,org.eclipse.papyrus.sysml.diagram.requirement@default:default,org.eclipse.papyrus.sysml.diagram.ui@default:default,org.eclipse.papyrus.sysml.edit@default:default,org.eclipse.papyrus.sysml.modelexplorer.tests@default:default,org.eclipse.papyrus.sysml.modelexplorer@default:default,org.eclipse.papyrus.sysml.nattable.allocation.config@default:default,org.eclipse.papyrus.sysml.nattable.allocation.tests@default:default,org.eclipse.papyrus.sysml.nattable.allocation@default:default,org.eclipse.papyrus.sysml.nattable.menu@default:default,org.eclipse.papyrus.sysml.nattable.requirement.config@default:default,org.eclipse.papyrus.sysml.nattable.requirement.tests@default:default,org.eclipse.papyrus.sysml.nattable.requirement@default:default,org.eclipse.papyrus.sysml.nattable@default:default,org.eclipse.papyrus.sysml.properties@default:default,org.eclipse.papyrus.sysml.service.types.tests@default:false,org.eclipse.papyrus.sysml.service.types@default:default,org.eclipse.papyrus.sysml.tests@default:default,org.eclipse.papyrus.sysml@default:default,org.eclipse.papyrus.tests.diagramassistants@default:default,org.eclipse.papyrus.tests@default:default,org.eclipse.papyrus.uml.alf.common.ui@default:default,org.eclipse.papyrus.uml.alf.common@default:default,org.eclipse.papyrus.uml.alf.tests@default:default,org.eclipse.papyrus.uml.alf.ui@default:default,org.eclipse.papyrus.uml.alf@default:default,org.eclipse.papyrus.uml.appearance@default:default,org.eclipse.papyrus.uml.commands@default:default,org.eclipse.papyrus.uml.controlmode.profile@default:default,org.eclipse.papyrus.uml.decoratormodel.controlmode.tests@default:default,org.eclipse.papyrus.uml.decoratormodel.controlmode@default:default,org.eclipse.papyrus.uml.decoratormodel.doc@default:default,org.eclipse.papyrus.uml.decoratormodel.properties@default:default,org.eclipse.papyrus.uml.decoratormodel.tests@default:default,org.eclipse.papyrus.uml.decoratormodel.ui@default:default,org.eclipse.papyrus.uml.decoratormodel@default:default,org.eclipse.papyrus.uml.developer.mde@default:default,org.eclipse.papyrus.uml.diagram.activity.tests@default:default,org.eclipse.papyrus.uml.diagram.activity@default:default,org.eclipse.papyrus.uml.diagram.clazz.tests@default:default,org.eclipse.papyrus.uml.diagram.clazz@default:default,org.eclipse.papyrus.uml.diagram.common.doc@default:default,org.eclipse.papyrus.uml.diagram.common.groups@default:default,org.eclipse.papyrus.uml.diagram.common.palette.customaction@default:default,org.eclipse.papyrus.uml.diagram.common.tests@default:default,org.eclipse.papyrus.uml.diagram.common@default:default,org.eclipse.papyrus.uml.diagram.communication.tests@default:default,org.eclipse.papyrus.uml.diagram.communication@default:default,org.eclipse.papyrus.uml.diagram.component.tests@default:default,org.eclipse.papyrus.uml.diagram.component@default:default,org.eclipse.papyrus.uml.diagram.composite.tests@default:default,org.eclipse.papyrus.uml.diagram.composite@default:default,org.eclipse.papyrus.uml.diagram.css@default:default,org.eclipse.papyrus.uml.diagram.deployment.tests@default:default,org.eclipse.papyrus.uml.diagram.deployment@default:default,org.eclipse.papyrus.uml.diagram.dnd.tests@default:default,org.eclipse.papyrus.uml.diagram.dnd@default:default,org.eclipse.papyrus.uml.diagram.emftree@default:default,org.eclipse.papyrus.uml.diagram.icons@default:default,org.eclipse.papyrus.uml.diagram.interactionoverview.tests@default:default,org.eclipse.papyrus.uml.diagram.interactionoverview@default:default,org.eclipse.papyrus.uml.diagram.menu@default:default,org.eclipse.papyrus.uml.diagram.modelexplorer@default:default,org.eclipse.papyrus.uml.diagram.navigation@default:default,org.eclipse.papyrus.uml.diagram.paletteconfiguration.edit@default:default,org.eclipse.papyrus.uml.diagram.paletteconfiguration.tests@default:default,org.eclipse.papyrus.uml.diagram.paletteconfiguration@default:default,org.eclipse.papyrus.uml.diagram.profile.doc@default:default,org.eclipse.papyrus.uml.diagram.profile.tests@default:default,org.eclipse.papyrus.uml.diagram.profile@default:default,org.eclipse.papyrus.uml.diagram.sequence.tests@default:default,org.eclipse.papyrus.uml.diagram.sequence@default:default,org.eclipse.papyrus.uml.diagram.statemachine.tests@default:default,org.eclipse.papyrus.uml.diagram.statemachine@default:default,org.eclipse.papyrus.uml.diagram.stereotype.edition@default:default,org.eclipse.papyrus.uml.diagram.stereotypeproperty.tests@default:default,org.eclipse.papyrus.uml.diagram.symbols.properties@default:default,org.eclipse.papyrus.uml.diagram.symbols@default:default,org.eclipse.papyrus.uml.diagram.tests@default:default,org.eclipse.papyrus.uml.diagram.timing.tests@default:default,org.eclipse.papyrus.uml.diagram.timing@default:default,org.eclipse.papyrus.uml.diagram.usecase.tests@default:default,org.eclipse.papyrus.uml.diagram.usecase@default:default,org.eclipse.papyrus.uml.diagram.wizards.tests@default:default,org.eclipse.papyrus.uml.diagram.wizards@default:default,org.eclipse.papyrus.uml.doc@default:default,org.eclipse.papyrus.uml.documentation.profile@default:default,org.eclipse.papyrus.uml.extensionpoints@default:default,org.eclipse.papyrus.uml.filters.edit@default:default,org.eclipse.papyrus.uml.filters.tests@default:default,org.eclipse.papyrus.uml.filters@default:default,org.eclipse.papyrus.uml.icons@default:default,org.eclipse.papyrus.uml.import@default:default,org.eclipse.papyrus.uml.modelexplorer.tests@default:default,org.eclipse.papyrus.uml.modelexplorer.widgets@default:default,org.eclipse.papyrus.uml.modelexplorer@default:default,org.eclipse.papyrus.uml.modelrepair.doc@default:default,org.eclipse.papyrus.uml.modelrepair.tests@default:false,org.eclipse.papyrus.uml.modelrepair@default:default,org.eclipse.papyrus.uml.nattable.clazz.config.tests@default:default,org.eclipse.papyrus.uml.nattable.clazz.config@default:default,org.eclipse.papyrus.uml.nattable.generic.config@default:default,org.eclipse.papyrus.uml.nattable.generic.tests@default:default,org.eclipse.papyrus.uml.nattable.generic@default:default,org.eclipse.papyrus.uml.nattable.menu@default:default,org.eclipse.papyrus.uml.nattable.tests@default:default,org.eclipse.papyrus.uml.nattable.xtext.integration@default:default,org.eclipse.papyrus.uml.nattable.xtext.valuespecification@default:default,org.eclipse.papyrus.uml.nattable@default:default,org.eclipse.papyrus.uml.navigation@default:default,org.eclipse.papyrus.uml.oclconstraintevaluation@default:default,org.eclipse.papyrus.uml.perspective@default:default,org.eclipse.papyrus.uml.profile.assistants.doc@default:default,org.eclipse.papyrus.uml.profile.assistants.generator.tests@default:default,org.eclipse.papyrus.uml.profile.assistants.generator.ui@default:default,org.eclipse.papyrus.uml.profile.assistants.generator@default:default,org.eclipse.papyrus.uml.profile.drafter.documentation@default:default,org.eclipse.papyrus.uml.profile.drafter.tests@default:false,org.eclipse.papyrus.uml.profile.drafter@default:default,org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.tests@default:default,org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator.ui@default:default,org.eclipse.papyrus.uml.profile.elementtypesconfigurations.generator@default:default,org.eclipse.papyrus.uml.profile.newchildmenu.generator.ui@default:default,org.eclipse.papyrus.uml.profile.newchildmenu.generator@default:default,org.eclipse.papyrus.uml.profile@default:default,org.eclipse.papyrus.uml.properties.xtext@default:default,org.eclipse.papyrus.uml.properties@default:default,org.eclipse.papyrus.uml.resourceloading.profile@default:default,org.eclipse.papyrus.uml.search.ui.doc@default:default,org.eclipse.papyrus.uml.search.ui@default:default,org.eclipse.papyrus.uml.service.types.tests@default:false,org.eclipse.papyrus.uml.service.types@default:default,org.eclipse.papyrus.uml.service.validation@default:default,org.eclipse.papyrus.uml.services.decoration@default:default,org.eclipse.papyrus.uml.templaterepository@default:default,org.eclipse.papyrus.uml.textedit.collaborationuse.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.collaborationuse.xtext@default:default,org.eclipse.papyrus.uml.textedit.common.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.common.xtext@default:default,org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.connectionpointreference.xtext@default:default,org.eclipse.papyrus.uml.textedit.constraintwithessentialocl.xtext@default:default,org.eclipse.papyrus.uml.textedit.doc@default:default,org.eclipse.papyrus.uml.textedit.javaconstraint@default:default,org.eclipse.papyrus.uml.textedit.message.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.message.xtext@default:default,org.eclipse.papyrus.uml.textedit.parameter.tests@default:default,org.eclipse.papyrus.uml.textedit.parameter.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.parameter.xtext@default:default,org.eclipse.papyrus.uml.textedit.port.tests@default:default,org.eclipse.papyrus.uml.textedit.port.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.port.xtext@default:default,org.eclipse.papyrus.uml.textedit.property.tests@default:default,org.eclipse.papyrus.uml.textedit.property.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.property.xtext@default:default,org.eclipse.papyrus.uml.textedit.state.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.state.xtext@default:default,org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.stereotypeproperty.xtext@default:default,org.eclipse.papyrus.uml.textedit.tests@default:default,org.eclipse.papyrus.uml.textedit.transition.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.transition.xtext@default:default,org.eclipse.papyrus.uml.textedit.valuespecification.tests@default:default,org.eclipse.papyrus.uml.textedit.valuespecification.xtext.ui@default:default,org.eclipse.papyrus.uml.textedit.valuespecification.xtext.utils@default:default,org.eclipse.papyrus.uml.textedit.valuespecification.xtext@default:default,org.eclipse.papyrus.uml.textual.editors.example@default:default,org.eclipse.papyrus.uml.tools.elementtypesconfigurations@default:default,org.eclipse.papyrus.uml.tools.extendedtypes@default:default,org.eclipse.papyrus.uml.tools.tests@default:default,org.eclipse.papyrus.uml.tools.utils.tests@default:default,org.eclipse.papyrus.uml.tools.utils@default:default,org.eclipse.papyrus.uml.tools@default:default,org.eclipse.papyrus.uml.ui.perspectiveconfiguration@default:default,org.eclipse.papyrus.uml.xtext.integration.core@default:default,org.eclipse.papyrus.uml.xtext.integration.ui@default:default,org.eclipse.papyrus.uml.xtext.integration.validation@default:default,org.eclipse.papyrus.views.modelexplorer.newchild@default:default,org.eclipse.papyrus.views.modelexplorer.resourceloading@default:default,org.eclipse.papyrus.views.modelexplorer.tests@default:default,org.eclipse.papyrus.views.modelexplorer.widgets@default:default,org.eclipse.papyrus.views.modelexplorer@default:default,org.eclipse.papyrus.views.properties.doc@default:default,org.eclipse.papyrus.views.properties.model.edit@default:default,org.eclipse.papyrus.views.properties.model.editor@default:default,org.eclipse.papyrus.views.properties.model@default:default,org.eclipse.papyrus.views.properties@default:default,org.eclipse.papyrus.views.search@default:default,org.eclipse.papyrus.views.validation@default:default"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<stringAttribute key="templateConfig" value="${target_home}\configuration\config.ini"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useCustomFeatures" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="true"/>
+</launchConfiguration>
diff --git a/tests/junit/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.tests/src/org/eclipse/papyrus/uml/textedit/property/tests/suites/PropertyGrammarTests.java b/tests/junit/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.tests/src/org/eclipse/papyrus/uml/textedit/property/tests/suites/PropertyGrammarTests.java
index 7d4138b980d..910ae0c7878 100644
--- a/tests/junit/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.tests/src/org/eclipse/papyrus/uml/textedit/property/tests/suites/PropertyGrammarTests.java
+++ b/tests/junit/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.property.tests/src/org/eclipse/papyrus/uml/textedit/property/tests/suites/PropertyGrammarTests.java
@@ -1,95 +1,143 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.uml.textedit.property.tests.suites;
-
-import org.eclipse.papyrus.junit.utils.rules.PluginResource;
-import org.eclipse.papyrus.uml.textedit.property.xtext.ui.contributions.PropertyXtextDirectEditorConfiguration;
-import org.eclipse.papyrus.uml.textedit.tests.AbstractGrammarTest;
-import org.eclipse.papyrus.uml.xtext.integration.DefaultXtextDirectEditorConfiguration;
-import org.eclipse.uml2.uml.Component;
-import org.eclipse.uml2.uml.DataType;
-import org.eclipse.uml2.uml.LiteralReal;
-import org.eclipse.uml2.uml.Model;
-import org.eclipse.uml2.uml.PrimitiveType;
-import org.eclipse.uml2.uml.Property;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-import org.eclipse.uml2.uml.VisibilityKind;
-import org.junit.Assert;
-import org.junit.Before;
-import org.junit.Test;
-
-@PluginResource("/model/xtextPropertyModel.uml")
-public class PropertyGrammarTests extends AbstractGrammarTest<Property> {
-
- protected PrimitiveType type2; /* QName = model::Package1::type2 */
-
- protected DataType type1; /* QName = model::type1 */
-
- protected Model rootModel;
-
- protected Property testedProperty;
-
- @Before
- public void loadTestModel() {
- type2 = findElement(PrimitiveType.class, "type2");
- type1 = findElement(DataType.class, "type1");
- rootModel = findElement(Model.class, "model");
-
- Component component = (Component) rootModel.createPackagedElement("Component1", UMLPackage.eINSTANCE.getComponent());
- testedProperty = component.createOwnedAttribute("p1", null);
- }
-
- @Test
- public void testParser() throws Exception {
- tester.parseText(testedProperty, "~/p1: <Undefined>");
- Assert.assertTrue(testedProperty.isDerived());
- Assert.assertEquals(VisibilityKind.PACKAGE_LITERAL, testedProperty.getVisibility());
-
- tester.parseText(testedProperty, "p2");
- Assert.assertTrue(!testedProperty.isDerived()); /* Derived is mandatory, so typing "p2" means it shouldn't be derived anymore */
- Assert.assertEquals(VisibilityKind.PACKAGE_LITERAL, testedProperty.getVisibility()); /* Visibility is optional; not typing it means it shouldn't change */
- Assert.assertEquals("p2", testedProperty.getName());
- }
-
- @Test
- public void testInitialText() {
- Assert.assertEquals("+ p1 : <Undefined> {unique}", tester.getInitialText(testedProperty));
-
- testedProperty.setIsUnique(false);
- Assert.assertEquals("+ p1 : <Undefined>", tester.getInitialText(testedProperty));
-
- testedProperty.setIsDerived(true);
- testedProperty.setVisibility(VisibilityKind.PROTECTED_LITERAL);
- testedProperty.setType(type1);
- Assert.assertEquals("# /p1 : model::type1", tester.getInitialText(testedProperty));
- }
-
- @Test
- public void testDefaultValues() throws Exception {
- testedProperty.setIsUnique(false);
-
- LiteralReal defaultRealValue = UMLFactory.eINSTANCE.createLiteralReal();
- defaultRealValue.setValue(123.54);
- testedProperty.setDefaultValue(defaultRealValue);
-
- Assert.assertEquals("+ p1 : <Undefined> = 123.54", tester.getInitialText(testedProperty));
- tester.parseText(testedProperty, "p1 = .2");
- Assert.assertEquals("The instance of ValueSpecification should not change when compatible types are used", defaultRealValue, testedProperty.getDefaultValue());
- Assert.assertEquals(.2, defaultRealValue.getValue(), 0.001);
- }
-
- @Override
- public DefaultXtextDirectEditorConfiguration getEditor() {
- return new PropertyXtextDirectEditorConfiguration();
- }
-}
+/*****************************************************************************
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.textedit.property.tests.suites;
+
+import org.eclipse.papyrus.junit.utils.rules.PluginResource;
+import org.eclipse.papyrus.uml.textedit.property.xtext.ui.contributions.PropertyXtextDirectEditorConfiguration;
+import org.eclipse.papyrus.uml.textedit.tests.AbstractGrammarTest;
+import org.eclipse.papyrus.uml.xtext.integration.DefaultXtextDirectEditorConfiguration;
+import org.eclipse.uml2.uml.Component;
+import org.eclipse.uml2.uml.DataType;
+import org.eclipse.uml2.uml.LiteralInteger;
+import org.eclipse.uml2.uml.LiteralReal;
+import org.eclipse.uml2.uml.LiteralString;
+import org.eclipse.uml2.uml.LiteralUnlimitedNatural;
+import org.eclipse.uml2.uml.Model;
+import org.eclipse.uml2.uml.PrimitiveType;
+import org.eclipse.uml2.uml.Property;
+import org.eclipse.uml2.uml.UMLFactory;
+import org.eclipse.uml2.uml.UMLPackage;
+import org.eclipse.uml2.uml.VisibilityKind;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.Test;
+
+@PluginResource("/model/xtextPropertyModel.uml")
+public class PropertyGrammarTests extends AbstractGrammarTest<Property> {
+
+ protected PrimitiveType type2; /* QName = model::Package1::type2 */
+
+ protected DataType type1; /* QName = model::type1 */
+
+ protected Model rootModel;
+
+ protected Property testedProperty;
+
+ @Before
+ public void loadTestModel() {
+ type2 = findElement(PrimitiveType.class, "type2");
+ type1 = findElement(DataType.class, "type1");
+ rootModel = findElement(Model.class, "model");
+
+ Component component = (Component) rootModel.createPackagedElement("Component1", UMLPackage.eINSTANCE.getComponent());
+ testedProperty = component.createOwnedAttribute("p1", null);
+ }
+
+ @Test
+ public void testParser() throws Exception {
+ tester.parseText(testedProperty, "~/p1: <Undefined>");
+ Assert.assertTrue(testedProperty.isDerived());
+ Assert.assertEquals(VisibilityKind.PACKAGE_LITERAL, testedProperty.getVisibility());
+
+ tester.parseText(testedProperty, "p2");
+ Assert.assertTrue(!testedProperty.isDerived()); /* Derived is mandatory, so typing "p2" means it shouldn't be derived anymore */
+ Assert.assertEquals(VisibilityKind.PACKAGE_LITERAL, testedProperty.getVisibility()); /* Visibility is optional; not typing it means it shouldn't change */
+ Assert.assertEquals("p2", testedProperty.getName());
+ }
+
+ @Test
+ public void testInitialText() {
+ Assert.assertEquals("+ p1 : <Undefined> {unique}", tester.getInitialText(testedProperty));
+
+ testedProperty.setIsUnique(false);
+ Assert.assertEquals("+ p1 : <Undefined>", tester.getInitialText(testedProperty));
+
+ testedProperty.setIsDerived(true);
+ testedProperty.setVisibility(VisibilityKind.PROTECTED_LITERAL);
+ testedProperty.setType(type1);
+ Assert.assertEquals("# /p1 : model::type1", tester.getInitialText(testedProperty));
+ }
+
+ @Test
+ public void testDefaultValues() throws Exception {
+ testedProperty.setIsUnique(false);
+
+ LiteralReal defaultRealValue = UMLFactory.eINSTANCE.createLiteralReal();
+ defaultRealValue.setValue(123.54);
+ testedProperty.setDefaultValue(defaultRealValue);
+
+ Assert.assertEquals("+ p1 : <Undefined> = 123.54", tester.getInitialText(testedProperty));
+ tester.parseText(testedProperty, "p1 = .2");
+ Assert.assertEquals("The instance of ValueSpecification should not change when compatible types are used", defaultRealValue, testedProperty.getDefaultValue());
+ Assert.assertEquals(.2, defaultRealValue.getValue(), 0.001);
+ }
+
+ @Test
+ public void testMultiplicity() throws Exception {
+ // Manage two bounds (integer and unlimited natural) display
+ final LiteralInteger lowerBound = UMLFactory.eINSTANCE.createLiteralInteger();
+ lowerBound.setValue(2);
+ testedProperty.setLowerValue(lowerBound);
+
+ final LiteralUnlimitedNatural upperBound = UMLFactory.eINSTANCE.createLiteralUnlimitedNatural();
+ upperBound.setValue(4);
+ testedProperty.setUpperValue(upperBound);
+
+ Assert.assertEquals("+ p1 : <Undefined> [2..4] {unique}", tester.getInitialText(testedProperty));
+
+ // Parse Integer and UnlimitedNatural
+ tester.parseText(testedProperty, "p1 : <Undefined> [1..*] {unique}");
+ Assert.assertEquals("The instance of lower ValueSpecification should not change when compatible types are used", lowerBound, testedProperty.getLowerValue());
+ Assert.assertEquals("The instance of upper ValueSpecification should not change when compatible types are used", upperBound, testedProperty.getUpperValue());
+ Assert.assertEquals(1, lowerBound.getValue());
+ Assert.assertEquals(-1, upperBound.getValue());
+
+ // Manage only one bound display
+ lowerBound.setValue(0);
+ Assert.assertEquals("+ p1 : <Undefined> [*] {unique}", tester.getInitialText(testedProperty));
+
+ // Parse one String
+ tester.parseText(testedProperty, "p1 : <Undefined> [\"TEN\"] {unique}");
+ Assert.assertTrue("The created lower ValueSpecification must be a LiteralString", testedProperty.getLowerValue() instanceof LiteralString);
+ Assert.assertTrue("The created upper ValueSpecification must be a LiteralString", testedProperty.getUpperValue() instanceof LiteralString);
+ Assert.assertEquals("TEN", ((LiteralString)testedProperty.getLowerValue()).getValue());
+ LiteralString upperStringBound = (LiteralString)testedProperty.getUpperValue();
+ Assert.assertEquals("TEN", upperStringBound.getValue());
+
+ // Manage Integer and String
+ lowerBound.setValue(3);
+ testedProperty.setLowerValue(lowerBound);
+ Assert.assertEquals("+ p1 : <Undefined> [3..\"TEN\"] {unique}", tester.getInitialText(testedProperty));
+
+ // Parse Integer and String
+ tester.parseText(testedProperty, "p1 : <Undefined> [\"MIN\"..\"MAX\"] {unique}");
+ Assert.assertTrue("The created lower ValueSpecification must be a LiteralString", testedProperty.getLowerValue() instanceof LiteralString);
+ Assert.assertEquals("The instance of upper ValueSpecification should not change when compatible types are used", upperStringBound, testedProperty.getUpperValue());
+ Assert.assertEquals("MIN", ((LiteralString)testedProperty.getLowerValue()).getValue());
+ Assert.assertEquals("MAX", upperStringBound.getValue());
+ }
+
+ @Override
+ public DefaultXtextDirectEditorConfiguration getEditor() {
+ return new PropertyXtextDirectEditorConfiguration();
+ }
+}
diff --git a/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReq/specObject_2.reqif b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReq/specObject_2.reqif
index 4074163057f..17eb0de73b6 100644
--- a/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReq/specObject_2.reqif
+++ b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReq/specObject_2.reqif
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<REQ-IF xmlns="http://www.omg.org/spec/ReqIF/20110401/reqif.xsd" xmlns:configuration="http://eclipse.org/rmf/pror/toolextensions/1.0">
<THE-HEADER>
- <REQ-IF-HEADER IDENTIFIER="rmf-679c76df-5b8e-4e29-8351-099ff8ba0afe">
+ <REQ-IF-HEADER IDENTIFIER="rmf-e3b2c233-44d1-4226-8bf5-13207b0c253b">
<COMMENT>generated by Papyrus Requirement from exportSpecObject.uml</COMMENT>
<CREATION-TIME>2014-08-20T15:13:06.547+02:00</CREATION-TIME>
<REQ-IF-TOOL-ID>Papyrus Req</REQ-IF-TOOL-ID>
@@ -474,14 +474,14 @@
<SPEC-OBJECT-TYPE-REF>_uXKusShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
</TYPE>
</SPEC-OBJECT>
- <SPEC-OBJECT IDENTIFIER="_6DILIN64EeSfwsq8Y4ULIQ" LAST-CHANGE="2015-04-09T15:04:04.599+02:00">
+ <SPEC-OBJECT IDENTIFIER="_6DILIN64EeSfwsq8Y4ULIQ" LAST-CHANGE="2015-05-20T10:16:23.374+02:00">
<VALUES>
- <ATTRIBUTE-VALUE-STRING THE-VALUE="11">
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="1.1">
<DEFINITION>
<ATTRIBUTE-DEFINITION-STRING-REF>_uXKutChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
</DEFINITION>
</ATTRIBUTE-VALUE-STRING>
- <ATTRIBUTE-VALUE-STRING THE-VALUE="Added Req11">
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="Added Req1.1">
<DEFINITION>
<ATTRIBUTE-DEFINITION-STRING-REF>_uXKusyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
</DEFINITION>
@@ -491,14 +491,14 @@
<SPEC-OBJECT-TYPE-REF>_uXKusShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
</TYPE>
</SPEC-OBJECT>
- <SPEC-OBJECT IDENTIFIER="_92w00N64EeSfwsq8Y4ULIQ" LAST-CHANGE="2015-04-09T15:04:50.121+02:00">
+ <SPEC-OBJECT IDENTIFIER="_92w00N64EeSfwsq8Y4ULIQ" LAST-CHANGE="2015-05-20T10:17:09.318+02:00">
<VALUES>
- <ATTRIBUTE-VALUE-STRING THE-VALUE="AddedReq12">
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="AddedReq2.1">
<DEFINITION>
<ATTRIBUTE-DEFINITION-STRING-REF>_uXKutyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
</DEFINITION>
</ATTRIBUTE-VALUE-STRING>
- <ATTRIBUTE-VALUE-STRING THE-VALUE="12">
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="2.1">
<DEFINITION>
<ATTRIBUTE-DEFINITION-STRING-REF>_uXKuuChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
</DEFINITION>
@@ -513,6 +513,67 @@
<SPEC-OBJECT-TYPE-REF>_uXKutShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
</TYPE>
</SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_ZJWjAP7IEeS4v-JryOH-9w" LAST-CHANGE="2015-05-20T10:15:29.736+02:00">
+ <VALUES>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="Added Req1.1.1">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKutyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="1.1.1">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuuChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-BOOLEAN THE-VALUE="true">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-BOOLEAN-REF>_uXKutihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-BOOLEAN-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-BOOLEAN>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKutShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_acDhAP7IEeS4v-JryOH-9w" LAST-CHANGE="2015-05-20T10:17:18.038+02:00">
+ <VALUES>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="2.1.1">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuuChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="AddedReq2.1.1">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKutyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-BOOLEAN THE-VALUE="true">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-BOOLEAN-REF>_uXKutihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-BOOLEAN-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-BOOLEAN>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKutShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_bIxdEP7IEeS4v-JryOH-9w" LAST-CHANGE="2015-05-20T10:17:21.350+02:00">
+ <VALUES>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="2.1.2">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuvChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="AddedReq2.1.2">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuuyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKuuShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
</SPEC-OBJECTS>
<SPECIFICATIONS>
<SPECIFICATION IDENTIFIER="_uXLVwShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.588+02:00" LONG-NAME="SysMLmodel">
@@ -529,6 +590,13 @@
<OBJECT>
<SPEC-OBJECT-REF>_6DILIN64EeSfwsq8Y4ULIQ</SPEC-OBJECT-REF>
</OBJECT>
+ <CHILDREN>
+ <SPEC-HIERARCHY IDENTIFIER="_ZKBRYP7IEeS4v-JryOH-9w" LAST-CHANGE="2015-05-20T10:15:29.736+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_ZJWjAP7IEeS4v-JryOH-9w</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ </CHILDREN>
</SPEC-HIERARCHY>
</CHILDREN>
</SPEC-HIERARCHY>
@@ -541,6 +609,19 @@
<OBJECT>
<SPEC-OBJECT-REF>_92w00N64EeSfwsq8Y4ULIQ</SPEC-OBJECT-REF>
</OBJECT>
+ <CHILDREN>
+ <SPEC-HIERARCHY IDENTIFIER="_acjQQP7IEeS4v-JryOH-9w" LAST-CHANGE="2015-05-20T10:15:40.249+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_acDhAP7IEeS4v-JryOH-9w</SPEC-OBJECT-REF>
+ </OBJECT>
+ <CHILDREN/>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_bJP-MP7IEeS4v-JryOH-9w" LAST-CHANGE="2015-05-20T10:16:49.639+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_bIxdEP7IEeS4v-JryOH-9w</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ </CHILDREN>
</SPEC-HIERARCHY>
</CHILDREN>
</SPEC-HIERARCHY>
diff --git a/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/ReqTypeProfile.profile.uml b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/ReqTypeProfile.profile.uml
new file mode 100644
index 00000000000..2b350de386f
--- /dev/null
+++ b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/ReqTypeProfile.profile.uml
@@ -0,0 +1,255 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<uml:Profile xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="_sD_kMOUCEeSXGtGTXahmOw" name="ReqTypeProfile" metaclassReference="_sHVME-UCEeSXGtGTXahmOw" metamodelReference="_sHHJoOUCEeSXGtGTXahmOw">
+ <eAnnotations xmi:id="_sH3-oOUCEeSXGtGTXahmOw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <contents xmi:type="ecore:EPackage" xmi:id="_sH3-oeUCEeSXGtGTXahmOw" name="ReqTypeProfile" nsURI="http:///schemas/ReqTypeProfile/_sHzGIOUCEeSXGtGTXahmOw/0" nsPrefix="ReqTypeProfile">
+ <eAnnotations xmi:id="_sH8QFuUCEeSXGtGTXahmOw" source="PapyrusVersion">
+ <details xmi:id="_sH8QF-UCEeSXGtGTXahmOw" key="Version" value="1.0.0"/>
+ <details xmi:id="_sH8QGOUCEeSXGtGTXahmOw" key="Comment" value="generated by Papyrus Req"/>
+ <details xmi:id="_sH8QGeUCEeSXGtGTXahmOw" key="Copyright" value=""/>
+ <details xmi:id="_sH8QGuUCEeSXGtGTXahmOw" key="Date" value="Fri Apr 17 15:07:24 CEST 2015"/>
+ <details xmi:id="_sH8QG-UCEeSXGtGTXahmOw" key="Author" value="Papyrus Req"/>
+ </eAnnotations>
+ <eClassifiers xmi:type="ecore:EEnum" xmi:id="_sH3-ouUCEeSXGtGTXahmOw" name="Importance">
+ <eAnnotations xmi:id="_sH3-o-UCEeSXGtGTXahmOw" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_sHT98eUCEeSXGtGTXahmOw"/>
+ <eLiterals xmi:id="_sH3-pOUCEeSXGtGTXahmOw" name="Low"/>
+ <eLiterals xmi:id="_sH3-peUCEeSXGtGTXahmOw" name="Medium" value="1"/>
+ <eLiterals xmi:id="_sH3-puUCEeSXGtGTXahmOw" name="High" value="2"/>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EEnum" xmi:id="_sH3-p-UCEeSXGtGTXahmOw" name="Maturity">
+ <eAnnotations xmi:id="_sH3-qOUCEeSXGtGTXahmOw" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_sHUlA-UCEeSXGtGTXahmOw"/>
+ <eLiterals xmi:id="_sH3-qeUCEeSXGtGTXahmOw" name="Idea"/>
+ <eLiterals xmi:id="_sH3-quUCEeSXGtGTXahmOw" name="Proto" value="1"/>
+ <eLiterals xmi:id="_sH3-q-UCEeSXGtGTXahmOw" name="Advanced" value="2"/>
+ <eLiterals xmi:id="_sH3-rOUCEeSXGtGTXahmOw" name="Specification" value="3"/>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_sH3-reUCEeSXGtGTXahmOw" name="SysMLmodel">
+ <eAnnotations xmi:id="_sH3-ruUCEeSXGtGTXahmOw" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_sHVMEeUCEeSXGtGTXahmOw"/>
+ <eSuperTypes href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements/Requirement"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_sH3-r-UCEeSXGtGTXahmOw" name="base_Package" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Package"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_sH3-suUCEeSXGtGTXahmOw" name="Requirement">
+ <eAnnotations xmi:id="_sH3-s-UCEeSXGtGTXahmOw" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_sHhZUeUCEeSXGtGTXahmOw"/>
+ <eAnnotations xmi:id="_sH3-tOUCEeSXGtGTXahmOw" source="duplicates">
+ <contents xmi:type="ecore:EAttribute" xmi:id="_sH3-teUCEeSXGtGTXahmOw" name="id" ordered="false" unique="false">
+ <eAnnotations xmi:id="_sH3-tuUCEeSXGtGTXahmOw" source="redefines">
+ <references xmi:type="ecore:EAttribute" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements/Requirement/id"/>
+ </eAnnotations>
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </contents>
+ </eAnnotations>
+ <eSuperTypes href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements/Requirement"/>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_sH3-ueUCEeSXGtGTXahmOw" name="ReqType1">
+ <eAnnotations xmi:id="_sH3-uuUCEeSXGtGTXahmOw" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_sHinceUCEeSXGtGTXahmOw"/>
+ <eAnnotations xmi:id="_sH3-u-UCEeSXGtGTXahmOw" source="duplicates">
+ <contents xmi:type="ecore:EAttribute" xmi:id="_sH3-vOUCEeSXGtGTXahmOw" name="id" ordered="false" unique="false">
+ <eAnnotations xmi:id="_sH3-veUCEeSXGtGTXahmOw" source="redefines">
+ <references xmi:type="ecore:EAttribute" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements/Requirement/id"/>
+ </eAnnotations>
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </contents>
+ </eAnnotations>
+ <eSuperTypes href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements/Requirement"/>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_sH3-v-UCEeSXGtGTXahmOw" name="Attribute1" ordered="false">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_sH3-wuUCEeSXGtGTXahmOw" name="ReqType3">
+ <eAnnotations xmi:id="_sH3-w-UCEeSXGtGTXahmOw" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_sHineOUCEeSXGtGTXahmOw"/>
+ <eAnnotations xmi:id="_sH3-xOUCEeSXGtGTXahmOw" source="duplicates">
+ <contents xmi:type="ecore:EAttribute" xmi:id="_sH3-xeUCEeSXGtGTXahmOw" name="id" ordered="false" unique="false">
+ <eAnnotations xmi:id="_sH3-xuUCEeSXGtGTXahmOw" source="redefines">
+ <references xmi:type="ecore:EAttribute" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements/Requirement/id"/>
+ </eAnnotations>
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </contents>
+ </eAnnotations>
+ <eSuperTypes href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements/Requirement"/>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_sH3-yOUCEeSXGtGTXahmOw" name="Attribute1" ordered="false">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//Boolean"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_sH3-y-UCEeSXGtGTXahmOw" name="ReqType2">
+ <eAnnotations xmi:id="_sH3-zOUCEeSXGtGTXahmOw" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_sHinf-UCEeSXGtGTXahmOw"/>
+ <eAnnotations xmi:id="_sH3-zeUCEeSXGtGTXahmOw" source="duplicates">
+ <contents xmi:type="ecore:EAttribute" xmi:id="_sH3-zuUCEeSXGtGTXahmOw" name="id" ordered="false" unique="false">
+ <eAnnotations xmi:id="_sH3-z-UCEeSXGtGTXahmOw" source="redefines">
+ <references xmi:type="ecore:EAttribute" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements/Requirement/id"/>
+ </eAnnotations>
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </contents>
+ </eAnnotations>
+ <eSuperTypes href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements/Requirement"/>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_sH3-0eUCEeSXGtGTXahmOw" name="Attribute1" ordered="false">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//Integer"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_sH3-1OUCEeSXGtGTXahmOw" name="ReqType5">
+ <eAnnotations xmi:id="_sH3-1eUCEeSXGtGTXahmOw" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_sHjOguUCEeSXGtGTXahmOw"/>
+ <eAnnotations xmi:id="_sH3-1uUCEeSXGtGTXahmOw" source="duplicates">
+ <contents xmi:type="ecore:EAttribute" xmi:id="_sH3-1-UCEeSXGtGTXahmOw" name="id" ordered="false" unique="false">
+ <eAnnotations xmi:id="_sH3-2OUCEeSXGtGTXahmOw" source="redefines">
+ <references xmi:type="ecore:EAttribute" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements/Requirement/id"/>
+ </eAnnotations>
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </contents>
+ </eAnnotations>
+ <eSuperTypes href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements/Requirement"/>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_sH3-2uUCEeSXGtGTXahmOw" name="Attribute1" ordered="false" eType="_sH3-ouUCEeSXGtGTXahmOw"/>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_sH3-3OUCEeSXGtGTXahmOw" name="Attribute2" ordered="false" eType="_sH3-p-UCEeSXGtGTXahmOw"/>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_sH3-3-UCEeSXGtGTXahmOw" name="ReqType4">
+ <eAnnotations xmi:id="_sH3-4OUCEeSXGtGTXahmOw" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_sHjOi-UCEeSXGtGTXahmOw"/>
+ <eAnnotations xmi:id="_sH3-4eUCEeSXGtGTXahmOw" source="duplicates">
+ <contents xmi:type="ecore:EAttribute" xmi:id="_sH3-4uUCEeSXGtGTXahmOw" name="id" ordered="false" unique="false">
+ <eAnnotations xmi:id="_sH3-4-UCEeSXGtGTXahmOw" source="redefines">
+ <references xmi:type="ecore:EAttribute" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements/Requirement/id"/>
+ </eAnnotations>
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </contents>
+ </eAnnotations>
+ <eSuperTypes href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements/Requirement"/>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_sH3-5eUCEeSXGtGTXahmOw" name="Attribute1" ordered="false">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//Real"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ </contents>
+ </eAnnotations>
+ <ownedComment xmi:id="_sHT98OUCEeSXGtGTXahmOw">
+ <body>This model has been generated Fri Apr 17 15:07:24 CEST 2015 from ReqIF file: specObject_1.reqif.
+generated by Papyrus Requirement from exportSpecObject.umlSysMLmodel</body>
+ </ownedComment>
+ <elementImport xmi:id="_sHVME-UCEeSXGtGTXahmOw">
+ <importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Package"/>
+ </elementImport>
+ <packageImport xmi:id="_sEdeQOUCEeSXGtGTXahmOw">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
+ </packageImport>
+ <packageImport xmi:id="_sHHJoOUCEeSXGtGTXahmOw">
+ <importedPackage xmi:type="uml:Model" href="pathmap://UML_METAMODELS/UML.metamodel.uml#_0"/>
+ </packageImport>
+ <packageImport xmi:id="_sHHJoeUCEeSXGtGTXahmOw">
+ <importedPackage xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_OOJC4LX8EduFmqQsrNB9lw"/>
+ </packageImport>
+ <packageImport xmi:id="_sHHJouUCEeSXGtGTXahmOw">
+ <importedPackage xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_TZ_nULU5EduiKqCzJMWbGw"/>
+ </packageImport>
+ <packagedElement xmi:type="uml:Enumeration" xmi:id="_sHT98eUCEeSXGtGTXahmOw" name="Importance">
+ <ownedLiteral xmi:id="_sHUlAOUCEeSXGtGTXahmOw" name="Low"/>
+ <ownedLiteral xmi:id="_sHUlAeUCEeSXGtGTXahmOw" name="Medium"/>
+ <ownedLiteral xmi:id="_sHUlAuUCEeSXGtGTXahmOw" name="High"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Enumeration" xmi:id="_sHUlA-UCEeSXGtGTXahmOw" name="Maturity">
+ <ownedLiteral xmi:id="_sHUlBOUCEeSXGtGTXahmOw" name="Idea"/>
+ <ownedLiteral xmi:id="_sHUlBeUCEeSXGtGTXahmOw" name="Proto"/>
+ <ownedLiteral xmi:id="_sHUlBuUCEeSXGtGTXahmOw" name="Advanced"/>
+ <ownedLiteral xmi:id="_sHVMEOUCEeSXGtGTXahmOw" name="Specification"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_sHVMEeUCEeSXGtGTXahmOw" name="SysMLmodel">
+ <generalization xmi:id="_sHVMEuUCEeSXGtGTXahmOw">
+ <general xmi:type="uml:Stereotype" href="pathmap://SysML_PROFILES/SysML.profile.uml#_xajygLXqEduHWpAaWjM62w"/>
+ </generalization>
+ <ownedAttribute xmi:id="_sHhZUOUCEeSXGtGTXahmOw" name="base_Package" association="_sHgyQOUCEeSXGtGTXahmOw">
+ <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Package"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Extension" xmi:id="_sHgyQOUCEeSXGtGTXahmOw" name="Package_SysMLmodel" memberEnd="_sHgyQeUCEeSXGtGTXahmOw _sHhZUOUCEeSXGtGTXahmOw">
+ <ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_sHgyQeUCEeSXGtGTXahmOw" name="extension_SysMLmodel" type="_sHVMEeUCEeSXGtGTXahmOw" aggregation="composite" association="_sHgyQOUCEeSXGtGTXahmOw"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_sHhZUeUCEeSXGtGTXahmOw" name="Requirement">
+ <ownedComment xmi:id="_sHincOUCEeSXGtGTXahmOw">
+ <body>no Description</body>
+ </ownedComment>
+ <generalization xmi:id="_sHhZUuUCEeSXGtGTXahmOw">
+ <general xmi:type="uml:Stereotype" href="pathmap://SysML_PROFILES/SysML.profile.uml#_xajygLXqEduHWpAaWjM62w"/>
+ </generalization>
+ <ownedAttribute xmi:id="_sHhZU-UCEeSXGtGTXahmOw" name="id">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_sHiAYOUCEeSXGtGTXahmOw"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_sHinceUCEeSXGtGTXahmOw" name="ReqType1">
+ <ownedComment xmi:id="_sHind-UCEeSXGtGTXahmOw">
+ <body>no Description</body>
+ </ownedComment>
+ <generalization xmi:id="_sHincuUCEeSXGtGTXahmOw">
+ <general xmi:type="uml:Stereotype" href="pathmap://SysML_PROFILES/SysML.profile.uml#_xajygLXqEduHWpAaWjM62w"/>
+ </generalization>
+ <ownedAttribute xmi:id="_sHinc-UCEeSXGtGTXahmOw" name="Attribute1">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_sHindOUCEeSXGtGTXahmOw"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:id="_sHindeUCEeSXGtGTXahmOw" name="id">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_sHinduUCEeSXGtGTXahmOw"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_sHineOUCEeSXGtGTXahmOw" name="ReqType3">
+ <ownedComment xmi:id="_sHinfuUCEeSXGtGTXahmOw">
+ <body>no Description</body>
+ </ownedComment>
+ <generalization xmi:id="_sHineeUCEeSXGtGTXahmOw">
+ <general xmi:type="uml:Stereotype" href="pathmap://SysML_PROFILES/SysML.profile.uml#_xajygLXqEduHWpAaWjM62w"/>
+ </generalization>
+ <ownedAttribute xmi:id="_sHineuUCEeSXGtGTXahmOw" name="Attribute1">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_sHine-UCEeSXGtGTXahmOw"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:id="_sHinfOUCEeSXGtGTXahmOw" name="id">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_sHinfeUCEeSXGtGTXahmOw"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_sHinf-UCEeSXGtGTXahmOw" name="ReqType2">
+ <ownedComment xmi:id="_sHjOgeUCEeSXGtGTXahmOw">
+ <body>no Description</body>
+ </ownedComment>
+ <generalization xmi:id="_sHingOUCEeSXGtGTXahmOw">
+ <general xmi:type="uml:Stereotype" href="pathmap://SysML_PROFILES/SysML.profile.uml#_xajygLXqEduHWpAaWjM62w"/>
+ </generalization>
+ <ownedAttribute xmi:id="_sHingeUCEeSXGtGTXahmOw" name="Attribute1">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_sHinguUCEeSXGtGTXahmOw"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:id="_sHing-UCEeSXGtGTXahmOw" name="id">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_sHjOgOUCEeSXGtGTXahmOw"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_sHjOguUCEeSXGtGTXahmOw" name="ReqType5">
+ <ownedComment xmi:id="_sHjOiuUCEeSXGtGTXahmOw">
+ <body>no Description</body>
+ </ownedComment>
+ <generalization xmi:id="_sHjOg-UCEeSXGtGTXahmOw">
+ <general xmi:type="uml:Stereotype" href="pathmap://SysML_PROFILES/SysML.profile.uml#_xajygLXqEduHWpAaWjM62w"/>
+ </generalization>
+ <ownedAttribute xmi:id="_sHjOhOUCEeSXGtGTXahmOw" name="Attribute1" type="_sHT98eUCEeSXGtGTXahmOw">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_sHjOheUCEeSXGtGTXahmOw"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:id="_sHjOhuUCEeSXGtGTXahmOw" name="Attribute2" type="_sHUlA-UCEeSXGtGTXahmOw">
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_sHjOh-UCEeSXGtGTXahmOw"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:id="_sHjOiOUCEeSXGtGTXahmOw" name="id">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_sHjOieUCEeSXGtGTXahmOw"/>
+ </ownedAttribute>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Stereotype" xmi:id="_sHjOi-UCEeSXGtGTXahmOw" name="ReqType4">
+ <ownedComment xmi:id="_sHjOkeUCEeSXGtGTXahmOw">
+ <body>no Description</body>
+ </ownedComment>
+ <generalization xmi:id="_sHjOjOUCEeSXGtGTXahmOw">
+ <general xmi:type="uml:Stereotype" href="pathmap://SysML_PROFILES/SysML.profile.uml#_xajygLXqEduHWpAaWjM62w"/>
+ </generalization>
+ <ownedAttribute xmi:id="_sHjOjeUCEeSXGtGTXahmOw" name="Attribute1">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Real"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_sHjOjuUCEeSXGtGTXahmOw"/>
+ </ownedAttribute>
+ <ownedAttribute xmi:id="_sHjOj-UCEeSXGtGTXahmOw" name="id">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_sHjOkOUCEeSXGtGTXahmOw"/>
+ </ownedAttribute>
+ </packagedElement>
+</uml:Profile>
diff --git a/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/Result-ReimportSpecObject.di b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/Result-ReimportSpecObject.di
new file mode 100644
index 00000000000..8634d4c00e0
--- /dev/null
+++ b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/Result-ReimportSpecObject.di
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
diff --git a/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/Result-ReimportSpecObject.notation b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/Result-ReimportSpecObject.notation
new file mode 100644
index 00000000000..8634d4c00e0
--- /dev/null
+++ b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/Result-ReimportSpecObject.notation
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
diff --git a/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/Result-ReimportSpecObject.uml b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/Result-ReimportSpecObject.uml
new file mode 100644
index 00000000000..f1293db09e4
--- /dev/null
+++ b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/Result-ReimportSpecObject.uml
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ReqTypeProfile="http:///schemas/ReqTypeProfile/_sHzGIOUCEeSXGtGTXahmOw/0" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http:///schemas/ReqTypeProfile/_sHzGIOUCEeSXGtGTXahmOw/0 ReqTypeProfile.profile.uml#_sH3-oeUCEeSXGtGTXahmOw">
+ <uml:Model xmi:id="_MIKN0CkSEeS95O5erqgRCw" name="SysMLmodel">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_pg4HMOUCEeSXGtGTXahmOw">
+ <body>This model has been generated Fri Apr 17 15:07:06 CEST 2015 from ReqIF file: specObject_1.reqif.
+generated by Papyrus Requirement from exportSpecObject.umlSysMLmodel</body>
+ </ownedComment>
+ <ownedComment xmi:type="uml:Comment" xmi:id="_CsO8YOUDEeSXGtGTXahmOw">
+ <body>This model has been generated Fri Apr 17 15:09:55 CEST 2015 from ReqIF file: specObject_2.reqif.
+generated by Papyrus Requirement from exportSpecObject.umlSysMLmodel</body>
+ </ownedComment>
+ <packagedElement xmi:type="uml:Package" xmi:id="_sWm-MOUCEeSXGtGTXahmOw" name="SysMLmodel">
+ <packagedElement xmi:type="uml:Class" xmi:id="_sWxWQOUCEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_sW8VYOUCEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_sXCcAOUCEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_sXGtcOUCEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_sXK-4OUCEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_sXPQUOUCEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_sXS6sOUCEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_sXXMIOUCEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_sXd50OUCEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_sXg9IOUCEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_DVMZ0OUDEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_DVOPAOUDEeSXGtGTXahmOw" name="Requirement1"/>
+ </packagedElement>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMCoQCkSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMDPUCkSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#/"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_TZ_nULU5EduiKqCzJMWbGw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMEdcCkSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMEdcSkSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//modelelements"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_Gx8MgLX7EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMEdcikSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMFEgCkSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//blocks"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_fSw28LX7EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMFEgSkSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMFEgikSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//portandflows"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_rpx28LX7EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMFEgykSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMFrkCkSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//constraints"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_5WYJ0LX7EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMFrkSkSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMFrkikSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//activities"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_C2zXMLX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMFrkykSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMGSoCkSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//allocations"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_NxdG4LX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMGSoSkSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMGSoikSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_OOJC4LX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMG5sCkSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMG5sSkSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//interactions"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_meOioLX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMG5sikSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMG5sykSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//statemachines"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_nAF5kLX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMHgwCkSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMHgwSkSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//usecases"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_neZmMLX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_sWS1IOUCEeSXGtGTXahmOw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_sWWfgOUCEeSXGtGTXahmOw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="ReqTypeProfile.profile.uml#_sH3-oeUCEeSXGtGTXahmOw"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="ReqTypeProfile.profile.uml#_sD_kMOUCEeSXGtGTXahmOw"/>
+ </profileApplication>
+ </uml:Model>
+ <ReqTypeProfile:SysMLmodel xmi:id="_sWqBgOUCEeSXGtGTXahmOw" base_Package="_sWm-MOUCEeSXGtGTXahmOw"/>
+ <ReqTypeProfile:ReqType5 xmi:id="_sW3c4OUCEeSXGtGTXahmOw" text="The text for req1" id="1" base_Class="_sWxWQOUCEeSXGtGTXahmOw"/>
+ <ReqTypeProfile:ReqType5 xmi:id="_sW_YsOUCEeSXGtGTXahmOw" text="The text for req2" id="2" base_Class="_sW8VYOUCEeSXGtGTXahmOw" Attribute1="Medium"/>
+ <ReqTypeProfile:ReqType5 xmi:id="_sXERMOUCEeSXGtGTXahmOw" text="The text for req3" id="3" base_Class="_sXCcAOUCEeSXGtGTXahmOw" Attribute1="High"/>
+ <ReqTypeProfile:ReqType5 xmi:id="_sXIioOUCEeSXGtGTXahmOw" text="The text for req4" id="4" base_Class="_sXGtcOUCEeSXGtGTXahmOw" Attribute1="Medium" Attribute2="Proto"/>
+ <ReqTypeProfile:ReqType5 xmi:id="_sXM0EOUCEeSXGtGTXahmOw" text="The text for req5" id="5" base_Class="_sXK-4OUCEeSXGtGTXahmOw" Attribute1="High" Attribute2="Specification"/>
+ <ReqTypeProfile:ReqType1 xmi:id="_sXRFgOUCEeSXGtGTXahmOw" text="The text for req6" id="6" base_Class="_sXPQUOUCEeSXGtGTXahmOw" Attribute1="test3"/>
+ <ReqTypeProfile:ReqType1 xmi:id="_sXVW8OUCEeSXGtGTXahmOw" text="The text for req7" id="7" base_Class="_sXS6sOUCEeSXGtGTXahmOw" Attribute1="test1"/>
+ <ReqTypeProfile:ReqType1 xmi:id="_sXZoYOUCEeSXGtGTXahmOw" text="The text for req8" id="8" base_Class="_sXXMIOUCEeSXGtGTXahmOw" Attribute1="test2"/>
+ <ReqTypeProfile:ReqType1 xmi:id="_sXfvAOUCEeSXGtGTXahmOw" text="The text for req9" id="9" base_Class="_sXd50OUCEeSXGtGTXahmOw" Attribute1="test4"/>
+ <ReqTypeProfile:ReqType1 xmi:id="_sXiLQOUCEeSXGtGTXahmOw" text="The text for req10" id="10" base_Class="_sXg9IOUCEeSXGtGTXahmOw" Attribute1="test5"/>
+ <ReqTypeProfile:ReqType1 xmi:id="_DVNn8OUDEeSXGtGTXahmOw" text="Added Req11" id="11" base_Class="_DVMZ0OUDEeSXGtGTXahmOw"/>
+ <ReqTypeProfile:ReqType3 xmi:id="_DVPdIOUDEeSXGtGTXahmOw" text="AddedReq12" id="12" base_Class="_DVOPAOUDEeSXGtGTXahmOw"/>
+</xmi:XMI>
diff --git a/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/importSpecObject.di b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/importSpecObject.di
new file mode 100644
index 00000000000..8634d4c00e0
--- /dev/null
+++ b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/importSpecObject.di
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
diff --git a/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/importSpecObject.notation b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/importSpecObject.notation
new file mode 100644
index 00000000000..1e587028388
--- /dev/null
+++ b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/importSpecObject.notation
@@ -0,0 +1,523 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/papyrus/infra/viewpoints/policy/style" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="_U9BTMP7NEeS-FJrnRfHv0A" type="PapyrusUMLClassDiagram" name="ClassDiagram" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_Y75jkP7NEeS-FJrnRfHv0A" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Y8DUkP7NEeS-FJrnRfHv0A" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Y8DUkf7NEeS-FJrnRfHv0A" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Y8DUkv7NEeS-FJrnRfHv0A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Y8G-8P7NEeS-FJrnRfHv0A" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Y8HmAP7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Y8HmAf7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Y8HmAv7NEeS-FJrnRfHv0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Y8HmA_7NEeS-FJrnRfHv0A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Y8HmBP7NEeS-FJrnRfHv0A" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Y8HmBf7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Y8HmBv7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Y8HmB_7NEeS-FJrnRfHv0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Y8HmCP7NEeS-FJrnRfHv0A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Y8HmCf7NEeS-FJrnRfHv0A" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Y8HmCv7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_Y8HmC_7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Y8HmDP7NEeS-FJrnRfHv0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Y8HmDf7NEeS-FJrnRfHv0A"/>
+ </children>
+ <element xmi:type="uml:Class" href="importSpecObject.uml#_sWxWQOUCEeSXGtGTXahmOw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Y75jkf7NEeS-FJrnRfHv0A" x="40" y="20"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_Y_9kMP7NEeS-FJrnRfHv0A" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Y_9kMf7NEeS-FJrnRfHv0A" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_Y_-LQP7NEeS-FJrnRfHv0A" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="importSpecObject.uml#_sWxWQOUCEeSXGtGTXahmOw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Y_9kMv7NEeS-FJrnRfHv0A" x="200"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ZAo5oP7NEeS-FJrnRfHv0A" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ZAo5ov7NEeS-FJrnRfHv0A" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ZAo5o_7NEeS-FJrnRfHv0A" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ZAo5pP7NEeS-FJrnRfHv0A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ZApgsP7NEeS-FJrnRfHv0A" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ZApgsf7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ZApgsv7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ZApgs_7NEeS-FJrnRfHv0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZApgtP7NEeS-FJrnRfHv0A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ZApgtf7NEeS-FJrnRfHv0A" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ZApgtv7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ZApgt_7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ZApguP7NEeS-FJrnRfHv0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZApguf7NEeS-FJrnRfHv0A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ZApguv7NEeS-FJrnRfHv0A" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ZApgu_7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ZApgvP7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ZApgvf7NEeS-FJrnRfHv0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZApgvv7NEeS-FJrnRfHv0A"/>
+ </children>
+ <element xmi:type="uml:Class" href="importSpecObject.uml#_sW8VYOUCEeSXGtGTXahmOw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZAo5of7NEeS-FJrnRfHv0A" x="160" y="20"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ZBEXcP7NEeS-FJrnRfHv0A" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ZBEXcf7NEeS-FJrnRfHv0A" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_ZBEXc_7NEeS-FJrnRfHv0A" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="importSpecObject.uml#_sW8VYOUCEeSXGtGTXahmOw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZBEXcv7NEeS-FJrnRfHv0A" x="200"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ZBX5cP7NEeS-FJrnRfHv0A" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ZBX5cv7NEeS-FJrnRfHv0A" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ZBX5c_7NEeS-FJrnRfHv0A" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ZBX5dP7NEeS-FJrnRfHv0A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ZBX5df7NEeS-FJrnRfHv0A" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ZBX5dv7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ZBX5d_7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ZBX5eP7NEeS-FJrnRfHv0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZBX5ef7NEeS-FJrnRfHv0A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ZBYggP7NEeS-FJrnRfHv0A" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ZBYggf7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ZBYggv7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ZBYgg_7NEeS-FJrnRfHv0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZBYghP7NEeS-FJrnRfHv0A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ZBYghf7NEeS-FJrnRfHv0A" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ZBYghv7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ZBYgh_7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ZBYgiP7NEeS-FJrnRfHv0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZBYgif7NEeS-FJrnRfHv0A"/>
+ </children>
+ <element xmi:type="uml:Class" href="importSpecObject.uml#_sXCcAOUCEeSXGtGTXahmOw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZBX5cf7NEeS-FJrnRfHv0A" x="280" y="20"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ZBrbc_7NEeS-FJrnRfHv0A" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ZBrbdP7NEeS-FJrnRfHv0A" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_ZBsCgP7NEeS-FJrnRfHv0A" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="importSpecObject.uml#_sXCcAOUCEeSXGtGTXahmOw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZBrbdf7NEeS-FJrnRfHv0A" x="200"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ZB76IP7NEeS-FJrnRfHv0A" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ZB8hMP7NEeS-FJrnRfHv0A" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ZB8hMf7NEeS-FJrnRfHv0A" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ZB8hMv7NEeS-FJrnRfHv0A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ZB8hM_7NEeS-FJrnRfHv0A" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ZB8hNP7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ZB8hNf7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ZB8hNv7NEeS-FJrnRfHv0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZB8hN_7NEeS-FJrnRfHv0A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ZB8hOP7NEeS-FJrnRfHv0A" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ZB8hOf7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ZB8hOv7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ZB8hO_7NEeS-FJrnRfHv0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZB8hPP7NEeS-FJrnRfHv0A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ZB9IQP7NEeS-FJrnRfHv0A" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ZB9IQf7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ZB9IQv7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ZB9IQ_7NEeS-FJrnRfHv0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZB9IRP7NEeS-FJrnRfHv0A"/>
+ </children>
+ <element xmi:type="uml:Class" href="importSpecObject.uml#_sXGtcOUCEeSXGtGTXahmOw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZB76If7NEeS-FJrnRfHv0A" x="420" y="20"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ZCWJ0_7NEeS-FJrnRfHv0A" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ZCWJ1P7NEeS-FJrnRfHv0A" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_ZCWw4P7NEeS-FJrnRfHv0A" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="importSpecObject.uml#_sXGtcOUCEeSXGtGTXahmOw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZCWJ1f7NEeS-FJrnRfHv0A" x="200"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ZCqS4P7NEeS-FJrnRfHv0A" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_ZCqS4v7NEeS-FJrnRfHv0A" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_ZCqS4_7NEeS-FJrnRfHv0A" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_ZCqS5P7NEeS-FJrnRfHv0A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ZCqS5f7NEeS-FJrnRfHv0A" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ZCqS5v7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ZCqS5_7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ZCqS6P7NEeS-FJrnRfHv0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZCqS6f7NEeS-FJrnRfHv0A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ZCq58P7NEeS-FJrnRfHv0A" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ZCq58f7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ZCq58v7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ZCq58_7NEeS-FJrnRfHv0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZCq59P7NEeS-FJrnRfHv0A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ZCq59f7NEeS-FJrnRfHv0A" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ZCq59v7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ZCq59_7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ZCq5-P7NEeS-FJrnRfHv0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZCq5-f7NEeS-FJrnRfHv0A"/>
+ </children>
+ <element xmi:type="uml:Class" href="importSpecObject.uml#_sXK-4OUCEeSXGtGTXahmOw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZCqS4f7NEeS-FJrnRfHv0A" x="580" y="20"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ZDARIP7NEeS-FJrnRfHv0A" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ZDARIf7NEeS-FJrnRfHv0A" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_ZDARI_7NEeS-FJrnRfHv0A" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="importSpecObject.uml#_sXK-4OUCEeSXGtGTXahmOw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZDARIv7NEeS-FJrnRfHv0A" x="200"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_ZefTQP7NEeS-FJrnRfHv0A" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_Zef6UP7NEeS-FJrnRfHv0A" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_Zef6Uf7NEeS-FJrnRfHv0A" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_Zef6Uv7NEeS-FJrnRfHv0A" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ZeghYP7NEeS-FJrnRfHv0A" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ZeghYf7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ZeghYv7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ZeghY_7NEeS-FJrnRfHv0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZeghZP7NEeS-FJrnRfHv0A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_ZeghZf7NEeS-FJrnRfHv0A" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_ZeghZv7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ZeghZ_7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_ZeghaP7NEeS-FJrnRfHv0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Zeghaf7NEeS-FJrnRfHv0A"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_Zeghav7NEeS-FJrnRfHv0A" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_Zegha_7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_ZeghbP7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_Zeghbf7NEeS-FJrnRfHv0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Zeghbv7NEeS-FJrnRfHv0A"/>
+ </children>
+ <element xmi:type="uml:Class" href="importSpecObject.uml#_ZebB0P7NEeS-FJrnRfHv0A"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_ZefTQf7NEeS-FJrnRfHv0A" x="40" y="220" width="641"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_e6H1g_7NEeS-FJrnRfHv0A" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_e6H1hP7NEeS-FJrnRfHv0A" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_e6H1hv7NEeS-FJrnRfHv0A" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Abstraction" href="importSpecObject.uml#_e3uBwP7NEeS-FJrnRfHv0A"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_e6H1hf7NEeS-FJrnRfHv0A" x="240" y="120"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_5pPJMP7dEeSSMKHs1EquyA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_5pRlcP7dEeSSMKHs1EquyA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_5pRlcf7dEeSSMKHs1EquyA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_5pRlcv7dEeSSMKHs1EquyA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_5pRlc_7dEeSSMKHs1EquyA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_5pRldP7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_5pRldf7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_5pRldv7dEeSSMKHs1EquyA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_5pRld_7dEeSSMKHs1EquyA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_5pRleP7dEeSSMKHs1EquyA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_5pRlef7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_5pRlev7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_5pRle_7dEeSSMKHs1EquyA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_5pRlfP7dEeSSMKHs1EquyA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_5pSMgP7dEeSSMKHs1EquyA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_5pSMgf7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_5pSMgv7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_5pSMg_7dEeSSMKHs1EquyA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_5pSMhP7dEeSSMKHs1EquyA"/>
+ </children>
+ <element xmi:type="uml:Class" href="importSpecObject.uml#_5pH0cP7dEeSSMKHs1EquyA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_5pPJMf7dEeSSMKHs1EquyA" x="780" y="220"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_7-nFIP7dEeSSMKHs1EquyA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_7-nsMP7dEeSSMKHs1EquyA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_7-nsMf7dEeSSMKHs1EquyA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_7-nsMv7dEeSSMKHs1EquyA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_7-nsM_7dEeSSMKHs1EquyA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_7-nsNP7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_7-nsNf7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_7-nsNv7dEeSSMKHs1EquyA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7-nsN_7dEeSSMKHs1EquyA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_7-nsOP7dEeSSMKHs1EquyA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_7-nsOf7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_7-nsOv7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_7-nsO_7dEeSSMKHs1EquyA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7-nsPP7dEeSSMKHs1EquyA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_7-nsPf7dEeSSMKHs1EquyA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_7-nsPv7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_7-nsP_7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_7-nsQP7dEeSSMKHs1EquyA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7-nsQf7dEeSSMKHs1EquyA"/>
+ </children>
+ <element xmi:type="uml:Class" href="importSpecObject.uml#_sXd50OUCEeSXGtGTXahmOw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7-nFIf7dEeSSMKHs1EquyA" x="780" y="33"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_7-_foP7dEeSSMKHs1EquyA" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_7-_fof7dEeSSMKHs1EquyA" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_7-_fo_7dEeSSMKHs1EquyA" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="importSpecObject.uml#_sXd50OUCEeSXGtGTXahmOw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7-_fov7dEeSSMKHs1EquyA" x="200"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_8Ak0AP7dEeSSMKHs1EquyA" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_8AlbEP7dEeSSMKHs1EquyA" type="5029"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_8AlbEf7dEeSSMKHs1EquyA" type="8510">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_8AlbEv7dEeSSMKHs1EquyA" y="5"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_8AlbE_7dEeSSMKHs1EquyA" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_8AlbFP7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_8AlbFf7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_8AlbFv7dEeSSMKHs1EquyA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_8AlbF_7dEeSSMKHs1EquyA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_8AmCIP7dEeSSMKHs1EquyA" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_8AmCIf7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_8AmCIv7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_8AmCI_7dEeSSMKHs1EquyA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_8AmCJP7dEeSSMKHs1EquyA"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_8AmCJf7dEeSSMKHs1EquyA" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_8AmCJv7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_8AmCJ_7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_8AmCKP7dEeSSMKHs1EquyA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_8AmCKf7dEeSSMKHs1EquyA"/>
+ </children>
+ <element xmi:type="uml:Class" href="importSpecObject.uml#_sXg9IOUCEeSXGtGTXahmOw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_8Ak0Af7dEeSSMKHs1EquyA" x="900" y="40"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_8A8AYP7dEeSSMKHs1EquyA" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_8A8AYf7dEeSSMKHs1EquyA" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_8A8AY_7dEeSSMKHs1EquyA" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="importSpecObject.uml#_sXg9IOUCEeSXGtGTXahmOw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_8A8AYv7dEeSSMKHs1EquyA" x="200"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_9KFZwP7dEeSSMKHs1EquyA" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_9KFZwf7dEeSSMKHs1EquyA" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_9KGA0P7dEeSSMKHs1EquyA" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Abstraction" href="importSpecObject.uml#_9GALAP7dEeSSMKHs1EquyA"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_9KFZwv7dEeSSMKHs1EquyA" x="980" y="120"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_9odX0_7dEeSSMKHs1EquyA" type="StereotypeComment">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_9odX1P7dEeSSMKHs1EquyA" showTitle="true"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_9odX1v7dEeSSMKHs1EquyA" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Abstraction" href="importSpecObject.uml#_9kfd0P7dEeSSMKHs1EquyA"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_9odX1f7dEeSSMKHs1EquyA" x="980" y="120"/>
+ </children>
+ <styles xmi:type="notation:StringValueStyle" xmi:id="_U9BTMf7NEeS-FJrnRfHv0A" name="diagram_compatibility_version" stringValue="1.1.0"/>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_U9BTMv7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_U9BTM_7NEeS-FJrnRfHv0A">
+ <owner xmi:type="uml:Package" href="importSpecObject.uml#_sWm-MOUCEeSXGtGTXahmOw"/>
+ </styles>
+ <element xmi:type="uml:Package" href="importSpecObject.uml#_sWm-MOUCEeSXGtGTXahmOw"/>
+ <edges xmi:type="notation:Connector" xmi:id="_ZAE48P7NEeS-FJrnRfHv0A" type="StereotypeCommentLink" source="_Y75jkP7NEeS-FJrnRfHv0A" target="_Y_9kMP7NEeS-FJrnRfHv0A">
+ <styles xmi:type="notation:FontStyle" xmi:id="_ZAE48f7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_ZAGuIf7NEeS-FJrnRfHv0A" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="importSpecObject.uml#_sWxWQOUCEeSXGtGTXahmOw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_ZAE48v7NEeS-FJrnRfHv0A" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ZAGHEP7NEeS-FJrnRfHv0A"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ZAGuIP7NEeS-FJrnRfHv0A"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_ZBEXdP7NEeS-FJrnRfHv0A" type="StereotypeCommentLink" source="_ZAo5oP7NEeS-FJrnRfHv0A" target="_ZBEXcP7NEeS-FJrnRfHv0A">
+ <styles xmi:type="notation:FontStyle" xmi:id="_ZBE-gP7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_ZBE-hP7NEeS-FJrnRfHv0A" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="importSpecObject.uml#_sW8VYOUCEeSXGtGTXahmOw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_ZBE-gf7NEeS-FJrnRfHv0A" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ZBE-gv7NEeS-FJrnRfHv0A"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ZBE-g_7NEeS-FJrnRfHv0A"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_ZBsCgf7NEeS-FJrnRfHv0A" type="StereotypeCommentLink" source="_ZBX5cP7NEeS-FJrnRfHv0A" target="_ZBrbc_7NEeS-FJrnRfHv0A">
+ <styles xmi:type="notation:FontStyle" xmi:id="_ZBsCgv7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_ZBsChv7NEeS-FJrnRfHv0A" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="importSpecObject.uml#_sXCcAOUCEeSXGtGTXahmOw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_ZBsCg_7NEeS-FJrnRfHv0A" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ZBsChP7NEeS-FJrnRfHv0A"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ZBsChf7NEeS-FJrnRfHv0A"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_ZCWw4f7NEeS-FJrnRfHv0A" type="StereotypeCommentLink" source="_ZB76IP7NEeS-FJrnRfHv0A" target="_ZCWJ0_7NEeS-FJrnRfHv0A">
+ <styles xmi:type="notation:FontStyle" xmi:id="_ZCWw4v7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_ZCWw5v7NEeS-FJrnRfHv0A" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="importSpecObject.uml#_sXGtcOUCEeSXGtGTXahmOw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_ZCWw4_7NEeS-FJrnRfHv0A" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ZCWw5P7NEeS-FJrnRfHv0A"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ZCWw5f7NEeS-FJrnRfHv0A"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_ZDARJP7NEeS-FJrnRfHv0A" type="StereotypeCommentLink" source="_ZCqS4P7NEeS-FJrnRfHv0A" target="_ZDARIP7NEeS-FJrnRfHv0A">
+ <styles xmi:type="notation:FontStyle" xmi:id="_ZDARJf7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_ZDARKf7NEeS-FJrnRfHv0A" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="importSpecObject.uml#_sXK-4OUCEeSXGtGTXahmOw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_ZDARJv7NEeS-FJrnRfHv0A" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ZDARJ_7NEeS-FJrnRfHv0A"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ZDARKP7NEeS-FJrnRfHv0A"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_dDaykP7NEeS-FJrnRfHv0A" type="4006" source="_ZefTQP7NEeS-FJrnRfHv0A" target="_Y75jkP7NEeS-FJrnRfHv0A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_dDayk_7NEeS-FJrnRfHv0A" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_dDaylP7NEeS-FJrnRfHv0A" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_dDbZoP7NEeS-FJrnRfHv0A" type="6015">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_dDbZof7NEeS-FJrnRfHv0A" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_dDaykf7NEeS-FJrnRfHv0A"/>
+ <element xmi:type="uml:Abstraction" href="importSpecObject.uml#_dDWhIP7NEeS-FJrnRfHv0A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_dDaykv7NEeS-FJrnRfHv0A" points="[8, -4, 0, 115]$[6, -100, -2, 19]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_dF6F4P7NEeS-FJrnRfHv0A" id="(0.062402496099843996,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_dF6F4f7NEeS-FJrnRfHv0A" id="(0.46,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_d1jaIP7NEeS-FJrnRfHv0A" type="4001" source="_ZefTQP7NEeS-FJrnRfHv0A" target="_ZAo5oP7NEeS-FJrnRfHv0A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_d1kBMP7NEeS-FJrnRfHv0A" type="6001">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_d1kBMf7NEeS-FJrnRfHv0A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_d1kBMv7NEeS-FJrnRfHv0A" type="6002">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_d1kBM_7NEeS-FJrnRfHv0A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_d1kBNP7NEeS-FJrnRfHv0A" type="6003">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_d1kBNf7NEeS-FJrnRfHv0A" y="-20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_d1kBNv7NEeS-FJrnRfHv0A" type="6005">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_d1kBN_7NEeS-FJrnRfHv0A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_d1kBOP7NEeS-FJrnRfHv0A" type="6033">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_d1kBOf7NEeS-FJrnRfHv0A" y="20"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_d1kBOv7NEeS-FJrnRfHv0A" type="6034">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_d1kBO_7NEeS-FJrnRfHv0A" y="-20"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_d1jaIf7NEeS-FJrnRfHv0A"/>
+ <element xmi:type="uml:Association" href="importSpecObject.uml#_d0mX4P7NEeS-FJrnRfHv0A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_d1jaIv7NEeS-FJrnRfHv0A" points="[0, -6, 0, 118]$[2, -102, 2, 22]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_d33HQP7NEeS-FJrnRfHv0A" id="(0.2714508580343214,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_d33HQf7NEeS-FJrnRfHv0A" id="(0.54,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_e3xsIP7NEeS-FJrnRfHv0A" type="4006" source="_ZefTQP7NEeS-FJrnRfHv0A" target="_ZBX5cP7NEeS-FJrnRfHv0A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_e3yTMP7NEeS-FJrnRfHv0A" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_e3yTMf7NEeS-FJrnRfHv0A" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_e3yTMv7NEeS-FJrnRfHv0A" type="6015">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_e3yTM_7NEeS-FJrnRfHv0A" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_e3xsIf7NEeS-FJrnRfHv0A"/>
+ <element xmi:type="uml:Abstraction" href="importSpecObject.uml#_e3uBwP7NEeS-FJrnRfHv0A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_e3xsIv7NEeS-FJrnRfHv0A" points="[4, -5, 7, 148]$[4, -101, 7, 52]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_e5XAgP7NEeS-FJrnRfHv0A" id="(0.45709828393135726,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_e5XnkP7NEeS-FJrnRfHv0A" id="(0.55,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_e6H1h_7NEeS-FJrnRfHv0A" type="StereotypeCommentLink" source="_e3xsIP7NEeS-FJrnRfHv0A" target="_e6H1g_7NEeS-FJrnRfHv0A">
+ <styles xmi:type="notation:FontStyle" xmi:id="_e6H1iP7NEeS-FJrnRfHv0A"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_e6Ickv7NEeS-FJrnRfHv0A" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Abstraction" href="importSpecObject.uml#_e3uBwP7NEeS-FJrnRfHv0A"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_e6H1if7NEeS-FJrnRfHv0A" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_e6IckP7NEeS-FJrnRfHv0A"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_e6Ickf7NEeS-FJrnRfHv0A"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_f-gqsP7NEeS-FJrnRfHv0A" type="4008" source="_ZefTQP7NEeS-FJrnRfHv0A" target="_ZB76IP7NEeS-FJrnRfHv0A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_f-hRwP7NEeS-FJrnRfHv0A" type="6026">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_f-hRwf7NEeS-FJrnRfHv0A" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_f-hRwv7NEeS-FJrnRfHv0A" type="6027">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_f-hRw_7NEeS-FJrnRfHv0A" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_f-gqsf7NEeS-FJrnRfHv0A"/>
+ <element xmi:type="uml:Dependency" href="importSpecObject.uml#_f-dAUP7NEeS-FJrnRfHv0A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_f-gqsv7NEeS-FJrnRfHv0A" points="[-2, -1, 2, 148]$[-2, -97, 2, 52]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_gAF_EP7NEeS-FJrnRfHv0A" id="(0.6755070202808112,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_gAF_Ef7NEeS-FJrnRfHv0A" id="(0.52,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_g3aooP7NEeS-FJrnRfHv0A" type="4002" source="_ZefTQP7NEeS-FJrnRfHv0A" target="_ZCqS4P7NEeS-FJrnRfHv0A">
+ <children xmi:type="notation:DecorationNode" xmi:id="_g3aoo_7NEeS-FJrnRfHv0A" type="6007">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_g3aopP7NEeS-FJrnRfHv0A" y="40"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_g3aoof7NEeS-FJrnRfHv0A"/>
+ <element xmi:type="uml:Generalization" href="importSpecObject.uml#_g21Z0P7NEeS-FJrnRfHv0A"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_g3aoov7NEeS-FJrnRfHv0A" points="[-6, -5, 0, 115]$[-6, -101, 0, 19]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_g47rkP7NEeS-FJrnRfHv0A" id="(0.9297971918876755,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_g47rkf7NEeS-FJrnRfHv0A" id="(0.51,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_7_AGsP7dEeSSMKHs1EquyA" type="StereotypeCommentLink" source="_7-nFIP7dEeSSMKHs1EquyA" target="_7-_foP7dEeSSMKHs1EquyA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_7_AGsf7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_7_Atwv7dEeSSMKHs1EquyA" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="importSpecObject.uml#_sXd50OUCEeSXGtGTXahmOw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_7_AGsv7dEeSSMKHs1EquyA" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_7_AtwP7dEeSSMKHs1EquyA"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_7_Atwf7dEeSSMKHs1EquyA"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_8A8AZP7dEeSSMKHs1EquyA" type="StereotypeCommentLink" source="_8Ak0AP7dEeSSMKHs1EquyA" target="_8A8AYP7dEeSSMKHs1EquyA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_8A8AZf7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_8A8Aaf7dEeSSMKHs1EquyA" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Class" href="importSpecObject.uml#_sXg9IOUCEeSXGtGTXahmOw"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_8A8AZv7dEeSSMKHs1EquyA" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_8A8AZ_7dEeSSMKHs1EquyA"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_8A8AaP7dEeSSMKHs1EquyA"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_9GEccP7dEeSSMKHs1EquyA" type="4006" source="_5pPJMP7dEeSSMKHs1EquyA" target="_7-nFIP7dEeSSMKHs1EquyA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_9GEcc_7dEeSSMKHs1EquyA" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_9GFDgP7dEeSSMKHs1EquyA" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_9GFDgf7dEeSSMKHs1EquyA" type="6015">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_9GFDgv7dEeSSMKHs1EquyA" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_9GEccf7dEeSSMKHs1EquyA"/>
+ <element xmi:type="uml:Abstraction" href="importSpecObject.uml#_9GALAP7dEeSSMKHs1EquyA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_9GEccv7dEeSSMKHs1EquyA" points="[-8, -10, 2, 135]$[-8, -93, 2, 52]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_9Ih6kP7dEeSSMKHs1EquyA" id="(0.59,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_9IihoP7dEeSSMKHs1EquyA" id="(0.54,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_9KGA0f7dEeSSMKHs1EquyA" type="StereotypeCommentLink" source="_9GEccP7dEeSSMKHs1EquyA" target="_9KFZwP7dEeSSMKHs1EquyA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_9KGA0v7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_9KGA1v7dEeSSMKHs1EquyA" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Abstraction" href="importSpecObject.uml#_9GALAP7dEeSSMKHs1EquyA"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_9KGA0_7dEeSSMKHs1EquyA" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_9KGA1P7dEeSSMKHs1EquyA"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_9KGA1f7dEeSSMKHs1EquyA"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_9kgr8P7dEeSSMKHs1EquyA" type="4006" source="_5pPJMP7dEeSSMKHs1EquyA" target="_8Ak0AP7dEeSSMKHs1EquyA">
+ <children xmi:type="notation:DecorationNode" xmi:id="_9khTAP7dEeSSMKHs1EquyA" type="6014">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_9khTAf7dEeSSMKHs1EquyA" y="40"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_9khTAv7dEeSSMKHs1EquyA" type="6015">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_9khTA_7dEeSSMKHs1EquyA" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_9kgr8f7dEeSSMKHs1EquyA"/>
+ <element xmi:type="uml:Abstraction" href="importSpecObject.uml#_9kfd0P7dEeSSMKHs1EquyA"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_9kgr8v7dEeSSMKHs1EquyA" points="[7, -11, -82, 128]$[85, -87, -4, 52]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_9nHUAP7dEeSSMKHs1EquyA" id="(0.88,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_9nHUAf7dEeSSMKHs1EquyA" id="(0.23,1.0)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_9odX1_7dEeSSMKHs1EquyA" type="StereotypeCommentLink" source="_9kgr8P7dEeSSMKHs1EquyA" target="_9odX0_7dEeSSMKHs1EquyA">
+ <styles xmi:type="notation:FontStyle" xmi:id="_9odX2P7dEeSSMKHs1EquyA"/>
+ <styles xmi:type="notation:EObjectValueStyle" xmi:id="_9od-4P7dEeSSMKHs1EquyA" name="BASE_ELEMENT">
+ <eObjectValue xmi:type="uml:Abstraction" href="importSpecObject.uml#_9kfd0P7dEeSSMKHs1EquyA"/>
+ </styles>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_9odX2f7dEeSSMKHs1EquyA" points="[0, 0, 0, 0]$[0, 0, 0, 0]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_9odX2v7dEeSSMKHs1EquyA"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_9odX2_7dEeSSMKHs1EquyA"/>
+ </edges>
+</notation:Diagram>
diff --git a/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/importSpecObject.uml b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/importSpecObject.uml
new file mode 100644
index 00000000000..a54b134bf48
--- /dev/null
+++ b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/importSpecObject.uml
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ReqTypeProfile="http:///schemas/ReqTypeProfile/_sHzGIOUCEeSXGtGTXahmOw/0" xmlns:Requirements="http://www.eclipse.org/papyrus/0.7.0/SysML/Requirements" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http:///schemas/ReqTypeProfile/_sHzGIOUCEeSXGtGTXahmOw/0 ReqTypeProfile.profile.uml#_sH3-oeUCEeSXGtGTXahmOw http://www.eclipse.org/papyrus/0.7.0/SysML/Requirements http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements">
+ <uml:Model xmi:id="_MIKN0CkSEeS95O5erqgRCw" name="SysMLmodel">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_pg4HMOUCEeSXGtGTXahmOw">
+ <body>This model has been generated Fri Apr 17 15:07:06 CEST 2015 from ReqIF file: specObject_1.reqif.
+generated by Papyrus Requirement from exportSpecObject.umlSysMLmodel</body>
+ </ownedComment>
+ <packagedElement xmi:type="uml:Package" xmi:id="_sWm-MOUCEeSXGtGTXahmOw" name="SysMLmodel">
+ <packagedElement xmi:type="uml:Class" xmi:id="_sWxWQOUCEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_sW8VYOUCEeSXGtGTXahmOw" name="Requirement1">
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_d0uTsP7NEeS-FJrnRfHv0A" name="class1" type="_ZebB0P7NEeS-FJrnRfHv0A" association="_d0mX4P7NEeS-FJrnRfHv0A"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_sXCcAOUCEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_sXGtcOUCEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_sXK-4OUCEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_sXPQUOUCEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_sXS6sOUCEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_sXXMIOUCEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_sXd50OUCEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_sXg9IOUCEeSXGtGTXahmOw" name="Requirement1"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_ZebB0P7NEeS-FJrnRfHv0A" name="Class1">
+ <generalization xmi:type="uml:Generalization" xmi:id="_g21Z0P7NEeS-FJrnRfHv0A" general="_sXK-4OUCEeSXGtGTXahmOw"/>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_d0tFkP7NEeS-FJrnRfHv0A" name="requirement1" type="_sW8VYOUCEeSXGtGTXahmOw" association="_d0mX4P7NEeS-FJrnRfHv0A"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_dDWhIP7NEeS-FJrnRfHv0A" client="_ZebB0P7NEeS-FJrnRfHv0A" supplier="_sWxWQOUCEeSXGtGTXahmOw"/>
+ <packagedElement xmi:type="uml:Association" xmi:id="_d0mX4P7NEeS-FJrnRfHv0A" name="A_requirement1_class1" memberEnd="_d0tFkP7NEeS-FJrnRfHv0A _d0uTsP7NEeS-FJrnRfHv0A">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_d0qCQP7NEeS-FJrnRfHv0A" source="org.eclipse.papyrus">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_d0qpUP7NEeS-FJrnRfHv0A" key="nature" value="UML_Nature"/>
+ </eAnnotations>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_e3uBwP7NEeS-FJrnRfHv0A" name="Verify1" client="_ZebB0P7NEeS-FJrnRfHv0A" supplier="_sXCcAOUCEeSXGtGTXahmOw"/>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_f-dAUP7NEeS-FJrnRfHv0A" client="_ZebB0P7NEeS-FJrnRfHv0A" supplier="_sXGtcOUCEeSXGtGTXahmOw"/>
+ <packagedElement xmi:type="uml:Class" xmi:id="_5pH0cP7dEeSSMKHs1EquyA" name="Class2"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_9GALAP7dEeSSMKHs1EquyA" name="Satisfy1" client="_5pH0cP7dEeSSMKHs1EquyA" supplier="_sXd50OUCEeSXGtGTXahmOw"/>
+ <packagedElement xmi:type="uml:Abstraction" xmi:id="_9kfd0P7dEeSSMKHs1EquyA" name="Satisfy2" client="_5pH0cP7dEeSSMKHs1EquyA" supplier="_sXg9IOUCEeSXGtGTXahmOw"/>
+ </packagedElement>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMCoQCkSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMDPUCkSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#/"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_TZ_nULU5EduiKqCzJMWbGw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMEdcCkSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMEdcSkSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//modelelements"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_Gx8MgLX7EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMEdcikSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMFEgCkSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//blocks"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_fSw28LX7EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMFEgSkSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMFEgikSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//portandflows"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_rpx28LX7EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMFEgykSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMFrkCkSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//constraints"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_5WYJ0LX7EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMFrkSkSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMFrkikSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//activities"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_C2zXMLX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMFrkykSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMGSoCkSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//allocations"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_NxdG4LX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMGSoSkSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMGSoikSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_OOJC4LX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMG5sCkSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMG5sSkSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//interactions"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_meOioLX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMG5sikSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMG5sykSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//statemachines"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_nAF5kLX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_MMHgwCkSEeS95O5erqgRCw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_MMHgwSkSEeS95O5erqgRCw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/0.7.0/SysML#//usecases"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://SysML_PROFILES/SysML.profile.uml#_neZmMLX8EduFmqQsrNB9lw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_sWS1IOUCEeSXGtGTXahmOw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_sWWfgOUCEeSXGtGTXahmOw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="ReqTypeProfile.profile.uml#_sH3-oeUCEeSXGtGTXahmOw"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="ReqTypeProfile.profile.uml#_sD_kMOUCEeSXGtGTXahmOw"/>
+ </profileApplication>
+ </uml:Model>
+ <ReqTypeProfile:SysMLmodel xmi:id="_sWqBgOUCEeSXGtGTXahmOw" base_Package="_sWm-MOUCEeSXGtGTXahmOw"/>
+ <ReqTypeProfile:ReqType5 xmi:id="_sW3c4OUCEeSXGtGTXahmOw" text="The text for req1" id="1" base_Class="_sWxWQOUCEeSXGtGTXahmOw"/>
+ <ReqTypeProfile:ReqType5 xmi:id="_sW_YsOUCEeSXGtGTXahmOw" text="The text for req2" id="2" base_Class="_sW8VYOUCEeSXGtGTXahmOw" Attribute1="Medium"/>
+ <ReqTypeProfile:ReqType5 xmi:id="_sXERMOUCEeSXGtGTXahmOw" text="The text for req3" id="3" base_Class="_sXCcAOUCEeSXGtGTXahmOw" Attribute1="High"/>
+ <ReqTypeProfile:ReqType5 xmi:id="_sXIioOUCEeSXGtGTXahmOw" text="The text for req4" id="4" base_Class="_sXGtcOUCEeSXGtGTXahmOw" Attribute1="Medium" Attribute2="Proto"/>
+ <ReqTypeProfile:ReqType5 xmi:id="_sXM0EOUCEeSXGtGTXahmOw" text="The text for req5" id="5" base_Class="_sXK-4OUCEeSXGtGTXahmOw" Attribute1="High" Attribute2="Specification"/>
+ <ReqTypeProfile:ReqType1 xmi:id="_sXRFgOUCEeSXGtGTXahmOw" text="The text for req6" id="6" base_Class="_sXPQUOUCEeSXGtGTXahmOw" Attribute1="test3"/>
+ <ReqTypeProfile:ReqType1 xmi:id="_sXVW8OUCEeSXGtGTXahmOw" text="The text for req7" id="7" base_Class="_sXS6sOUCEeSXGtGTXahmOw" Attribute1="test1"/>
+ <ReqTypeProfile:ReqType1 xmi:id="_sXZoYOUCEeSXGtGTXahmOw" text="The text for req8" id="8" base_Class="_sXXMIOUCEeSXGtGTXahmOw" Attribute1="test2"/>
+ <ReqTypeProfile:ReqType1 xmi:id="_sXfvAOUCEeSXGtGTXahmOw" text="The text for req9" id="9" base_Class="_sXd50OUCEeSXGtGTXahmOw" Attribute1="test4"/>
+ <ReqTypeProfile:ReqType1 xmi:id="_sXiLQOUCEeSXGtGTXahmOw" text="The text for req10" id="10" base_Class="_sXg9IOUCEeSXGtGTXahmOw" Attribute1="test5"/>
+ <Requirements:Verify xmi:id="_e5wCEP7NEeS-FJrnRfHv0A" base_Abstraction="_e3uBwP7NEeS-FJrnRfHv0A"/>
+ <Requirements:Satisfy xmi:id="_9JTWoP7dEeSSMKHs1EquyA" base_Abstraction="_9GALAP7dEeSSMKHs1EquyA"/>
+ <Requirements:Satisfy xmi:id="_9nvmIP7dEeSSMKHs1EquyA" base_Abstraction="_9kfd0P7dEeSSMKHs1EquyA"/>
+</xmi:XMI>
diff --git a/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/specObject_1.reqif b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/specObject_1.reqif
new file mode 100644
index 00000000000..d1848207055
--- /dev/null
+++ b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/specObject_1.reqif
@@ -0,0 +1,573 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<REQ-IF xmlns="http://www.omg.org/spec/ReqIF/20110401/reqif.xsd" xmlns:configuration="http://eclipse.org/rmf/pror/toolextensions/1.0">
+ <THE-HEADER>
+ <REQ-IF-HEADER IDENTIFIER="rmf-2f89854f-87fd-46ca-b1d9-0496b8fcce4e">
+ <COMMENT>generated by Papyrus Requirement from exportSpecObject.uml</COMMENT>
+ <CREATION-TIME>2014-08-20T15:13:06.547+02:00</CREATION-TIME>
+ <REQ-IF-TOOL-ID>Papyrus Req</REQ-IF-TOOL-ID>
+ <REQ-IF-VERSION>1.0.1</REQ-IF-VERSION>
+ <SOURCE-TOOL-ID>Papyrus Req</SOURCE-TOOL-ID>
+ <TITLE>SysMLmodel</TITLE>
+ </REQ-IF-HEADER>
+ </THE-HEADER>
+ <CORE-CONTENT>
+ <REQ-IF-CONTENT>
+ <DATATYPES>
+ <DATATYPE-DEFINITION-STRING DESC="String that been written by Papyrus Req" IDENTIFIER="_uWziUChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.548+02:00" LONG-NAME="String" MAX-LENGTH="2147483647"/>
+ <DATATYPE-DEFINITION-BOOLEAN DESC="Boolean that been written by Papyrus Req" IDENTIFIER="_uWziUShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.549+02:00" LONG-NAME="Boolean"/>
+ <DATATYPE-DEFINITION-REAL DESC="Real that been written by Papyrus Req" IDENTIFIER="_uWziUihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.549+02:00" LONG-NAME="Real" ACCURACY="64" MAX="1.7976931348623157E308" MIN="4.9E-324"/>
+ <DATATYPE-DEFINITION-INTEGER DESC="Integer that been written by Papyrus Req" IDENTIFIER="_uWziUyhrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.549+02:00" LONG-NAME="Integer" MAX="2147483647" MIN="-2147483648"/>
+ <DATATYPE-DEFINITION-XHTML DESC="XHTML that been written by Papyrus Req" IDENTIFIER="_uWziVChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.549+02:00" LONG-NAME="XHTML"/>
+ <DATATYPE-DEFINITION-ENUMERATION IDENTIFIER="_uXKHoChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.585+02:00" LONG-NAME="Importance">
+ <SPECIFIED-VALUES>
+ <ENUM-VALUE IDENTIFIER="_uXKHoShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="Low">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="0" OTHER-CONTENT="Importance_Low"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ <ENUM-VALUE IDENTIFIER="_uXKHoihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="Medium">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="1" OTHER-CONTENT="Importance_Medium"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ <ENUM-VALUE IDENTIFIER="_uXKHoyhrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="High">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="2" OTHER-CONTENT="Importance_High"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ </SPECIFIED-VALUES>
+ </DATATYPE-DEFINITION-ENUMERATION>
+ <DATATYPE-DEFINITION-ENUMERATION IDENTIFIER="_uXKHpChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="FlowDirection">
+ <SPECIFIED-VALUES>
+ <ENUM-VALUE IDENTIFIER="_uXKHpShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="in">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="0" OTHER-CONTENT="FlowDirection_in"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ <ENUM-VALUE IDENTIFIER="_uXKHpihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="out">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="1" OTHER-CONTENT="FlowDirection_out"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ <ENUM-VALUE IDENTIFIER="_uXKHpyhrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="inout">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="2" OTHER-CONTENT="FlowDirection_inout"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ </SPECIFIED-VALUES>
+ </DATATYPE-DEFINITION-ENUMERATION>
+ <DATATYPE-DEFINITION-ENUMERATION IDENTIFIER="_uXKHqChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="Maturity">
+ <SPECIFIED-VALUES>
+ <ENUM-VALUE IDENTIFIER="_uXKHqShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="Idea">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="0" OTHER-CONTENT="Maturity_Idea"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ <ENUM-VALUE IDENTIFIER="_uXKHqihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="Proto">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="1" OTHER-CONTENT="Maturity_Proto"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ <ENUM-VALUE IDENTIFIER="_uXKHqyhrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="Advanced">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="2" OTHER-CONTENT="Maturity_Advanced"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ <ENUM-VALUE IDENTIFIER="_uXKHrChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="Specification">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="3" OTHER-CONTENT="Maturity_Specification"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ </SPECIFIED-VALUES>
+ </DATATYPE-DEFINITION-ENUMERATION>
+ </DATATYPES>
+ <SPEC-TYPES>
+ <SPEC-OBJECT-TYPE DESC="no Description" IDENTIFIER="_uXKHrShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="Requirement">
+ <SPEC-ATTRIBUTES>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKHrihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="text" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKusChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="id" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ </SPEC-ATTRIBUTES>
+ </SPEC-OBJECT-TYPE>
+ <SPEC-OBJECT-TYPE DESC="no Description" IDENTIFIER="_uXKusShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="ReqType1">
+ <SPEC-ATTRIBUTES>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKusihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="Attribute1" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKusyhrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="text" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKutChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="id" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ </SPEC-ATTRIBUTES>
+ </SPEC-OBJECT-TYPE>
+ <SPEC-OBJECT-TYPE DESC="no Description" IDENTIFIER="_uXKutShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="ReqType3">
+ <SPEC-ATTRIBUTES>
+ <ATTRIBUTE-DEFINITION-BOOLEAN IDENTIFIER="_uXKutihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="Attribute1" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-BOOLEAN-REF>_uWziUShrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-BOOLEAN-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-BOOLEAN>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKutyhrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="text" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKuuChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="id" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ </SPEC-ATTRIBUTES>
+ </SPEC-OBJECT-TYPE>
+ <SPEC-OBJECT-TYPE DESC="no Description" IDENTIFIER="_uXKuuShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="ReqType2">
+ <SPEC-ATTRIBUTES>
+ <ATTRIBUTE-DEFINITION-INTEGER IDENTIFIER="_uXKuuihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="Attribute1" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-INTEGER-REF>_uWziUyhrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-INTEGER-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-INTEGER>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKuuyhrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="text" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKuvChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="id" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ </SPEC-ATTRIBUTES>
+ </SPEC-OBJECT-TYPE>
+ <SPEC-OBJECT-TYPE DESC="no Description" IDENTIFIER="_uXKuvShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="ReqType5">
+ <SPEC-ATTRIBUTES>
+ <ATTRIBUTE-DEFINITION-ENUMERATION IDENTIFIER="_uXKuvihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="Attribute1" IS-EDITABLE="true" MULTI-VALUED="false">
+ <TYPE>
+ <DATATYPE-DEFINITION-ENUMERATION-REF>_uXKHoChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-ENUMERATION-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-ENUMERATION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION IDENTIFIER="_uXKuvyhrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="Attribute2" IS-EDITABLE="true" MULTI-VALUED="false">
+ <TYPE>
+ <DATATYPE-DEFINITION-ENUMERATION-REF>_uXKHqChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-ENUMERATION-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-ENUMERATION>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKuwChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="text" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKuwShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="id" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ </SPEC-ATTRIBUTES>
+ </SPEC-OBJECT-TYPE>
+ <SPEC-OBJECT-TYPE DESC="no Description" IDENTIFIER="_uXKuwihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="ReqType4">
+ <SPEC-ATTRIBUTES>
+ <ATTRIBUTE-DEFINITION-REAL IDENTIFIER="_uXKuwyhrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="Attribute1" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-REAL-REF>_uWziUihrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-REAL-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-REAL>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKuxChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="text" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKuxShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="id" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ </SPEC-ATTRIBUTES>
+ </SPEC-OBJECT-TYPE>
+ <SPECIFICATION-TYPE IDENTIFIER="_uXLVwChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.588+02:00" LONG-NAME="SysMLmodel"/>
+ </SPEC-TYPES>
+ <SPEC-OBJECTS>
+ <SPEC-OBJECT IDENTIFIER="_uXLVwihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.588+02:00" LONG-NAME="Req_0">
+ <VALUES>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHoShrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHqShrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="1">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwShrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req1">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKuvShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_uXL80ShrEeSMW_x_2UpqNQ" LAST-CHANGE="2015-04-09T15:03:11.716+02:00" LONG-NAME="Req_1">
+ <VALUES>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHoihrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHqShrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="2">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwShrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req2">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKuvShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_uXL80yhrEeSMW_x_2UpqNQ" LAST-CHANGE="2015-04-09T15:03:15.228+02:00" LONG-NAME="Req_2">
+ <VALUES>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHoyhrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHqShrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="3">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwShrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req3">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKuvShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_uXL81ShrEeSMW_x_2UpqNQ" LAST-CHANGE="2015-04-09T15:03:18.504+02:00" LONG-NAME="Req_3">
+ <VALUES>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHoihrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHqihrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="4">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwShrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req4">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKuvShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_uXMj4ShrEeSMW_x_2UpqNQ" LAST-CHANGE="2015-04-09T15:03:22.265+02:00" LONG-NAME="Req_4">
+ <VALUES>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHoyhrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHrChrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="5">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwShrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req5">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKuvShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_uXMj4yhrEeSMW_x_2UpqNQ" LAST-CHANGE="2015-04-09T15:03:27.008+02:00" LONG-NAME="Req_5">
+ <VALUES>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="test3">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="6">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKutChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req6">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKusShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_uXMj5ShrEeSMW_x_2UpqNQ" LAST-CHANGE="2015-04-09T15:03:30.378+02:00" LONG-NAME="Req_6">
+ <VALUES>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="test1">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="7">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKutChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req7">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKusShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_uXMj5yhrEeSMW_x_2UpqNQ" LAST-CHANGE="2015-04-09T15:03:33.966+02:00" LONG-NAME="Req_7">
+ <VALUES>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="test2">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="8">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKutChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req8">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKusShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_uXMj6ShrEeSMW_x_2UpqNQ" LAST-CHANGE="2015-04-09T15:03:38.864+02:00" LONG-NAME="Req_8">
+ <VALUES>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="test4">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="9">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKutChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req9">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKusShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_uXNK8ShrEeSMW_x_2UpqNQ" LAST-CHANGE="2015-04-09T15:03:42.100+02:00" LONG-NAME="Req_9">
+ <VALUES>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="test5">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="10">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKutChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req10">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKusShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ </SPEC-OBJECTS>
+ <SPECIFICATIONS>
+ <SPECIFICATION IDENTIFIER="_uXLVwShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.588+02:00" LONG-NAME="SysMLmodel">
+ <TYPE>
+ <SPECIFICATION-TYPE-REF>_uXLVwChrEeSMW_x_2UpqNQ</SPECIFICATION-TYPE-REF>
+ </TYPE>
+ <CHILDREN>
+ <SPEC-HIERARCHY IDENTIFIER="_uXL80ChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.588+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXLVwihrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_uXL80ihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.589+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXL80ShrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_uXL81ChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.589+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXL80yhrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_uXMj4ChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.589+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXL81ShrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_uXMj4ihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.590+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXMj4ShrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_uXMj5ChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.590+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXMj4yhrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_uXMj5ihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.590+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXMj5ShrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_uXMj6ChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.590+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXMj5yhrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_uXNK8ChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.590+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXMj6ShrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_uXNK8ihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.591+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXNK8ShrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ </CHILDREN>
+ </SPECIFICATION>
+ </SPECIFICATIONS>
+ </REQ-IF-CONTENT>
+ </CORE-CONTENT>
+ <TOOL-EXTENSIONS>
+ <REQ-IF-TOOL-EXTENSION>
+ <configuration:ProrToolExtension>
+ <configuration:specViewConfigurations>
+ <configuration:ProrSpecViewConfiguration specification="_uXLVwShrEeSMW_x_2UpqNQ">
+ <configuration:columns>
+ <configuration:Column label="Attribute2" width="100"/>
+ <configuration:Column label="Attribute1" width="100"/>
+ <configuration:Column label="text" width="100"/>
+ <configuration:Column label="id" width="100"/>
+ </configuration:columns>
+ <configuration:leftHeaderColumn>
+ <configuration:Column label="Lead Header Column" width="30"/>
+ </configuration:leftHeaderColumn>
+ </configuration:ProrSpecViewConfiguration>
+ </configuration:specViewConfigurations>
+ <configuration:generalConfiguration>
+ <configuration:ProrGeneralConfiguration>
+ <configuration:labelConfiguration>
+ <configuration:LabelConfiguration>
+ <defaultLabel>ReqIF.ChapterNumber</defaultLabel>
+ <defaultLabel>ReqIF.ChapterName</defaultLabel>
+ <defaultLabel>ReqIF.Name</defaultLabel>
+ <defaultLabel>ReqIF.Text</defaultLabel>
+ <defaultLabel>ID</defaultLabel>
+ <defaultLabel>Name</defaultLabel>
+ <defaultLabel>Description</defaultLabel>
+ </configuration:LabelConfiguration>
+ </configuration:labelConfiguration>
+ </configuration:ProrGeneralConfiguration>
+ </configuration:generalConfiguration>
+ </configuration:ProrToolExtension>
+ </REQ-IF-TOOL-EXTENSION>
+ </TOOL-EXTENSIONS>
+</REQ-IF>
diff --git a/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/specObject_2.reqif b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/specObject_2.reqif
new file mode 100644
index 00000000000..17eb0de73b6
--- /dev/null
+++ b/tests/recipes/extraplugins/uml/org.eclipse.papyrus.req.reqif.test/models/re-import/addedSubReqWithLinks/specObject_2.reqif
@@ -0,0 +1,707 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<REQ-IF xmlns="http://www.omg.org/spec/ReqIF/20110401/reqif.xsd" xmlns:configuration="http://eclipse.org/rmf/pror/toolextensions/1.0">
+ <THE-HEADER>
+ <REQ-IF-HEADER IDENTIFIER="rmf-e3b2c233-44d1-4226-8bf5-13207b0c253b">
+ <COMMENT>generated by Papyrus Requirement from exportSpecObject.uml</COMMENT>
+ <CREATION-TIME>2014-08-20T15:13:06.547+02:00</CREATION-TIME>
+ <REQ-IF-TOOL-ID>Papyrus Req</REQ-IF-TOOL-ID>
+ <REQ-IF-VERSION>1.0.1</REQ-IF-VERSION>
+ <SOURCE-TOOL-ID>Papyrus Req</SOURCE-TOOL-ID>
+ <TITLE>SysMLmodel</TITLE>
+ </REQ-IF-HEADER>
+ </THE-HEADER>
+ <CORE-CONTENT>
+ <REQ-IF-CONTENT>
+ <DATATYPES>
+ <DATATYPE-DEFINITION-STRING DESC="String that been written by Papyrus Req" IDENTIFIER="_uWziUChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.548+02:00" LONG-NAME="String" MAX-LENGTH="2147483647"/>
+ <DATATYPE-DEFINITION-BOOLEAN DESC="Boolean that been written by Papyrus Req" IDENTIFIER="_uWziUShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.549+02:00" LONG-NAME="Boolean"/>
+ <DATATYPE-DEFINITION-REAL DESC="Real that been written by Papyrus Req" IDENTIFIER="_uWziUihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.549+02:00" LONG-NAME="Real" ACCURACY="64" MAX="1.7976931348623157E308" MIN="4.9E-324"/>
+ <DATATYPE-DEFINITION-INTEGER DESC="Integer that been written by Papyrus Req" IDENTIFIER="_uWziUyhrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.549+02:00" LONG-NAME="Integer" MAX="2147483647" MIN="-2147483648"/>
+ <DATATYPE-DEFINITION-XHTML DESC="XHTML that been written by Papyrus Req" IDENTIFIER="_uWziVChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.549+02:00" LONG-NAME="XHTML"/>
+ <DATATYPE-DEFINITION-ENUMERATION IDENTIFIER="_uXKHoChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.585+02:00" LONG-NAME="Importance">
+ <SPECIFIED-VALUES>
+ <ENUM-VALUE IDENTIFIER="_uXKHoShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="Low">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="0" OTHER-CONTENT="Importance_Low"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ <ENUM-VALUE IDENTIFIER="_uXKHoihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="Medium">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="1" OTHER-CONTENT="Importance_Medium"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ <ENUM-VALUE IDENTIFIER="_uXKHoyhrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="High">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="2" OTHER-CONTENT="Importance_High"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ </SPECIFIED-VALUES>
+ </DATATYPE-DEFINITION-ENUMERATION>
+ <DATATYPE-DEFINITION-ENUMERATION IDENTIFIER="_uXKHpChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="FlowDirection">
+ <SPECIFIED-VALUES>
+ <ENUM-VALUE IDENTIFIER="_uXKHpShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="in">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="0" OTHER-CONTENT="FlowDirection_in"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ <ENUM-VALUE IDENTIFIER="_uXKHpihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="out">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="1" OTHER-CONTENT="FlowDirection_out"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ <ENUM-VALUE IDENTIFIER="_uXKHpyhrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="inout">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="2" OTHER-CONTENT="FlowDirection_inout"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ </SPECIFIED-VALUES>
+ </DATATYPE-DEFINITION-ENUMERATION>
+ <DATATYPE-DEFINITION-ENUMERATION IDENTIFIER="_uXKHqChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="Maturity">
+ <SPECIFIED-VALUES>
+ <ENUM-VALUE IDENTIFIER="_uXKHqShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="Idea">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="0" OTHER-CONTENT="Maturity_Idea"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ <ENUM-VALUE IDENTIFIER="_uXKHqihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="Proto">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="1" OTHER-CONTENT="Maturity_Proto"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ <ENUM-VALUE IDENTIFIER="_uXKHqyhrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="Advanced">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="2" OTHER-CONTENT="Maturity_Advanced"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ <ENUM-VALUE IDENTIFIER="_uXKHrChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="Specification">
+ <PROPERTIES>
+ <EMBEDDED-VALUE KEY="3" OTHER-CONTENT="Maturity_Specification"/>
+ </PROPERTIES>
+ </ENUM-VALUE>
+ </SPECIFIED-VALUES>
+ </DATATYPE-DEFINITION-ENUMERATION>
+ </DATATYPES>
+ <SPEC-TYPES>
+ <SPEC-OBJECT-TYPE DESC="no Description" IDENTIFIER="_uXKHrShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="Requirement">
+ <SPEC-ATTRIBUTES>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKHrihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="text" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKusChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.586+02:00" LONG-NAME="id" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ </SPEC-ATTRIBUTES>
+ </SPEC-OBJECT-TYPE>
+ <SPEC-OBJECT-TYPE DESC="no Description" IDENTIFIER="_uXKusShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="ReqType1">
+ <SPEC-ATTRIBUTES>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKusihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="Attribute1" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKusyhrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="text" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKutChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="id" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ </SPEC-ATTRIBUTES>
+ </SPEC-OBJECT-TYPE>
+ <SPEC-OBJECT-TYPE DESC="no Description" IDENTIFIER="_uXKutShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="ReqType3">
+ <SPEC-ATTRIBUTES>
+ <ATTRIBUTE-DEFINITION-BOOLEAN IDENTIFIER="_uXKutihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="Attribute1" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-BOOLEAN-REF>_uWziUShrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-BOOLEAN-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-BOOLEAN>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKutyhrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="text" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKuuChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="id" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ </SPEC-ATTRIBUTES>
+ </SPEC-OBJECT-TYPE>
+ <SPEC-OBJECT-TYPE DESC="no Description" IDENTIFIER="_uXKuuShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="ReqType2">
+ <SPEC-ATTRIBUTES>
+ <ATTRIBUTE-DEFINITION-INTEGER IDENTIFIER="_uXKuuihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="Attribute1" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-INTEGER-REF>_uWziUyhrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-INTEGER-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-INTEGER>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKuuyhrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="text" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKuvChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="id" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ </SPEC-ATTRIBUTES>
+ </SPEC-OBJECT-TYPE>
+ <SPEC-OBJECT-TYPE DESC="no Description" IDENTIFIER="_uXKuvShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="ReqType5">
+ <SPEC-ATTRIBUTES>
+ <ATTRIBUTE-DEFINITION-ENUMERATION IDENTIFIER="_uXKuvihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="Attribute1" IS-EDITABLE="true" MULTI-VALUED="false">
+ <TYPE>
+ <DATATYPE-DEFINITION-ENUMERATION-REF>_uXKHoChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-ENUMERATION-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-ENUMERATION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION IDENTIFIER="_uXKuvyhrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="Attribute2" IS-EDITABLE="true" MULTI-VALUED="false">
+ <TYPE>
+ <DATATYPE-DEFINITION-ENUMERATION-REF>_uXKHqChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-ENUMERATION-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-ENUMERATION>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKuwChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="text" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKuwShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="id" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ </SPEC-ATTRIBUTES>
+ </SPEC-OBJECT-TYPE>
+ <SPEC-OBJECT-TYPE DESC="no Description" IDENTIFIER="_uXKuwihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="ReqType4">
+ <SPEC-ATTRIBUTES>
+ <ATTRIBUTE-DEFINITION-REAL IDENTIFIER="_uXKuwyhrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="Attribute1" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-REAL-REF>_uWziUihrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-REAL-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-REAL>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKuxChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="text" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ <ATTRIBUTE-DEFINITION-STRING IDENTIFIER="_uXKuxShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.587+02:00" LONG-NAME="id" IS-EDITABLE="true">
+ <TYPE>
+ <DATATYPE-DEFINITION-STRING-REF>_uWziUChrEeSMW_x_2UpqNQ</DATATYPE-DEFINITION-STRING-REF>
+ </TYPE>
+ </ATTRIBUTE-DEFINITION-STRING>
+ </SPEC-ATTRIBUTES>
+ </SPEC-OBJECT-TYPE>
+ <SPECIFICATION-TYPE IDENTIFIER="_uXLVwChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.588+02:00" LONG-NAME="SysMLmodel"/>
+ </SPEC-TYPES>
+ <SPEC-OBJECTS>
+ <SPEC-OBJECT IDENTIFIER="_uXLVwihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.588+02:00" LONG-NAME="Req_0">
+ <VALUES>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHoShrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHqShrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="1">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwShrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req1">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKuvShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_uXL80ShrEeSMW_x_2UpqNQ" LAST-CHANGE="2015-04-09T15:03:11.716+02:00" LONG-NAME="Req_1">
+ <VALUES>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHoihrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHqShrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="2">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwShrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req2">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKuvShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_uXL80yhrEeSMW_x_2UpqNQ" LAST-CHANGE="2015-04-09T15:03:15.228+02:00" LONG-NAME="Req_2">
+ <VALUES>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHoyhrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHqShrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="3">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwShrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req3">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKuvShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_uXL81ShrEeSMW_x_2UpqNQ" LAST-CHANGE="2015-04-09T15:03:18.504+02:00" LONG-NAME="Req_3">
+ <VALUES>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHoihrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHqihrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="4">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwShrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req4">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKuvShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_uXMj4ShrEeSMW_x_2UpqNQ" LAST-CHANGE="2015-04-09T15:03:22.265+02:00" LONG-NAME="Req_4">
+ <VALUES>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHoyhrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-ENUMERATION>
+ <VALUES>
+ <ENUM-VALUE-REF>_uXKHrChrEeSMW_x_2UpqNQ</ENUM-VALUE-REF>
+ </VALUES>
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-ENUMERATION-REF>_uXKuvyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-ENUMERATION-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-ENUMERATION>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="5">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwShrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req5">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuwChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKuvShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_uXMj4yhrEeSMW_x_2UpqNQ" LAST-CHANGE="2015-04-09T15:03:27.008+02:00" LONG-NAME="Req_5">
+ <VALUES>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="test3">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="6">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKutChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req6">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKusShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_uXMj5ShrEeSMW_x_2UpqNQ" LAST-CHANGE="2015-04-09T15:03:30.378+02:00" LONG-NAME="Req_6">
+ <VALUES>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="test1">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="7">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKutChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req7">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKusShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_uXMj5yhrEeSMW_x_2UpqNQ" LAST-CHANGE="2015-04-09T15:03:33.966+02:00" LONG-NAME="Req_7">
+ <VALUES>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="test2">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="8">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKutChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req8">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKusShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_uXMj6ShrEeSMW_x_2UpqNQ" LAST-CHANGE="2015-04-09T15:03:38.864+02:00" LONG-NAME="Req_8">
+ <VALUES>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="test4">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="9">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKutChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req9">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKusShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_uXNK8ShrEeSMW_x_2UpqNQ" LAST-CHANGE="2015-04-09T15:03:42.100+02:00" LONG-NAME="Req_9">
+ <VALUES>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="test5">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="10">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKutChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="The text for req10">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKusShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_6DILIN64EeSfwsq8Y4ULIQ" LAST-CHANGE="2015-05-20T10:16:23.374+02:00">
+ <VALUES>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="1.1">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKutChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="Added Req1.1">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKusyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKusShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_92w00N64EeSfwsq8Y4ULIQ" LAST-CHANGE="2015-05-20T10:17:09.318+02:00">
+ <VALUES>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="AddedReq2.1">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKutyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="2.1">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuuChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-BOOLEAN THE-VALUE="false">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-BOOLEAN-REF>_uXKutihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-BOOLEAN-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-BOOLEAN>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKutShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_ZJWjAP7IEeS4v-JryOH-9w" LAST-CHANGE="2015-05-20T10:15:29.736+02:00">
+ <VALUES>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="Added Req1.1.1">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKutyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="1.1.1">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuuChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-BOOLEAN THE-VALUE="true">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-BOOLEAN-REF>_uXKutihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-BOOLEAN-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-BOOLEAN>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKutShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_acDhAP7IEeS4v-JryOH-9w" LAST-CHANGE="2015-05-20T10:17:18.038+02:00">
+ <VALUES>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="2.1.1">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuuChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="AddedReq2.1.1">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKutyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-BOOLEAN THE-VALUE="true">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-BOOLEAN-REF>_uXKutihrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-BOOLEAN-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-BOOLEAN>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKutShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ <SPEC-OBJECT IDENTIFIER="_bIxdEP7IEeS4v-JryOH-9w" LAST-CHANGE="2015-05-20T10:17:21.350+02:00">
+ <VALUES>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="2.1.2">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuvChrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ <ATTRIBUTE-VALUE-STRING THE-VALUE="AddedReq2.1.2">
+ <DEFINITION>
+ <ATTRIBUTE-DEFINITION-STRING-REF>_uXKuuyhrEeSMW_x_2UpqNQ</ATTRIBUTE-DEFINITION-STRING-REF>
+ </DEFINITION>
+ </ATTRIBUTE-VALUE-STRING>
+ </VALUES>
+ <TYPE>
+ <SPEC-OBJECT-TYPE-REF>_uXKuuShrEeSMW_x_2UpqNQ</SPEC-OBJECT-TYPE-REF>
+ </TYPE>
+ </SPEC-OBJECT>
+ </SPEC-OBJECTS>
+ <SPECIFICATIONS>
+ <SPECIFICATION IDENTIFIER="_uXLVwShrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.588+02:00" LONG-NAME="SysMLmodel">
+ <TYPE>
+ <SPECIFICATION-TYPE-REF>_uXLVwChrEeSMW_x_2UpqNQ</SPECIFICATION-TYPE-REF>
+ </TYPE>
+ <CHILDREN>
+ <SPEC-HIERARCHY IDENTIFIER="_uXL80ChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.588+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXLVwihrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ <CHILDREN>
+ <SPEC-HIERARCHY IDENTIFIER="_6EBjAN64EeSfwsq8Y4ULIQ" LAST-CHANGE="2015-05-19T16:03:59.046+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_6DILIN64EeSfwsq8Y4ULIQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ <CHILDREN>
+ <SPEC-HIERARCHY IDENTIFIER="_ZKBRYP7IEeS4v-JryOH-9w" LAST-CHANGE="2015-05-20T10:15:29.736+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_ZJWjAP7IEeS4v-JryOH-9w</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ </CHILDREN>
+ </SPEC-HIERARCHY>
+ </CHILDREN>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_uXL80ihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.589+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXL80ShrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ <CHILDREN>
+ <SPEC-HIERARCHY IDENTIFIER="_93gbsN64EeSfwsq8Y4ULIQ" LAST-CHANGE="2015-05-19T16:04:03.533+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_92w00N64EeSfwsq8Y4ULIQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ <CHILDREN>
+ <SPEC-HIERARCHY IDENTIFIER="_acjQQP7IEeS4v-JryOH-9w" LAST-CHANGE="2015-05-20T10:15:40.249+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_acDhAP7IEeS4v-JryOH-9w</SPEC-OBJECT-REF>
+ </OBJECT>
+ <CHILDREN/>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_bJP-MP7IEeS4v-JryOH-9w" LAST-CHANGE="2015-05-20T10:16:49.639+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_bIxdEP7IEeS4v-JryOH-9w</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ </CHILDREN>
+ </SPEC-HIERARCHY>
+ </CHILDREN>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_uXL81ChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.589+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXL80yhrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_uXMj4ChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.589+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXL81ShrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_uXMj4ihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.590+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXMj4ShrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_uXMj5ChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.590+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXMj4yhrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_uXMj5ihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.590+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXMj5ShrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_uXMj6ChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.590+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXMj5yhrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_uXNK8ChrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.590+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXMj6ShrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ <SPEC-HIERARCHY IDENTIFIER="_uXNK8ihrEeSMW_x_2UpqNQ" LAST-CHANGE="2014-08-20T15:13:06.591+02:00">
+ <OBJECT>
+ <SPEC-OBJECT-REF>_uXNK8ShrEeSMW_x_2UpqNQ</SPEC-OBJECT-REF>
+ </OBJECT>
+ </SPEC-HIERARCHY>
+ </CHILDREN>
+ </SPECIFICATION>
+ </SPECIFICATIONS>
+ </REQ-IF-CONTENT>
+ </CORE-CONTENT>
+ <TOOL-EXTENSIONS>
+ <REQ-IF-TOOL-EXTENSION>
+ <configuration:ProrToolExtension>
+ <configuration:specViewConfigurations>
+ <configuration:ProrSpecViewConfiguration specification="_uXLVwShrEeSMW_x_2UpqNQ">
+ <configuration:columns>
+ <configuration:Column label="Attribute2" width="100"/>
+ <configuration:Column label="Attribute1" width="100"/>
+ <configuration:Column label="text" width="100"/>
+ <configuration:Column label="id" width="100"/>
+ </configuration:columns>
+ <configuration:leftHeaderColumn>
+ <configuration:Column label="Lead Header Column" width="30"/>
+ </configuration:leftHeaderColumn>
+ </configuration:ProrSpecViewConfiguration>
+ </configuration:specViewConfigurations>
+ <configuration:generalConfiguration>
+ <configuration:ProrGeneralConfiguration>
+ <configuration:labelConfiguration>
+ <configuration:LabelConfiguration>
+ <defaultLabel>ReqIF.ChapterNumber</defaultLabel>
+ <defaultLabel>ReqIF.ChapterName</defaultLabel>
+ <defaultLabel>ReqIF.Name</defaultLabel>
+ <defaultLabel>ReqIF.Text</defaultLabel>
+ <defaultLabel>ID</defaultLabel>
+ <defaultLabel>Name</defaultLabel>
+ <defaultLabel>Description</defaultLabel>
+ </configuration:LabelConfiguration>
+ </configuration:labelConfiguration>
+ </configuration:ProrGeneralConfiguration>
+ </configuration:generalConfiguration>
+ </configuration:ProrToolExtension>
+ </REQ-IF-TOOL-EXTENSION>
+ </TOOL-EXTENSIONS>
+</REQ-IF>

Back to the top